From 56d831fb5cfb90b1fb6219a25f99abd72da3e69e Mon Sep 17 00:00:00 2001 From: zby <2494737567@qq.com> Date: Wed, 16 Oct 2024 08:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E7=BB=BF=E7=81=AF=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/StationReadyState.cs | 2 +- Service/Execute/Step/SwapDoneState.cs | 2 +- Service/Plc/Handler/BatteryStatusReportedReqHandler.cs | 2 ++ Service/Plc/Handler/WhetherChargedReqHandler.cs | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) 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"); } }