diff --git a/Service/Execute/Step/StationReadyState.cs b/Service/Execute/Step/StationReadyState.cs index 2e3729e..b74e10b 100644 --- a/Service/Execute/Step/StationReadyState.cs +++ b/Service/Execute/Step/StationReadyState.cs @@ -211,7 +211,7 @@ public class StationReadyState : IState if (PadarMgr._PadarClient?.CarState == 6 || machine.ManualSkipRadar) { - // PlcApi.Traffic(0); + PlcApi.Traffic(0); LedClient.SendMsgByKey(InfoEnum.SwapInfo.diparkir.GetLed()); _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag, machine,type: machine.ManualSkipRadar? (int)SwapConstant.StepType.MANUAL :(int)SwapConstant.StepType.AUTO); diff --git a/Service/Execute/Step/SwapDoneState.cs b/Service/Execute/Step/SwapDoneState.cs index b687e1d..095a39d 100644 --- a/Service/Execute/Step/SwapDoneState.cs +++ b/Service/Execute/Step/SwapDoneState.cs @@ -302,7 +302,7 @@ public class SwapDoneState : IState machine.ExceptionReason = ExceptionReason.None; _log.Info("exist radar true"); - // PlcApi.Traffic(1); + PlcApi.Traffic(1); //出口写红灯 //更新车辆离场时间,上报云平台 //machine.BusinessSwappingForCloudState = diff --git a/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs b/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs index 7bde16d..f6cad1c 100644 --- a/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs +++ b/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs @@ -25,6 +25,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler protected override void ChannelRead0(IChannelHandlerContext ctx, BatteryStatusReportedReq msg) { + // ctx.Channel.WriteAndFlushAsync(message: new Msg.Host.Req.WhetherChargedReq()); UpdateBinInfo(msg.granary01, "1"); UpdateBinInfo(msg.granary02, "2"); UpdateBinInfo(msg.granary03, "3"); @@ -34,6 +35,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler protected override void ChannelRead0(IChannelHandlerContext ctx, WhetherChargedReq msg) { - Log.Info("Battery pack disassembly finish"); + Log.Info("Sends the battery charge status"); } }