TeltonikaCodec.Codec16 (TeltonikaCodec v0.1.0)

Copy Markdown View Source

Parser for Teltonika Codec 16 (ID 0x10).

Similar to Codec 8 but with 2-byte I/O element IDs and an additional Generation Type field indicating how the data was generated.

Generation Types

ValueMeaning
0On Exit
1On Entrance
2On Both
3Reserved
4Hysteresis
5On Change
6Eventual
7Periodical

I/O Element Layout

<<event_io_id::16, generation_type::8, total_count::8,
  n1_count::8, ...1-byte values (2-byte IDs)...,
  n2_count::8, ...2-byte values (2-byte IDs)...,
  n4_count::8, ...4-byte values (2-byte IDs)...,
  n8_count::8, ...8-byte values (2-byte IDs)...>>