Small CLI monitoring tool to decode proprietary [...] protocol and display info in human readable representation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ycli-mon/yabl/types.go

253 lines
7.4 KiB

package yabl
type ContactorInternalState struct {
UnitId uint
ContactorReady *BoardReadyType
ContactorOn *BooleanType
UnexpectedState *ErrorType
Isolated *ErrorType
DebugEnabled *BooleanType
}
type ContactorInternalErrors struct {
UnitId uint
BoardReady *BoardReadyType
OtherError *ContactorInternalOtherErrorType
ContactorGroupChanged *ContactorGroupChangedType
UnexpectedFormation *ContactorInternalOtherErrorType
CpuNotReady *ErrorType
PuNotReady *ErrorType
Debug *BooleanType
PresentContactorMode *ContactorModeType
}
type ContactorsInternalForce struct {
UnitId uint
ForceModeEnabled *BooleanType
ForceModeValue *ForceModeType
}
type ContactorInternalDebug struct {
UnitId uint
DebugModeOn *BooleanType
DebugContactorOn *DebugSwitchModeType
}
type PuPresentEnergy struct {
UnitId uint
V2GMode *V2GModeType
VoltageBefore *Voltage11BitType
VoltageAfter *Voltage11BitType
PresentCurrent *Current10BitType
}
type PuPeriphery struct {
UnitId uint
ConnectorInsert *BooleanType
ContactorOn *BooleanType
ConnectorLocked *BooleanType
CpLineLevel *CpLineLevelType
IsolationState *IsolationStateType
ChargingAllowed *BooleanType
PwmEnabled *BooleanType
CpLineVoltage *Voltage9BitType
}
type LogicAuth struct {
UnitId uint
AuthMode *AuthModeType
AuthState *AuthStateType
}
type LogicEnergyMode struct {
UnitId uint
V2gMode *V2GModeType
CurrentMax *Current10BitType
VoltageMax *Voltage11BitType
PowerMax *Power14BitType
}
type LogicErrors struct {
UnitId uint
BoardReady *BoardReadyType
NotReadySettings *ErrorType
}
type LogicWorkingMode struct {
UnitId uint
TargetContactorMode *ContactorModeType
Availability *BooleanType
}
type CpuPresentEnergy struct {
UnitId uint
PowerDirectionMode *V2GModeType
PresentCurrent *Current10BitType
PresentVoltage *Voltage11BitType
}
type CpuPeriphery struct {
UnitId uint
ContactorInput *BooleanType
CircuitBreakerInput *BooleanType
CircuitBreakerPowerCBInput *BooleanType
}
type CpuEnergySettings struct {
UnitId uint
CurrentMax *Current10BitType
VoltageMax *Voltage11BitType
PowerMax *Power14BitType
TargetBatteryVoltage *Voltage11BitType
TargetGoalVoltage *Voltage11BitType
}
type CpuErrors struct {
UnitId uint
BoardReady *BoardReadyType
OtherError *OtherError4BitType
RedButtonHard *ErrorType
RedButtonSoft *ErrorType
ModulesGone *ErrorType
GridVoltageHighErr *ErrorType
GridVoltageHighWarn *ErrorType
GridVoltageLowWarn *ErrorType
GridVoltageLowErr *ErrorType
GridVoltageLow *Voltage11BitType
GridVoltageHigh *Voltage11BitType
GridVoltageEmpty *ErrorType
NotReadySecc *ErrorType
NotReadyPu *ErrorType
NotReadyContactors *ErrorType
DebugConvertersEnabled *ErrorType
ContactorInputError *ErrorType
NotReadyPeriphery *ErrorType
}
type CpuDebug struct {
UnitId uint
DebugModeOn *BooleanType
DebugContactorInputOn *DebugSwitchModeType
DebugCircuitBreakerOn *DebugSwitchModeType
DebugRedButtonSoftware *DebugSwitchModeType
}
type PuErrors struct {
UnitId uint
BoardReady *BoardReadyType
OtherError *OtherError4BitType
IncorrectVoltage *ErrorType
IncorrectVoltageValue *Voltage11BitType
IncorrectCurrent *ErrorType
IncorrectCurrentValue *Current10BitType
IsolationBroken *ErrorType
CpLineBroken *ErrorType
CpLineGap69 *ErrorType
CableReady *BoardReadyType
NotReadyCpu *ErrorType
NotReadySecc *ErrorType
ContactorOutputError *ErrorType
DebugContactorOutputEnabled *BooleanType
OutputCircuitBreakerEnabled *ErrorType
OutputCircuitBreakerEnabledValue *SignedVoltage12bitType
}
type PuDebug struct {
UnitId uint
DebugModeOn *BooleanType
DebugContactorOutputOn *DebugSwitchModeType
}
type SeccTargetEnergy struct {
UnitId uint
TargetChargingAllow *BooleanType
TargetBatteryVoltage *Voltage11BitType
TargetGoalVoltage *Voltage11BitType
TargetCurrent *Current10BitType
}
type SeccErrors struct {
UnitId uint
BoardReady *BoardReadyType
NotReadyLogic *ErrorType
}
type PeripheryState struct {
UnitId uint
OtherErrorSeverity *BoardReadyType
OtherError *OtherError4BitType
ErrorShakeSensor *ErrorType
ErrorCoolingGroup *ErrorType
PeripheryErrorCoolingGroup *ErrorType
ErrorFireEmergency *ErrorType
ErrorFireEmergencyRun *ErrorType
ErrorFireEmergencyControl *ErrorType
ErrorOvervoltageIn *ErrorType
PeripheryErrorPowerSupply *ErrorType
ErrorFan *ErrorType
ErrorOvervoltageOut *ErrorType
ErrorStateRemoteMode *ErrorType
DebugShsnFanEnabled *BooleanType
DebugShptFanEnabled *BooleanType
DebugIoBoardTestLampEnabled *BooleanType
ErrorFireEmergencyCircuitBreaker *ErrorType
ErrorExtLightCircuitBreaker *ErrorType
ErrorIndicationCircuitBreaker *ErrorType
ErrorLowVoltagePowerCircuitBreaker *ErrorType
ErrorContactorsInternalCircuitBreaker *ErrorType
ErrorPlcCircuitBreaker *ErrorType
}
type PeripheryInfo struct {
UnitId uint
InfoDoorOpen *BooleanType
TempAirIn *SignedAirTemp8BitType
TempAirOut *SignedAirTemp8BitType
StateShsnFan *BooleanType
StateShptFan *BooleanType
}
type PeripheryDebug struct {
UnitId uint
DebugModeOn *BooleanType
DebugShsnFan *DebugSwitchModeType
DebugShptFan *DebugSwitchModeType
DebugIoBoardTestLamp *DebugSwitchModeType
}
type ConverterPresentEnergy struct {
UnitId uint
V2gMode *V2GModeType
PresentVoltage *Voltage11BitType
PresentCurrent *Current10BitType
ConnectedOut *ConnectedOut8bitType
}
type ConverterErrors struct {
UnitId uint
BoardReady *BoardReadyType
OtherError *OtherError4BitType
NotConnectedOut *ErrorType
NoCommunicationConverter *ErrorType
NoCommunicationPuConverter *ErrorType
InputGridVoltageHigh *ErrorType
InputGridVoltageLow *ErrorType
OutputGridVoltageHigh *ErrorType
OutputGridVoltageLow *ErrorType
InputGridVoltage *Voltage11BitType
OutputGridVoltage *Voltage11BitType
ShortCircuit *ErrorType
OverHeat *ErrorType
FanBroken *ErrorType
OtherHardwareError *ErrorType
DebugConvEnabled *BooleanType
DebugConvDisabled *BooleanType
}
type ConverterDebug struct {
UnitId uint
DebugModeOn *BooleanType
DebugEnergyOn *DebugSwitchModeType
DebugTargetVoltage *Voltage11BitType
DebugTargetCurrent *Current10BitType
}