Protocol v3 (E-C111G/E-C121G)
Current E-C111G/E-C121G firmware sends one binary waveform frame every 100 ms. Multi-byte values are little-endian. Unlike legacy v1, frame length depends on the configured channels and sample rate.
| Byte offset | Field |
|---|---|
| 0 | Header: 01 FE |
| 2 | Signed 64-bit sample timestamp, milliseconds (use as absolute time only with device time synchronized) |
| 10 | 32-bit device configuration |
| 14 | 4-byte rotating metadata value |
| 18 | Samples grouped by channel, not interleaved |
| After samples | One XOR checksum over bytes from the timestamp through the last sample, then trailer EF 10 |
Configuration bits 31–30 encode packet interval (0 = 100 ms); bits 29–27 encode output rate (2/3/4/5 = 50/100/200/250 SPS); bit 26 indicates GNSS timing mode, not current lock. Starting at bits 25–24, successive two-bit fields describe each channel (0 absent, 1 signed 16-bit, 2 signed 24-bit, 3 signed 32-bit). The firmware sends the enabled geophone channels first (three 32-bit channels), then the enabled accelerometer channels (three 16-bit channels). At 100 SPS in six-channel mode, each channel contributes ten samples: the full frame is 18 + 10 × (3 × 4 + 3 × 2) + 3 = 201 bytes.
Rotating metadata
Use the timestamp's whole seconds modulo ten as the slot number. Interpret a slot only if its corresponding configuration bit is set; older firmware may not provide all diagnostics.
| Slot | Value |
|---|---|
| 0 | Device ID |
| 1–3 | Latitude, longitude, elevation respectively (float32, GNSS mode) |
| 4 | Temperature (float32) |
| 5 | Delay from sample timestamp to packet preparation, in microseconds (uint32; 0xFFFFFFFF = unavailable) |
| 6 | GNSS status (GNSS mode): PPS lock, position fix and NMEA time validity in bits 0–2 respectively; HDOP in tenths in bits 3–10 (255 = unavailable); satellite count in bits 11–15; seconds since PPS in the upper 16 bits |
For the wire layout and encoding, see the firmware's packet definitions and packet writer.