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.
|
|
|
|
using DotNetty.Common.Utilities;
|
|
|
|
|
|
|
|
|
|
namespace Service.Charger.Common;
|
|
|
|
|
|
|
|
|
|
public static class ChargerConst
|
|
|
|
|
{
|
|
|
|
|
public static readonly AttributeKey<string> ChargerSn = AttributeKey<string>.ValueOf("charger_sn");
|
|
|
|
|
public static readonly AttributeKey<string> EqmTypeNo = AttributeKey<string>.ValueOf("eqm_type_no");
|
|
|
|
|
public static readonly AttributeKey<string> EqmCode = AttributeKey<string>.ValueOf("eqm_code");
|
|
|
|
|
public static readonly AttributeKey<string> DestAddr = AttributeKey<string>.ValueOf("dest_addr");
|
|
|
|
|
public static readonly string DateFormat = "yyMMddHHmmss";
|
|
|
|
|
|
|
|
|
|
public static readonly byte[] StartChar = { 0x68 /* ,0xEE*/ };
|
|
|
|
|
public static readonly string AuthCode = "szhckj01";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电状态。0:无效值;1:鉴权成功;2:鉴权失败;3:开始充电成功;4:开始充电失败;5:正在充电;6:停止充电成功;7:停止充电失败;
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum ChargingStatus
|
|
|
|
|
{
|
|
|
|
|
UnKnown,
|
|
|
|
|
Authed,
|
|
|
|
|
AuthFailed,
|
|
|
|
|
StartChargingSuccess,
|
|
|
|
|
StartChargingFailed,
|
|
|
|
|
Charging,
|
|
|
|
|
StopChargingSuccess,
|
|
|
|
|
StopChargingFailed
|
|
|
|
|
}
|