commit
9c5e927ac7
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BatCharging.Service\BatCharging.Service.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,118 @@
|
||||
using BatCharging.Service;
|
||||
using DotNetty.Transport.Channels;
|
||||
using System;
|
||||
|
||||
namespace BatCharging.Manager
|
||||
{
|
||||
public class CmnChargingsEqmInfo
|
||||
{
|
||||
#region 定义锁
|
||||
private static object lockObj = new object(); //线程同步锁
|
||||
#endregion 定义锁
|
||||
|
||||
#region 字段属性
|
||||
/// <summary>
|
||||
/// 换电站编码
|
||||
/// </summary>
|
||||
internal static string _station_no = "";
|
||||
/// <summary>
|
||||
/// 换电站编码
|
||||
/// </summary>
|
||||
public static string F_StationNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _station_no;
|
||||
}
|
||||
set
|
||||
{
|
||||
lock (lockObj)
|
||||
{
|
||||
_station_no = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 仓位中充电实时功率
|
||||
/// </summary>
|
||||
internal static float[] _bin_powers = new float[7] { 0, 0, 0, 0, 0, 0, 0 };
|
||||
/// <summary>
|
||||
/// 仓位中充电实时功率
|
||||
/// </summary>
|
||||
public static float[] F_BinPowers
|
||||
{
|
||||
get
|
||||
{
|
||||
return _bin_powers;
|
||||
}
|
||||
set
|
||||
{
|
||||
lock (lockObj)
|
||||
{
|
||||
_bin_powers = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion 字段属性
|
||||
|
||||
#region 基础字段
|
||||
public static string _OUTCHR01IPADDR = "172.0.30.30";
|
||||
public static string _OUTCHR02IPADDR = "172.0.30.31";
|
||||
public static string _OUTCHR03IPADDR = "172.0.30.32";
|
||||
public static string _OUTCHR04IPADDR = "172.0.30.33";
|
||||
|
||||
public static int _OUTCHR01PORT = 4567;
|
||||
public static int _OUTCHR02PORT = 4567;
|
||||
public static int _OUTCHR03PORT = 4567;
|
||||
public static int _OUTCHR04PORT = 4567;
|
||||
|
||||
public static IChannelId _ID;
|
||||
public static string _CHR0IPADDR = "0.0.0.0";
|
||||
public static int _CHR0PORT = 4567;
|
||||
public static string _EQMCODE = "";
|
||||
|
||||
|
||||
public volatile static ChargerMgrTool _CHR01 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR02 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR03 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR04 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR05 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR06 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR07 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR08 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR09 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR10 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR11 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR12 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR13 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR14 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR15 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR16 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR17 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR18 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR19 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR20 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR21 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR22 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR23 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR24 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
#endregion 基础字段
|
||||
|
||||
#region 充电机工作状态值
|
||||
|
||||
public static byte _CHR01WORKVAL = 0;
|
||||
public static byte _CHR02WORKVAL = 0;
|
||||
public static byte _CHR03WORKVAL = 0;
|
||||
public static byte _CHR04WORKVAL = 0;
|
||||
public static byte _CHR05WORKVAL = 0;
|
||||
public static byte _CHR06WORKVAL = 0;
|
||||
public static byte _CHR07WORKVAL = 0;
|
||||
public static byte[] _CHRSWORKVAL = new byte[] { 0, 0, 0, 0, 0, 0, 0 };
|
||||
#endregion 充电机工作状态值
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DotNetty.Transport" Version="0.7.5" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BatCharging.Model\BatCharging.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,117 @@
|
||||
using DotNetty.Transport.Channels;
|
||||
using System;
|
||||
|
||||
namespace HybirdFrameworkServices
|
||||
{
|
||||
public class CmnChargingsEqmInfo
|
||||
{
|
||||
#region 定义锁
|
||||
private static object lockObj = new object(); //线程同步锁
|
||||
#endregion 定义锁
|
||||
|
||||
#region 字段属性
|
||||
/// <summary>
|
||||
/// 换电站编码
|
||||
/// </summary>
|
||||
internal static string _station_no = "";
|
||||
/// <summary>
|
||||
/// 换电站编码
|
||||
/// </summary>
|
||||
public static string F_StationNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _station_no;
|
||||
}
|
||||
set
|
||||
{
|
||||
lock (lockObj)
|
||||
{
|
||||
_station_no = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 仓位中充电实时功率
|
||||
/// </summary>
|
||||
internal static float[] _bin_powers = new float[7] { 0, 0, 0, 0, 0, 0, 0 };
|
||||
/// <summary>
|
||||
/// 仓位中充电实时功率
|
||||
/// </summary>
|
||||
public static float[] F_BinPowers
|
||||
{
|
||||
get
|
||||
{
|
||||
return _bin_powers;
|
||||
}
|
||||
set
|
||||
{
|
||||
lock (lockObj)
|
||||
{
|
||||
_bin_powers = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion 字段属性
|
||||
|
||||
#region 基础字段
|
||||
public static string _OUTCHR01IPADDR = "172.0.30.30";
|
||||
public static string _OUTCHR02IPADDR = "172.0.30.31";
|
||||
public static string _OUTCHR03IPADDR = "172.0.30.32";
|
||||
public static string _OUTCHR04IPADDR = "172.0.30.33";
|
||||
|
||||
public static int _OUTCHR01PORT = 4567;
|
||||
public static int _OUTCHR02PORT = 4567;
|
||||
public static int _OUTCHR03PORT = 4567;
|
||||
public static int _OUTCHR04PORT = 4567;
|
||||
|
||||
public static IChannelId _ID;
|
||||
public static string _CHR0IPADDR = "0.0.0.0";
|
||||
public static int _CHR0PORT = 4567;
|
||||
public static string _EQMCODE = "";
|
||||
|
||||
|
||||
public volatile static ChargerMgrTool _CHR01 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR02 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR03 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR04 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR05 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR06 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR07 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR08 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR09 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR10 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR11 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR12 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR13 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR14 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR15 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR16 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR17 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR18 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR19 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR20 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR21 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
public volatile static ChargerMgrTool _CHR22 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR23 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
public volatile static ChargerMgrTool _CHR24 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
|
||||
|
||||
#endregion 基础字段
|
||||
|
||||
#region 充电机工作状态值
|
||||
|
||||
public static byte _CHR01WORKVAL = 0;
|
||||
public static byte _CHR02WORKVAL = 0;
|
||||
public static byte _CHR03WORKVAL = 0;
|
||||
public static byte _CHR04WORKVAL = 0;
|
||||
public static byte _CHR05WORKVAL = 0;
|
||||
public static byte _CHR06WORKVAL = 0;
|
||||
public static byte _CHR07WORKVAL = 0;
|
||||
public static byte[] _CHRSWORKVAL = new byte[] { 0, 0, 0, 0, 0, 0, 0 };
|
||||
#endregion 充电机工作状态值
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue