Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2022 Changes in this version + const MsgConfigQuery + const MsgConfigQueryResp + const MsgDeviceAlarm + const MsgDeviceAlarmResp + const MsgDeviceInfo + const MsgDeviceInfoResp + const MsgLogin + const MsgLoginResp + const MsgRemoteCtrl + const MsgRemoteCtrlResp + const PacketPrefix + const PacketSuffix + const SeparatorSize + var BmsAlarmSignalText = map[string]string + var BmsFaultSignalText = map[string]string + var BoxAlarmSignalText = map[string]string + var BoxFaultSignalText = map[string]string + var CabAlarmSignalText = map[string]string + var CabFaultSignalText = map[string]string + var HandleSignalText = map[string]string + var ResponseResult = map[FixtureResponse]string + var SignalText = map[CommandType](map[string]string) + var SwitchControlSignalText = map[string]string + var SwitchFinishSignalText = map[string]string + type AlarmEvent struct + AlarmDesc CommandType + AlarmFlag int + AlarmTime int + BatteryId string + DoorId int + EmptBatsoc string + EmptBatteryId string + EmptDoorId string + FullBatsoc string + FullBatteryId string + FullDoorID string + Id string + UserId string + type BatteryInfo struct + BatCtrl string + BatCycle string + BatFulTime string + BatSta string + BatT string + BatVol string + BatchgTime string + BatteryId string + BmsAlarm []string + BmsFault []string + BmsT string + CellNum string + CellVol []string + ChgCur string + DoorId string + EnvT string + Soc string + Soh string + TotalAH string + type BoxInfo struct + BatteryId []string + BoxAlarm string + BoxChgSta string + BoxEnable string + BoxFault []string + BoxFireSta string + BoxHeatSta string + BoxLockSta string + BoxSta string + BoxT string + DoorId string + DoorSta string + LowpowerSta string + type CabinetInfo struct + BatFullA string + BatFullB string + BatFullC string + BatNum string + CabAlarm []string + CabCur string + CabEnable string + CabFault []string + CabSta string + CabT string + CabVol string + DBM string + EmKwh string + LocationSta string + type CabinetState string + const EXCEPTION + const EXCHANGE + const FORBIDDEN + const FREE + const INIT + const RETURN + const TAKE + type CommandType string + const AlarmTemp + const BmsAlarm + const BmsFault + const BoxAlarm + const BoxFault + const CabAlarm + const CabFault + const Handle + const MaxChgCurrent + const OverTemp + const RecOverTemp + const RecalarmTemp + const StartHeat + const StopHeat + const SwCabIPPort + const SwCabReset + const SwCabSocControl + const SwCabTcpPort + const SwCabTempControl + const SwCabVolControl + const SwitchControl + const SwitchFinish + func (c CommandType) Get() map[string]string + func (c CommandType) String(signalValue string) string + type ConfigParams struct + Id string + type ConfigQuery struct + DevId string + ParamList []ConfigParams + TxnNo string + type ConfigQueryResp struct + DevId string + Result int + ResultList []ConfigRespResult + TxnNo string + type ConfigRespResult struct + Id string + Value string + type CtrlParams struct + BatteryId string + DoorId int + Id string + ScanBattery int + UserId string + Value string + Voltage string + type CustomPacker struct + MaxDataSize int + func NewCustomPacker() *CustomPacker + func (d *CustomPacker) Pack(entry *message.Entry) ([]byte, error) + func (d *CustomPacker) Unpack(reader io.Reader) (*message.Entry, error) + type DeviceAlarm struct + AlarmList []AlarmEvent + DevId string + TxnNo string + type DeviceAlarmResp struct + DevId string + Result string + TxnNo string + type DeviceInfo struct + BatList []BatteryInfo + BoxList []BoxInfo + CabList []CabinetInfo + DevId string + IsFull int + TxnNo string + type DeviceInfoResp struct + DevId string + Result string + TxnNo string + type DeviceType int + const BATTERY + const CHARGING_CABINET + const EXCHANGE_CABINET + type FixtureResponse int + const Failure + const Success + func (l FixtureResponse) String() string + type Login struct + CabSta CabinetState + Ccid string + DevId string + DevType DeviceType + HardVersion string + Imei string + Imsi string + ProtocolVersion string + SoftVersion string + TxnNo string + type LoginResp struct + DevId string + Result int + TxnNo string + Value int + type MsgType struct + MsgType int + type RemoteCtrl struct + DevId string + ParamList []CtrlParams + TxnNo string + type RemoteCtrlResp struct + DevId string + Result string + TxnNo string