Skip to content

fix: Increase window to decode 13 byte payloads#26

Merged
hunterhubble merged 1 commit into
HubbleNetwork:mainfrom
hunterhubble:error-handle
Jul 2, 2026
Merged

fix: Increase window to decode 13 byte payloads#26
hunterhubble merged 1 commit into
HubbleNetwork:mainfrom
hunterhubble:error-handle

Conversation

@hunterhubble

Copy link
Copy Markdown
Contributor

Previously, we decoded 1s windows of IQ samples, that were appended by 0.5s chunks. That chunk ended up being 0.55-0.58 seconds worth of chunks. This made it common for packets with 13 byte payloads to be missed if their preamble began in the very beginning of the chunk, because it would be cut off when the chunk was appeneded to the window.

Increases the DECODE_INTERVAL_S to 0.6s, which more accurately reflects the amount that the window advances. Increases to deocde window to 1.5s so that longer packets don't get lost.

The wider, overlapping window decodes one packet on multiple passes, so add strict content+time de-duplication: two decodes are merged only if device id, auth tag AND payload match and their start times are within 1 s. Genuinely distinct packets are never merged.

Previously, we decoded 1s windows of IQ samples, that were appended by 0.5s
chunks. That chunk ended up being 0.55-0.58 seconds worth of chunks. This
made it common for packets with 13 byte payloads to be missed if their
preamble began in the very beginning of the chunk, because it would be cut
off when the chunk was appeneded to the window.

Increases the DECODE_INTERVAL_S to 0.6s, which more accurately reflects the
amount that the window advances. Increases to deocde window to 1.5s so that
longer packets don't get lost.

The wider, overlapping window decodes one packet on multiple passes, so add
strict content+time de-duplication: two decodes are merged only if device id,
auth tag AND payload match and their start times are within 1 s. Genuinely distinct
packets are never merged.

Signed-off-by: hunterhubble <hunter@hubble.com>
@hunterhubble

Copy link
Copy Markdown
Contributor Author

Tested with our 5GA devices + ESP32C6, each device decoded 56/56 packets of 13 byte payloads

@hunterhubble hunterhubble merged commit 56c19ef into HubbleNetwork:main Jul 2, 2026
5 checks passed
@hunterhubble hunterhubble deleted the error-handle branch July 2, 2026 16:29
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