Blame
|
1 | # Linux |
||||||
| 2 | ||||||||
|
3 | ## Update your OS |
||||||
| 4 | ||||||||
|
5 | First, update your OS |
||||||
| 6 | ||||||||
|
7 | ``` |
||||||
| 8 | sudo apt update |
|||||||
| 9 | sudo apt upgrade |
|||||||
| 10 | ``` |
|||||||
|
11 | |||||||
|
12 | ## Access to USB Serial |
||||||
| 13 | ||||||||
|
14 | Add your user to the dialout group, change `$USER` to your user name. This allows your user to access the USB serial device. |
||||||
|
15 | |||||||
| 16 | ``` |
|||||||
| 17 | sudo usermod -a -G dialout $USER |
|||||||
| 18 | ``` |
|||||||
|
19 | |||||||
|
20 | You'll need to logout and back in again. |
||||||
|
21 | |||||||
| 22 | ## Flash the companion |
|||||||
| 23 | ||||||||
|
24 | > [!NOTE] |
||||||
| 25 | > If you've already flashed your companion with the MeshCore firmware you can skip this step. |
|||||||
|
26 | |||||||
|
27 | > [!IMPORTANT] |
||||||
| 28 | > Make sure you flash with "Companion USB" not "Companion Bluetooth" |
|||||||
| 29 | ||||||||
|
30 | TODO |
||||||
| 31 | ||||||||
| 32 | ## Install needed software |
|||||||
| 33 | ||||||||
| 34 | Install pipx then meshcore-cli |
|||||||
| 35 | ||||||||
| 36 | ``` |
|||||||
| 37 | sudo apt install pipx |
|||||||
| 38 | pipx install meshcore-cli |
|||||||
| 39 | ``` |
|||||||
|
40 | |||||||
| 41 | Logout and back in again. |
|||||||
| 42 | ||||||||
| 43 | ## Find the USB device |
|||||||
| 44 | ||||||||
| 45 | ``` |
|||||||
| 46 | meshcli -l |
|||||||
| 47 | ``` |
|||||||
| 48 | ||||||||
| 49 | Output probably looks like this, you'll want to use the USB one: |
|||||||
| 50 | ||||||||
| 51 | ``` |
|||||||
| 52 | BLE devices: |
|||||||
| 53 | No BLE HW |
|||||||
| 54 | ||||||||
| 55 | Serial ports: |
|||||||
| 56 | /dev/ttyS0 n/a [n/a] |
|||||||
| 57 | /dev/ttyUSB0 CP2102 USB to UART Bridge Controller - CP2102 USB to UART Bridge Controller [USB VID:PID=10C4:EA60 SER=0001 LOCATION=1-1] |
|||||||
| 58 | ``` |
|||||||
|
59 | ## Configure node |
||||||
| 60 | ||||||||
| 61 | ``` |
|||||||
| 62 | set radio 915.800,250,11,5 |
|||||||
| 63 | set name "🦷 dave test" |
|||||||
| 64 | ``` |
|||||||