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.
148 lines
7.9 KiB
148 lines
7.9 KiB
using System.Runtime.InteropServices;
|
|
using Entity.Attr;
|
|
using HybirdFrameworkCore.Attribute;
|
|
|
|
namespace Entity.Constant;
|
|
|
|
public class InfoEnum
|
|
{
|
|
public enum SwapInfo : ushort
|
|
{
|
|
[Info("欢迎光临换电站!(正在营业)","欢迎光临换电站!,本站正在营业中")]WelcomeInfo=1,
|
|
[Info("标签读写失败", "标签读写失败")] ErrorReadRfid ,
|
|
[Info("车辆连接失败", "车辆连接失败,请联系站务人员")] ErrorTBoxConn ,
|
|
[Info("云端校验失败", "云端校验失败,请联系站务人员")] ErrorCloudCheck ,
|
|
[Info("车辆已到位", "车辆已到位")] InfoCarInPosition ,
|
|
[Info("请挂空挡拉手刹", "请挂空挡拉手刹")] ErrorCarInPositionTimeout,
|
|
[Info("云平台下发换电失败", "云平台下发换电超时")] CloudSendSwapError ,
|
|
|
|
[Info("解锁车辆失败", "解锁车辆失败")] ErrUnLockCar ,
|
|
[Info("选包失败,请驶离", "选包失败,请驶离")] ErrorSelectPack ,
|
|
[Info("通道拍照定位失败,请在三分钟内重新调整车辆位置", "通道拍照定位失败,请在三分钟内重新调整车辆位置")]ErrChannelStatus,
|
|
[Info("亏电电池拆卸中,请稍候", "亏电电池拆卸中,请稍候")] InfoUnPack ,
|
|
[Info("满电电池安装中,请稍候", "满电电池安装中,请稍候")] InfoPack ,
|
|
[Info("电池包已安装完成", "电池包已安装完成")] InfoPackFinish ,
|
|
[Info("堆垛机已回归安全位置", "堆垛机已回归安全位置")] InfoToSafePosition ,
|
|
[Info("换电完成,请将车辆驶出换电站", "换电完成,请将车辆驶出换电站")] InfoCarLeave ,
|
|
[Info("换电失败,请驶离", "换电失败,请驶离")] ErrInfoCarLeave ,
|
|
[Info("亏电池搬运中,请稍候", "亏电池搬运中,请稍候")] InfoOldBatteryCarryIn ,
|
|
[Info("满电电池搬运中,请稍候", "满电电池搬运中,请稍候")] InfoNewBatteryCarryOut ,
|
|
[Info("车辆上锁失败", "车辆上锁失败")] ErrLockCar ,
|
|
[Info("通道的电池仓无可用换电电池","通道的电池仓无可用换电电池")] NoBatteryErr,
|
|
[Info("结束充电电池数量不足","通道的电池仓无可用换电电池")] LessOfFinishChargingErr,
|
|
[Info("空仓数量不足","通道的电池仓无可用换电电池")] LessOfEmptyBinErr,
|
|
[Info("符合soc限制数量不足","通道的电池仓无可用换电电池")] LessOfSocErr,
|
|
[Info("结束充电大于3分钟的数量不足","通道的电池仓无可用换电电池")] LessOf3MinuteErr,
|
|
[Info("换电站处于手动模式,不能自动换电","换电站处于手动模式,不能自动换电")] InfoStationModel,
|
|
[Info("换电站处于本地模式,不能远程换电","换电站处于本地模式,不能远程换电")] InfoStationModelRemoteErr,
|
|
[Info("请将车辆行驶到指定位置,并拉起手刹","请将车辆行驶到指定位置,并拉起手刹")] CarInInfo,
|
|
[Info("换电任务启动","换电任务启动")] StartSwapInfo,
|
|
[Info("相机拍照定位中,请稍后","相机拍照定位中,请稍后")] CarTakePhotoInfo,
|
|
[Info("启动换电失败,请联系站务人员","启动换电失败,请联系站务人员")] ErrStartSwap,
|
|
[Info("即将进行消防移仓,请车辆驶离","即将进行消防移仓,请车辆驶离")] InfoFireRemoveLabel,
|
|
[Info("电池移仓中","电池移仓中")] InfoBatteryMove,
|
|
[Info("消防移仓中","消防移仓中")] InfoFireRemove,
|
|
[Info("拍照失败,请在三分钟内挪车","拍照失败,请在三分钟内挪车")] ErrChannel1020,
|
|
[Info("车辆驶入","车辆驶入")] BeginReadRfid,
|
|
[Info("请按下一键换电按钮", "请按下一键换电按钮")] ErrStartSwapToTBox ,
|
|
[Info("请将货箱放下", "请将货箱放下")] InfoTboxDown ,
|
|
[Info("请将车辆下电", "请将车辆下电")] InfoTboxEnergyDown ,
|
|
[Info("请将货箱抬起", "请将货箱抬起")] InfoTboxHandUp ,
|
|
[Info("请将车辆上电", "请将车辆上电")] InfoTboxEnergyUp ,
|
|
[Info("通道定位失败,车辆需重新调整位置","通道定位失败,车辆需重新调整位置")] CarTakePhotoErrRepeat,
|
|
[Info("请操作换电启动按钮","请操作换电启动按钮")] InfoManualStartSwap,
|
|
[Info("充电机下辅源失败,请人工下辅源","充电机下辅源失败,请人工下辅源")] AuxiliarySource,
|
|
[Info("加锁成功,请上电降下货箱","加锁成功,请上电降下货箱")] LockSuccess,
|
|
[Info("开始读取标签","开始读取标签")] BeginRead,
|
|
[Info("标签读取完成","标签读取完成")] ReadRfid,
|
|
[Info("开始连接车辆","开始连接车辆")] TboxConnect,
|
|
[Info("车辆连接完成","车辆连接完成")] CheckTBoxConnectFlag,
|
|
[Info("开始选包","开始选包")] SelectPack,
|
|
[Info("充电机下辅源","充电机下辅源")] BeginAuxiliarySource,
|
|
[Info("下发启动换电","下发启动换电")] StartSwapping,
|
|
[Info("任务上使能","任务上使能")] HoldOn,
|
|
[Info("车辆加锁中,请稍候","车辆加锁中,请稍候")] LockCar,
|
|
}
|
|
|
|
|
|
public enum SelectBinStatusInfo : byte
|
|
{
|
|
[Const("通道的电池仓无可用换电电池")] NoBattery,
|
|
[Const("可以换电")] Success,
|
|
[Const("结束充电电池数量不足")] LessOfFinishCharging,
|
|
[Const("空仓数量不足")] LessOfEmptyBin,
|
|
[Const("符合soc限制数量不足")] LessOfSoc,
|
|
[Const("结束充电大于3分钟的数量不足")] LessOf3Minute,
|
|
[Const("预约电池异常")] AmtError,
|
|
}
|
|
|
|
|
|
public enum AmtOrderStatus : byte
|
|
{
|
|
[Const("预约成功")] Success = 1,
|
|
[Const("预约取消")] Cancel = 2,
|
|
[Const("预约失败")] Fail = 3,
|
|
[Const("换电完成")] SwapFinish = 4,
|
|
[Const("换电失败")] SwapFail = 5,
|
|
[Const("换电中")] Swapping = 6,
|
|
[Const("预约过期")] Expire = 7,
|
|
}
|
|
//云平台上报步序
|
|
|
|
public enum BusinessSwappingForCloudState : byte
|
|
{
|
|
[Const("未知")] UnKnown,
|
|
[Const("空闲")] Idle,
|
|
[Const("占位")] TakeUp,
|
|
[Const("换电准备")] SwapReady,
|
|
[Const("开始换电")] BeginSwap,
|
|
[Const("换电中")] Swapping,
|
|
[Const("换电完成")] SwapFinish,
|
|
[Const("换电中故障,等待修复")] SwappingErrWait,
|
|
[Const("换电中故障,修复完成")] SwappingErrDone,
|
|
[Const("换电暂停")] SwapPause,
|
|
[Const("换电继续")] SwapContinue,
|
|
[Const("换电完成(车辆未驶离)")] SwapDoneWithVel,
|
|
[Const("换电完成(车辆驶离)")] SwapDoneWithoutVel
|
|
}
|
|
|
|
//小步状态
|
|
public enum BusinessSwappingStep
|
|
{
|
|
[Const("空闲")] Idel,
|
|
[Const("车辆到站(入口雷达检测到车辆驶入)")] RadarInFlag,
|
|
[Const("rfid扫描完成")] RfidReadFlag,
|
|
[Const("车辆到位")] CarInPositionFlag,
|
|
|
|
[Const("换电就绪")] TBoxSwapReadyFlag,
|
|
[Const("车辆就绪和货箱举升到位")] LowerPressure,
|
|
|
|
[Const("车辆解锁")] VelUnlockFlag,
|
|
[Const("开始换电")] StartSwappingFlag,
|
|
[Const("拆旧电池完成")] UnOldBatteryFlag,
|
|
[Const("入库旧电池完成")] StorageOldBatteryFlag,
|
|
[Const("搬运新电池完成")] OutNewBatteryFlag,
|
|
[Const("安装新电池完成")] InstallNewBatteryFlag,
|
|
[Const("安装完成")] FinishNewBatteryFlag,
|
|
[Const("车辆上锁")] VelLockFlag,
|
|
[Const("换电完成(车辆驶离)")] RadarOutFlag,
|
|
[Const("换电失败(车辆驶离)")] RadarOutFailFlag,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum AmtBatLockStatus
|
|
{
|
|
UnLock = 0,
|
|
Lock = 1
|
|
}
|
|
|
|
public enum SwapOrderResult : byte
|
|
{
|
|
Success = 1,
|
|
Fail = 2
|
|
}
|
|
} |