12 bytes, 140 messages a day: designing payloads for Sigfox
Sigfox is built for devices that run for years on a battery and say a little at a time. That shows in two hard limits: an uplink carries at most 12 bytes, and in Europe radio rules allow around 140 uplinks per device per day. Downlinks, messages back to the device, are even scarcer: a few per day, 8 bytes each.
Those limits shape every product decision. Here is how to design for them, not against them.
Fitting data into 12 bytes
Twelve bytes is 96 bits, and that’s enough if you spend them carefully:
- Use the smallest type that fits. A battery percentage fits in one byte. A temperature from −40 to 85 °C at 0.1 ° resolution fits in two bytes as a signed integer.
- Send integers, not decimals. Multiply by 10 or 100 on the device and divide in the decoder.
- Pack flags into bits. Eight yes/no states fit in one byte.
- Leave out what you can derive. The message time comes with every message, so the device doesn’t need to send a timestamp for “now”. Send offsets for older readings.
- Reserve a few bits for the message type. Even if you only have one type today, you’ll want a status message or an alarm later.
Spending the daily budget
140 messages a day sounds like a lot, until you realise that’s roughly one every 10 minutes, and that every message costs battery. A few patterns help:
- Batch readings. Take a reading every 15 minutes, send four at a time every hour.
- Report changes, not repeats. Send when a value moves past a threshold, plus a regular heartbeat so you know the device is alive.
- Keep a reserve for alarms. A device that has spent its budget can’t tell you the door just opened.
The trade-off nobody mentions: decoding
The tighter you pack a payload, the more the meaning lives in the decoder rather than in the data. A bit-packed, multi-type, batched payload is efficient on air and impossible to read by eye. The decoder becomes as important as the firmware. It needs to be versioned with the firmware, tested against real messages, and able to re-decode history when you find a mistake.
That’s the reason Foxwatch describes payloads declaratively instead of with scripts. Bit fields, signed integers, scales and message types are part of the layout description, and each firmware revision gets its own decoder version. However tightly the device packs its 12 bytes, the readings on your dashboard are plain numbers.
Foxwatch keeps your Sigfox devices and their history, decodes their payloads and tells you when something needs attention. Try it on your own Sigfox account.