站外充电机测试数据调整

master
CZ 4 months ago
parent 0e3e574308
commit 6481d37b8e

@ -172,7 +172,23 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
/// <summary>
/// 充电桩状态信息
/// </summary>
public ConcurrentDictionary<byte, ChargerPile> ChargerPile = new();
public ConcurrentDictionary<byte, ChargerPile> ChargerPile = new()
{
[1]=new ChargerPile(),
[2]=new ChargerPile(),
[3]=new ChargerPile(),
[4]=new ChargerPile(),
[5]=new ChargerPile(),
[6]=new ChargerPile(),
[7]=new ChargerPile(),
[8]=new ChargerPile(),
[9]=new ChargerPile(),
[10]=new ChargerPile(),
[11]=new ChargerPile(),
[12]=new ChargerPile(),
[13]=new ChargerPile(),
[14]=new ChargerPile(),
};
/// <summary>
/// 充电桩功率

@ -99,7 +99,7 @@ public static class ChargerUtils
{
// 除2,向上取整,拿到本地充电机code
int ceilResult = (int)Math.Ceiling(parsedNumber / 2.0);
return ceilResult.ToString();
return "C200" + ceilResult.ToString();
}
else
{

@ -1,4 +1,5 @@
using DotNetty.Transport.Channels;
using HybirdFrameworkCore.Autofac.Attribute;
using log4net;
using Service.Charger.Client;
using Service.Charger.Handler;
@ -8,6 +9,8 @@ namespace Service.Charger.Handler.OutCharger;
/// <summary>
/// 3.7.11 充电桩遥信数据上报
/// </summary>
[Order(8)]
[Scope("InstancePerDependency")]
public class PileUploadRemoteSignalHandler: SimpleChannelInboundHandler<PileUploadRemoteSignal>, IBaseHandler
{
private static readonly ILog Log = LogManager.GetLogger(typeof(PileUploadRemoteSignalHandler));

Loading…
Cancel
Save