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.

35 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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";
public static readonly byte[] BatteryBasicInfo2 = { 0x00, 0xF8, 0x02 };
public static readonly byte[] BatteryNo = { 0x00, 0xF8, 0x81 };
public static readonly byte[] BatteryBasicInfo = { 0x00, 0xF8, 0x82 };
}
/// <summary>
/// 充电状态。0:无效值1:鉴权成功2:鉴权失败3开始充电成功4开始充电失败5正在充电6停止充电成功7停止充电失败
/// </summary>
public enum ChargingStatus
{
UnKnown,
Authed,
AuthFailed,
StartChargingSuccess,
StartChargingFailed,
Charging,
StopChargingSuccess,
StopChargingFailed
}