DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
rtcm3.h File Reference

RTCM 3.x framing + station-reference message codec (DETWS_ENABLE_NTRIP_CASTER). More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

RTCM 3.x framing + station-reference message codec (DETWS_ENABLE_NTRIP_CASTER).

The pure, zero-heap, host-testable core of the GNSS RTK base / NTRIP caster: the RTCM3 transport frame (0xD3 preamble, 6 reserved + 10-bit length, payload, 24-bit CRC-24Q) and the MSB-first bit I/O every RTCM3 message is packed with, plus encode/decode of the Stationary Antenna Reference Point messages 1005 (no height) and 1006 (with antenna height) that advertise the base's surveyed position.

RTCM 10403.x numbers every field (DFxxx) and packs them big-endian, MSB-first, with no byte alignment inside the payload; this codec follows that layout exactly and is verified byte-for-byte against pyrtcm / RTKLIB. ECEF coordinates use the standard 0.0001 m (0.1 mm) resolution as 38-bit signed integers, so they are carried here in units of 0.1 mm.

Observation messages (the MSM sets 1074/1077/1084/... that actually let a rover fix ambiguities) are built from a receiver's raw carrier-phase / pseudorange measurements and are added when a raw-capable receiver (u-blox RXM-RAWX: F9P / M8T class) drives the base; this file is the framing + reference-point foundation they and the caster share.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file rtcm3.h.