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