Skip to content

Issues with receiving consecutive LoRa messages - #35

Open
timoehl wants to merge 1 commit into
chandrawi:mainfrom
timoehl:main
Open

timoehl wants to merge 1 commit into
chandrawi:mainfrom
timoehl:main

Conversation

@timoehl

@timoehl timoehl commented Nov 6, 2025

Copy link
Copy Markdown

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 monitor function.
Here the events line_seqno is 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.seqno at 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.

Reset the sequence number for each line request.
@warrenjmcdonald

Copy link
Copy Markdown

@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.

@timoehl

timoehl commented Sep 25, 2026

Copy link
Copy Markdown
Author

It had been working for me, but i have since switched away from using this project.
You should look at/try #40 as this seems to solve the same problem in a more elegant way.

@warrenjmcdonald

Copy link
Copy Markdown

@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?

@timoehl

timoehl commented Sep 27, 2026

Copy link
Copy Markdown
Author

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.
And i found that RadioLib also makes it a lot easier to switch between transmitting and receiving, which i never really got working with this library.
But if you must stick with Python, i do not know of a good LoRa library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants