Always use EqNumber 1 to guarantee that the telegram is used for ComMaster
This TAB Plugin manages the whole communication between ComMaster/RadioMaster Backpack and Excon. The plugin use a Udp Socket to read and write data.
The telegram need to be send with Equipment Number 1. The PowerMethod need to be PowerOff. The ComMaster will immediately shut down after the command was send. Structur SetPowerDeviceRequest:
Header
- EqNumber : Integer
- Timestamp : MsecsSinceEpoch
powerType : Enum | Unknown = 0, PowerOn = 1, PowerOff = 2, Need to be PowerOff for ComMaster
subdeviceId : Integer | Not necessary for ComMaster
Under construction…
The telegram hold the informnation for each battery.
Structure BatteryInfo:
Header
- EqNumber : Integer
- Timestamp : MsecsSinceEpoch
Vector of BatteryStates
Structure BatteryState:
batteryPort : Integer | Right or left battery slot in Backup
battery : Integer | State of charge 0-5, 0 = Empty , 5 = Full
voltage : Integer | Maybe in mV
temperature : Integer | In °C
frequency : Integer
generic : Integer
current : Integer
switchOrValue : Boolean
serialNumber : String
Structure of BatteryAlarm:
Header
- EqNumber : Integer
- Timestamp : MsecsSinceEpoch
id : Integer
description : String
acknowledge : Boolean
condition : Boolean
uniqueAlarmNumber : Integer
alarmTime : Uint64
Hold the current power state of the ComMaster Backpack
Structure of ServiceControl:
Header
- EqNumber : Integer
- Timestamp : MsecsSinceEpoch
serviceControlState : ServiceControlEnum | 0 = PRESHUTDOWN (Device will prepare shutdown), 1 = SHUTDOWN (The devive will shutdown now), 2 = STOP (The device is off now)
Author: Niklas Schmidt
Last Update: 05.06.22