Update installation.md

This commit is contained in:
apt105 2021-04-29 01:02:12 +01:00
parent 7d24236e2d
commit 4705b6a69c

View file

@ -10,31 +10,60 @@ This is a python library for using Meshtastic devices. This small library (and e
Installation is easily done through the Python package installer pip (note, you must use pip version 20 or later): Installation is easily done through the Python package installer pip (note, you must use pip version 20 or later):
- check that your computer has the required serial drivers installed ## Linux
- Check that your computer has the required serial drivers installed
* Connect your Meshtastic device to your USB port * Connect your Meshtastic device to your USB port
* Use the command * Use the command
```bash ```bash
lsusb lsusb
``` ```
* You should see something like `CP210X USB to UART Bridge Controller` * You should see something like `CP210X USB to UART Bridge Controller`
* if not download the drivers from [Silicon Labs](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers). * If not download the drivers from [Silicon Labs](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers).
- check that your computer has Python 3 installed. - Check that your computer has Python 3 installed.
* Use the command * Use the command
```bash ```bash
python3 -V python3 -V
``` ```
* If this does not return a version, install [python](https://www.python.org) * If this does not return a version, install [python](https://www.python.org)
- pip is typically installed if you are using python 3 version >= 3.4 - Pip is typically installed if you are using python 3 version >= 3.4
* Check that pip is installed using this command * Check that pip is installed using this command
```bash ```bash
pip3 --version pip3 --version
``` ```
* If this does not return a version, install [pip](https://pip.pypa.io/en/stable/installing/) * If this does not return a version, install [pip](https://pip.pypa.io/en/stable/installing/)
- install pytap2 - Install pytap2
```bash ```bash
sudo pip3 install --upgrade pytap2 sudo pip3 install --upgrade pytap2
``` ```
- install meshtastic: - Install meshtastic:
```bash ```bash
sudo pip3 install --upgrade meshtastic sudo pip3 install --upgrade meshtastic
``` ```
## Windows
- Check that your computer has the required serial drivers installed
* Connect your Meshtastic device to your USB port
* Open Device Manager
* Under `Ports (COM & LPT)` you should see something like `Silicon Labs CP210X USB to UART Bridge (COM5)`
* If not download the drivers from [Silicon Labs](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers).
- Check that your computer has Python 3 installed.
* Use the command
```powershell
py -V
```
* If this does not return a version, install [python](https://www.python.org)
- Pip is typically installed if you are using python 3 version >= 3.4
* Check that pip is installed using this command
```powershell
pip3 -V
```
* If this does not return a version, install [pip](https://pip.pypa.io/en/stable/installing/)
- Install pytap2
```powershell
pip3 install --upgrade pytap2
```
- Install meshtastic:
```powershell
pip3 install --upgrade meshtastic
```