|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data.Common;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace BatCharging.Model
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 4.4.1.1 充放电机上传基本状态
|
|
|
/// </summary>
|
|
|
public class BatteryCycleUpBasic
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// PGN码
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
/// PGN码
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
/// PGN码
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 报警级别 0:正常
|
|
|
/// 1:1级报警
|
|
|
/// 3:3级报警
|
|
|
/// 5:5级报警
|
|
|
/// 其余保留
|
|
|
/// </summary>
|
|
|
public byte AlarmLevel { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池箱所在位置编号 分辨率:1/位,偏移量:0,数值范围:1~250
|
|
|
/// </summary>
|
|
|
public byte batteryBoxNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池箱能输出的最大电流值 分辨率:0.05A/位,偏移量:-1600A,数值范围:-1600A ~ 1612.75A
|
|
|
/// </summary>
|
|
|
public UInt16 maxCurOutBatBox { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池箱能承受最大反馈电流值 分辨率:0.05A/位,偏移量:-1600A,数值范围:-1600A~1612.75A
|
|
|
/// </summary>
|
|
|
public UInt16 maxCanCurOutBatBox { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池箱风扇状态 0:关闭
|
|
|
/// 1:开启
|
|
|
/// 2:不可用
|
|
|
/// 3:不可用
|
|
|
/// </summary>
|
|
|
public UInt16 BatBoxFanStatus { get; set; }
|
|
|
/// <summary>
|
|
|
/// 加热装置状态 0:关闭
|
|
|
/// 1:开启
|
|
|
/// 2:不可用
|
|
|
/// 3:不可用
|
|
|
/// </summary>
|
|
|
public UInt16 HeaterCondition { get; set; }
|
|
|
/// <summary>
|
|
|
/// 均衡状态 0:关闭
|
|
|
/// 1:开启
|
|
|
/// 2:不可用
|
|
|
/// 3:不可用
|
|
|
/// </summary>
|
|
|
public UInt16 stateEqu { get; set; }
|
|
|
/// <summary>
|
|
|
/// 高压互锁状态 0断开 1连接
|
|
|
/// </summary>
|
|
|
public UInt16 HighVolIntlockState { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留
|
|
|
/// </summary>
|
|
|
public byte retain { get; set; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 4.4.1.2 充放电机上传报警状态(PGN:0x00F811)
|
|
|
/// </summary>
|
|
|
public class BatteryCycleUpalarm
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体蓄电池或蓄电池模块电压越限
|
|
|
/// </summary>
|
|
|
public UInt16 batModVolExcThr { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电压偏差越限
|
|
|
/// </summary>
|
|
|
public UInt16 VolDevExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 温度越限
|
|
|
/// </summary>
|
|
|
public UInt16 TemOvershoot { get; set; }
|
|
|
/// <summary>
|
|
|
/// 温度偏差越限
|
|
|
/// </summary>
|
|
|
public UInt16 TemDevExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// SOC低
|
|
|
/// </summary>
|
|
|
public UInt16 LowSOC { get; set; }
|
|
|
/// <summary>
|
|
|
/// 放电电流越限
|
|
|
/// </summary>
|
|
|
public UInt16 disCurExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 充电电流限
|
|
|
/// </summary>
|
|
|
public UInt16 ChaCurLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 总正负极柱温度越限
|
|
|
/// </summary>
|
|
|
public UInt16 TotTemExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池系统故障码
|
|
|
/// </summary>
|
|
|
public UInt16 BatSysFaultCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 高压绝缘低
|
|
|
/// </summary>
|
|
|
public UInt16 HighVolLowIns { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体蓄电池或蓄电池模块电压越极限
|
|
|
/// </summary>
|
|
|
public UInt16 VolBatModExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电压偏差越极限
|
|
|
/// </summary>
|
|
|
public UInt16 VolDevExcOveLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 温度越极限
|
|
|
/// </summary>
|
|
|
public UInt16 TemOveLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 温度偏差越极限
|
|
|
/// </summary>
|
|
|
public UInt16 TemDevExcOveLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// SOC极低
|
|
|
/// </summary>
|
|
|
public UInt16 VeryLowSOC { get; set; }
|
|
|
/// <summary>
|
|
|
/// 放电电流越极限
|
|
|
/// </summary>
|
|
|
public UInt16 DisCurExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 充电电流越极限
|
|
|
/// </summary>
|
|
|
public UInt16 ChaCurExcLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 总正负极柱温度越极限
|
|
|
/// </summary>
|
|
|
public UInt16 TotPosNegColTemOveLimit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 高压绝缘极低
|
|
|
/// </summary>
|
|
|
public UInt16 HighVolInsExtLow { get; set; }
|
|
|
/// <summary>
|
|
|
/// 硬件故障
|
|
|
/// </summary>
|
|
|
public UInt16 hardwareFailure { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain1 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain2 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain4 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain5 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain6 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain7 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain8 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain9 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留1
|
|
|
/// </summary>
|
|
|
public byte retain10 { get; set; }
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 充放电机上传电压电流SOC数据(PGN:0x00F812)
|
|
|
/// </summary>
|
|
|
public class BatteryCycleUpSoc
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电压测量值
|
|
|
/// </summary>
|
|
|
public UInt16 VolMea { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电流测量值
|
|
|
/// </summary>
|
|
|
public UInt16 CurrentMea { get; set; }
|
|
|
/// <summary>
|
|
|
/// 当前SOC
|
|
|
/// </summary>
|
|
|
public UInt16 nowSOC { get; set; }
|
|
|
/// <summary>
|
|
|
/// 当前SOH
|
|
|
/// </summary>
|
|
|
public byte nowSOH { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留
|
|
|
/// </summary>
|
|
|
public byte retain { get; set; }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 充放电机上传单体动力蓄电池电压极值统计(PGN:0x00F822)(记录类型65)
|
|
|
/// </summary>
|
|
|
public class BatCycUpVolExtSta
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体蓄电池或蓄电池模块最高电压
|
|
|
/// </summary>
|
|
|
public UInt16 maxVol { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最高电压单体蓄电池或蓄电池模块的编号
|
|
|
/// </summary>
|
|
|
public byte maxValNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体蓄电池或蓄电池模块最低电压
|
|
|
/// </summary>
|
|
|
public UInt16 minVol { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最低电压单体蓄电池或蓄电池模块的编号
|
|
|
/// </summary>
|
|
|
public byte minValNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体平均电压
|
|
|
/// </summary>
|
|
|
public UInt16 averageVol { get; set; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 4.4.1.5 充放电机上传温度检测点极值数据(PGN:0x00F823)
|
|
|
/// </summary>
|
|
|
public class BatteryCycleUpTest
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最高温度
|
|
|
/// </summary>
|
|
|
public byte maxTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最高温度检测点编号
|
|
|
/// </summary>
|
|
|
public byte maxTemTestNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最低温度
|
|
|
/// </summary>
|
|
|
public byte minTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 最低温度检测点编号
|
|
|
/// </summary>
|
|
|
public byte minTemTestNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 连接器总正极柱温度
|
|
|
/// </summary>
|
|
|
public byte PosColTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 连接器总负极柱温度
|
|
|
/// </summary>
|
|
|
public byte NegColTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 单体平均温度
|
|
|
/// </summary>
|
|
|
public byte aveTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 保留
|
|
|
/// </summary>
|
|
|
public byte retain { get; set; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 4.4.1.6 充放电机上传BMS设备状态(PGN:0x00F82B)
|
|
|
/// </summary>
|
|
|
public class BatterCycleUpBMS
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG1 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG2 { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public byte PNG3 { get; set; }
|
|
|
/// <summary>
|
|
|
/// 充电故障状态
|
|
|
/// </summary>
|
|
|
public UInt32 dischargeState { get; set; }
|
|
|
/// <summary>
|
|
|
/// 放电故障状态
|
|
|
/// </summary>
|
|
|
public UInt32 DischargeState { get; set; }
|
|
|
/// <summary>
|
|
|
/// 主正继电器状态
|
|
|
/// </summary>
|
|
|
public UInt32 posRelayStatu { get; set; }
|
|
|
/// <summary>
|
|
|
/// 主负继电器状态
|
|
|
/// </summary>
|
|
|
public UInt32 NegRelayState { get; set; }
|
|
|
/// <summary>
|
|
|
/// 预充状态
|
|
|
/// </summary>
|
|
|
public UInt32 PreCondition { get; set; }
|
|
|
/// <summary>
|
|
|
/// 均衡状态
|
|
|
/// </summary>
|
|
|
public UInt32 stateEqu { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池允许断12V辅源
|
|
|
/// </summary>
|
|
|
public UInt32 BatteryPermit { get; set; }
|
|
|
/// <summary>
|
|
|
/// 绝缘状态
|
|
|
/// </summary>
|
|
|
public UInt32 stateInsulation { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池运行状态
|
|
|
/// </summary>
|
|
|
public UInt32 runState { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池健康体检
|
|
|
/// </summary>
|
|
|
public UInt32 BatHealthExa { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池热管理需求
|
|
|
/// </summary>
|
|
|
public UInt32 BatTheMan { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池允许充电状态
|
|
|
/// </summary>
|
|
|
public UInt32 batAllCha { get; set; }
|
|
|
/// <summary>
|
|
|
/// 热失控报警状态
|
|
|
/// </summary>
|
|
|
public UInt32 TheRunAlaSta { get; set; }
|
|
|
/// <summary>
|
|
|
/// 冷却液进水口温度
|
|
|
/// </summary>
|
|
|
public UInt32 CooInlTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 冷却液出水口温度
|
|
|
/// </summary>
|
|
|
public UInt32 CooOutTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 直流内阻
|
|
|
/// </summary>
|
|
|
public UInt32 DCIntRes { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池包后部温度
|
|
|
/// </summary>
|
|
|
public UInt32 TemRearBatPack { get; set; }
|
|
|
/// <summary>
|
|
|
/// 电池包前部温度
|
|
|
/// </summary>
|
|
|
public UInt32 TemFrontBatPack { get; set; }
|
|
|
/// <summary>
|
|
|
/// 中左部温度
|
|
|
/// </summary>
|
|
|
public UInt32 MiddleLefTem { get; set; }
|
|
|
/// <summary>
|
|
|
/// 中右部温度
|
|
|
/// </summary>
|
|
|
public UInt32 MiddleRigTem { get; set; }
|
|
|
|
|
|
}
|
|
|
}
|