Closed lshalkhauser closed 4 years ago
Can confirm this is indeed happening. Verbose when reading received data from the module looks like this:
SX126x_Receive:
1E 0 A4 0 A4 0 33 0 34 0 31 0 38 0 37 0 39
SX126x_Receive_Interrupt:
1E 0 D4 0 D4 0 35 0 37 0 37 0 35 0 32 0 31
Judging by the status byte (A4 vs D4), it looks like SX126x is still in receive mode when reading data in the interrupt example - this most likely prevented the chip from clearing the buffer after reading. The example is missing lora.standby()
to put the module into standby mode before reading data by lora.readData()
, and lora.startReceive()
to restart listen mode afterwards. I will amend the example asap - thanks for reporting.
I also want to leave this here:
This is an excellent issue - it contains all the information that was needed to identify and resolve the problem in a few minutes. Very well done!
@lshalkhauser Could you please try with the new example? Thanks
It works perfectly now! Thank you for the help and for your amazing library!
Issue: When using the SX126x receive interrupt example, the received data is incorrect and repeats for 3 to 20 seconds. Below is a snippit of the transmitted and received data. Is there something I am doing wrong to cause this?
Setup:
Some other facts:
Transmitter:
Receiver: