using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HybirdFrameworkEntity { public class CMD202 { /// /// 预留 /// public ushort Reserved1 { get; set; } /// /// 预留 /// public ushort Reserved2 { get; set; } /// /// 充电桩编码 /// public string ASCIINum { get; set; } /// /// 充电枪位置类型 /// 1-直流 /// 2-交流 /// public byte PosType { get; set; } /// /// 充电枪口 /// public byte ChargGun { get; set; } /// /// 充电卡号 32 /// public string ChargID { get; set; } /// /// 充电开始时间 /// public string StartTime { get; set; } /// /// 充电结束时间 /// public string EndTime { get; set; } /// /// 充电时间长度 /// public uint TimeSpan { get; set; } /// /// 开始 SOC /// public byte SOCStart { get; set; } /// /// 结束 SOC /// public byte SOCEnd { get; set; } /// /// 充电结束原因 /// public uint EndReason { get; set; } /// /// 本次充电电量 /// public string ChargCapacityNow { get; set; } /// /// 充电前电表读数 /// public string SAmmeterValue { get; set; } /// /// 充电后电表读数 /// public string EAmmeterValue { get; set; } /// /// 本次充电金额 /// public uint ChargeAmount { get; set; } /// /// 内部索引号 /// public int IndexNum { get; set; } /// /// 充电前卡余额 /// public uint CardBalance { get; set; } /// /// 当前充电记录索引 /// public uint ChargRecord { get; set; } /// /// 总充电记录条目 /// public uint SumChargRecord { get; set; } /// /// 预留 /// public byte Reserved3 { get; set; } /// /// 充电策略 /// 0:充满为止 /// 1:时间控制充电 /// 2:金额控制充电 /// 3:电量控制充电 /// public byte ChargStrategy { get; set; } /// /// 充电策略参数 /// /// 时间单位为 1 秒 /// 金额单位为 0.01 元 /// 电量时单位为 0.01kw /// public string ChargStrategyPara { get; set; } /// /// 车辆 VIN 17 /// public string CarVIN { get; set; } /// /// 车牌号 /// public string CarID { get; set; } /// /// 时段 1 充电电量 /// 命令 202 报文此字段是 2 字节, /// 命令 222 报文此字段是 4 字节 /// public string ChargCapacity01 { get; set; } /// /// /// public string ChargCapacity02 { get; set; } /// /// /// public string ChargCapacity03 { get; set; } /// /// /// public string ChargCapacity04 { get; set; } /// /// /// public string ChargCapacity05 { get; set; } /// /// /// public string ChargCapacity06 { get; set; } /// /// /// public string ChargCapacity07 { get; set; } /// /// /// public string ChargCapacity08 { get; set; } /// /// /// public string ChargCapacity09 { get; set; } /// /// /// public string ChargCapacity10 { get; set; } /// /// /// public string ChargCapacity11 { get; set; } /// /// /// public string ChargCapacity12 { get; set; } /// /// /// public string ChargCapacity13 { get; set; } /// /// /// public string ChargCapacity14 { get; set; } /// /// /// public string ChargCapacity15 { get; set; } /// /// /// public string ChargCapacity16 { get; set; } /// /// /// public string ChargCapacity17 { get; set; } /// /// /// public string ChargCapacity18 { get; set; } /// /// /// public string ChargCapacity19 { get; set; } /// /// /// public string ChargCapacity20 { get; set; } /// /// /// public string ChargCapacity21 { get; set; } /// /// /// public string ChargCapacity22 { get; set; } /// /// /// public string ChargCapacity23 { get; set; } /// /// /// public string ChargCapacity24 { get; set; } /// /// /// public string ChargCapacity25 { get; set; } /// /// /// public string ChargCapacity26 { get; set; } /// /// /// public string ChargCapacity27 { get; set; } /// /// /// public string ChargCapacity28 { get; set; } /// /// /// public string ChargCapacity29 { get; set; } /// /// /// public string ChargCapacity30 { get; set; } /// /// /// public string ChargCapacity31 { get; set; } /// /// /// public string ChargCapacity32 { get; set; } /// /// /// public string ChargCapacity33 { get; set; } /// /// /// public string ChargCapacity34 { get; set; } /// /// /// public string ChargCapacity35 { get; set; } /// /// /// public string ChargCapacity36 { get; set; } /// /// /// public string ChargCapacity37 { get; set; } /// /// /// public string ChargCapacity38 { get; set; } /// /// /// public string ChargCapacity39 { get; set; } /// /// /// public string ChargCapacity40 { get; set; } /// /// /// public string ChargCapacity41 { get; set; } /// /// /// public string ChargCapacity42 { get; set; } /// /// /// public string ChargCapacity43 { get; set; } /// /// /// public string ChargCapacity44 { get; set; } /// /// /// public string ChargCapacity45 { get; set; } /// /// /// public string ChargCapacity46 { get; set; } /// /// /// public string ChargCapacity47 { get; set; } /// /// 时段 48 充电电量 /// 命令 202 报文此字段是 2 字节, /// 命令 222 报文此字段是 4 字节 /// public string ChargCapacity48 { get; set; } /// /// 启动方式 /// 0:本地刷卡启动 /// 1:后台启动 /// 2:本地管理员启动 /// 3:远程 VIN 验证启动 /// 4:远程密码验证启动 /// 5:本地 VIN 验证启动 /// 6:迪文界面流程启动 /// public byte StartMode { get; set; } /// /// 充电流水号 32 /// public string ChargSerialNum { get; set; } /// /// 充电服务费 /// public uint ChargServiceCost { get; set; } /// /// 千分位电量 /// public byte KilElectricity { get; set; } /// /// 并充标志 /// 0/1-单枪充电 /// 2-单机柜双枪并充充电 /// 3-双机柜双枪并充充电 /// public byte ParallelMark { get; set; } /// /// 充放电标志 /// /// 2-充电 /// 0xf1-放电 /// 非协议定义值,都表示充电 /// public byte ChargeOrDisMark { get; set; } /// /// 电表加密数据 /// /// 瑞银电表解密后数据内容为: /// 17 字节枪口识别号(BCD) /// 4 字节计量开始时间(秒时戳, HEX) /// 4 字节计量结束时间(秒时戳, HEX) /// 4 字节正向充电电量(3 位小数, HEX) /// 4 字节电表安装时间(秒时戳, HEX) /// 1 字节端钮历史状态(0 正常,1 发生过端钮盖打开时间) /// public string MeterEncData { get; set; } /// /// 电表表号 6 /// public string MeterNum { get; set; } /// /// 电表协议版本 /// public ushort MeterProVersion { get; set; } /// /// 加密方式 /// 当前加密方式(工厂模式下配置,抄读无任何限制) /// 00:软件 AES128 加密 /// 01:RJMU 国密 SM1(暂不支持) /// 02:RJMU 国密 SM4(暂不支持) /// 03:国网 ESAM 加密 /// 04:ECC256 签名算法 /// 05:其他 /// public byte EncMode { get; set; } } }