Free · No account · Yours to keep

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.

Local encoding and decodingBit-level packingEditable C output
Current example
21 bytes
SBD limit
340 bytes
Certus limit
100,000 bytes
0x5dbe258bf867204bffcb742554f592d3031301ff10

Free for everyone. Even better when you activate.

Use it free

No account, no limits, no card. Your fields, values, and code stay in your browser.

Budget with the same bytes

One click sends your verified size to the SBD or Certus calculator. See your deployment cost before you pay.

Activate in about 5 minutes

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.

No account requiredJSON save and restore
Ordinary page requests may still produce standard infrastructure logs as described in the Privacy Policy.
1 · Choose a transport

Set the payload limit

The optimizer checks both your example message and the worst-case field sizes against the selected Iridium transport.

2 · Define the message

Configure payload fields

Fields are encoded from top to bottom. Reorder them deliberately: a future parser must use this same schema and order.

Integers: value or length firstEnter an example to calculate its smallest length in the selected unit. Finish editing the length to generate a random valid value. The allowed range appears below each field.
Decimals: value or range firstEnter a decimal to infer a range and precision, or define your own range, accuracy, or length to generate an example. Inferred sizes fit this sample; choose bounds for future readings.
Text and bytes: value or cap firstAn example sets the content cap. Finish editing a cap to create a random example within it. The total includes a length prefix.
1
Latitude
latitude · Decimal / float
Example value
32.87051
Encoding
25 bits
Status
Ready
2
Longitude
longitude · Decimal / float
Example value
-117.24103
Encoding
26 bits
Status
Ready
3
Message sequence
message_sequence · Unsigned integer
Example value
37
Encoding
12 bits
Status
Ready
4
Temperature (tenths °C)
temperature_tenths_c · Signed integer
Example value
-27
Encoding
16 bits
Status
Ready
5
GPS fix
gps_fix · Boolean
Example value
true
Encoding
1 bit
Status
Ready
6
Device ID
device_id · ASCII text
Example value
BUOY-01
Encoding
100 bits
Status
Ready
7
Diagnostic bytes
diagnostic_bytes · Raw bytes
Example value
01ff10
Encoding
68 bits
Status
Ready

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.

Load a saved schema ↑

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 bytes

Select 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.

Latitude

Bits [0, 25) · 25 bits
Fixed-width field · no alignment gap

Decoded fields

Definition order · zero-based bit offsets · MSB first
Values decoded using the configured payload schema, with actual offsets.
#FieldTypeDecoded valueBit offsetBits used
1Scaled decimal32.87051025
2Scaled decimal-117.241032526
3Unsigned integer375112
4Signed integer-276316
5Booleantrue791
6ASCII text"BUOY-01"8060incl. 4-bit prefix
7Raw bytes01ff1014028incl. 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.

3 · Generate firmware

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

  1. Download the bundle and add telemetry_payload.h and telemetry_payload.c to the Telemetry Station SDK (opens in a new tab): next to your code in Telemetry_Station_SDK, or in Iridium_Development_Kit_9704/src/generated/ for the independent example for third-party 9704 LaunchPad hardware (keep the file names).
  2. Connect them in app_payload.c, the one file you edit: fill telemetry_payload_values_t from your readings and return telemetry_payload_encode().
  3. Set TS_MAX_PAYLOAD to at least 31 bytes. The SDK sends the raw bytes with ts_bear_send() and adds its own CRC.
  4. 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 */
You built the payload. Now put it to work.

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.