|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HybirdFrameworkEntity
|
|
|
|
|
{
|
|
|
|
|
public class CMD104
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Reserved1 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Reserved2 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电桩编码 32
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ASCIINum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电枪数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargGunNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电口(枪)号
|
|
|
|
|
/// 编码从 1 开始,如有 2 枪,那这
|
|
|
|
|
/// 个字段的值为 1、2 两个值
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电枪类型 BIT0~BIT1:
|
|
|
|
|
/// <para>1=直流;</para>
|
|
|
|
|
/// <para>2=交流;</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargGunType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工作状态
|
|
|
|
|
/// <para>0-空闲中</para>
|
|
|
|
|
/// <para>1-正准备开始充电</para>
|
|
|
|
|
/// <para>2-充电进行中</para>
|
|
|
|
|
/// <para>3-充电结束</para>
|
|
|
|
|
/// <para>4-启动失败</para>
|
|
|
|
|
/// <para>5-预约状态</para>
|
|
|
|
|
/// <para>6-系统故障(不能给汽车充电)</para>
|
|
|
|
|
/// <para>7-暂停服务</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte WorkState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前 SOC %
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte SOCNOW { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前最高告警编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string MaxAlarmCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 车连接状态
|
|
|
|
|
/// 0- 断开 1-半连接 2-连接
|
|
|
|
|
/// 直流目前只有 0 和 2 状态
|
|
|
|
|
/// 交流目前有 0、1、2 三种状态
|
|
|
|
|
/// 只有状态不为 0 时,手机才能下
|
|
|
|
|
/// 发开机指令
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ConnecteState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本次充电累计充电费用
|
|
|
|
|
/// 从本次充电开始到目前的累计
|
|
|
|
|
/// 充电费用(包括电费与服务费),
|
|
|
|
|
/// 这里是整型,要乘以 0.01 才能
|
|
|
|
|
/// 得到真实的金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float TotalCost { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 内部变量 2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved3 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 内部变量 3
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved4 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 直流充电电压
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort DcChargVoltage { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 直流充电电流
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort DcChargCurrent { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// BMS 需求电压
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort BMSDemVoltage { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// BMS 需求电流
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort BMSDemCurrent { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// BMS 充电模式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte BMSchargMode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 A 相充电电压
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargVoltageA { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 B 相充电电压
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargVoltageB { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 C 相充电电压
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargVoltageC { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 A 相充电电流
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargCurrentA { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 B 相充电电流
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargCurrentB { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 交流 C 相充电电流
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort AcChargCurrentC { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 剩余充电时间(min
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort RemainTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电时长(秒)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ChargTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本次充电累计充电电量(0.01kwh)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint TotalChargkwh { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电前电表读数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float StartAmmeterValue { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前电表读数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float AmmeterValue { 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 ChargStartMode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电策略
|
|
|
|
|
/// <para>0 自动充满</para>
|
|
|
|
|
/// <para>1 按时间充满</para>
|
|
|
|
|
/// <para>2 定金额</para>
|
|
|
|
|
/// <para>3 按电量充满</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargStrategy { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电策略参数
|
|
|
|
|
/// 时间单位为 1 秒
|
|
|
|
|
/// 金额单位为 0.01 元
|
|
|
|
|
/// 电量时单位为 0.01kw
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ChargStrategyPara { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预约标志
|
|
|
|
|
/// <para>0-无预约(无效)</para>
|
|
|
|
|
/// <para>1-预约有效</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte AppointmentSign { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电/预约卡号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ChargID { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预约超时时间 单位分钟
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte OutTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预约/开始充电开始时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string StartTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电前卡余额
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint InitialBalance { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved5 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电功率 0.1Kw/BIT
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float ChargPower { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统变量 3
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved6 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统变量 4
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved7 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统变量 5
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved8 { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出风口温度
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte OutletTemp { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 环境温度
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Temperature { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电枪温度
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargGunTemp { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 车辆 VIN 码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string VINNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 舱门状态
|
|
|
|
|
/// BIT0:
|
|
|
|
|
/// 0:不在舱-开门;
|
|
|
|
|
/// 1:在舱-关门
|
|
|
|
|
/// BIT1:
|
|
|
|
|
/// 0:充电用户不允许限充电功率
|
|
|
|
|
/// 1:充电用户允许限充电功率
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte DoorState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电流水号 32
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ChargSerialNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本次充电累计充电电费
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint TotalElectricity { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本次充电累计充电服务费
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ServiceCharge { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 枪归位状态
|
|
|
|
|
/// <para>0:归位</para>
|
|
|
|
|
/// <para>1:离位</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte HomingState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 地锁状态 1
|
|
|
|
|
/// <para>0:开锁</para>
|
|
|
|
|
/// <para>1:闭锁</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte GroundLockedState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 千分位电量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte KilojoulesElec { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 直流桩交流电表电量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DcACElectricity { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前充电模式
|
|
|
|
|
/// <para>0/1-单枪充电</para>
|
|
|
|
|
/// <para>2-单机柜双枪并充充电</para>
|
|
|
|
|
/// <para>3-双机柜双枪并充充电</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargMode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充放电标志
|
|
|
|
|
/// 1-充电
|
|
|
|
|
/// 0xf1-放电
|
|
|
|
|
/// 非协议定义值,都表示充电
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ChargeOrDisSign { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|