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.

388 lines
11 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BatCharging.Model
{
public class CMD222
{
/// <summary>
/// 预留
/// </summary>
public UInt16 value01 { get; set; }
/// <summary>
/// 预留
/// </summary>
public UInt16 value02 { get; set; }
/// <summary>
/// 充电桩编码
/// </summary>
public string value03 { get; set; }
/// <summary>
/// 充电枪位置类型
/// <para>1-直流</para>
/// <para>2-交流</para>
/// </summary>
public byte value04 { get; set; }
/// <summary>
/// 充电枪口
/// </summary>
public byte value05 { get; set; }
/// <summary>
/// 充电卡号 32
/// </summary>
public string value06 { get; set; }
/// <summary>
/// 充电开始时间
/// </summary>
public string value07 { get; set; }
/// <summary>
/// 充电结束时间
/// </summary>
public string value08 { get; set; }
/// <summary>
/// 充电时间长度
/// </summary>
public UInt32 value09 { get; set; }
/// <summary>
/// 开始 SOC
/// </summary>
public byte value10 { get; set; }
/// <summary>
/// 结束 SOC
/// </summary>
public byte value11 { get; set; }
/// <summary>
/// 充电结束原因
/// </summary>
public UInt32 value12 { get; set; }
/// <summary>
/// 本次充电电量
/// </summary>
public UInt32 value13 { get; set; }
/// <summary>
/// 充电前电表读数
/// </summary>
public UInt32 value14 { get; set; }
/// <summary>
/// 充电后电表读数
/// </summary>
public UInt32 value15 { get; set; }
/// <summary>
/// 本次充电金额
/// </summary>
public UInt32 value16 { get; set; }
/// <summary>
/// 内部索引号
/// </summary>
public UInt32 value17 { get; set; }
/// <summary>
/// 充电前卡余额
/// </summary>
public UInt32 value18 { get; set; }
/// <summary>
/// 当前充电记录索引
/// </summary>
public UInt32 value19 { get; set; }
/// <summary>
/// 总充电记录条目
/// </summary>
public UInt32 value20 { get; set; }
/// <summary>
/// 预留
/// </summary>
public byte value21 { get; set; }
/// <summary>
/// 充电策略
/// <para>0:充满为止</para>
/// <para>1:时间控制充电</para>
/// <para>2:金额控制充电</para>
/// <para>3:电量控制充电</para>
/// </summary>
public byte value22 { get; set; }
/// <summary>
/// 充电策略参数
///
/// 时间单位为 1 秒
/// 金额单位为 0.01 元
/// 电量时单位为 0.01kw
/// </summary>
public UInt32 value23 { get; set; }
/// <summary>
/// 车辆 VIN 17
/// </summary>
public string value24 { get; set; }
/// <summary>
/// 车牌号
/// </summary>
public string value25 { get; set; }
/// <summary>
/// 时段 1 充电电量
/// 命令 202 报文此字段是 2 字节,
/// 命令 222 报文此字段是 4 字节
/// </summary>
public UInt32 value26 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value27 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value28 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value29 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value30 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value31 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value32 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value33 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value34 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value35 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value36 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value37 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value38 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value39 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value40 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value41 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value42 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value43 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value44 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value45 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value46 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value47 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value48 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value49 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value50 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value51 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value52 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value53 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value54 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value55 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value56 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value57 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value58 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value59 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value60 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value61 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value62 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value63 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value64 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value65 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value66 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value67 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value68 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value69 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value70 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value71 { get; set; }
/// <summary>
///
/// </summary>
public UInt32 value72 { get; set; }
/// <summary>
/// 时段 48 充电电量
/// 命令 202 报文此字段是 2 字节,
/// 命令 222 报文此字段是 4 字节
/// </summary>
public UInt32 value73 { get; set; }
/// <summary>
/// 启动方式
/// <para>0本地刷卡启动</para>
/// <para>1后台启动</para>
/// <para>2本地管理员启动</para>
/// <para>3远程 VIN 验证启动</para>
/// <para>4远程密码验证启动</para>
/// <para>5本地 VIN 验证启动</para>
/// <para>6迪文界面流程启动</para>
/// </summary>
public byte value74 { get; set; }
/// <summary>
/// 充电流水号 32
/// </summary>
public string value75 { get; set; }
/// <summary>
/// 充电服务费
/// </summary>
public UInt32 value76 { get; set; }
/// <summary>
/// 千分位电量
/// </summary>
public byte value77 { get; set; }
/// <summary>
/// 并充标志
/// <para>0/1-单枪充电</para>
/// <para>2-单机柜双枪并充充电</para>
/// <para>3-双机柜双枪并充充电</para>
/// </summary>
public byte value78 { get; set; }
/// <summary>
/// 充放电标志
///
/// 2-充电
/// 0xf1-放电
/// 非协议定义值,都表示充电
/// </summary>
public byte value79 { get; set; }
/// <summary>
/// 电表加密数据
///
/// 瑞银电表解密后数据内容为:
/// 17 字节枪口识别号(BCD)
/// 4 字节计量开始时间(秒时戳, HEX)
/// 4 字节计量结束时间(秒时戳, HEX)
/// 4 字节正向充电电量(3 位小数, HEX)
/// 4 字节电表安装时间(秒时戳, HEX)
/// 1 字节端钮历史状态(0 正常1 发生过端钮盖打开时间)
/// </summary>
public byte value80 { get; set; }
/// <summary>
/// 电表表号 6
/// </summary>
public string value81 { get; set; }
/// <summary>
/// 电表协议版本
/// </summary>
public UInt16 value82 { get; set; }
/// <summary>
/// 加密方式
/// 当前加密方式(工厂模式下配置,抄读无任何限制)
/// <para>00:软件 AES128 加密</para>
/// <para>01:RJMU 国密 SM1(暂不支持)</para>
/// <para>02:RJMU 国密 SM4(暂不支持)</para>
/// <para>03:国网 ESAM 加密</para>
/// <para>04:ECC256 签名算法</para>
/// <para>05:其他</para>
/// </summary>
public byte value83 { get; set; }
}
}