document new options

This commit is contained in:
Kevin Hester
2021-03-13 10:27:03 +08:00
parent 10cb8f0732
commit aae2a03b1b
2 changed files with 18 additions and 1 deletions

View File

@@ -89,6 +89,23 @@ You can even set the channel preshared key to a particular AES128 or AES256 sequ
meshtastic --setchan psk 0x1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b --info
```
Use "--setchan psk none" to turn off encryption.
Use "--setchan psk random" will assign a new (high quality) random AES256 key to the primary channel (similar to what the Android app does when making new channels).
Use "--setchan psk default" to restore the standard 'default' (minimally secure, because it is in the source code for anyone to read) AES128 key.
## Ham radio support
Meshtastic is designed to be used without a radio operator license. If you do have a license you can set your operator ID and turn off encryption with:
```
meshtastic --port /dev/ttyUSB1 --set-ham KI1345
Connected to radio
Setting HAM ID to KI1345 and turning off encryption
Writing modified channels to device
```
## FAQ/common problems
This is a collection of common questions and answers from our friendly forum.

View File

@@ -71,7 +71,7 @@ def fromPSK(valstr):
if valstr == "random":
return genPSK256()
elif valstr == "none":
return bytes([0]) # Use default channel psk 1
return bytes([0]) # Use the 'no encryption' PSK
elif valstr == "default":
return bytes([1]) # Use default channel psk
elif valstr.startswith("simple"):