|
|
@ -37,6 +37,22 @@ public class Decoder : ByteToMessageDecoder
|
|
|
|
{
|
|
|
|
{
|
|
|
|
0x1882D0F3 => ModelConvert.Decode<SocMsg>(bytes),
|
|
|
|
0x1882D0F3 => ModelConvert.Decode<SocMsg>(bytes),
|
|
|
|
0x18FF48A8 => ModelConvert.Decode<StatusMsg>(bytes),
|
|
|
|
0x18FF48A8 => ModelConvert.Decode<StatusMsg>(bytes),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0x18E1D0F3=> ModelConvert.Decode<BatteryOneSn>(bytes),
|
|
|
|
|
|
|
|
0x18E2D0F3=> ModelConvert.Decode<BatteryTwoSn>(bytes),
|
|
|
|
|
|
|
|
0x18E3D0F3=> ModelConvert.Decode<BatteryThreeSn>(bytes),
|
|
|
|
|
|
|
|
0x18E4D0F3=> ModelConvert.Decode<BatteryFourSn>(bytes),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0x18E1F3D0=> ModelConvert.Decode<VinMsg>(bytes),
|
|
|
|
|
|
|
|
0x1801D8A7=> ModelConvert.Decode<VersionMsg>(bytes),
|
|
|
|
|
|
|
|
//0x1880D0F3=> ModelConvert.Decode<StatusMsg>(bytes),
|
|
|
|
|
|
|
|
0x18E5D0F3=> ModelConvert.Decode<BatteryInfo1>(bytes),
|
|
|
|
|
|
|
|
0x18F1D0F3=> ModelConvert.Decode<SohMsg>(bytes),
|
|
|
|
|
|
|
|
0x18F2D0F3=> ModelConvert.Decode<SubMileMsg>(bytes),
|
|
|
|
|
|
|
|
0x18FEDA17=> ModelConvert.Decode<TotalMileMsg>(bytes),
|
|
|
|
|
|
|
|
//0x18E1F3D1=> ModelConvert.Decode<StatusMsg>(bytes),
|
|
|
|
|
|
|
|
//0x18FFF8A8=> ModelConvert.Decode<StatusMsg>(bytes),
|
|
|
|
|
|
|
|
0x18FFF8A7=> ModelConvert.Decode<LockStatusMsg>(bytes),
|
|
|
|
_ => ModelConvert.Decode<OtherMsg>(bytes),
|
|
|
|
_ => ModelConvert.Decode<OtherMsg>(bytes),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|