diff --git a/LoRa-chat.ino b/LoRa-chat.ino index 60cb6f8..358dde7 100644 --- a/LoRa-chat.ino +++ b/LoRa-chat.ino @@ -188,7 +188,7 @@ void setup() { if (configtxt == 0) tft.print("SpreadingFactor = "), tft.println(SpreadingFactor); if ((n = myFile.fgets(lineT, sizeof(lineT))) > 0) SignalBandwidth = String(lineT).toInt(); - if ((SignalBandwidth < 78000) or (SignalBandwidth > 500000)) tft.println(F("SignalBandwidth value error.")), configtxt = 1; //config.txt error flag ON + if ((SignalBandwidth < 7800) or (SignalBandwidth > 500000)) tft.println(F("SignalBandwidth value error.")), configtxt = 1; //config.txt error flag ON if (configtxt == 0) tft.print("SignalBandwidth = "), tft.println(SignalBandwidth); if ((n = myFile.fgets(lineT, sizeof(lineT))) > 0) CodingRate4 = String(lineT).toInt(); diff --git a/README.md b/README.md index 3d72ef7..18c1b02 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,16 @@ You will be prompted to move stylus over corners until counter became 0. Just follow the instructions on the screen. Then setup will create "config.txt" file on SD root. First four lines is calibrated X-Y positions. Do not change! -Others are for LORA setup. Changing those values leads to communication variants. +Others are for LORA setup. Changing those values leads to communication variants: + +LoraFreq 137000000 to 525000000 +TxPower 1 to 20 +SpreadingFactor 6 to 12 +SignalBandwidth 7800 to 500000 (7800, 10400, 15600, 20800, 31250, 41700, 62500, 125000, 250000, 500000) +CodingRate4 5 to 8 +SyncWord 1 to 254 +Crc 0 or 1 + Two or more units with the same settings only will communicate. To repeat setup process delete settings.txt or command "resetconfig" then send. diff --git a/bin/LoRa-chat.v1.1.bin b/bin/LoRa-chat.v1.1.bin index ff28289..b082528 100644 Binary files a/bin/LoRa-chat.v1.1.bin and b/bin/LoRa-chat.v1.1.bin differ