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.
104 lines
2.7 KiB
104 lines
2.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BatCharging.Service
|
|
{
|
|
/// <summary>
|
|
/// 充电协议用到的常量
|
|
/// </summary>
|
|
public class CmnChargerConst
|
|
{
|
|
/// <summary>
|
|
/// 充电机的鉴权码-实际
|
|
/// </summary>
|
|
public const string AUTH_CODE = "catl8421";
|
|
|
|
// APCI开始字符
|
|
public const byte APCI_START_CHAR = 0x68;
|
|
|
|
#region 帧类型号常量
|
|
|
|
/// <summary>
|
|
/// 对时
|
|
/// </summary>
|
|
public const byte FTN_CHECK_TIME = 2;
|
|
/// <summary>
|
|
/// 全遥信
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_SIGNALLING = 5;
|
|
/// <summary>
|
|
/// 全遥测
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_METERING = 11;
|
|
/// <summary>
|
|
/// 电度量
|
|
/// </summary>
|
|
public const byte FTN_ELEC_POWER_VALUE = 16;
|
|
/// <summary>
|
|
/// 主动上送充电记录
|
|
/// </summary>
|
|
public const byte FTN_UPLOAD_RECORD = 45;
|
|
/// <summary>
|
|
/// BMS监控、维护、诊断数据
|
|
/// </summary>
|
|
public const byte FTN_BMS_MONITOR = 46;
|
|
/// <summary>
|
|
/// 远程启动
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_START = 47;
|
|
/// <summary>
|
|
/// 远程停止
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_STOP = 48;
|
|
/// <summary>
|
|
/// 远程启动响应
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_START_RES = 49;
|
|
/// <summary>
|
|
/// 远程停止响应
|
|
/// </summary>
|
|
public const byte FTN_REMOTE_STOP_RES = 50;
|
|
#endregion 帧类型号常量
|
|
|
|
#region 传送原因常量
|
|
/// <summary>
|
|
/// 未用
|
|
/// </summary>
|
|
public const byte TS_UNUSE = 0;
|
|
/// <summary>
|
|
/// 突发
|
|
/// </summary>
|
|
public const byte TS_SUDDEN_OCCER = 1;
|
|
/// <summary>
|
|
/// 循环上送
|
|
/// </summary>
|
|
public const byte TS_CYCLE_UPLOAD = 2;
|
|
/// <summary>
|
|
/// 激活
|
|
/// </summary>
|
|
public const byte TS_ACTIVATE = 3;
|
|
/// <summary>
|
|
/// 激活确认
|
|
/// </summary>
|
|
public const byte TS_ACTIVATE_CONFIRM = 4;
|
|
/// <summary>
|
|
/// 总召响应
|
|
/// </summary>
|
|
public const byte TS_GENERAL_CALL_RESPONSE = 5;
|
|
/// <summary>
|
|
/// 请求或被请求
|
|
/// </summary>
|
|
public const byte TS_REQUEST = 6;
|
|
/// <summary>
|
|
/// 响应计数量召唤
|
|
/// </summary>
|
|
public const byte TS_RESPONSE_TOTAL_NUM = 7;
|
|
#endregion 传送原因常量
|
|
|
|
|
|
}
|
|
}
|