kc1awv / KISSLoRaTNC

Arduino based LoRa KISS TNC
GNU General Public License v3.0
27 stars 5 forks source link

LoRa radio parameters can be set/saved via KISS TNC Hardware commands #5

Closed robojay closed 2 years ago

robojay commented 2 years ago

To experiment with LoRa parameters and not have to recompile the firmware every time, a method to change the LoRa radio parameters was needed. Fortunately, the KISS SetHardware command could be used to do this. Check out KISS.h for details.

Another issue is on Uno and Nano (and maybe other) Arduinos, when the serial port is opened, the processor is reset. That means if settings were adjusted in one program, the serial port closed, and then another program was used that opens the serial port, the settings would be lost. To get around this, settings are now stored in EEPROM (using the basic Arduino EEPROM library).

This is fine for the ATmega type processors currently supported environments in the platform.io file. It won't be fine when other processor types are added. When they are, the EEPROM code will need to be modified.

robojay commented 2 years ago

These are two very rough python scripts I used to do some testing. They require pyserial.

kiss_tests.zip

robojay commented 2 years ago

Also tested various settings against a LoRa module running https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS firmware.