Repository navigation
Conversation
Reset the sequence number for each line request.
|
@timoehl how has this been working for you after this change? I have not tried this yet, but I am having issues with misaligned and corrupt packets when there are consecutive received. About 1 in 5 are corrupt. |
|
It had been working for me, but i have since switched away from using this project. |
|
@timoehl Thanks. I did have a look at this, which may address the issue. I added some debugging log output and it is clear there is a sequence problem as split payloads are not being reassembled and also non split possibly being misidentified as split. Did you switch away from LoRa, or to a different library or platform? |
|
I still use LoRa, but for the sake of compatibility, and for ease of use, is switched to using RadioLib. My main reason was that i wanted more direct control over the Hardware. |
I ran into the issue that i was unable to receive multiple consecutive LoRa packets.
These could be tracked to the handling of the sequence number of the edge events in the
monitorfunction.Here the events
line_seqnois used for de-duplication, however this is only unique per specific line.My approach to resolving this issue was to simply reset the stored
self.seqnoat the beginning of the monitor function. This impacts the event de-duplication, however I do not believe this poses an issue.Alternatively, one could use the events global_seqno in order to have the guarantee that no event is handled twice.