Optimize data to lower costs.
The Payload Optimizer turns your sensor values into compact, bit-packed messages. Preview the exact hex, check it against SBD and Certus limits, and take home editable C. We built it for every telemetry engineer, and it is yours to use with no strings attached.
Free for everyone. Even better when you activate.
No account, no limits, no card. Your fields, values, and code stay in your browser.
One click sends your verified size to the SBD or Certus calculator. See your deployment cost before you pay.
Register your IMEIs, fund with prepaid credits, and your data is ready in the dashboard and API. We run the infrastructure.
Build locally. Save your configuration when ready.
Field definitions, example values, generated hex, and C code are calculated locally. Download a JSON file to keep your work or load it again later. If you choose to email your configuration, your email address, name (optional), saved fields, and code are sent to Telemetry Station to deliver that email.
Set the payload limit
The optimizer checks both your example message and the worst-case field sizes against the selected Iridium transport.
Configure payload fields
Fields are encoded from top to bottom. Reorder them deliberately: a future parser must use this same schema and order.
Decode · Inspect · Integrate
From hex to sensor values.
Paste the application payload from your firmware to inspect every field in definition order. Decoding uses the fields above and runs entirely in your browser.
Accepts a leading 0x, spaces and newlines. Paste payload bytes only, without transport headers. Changing the schema reinterprets these bytes; use the exact schema used by the sending firmware.
Decoded 7 fields · 168 data bits · 0 zero padding bits
Byte inspector
21 bytesSelect a field below to highlight its bytes, including its length prefix. Click a byte to select its field; click again to cycle through fields sharing that byte.
Bits [0, 25) · 25 bits
Fixed-width field · no alignment gap
Decoded fields
Definition order · zero-based bit offsets · MSB first| # | Field | Type | Decoded value | Bit offset | Bits used |
|---|---|---|---|---|---|
| 1 | Scaled decimal | 32.87051 | 0 | 25 | |
| 2 | Scaled decimal | -117.24103 | 25 | 26 | |
| 3 | Unsigned integer | 37 | 51 | 12 | |
| 4 | Signed integer | -27 | 63 | 16 | |
| 5 | Boolean | true | 79 | 1 | |
| 6 | ASCII text | "BUOY-01" | 80 | 60incl. 4-bit prefix | |
| 7 | Raw bytes | 01ff10 | 140 | 28incl. 4-bit prefix |
Numeric values export as decimal strings to preserve precision, including 64-bit counters. Variable-length fields shift subsequent offsets according to their actual length. A successful decode checks this layout, lengths and padding; it does not verify message authenticity or identify a mismatched schema with the same layout.
C code for the Telemetry Station SDK
Generate the exact application payload structure used by this schema. For embedded firmware, use the two-file SDK export; for a self-contained learning example, use Standalone C. Neither output adds satellite modem framing or transport CRC.
Drop-in SDK output
- Download the bundle and add
telemetry_payload.handtelemetry_payload.cto the Telemetry Station SDK (opens in a new tab): next to your code inTelemetry_Station_SDK, or inIridium_Development_Kit_9704/src/generated/for the independent example for third-party 9704 LaunchPad hardware (keep the file names). - Connect them in
app_payload.c, the one file you edit: filltelemetry_payload_values_tfrom your readings and returntelemetry_payload_encode(). - Set
TS_MAX_PAYLOADto at least 31 bytes. The SDK sends the raw bytes withts_bear_send()and adds its own CRC. - Run the firmware to read the modem IMEI, size your plan in the calculator with these bytes per message, then activate with the IMEI to receive your
TS_TOPIC_ID.
Decoder generation is on by default; disable it with TELEMETRY_PAYLOAD_ENABLE_DECODE=0.
Schema ID: ts-payload-v1-97a8f3e1 · maximum 31 bytes · sample 21 bytes / 168 bits
ZIP contains the two generated C files, a C golden-vector test, the matching saved schema JSON, and installation instructions. The SDK C output is generated from fields, not from edited Standalone C. Re-export after changing any field layout.
/* AUTOGENERATED by Telemetry Station Payload Optimizer. Do not edit.
* Add telemetry_payload.h/.c to the Telemetry Station SDK (github.com/Telemetry-Station/sdk) and call from app_payload.c.
* Uses MSB-first bit packing, two's-complement, offset-scaled decimals,
* length prefixes, and zero final padding; NO modem framing or CRC here.
* Schema: ts-payload-v1-97a8f3e1 (sbd); MAX = 248 bits / 31 bytes.
* Generated codec is OPTIONAL; ts_bear_send() also accepts any raw bytes.
*/
#ifndef TELEMETRY_PAYLOAD_H
#define TELEMETRY_PAYLOAD_H
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#define TELEMETRY_PAYLOAD_SCHEMA_ID "ts-payload-v1-97a8f3e1"
#define TELEMETRY_PAYLOAD_WIRE_VERSION 1u
#define TELEMETRY_PAYLOAD_MAX_BYTES 31u
#define TELEMETRY_PAYLOAD_MAX_BITS 248u
#define TELEMETRY_PAYLOAD_NETWORK_SBD 1
/* Small MSP430 targets may have 16-bit size_t: reject impossible schemas. */
#if defined(SIZE_MAX) && TELEMETRY_PAYLOAD_MAX_BITS > SIZE_MAX
#error "Payload layout exceeds size_t addressability on this target"
#endif
#ifndef TELEMETRY_PAYLOAD_ENABLE_DECODE
#define TELEMETRY_PAYLOAD_ENABLE_DECODE 1
#endif
/* The application owns buffers. No malloc, globals, or giant MCU arrays.
* For ASCII/bytes: assign pointer AND _length before ENCODING.
* For DECODING: assign writable pointer AND _capacity before calling.
* _length is filled on decode. ASCII requires capacity >= length + 1.
*/
typedef struct {
double latitude;
double longitude;
uint64_t message_sequence;
int64_t temperature_tenths_c;
bool gps_fix;
char *device_id;
size_t device_id_length; /* Explicit length when ENCODING. */
size_t device_id_capacity; /* Destination capacity when DECODING. */
uint8_t *diagnostic_bytes;
size_t diagnostic_bytes_length; /* Explicit length when ENCODING. */
size_t diagnostic_bytes_capacity; /* Destination capacity when DECODING. */
} telemetry_payload_values_t;
bool telemetry_payload_encode(const telemetry_payload_values_t *values,
uint8_t *output, size_t capacity, size_t *bytes_written, size_t *bits_written);
#if TELEMETRY_PAYLOAD_ENABLE_DECODE
bool telemetry_payload_decode(const uint8_t *input, size_t input_bytes,
telemetry_payload_values_t *values);
#endif
#endif /* TELEMETRY_PAYLOAD_H */
Turn this payload into live data.
The optimizer is free to keep. When you are ready, send this exact size to the calculator, see your cost, and activate in about five minutes. Messages are stored for up to five years at no extra cost, and your dashboard and API receive the payload you designed.