Hi. I have developed a network based on Arduino101-LoRa(SX1276) and have been successfully using SX1272 library. In the receiver side node, I have a rare packet loss problem. Somewhere in my main loop, the system waits for an upcoming packet for 2 (sec) executing the following command: sx1272.receivepackettimeout(2000).
If it catches something, it goes to execute the respective subroutines where it may lose the next packet in the meantime. I guess, I have to be able to either use hardware interrupt or read FIFO where the lost packet is stored. However, I don’t know how to do this? My proposed command (sx1272.receive…) just reads the upcoming packet, not already stored packet in FIFO.
Then, I have three brief questions:
- How to implement hardware interrupt in SX1276?
- How to check and read the buffer before receiving the next packet?
- Am I correct to use SX1272 library for SX1276?
Thanks a lot in advance for any help,