Skip to content

Commit

Permalink
Done
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed May 23, 2021
1 parent 9ac4c8d commit e6fc161
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LoRa-chat.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Binary file modified bin/LoRa-chat.v1.1.bin
Binary file not shown.

0 comments on commit e6fc161

Please sign in to comment.