I plan to use the above units in a camera trap project. The radio modules have only recently arrived and I am just playing with them now and learning how they work. I have a transmit setup and a separate receive set up.
For testing I have got the tx side to send signal that turned on an LED at the Rx side, the 2 secs later another signal to turn it off.
I am seeing a 1 second delay between the receive circuit getting the signal and the turning on of the LED. What could be causing this?
Serial.setTimeout() sets the maximum milliseconds to wait for serial data. It defaults to 1000 milliseconds.
1000 milliseconds would be 1 second. So readString will wait 1 second after the last character received before returning. And there is your 1 second delay.
There will also be latency caused by the UART serial interface on the RYLR998 module which first has to receive the serial instructions and convert the data into instructions for the SPI based LoRa module, then the reverse happens on the receive side.
For minimum latency, use the standard SPI based LoRa modules which eliminate all the potential delays caused by the RYLR998 UART conversions.