修复了UDP通信的BUG并优化了相关代码,增加了json报告功能
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"HVABactuatorCurrent_uint16": 0,
|
||||
"HVABbowFTDevice123Current_uint16": 0,
|
||||
"HVABbowRudderControlBoxCurrent_uint16": 0,
|
||||
"HVABbusbarBCurrent_uint16": 0,
|
||||
"HVABbusbarBVoltage_uint16": 0,
|
||||
"HVABmastSteeringGearControlBoxCurrent_uint16": 0,
|
||||
"HVABopenWaterCoverStartCylinderCurrent_uint16": 0,
|
||||
"HVABxczCurrent_uint16": 1,
|
||||
"HVBBbowLowVoltageDistributionBoxCurrent_uint16": 0,
|
||||
"HVBBcompositeEnergyManagementSystemEmergencyDC48VCurrent_uint16": 0,
|
||||
"HVBBdcC1InstrumentDC48VCurrent_uint16": 0,
|
||||
"HVBBemergency2BusbarVoltage_uint16": 0,
|
||||
"HVBBemergencyLithiumBatteryGroup2Current_uint16": 0,
|
||||
"HVBBfuelCellSecuritySystemEmergencyDC48VCurrent_uint16": 0,
|
||||
"HVBBinstrumentBusbarVoltage_uint16": 0,
|
||||
"HVBBlithiumBatteryGroupInstrumentCurrent_uint16": 0,
|
||||
"HVBBplcControlPowerCurrent_uint16": 0,
|
||||
"HVBBreservedCurrent1_uint16": 0,
|
||||
"HVBBreservedCurrent2_uint16": 0,
|
||||
"HVBBunit4InstrumentDC48VCurrent_uint16": 0,
|
||||
"HVBbowHighVoltageDistributionBoxCurrent_uint16": 0,
|
||||
"HVBbusbarACurrent_uint16": 0,
|
||||
"HVBbusbarAVoltage_uint16": 6,
|
||||
"HVBdcDc5ModuleCurrent_uint16": 0,
|
||||
"HVBfbReservedSwitchCurrent_uint16": 0,
|
||||
"HVBlithiumBatteryGroupMeterCurrent_uint16": 0,
|
||||
"HVBpowerBusCurrent_uint16": 0,
|
||||
"HVBpowerBusVoltage_uint16": 0,
|
||||
"HVBpropulsionMotorControlBoxCurrent_uint16": 0,
|
||||
"HVBreservedCurrent1_uint16": 0,
|
||||
"HVBreservedCurrent2_uint16": 0,
|
||||
"HVBreservedCurrent3_uint16": 0,
|
||||
"HVBsternFTDevice45Current_uint16": 0,
|
||||
"HVBsternRudderSwitch1Current_uint16": 0,
|
||||
"HVBsternRudderSwitch2Current_uint16": 0,
|
||||
"HVBtyzReservedSwitchCurrent_uint16": 0,
|
||||
"LVBBbowPZDeviceCurrent_uint16": 0,
|
||||
"LVBBemergency1BusbarVoltage_uint16": 0,
|
||||
"LVBBemergencyLithiumBatteryGroup1Current_uint16": 0,
|
||||
"LVBBinstrumentBusbarCurrent_uint16": 0,
|
||||
"LVBBunit1Current_uint16": 0,
|
||||
"LVBBunit2Current_uint16": 0,
|
||||
"LVBBunit3Current_uint16": 0,
|
||||
"LVBBunit5Current_uint16": 0,
|
||||
"LVBinstrumentBusbarVoltage_uint16": 0
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"HightVoltageABusBreaker_unit16": 0,
|
||||
"HightVoltageBBusBreaker_unit16": 0,
|
||||
"HightVoltageBusBreaker_uint16": 0,
|
||||
"LowVoltageBusBreaker_uint16": 0,
|
||||
"faultCode_array":
|
||||
[
|
||||
0
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"backpressure1_fp32": 0.0,
|
||||
"backpressure2_fp32": 0.0,
|
||||
"ch4oConcentration1_fp32": 0.0,
|
||||
"ch4oConcentration2_fp32": 0.0,
|
||||
"ch4o_fp32": 0.0,
|
||||
"exchangerTemperature_fp32": 0.0,
|
||||
"fcuCurrentIns_fp32": 0.0,
|
||||
"fcuCurrentPower_fp32": 0.0,
|
||||
"fcuCurrent_fp32": 0.0,
|
||||
"fcuFaultLeve_uint8": 32,
|
||||
"fcuOutIns_fp32": 0.0,
|
||||
"fcuOutPower_fp32": 0.0,
|
||||
"fcuState_uint8": 86,
|
||||
"fcuVoltageIns_fp32": 0.0,
|
||||
"fcuVoltagePower_fp32": 0.0,
|
||||
"fcuVoltage_fp32": 0.0,
|
||||
"h2Concentration1_fp32": 0.0,
|
||||
"h2Concentration2_fp32": 0.0,
|
||||
"o2Concentration1_fp32": 0.0,
|
||||
"o2Concentration2_fp32": 0.0,
|
||||
"o2Level_fp32": 0.0,
|
||||
"o2_fp32": 0.0,
|
||||
"powerLimit_fp32": 0.0,
|
||||
"totalPowerGeneration_fp32": 0.0
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"fcuCurrentToInsLimit1_uint8": 0,
|
||||
"fcuCurrentToinsLimit2_uint8": 0,
|
||||
"insBatCurrentElectricity_uint16": 0,
|
||||
"insBatLimit_uint16": 0,
|
||||
"insBatSoc_uint8": 0,
|
||||
"insBatTotalElectricity_uint16": 0,
|
||||
"insChargeState_uint8": 0,
|
||||
"insCurrentSocHold1_uint8": 0,
|
||||
"insCurrentSocHold2_uint8": 0,
|
||||
"insCurrentSocHold3_uint8": 0,
|
||||
"insCurrent_uint16": 0,
|
||||
"insLinkVoltage_uint16": 0,
|
||||
"insNegInsulationResistance_uint16": 0,
|
||||
"insNegRelayState_uint8": 0,
|
||||
"insPackVoltage_uint16": 0,
|
||||
"insPosInsulationResistance_uint16": 0,
|
||||
"insPosRelayState_uint8": 0,
|
||||
"powerBatCurrentElectricity_uint16": 0,
|
||||
"powerBatLimit_uint16": 0,
|
||||
"powerBatSoc_uint8": 0,
|
||||
"powerBatTotalElectricity_uint16": 0,
|
||||
"powerChargeState_uint8": 0,
|
||||
"powerCurrentSocHold1_uint8": 0,
|
||||
"powerCurrentSocHold2_uint8": 0,
|
||||
"powerCurrentSocHold3_uint8": 0,
|
||||
"powerCurrentToInsLimit1_uint8": 0,
|
||||
"powerCurrentToinsLimit2_uint8": 0,
|
||||
"powerCurrent_uint16": 0,
|
||||
"powerLinkVoltage_uint16": 0,
|
||||
"powerNegInsulationResistance_uint16": 0,
|
||||
"powerNegRelayState_uint8": 0,
|
||||
"powerPackVoltage_uint16": 0,
|
||||
"powerPosInsulationResistance_uint16": 0,
|
||||
"powerPosRelayState_uint8": 0
|
||||
}
|
||||
+10
-103
@@ -1,105 +1,12 @@
|
||||
{
|
||||
"workCondition_unit8" : "idel",
|
||||
"currentMod_uint8" : "test",
|
||||
"powerState_uint8" : 1,
|
||||
"faultLevel_uint8" : 0,
|
||||
"faultCode_uint16" : [0,1,2],
|
||||
"soc_uint16" : 10000,
|
||||
"sustainableTime_uint64" : 10000,
|
||||
"fcs_obj":
|
||||
{
|
||||
"state_uint8" : 1,
|
||||
"faultLevel_uint8" : 0,
|
||||
"faultCode_uint16" : 0,
|
||||
"soc" : 1000,
|
||||
"output": 20000,
|
||||
"powerGen" : 30000,
|
||||
"outputLimit" : 30000,
|
||||
"ch4o":1000,
|
||||
"o2":1000,
|
||||
"temp":1000
|
||||
},
|
||||
"InsBat_obj":
|
||||
{
|
||||
"state" : 1,
|
||||
"faultLevel" : 0,
|
||||
"faultCode" : 0,
|
||||
"soc" : 1000,
|
||||
"threshold1": 70,
|
||||
"threshold2": 80,
|
||||
"threshold3": 90
|
||||
},
|
||||
"powBat_obj":
|
||||
{
|
||||
"state" : 1,
|
||||
"faultLevel" : 0,
|
||||
"faultCode" : 0,
|
||||
"soc" : 1000,
|
||||
"threshold1": 70,
|
||||
"threshold2": 80,
|
||||
"threshold3": 90
|
||||
},
|
||||
"powDisSys_obj":
|
||||
{
|
||||
"state" : 1,
|
||||
"faultLevel" : 0,
|
||||
"faultCode" : [0,1,2],
|
||||
"currentHigVolBusState" :
|
||||
{
|
||||
"powerBusVoltage" : 10000,
|
||||
"dc5ModuleCurrent" : 10000,
|
||||
"powerBusCurrent" : 10000,
|
||||
"aBusVoltage" : 10000,
|
||||
"propMotorCurrent" : 10000,
|
||||
"aBusCurrent" : 10000,
|
||||
"batteryGroupCurrent" : 10000,
|
||||
"bowHigVolDisCurrent" : 10000,
|
||||
"ftDev45Current" : 10000,
|
||||
"tyzCurrent" : 10000,
|
||||
"sternRudder1Current" : 10000,
|
||||
"reservedCurrent1" : 10000,
|
||||
"sternRudder2Current" : 10000,
|
||||
"reservedCurrent2" : 10000,
|
||||
"fbCurrent" : 10000,
|
||||
"reservedCurrent3" : 10000
|
||||
},
|
||||
"currentHigVolBusAState" :
|
||||
{
|
||||
"busBVoltage":10000,
|
||||
"busBCurrent":10000,
|
||||
"ftDev123Current":10000,
|
||||
"closureMechCurrent":10000,
|
||||
"mastSteerCurrent":10000,
|
||||
"xczCurrent":10000,
|
||||
"bowRudderCurrent":10000,
|
||||
"coverActorCurrent":10000
|
||||
},
|
||||
"currentHigVolBusBState" :
|
||||
{
|
||||
"insBusVoltage" : 10000,
|
||||
"bowLowVoltageDisCurrent" : 10000,
|
||||
"dcc1Current" : 10000,
|
||||
"reservedCurrent1" : 10000,
|
||||
"emerBatGroup2Current" : 10000,
|
||||
"batGroupInsCurrent" : 10000,
|
||||
"unit4Current" : 10000,
|
||||
"reservedCurrent2" : 10000,
|
||||
"emer2BusVoltage" : 10000,
|
||||
"ccuEmerCurrent" : 10000,
|
||||
"fcsSecurityCurrent" : 10000,
|
||||
"plcCurrent" : 10000
|
||||
},
|
||||
"currentLowVolBusBState" :
|
||||
{
|
||||
"insBusVoltage":10000,
|
||||
"insBusCurrent":10000,
|
||||
"unit1Current":10000,
|
||||
"unit2Current":10000,
|
||||
"unit3Current":10000,
|
||||
"unit5Current":10000,
|
||||
"bowPzDeviceCurrent":10000,
|
||||
"emerBatGroup1Current":10000,
|
||||
"emer1BusVoltage":10000
|
||||
}
|
||||
}
|
||||
"currentMod_uint8": 0,
|
||||
"falutLevel_uint8": 0,
|
||||
"faultCode_array":
|
||||
[
|
||||
0
|
||||
],
|
||||
"powerState_uint8": 0,
|
||||
"soc_uint32": 0,
|
||||
"sustainableTime_obj": 0,
|
||||
"workCondition_uint8": 0
|
||||
}
|
||||
Reference in New Issue
Block a user