-
Notifications
You must be signed in to change notification settings - Fork 7
Telemetry protocol
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
TT_EVENT: 0x0C
TT_GAUGE32: 0x0D
TT_GAUGE_CONF32: 0x0E
TT_FEATURE_GET: 0x0F
TT_CHART32: 0x10
TT_CHART32_CONF: 0x11
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
TT_UNIT_kW: 0x06
TT_UNIT_RPM: 0x07
TT_UNIT_PERCENT: 0x08
TT_UNIT_mV: 0x09
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]