BobGlicksman / LoRa_experiments

tests of LoRA module ranging and low power
0 stars 1 forks source link

LoRa_experiments

Tests of LoRA module (RYLR998) ranging and low power.

The Reyax RYLR998 is an inexpensive LoRa "modem". It can perform point to point wireless data communication with other such modules.

The RYLR998 contains both a LoRa chip and a low power microcontroller. A host microcontroller communicates with an RLYR998 using serial port "AT" commands, making the RYLR998 very easy to use. In addition, the RYLR998 has a low power sleep mode that reduces current draw to about 10 microamps. The use of LoRa for long distance, low volume data communication along with the ability to sleep the module when not transmitting suggests that these modules could be ideal for use as long range contact open/close sensors.

The purpose of the tests documented in this repository is to explore the RYLR998 module capabilities in two respects:

There are two main folders in this repository:

LoRa set up

Note that for these tests you need to program each LoRa module by hand using a terminal emulator and an FTDI module. Connect four pins from the FTDI to the LoRa module (leave the reset pin on the LoRa module unconnected):

FTDI       LoRa
3v3        VDD
TXD        RXD
RXD        TXD
GND        GND

Plug the FTDI device into your laptop.

You can use the Arduino IDE Serial Monitor. With the IDE running go to Tools / Port and select the port of your FTDI device (it might be something like /dev/serial-1). Then click the Serial Monitor button on the upper right of the Arduino IDE. This brings up a new window. In the bottom menu select "Both NL & CR" and "115200 baud". In the command window at the top type AT and click Send. You should get the response +OK

Assuming you are now connected correctly to your LoRa module, perform the following commands:

AT+ADDRESS=0
AT+NETWORKID=3

Do the same for your second LoRa module.