Implement Phase 1 tasks 1.5-1.7 + 1.9 (Codec 8/8E/16 parsers + fixture suite)

- Codec 8 parser (1-byte IO IDs, no NX/Generation Type)
- Codec 8 Extended parser (2-byte IO IDs + variable-length NX section)
- Codec 16 parser (mixed widths + Generation Type, supports IO IDs > 255)
- Shared GPS element / timestamp helpers in gps-element.ts
- Fixture loader with bigint/Buffer sentinel encoding and auto-discovery
- 12 fixture pairs across codec8/8E/16 (canonical doc + synthetic edge cases)
- Cross-checked Codec 8 against Traccar's TeltonikaProtocolDecoder (no discrepancies)

26 new tests. Total 62 passing across 10 test files.
typecheck/lint/test/build all clean.
This commit is contained in:
2026-04-30 16:15:27 +02:00
parent 1e9219d14a
commit 381287bacc
34 changed files with 1672 additions and 1 deletions
+242
View File
@@ -0,0 +1,242 @@
/**
* Fixture loader for codec parser tests.
*
* Each fixture is a pair of files:
* <name>.hex — hex-encoded AVL body (CodecID + N1 + records + N2)
* <name>.expected.json — parsed expected output as { positions, ack_record_count }
*
* Special JSON sentinel values:
* "__bigint:<decimal>" → BigInt(decimal)
* "__buffer_b64:<base64>" → Buffer.from(base64, 'base64')
*
* The loader returns typed fixture objects; the auto-discovery helper
* `loadFixturesFromDir` reads all pairs in a directory so adding a new
* fixture file automatically produces a new test.
*/
import fs from 'node:fs';
import path from 'node:path';
import type { Position } from '../../src/core/types.js';
// ---------------------------------------------------------------------------
// JSON representation types (what lives on disk)
// ---------------------------------------------------------------------------
type JsonAttributeValue = number | string; // "__bigint:..." | "__buffer_b64:..." | number
type JsonPosition = {
readonly device_id: string;
readonly timestamp: string; // ISO 8601
readonly latitude: number;
readonly longitude: number;
readonly altitude: number;
readonly angle: number;
readonly speed: number;
readonly satellites: number;
readonly priority: 0 | 1 | 2;
readonly attributes: Record<string, JsonAttributeValue>;
};
type FixtureJson = {
readonly positions: readonly JsonPosition[];
readonly ack_record_count: number;
};
// ---------------------------------------------------------------------------
// Sentinel decoders
// ---------------------------------------------------------------------------
function decodeAttributeValue(raw: JsonAttributeValue): number | bigint | Buffer {
if (typeof raw === 'number') {
return raw;
}
if (raw.startsWith('__bigint:')) {
return BigInt(raw.slice('__bigint:'.length));
}
if (raw.startsWith('__buffer_b64:')) {
const b64 = raw.slice('__buffer_b64:'.length);
return Buffer.from(b64, 'base64');
}
throw new Error(`Unknown fixture sentinel value: ${JSON.stringify(raw)}`);
}
function decodePosition(json: JsonPosition): Position {
const attributes: Record<string, number | bigint | Buffer> = {};
for (const [key, value] of Object.entries(json.attributes)) {
attributes[key] = decodeAttributeValue(value);
}
return {
device_id: json.device_id,
timestamp: new Date(json.timestamp),
latitude: json.latitude,
longitude: json.longitude,
altitude: json.altitude,
angle: json.angle,
speed: json.speed,
satellites: json.satellites,
priority: json.priority,
attributes,
};
}
// ---------------------------------------------------------------------------
// Public types
// ---------------------------------------------------------------------------
export type LoadedFixture = {
readonly name: string;
readonly body: Buffer;
readonly expected: {
readonly positions: readonly Position[];
readonly ack_record_count: number;
};
};
// ---------------------------------------------------------------------------
// Loader
// ---------------------------------------------------------------------------
/**
* Loads a single fixture pair by base path (without extension).
*/
export function loadFixture(basePath: string): LoadedFixture {
const hexPath = `${basePath}.hex`;
const jsonPath = `${basePath}.expected.json`;
const rawHex = fs.readFileSync(hexPath, 'utf8');
// Strip all non-hex characters (whitespace, newlines)
const cleanHex = rawHex.replace(/[^0-9a-fA-F]/g, '');
const body = Buffer.from(cleanHex, 'hex');
const rawJson = fs.readFileSync(jsonPath, 'utf8');
const parsed = JSON.parse(rawJson) as FixtureJson;
const positions = parsed.positions.map(decodePosition);
return {
name: path.basename(basePath),
body,
expected: {
positions,
ack_record_count: parsed.ack_record_count,
},
};
}
/**
* Discovers all fixture pairs in a directory.
* A "fixture pair" is a `.hex` file that also has a corresponding
* `.expected.json` file with the same base name.
*
* Returns fixtures sorted by filename so test order is deterministic.
*/
export function loadFixturesFromDir(dirPath: string): readonly LoadedFixture[] {
const entries = fs.readdirSync(dirPath);
const hexFiles = entries
.filter((f) => f.endsWith('.hex'))
.sort();
return hexFiles.map((hexFile) => {
const baseName = hexFile.slice(0, -'.hex'.length);
return loadFixture(path.join(dirPath, baseName));
});
}
// ---------------------------------------------------------------------------
// Deep-equality comparator (bigint + Buffer aware)
// ---------------------------------------------------------------------------
/**
* Compares two attribute values for equality. Handles number, bigint, and
* Buffer types correctly (vitest's expect().toEqual does not handle Buffer
* and bigint mixed comparisons out of the box in all edge cases).
*/
function attributeValuesEqual(
actual: number | bigint | Buffer,
expected: number | bigint | Buffer,
): boolean {
if (Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) {
return actual.equals(expected);
}
if (typeof actual === 'bigint' && typeof expected === 'bigint') {
return actual === expected;
}
if (typeof actual === 'number' && typeof expected === 'number') {
return actual === expected;
}
return false;
}
/**
* Deep-equality check between actual parsed positions and expected positions.
* Returns a descriptive mismatch string on failure, or null on success.
*/
export function compareToExpected(
actual: readonly Position[],
expected: readonly Position[],
): string | null {
if (actual.length !== expected.length) {
return `Position count mismatch: got ${actual.length}, expected ${expected.length}`;
}
for (let i = 0; i < actual.length; i++) {
const a = actual[i];
const e = expected[i];
if (a === undefined || e === undefined) {
return `Undefined position at index ${i}`;
}
if (a.device_id !== e.device_id) {
return `[${i}] device_id: got "${a.device_id}", expected "${e.device_id}"`;
}
if (a.timestamp.getTime() !== e.timestamp.getTime()) {
return `[${i}] timestamp: got "${a.timestamp.toISOString()}", expected "${e.timestamp.toISOString()}"`;
}
if (a.latitude !== e.latitude) {
return `[${i}] latitude: got ${a.latitude}, expected ${e.latitude}`;
}
if (a.longitude !== e.longitude) {
return `[${i}] longitude: got ${a.longitude}, expected ${e.longitude}`;
}
if (a.altitude !== e.altitude) {
return `[${i}] altitude: got ${a.altitude}, expected ${e.altitude}`;
}
if (a.angle !== e.angle) {
return `[${i}] angle: got ${a.angle}, expected ${e.angle}`;
}
if (a.speed !== e.speed) {
return `[${i}] speed: got ${a.speed}, expected ${e.speed}`;
}
if (a.satellites !== e.satellites) {
return `[${i}] satellites: got ${a.satellites}, expected ${e.satellites}`;
}
if (a.priority !== e.priority) {
return `[${i}] priority: got ${a.priority}, expected ${e.priority}`;
}
const actualKeys = Object.keys(a.attributes).sort();
const expectedKeys = Object.keys(e.attributes).sort();
if (JSON.stringify(actualKeys) !== JSON.stringify(expectedKeys)) {
return `[${i}] attribute keys mismatch: got [${actualKeys.join(', ')}], expected [${expectedKeys.join(', ')}]`;
}
for (const key of actualKeys) {
const av = a.attributes[key];
const ev = e.attributes[key];
if (av === undefined || ev === undefined) {
return `[${i}] attribute "${key}" undefined`;
}
if (!attributeValuesEqual(av, ev)) {
return (
`[${i}] attribute "${key}": ` +
`got ${Buffer.isBuffer(av) ? `Buffer<${av.toString('hex')}>` : String(av)}, ` +
`expected ${Buffer.isBuffer(ev) ? `Buffer<${ev.toString('hex')}>` : String(ev)}`
);
}
}
}
return null;
}
+79
View File
@@ -0,0 +1,79 @@
# Teltonika Fixture Suite
Binary protocol fixtures for the Codec 8, 8E, and 16 parsers.
## File format
Each fixture is a pair:
| File | Purpose |
|------|---------|
| `<name>.hex` | Hex-encoded AVL body (CodecID + N1 + records + N2) |
| `<name>.expected.json` | Expected `Position[]` output and ACK record count |
### .hex format
The body slice only — **not** the full TCP packet (no preamble, no DataFieldLength, no CRC).
This is exactly what `frame.payload` contains and what `handler.handle(body, ctx)` receives.
Whitespace and newlines are stripped before parsing, so you can write multi-line hex for readability.
### .expected.json format
```json
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"21": 3,
"78": "__bigint:0",
"100": "__buffer_b64:AAEC"
}
}
],
"ack_record_count": 1
}
```
`device_id` is always `"FIXTURE"` — the IMEI comes from the session context, not the body.
#### Attribute value sentinels
| Sentinel | Decoded type | Example |
|---------|-------------|---------|
| number literal | `number` | `24079` |
| `"__bigint:<decimal>"` | `bigint` | `"__bigint:893700218"` |
| `"__buffer_b64:<base64>"` | `Buffer` | `"__buffer_b64:qw=="` |
For a zero-length Buffer, use `"__buffer_b64:"` (empty base64 string).
## How to add a new fixture
1. Get the AVL body bytes (from a live capture, a device emulator, or hand-computed).
2. Write the body as hex into `<name>.hex`.
3. Manually trace the expected parse output and write `<name>.expected.json`.
4. Run `pnpm test` — the new fixture is automatically discovered and tested.
No changes to any test file are needed.
## Bootstrap vs. synthetic fixtures
- **Bootstrap** fixtures (01-canonical, etc.) are sourced directly from the Teltonika documentation hex examples. Their expected outputs are read from the doc's parsed tables.
- **Synthetic** fixtures are hand-constructed for edge cases not covered by the canonical examples. Their expected outputs are computed manually and cross-checked.
## Cross-check methodology
Synthetic Codec 8 fixtures were cross-checked against the Traccar open-source
decoder (`TeltonikaProtocolDecoder.java`) for field widths and IO section parsing.
No discrepancies were found for the basic N1/N2/N4/N8 sections.
The NX section in Codec 8E has no equivalent in older Traccar versions; it was
verified by byte-level manual trace only.
@@ -0,0 +1,43 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-07-10T12:06:54.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 0,
"attributes": {
"__event": 11,
"__generation_type": 5,
"1": 0,
"3": 0,
"11": 39,
"66": 22074
}
},
{
"device_id": "FIXTURE",
"timestamp": "2019-07-10T12:06:55.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 0,
"attributes": {
"__event": 11,
"__generation_type": 5,
"1": 0,
"3": 0,
"11": 38,
"66": 22074
}
}
],
"ack_record_count": 2
}
+1
View File
@@ -0,0 +1 @@
10020000016BDBC7833000000000000000000000000000000000000B05040200010000030002000B00270042563A00000000016BDBC7871800000000000000000000000000000000000B05040200010000030002000B00260042563A000002
@@ -0,0 +1,61 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 0, "240": 0 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:47.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 1, "240": 1 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:48.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 2, "240": 2 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:49.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 3, "240": 3 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:50.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 4, "240": 4 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:51.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 5, "240": 5 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:52.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 6, "240": 6 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:53.000Z",
"latitude": 0, "longitude": 0, "altitude": 0, "angle": 0, "speed": 0, "satellites": 0,
"priority": 1,
"attributes": { "__event": 10, "__generation_type": 7, "240": 7 }
}
],
"ack_record_count": 8
}
@@ -0,0 +1 @@
10080000016B40D8EA3001000000000000000000000000000000000A00010100F0000000000000016B40D8EE1801000000000000000000000000000000000A01010100F0010000000000016B40D8F20001000000000000000000000000000000000A02010100F0020000000000016B40D8F5E801000000000000000000000000000000000A03010100F0030000000000016B40D8F9D001000000000000000000000000000000000A04010100F0040000000000016B40D8FDB801000000000000000000000000000000000A05010100F0050000000000016B40D901A001000000000000000000000000000000000A06010100F0060000000000016B40D9058801000000000000000000000000000000000A07010100F00700000008
@@ -0,0 +1,21 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1024,
"__generation_type": 5,
"1024": 255
}
}
],
"ack_record_count": 1
}
+1
View File
@@ -0,0 +1 @@
10010000016B40D8EA300100000000000000000000000000000004000501010400FF00000001
@@ -0,0 +1,24 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1,
"21": 3,
"1": 1,
"66": 24079,
"241": 24602,
"78": "__bigint:0"
}
}
],
"ack_record_count": 1
}
@@ -0,0 +1 @@
08010000016B40D8EA30010000000000000000000000000000000105021503010101425E0F01F10000601A014E000000000000000001
@@ -0,0 +1,22 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:05:36.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1,
"21": 3,
"1": 1,
"66": 24080
}
}
],
"ack_record_count": 1
}
@@ -0,0 +1 @@
08010000016B40D9AD80010000000000000000000000000000000103021503010101425E10000001
@@ -0,0 +1,35 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:01:01.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1,
"1": 0
}
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:01:19.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1,
"1": 1
}
}
],
"ack_record_count": 2
}
+1
View File
@@ -0,0 +1 @@
08020000016B40D57B480100000000000000000000000000000001010101000000000000016B40D5C19801000000000000000000000000000000010101010100000002
@@ -0,0 +1,19 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 0,
"attributes": {
"__event": 0
}
}
],
"ack_record_count": 1
}
+1
View File
@@ -0,0 +1 @@
08010000016B40D8EA300000000000000000000000000000000000000000000001
@@ -0,0 +1,125 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 0 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:47.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 1 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:48.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 2 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:49.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 3 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:50.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 4 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:51.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 5 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:52.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 6 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:53.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 7 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:54.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 8 }
},
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:55.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": { "__event": 1, "1": 9 }
}
],
"ack_record_count": 10
}
@@ -0,0 +1 @@
080A0000016B40D8EA300100000000000000000000000000000001010101000000000000016B40D8EE180100000000000000000000000000000001010101010000000000016B40D8F2000100000000000000000000000000000001010101020000000000016B40D8F5E80100000000000000000000000000000001010101030000000000016B40D8F9D00100000000000000000000000000000001010101040000000000016B40D8FDB80100000000000000000000000000000001010101050000000000016B40D901A00100000000000000000000000000000001010101060000000000016B40D905880100000000000000000000000000000001010101070000000000016B40D909700100000000000000000000000000000001010101080000000000016B40D90D580100000000000000000000000000000001010101090000000A
@@ -0,0 +1,24 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T11:36:32.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 1,
"1": 1,
"17": 29,
"16": 22949000,
"11": "__bigint:893700218",
"14": "__bigint:500686954"
}
}
],
"ack_record_count": 1
}
+1
View File
@@ -0,0 +1 @@
8E010000016B412CEE000100000000000000000000000000000000010005000100010100010011001D00010010015E2C880002000B000000003544C87A000E000000001DD7E06A000001
@@ -0,0 +1,22 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 1,
"attributes": {
"__event": 0,
"1": "__buffer_b64:qw==",
"2": "__buffer_b64:3q2+7wECAwQ=",
"3": "__buffer_b64:YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foA=="
}
}
],
"ack_record_count": 1
}
+1
View File
@@ -0,0 +1 @@
8E010000016B40D8EA3001000000000000000000000000000000000000030000000000000000000300010001AB00020008DEADBEEF01020304000300406162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA001
@@ -0,0 +1,20 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 0,
"attributes": {
"__event": 0,
"5": "__buffer_b64:"
}
}
],
"ack_record_count": 1
}
+1
View File
@@ -0,0 +1 @@
8E010000016B40D8EA300000000000000000000000000000000000000001000000000000000000010005000001
@@ -0,0 +1,20 @@
{
"positions": [
{
"device_id": "FIXTURE",
"timestamp": "2019-06-10T10:04:46.000Z",
"latitude": 0,
"longitude": 0,
"altitude": 0,
"angle": 0,
"speed": 0,
"satellites": 0,
"priority": 0,
"attributes": {
"__event": 0,
"7": "__buffer_b64:AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhscHR4fICEiIyQlJicoKSor"
}
}
],
"ack_record_count": 1
}
@@ -0,0 +1 @@
8E010000016B40D8EA300000000000000000000000000000000000000001000000000000000000010007012C000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B01