using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HybirdFrameworkServices
{
public class CMD302
{
///
/// 预留
///
public ushort Reserved1 { get; set; }
///
/// 预留
///
public ushort Reserved2 { get; set; }
///
/// 报文次序计数
///
public ushort MessageOrderNum { get; set; }
///
/// 充电枪号
///
public ushort ChargGunNum { get; set; }
///
/// 充电桩编码 32
///
public string ASCIINum { get; set; }
///
/// 工作状态
/// 0-空闲中
/// 1-正准备开始充电
/// 2-充电进行中
/// 3-充电结束
/// 4-启动失败
/// 5-预约状态
/// 6-系统故障(不能给汽车充电)
///
public byte WorkState { get; set; }
///
/// 车连接状态
/// 0-断开
/// 1-半连接
/// 2-连接
///
public byte connectState { get; set; }
///
/// BRM-BMS 通讯协议版本号
///
public byte BRMBMSVersionNum { get; set; }
///
/// BRM-电池类型
/// 0x01-铅酸电池,
/// 0x02-镍氢电池,
/// 0x03-磷酸铁锂电池,
/// 0x04-锰酸锂电池,
/// 0x05-钴酸锂电池,
/// 0x06-三元次料电池,
/// 0x07-聚合物锂离子电池,
/// 0x08-钛酸锂电池,
/// 0xff-其他电池
///
public byte BRMBatteryType { get; set; }
///
/// BRM-整车动力蓄电池系统额定容量/Ah
///
public uint BRMRatedCapacity { get; set; }
///
/// BRM-整车动力蓄电池系统额定总电压/V
///
public uint BRMRatedVoltage { get; set; }
///
/// BRM-电池生产厂商
///
public uint BRMBatteryManu { get; set; }
///
/// BRM-电池组序号
///
public uint BRMBatteryPackID { get; set; }
///
/// BRM-电池组生厂日期:年
///
public ushort BRMDateYear { get; set; }
///
/// BRM-电池组生厂日期:月
///
public byte BRMDateMonth { get; set; }
///
/// BRM-电池组生厂日期:日
///
public byte BRMDateDay { get; set; }
///
/// BRM-电池组充电次数
///
public uint BRMChargeCount { get; set; }
///
/// BRM-电池组产权标识
/// 0X01-表示租赁
/// 0x01 表示车自有
///
public byte BRMTitleMark { get; set; }
///
/// 预留
///
public byte Reserved3 { get; set; }
///
/// BRM-车辆识别码 vin 17
///
public string BRMVINID { get; set; }
///
/// BRM-BMS 软件版本号
/// Byte1 表示版本流水号:0x01~0xfe;
/// byte2 表示日:0x01 表示 1 日;
/// byte3:0x01 表示 1 月;
/// byte4 和 byte5 表示年:0x07 0xdf 表示2015 年;
/// Byte6 和 byte7、byte8 预留,填 0xffffff
///
public ulong BRMBMSSoftVerNum { get; set; }
///
/// BCP-单体动力蓄电池最高允许充电电压
///
public uint MaxChargVoltage { get; set; }
///
/// BCP-最高允许充电电流
///
public uint MaxChargCurrent { get; set; }
///
/// BCP-动力蓄电池标称总能量
///
public uint TotalEnergy { get; set; }
///
/// BCP-最高允许充电总电压
///
public uint MaxTotalVoltage { get; set; }
///
/// BCP-最高允许温度
///
public byte MaxTemp { get; set; }
///
/// BCP-整车动力蓄电池荷电状态
///
public ushort ChargeState { get; set; }
///
/// BCP-整车动力蓄电池当前电池电压
///
public uint CellVoltage { get; set; }
///
/// BRO-BMS 是否充电准备好
///
public byte ChargePrepared { get; set; }
///
/// BCL-电压需求
///
public uint BCLVoltage { get; set; }
///
/// BCL-电流需求
///
public uint BCLCurrent { get; set; }
///
/// BCL-充电模式
///
public byte BCLChargMode { get; set; }
///
/// BCS-充电电压测量值
///
public uint BCSVoltageValue { get; set; }
///
/// BCS-充电电流测量值
///
public uint BCSCurrentValue { get; set; }
///
/// BCS-最高单体动力蓄电池电压
///
public uint BCSVoltageMAX { get; set; }
///
/// BCS-最高单体动力蓄电池组号
///
public byte BCSBatteryNumMAX { get; set; }
///
/// BCS-当前荷电状态soc%
///
public ushort BCSChargState { get; set; }
///
/// 估算剩余充电时间
///
public uint ReChargeTime { get; set; }
///
/// BSM-最高单体动力蓄电池电压所在编号
///
public byte BSMNum { get; set; }
///
/// BSM-最高动力蓄电池温度
///
public byte BSMMaxTemp { get; set; }
///
/// BSM-最高温度检测点编号
///
public byte MaxTempPointNum { get; set; }
///
/// BSM-最低动力蓄电池温度
///
public byte MinBatteryTemp { get; set; }
///
/// BSM-最低动力蓄电池温度检测点编号
///
public byte MinTempPointNum { get; set; }
///
/// BSM-单体动力蓄电池电压过高或过低
/// 0x00-正常
/// 0x01-过高
/// 0x10-过低
///
public byte voltageHighLow { get; set; }
///
/// BSM-整车动力蓄电池荷电状态 soc 过高或过低
///
public byte ChargStateHighLow { get; set; }
///
/// BSM-动力蓄电池充电过电流
///
public byte BmsOvercurrent { get; set; }
///
/// BSM-动力蓄电池温度过高
///
public byte TempHigh { get; set; }
///
/// BSM-动力蓄电池绝缘状态
///
public byte InsulatState { get; set; }
///
/// BSM-动力蓄电池组输出连接器连接状态
///
public byte ConnectState { get; set; }
///
/// BSM-允许充电
///
public byte AllowCharge { get; set; }
///
/// BST-BMS 达到所需求的SOC 目标值
///
public byte SOCTargetValue { get; set; }
///
/// BST-BMS 达到总电压的设定值
///
public byte SumVoltageSetValue { get; set; }
///
/// BST-达到单体电压的设定值
///
public byte VoltageSetValue { get; set; }
///
/// BST-充电机主动终止
///
public byte ChargeEnd { get; set; }
///
/// BST-绝缘故障
///
public byte InsulatFault { get; set; }
///
/// BST-输出连接器过温故障1
///
public byte OvertempFault { get; set; }
///
/// BST-BMS 元件,输出连接器过温10x00-正常,0x01-故障,0x10-不可信状态
///
public byte Overtemp { get; set; }
///
/// BST-充电连接器故障
///
public byte ConnectorFault { get; set; }
///
/// BST-电池组温度过高故障
///
public byte ChargOvertempFault { get; set; }
///
/// BST-高压继电器故障
///
public byte HVoltageFault { get; set; }
///
/// BST-检测点 2 电压检测故障
///
public byte VoltageSenseFault { get; set; }
///
/// BST-其他故障
///
public byte OtherFault { get; set; }
///
/// BST-电流过大
///
public byte Overcurrent { get; set; }
///
/// BST-电压异常
///
public byte VoltageAnomaly { get; set; }
///
/// BSD-终止荷电状态 soc
///
public ushort EndChargState { get; set; }
///
/// BSD-动力蓄电池单体最低电压
///
public uint MinVoltage { get; set; }
///
/// BSD-动力蓄电池单体最高电压
///
public uint MaxVoltage { get; set; }
///
/// BSD-动力蓄电池最低温度
///
public byte MinChargTemp { get; set; }
///
/// BSD-动力蓄电池最高温度
///
public byte MaxChargTemp { get; set; }
///
/// BEM-接收SPN2560=0x00 的充电机辨识报文超时
///
public byte ReceiveTimeout1 { get; set; }
///
/// BEM-接收SPN2560=0xaa 的充电机辨识报文超时
///
public byte ReceiveTimeout2 { get; set; }
///
/// BEM-接收充电机的时间同步和最大输出能力报文超时
///
public byte ReceiveTimeout3 { get; set; }
///
/// BEM-接收充电机完成充电准备报文超时
///
public byte ReceiveTimeout4 { get; set; }
///
/// BEM-接收充电机充电状态报文超时
///
public byte ReceiveTimeout5 { get; set; }
///
/// BEM-接收充电机终止充电报文超时
///
public byte ReceiveTimeout6 { get; set; }
///
/// BEM-接收充电机充电统计报文超时
///
public byte ReceiveTimeout7 { get; set; }
///
/// BEM-其他
///
public byte Other { get; set; }
}
}