# Catching LoRa, BLE & UART payload, framing & timeout bugs before flashing

**URL:** <https://www.thethingsnetwork.org/forum/t/catching-lora-ble-uart-payload-framing-timeout-bugs-before-flashing/74472>\
**Category:** Product Announcements\
**Created:** [December 1, 2026, 6:11pm UTC](https://www.thethingsnetwork.org/forum/t/catching-lora-ble-uart-payload-framing-timeout-bugs-before-flashing/74472 "2026-12-01T18:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phmorton](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@phmorton](https://www.thethingsnetwork.org/forum/u/phmorton)\
**Post date:** [December 1, 2026, 6:11pm UTC](https://www.thethingsnetwork.org/forum/t/catching-lora-ble-uart-payload-framing-timeout-bugs-before-flashing/74472/1 "2026-12-01T18:11:05Z")

</div>

Hi everyone, thanks for hosting the forum. Wanted to share a small open source tool i built recently for anyone working on node firmware. Its intended to move past basic syntax/formatting to check whether your build will fit across a slow link. Its a single file/offline tool (no accounts or connection needed beyond install) that checks .ino, C/C++, Rust, or Python against real LoRa limits before you flash a board.

Some key functionality:

- It calculates frame overhead and warns you if your message size or send rate goes over LoRaWAN DR0 limits. It also includes presets for BLE, Wi-Fi, UART, and custom profiles
- It’ll flag things like sending text/JSON inside a fast sensor loop, unbatched writes, missing network timeouts, or silent error blocks
- It includes a simple local proxy (no sudo or tc netem setup needed, works on Windows/macOS/Linux) that drops or delays packets on a repeatable schedule so you can test retry and timeout logic

There’s a browser sandbox available if you want to try the payload and airtime calculator without installing anything: [Gardawg Sandbox — Embedded Firmware, CI Pipeline & Constrained Link Checks](http://oceansniagara.com/gardawg/sandbox)

The rest of the documentation and binaries are here: [GitHub - Oceans-Niagara/gardawg: Static & physical-layer checks for embedded firmware, CI pipelines, and constrained links. · GitHub](https://github.com/Oceans-Niagara/gardawg)

I’d love to add more presets or checks if you find it useful or care to share any framing or timing bugs that trip up your node builds.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [December 1, 2026, 6:52pm UTC](https://www.thethingsnetwork.org/forum/t/catching-lora-ble-uart-payload-framing-timeout-bugs-before-flashing/74472/2 "2026-12-01T18:52:09Z")

</div>

Thanks for making this available, however it needs some tuning:

The default rate of 10hz is totally unrealistic for LoRaWAN. Specifically for SF12. Te stay within legal limits one packet every 10 minutes is more realistic and to stay within TTN fair usage limits one packet every hour.

Also for LoRaWAN you should **never** use json payloads as the overhead compared to packed binary is gigantic.

---

<div class="post-metadata">

**Author:** ![phmorton](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@phmorton](https://www.thethingsnetwork.org/forum/u/phmorton)\
**Post date:** [December 1, 2026, 9:10pm UTC](https://www.thethingsnetwork.org/forum/t/catching-lora-ble-uart-payload-framing-timeout-bugs-before-flashing/74472/3 "2026-12-01T21:10:33Z")

</div>

You’re right thats confusing. I updated the backend and the sandbox so that:

- rates go down to hour intervals and normal send intervals (like 1 msg / 10.0 min and 1 msg / 1.0 hr) alongside Hz
- both LoRa presets in the sandbox now default to 1 msg / 10.0 min
- selecting lora-sf12 also calculates the daily message cap for fair access airtime

Re the json thats the exact challenge the tool was meant to get in front of. People (maybe more so LLMs) default to json strings so the preset and static check are there specifically to show how it speeds past the 51-byte SF12 limit compared to packed binary.

Thanks for taking the time to review and get back to me.
