diff --git a/BatCharging.Service/ChargerMgrTool.cs b/BatCharging.Service/ChargerMgrTool.cs
index 8538ea5..d931e14 100644
--- a/BatCharging.Service/ChargerMgrTool.cs
+++ b/BatCharging.Service/ChargerMgrTool.cs
@@ -1014,8 +1014,8 @@ namespace BatCharging.Service
if (CMD4 != null)
{
byte type = 0;
- uint startAddress = 0;
- byte[] setData = null;
+ uint startAddress = 1;
+ byte[] setData = new byte[4];
//(CMD=3)后台服务器下发充电桩字符型参数
CmnChargerParam._CHR00TCPCLIENT.Send3(type, startAddress, setData);
@@ -1035,7 +1035,7 @@ namespace BatCharging.Service
byte type = 0;
uint startAddress = 0;
byte num = 0;
- byte[] setData = null;
+ byte[] setData = new byte[4];
//(CMD=5)后台服务器下发充电桩控制命令
CmnChargerParam._CHR00TCPCLIENT.Send5(type, startAddress, num, setData);
@@ -1053,7 +1053,7 @@ namespace BatCharging.Service
if (CMD8 != null)
{
CMD7 CMD = new CMD7();
-
+ CMD.value13 = "12345678901234567890123456789012";
//(CMD=1)后台服务器下发充电桩整形工作参数
CmnChargerParam._CHR00TCPCLIENT.Send7(CMD);
diff --git a/BatCharging.Service/ChargerSendMsg.cs b/BatCharging.Service/ChargerSendMsg.cs
index 1cfe0a9..1c0a441 100644
--- a/BatCharging.Service/ChargerSendMsg.cs
+++ b/BatCharging.Service/ChargerSendMsg.cs
@@ -323,7 +323,7 @@ namespace BatCharging.Service
CMD3.value2 = 0;
CMD3.value3 = type;
CMD3.value4 = startAddress;
- CMD3.value5 = pubCommonClass.cmd3StartAddress[startAddress];
+ CMD3.value5 = PubCommonClass.cmd3StartAddress[startAddress];
CMD3.value6 = setData;
byte[] bytes = new ChargerSendCMD().SendRCMD3(out APDUModel, CMD3);
diff --git a/BatCharging.Service/Common/ByteUtils.cs b/BatCharging.Service/Common/ByteUtils.cs
index 9d558a7..a0234ef 100644
--- a/BatCharging.Service/Common/ByteUtils.cs
+++ b/BatCharging.Service/Common/ByteUtils.cs
@@ -134,6 +134,41 @@ namespace BatCharging.Service
returnBytes[i] = Convert.ToByte(hexString.Substring(i * 2, 2), 16);
return returnBytes;
}
+ ///
+ /// 获取32进制字符串的字节数组
+ ///
+ /// hexString 16进制字符串
+ /// 字节数组
+ public static byte[] ToByteByHexStr32(string hexString)
+ {
+ // 使用UTF8编码将字符串转换为字节数组
+ byte[] byteArray = Encoding.UTF8.GetBytes(hexString);
+
+ // 输出转换后的字节数组
+ foreach (var b in byteArray)
+ {
+ Console.Write("{0:X2} ", b);
+ }
+
+ // 如果需要确保数组长度为32字节,可以添加逻辑来处理长度不足的情况
+ if (byteArray.Length < 32)
+ {
+ List lstByte = byteArray.ToList();
+ // 长度不足,可以添加填充或者抛出异常
+ for (int i = byteArray.Length; i < 32; i++)
+ {
+ lstByte.Add(0);
+ }
+ byteArray = lstByte.ToArray();
+ }
+ else if (byteArray.Length > 32)
+ {
+ // 长度超过32字节,可以截断或者抛出异常
+ Console.WriteLine("字符串转换后的字节数组长度超过32字节,将截断到32字节。");
+ Array.Copy(byteArray, 0, new byte[32], 0, 32); // 截断数组到32字节
+ }
+ return byteArray;
+ }
///
/// 获取16进制字符串的字节数组
diff --git a/BatCharging.Service/Common/PublicProgram.cs b/BatCharging.Service/Common/PublicProgram.cs
index 6117db4..903c4eb 100644
--- a/BatCharging.Service/Common/PublicProgram.cs
+++ b/BatCharging.Service/Common/PublicProgram.cs
@@ -52,7 +52,7 @@ namespace BatCharging.Service
{
int checksum = 0;
- for (int i = 8; i < data.Count(); i++)//这里没校验域所以不减一
+ for (int i = 6; i < data.Count(); i++)//这里没校验域所以不减一
{
checksum += data[i];
}
diff --git a/BatCharging.Service/发送方法/ChargerSendCMD.cs b/BatCharging.Service/发送方法/ChargerSendCMD.cs
index 4193890..9ecddf1 100644
--- a/BatCharging.Service/发送方法/ChargerSendCMD.cs
+++ b/BatCharging.Service/发送方法/ChargerSendCMD.cs
@@ -17,7 +17,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -74,7 +74,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -128,7 +128,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -182,7 +182,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -224,7 +224,7 @@ namespace BatCharging.Service
lstContent.AddRange(BitConverter.GetBytes(CMD.value10));
lstContent.AddRange(BitConverter.GetBytes(CMD.value11));
lstContent.AddRange(BitConverter.GetBytes(CMD.value12));
- lstContent.AddRange(ByteUtils.ToByteByHexStr(CMD.value13));
+ lstContent.AddRange(ByteUtils.ToByteByHexStr32(CMD.value13));
lstContent.AddRange(BitConverter.GetBytes(CMD.value14));
lstContent.AddRange(BitConverter.GetBytes(CMD.value15));
lstContent.AddRange(BitConverter.GetBytes(CMD.value16));
@@ -240,7 +240,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -293,7 +293,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -340,7 +340,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -386,7 +386,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -444,7 +444,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -491,7 +491,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -536,7 +536,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -581,7 +581,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -631,7 +631,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -684,7 +684,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -741,7 +741,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -790,7 +790,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -846,7 +846,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -897,7 +897,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -943,7 +943,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -990,7 +990,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1039,7 +1039,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1083,7 +1083,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1127,7 +1127,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1171,7 +1171,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1215,7 +1215,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1260,7 +1260,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1304,7 +1304,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1353,7 +1353,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1396,7 +1396,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1508,7 +1508,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1632,7 +1632,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1678,7 +1678,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1738,7 +1738,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
@@ -1788,7 +1788,7 @@ namespace BatCharging.Service
APDUModel model = new APDUModel();
model.OriginDomain1 = 0xAA;
- model.OriginDomain1 = 0xF5;
+ model.OriginDomain2 = 0xF5;
model.infoDomain = 0x02;
model.SerialNumberDomain = 0xff;
model.CMD = 1;
diff --git a/CommonClass/PubCommonClass.cs b/CommonClass/PubCommonClass.cs
index 6980cc7..f7ef88f 100644
--- a/CommonClass/PubCommonClass.cs
+++ b/CommonClass/PubCommonClass.cs
@@ -8,7 +8,7 @@
///
///
///
- public Dictionary cmd3StartAddress = new Dictionary();
+ public static Dictionary cmd3StartAddress = new Dictionary();
//public Dictionary<>
diff --git a/Module.Socket.Tool/AesEncryption.cs b/Module.Socket.Tool/AesEncryption.cs
new file mode 100644
index 0000000..8129655
--- /dev/null
+++ b/Module.Socket.Tool/AesEncryption.cs
@@ -0,0 +1,80 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Security.Cryptography;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Module.Socket.Tool
+{
+ ///
+ /// AES加密
+ ///
+ public class AesEncryption
+ {
+ private static readonly byte[] Key = Encoding.UTF8.GetBytes("YourSecretKeyHere12345678"); // 必须是32字节(256位)
+ private static readonly byte[] Iv = Encoding.UTF8.GetBytes("YourInitializationVectorHere"); // 必须是16字节(128位)
+
+ public static byte[] EncryptStringToBytes(string plainText)
+ {
+ if (plainText == null || plainText.Length <= 0)
+ throw new ArgumentNullException(nameof(plainText));
+ if (Key == null || Key.Length != 32)
+ throw new ArgumentNullException(nameof(Key));
+ if (Iv == null || Iv.Length != 16)
+ throw new ArgumentNullException(nameof(Iv));
+
+ byte[] encrypted;
+
+ using (Aes aesAlg = Aes.Create())
+ {
+ aesAlg.Key = Key;
+ aesAlg.IV = Iv;
+
+ ICryptoTransform encryptor = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV);
+
+ using (MemoryStream msEncrypt = new MemoryStream())
+ {
+ using (CryptoStream csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write))
+ using (StreamWriter swEncrypt = new StreamWriter(csEncrypt))
+ {
+ swEncrypt.Write(plainText);
+ }
+ encrypted = msEncrypt.ToArray();
+ }
+ }
+
+ return encrypted;
+ }
+
+ public static string DecryptBytesToString(byte[] cipherText)
+ {
+ if (cipherText == null || cipherText.Length <= 0)
+ throw new ArgumentNullException(nameof(cipherText));
+ if (Key == null || Key.Length != 32)
+ throw new ArgumentNullException(nameof(Key));
+ if (Iv == null || Iv.Length != 16)
+ throw new ArgumentNullException(nameof(Iv));
+
+ string plaintext = null;
+
+ using (Aes aesAlg = Aes.Create())
+ {
+ aesAlg.Key = Key;
+ aesAlg.IV = Iv;
+
+ ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV);
+
+ using (MemoryStream msDecrypt = new MemoryStream(cipherText))
+ using (CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read))
+ using (StreamReader srDecrypt = new StreamReader(csDecrypt))
+ {
+ plaintext = srDecrypt.ReadToEnd();
+ }
+ }
+
+ return plaintext;
+ }
+ }
+}
diff --git a/Module.Socket.Tool/Module.Socket.Tool.csproj b/Module.Socket.Tool/Module.Socket.Tool.csproj
index a48860f..22e324b 100644
--- a/Module.Socket.Tool/Module.Socket.Tool.csproj
+++ b/Module.Socket.Tool/Module.Socket.Tool.csproj
@@ -42,6 +42,7 @@
+
diff --git a/Module.Socket.Tool/TcpClientChargerTool.cs b/Module.Socket.Tool/TcpClientChargerTool.cs
index e7c0b4a..56eb4bd 100644
--- a/Module.Socket.Tool/TcpClientChargerTool.cs
+++ b/Module.Socket.Tool/TcpClientChargerTool.cs
@@ -392,7 +392,7 @@ namespace Module.Socket.Tool
bool bResult = false;
int checksum = 0;
- for (int i = 8; i < data.Count() - 1; i++)//这里有校验域所以减一
+ for (int i = 6; i < data.Count() - 1; i++)//这里有校验域所以减一
{
checksum += data[i];
}
@@ -438,7 +438,22 @@ namespace Module.Socket.Tool
//校验域是否正确
if (checksumDomainReceive(newBytes))
- lstResult.Add(newBytes);
+ {
+ var info = newBytes[4];
+ if ((info & (1 << 1)) != 0)//AES加密
+ {
+
+ List byteList = newBytes.ToList();
+ byteList.Remove(8);
+ byteList.Remove(8);//移除前面两个长度
+ newBytes= byteList.ToArray();
+ lstResult.Add(newBytes);
+ }
+ else //不加密
+ {
+ lstResult.Add(newBytes);
+ }
+ }
}
}
}
diff --git a/Monitor.ChargeTest/FrmChargeResult.Designer.cs b/Monitor.ChargeTest/FrmChargeResult.Designer.cs
index e55944d..501d432 100644
--- a/Monitor.ChargeTest/FrmChargeResult.Designer.cs
+++ b/Monitor.ChargeTest/FrmChargeResult.Designer.cs
@@ -28,616 +28,607 @@
///
private void InitializeComponent()
{
- this.groupBox3 = new System.Windows.Forms.GroupBox();
- this.label3 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.lstBoxConnect = new System.Windows.Forms.ListBox();
- this.txtDestAddr = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.txtChargePort = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.txtChargeIp = new System.Windows.Forms.TextBox();
- this.BtnCloseConnect = new System.Windows.Forms.Button();
- this.BtnChrg01Connect = new System.Windows.Forms.Button();
- this.groupBox5 = new System.Windows.Forms.GroupBox();
- this.lstSendFrameInfo = new System.Windows.Forms.ListBox();
- this.groupBox9 = new System.Windows.Forms.GroupBox();
- this.groupBox11 = new System.Windows.Forms.GroupBox();
- this.button26 = new System.Windows.Forms.Button();
- this.button20 = new System.Windows.Forms.Button();
- this.button21 = new System.Windows.Forms.Button();
- this.button24 = new System.Windows.Forms.Button();
- this.button19 = new System.Windows.Forms.Button();
- this.button23 = new System.Windows.Forms.Button();
- this.button22 = new System.Windows.Forms.Button();
- this.groupBox8 = new System.Windows.Forms.GroupBox();
- this.groupBox12 = new System.Windows.Forms.GroupBox();
- this.button12 = new System.Windows.Forms.Button();
- this.button27 = new System.Windows.Forms.Button();
- this.button28 = new System.Windows.Forms.Button();
- this.button29 = new System.Windows.Forms.Button();
- this.button30 = new System.Windows.Forms.Button();
- this.button15 = new System.Windows.Forms.Button();
- this.button14 = new System.Windows.Forms.Button();
- this.button16 = new System.Windows.Forms.Button();
- this.button17 = new System.Windows.Forms.Button();
- this.button18 = new System.Windows.Forms.Button();
- this.lstRecvFrameInfo = new System.Windows.Forms.ListBox();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.button5 = new System.Windows.Forms.Button();
- this.button6 = new System.Windows.Forms.Button();
- this.button7 = new System.Windows.Forms.Button();
- this.button8 = new System.Windows.Forms.Button();
- this.button9 = new System.Windows.Forms.Button();
- this.button10 = new System.Windows.Forms.Button();
- this.groupBox3.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.groupBox5.SuspendLayout();
- this.groupBox9.SuspendLayout();
- this.groupBox11.SuspendLayout();
- this.groupBox8.SuspendLayout();
- this.groupBox12.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.SuspendLayout();
+ groupBox3 = new System.Windows.Forms.GroupBox();
+ label3 = new System.Windows.Forms.Label();
+ groupBox1 = new System.Windows.Forms.GroupBox();
+ lstBoxConnect = new System.Windows.Forms.ListBox();
+ txtDestAddr = new System.Windows.Forms.TextBox();
+ label2 = new System.Windows.Forms.Label();
+ txtChargePort = new System.Windows.Forms.TextBox();
+ label1 = new System.Windows.Forms.Label();
+ txtChargeIp = new System.Windows.Forms.TextBox();
+ BtnCloseConnect = new System.Windows.Forms.Button();
+ BtnChrg01Connect = new System.Windows.Forms.Button();
+ groupBox5 = new System.Windows.Forms.GroupBox();
+ lstSendFrameInfo = new System.Windows.Forms.ListBox();
+ groupBox9 = new System.Windows.Forms.GroupBox();
+ groupBox11 = new System.Windows.Forms.GroupBox();
+ button26 = new System.Windows.Forms.Button();
+ button20 = new System.Windows.Forms.Button();
+ button21 = new System.Windows.Forms.Button();
+ button24 = new System.Windows.Forms.Button();
+ button19 = new System.Windows.Forms.Button();
+ button23 = new System.Windows.Forms.Button();
+ button22 = new System.Windows.Forms.Button();
+ groupBox8 = new System.Windows.Forms.GroupBox();
+ groupBox12 = new System.Windows.Forms.GroupBox();
+ button12 = new System.Windows.Forms.Button();
+ button27 = new System.Windows.Forms.Button();
+ button28 = new System.Windows.Forms.Button();
+ button29 = new System.Windows.Forms.Button();
+ button30 = new System.Windows.Forms.Button();
+ button15 = new System.Windows.Forms.Button();
+ button14 = new System.Windows.Forms.Button();
+ button16 = new System.Windows.Forms.Button();
+ button17 = new System.Windows.Forms.Button();
+ button18 = new System.Windows.Forms.Button();
+ lstRecvFrameInfo = new System.Windows.Forms.ListBox();
+ groupBox2 = new System.Windows.Forms.GroupBox();
+ button1 = new System.Windows.Forms.Button();
+ button2 = new System.Windows.Forms.Button();
+ button3 = new System.Windows.Forms.Button();
+ button4 = new System.Windows.Forms.Button();
+ button5 = new System.Windows.Forms.Button();
+ button6 = new System.Windows.Forms.Button();
+ button7 = new System.Windows.Forms.Button();
+ button8 = new System.Windows.Forms.Button();
+ button9 = new System.Windows.Forms.Button();
+ button10 = new System.Windows.Forms.Button();
+ groupBox3.SuspendLayout();
+ groupBox1.SuspendLayout();
+ groupBox5.SuspendLayout();
+ groupBox9.SuspendLayout();
+ groupBox11.SuspendLayout();
+ groupBox8.SuspendLayout();
+ groupBox12.SuspendLayout();
+ groupBox2.SuspendLayout();
+ SuspendLayout();
//
// groupBox3
//
- this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBox3.Controls.Add(this.label3);
- this.groupBox3.Controls.Add(this.groupBox1);
- this.groupBox3.Controls.Add(this.txtDestAddr);
- this.groupBox3.Controls.Add(this.label2);
- this.groupBox3.Controls.Add(this.txtChargePort);
- this.groupBox3.Controls.Add(this.label1);
- this.groupBox3.Controls.Add(this.txtChargeIp);
- this.groupBox3.Controls.Add(this.BtnCloseConnect);
- this.groupBox3.Controls.Add(this.BtnChrg01Connect);
- this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.groupBox3.Location = new System.Drawing.Point(11, 28);
- this.groupBox3.Margin = new System.Windows.Forms.Padding(5);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox3.Size = new System.Drawing.Size(1540, 63);
- this.groupBox3.TabIndex = 80;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "充电机连接";
+ groupBox3.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
+ groupBox3.Controls.Add(label3);
+ groupBox3.Controls.Add(groupBox1);
+ groupBox3.Controls.Add(txtDestAddr);
+ groupBox3.Controls.Add(label2);
+ groupBox3.Controls.Add(txtChargePort);
+ groupBox3.Controls.Add(label1);
+ groupBox3.Controls.Add(txtChargeIp);
+ groupBox3.Controls.Add(BtnCloseConnect);
+ groupBox3.Controls.Add(BtnChrg01Connect);
+ groupBox3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ groupBox3.Location = new System.Drawing.Point(11, 28);
+ groupBox3.Margin = new System.Windows.Forms.Padding(5);
+ groupBox3.Name = "groupBox3";
+ groupBox3.Padding = new System.Windows.Forms.Padding(5);
+ groupBox3.Size = new System.Drawing.Size(1540, 63);
+ groupBox3.TabIndex = 80;
+ groupBox3.TabStop = false;
+ groupBox3.Text = "充电机连接";
//
// label3
//
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(359, 38);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(94, 20);
- this.label3.TabIndex = 20;
- this.label3.Text = "DestAddr:";
+ label3.AutoSize = true;
+ label3.Location = new System.Drawing.Point(343, 38);
+ label3.Name = "label3";
+ label3.Size = new System.Drawing.Size(94, 20);
+ label3.TabIndex = 20;
+ label3.Text = "DestAddr:";
//
// groupBox1
//
- this.groupBox1.Controls.Add(this.lstBoxConnect);
- this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.groupBox1.Location = new System.Drawing.Point(861, 6);
- this.groupBox1.Margin = new System.Windows.Forms.Padding(5);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox1.Size = new System.Drawing.Size(664, 57);
- this.groupBox1.TabIndex = 79;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "充电机连接状态";
+ groupBox1.Controls.Add(lstBoxConnect);
+ groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ groupBox1.Location = new System.Drawing.Point(861, 6);
+ groupBox1.Margin = new System.Windows.Forms.Padding(5);
+ groupBox1.Name = "groupBox1";
+ groupBox1.Padding = new System.Windows.Forms.Padding(5);
+ groupBox1.Size = new System.Drawing.Size(664, 57);
+ groupBox1.TabIndex = 79;
+ groupBox1.TabStop = false;
+ groupBox1.Text = "充电机连接状态";
//
// lstBoxConnect
//
- this.lstBoxConnect.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.lstBoxConnect.FormattingEnabled = true;
- this.lstBoxConnect.ItemHeight = 20;
- this.lstBoxConnect.Location = new System.Drawing.Point(10, 18);
- this.lstBoxConnect.Margin = new System.Windows.Forms.Padding(5);
- this.lstBoxConnect.Name = "lstBoxConnect";
- this.lstBoxConnect.Size = new System.Drawing.Size(641, 24);
- this.lstBoxConnect.TabIndex = 71;
+ lstBoxConnect.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
+ lstBoxConnect.FormattingEnabled = true;
+ lstBoxConnect.ItemHeight = 20;
+ lstBoxConnect.Location = new System.Drawing.Point(10, 18);
+ lstBoxConnect.Margin = new System.Windows.Forms.Padding(5);
+ lstBoxConnect.Name = "lstBoxConnect";
+ lstBoxConnect.Size = new System.Drawing.Size(641, 24);
+ lstBoxConnect.TabIndex = 71;
//
// txtDestAddr
//
- this.txtDestAddr.Location = new System.Drawing.Point(443, 35);
- this.txtDestAddr.Name = "txtDestAddr";
- this.txtDestAddr.Size = new System.Drawing.Size(130, 27);
- this.txtDestAddr.TabIndex = 19;
- this.txtDestAddr.Text = "1";
+ txtDestAddr.Location = new System.Drawing.Point(443, 35);
+ txtDestAddr.Name = "txtDestAddr";
+ txtDestAddr.Size = new System.Drawing.Size(130, 27);
+ txtDestAddr.TabIndex = 19;
+ txtDestAddr.Text = "1";
//
// label2
//
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(205, 38);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(55, 20);
- this.label2.TabIndex = 18;
- this.label2.Text = "Port:";
+ label2.AutoSize = true;
+ label2.Location = new System.Drawing.Point(205, 38);
+ label2.Name = "label2";
+ label2.Size = new System.Drawing.Size(55, 20);
+ label2.TabIndex = 18;
+ label2.Text = "Port:";
//
// txtChargePort
//
- this.txtChargePort.Location = new System.Drawing.Point(271, 31);
- this.txtChargePort.Name = "txtChargePort";
- this.txtChargePort.Size = new System.Drawing.Size(72, 27);
- this.txtChargePort.TabIndex = 17;
- this.txtChargePort.Text = "502";
+ txtChargePort.Location = new System.Drawing.Point(271, 31);
+ txtChargePort.Name = "txtChargePort";
+ txtChargePort.Size = new System.Drawing.Size(72, 27);
+ txtChargePort.TabIndex = 17;
+ txtChargePort.Text = "502";
//
// label1
//
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(12, 38);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(41, 20);
- this.label1.TabIndex = 16;
- this.label1.Text = "IP :";
+ label1.AutoSize = true;
+ label1.Location = new System.Drawing.Point(12, 38);
+ label1.Name = "label1";
+ label1.Size = new System.Drawing.Size(41, 20);
+ label1.TabIndex = 16;
+ label1.Text = "IP :";
//
// txtChargeIp
//
- this.txtChargeIp.Location = new System.Drawing.Point(64, 31);
- this.txtChargeIp.Name = "txtChargeIp";
- this.txtChargeIp.Size = new System.Drawing.Size(130, 27);
- this.txtChargeIp.TabIndex = 15;
- this.txtChargeIp.Text = "127.0.0.1";
+ txtChargeIp.Location = new System.Drawing.Point(64, 31);
+ txtChargeIp.Name = "txtChargeIp";
+ txtChargeIp.Size = new System.Drawing.Size(130, 27);
+ txtChargeIp.TabIndex = 15;
+ txtChargeIp.Text = "127.0.0.1";
//
// BtnCloseConnect
//
- this.BtnCloseConnect.Location = new System.Drawing.Point(721, 25);
- this.BtnCloseConnect.Margin = new System.Windows.Forms.Padding(5);
- this.BtnCloseConnect.Name = "BtnCloseConnect";
- this.BtnCloseConnect.Size = new System.Drawing.Size(130, 37);
- this.BtnCloseConnect.TabIndex = 14;
- this.BtnCloseConnect.Text = "关闭连接";
- this.BtnCloseConnect.UseVisualStyleBackColor = true;
+ BtnCloseConnect.Location = new System.Drawing.Point(721, 25);
+ BtnCloseConnect.Margin = new System.Windows.Forms.Padding(5);
+ BtnCloseConnect.Name = "BtnCloseConnect";
+ BtnCloseConnect.Size = new System.Drawing.Size(130, 37);
+ BtnCloseConnect.TabIndex = 14;
+ BtnCloseConnect.Text = "关闭连接";
+ BtnCloseConnect.UseVisualStyleBackColor = true;
//
// BtnChrg01Connect
//
- this.BtnChrg01Connect.Location = new System.Drawing.Point(581, 25);
- this.BtnChrg01Connect.Margin = new System.Windows.Forms.Padding(5);
- this.BtnChrg01Connect.Name = "BtnChrg01Connect";
- this.BtnChrg01Connect.Size = new System.Drawing.Size(130, 37);
- this.BtnChrg01Connect.TabIndex = 8;
- this.BtnChrg01Connect.Text = "充电机连接";
- this.BtnChrg01Connect.UseVisualStyleBackColor = true;
- this.BtnChrg01Connect.Click += new System.EventHandler(this.BtnChrg01Connect_Click);
+ BtnChrg01Connect.Location = new System.Drawing.Point(581, 25);
+ BtnChrg01Connect.Margin = new System.Windows.Forms.Padding(5);
+ BtnChrg01Connect.Name = "BtnChrg01Connect";
+ BtnChrg01Connect.Size = new System.Drawing.Size(130, 37);
+ BtnChrg01Connect.TabIndex = 8;
+ BtnChrg01Connect.Text = "充电机连接";
+ BtnChrg01Connect.UseVisualStyleBackColor = true;
+ BtnChrg01Connect.Click += BtnChrg01Connect_Click;
//
// groupBox5
//
- this.groupBox5.Controls.Add(this.lstSendFrameInfo);
- this.groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.groupBox5.Location = new System.Drawing.Point(6, 571);
- this.groupBox5.Margin = new System.Windows.Forms.Padding(5);
- this.groupBox5.Name = "groupBox5";
- this.groupBox5.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox5.Size = new System.Drawing.Size(1538, 172);
- this.groupBox5.TabIndex = 82;
- this.groupBox5.TabStop = false;
- this.groupBox5.Text = "发送数据帧信息";
+ groupBox5.Controls.Add(lstSendFrameInfo);
+ groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ groupBox5.Location = new System.Drawing.Point(6, 571);
+ groupBox5.Margin = new System.Windows.Forms.Padding(5);
+ groupBox5.Name = "groupBox5";
+ groupBox5.Padding = new System.Windows.Forms.Padding(5);
+ groupBox5.Size = new System.Drawing.Size(1538, 172);
+ groupBox5.TabIndex = 82;
+ groupBox5.TabStop = false;
+ groupBox5.Text = "发送数据帧信息";
//
// lstSendFrameInfo
//
- this.lstSendFrameInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.lstSendFrameInfo.FormattingEnabled = true;
- this.lstSendFrameInfo.ItemHeight = 20;
- this.lstSendFrameInfo.Location = new System.Drawing.Point(10, 24);
- this.lstSendFrameInfo.Margin = new System.Windows.Forms.Padding(5);
- this.lstSendFrameInfo.Name = "lstSendFrameInfo";
- this.lstSendFrameInfo.Size = new System.Drawing.Size(1522, 124);
- this.lstSendFrameInfo.TabIndex = 73;
+ lstSendFrameInfo.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
+ lstSendFrameInfo.FormattingEnabled = true;
+ lstSendFrameInfo.ItemHeight = 20;
+ lstSendFrameInfo.Location = new System.Drawing.Point(10, 24);
+ lstSendFrameInfo.Margin = new System.Windows.Forms.Padding(5);
+ lstSendFrameInfo.Name = "lstSendFrameInfo";
+ lstSendFrameInfo.Size = new System.Drawing.Size(1522, 124);
+ lstSendFrameInfo.TabIndex = 73;
//
// groupBox9
//
- this.groupBox9.Controls.Add(this.groupBox3);
- this.groupBox9.Location = new System.Drawing.Point(8, 12);
- this.groupBox9.Name = "groupBox9";
- this.groupBox9.Size = new System.Drawing.Size(1551, 98);
- this.groupBox9.TabIndex = 117;
- this.groupBox9.TabStop = false;
- this.groupBox9.Text = "站控发送指令";
+ groupBox9.Controls.Add(groupBox3);
+ groupBox9.Location = new System.Drawing.Point(8, 12);
+ groupBox9.Name = "groupBox9";
+ groupBox9.Size = new System.Drawing.Size(1551, 98);
+ groupBox9.TabIndex = 117;
+ groupBox9.TabStop = false;
+ groupBox9.Text = "站控发送指令";
//
// groupBox11
//
- this.groupBox11.Controls.Add(this.button26);
- this.groupBox11.Controls.Add(this.button20);
- this.groupBox11.Controls.Add(this.button21);
- this.groupBox11.Controls.Add(this.button24);
- this.groupBox11.Controls.Add(this.button19);
- this.groupBox11.Controls.Add(this.button23);
- this.groupBox11.Controls.Add(this.button22);
- this.groupBox11.Location = new System.Drawing.Point(612, 121);
- this.groupBox11.Name = "groupBox11";
- this.groupBox11.Size = new System.Drawing.Size(838, 70);
- this.groupBox11.TabIndex = 102;
- this.groupBox11.TabStop = false;
- this.groupBox11.Text = "充电桩主动上传数据";
+ groupBox11.Controls.Add(button26);
+ groupBox11.Controls.Add(button20);
+ groupBox11.Controls.Add(button21);
+ groupBox11.Controls.Add(button24);
+ groupBox11.Controls.Add(button19);
+ groupBox11.Controls.Add(button23);
+ groupBox11.Controls.Add(button22);
+ groupBox11.Location = new System.Drawing.Point(612, 121);
+ groupBox11.Name = "groupBox11";
+ groupBox11.Size = new System.Drawing.Size(838, 70);
+ groupBox11.TabIndex = 102;
+ groupBox11.TabStop = false;
+ groupBox11.Text = "充电桩主动上传数据";
//
// button26
//
- this.button26.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button26.Location = new System.Drawing.Point(717, 25);
- this.button26.Margin = new System.Windows.Forms.Padding(5);
- this.button26.Name = "button26";
- this.button26.Size = new System.Drawing.Size(115, 37);
- this.button26.TabIndex = 101;
- this.button26.Text = "(CMD=113)服务器查询最近一次充电各时段信息";
- this.button26.UseVisualStyleBackColor = true;
- this.button26.Click += new System.EventHandler(this.button26_Click);
+ button26.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button26.Location = new System.Drawing.Point(717, 25);
+ button26.Margin = new System.Windows.Forms.Padding(5);
+ button26.Name = "button26";
+ button26.Size = new System.Drawing.Size(115, 37);
+ button26.TabIndex = 101;
+ button26.Text = "(CMD=113)服务器查询最近一次充电各时段信息";
+ button26.UseVisualStyleBackColor = true;
+ button26.Click += button26_Click;
//
// button20
//
- this.button20.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button20.Location = new System.Drawing.Point(2, 25);
- this.button20.Margin = new System.Windows.Forms.Padding(5);
- this.button20.Name = "button20";
- this.button20.Size = new System.Drawing.Size(115, 37);
- this.button20.TabIndex = 96;
- this.button20.Text = "(CMD=101)服务器应答心跳包信息";
- this.button20.UseVisualStyleBackColor = true;
- this.button20.Click += new System.EventHandler(this.button20_Click);
+ button20.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button20.Location = new System.Drawing.Point(2, 25);
+ button20.Margin = new System.Windows.Forms.Padding(5);
+ button20.Name = "button20";
+ button20.Size = new System.Drawing.Size(115, 37);
+ button20.TabIndex = 96;
+ button20.Text = "(CMD=101)服务器应答心跳包信息";
+ button20.UseVisualStyleBackColor = true;
+ button20.Click += button20_Click;
//
// button21
//
- this.button21.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button21.Location = new System.Drawing.Point(121, 25);
- this.button21.Margin = new System.Windows.Forms.Padding(5);
- this.button21.Name = "button21";
- this.button21.Size = new System.Drawing.Size(115, 37);
- this.button21.TabIndex = 97;
- this.button21.Text = "(CMD=103)服务器应答充电桩状态信息包";
- this.button21.UseVisualStyleBackColor = true;
- this.button21.Click += new System.EventHandler(this.button21_Click);
+ button21.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button21.Location = new System.Drawing.Point(121, 25);
+ button21.Margin = new System.Windows.Forms.Padding(5);
+ button21.Name = "button21";
+ button21.Size = new System.Drawing.Size(115, 37);
+ button21.TabIndex = 97;
+ button21.Text = "(CMD=103)服务器应答充电桩状态信息包";
+ button21.UseVisualStyleBackColor = true;
+ button21.Click += button21_Click;
//
// button24
//
- this.button24.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button24.Location = new System.Drawing.Point(592, 25);
- this.button24.Margin = new System.Windows.Forms.Padding(5);
- this.button24.Name = "button24";
- this.button24.Size = new System.Drawing.Size(115, 37);
- this.button24.TabIndex = 100;
- this.button24.Text = "(CMD=111)服务器应答充电桩上报模块信息(预留)";
- this.button24.UseVisualStyleBackColor = true;
- this.button24.Click += new System.EventHandler(this.button24_Click);
+ button24.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button24.Location = new System.Drawing.Point(592, 25);
+ button24.Margin = new System.Windows.Forms.Padding(5);
+ button24.Name = "button24";
+ button24.Size = new System.Drawing.Size(115, 37);
+ button24.TabIndex = 100;
+ button24.Text = "(CMD=111)服务器应答充电桩上报模块信息(预留)";
+ button24.UseVisualStyleBackColor = true;
+ button24.Click += button24_Click;
//
// button19
//
- this.button19.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button19.Location = new System.Drawing.Point(236, 25);
- this.button19.Margin = new System.Windows.Forms.Padding(5);
- this.button19.Name = "button19";
- this.button19.Size = new System.Drawing.Size(115, 37);
- this.button19.TabIndex = 95;
- this.button19.Text = "(CMD=105)服务器应答充电桩签到命令";
- this.button19.UseVisualStyleBackColor = true;
- this.button19.Click += new System.EventHandler(this.button19_Click);
+ button19.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button19.Location = new System.Drawing.Point(236, 25);
+ button19.Margin = new System.Windows.Forms.Padding(5);
+ button19.Name = "button19";
+ button19.Size = new System.Drawing.Size(115, 37);
+ button19.TabIndex = 95;
+ button19.Text = "(CMD=105)服务器应答充电桩签到命令";
+ button19.UseVisualStyleBackColor = true;
+ button19.Click += button19_Click;
//
// button23
//
- this.button23.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button23.Location = new System.Drawing.Point(467, 25);
- this.button23.Margin = new System.Windows.Forms.Padding(5);
- this.button23.Name = "button23";
- this.button23.Size = new System.Drawing.Size(115, 37);
- this.button23.TabIndex = 99;
- this.button23.Text = "(CMD=109)服务器应答充电桩启动完成命令";
- this.button23.UseVisualStyleBackColor = true;
- this.button23.Click += new System.EventHandler(this.button23_Click);
+ button23.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button23.Location = new System.Drawing.Point(467, 25);
+ button23.Margin = new System.Windows.Forms.Padding(5);
+ button23.Name = "button23";
+ button23.Size = new System.Drawing.Size(115, 37);
+ button23.TabIndex = 99;
+ button23.Text = "(CMD=109)服务器应答充电桩启动完成命令";
+ button23.UseVisualStyleBackColor = true;
+ button23.Click += button23_Click;
//
// button22
//
- this.button22.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button22.Location = new System.Drawing.Point(350, 25);
- this.button22.Margin = new System.Windows.Forms.Padding(5);
- this.button22.Name = "button22";
- this.button22.Size = new System.Drawing.Size(115, 37);
- this.button22.TabIndex = 98;
- this.button22.Text = "(CMD=107)服务器应答充电桩告警信息";
- this.button22.UseVisualStyleBackColor = true;
- this.button22.Click += new System.EventHandler(this.button22_Click);
+ button22.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button22.Location = new System.Drawing.Point(350, 25);
+ button22.Margin = new System.Windows.Forms.Padding(5);
+ button22.Name = "button22";
+ button22.Size = new System.Drawing.Size(115, 37);
+ button22.TabIndex = 98;
+ button22.Text = "(CMD=107)服务器应答充电桩告警信息";
+ button22.UseVisualStyleBackColor = true;
+ button22.Click += button22_Click;
//
// groupBox8
//
- this.groupBox8.Controls.Add(this.groupBox12);
- this.groupBox8.Controls.Add(this.button15);
- this.groupBox8.Controls.Add(this.button14);
- this.groupBox8.Controls.Add(this.button16);
- this.groupBox8.Controls.Add(this.button17);
- this.groupBox8.Controls.Add(this.button18);
- this.groupBox8.Location = new System.Drawing.Point(8, 116);
- this.groupBox8.Name = "groupBox8";
- this.groupBox8.Size = new System.Drawing.Size(592, 75);
- this.groupBox8.TabIndex = 101;
- this.groupBox8.TabStop = false;
- this.groupBox8.Text = "协议格式";
+ groupBox8.Controls.Add(groupBox12);
+ groupBox8.Controls.Add(button15);
+ groupBox8.Controls.Add(button14);
+ groupBox8.Controls.Add(button16);
+ groupBox8.Controls.Add(button17);
+ groupBox8.Controls.Add(button18);
+ groupBox8.Location = new System.Drawing.Point(8, 116);
+ groupBox8.Name = "groupBox8";
+ groupBox8.Size = new System.Drawing.Size(592, 75);
+ groupBox8.TabIndex = 101;
+ groupBox8.TabStop = false;
+ groupBox8.Text = "协议格式";
//
// groupBox12
//
- this.groupBox12.Controls.Add(this.button12);
- this.groupBox12.Controls.Add(this.button27);
- this.groupBox12.Controls.Add(this.button28);
- this.groupBox12.Controls.Add(this.button29);
- this.groupBox12.Controls.Add(this.button30);
- this.groupBox12.Location = new System.Drawing.Point(0, 71);
- this.groupBox12.Name = "groupBox12";
- this.groupBox12.Size = new System.Drawing.Size(598, 73);
- this.groupBox12.TabIndex = 102;
- this.groupBox12.TabStop = false;
- this.groupBox12.Text = "充电信息数据";
+ groupBox12.Controls.Add(button12);
+ groupBox12.Controls.Add(button27);
+ groupBox12.Controls.Add(button28);
+ groupBox12.Controls.Add(button29);
+ groupBox12.Controls.Add(button30);
+ groupBox12.Location = new System.Drawing.Point(0, 71);
+ groupBox12.Name = "groupBox12";
+ groupBox12.Size = new System.Drawing.Size(598, 73);
+ groupBox12.TabIndex = 102;
+ groupBox12.TabStop = false;
+ groupBox12.Text = "充电信息数据";
//
// button12
//
- this.button12.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button12.Location = new System.Drawing.Point(117, 26);
- this.button12.Margin = new System.Windows.Forms.Padding(5);
- this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(115, 37);
- this.button12.TabIndex = 91;
- this.button12.Text = "(CMD=203)服务器应答帐户查询信息";
- this.button12.UseVisualStyleBackColor = true;
+ button12.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button12.Location = new System.Drawing.Point(117, 26);
+ button12.Margin = new System.Windows.Forms.Padding(5);
+ button12.Name = "button12";
+ button12.Size = new System.Drawing.Size(115, 37);
+ button12.TabIndex = 91;
+ button12.Text = "(CMD=203)服务器应答帐户查询信息";
+ button12.UseVisualStyleBackColor = true;
//
// button27
//
- this.button27.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button27.Location = new System.Drawing.Point(1, 26);
- this.button27.Margin = new System.Windows.Forms.Padding(5);
- this.button27.Name = "button27";
- this.button27.Size = new System.Drawing.Size(115, 37);
- this.button27.TabIndex = 90;
- this.button27.Text = "(CMD=201/221)服务器应答充电桩上报充电信息报文";
- this.button27.UseVisualStyleBackColor = true;
+ button27.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button27.Location = new System.Drawing.Point(1, 26);
+ button27.Margin = new System.Windows.Forms.Padding(5);
+ button27.Name = "button27";
+ button27.Size = new System.Drawing.Size(115, 37);
+ button27.TabIndex = 90;
+ button27.Text = "(CMD=201/221)服务器应答充电桩上报充电信息报文";
+ button27.UseVisualStyleBackColor = true;
//
// button28
//
- this.button28.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button28.Location = new System.Drawing.Point(233, 28);
- this.button28.Margin = new System.Windows.Forms.Padding(5);
- this.button28.Name = "button28";
- this.button28.Size = new System.Drawing.Size(115, 37);
- this.button28.TabIndex = 92;
- this.button28.Text = "(CMD=205)服务器应答充电密码验证报文(预留)";
- this.button28.UseVisualStyleBackColor = true;
+ button28.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button28.Location = new System.Drawing.Point(233, 28);
+ button28.Margin = new System.Windows.Forms.Padding(5);
+ button28.Name = "button28";
+ button28.Size = new System.Drawing.Size(115, 37);
+ button28.TabIndex = 92;
+ button28.Text = "(CMD=205)服务器应答充电密码验证报文(预留)";
+ button28.UseVisualStyleBackColor = true;
//
// button29
//
- this.button29.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button29.Location = new System.Drawing.Point(348, 28);
- this.button29.Margin = new System.Windows.Forms.Padding(5);
- this.button29.Name = "button29";
- this.button29.Size = new System.Drawing.Size(115, 37);
- this.button29.TabIndex = 93;
- this.button29.Text = "(CMD=207) 平台回复”即插即充“请求充电结果";
- this.button29.UseVisualStyleBackColor = true;
+ button29.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button29.Location = new System.Drawing.Point(348, 28);
+ button29.Margin = new System.Windows.Forms.Padding(5);
+ button29.Name = "button29";
+ button29.Size = new System.Drawing.Size(115, 37);
+ button29.TabIndex = 93;
+ button29.Text = "(CMD=207) 平台回复”即插即充“请求充电结果";
+ button29.UseVisualStyleBackColor = true;
//
// button30
//
- this.button30.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button30.Location = new System.Drawing.Point(473, 28);
- this.button30.Margin = new System.Windows.Forms.Padding(5);
- this.button30.Name = "button30";
- this.button30.Size = new System.Drawing.Size(115, 37);
- this.button30.TabIndex = 94;
- this.button30.Text = "(CMD=209) 平台回复“即插即充” 启动充电结果(没用)";
- this.button30.UseVisualStyleBackColor = true;
+ button30.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button30.Location = new System.Drawing.Point(473, 28);
+ button30.Margin = new System.Windows.Forms.Padding(5);
+ button30.Name = "button30";
+ button30.Size = new System.Drawing.Size(115, 37);
+ button30.TabIndex = 94;
+ button30.Text = "(CMD=209) 平台回复“即插即充” 启动充电结果(没用)";
+ button30.UseVisualStyleBackColor = true;
//
// button15
//
- this.button15.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button15.Location = new System.Drawing.Point(119, 34);
- this.button15.Margin = new System.Windows.Forms.Padding(5);
- this.button15.Name = "button15";
- this.button15.Size = new System.Drawing.Size(115, 37);
- this.button15.TabIndex = 91;
- this.button15.Text = "(CMD=3)后台服务器下发充电桩字符型参数";
- this.button15.UseVisualStyleBackColor = true;
- this.button15.Click += new System.EventHandler(this.button15_Click);
+ button15.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button15.Location = new System.Drawing.Point(119, 34);
+ button15.Margin = new System.Windows.Forms.Padding(5);
+ button15.Name = "button15";
+ button15.Size = new System.Drawing.Size(115, 37);
+ button15.TabIndex = 91;
+ button15.Text = "(CMD=3)后台服务器下发充电桩字符型参数";
+ button15.UseVisualStyleBackColor = true;
+ button15.Click += button15_Click;
//
// button14
//
- this.button14.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button14.Location = new System.Drawing.Point(3, 34);
- this.button14.Margin = new System.Windows.Forms.Padding(5);
- this.button14.Name = "button14";
- this.button14.Size = new System.Drawing.Size(115, 37);
- this.button14.TabIndex = 90;
- this.button14.Text = "(CMD=1)后台服务器下发充电桩整形工作参数";
- this.button14.UseVisualStyleBackColor = true;
- this.button14.Click += new System.EventHandler(this.button14_Click);
+ button14.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button14.Location = new System.Drawing.Point(3, 34);
+ button14.Margin = new System.Windows.Forms.Padding(5);
+ button14.Name = "button14";
+ button14.Size = new System.Drawing.Size(115, 37);
+ button14.TabIndex = 90;
+ button14.Text = "(CMD=1)后台服务器下发充电桩整形工作参数";
+ button14.UseVisualStyleBackColor = true;
+ button14.Click += button14_Click;
//
// button16
//
- this.button16.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button16.Location = new System.Drawing.Point(235, 36);
- this.button16.Margin = new System.Windows.Forms.Padding(5);
- this.button16.Name = "button16";
- this.button16.Size = new System.Drawing.Size(115, 37);
- this.button16.TabIndex = 92;
- this.button16.Text = "(CMD=5)后台服务器下发充电桩控制命令";
- this.button16.UseVisualStyleBackColor = true;
- this.button16.Click += new System.EventHandler(this.button16_Click);
+ button16.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button16.Location = new System.Drawing.Point(235, 36);
+ button16.Margin = new System.Windows.Forms.Padding(5);
+ button16.Name = "button16";
+ button16.Size = new System.Drawing.Size(115, 37);
+ button16.TabIndex = 92;
+ button16.Text = "(CMD=5)后台服务器下发充电桩控制命令";
+ button16.UseVisualStyleBackColor = true;
+ button16.Click += button16_Click;
//
// button17
//
- this.button17.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button17.Location = new System.Drawing.Point(350, 36);
- this.button17.Margin = new System.Windows.Forms.Padding(5);
- this.button17.Name = "button17";
- this.button17.Size = new System.Drawing.Size(115, 37);
- this.button17.TabIndex = 93;
- this.button17.Text = "(CMD=7)后台服务器下发充电桩开启充电控制命令";
- this.button17.UseVisualStyleBackColor = true;
- this.button17.Click += new System.EventHandler(this.button17_Click);
+ button17.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button17.Location = new System.Drawing.Point(350, 36);
+ button17.Margin = new System.Windows.Forms.Padding(5);
+ button17.Name = "button17";
+ button17.Size = new System.Drawing.Size(115, 37);
+ button17.TabIndex = 93;
+ button17.Text = "(CMD=7)后台服务器下发充电桩开启充电控制命令";
+ button17.UseVisualStyleBackColor = true;
+ button17.Click += button17_Click;
//
// button18
//
- this.button18.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.button18.Location = new System.Drawing.Point(475, 34);
- this.button18.Margin = new System.Windows.Forms.Padding(5);
- this.button18.Name = "button18";
- this.button18.Size = new System.Drawing.Size(115, 37);
- this.button18.TabIndex = 94;
- this.button18.Text = "(CMD=9)后台服务器应答桩上传命令请求(预留)";
- this.button18.UseVisualStyleBackColor = true;
- this.button18.Click += new System.EventHandler(this.button18_Click);
+ button18.Font = new System.Drawing.Font("Microsoft YaHei UI", 4.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ button18.Location = new System.Drawing.Point(475, 34);
+ button18.Margin = new System.Windows.Forms.Padding(5);
+ button18.Name = "button18";
+ button18.Size = new System.Drawing.Size(115, 37);
+ button18.TabIndex = 94;
+ button18.Text = "(CMD=9)后台服务器应答桩上传命令请求(预留)";
+ button18.UseVisualStyleBackColor = true;
+ button18.Click += button18_Click;
//
// lstRecvFrameInfo
//
- this.lstRecvFrameInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.lstRecvFrameInfo.FormattingEnabled = true;
- this.lstRecvFrameInfo.ItemHeight = 20;
- this.lstRecvFrameInfo.Location = new System.Drawing.Point(10, 20);
- this.lstRecvFrameInfo.Margin = new System.Windows.Forms.Padding(5);
- this.lstRecvFrameInfo.Name = "lstRecvFrameInfo";
- this.lstRecvFrameInfo.Size = new System.Drawing.Size(1528, 224);
- this.lstRecvFrameInfo.TabIndex = 72;
+ lstRecvFrameInfo.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
+ lstRecvFrameInfo.FormattingEnabled = true;
+ lstRecvFrameInfo.ItemHeight = 20;
+ lstRecvFrameInfo.Location = new System.Drawing.Point(10, 20);
+ lstRecvFrameInfo.Margin = new System.Windows.Forms.Padding(5);
+ lstRecvFrameInfo.Name = "lstRecvFrameInfo";
+ lstRecvFrameInfo.Size = new System.Drawing.Size(1528, 224);
+ lstRecvFrameInfo.TabIndex = 72;
//
// groupBox2
//
- this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.groupBox2.Controls.Add(this.lstRecvFrameInfo);
- this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.groupBox2.Location = new System.Drawing.Point(6, 753);
- this.groupBox2.Margin = new System.Windows.Forms.Padding(5);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Padding = new System.Windows.Forms.Padding(5);
- this.groupBox2.Size = new System.Drawing.Size(1545, 288);
- this.groupBox2.TabIndex = 81;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "接收数据帧信息";
+ groupBox2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
+ groupBox2.Controls.Add(lstRecvFrameInfo);
+ groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ groupBox2.Location = new System.Drawing.Point(6, 753);
+ groupBox2.Margin = new System.Windows.Forms.Padding(5);
+ groupBox2.Name = "groupBox2";
+ groupBox2.Padding = new System.Windows.Forms.Padding(5);
+ groupBox2.Size = new System.Drawing.Size(1545, 288);
+ groupBox2.TabIndex = 81;
+ groupBox2.TabStop = false;
+ groupBox2.Text = "接收数据帧信息";
//
// button1
//
- this.button1.Location = new System.Drawing.Point(19, 212);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(115, 37);
- this.button1.TabIndex = 118;
- this.button1.Text = "1101";
- this.button1.UseVisualStyleBackColor = true;
+ button1.Location = new System.Drawing.Point(19, 212);
+ button1.Name = "button1";
+ button1.Size = new System.Drawing.Size(115, 37);
+ button1.TabIndex = 118;
+ button1.Text = "1101";
+ button1.UseVisualStyleBackColor = true;
//
// button2
//
- this.button2.Location = new System.Drawing.Point(164, 212);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(115, 37);
- this.button2.TabIndex = 119;
- this.button2.Text = "1103";
- this.button2.UseVisualStyleBackColor = true;
+ button2.Location = new System.Drawing.Point(164, 212);
+ button2.Name = "button2";
+ button2.Size = new System.Drawing.Size(115, 37);
+ button2.TabIndex = 119;
+ button2.Text = "1103";
+ button2.UseVisualStyleBackColor = true;
//
// button3
//
- this.button3.Location = new System.Drawing.Point(309, 212);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(115, 37);
- this.button3.TabIndex = 120;
- this.button3.Text = "1105";
- this.button3.UseVisualStyleBackColor = true;
+ button3.Location = new System.Drawing.Point(309, 212);
+ button3.Name = "button3";
+ button3.Size = new System.Drawing.Size(115, 37);
+ button3.TabIndex = 120;
+ button3.Text = "1105";
+ button3.UseVisualStyleBackColor = true;
//
// button4
//
- this.button4.Location = new System.Drawing.Point(454, 212);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(115, 37);
- this.button4.TabIndex = 121;
- this.button4.Text = "1107";
- this.button4.UseVisualStyleBackColor = true;
+ button4.Location = new System.Drawing.Point(454, 212);
+ button4.Name = "button4";
+ button4.Size = new System.Drawing.Size(115, 37);
+ button4.TabIndex = 121;
+ button4.Text = "1107";
+ button4.UseVisualStyleBackColor = true;
//
// button5
//
- this.button5.Location = new System.Drawing.Point(599, 212);
- this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(115, 37);
- this.button5.TabIndex = 122;
- this.button5.Text = "1301";
- this.button5.UseVisualStyleBackColor = true;
+ button5.Location = new System.Drawing.Point(599, 212);
+ button5.Name = "button5";
+ button5.Size = new System.Drawing.Size(115, 37);
+ button5.TabIndex = 122;
+ button5.Text = "1301";
+ button5.UseVisualStyleBackColor = true;
//
// button6
//
- this.button6.Location = new System.Drawing.Point(744, 212);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(115, 37);
- this.button6.TabIndex = 123;
- this.button6.Text = "1401";
- this.button6.UseVisualStyleBackColor = true;
+ button6.Location = new System.Drawing.Point(744, 212);
+ button6.Name = "button6";
+ button6.Size = new System.Drawing.Size(115, 37);
+ button6.TabIndex = 123;
+ button6.Text = "1401";
+ button6.UseVisualStyleBackColor = true;
//
// button7
//
- this.button7.Location = new System.Drawing.Point(889, 212);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(115, 37);
- this.button7.TabIndex = 124;
- this.button7.Text = "1406";
- this.button7.UseVisualStyleBackColor = true;
+ button7.Location = new System.Drawing.Point(889, 212);
+ button7.Name = "button7";
+ button7.Size = new System.Drawing.Size(115, 37);
+ button7.TabIndex = 124;
+ button7.Text = "1406";
+ button7.UseVisualStyleBackColor = true;
//
// button8
//
- this.button8.Location = new System.Drawing.Point(1034, 212);
- this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(115, 37);
- this.button8.TabIndex = 125;
- this.button8.Text = "1502";
- this.button8.UseVisualStyleBackColor = true;
+ button8.Location = new System.Drawing.Point(1034, 212);
+ button8.Name = "button8";
+ button8.Size = new System.Drawing.Size(115, 37);
+ button8.TabIndex = 125;
+ button8.Text = "1502";
+ button8.UseVisualStyleBackColor = true;
//
// button9
//
- this.button9.Location = new System.Drawing.Point(1179, 212);
- this.button9.Name = "button9";
- this.button9.Size = new System.Drawing.Size(115, 37);
- this.button9.TabIndex = 126;
- this.button9.Text = "1504";
- this.button9.UseVisualStyleBackColor = true;
+ button9.Location = new System.Drawing.Point(1179, 212);
+ button9.Name = "button9";
+ button9.Size = new System.Drawing.Size(115, 37);
+ button9.TabIndex = 126;
+ button9.Text = "1504";
+ button9.UseVisualStyleBackColor = true;
//
// button10
//
- this.button10.Location = new System.Drawing.Point(1324, 212);
- this.button10.Name = "button10";
- this.button10.Size = new System.Drawing.Size(115, 37);
- this.button10.TabIndex = 127;
- this.button10.Text = "1506";
- this.button10.UseVisualStyleBackColor = true;
+ button10.Location = new System.Drawing.Point(1324, 212);
+ button10.Name = "button10";
+ button10.Size = new System.Drawing.Size(115, 37);
+ button10.TabIndex = 127;
+ button10.Text = "1506";
+ button10.UseVisualStyleBackColor = true;
//
// FrmChargeResult
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1563, 1055);
- this.Controls.Add(this.button10);
- this.Controls.Add(this.button9);
- this.Controls.Add(this.button8);
- this.Controls.Add(this.button7);
- this.Controls.Add(this.button6);
- this.Controls.Add(this.button5);
- this.Controls.Add(this.button4);
- this.Controls.Add(this.button3);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.groupBox9);
- this.Controls.Add(this.groupBox11);
- this.Controls.Add(this.groupBox5);
- this.Controls.Add(this.groupBox8);
- this.Controls.Add(this.groupBox2);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
- this.Margin = new System.Windows.Forms.Padding(5);
- this.Name = "FrmChargeResult";
- this.Text = "充电机对接";
- this.groupBox3.ResumeLayout(false);
- this.groupBox3.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox5.ResumeLayout(false);
- this.groupBox9.ResumeLayout(false);
- this.groupBox11.ResumeLayout(false);
- this.groupBox8.ResumeLayout(false);
- this.groupBox12.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- this.ResumeLayout(false);
-
+ AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
+ AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ ClientSize = new System.Drawing.Size(1563, 1055);
+ Controls.Add(button10);
+ Controls.Add(button9);
+ Controls.Add(button8);
+ Controls.Add(button7);
+ Controls.Add(button6);
+ Controls.Add(button5);
+ Controls.Add(button4);
+ Controls.Add(button3);
+ Controls.Add(button2);
+ Controls.Add(button1);
+ Controls.Add(groupBox9);
+ Controls.Add(groupBox11);
+ Controls.Add(groupBox5);
+ Controls.Add(groupBox8);
+ Controls.Add(groupBox2);
+ FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
+ Margin = new System.Windows.Forms.Padding(5);
+ Name = "FrmChargeResult";
+ Text = "充电机对接";
+ groupBox3.ResumeLayout(false);
+ groupBox3.PerformLayout();
+ groupBox1.ResumeLayout(false);
+ groupBox5.ResumeLayout(false);
+ groupBox9.ResumeLayout(false);
+ groupBox11.ResumeLayout(false);
+ groupBox8.ResumeLayout(false);
+ groupBox12.ResumeLayout(false);
+ groupBox2.ResumeLayout(false);
+ ResumeLayout(false);
}
#endregion
diff --git a/Monitor.ChargeTest/Program.cs b/Monitor.ChargeTest/Program.cs
index 8032808..0784eb3 100644
--- a/Monitor.ChargeTest/Program.cs
+++ b/Monitor.ChargeTest/Program.cs
@@ -1,3 +1,4 @@
+using CommonClass;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -14,6 +15,8 @@ namespace Monitor.ChargeTest
[STAThread]
static void Main()
{
+ new PubCommonClass().SetCmd3StartAddress();
+
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmChargeResult());