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

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

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

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.

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.