充电机部分修改

master
lxw 1 week ago
parent 32cc68fd2f
commit 2180a4a5f5

@ -5,8 +5,10 @@
/// </summary> /// </summary>
public class BatteryBaseInfoResp public class BatteryBaseInfoResp
{ {
public string Pgn { get; set; } /// <summary>
/// 电池编码
/// </summary>
public string BatteryNo { get; set; }
/// <summary> /// <summary>
/// 电池包额定量度 /// 电池包额定量度
/// </summary> /// </summary>

@ -16,73 +16,73 @@ namespace Service.Charger.Msg.Charger.Req
/// <summary> /// <summary>
/// 监控网关编号 /// 监控网关编号
/// </summary> /// </summary>
[Property(8, 16)] [Property(8, 8*16)]
public UInt16 GatewayNo { get; set; } public String GatewayNo { get; set; }
/// <summary> /// <summary>
/// 设备属性 /// 设备属性
/// </summary> /// </summary>
[Property(24, 8)] [Property(24+14*8, 8)]
public byte EquipType { get; set; } public byte EquipType { get; set; }
/// <summary> /// <summary>
/// 通讯协议版本 /// 通讯协议版本
/// </summary> /// </summary>
[Property(32, 8)] public byte ConnProtocolVersion0 { get; set; } [Property(32+14*8, 8)] public byte ConnProtocolVersion0 { get; set; }
[Property(40, 8)] public byte ConnProtocolVersion1 { get; set; } [Property(40+14*8, 8)] public byte ConnProtocolVersion1 { get; set; }
[Property(48, 8)] public byte ConnProtocolVersion2 { get; set; } [Property(48+14*8, 8)] public byte ConnProtocolVersion2 { get; set; }
public string ConnProtocolVersion { get; set; } public string ConnProtocolVersion { get; set; }
/// <summary> /// <summary>
/// 充电控制器硬件版本号 /// 充电控制器硬件版本号
/// </summary> /// </summary>
[Property(56, 8)] public byte ControllerHardwareVersion0 { get; set; } [Property(56+14*8, 8)] public byte ControllerHardwareVersion0 { get; set; }
[Property(64, 8)] public byte ControllerHardwareVersion1 { get; set; } [Property(64+14*8, 8)] public byte ControllerHardwareVersion1 { get; set; }
[Property(72, 8)] public byte ControllerHardwareVersion2 { get; set; } [Property(72+14*8, 8)] public byte ControllerHardwareVersion2 { get; set; }
public string ControllerHardwareVersion { get; set; } public string ControllerHardwareVersion { get; set; }
/// <summary> /// <summary>
/// 充电控制器软件版本 /// 充电控制器软件版本
/// </summary> /// </summary>
[Property(80, 8)] public byte ControllerSoftwareVersion0 { get; set; } [Property(80+14*8, 8)] public byte ControllerSoftwareVersion0 { get; set; }
[Property(88, 8)] public byte ControllerSoftwareVersion1 { get; set; } [Property(88+14*8, 8)] public byte ControllerSoftwareVersion1 { get; set; }
[Property(96, 8)] public byte ControllerSoftwareVersion2 { get; set; } [Property(96+14*8, 8)] public byte ControllerSoftwareVersion2 { get; set; }
public string ControllerSoftwareVersion { get; set; } public string ControllerSoftwareVersion { get; set; }
/// <summary> /// <summary>
/// 充电枪口数目 /// 充电枪口数目
/// </summary> /// </summary>
[Property(104, 8)] [Property(104+14*8, 8)]
public byte GunNum { get; set; } public byte GunNum { get; set; }
/// <summary> /// <summary>
/// 充电模块数目 /// 充电模块数目
/// </summary> /// </summary>
[Property(112, 8)] [Property(112+14*8, 8)]
public byte GunModuleNum { get; set; } public byte GunModuleNum { get; set; }
/// <summary> /// <summary>
/// 额定功率 /// 额定功率
/// </summary> /// </summary>
[Property(128, 16)] [Property(128+14*8, 16)]
public ushort RatedPower { get; set; } public ushort RatedPower { get; set; }
/// <summary> /// <summary>
/// 当前功率 /// 当前功率
/// </summary> /// </summary>
[Property(136, 8)] [Property(136+14*8, 8)]
public byte CurrentPower { get; set; } public byte CurrentPower { get; set; }
/// <summary> /// <summary>
/// 当前速率 /// 当前速率
/// </summary> /// </summary>
[Property(144, 8)] [Property(144+14*8, 8)]
public byte CurrentSpeed { get; set; } public byte CurrentSpeed { get; set; }
/// <summary> /// <summary>
/// 分流器量程 /// 分流器量程
/// </summary> /// </summary>
[Property(152, 16)] [Property(152+14*8, 16)]
public ushort DiverterRange { get; set; } public ushort DiverterRange { get; set; }
} }
} }

@ -22,5 +22,12 @@ namespace Service.Charger.Msg.Charger.Req
/// </summary> /// </summary>
[Property(8, 17, type: PropertyReadConstant.Byte)] [Property(8, 17, type: PropertyReadConstant.Byte)]
public string Vin { get; set; } public string Vin { get; set; }
/// <summary>
/// VIN
/// </summary>
[Property(8+17*8, 1, type: PropertyReadConstant.Byte)]
public byte GunNo { get; set; }
} }
} }

@ -7,47 +7,53 @@ namespace Service.Charger.Msg.Charger.Resp;
/// </summary> /// </summary>
public class BatteryBaseInfo: ASDU public class BatteryBaseInfo: ASDU
{ {
[Property(0, 24)] /// <summary>
public string Pgn { get; set; } /// 记录类型
/// </summary>
[Property(0, 8)]
public byte RecordType { get; set; }
[Property(8, 8*16)]
public string BatteryNo { get; set; }
/// <summary> /// <summary>
/// 电池包额定量度 /// 电池包额定量度
/// </summary> /// </summary>
[Property(0, 16)] [Property(0+8*17, 16)]
public byte RatedMeasurement{get;set;} public byte RatedMeasurement{get;set;}
/// <summary> /// <summary>
/// 电池包额定电压 /// 电池包额定电压
/// </summary> /// </summary>
[Property(16, 16)] [Property(16+8*17, 16)]
public byte PackVoltage{get;set;} public byte PackVoltage{get;set;}
/// <summary> /// <summary>
/// 电池包额定总能量 /// 电池包额定总能量
/// </summary> /// </summary>
[Property(32, 16)] [Property(32+8*17, 16)]
public byte RatedBatteryPack{get;set;} public byte RatedBatteryPack{get;set;}
/// <summary> /// <summary>
/// 电池冷却方式 /// 电池冷却方式
/// </summary> /// </summary>
[Property(48, 8)] [Property(48+8*17, 8)]
public byte BatteryCoolingSystem{get;set;} public byte BatteryCoolingSystem{get;set;}
/// <summary> /// <summary>
/// 电池类型 /// 电池类型
/// </summary> /// </summary>
[Property(56, 8)] [Property(56+8*17, 8)]
public byte BatteryType{get;set;} public byte BatteryType{get;set;}
/// <summary> /// <summary>
/// 电池系统中 CSC总的数目电池监控单元数目 /// 电池系统中 CSC总的数目电池监控单元数目
/// </summary> /// </summary>
[Property(64, 8)] [Property(64+8*17, 8)]
public byte BatteryCSCSNumber{get;set;} public byte BatteryCSCSNumber{get;set;}
/// <summary> /// <summary>
/// PACK 中单体电芯的总数目 /// PACK 中单体电芯的总数目
/// </summary> /// </summary>
[Property(72, 16)] [Property(72+8*17, 16)]
public byte PACKNumber{get;set;} public byte PACKNumber{get;set;}
/// <summary> /// <summary>
/// PACK 中电芯温度点(探针)的总数目 /// PACK 中电芯温度点(探针)的总数目
/// </summary> /// </summary>
[Property(88, 16)] [Property(88+8*17, 16)]
public byte PACKTemperatureNumber{get;set;} public byte PACKTemperatureNumber{get;set;}
} }
Loading…
Cancel
Save