Skip to content

Telemetry protocol

Jens Kerrinnes edited this page Mar 25, 2019 · 1 revision

Telegram types:
TT_GAUGE: 0x01
TT_GAUGE_CONF: 0x02
TT_CHART: 0x03
TT_CHART_DRAW: 0x04
TT_CHART_CONFIG: 0x05
TT_CHART_CLEAR: 0x06
TT_CHART_LINE: 0x07
TT_CHART_TEXT: 0x08
TT_CHART_TEXT_CENTER: 0x09
TT_STATUS: 0x0A
TT_CONFIG_GET: 0x0B

Units:
TT_UNIT_NONE: 0x00
TT_UNIT_V: 0x01
TT_UNIT_A: 0x02
TT_UNIT_W: 0x03
TT_UNIT_Hz: 0x04
TT_UNIT_C: 0x05

Gauge/Chart:
1 byte start: 0xFF
1 byte length: 0x04
1 byte type: TT_GAUGE/TT_CHART
1 byte gauge number
1 byte LSB value (int)
1 byte MSB value (int)

Plot chart points:
1 byte start: 0xFF
1 byte length: 0x02
1 byte type: TT_CHART_DRAW
1 byte: 0x00

Chart clear:
1 byte start: 0xFF
1 byte length: 0x02
1 byte type: TT_CHART_CLEAR
1 byte: 0x00

Chart configuration:
1 byte start: 0xFF
1 byte length
1 byte type: TT_CHART_CONFIG
1 byte chart number
1 byte LSB value min (int)
1 byte MSB value min (int)
1 byte LSB value max (int)
1 byte MSB value max (int)
1 byte LSB value offset (int)
1 byte MSB value offset (int)
1 byte unit
x bytes descriptor (string)

Gauge configuration:
1 byte start: 0xFF
1 byte length
1 byte type: TT_GAUGE_CONFIG
1 byte gauge number
1 byte LSB value min (int)
1 byte MSB value min (int)
1 byte LSB value max (int)
1 byte MSB value max (int)
x bytes descriptor (string)

Configuration dump:
1 byte start: 0xFF
1 byte length
1 byte type: TT_CONFIG_GET
x bytes help text
1 byte: ';'
x bytes values (all values as string): [param name];[value];[type];[size];[min];[max]

Clone this wiki locally
You can’t perform that action at this time.