Преглед на файлове

1、增加软件标识
2、关机指令发送OFF

CN\zhouxiong9 преди 2 години
родител
ревизия
2c74ee2c97

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 12 - 0
Welling_Motor_Debug_Tool/Class1.cs

@@ -12,6 +12,12 @@ namespace Welling_Motor_Debug_Tool
         public static int Data = 0;
     }
 
+    class Class_CadenceData
+    {
+        public static string String = "";
+        public static int Data = 0;
+    }
+
     class Class_CurrentData
     {
         public static string String = "";
@@ -24,6 +30,12 @@ namespace Welling_Motor_Debug_Tool
         public static int Data = 0;
     }
 
+    class Class_MotorTemp
+    {
+        public static string String = "";
+        public static int Data = 0;
+    }
+
     class Class_Motor_Ver
     {
         public static string HW = "---";

+ 150 - 112
Welling_Motor_Debug_Tool/Form1.Designer.cs

@@ -44,7 +44,6 @@ namespace Welling_Motor_Debug_Tool
             this.写入存储ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.工具箱ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.记录数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.一键查询ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.计算器ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.页面保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -211,12 +210,10 @@ namespace Welling_Motor_Debug_Tool
             this.button_OBC_ReadRideInfo = new System.Windows.Forms.Button();
             this.textBox_OBC_ODO_KM = new System.Windows.Forms.TextBox();
             this.button_OBC_ClearTrip = new System.Windows.Forms.Button();
-            this.label55 = new System.Windows.Forms.Label();
             this.textBox_OBC_TRIP_TIME = new System.Windows.Forms.TextBox();
             this.label54 = new System.Windows.Forms.Label();
             this.textBox_OBC_TRIP_KM = new System.Windows.Forms.TextBox();
             this.label52 = new System.Windows.Forms.Label();
-            this.label53 = new System.Windows.Forms.Label();
             this.groupBox14 = new System.Windows.Forms.GroupBox();
             this.button_OBC_ReadVerInfo = new System.Windows.Forms.Button();
             this.textBox_OBC_ReadFW = new System.Windows.Forms.TextBox();
@@ -347,6 +344,12 @@ namespace Welling_Motor_Debug_Tool
             this.label45 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
+            this.textBox_SP = new System.Windows.Forms.TextBox();
+            this.label85 = new System.Windows.Forms.Label();
+            this.textBox_FacModeSP = new System.Windows.Forms.TextBox();
+            this.label86 = new System.Windows.Forms.Label();
+            this.textBox_OBC_ReadSP = new System.Windows.Forms.TextBox();
+            this.label53 = new System.Windows.Forms.Label();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -492,7 +495,6 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.工具箱ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.记录数据ToolStripMenuItem,
-            this.一键查询ToolStripMenuItem,
             this.计算器ToolStripMenuItem,
             this.页面保存ToolStripMenuItem});
             this.工具箱ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
@@ -507,12 +509,6 @@ namespace Welling_Motor_Debug_Tool
             this.记录数据ToolStripMenuItem.Text = "记录数据";
             this.记录数据ToolStripMenuItem.Click += new System.EventHandler(this.记录数据ToolStripMenuItem_Click);
             // 
-            // 一键查询ToolStripMenuItem
-            // 
-            this.一键查询ToolStripMenuItem.Name = "一键查询ToolStripMenuItem";
-            this.一键查询ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
-            this.一键查询ToolStripMenuItem.Text = "一键查询";
-            // 
             // 计算器ToolStripMenuItem
             // 
             this.计算器ToolStripMenuItem.Name = "计算器ToolStripMenuItem";
@@ -1612,9 +1608,9 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox16.Controls.Add(this.button_ReadSaveFlag);
             this.groupBox16.Controls.Add(this.button_WriteSaveFlag);
             this.groupBox16.Controls.Add(this.checkBox_SaveYes);
-            this.groupBox16.Location = new System.Drawing.Point(627, 172);
+            this.groupBox16.Location = new System.Drawing.Point(627, 185);
             this.groupBox16.Name = "groupBox16";
-            this.groupBox16.Size = new System.Drawing.Size(303, 132);
+            this.groupBox16.Size = new System.Drawing.Size(303, 127);
             this.groupBox16.TabIndex = 5;
             this.groupBox16.TabStop = false;
             this.groupBox16.Text = "存储标志";
@@ -1623,7 +1619,7 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.groupBox18.Controls.Add(this.radioButton_SIP_SaveNo);
             this.groupBox18.Controls.Add(this.radioButton_SIP_SaveYes);
-            this.groupBox18.Location = new System.Drawing.Point(106, 27);
+            this.groupBox18.Location = new System.Drawing.Point(107, 30);
             this.groupBox18.Name = "groupBox18";
             this.groupBox18.Size = new System.Drawing.Size(95, 95);
             this.groupBox18.TabIndex = 11;
@@ -1656,7 +1652,7 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.groupBox17.Controls.Add(this.radioButton_EE_SaveYes);
             this.groupBox17.Controls.Add(this.radioButton_EE_SaveNo);
-            this.groupBox17.Location = new System.Drawing.Point(6, 26);
+            this.groupBox17.Location = new System.Drawing.Point(6, 29);
             this.groupBox17.Name = "groupBox17";
             this.groupBox17.Size = new System.Drawing.Size(95, 96);
             this.groupBox17.TabIndex = 10;
@@ -1688,7 +1684,7 @@ namespace Welling_Motor_Debug_Tool
             // button_ReadSaveFlag
             // 
             this.button_ReadSaveFlag.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_ReadSaveFlag.Location = new System.Drawing.Point(207, 61);
+            this.button_ReadSaveFlag.Location = new System.Drawing.Point(207, 59);
             this.button_ReadSaveFlag.Name = "button_ReadSaveFlag";
             this.button_ReadSaveFlag.Size = new System.Drawing.Size(61, 29);
             this.button_ReadSaveFlag.TabIndex = 3;
@@ -1699,7 +1695,7 @@ namespace Welling_Motor_Debug_Tool
             // button_WriteSaveFlag
             // 
             this.button_WriteSaveFlag.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
-            this.button_WriteSaveFlag.Location = new System.Drawing.Point(207, 94);
+            this.button_WriteSaveFlag.Location = new System.Drawing.Point(207, 92);
             this.button_WriteSaveFlag.Name = "button_WriteSaveFlag";
             this.button_WriteSaveFlag.Size = new System.Drawing.Size(61, 29);
             this.button_WriteSaveFlag.TabIndex = 4;
@@ -1710,7 +1706,7 @@ namespace Welling_Motor_Debug_Tool
             // checkBox_SaveYes
             // 
             this.checkBox_SaveYes.AutoSize = true;
-            this.checkBox_SaveYes.Location = new System.Drawing.Point(207, 27);
+            this.checkBox_SaveYes.Location = new System.Drawing.Point(207, 28);
             this.checkBox_SaveYes.Name = "checkBox_SaveYes";
             this.checkBox_SaveYes.Size = new System.Drawing.Size(93, 25);
             this.checkBox_SaveYes.TabIndex = 5;
@@ -1725,7 +1721,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox9.Controls.Add(this.button_SystemClear);
             this.groupBox9.Location = new System.Drawing.Point(627, 4);
             this.groupBox9.Name = "groupBox9";
-            this.groupBox9.Size = new System.Drawing.Size(303, 162);
+            this.groupBox9.Size = new System.Drawing.Size(303, 175);
             this.groupBox9.TabIndex = 4;
             this.groupBox9.TabStop = false;
             this.groupBox9.Text = "系统操作";
@@ -1779,9 +1775,9 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox8.Controls.Add(this.button_ReadOnLine);
             this.groupBox8.Controls.Add(this.textBox_Online);
             this.groupBox8.Controls.Add(this.label42);
-            this.groupBox8.Location = new System.Drawing.Point(313, 238);
+            this.groupBox8.Location = new System.Drawing.Point(313, 248);
             this.groupBox8.Name = "groupBox8";
-            this.groupBox8.Size = new System.Drawing.Size(303, 66);
+            this.groupBox8.Size = new System.Drawing.Size(303, 64);
             this.groupBox8.TabIndex = 3;
             this.groupBox8.TabStop = false;
             this.groupBox8.Text = "在线查询";
@@ -1789,7 +1785,7 @@ namespace Welling_Motor_Debug_Tool
             // button_ReadOnLine
             // 
             this.button_ReadOnLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_ReadOnLine.Location = new System.Drawing.Point(244, 28);
+            this.button_ReadOnLine.Location = new System.Drawing.Point(244, 25);
             this.button_ReadOnLine.Name = "button_ReadOnLine";
             this.button_ReadOnLine.Size = new System.Drawing.Size(50, 29);
             this.button_ReadOnLine.TabIndex = 2;
@@ -1800,7 +1796,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_Online
             // 
             this.textBox_Online.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_Online.Location = new System.Drawing.Point(82, 28);
+            this.textBox_Online.Location = new System.Drawing.Point(82, 25);
             this.textBox_Online.Name = "textBox_Online";
             this.textBox_Online.ReadOnly = true;
             this.textBox_Online.Size = new System.Drawing.Size(100, 28);
@@ -1809,7 +1805,7 @@ namespace Welling_Motor_Debug_Tool
             // label42
             // 
             this.label42.AutoSize = true;
-            this.label42.Location = new System.Drawing.Point(6, 32);
+            this.label42.Location = new System.Drawing.Point(6, 29);
             this.label42.Name = "label42";
             this.label42.Size = new System.Drawing.Size(74, 21);
             this.label42.TabIndex = 0;
@@ -1829,7 +1825,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox7.Controls.Add(this.label41);
             this.groupBox7.Location = new System.Drawing.Point(313, 4);
             this.groupBox7.Name = "groupBox7";
-            this.groupBox7.Size = new System.Drawing.Size(303, 162);
+            this.groupBox7.Size = new System.Drawing.Size(303, 175);
             this.groupBox7.TabIndex = 3;
             this.groupBox7.TabStop = false;
             this.groupBox7.Text = "生产信息";
@@ -1938,9 +1934,9 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox6.Controls.Add(this.textBox_User1);
             this.groupBox6.Controls.Add(this.label36);
             this.groupBox6.Controls.Add(this.label38);
-            this.groupBox6.Location = new System.Drawing.Point(4, 172);
+            this.groupBox6.Location = new System.Drawing.Point(4, 185);
             this.groupBox6.Name = "groupBox6";
-            this.groupBox6.Size = new System.Drawing.Size(303, 132);
+            this.groupBox6.Size = new System.Drawing.Size(303, 127);
             this.groupBox6.TabIndex = 2;
             this.groupBox6.TabStop = false;
             this.groupBox6.Text = "自定义";
@@ -1948,7 +1944,7 @@ namespace Welling_Motor_Debug_Tool
             // button_ReadUser3
             // 
             this.button_ReadUser3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_ReadUser3.Location = new System.Drawing.Point(196, 94);
+            this.button_ReadUser3.Location = new System.Drawing.Point(194, 89);
             this.button_ReadUser3.Name = "button_ReadUser3";
             this.button_ReadUser3.Size = new System.Drawing.Size(50, 29);
             this.button_ReadUser3.TabIndex = 5;
@@ -1959,7 +1955,7 @@ namespace Welling_Motor_Debug_Tool
             // button_WriteUser3
             // 
             this.button_WriteUser3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.button_WriteUser3.Location = new System.Drawing.Point(248, 94);
+            this.button_WriteUser3.Location = new System.Drawing.Point(246, 89);
             this.button_WriteUser3.Name = "button_WriteUser3";
             this.button_WriteUser3.Size = new System.Drawing.Size(50, 29);
             this.button_WriteUser3.TabIndex = 6;
@@ -1970,7 +1966,7 @@ namespace Welling_Motor_Debug_Tool
             // button_ReadUser2
             // 
             this.button_ReadUser2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_ReadUser2.Location = new System.Drawing.Point(196, 61);
+            this.button_ReadUser2.Location = new System.Drawing.Point(194, 59);
             this.button_ReadUser2.Name = "button_ReadUser2";
             this.button_ReadUser2.Size = new System.Drawing.Size(50, 29);
             this.button_ReadUser2.TabIndex = 3;
@@ -1981,7 +1977,7 @@ namespace Welling_Motor_Debug_Tool
             // button_WriteUser2
             // 
             this.button_WriteUser2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.button_WriteUser2.Location = new System.Drawing.Point(248, 61);
+            this.button_WriteUser2.Location = new System.Drawing.Point(246, 59);
             this.button_WriteUser2.Name = "button_WriteUser2";
             this.button_WriteUser2.Size = new System.Drawing.Size(50, 29);
             this.button_WriteUser2.TabIndex = 4;
@@ -1992,7 +1988,7 @@ namespace Welling_Motor_Debug_Tool
             // button_ReadUser1
             // 
             this.button_ReadUser1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_ReadUser1.Location = new System.Drawing.Point(196, 24);
+            this.button_ReadUser1.Location = new System.Drawing.Point(194, 29);
             this.button_ReadUser1.Name = "button_ReadUser1";
             this.button_ReadUser1.Size = new System.Drawing.Size(50, 29);
             this.button_ReadUser1.TabIndex = 2;
@@ -2003,7 +1999,7 @@ namespace Welling_Motor_Debug_Tool
             // button_WriteUser1
             // 
             this.button_WriteUser1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.button_WriteUser1.Location = new System.Drawing.Point(248, 24);
+            this.button_WriteUser1.Location = new System.Drawing.Point(246, 29);
             this.button_WriteUser1.Name = "button_WriteUser1";
             this.button_WriteUser1.Size = new System.Drawing.Size(50, 29);
             this.button_WriteUser1.TabIndex = 2;
@@ -2014,7 +2010,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_User3
             // 
             this.textBox_User3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_User3.Location = new System.Drawing.Point(31, 94);
+            this.textBox_User3.Location = new System.Drawing.Point(29, 89);
             this.textBox_User3.Name = "textBox_User3";
             this.textBox_User3.Size = new System.Drawing.Size(164, 28);
             this.textBox_User3.TabIndex = 1;
@@ -2022,7 +2018,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_User2
             // 
             this.textBox_User2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_User2.Location = new System.Drawing.Point(31, 61);
+            this.textBox_User2.Location = new System.Drawing.Point(29, 59);
             this.textBox_User2.Name = "textBox_User2";
             this.textBox_User2.Size = new System.Drawing.Size(164, 28);
             this.textBox_User2.TabIndex = 1;
@@ -2030,7 +2026,7 @@ namespace Welling_Motor_Debug_Tool
             // label35
             // 
             this.label35.AutoSize = true;
-            this.label35.Location = new System.Drawing.Point(6, 94);
+            this.label35.Location = new System.Drawing.Point(4, 93);
             this.label35.Name = "label35";
             this.label35.Size = new System.Drawing.Size(19, 21);
             this.label35.TabIndex = 0;
@@ -2039,7 +2035,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_User1
             // 
             this.textBox_User1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_User1.Location = new System.Drawing.Point(32, 24);
+            this.textBox_User1.Location = new System.Drawing.Point(29, 29);
             this.textBox_User1.Name = "textBox_User1";
             this.textBox_User1.Size = new System.Drawing.Size(164, 28);
             this.textBox_User1.TabIndex = 1;
@@ -2047,7 +2043,7 @@ namespace Welling_Motor_Debug_Tool
             // label36
             // 
             this.label36.AutoSize = true;
-            this.label36.Location = new System.Drawing.Point(6, 61);
+            this.label36.Location = new System.Drawing.Point(4, 63);
             this.label36.Name = "label36";
             this.label36.Size = new System.Drawing.Size(19, 21);
             this.label36.TabIndex = 0;
@@ -2056,7 +2052,7 @@ namespace Welling_Motor_Debug_Tool
             // label38
             // 
             this.label38.AutoSize = true;
-            this.label38.Location = new System.Drawing.Point(7, 28);
+            this.label38.Location = new System.Drawing.Point(5, 33);
             this.label38.Name = "label38";
             this.label38.Size = new System.Drawing.Size(19, 21);
             this.label38.TabIndex = 0;
@@ -2068,9 +2064,9 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox5.Controls.Add(this.button_WriteKey);
             this.groupBox5.Controls.Add(this.textBox_Key);
             this.groupBox5.Controls.Add(this.label37);
-            this.groupBox5.Location = new System.Drawing.Point(313, 172);
+            this.groupBox5.Location = new System.Drawing.Point(313, 185);
             this.groupBox5.Name = "groupBox5";
-            this.groupBox5.Size = new System.Drawing.Size(303, 66);
+            this.groupBox5.Size = new System.Drawing.Size(303, 62);
             this.groupBox5.TabIndex = 1;
             this.groupBox5.TabStop = false;
             this.groupBox5.Text = "校验密钥";
@@ -2116,6 +2112,8 @@ namespace Welling_Motor_Debug_Tool
             // 
             // groupBox4
             // 
+            this.groupBox4.Controls.Add(this.label85);
+            this.groupBox4.Controls.Add(this.textBox_SP);
             this.groupBox4.Controls.Add(this.button_ReadVersion);
             this.groupBox4.Controls.Add(this.button_WriteSN);
             this.groupBox4.Controls.Add(this.button_WriteModel);
@@ -2129,7 +2127,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox4.Controls.Add(this.label30);
             this.groupBox4.Location = new System.Drawing.Point(4, 4);
             this.groupBox4.Name = "groupBox4";
-            this.groupBox4.Size = new System.Drawing.Size(303, 162);
+            this.groupBox4.Size = new System.Drawing.Size(303, 175);
             this.groupBox4.TabIndex = 0;
             this.groupBox4.TabStop = false;
             this.groupBox4.Text = "版本信息";
@@ -2139,7 +2137,7 @@ namespace Welling_Motor_Debug_Tool
             this.button_ReadVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
             this.button_ReadVersion.Location = new System.Drawing.Point(248, 90);
             this.button_ReadVersion.Name = "button_ReadVersion";
-            this.button_ReadVersion.Size = new System.Drawing.Size(50, 62);
+            this.button_ReadVersion.Size = new System.Drawing.Size(50, 79);
             this.button_ReadVersion.TabIndex = 2;
             this.button_ReadVersion.Text = "查询";
             this.button_ReadVersion.UseVisualStyleBackColor = false;
@@ -2148,7 +2146,7 @@ namespace Welling_Motor_Debug_Tool
             // button_WriteSN
             // 
             this.button_WriteSN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.button_WriteSN.Location = new System.Drawing.Point(248, 57);
+            this.button_WriteSN.Location = new System.Drawing.Point(248, 53);
             this.button_WriteSN.Name = "button_WriteSN";
             this.button_WriteSN.Size = new System.Drawing.Size(50, 29);
             this.button_WriteSN.TabIndex = 2;
@@ -2170,33 +2168,33 @@ namespace Welling_Motor_Debug_Tool
             // textBox_FW
             // 
             this.textBox_FW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_FW.Location = new System.Drawing.Point(55, 123);
+            this.textBox_FW.Location = new System.Drawing.Point(56, 111);
             this.textBox_FW.Name = "textBox_FW";
             this.textBox_FW.ReadOnly = true;
-            this.textBox_FW.Size = new System.Drawing.Size(191, 28);
+            this.textBox_FW.Size = new System.Drawing.Size(190, 28);
             this.textBox_FW.TabIndex = 1;
             // 
             // textBox_HW
             // 
             this.textBox_HW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_HW.Location = new System.Drawing.Point(55, 90);
+            this.textBox_HW.Location = new System.Drawing.Point(56, 82);
             this.textBox_HW.Name = "textBox_HW";
             this.textBox_HW.ReadOnly = true;
-            this.textBox_HW.Size = new System.Drawing.Size(191, 28);
+            this.textBox_HW.Size = new System.Drawing.Size(190, 28);
             this.textBox_HW.TabIndex = 1;
             // 
             // textBox_SN
             // 
             this.textBox_SN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_SN.Location = new System.Drawing.Point(55, 57);
+            this.textBox_SN.Location = new System.Drawing.Point(56, 53);
             this.textBox_SN.Name = "textBox_SN";
-            this.textBox_SN.Size = new System.Drawing.Size(191, 28);
+            this.textBox_SN.Size = new System.Drawing.Size(190, 28);
             this.textBox_SN.TabIndex = 1;
             // 
             // label33
             // 
             this.label33.AutoSize = true;
-            this.label33.Location = new System.Drawing.Point(6, 127);
+            this.label33.Location = new System.Drawing.Point(6, 115);
             this.label33.Name = "label33";
             this.label33.Size = new System.Drawing.Size(35, 21);
             this.label33.TabIndex = 0;
@@ -2205,7 +2203,7 @@ namespace Welling_Motor_Debug_Tool
             // label32
             // 
             this.label32.AutoSize = true;
-            this.label32.Location = new System.Drawing.Point(6, 94);
+            this.label32.Location = new System.Drawing.Point(6, 86);
             this.label32.Name = "label32";
             this.label32.Size = new System.Drawing.Size(38, 21);
             this.label32.TabIndex = 0;
@@ -2222,7 +2220,7 @@ namespace Welling_Motor_Debug_Tool
             // label31
             // 
             this.label31.AutoSize = true;
-            this.label31.Location = new System.Drawing.Point(6, 61);
+            this.label31.Location = new System.Drawing.Point(6, 57);
             this.label31.Name = "label31";
             this.label31.Size = new System.Drawing.Size(32, 21);
             this.label31.TabIndex = 0;
@@ -2258,15 +2256,13 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox15.Controls.Add(this.button_OBC_ReadRideInfo);
             this.groupBox15.Controls.Add(this.textBox_OBC_ODO_KM);
             this.groupBox15.Controls.Add(this.button_OBC_ClearTrip);
-            this.groupBox15.Controls.Add(this.label55);
             this.groupBox15.Controls.Add(this.textBox_OBC_TRIP_TIME);
             this.groupBox15.Controls.Add(this.label54);
             this.groupBox15.Controls.Add(this.textBox_OBC_TRIP_KM);
             this.groupBox15.Controls.Add(this.label52);
-            this.groupBox15.Controls.Add(this.label53);
-            this.groupBox15.Location = new System.Drawing.Point(622, 160);
+            this.groupBox15.Location = new System.Drawing.Point(622, 178);
             this.groupBox15.Name = "groupBox15";
-            this.groupBox15.Size = new System.Drawing.Size(303, 149);
+            this.groupBox15.Size = new System.Drawing.Size(303, 131);
             this.groupBox15.TabIndex = 14;
             this.groupBox15.TabStop = false;
             this.groupBox15.Text = "骑行历史";
@@ -2274,16 +2270,16 @@ namespace Welling_Motor_Debug_Tool
             // textBox_OBC_ODO_TIME
             // 
             this.textBox_OBC_ODO_TIME.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_ODO_TIME.Location = new System.Drawing.Point(104, 117);
+            this.textBox_OBC_ODO_TIME.Location = new System.Drawing.Point(215, 57);
             this.textBox_OBC_ODO_TIME.Name = "textBox_OBC_ODO_TIME";
             this.textBox_OBC_ODO_TIME.ReadOnly = true;
-            this.textBox_OBC_ODO_TIME.Size = new System.Drawing.Size(131, 28);
+            this.textBox_OBC_ODO_TIME.Size = new System.Drawing.Size(80, 28);
             this.textBox_OBC_ODO_TIME.TabIndex = 3;
             // 
             // button_OBC_ReadRideInfo
             // 
             this.button_OBC_ReadRideInfo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ReadRideInfo.Location = new System.Drawing.Point(241, 53);
+            this.button_OBC_ReadRideInfo.Location = new System.Drawing.Point(131, 89);
             this.button_OBC_ReadRideInfo.Name = "button_OBC_ReadRideInfo";
             this.button_OBC_ReadRideInfo.Size = new System.Drawing.Size(53, 35);
             this.button_OBC_ReadRideInfo.TabIndex = 6;
@@ -2294,57 +2290,48 @@ namespace Welling_Motor_Debug_Tool
             // textBox_OBC_ODO_KM
             // 
             this.textBox_OBC_ODO_KM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_ODO_KM.Location = new System.Drawing.Point(104, 87);
+            this.textBox_OBC_ODO_KM.Location = new System.Drawing.Point(132, 57);
             this.textBox_OBC_ODO_KM.Name = "textBox_OBC_ODO_KM";
             this.textBox_OBC_ODO_KM.ReadOnly = true;
-            this.textBox_OBC_ODO_KM.Size = new System.Drawing.Size(131, 28);
+            this.textBox_OBC_ODO_KM.Size = new System.Drawing.Size(80, 28);
             this.textBox_OBC_ODO_KM.TabIndex = 4;
             // 
             // button_OBC_ClearTrip
             // 
             this.button_OBC_ClearTrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.button_OBC_ClearTrip.Location = new System.Drawing.Point(241, 90);
+            this.button_OBC_ClearTrip.Location = new System.Drawing.Point(194, 88);
             this.button_OBC_ClearTrip.Name = "button_OBC_ClearTrip";
-            this.button_OBC_ClearTrip.Size = new System.Drawing.Size(53, 55);
+            this.button_OBC_ClearTrip.Size = new System.Drawing.Size(101, 37);
             this.button_OBC_ClearTrip.TabIndex = 6;
             this.button_OBC_ClearTrip.Text = "清除TRIP";
             this.button_OBC_ClearTrip.UseVisualStyleBackColor = false;
             this.button_OBC_ClearTrip.Click += new System.EventHandler(this.button_OBC_ClearTrip_Click);
             // 
-            // label55
-            // 
-            this.label55.AutoSize = true;
-            this.label55.Location = new System.Drawing.Point(6, 121);
-            this.label55.Name = "label55";
-            this.label55.Size = new System.Drawing.Size(80, 21);
-            this.label55.TabIndex = 0;
-            this.label55.Text = "ODO时间";
-            // 
             // textBox_OBC_TRIP_TIME
             // 
             this.textBox_OBC_TRIP_TIME.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_TRIP_TIME.Location = new System.Drawing.Point(104, 57);
+            this.textBox_OBC_TRIP_TIME.Location = new System.Drawing.Point(215, 27);
             this.textBox_OBC_TRIP_TIME.Name = "textBox_OBC_TRIP_TIME";
             this.textBox_OBC_TRIP_TIME.ReadOnly = true;
-            this.textBox_OBC_TRIP_TIME.Size = new System.Drawing.Size(131, 28);
+            this.textBox_OBC_TRIP_TIME.Size = new System.Drawing.Size(80, 28);
             this.textBox_OBC_TRIP_TIME.TabIndex = 5;
             // 
             // label54
             // 
             this.label54.AutoSize = true;
-            this.label54.Location = new System.Drawing.Point(6, 91);
+            this.label54.Location = new System.Drawing.Point(7, 61);
             this.label54.Name = "label54";
-            this.label54.Size = new System.Drawing.Size(80, 21);
+            this.label54.Size = new System.Drawing.Size(119, 21);
             this.label54.TabIndex = 0;
-            this.label54.Text = "ODO里程";
+            this.label54.Text = "ODO里程/时间";
             // 
             // textBox_OBC_TRIP_KM
             // 
             this.textBox_OBC_TRIP_KM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_TRIP_KM.Location = new System.Drawing.Point(104, 27);
+            this.textBox_OBC_TRIP_KM.Location = new System.Drawing.Point(132, 27);
             this.textBox_OBC_TRIP_KM.Name = "textBox_OBC_TRIP_KM";
             this.textBox_OBC_TRIP_KM.ReadOnly = true;
-            this.textBox_OBC_TRIP_KM.Size = new System.Drawing.Size(131, 28);
+            this.textBox_OBC_TRIP_KM.Size = new System.Drawing.Size(80, 28);
             this.textBox_OBC_TRIP_KM.TabIndex = 6;
             // 
             // label52
@@ -2352,21 +2339,14 @@ namespace Welling_Motor_Debug_Tool
             this.label52.AutoSize = true;
             this.label52.Location = new System.Drawing.Point(7, 31);
             this.label52.Name = "label52";
-            this.label52.Size = new System.Drawing.Size(76, 21);
+            this.label52.Size = new System.Drawing.Size(115, 21);
             this.label52.TabIndex = 0;
-            this.label52.Text = "TRIP里程";
-            // 
-            // label53
-            // 
-            this.label53.AutoSize = true;
-            this.label53.Location = new System.Drawing.Point(6, 61);
-            this.label53.Name = "label53";
-            this.label53.Size = new System.Drawing.Size(76, 21);
-            this.label53.TabIndex = 0;
-            this.label53.Text = "TRIP时间";
+            this.label52.Text = "TRIP里程/时间";
             // 
             // groupBox14
             // 
+            this.groupBox14.Controls.Add(this.label53);
+            this.groupBox14.Controls.Add(this.textBox_OBC_ReadSP);
             this.groupBox14.Controls.Add(this.button_OBC_ReadVerInfo);
             this.groupBox14.Controls.Add(this.textBox_OBC_ReadFW);
             this.groupBox14.Controls.Add(this.textBox_OBC_ReadHW);
@@ -2378,7 +2358,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox14.Controls.Add(this.label51);
             this.groupBox14.Location = new System.Drawing.Point(622, 4);
             this.groupBox14.Name = "groupBox14";
-            this.groupBox14.Size = new System.Drawing.Size(303, 150);
+            this.groupBox14.Size = new System.Drawing.Size(303, 175);
             this.groupBox14.TabIndex = 13;
             this.groupBox14.TabStop = false;
             this.groupBox14.Text = "版本信息";
@@ -2386,7 +2366,7 @@ namespace Welling_Motor_Debug_Tool
             // button_OBC_ReadVerInfo
             // 
             this.button_OBC_ReadVerInfo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ReadVerInfo.Location = new System.Drawing.Point(241, 81);
+            this.button_OBC_ReadVerInfo.Location = new System.Drawing.Point(242, 106);
             this.button_OBC_ReadVerInfo.Name = "button_OBC_ReadVerInfo";
             this.button_OBC_ReadVerInfo.Size = new System.Drawing.Size(53, 62);
             this.button_OBC_ReadVerInfo.TabIndex = 2;
@@ -2397,7 +2377,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_OBC_ReadFW
             // 
             this.textBox_OBC_ReadFW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_ReadFW.Location = new System.Drawing.Point(56, 114);
+            this.textBox_OBC_ReadFW.Location = new System.Drawing.Point(56, 111);
             this.textBox_OBC_ReadFW.Name = "textBox_OBC_ReadFW";
             this.textBox_OBC_ReadFW.ReadOnly = true;
             this.textBox_OBC_ReadFW.Size = new System.Drawing.Size(179, 28);
@@ -2406,7 +2386,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_OBC_ReadHW
             // 
             this.textBox_OBC_ReadHW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_ReadHW.Location = new System.Drawing.Point(56, 84);
+            this.textBox_OBC_ReadHW.Location = new System.Drawing.Point(56, 82);
             this.textBox_OBC_ReadHW.Name = "textBox_OBC_ReadHW";
             this.textBox_OBC_ReadHW.ReadOnly = true;
             this.textBox_OBC_ReadHW.Size = new System.Drawing.Size(179, 28);
@@ -2415,7 +2395,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_OBC_ReadSN
             // 
             this.textBox_OBC_ReadSN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_OBC_ReadSN.Location = new System.Drawing.Point(56, 54);
+            this.textBox_OBC_ReadSN.Location = new System.Drawing.Point(56, 53);
             this.textBox_OBC_ReadSN.Name = "textBox_OBC_ReadSN";
             this.textBox_OBC_ReadSN.ReadOnly = true;
             this.textBox_OBC_ReadSN.Size = new System.Drawing.Size(179, 28);
@@ -2424,7 +2404,7 @@ namespace Welling_Motor_Debug_Tool
             // label48
             // 
             this.label48.AutoSize = true;
-            this.label48.Location = new System.Drawing.Point(6, 118);
+            this.label48.Location = new System.Drawing.Point(6, 115);
             this.label48.Name = "label48";
             this.label48.Size = new System.Drawing.Size(35, 21);
             this.label48.TabIndex = 0;
@@ -2433,7 +2413,7 @@ namespace Welling_Motor_Debug_Tool
             // label49
             // 
             this.label49.AutoSize = true;
-            this.label49.Location = new System.Drawing.Point(6, 88);
+            this.label49.Location = new System.Drawing.Point(6, 86);
             this.label49.Name = "label49";
             this.label49.Size = new System.Drawing.Size(38, 21);
             this.label49.TabIndex = 0;
@@ -2451,7 +2431,7 @@ namespace Welling_Motor_Debug_Tool
             // label50
             // 
             this.label50.AutoSize = true;
-            this.label50.Location = new System.Drawing.Point(6, 58);
+            this.label50.Location = new System.Drawing.Point(6, 57);
             this.label50.Name = "label50";
             this.label50.Size = new System.Drawing.Size(32, 21);
             this.label50.TabIndex = 0;
@@ -2868,6 +2848,8 @@ namespace Welling_Motor_Debug_Tool
             // 
             // groupBox25
             // 
+            this.groupBox25.Controls.Add(this.label86);
+            this.groupBox25.Controls.Add(this.textBox_FacModeSP);
             this.groupBox25.Controls.Add(this.label68);
             this.groupBox25.Controls.Add(this.label84);
             this.groupBox25.Controls.Add(this.textBox_FacModeFW);
@@ -2882,7 +2864,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox25.Controls.Add(this.textBox_FacModeName);
             this.groupBox25.Location = new System.Drawing.Point(723, 3);
             this.groupBox25.Name = "groupBox25";
-            this.groupBox25.Size = new System.Drawing.Size(207, 233);
+            this.groupBox25.Size = new System.Drawing.Size(207, 239);
             this.groupBox25.TabIndex = 8;
             this.groupBox25.TabStop = false;
             this.groupBox25.Text = "版本信息";
@@ -2892,7 +2874,7 @@ namespace Welling_Motor_Debug_Tool
             this.label68.AutoSize = true;
             this.label68.Font = new System.Drawing.Font("Microsoft YaHei UI", 11F, System.Drawing.FontStyle.Bold);
             this.label68.ForeColor = System.Drawing.Color.Red;
-            this.label68.Location = new System.Drawing.Point(6, 201);
+            this.label68.Location = new System.Drawing.Point(6, 208);
             this.label68.Name = "label68";
             this.label68.Size = new System.Drawing.Size(134, 19);
             this.label68.TabIndex = 23;
@@ -2902,7 +2884,7 @@ namespace Welling_Motor_Debug_Tool
             // label84
             // 
             this.label84.AutoSize = true;
-            this.label84.Location = new System.Drawing.Point(6, 159);
+            this.label84.Location = new System.Drawing.Point(6, 136);
             this.label84.Name = "label84";
             this.label84.Size = new System.Drawing.Size(35, 21);
             this.label84.TabIndex = 12;
@@ -2911,7 +2893,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_FacModeFW
             // 
             this.textBox_FacModeFW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_FacModeFW.Location = new System.Drawing.Point(54, 155);
+            this.textBox_FacModeFW.Location = new System.Drawing.Point(54, 132);
             this.textBox_FacModeFW.Name = "textBox_FacModeFW";
             this.textBox_FacModeFW.Size = new System.Drawing.Size(147, 28);
             this.textBox_FacModeFW.TabIndex = 13;
@@ -2919,7 +2901,7 @@ namespace Welling_Motor_Debug_Tool
             // Button_FacModeReadVer
             // 
             this.Button_FacModeReadVer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.Button_FacModeReadVer.Location = new System.Drawing.Point(151, 194);
+            this.Button_FacModeReadVer.Location = new System.Drawing.Point(151, 200);
             this.Button_FacModeReadVer.Name = "Button_FacModeReadVer";
             this.Button_FacModeReadVer.Size = new System.Drawing.Size(50, 34);
             this.Button_FacModeReadVer.TabIndex = 11;
@@ -2930,7 +2912,7 @@ namespace Welling_Motor_Debug_Tool
             // label83
             // 
             this.label83.AutoSize = true;
-            this.label83.Location = new System.Drawing.Point(6, 117);
+            this.label83.Location = new System.Drawing.Point(6, 102);
             this.label83.Name = "label83";
             this.label83.Size = new System.Drawing.Size(38, 21);
             this.label83.TabIndex = 9;
@@ -2939,7 +2921,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_FacModeHW
             // 
             this.textBox_FacModeHW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_FacModeHW.Location = new System.Drawing.Point(54, 113);
+            this.textBox_FacModeHW.Location = new System.Drawing.Point(54, 98);
             this.textBox_FacModeHW.Name = "textBox_FacModeHW";
             this.textBox_FacModeHW.Size = new System.Drawing.Size(147, 28);
             this.textBox_FacModeHW.TabIndex = 10;
@@ -2947,7 +2929,7 @@ namespace Welling_Motor_Debug_Tool
             // Button_FacModeSetNum
             // 
             this.Button_FacModeSetNum.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.Button_FacModeSetNum.Location = new System.Drawing.Point(151, 71);
+            this.Button_FacModeSetNum.Location = new System.Drawing.Point(151, 63);
             this.Button_FacModeSetNum.Name = "Button_FacModeSetNum";
             this.Button_FacModeSetNum.Size = new System.Drawing.Size(50, 29);
             this.Button_FacModeSetNum.TabIndex = 8;
@@ -2958,7 +2940,7 @@ namespace Welling_Motor_Debug_Tool
             // label82
             // 
             this.label82.AutoSize = true;
-            this.label82.Location = new System.Drawing.Point(6, 75);
+            this.label82.Location = new System.Drawing.Point(6, 67);
             this.label82.Name = "label82";
             this.label82.Size = new System.Drawing.Size(32, 21);
             this.label82.TabIndex = 6;
@@ -2967,7 +2949,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_FacModeNum
             // 
             this.textBox_FacModeNum.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_FacModeNum.Location = new System.Drawing.Point(54, 71);
+            this.textBox_FacModeNum.Location = new System.Drawing.Point(54, 63);
             this.textBox_FacModeNum.Name = "textBox_FacModeNum";
             this.textBox_FacModeNum.Size = new System.Drawing.Size(91, 28);
             this.textBox_FacModeNum.TabIndex = 7;
@@ -3804,6 +3786,59 @@ namespace Welling_Motor_Debug_Tool
             this.pictureBox2.TabIndex = 16;
             this.pictureBox2.TabStop = false;
             // 
+            // textBox_SP
+            // 
+            this.textBox_SP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.textBox_SP.Location = new System.Drawing.Point(56, 140);
+            this.textBox_SP.Name = "textBox_SP";
+            this.textBox_SP.ReadOnly = true;
+            this.textBox_SP.Size = new System.Drawing.Size(190, 28);
+            this.textBox_SP.TabIndex = 3;
+            // 
+            // label85
+            // 
+            this.label85.AutoSize = true;
+            this.label85.Location = new System.Drawing.Point(6, 144);
+            this.label85.Name = "label85";
+            this.label85.Size = new System.Drawing.Size(29, 21);
+            this.label85.TabIndex = 4;
+            this.label85.Text = "SP";
+            // 
+            // textBox_FacModeSP
+            // 
+            this.textBox_FacModeSP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.textBox_FacModeSP.Location = new System.Drawing.Point(54, 166);
+            this.textBox_FacModeSP.Name = "textBox_FacModeSP";
+            this.textBox_FacModeSP.Size = new System.Drawing.Size(147, 28);
+            this.textBox_FacModeSP.TabIndex = 24;
+            // 
+            // label86
+            // 
+            this.label86.AutoSize = true;
+            this.label86.Location = new System.Drawing.Point(6, 170);
+            this.label86.Name = "label86";
+            this.label86.Size = new System.Drawing.Size(29, 21);
+            this.label86.TabIndex = 25;
+            this.label86.Text = "SP";
+            // 
+            // textBox_OBC_ReadSP
+            // 
+            this.textBox_OBC_ReadSP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.textBox_OBC_ReadSP.Location = new System.Drawing.Point(56, 140);
+            this.textBox_OBC_ReadSP.Name = "textBox_OBC_ReadSP";
+            this.textBox_OBC_ReadSP.ReadOnly = true;
+            this.textBox_OBC_ReadSP.Size = new System.Drawing.Size(179, 28);
+            this.textBox_OBC_ReadSP.TabIndex = 3;
+            // 
+            // label53
+            // 
+            this.label53.AutoSize = true;
+            this.label53.Location = new System.Drawing.Point(7, 144);
+            this.label53.Name = "label53";
+            this.label53.Size = new System.Drawing.Size(29, 21);
+            this.label53.TabIndex = 4;
+            this.label53.Text = "SP";
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
@@ -3832,7 +3867,7 @@ namespace Welling_Motor_Debug_Tool
             this.MaximizeBox = false;
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "Welling中置电机调试工具V1.1.0";
+            this.Text = "Welling中置电机调试工具V1.1.1";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.menuStrip_Set.ResumeLayout(false);
             this.menuStrip_Set.PerformLayout();
@@ -3916,7 +3951,6 @@ namespace Welling_Motor_Debug_Tool
         private ToolStripMenuItem 波特率ToolStripMenuItem;
         private ToolStripMenuItem 工具箱ToolStripMenuItem;
         private ToolStripMenuItem 记录数据ToolStripMenuItem;
-        private ToolStripMenuItem 一键查询ToolStripMenuItem;
         private ToolStripMenuItem 关于ToolStripMenuItem;
         private ToolStripMenuItem 帮助ToolStripMenuItem;
         private ToolStripMenuItem 版本ToolStripMenuItem;
@@ -4088,12 +4122,10 @@ namespace Welling_Motor_Debug_Tool
         private Button button_OBC_ReadRideInfo;
         private TextBox textBox_OBC_ODO_KM;
         private Button button_OBC_ClearTrip;
-        private Label label55;
         private TextBox textBox_OBC_TRIP_TIME;
         private Label label54;
         private TextBox textBox_OBC_TRIP_KM;
         private Label label52;
-        private Label label53;
         private GroupBox groupBox14;
         private Button button_OBC_ReadVerInfo;
         private TextBox textBox_OBC_ReadFW;
@@ -4225,5 +4257,11 @@ namespace Welling_Motor_Debug_Tool
         private Button button_FacModeWorkMode;
         private ToolStripMenuItem 页面保存ToolStripMenuItem;
         private Label label68;
+        private Label label85;
+        private TextBox textBox_SP;
+        private Label label86;
+        private TextBox textBox_FacModeSP;
+        private Label label53;
+        private TextBox textBox_OBC_ReadSP;
     }
 }

+ 50 - 12
Welling_Motor_Debug_Tool/Form1.cs

@@ -218,13 +218,15 @@ namespace Welling_Motor_Debug_Tool
                                     DataTemp = (ushort)(Data[7] * 256 + Data[6]);
                                     textBox_RunInfo_Vol.Text = (DataTemp / 1000f).ToString("0.0") + " V";
                                     //母线电流
-                                    DataTemp = (ushort)(Data[9] * 256 + Data[8]);
+                                    DataTemp = (short)(Data[9] * 256 + Data[8]);
                                     textBox_RunInfo_Current.Text = (DataTemp / 1000f).ToString("0.0") + " A";
                                     Class_CurrentData.String = textBox_RunInfo_Current.Text;
                                     Class_CurrentData.Data = DataTemp;
                                     //踏频
                                     DataTemp = (ushort)(Data[10]);
                                     textBox_RunInfo_Cadence.Text = Convert.ToString(DataTemp) + " rpm";
+                                    Class_CadenceData.String = textBox_RunInfo_Cadence.Text;
+                                    Class_CadenceData.Data = DataTemp;
                                     //踩踏力矩
                                     DataTemp = (ushort)(Data[11]);
                                     textBox_RunInfo_Torque.Text = Convert.ToString(DataTemp) + " N.m";
@@ -299,6 +301,8 @@ namespace Welling_Motor_Debug_Tool
                                     //PCB温度
                                     DataTemp = (ushort)(Data[21]);
                                     textBox_RunInfo_T_PCB.Text = Convert.ToString((int)(DataTemp - 40))+" ℃";
+                                    Class_MotorTemp.String = textBox_RunInfo_T_PCB.Text;
+                                    Class_MotorTemp.Data = DataTemp - 40;
                                     //绕组温度
                                     DataTemp = (ushort)(Data[22]);
                                     textBox_RunInfo_T_Coil.Text = Convert.ToString((int)(DataTemp - 40)) + " ℃";
@@ -786,6 +790,31 @@ namespace Welling_Motor_Debug_Tool
                             }
                             break;
                         }
+                    case 0x1720://客户信息
+                        {
+                            unchecked
+                            {
+                                this.Invoke((EventHandler)(delegate
+                                {
+                                    //程序特性
+                                    textBox_SP.Text = "";
+                                    textBox_OBC_ReadSP.Text = "";    
+                                    textBox_FacModeSP.Text = "";
+                                    for (ushort i = 0; i < 32; i++)
+                                    {
+                                        if (Data[i] == 0x2E)
+                                        {
+                                            break;
+                                        }
+                                        textBox_SP.Text += ((char)Data[i]).ToString();
+                                        textBox_OBC_ReadSP.Text += ((char)Data[i]).ToString();
+                                        textBox_FacModeSP.Text += ((char)Data[i]).ToString(); ;
+                                    }
+                                    Class_Motor_Ver.Special = textBox_SP.Text;
+                                }));
+                            }
+                            break;
+                        }
                     default:
                         {
                             unchecked
@@ -1519,14 +1548,17 @@ namespace Welling_Motor_Debug_Tool
             textBox_SN.Text = "---";
             textBox_HW.Text = "---";
             textBox_FW.Text = "---";
+            textBox_SP.Text = "---";
             textBox_OBC_ReadModel.Text = "---";
             textBox_OBC_ReadSN.Text = "---";
             textBox_OBC_ReadHW.Text = "---";
             textBox_OBC_ReadFW.Text = "---";
+            textBox_OBC_ReadSP.Text = "---";
             textBox_FacModeName.Text = "---";
             textBox_FacModeNum.Text = "---";
             textBox_FacModeHW.Text = "---";
             textBox_FacModeFW.Text = "---";
+            textBox_FacModeSP.Text = "---";
             Class_Motor_Ver.Mode = "---";
             Class_Motor_Ver.SN = "---";
             Class_Motor_Ver.HW = "---";
@@ -1843,11 +1875,11 @@ namespace Welling_Motor_Debug_Tool
         {
             var Code = new byte[5];
 
-            Code[0] = (byte)'R';
-            Code[1] = (byte)'E';
-            Code[2] = (byte)'S';
-            Code[3] = (byte)'E';
-            Code[4] = (byte)'T';
+            Code[0] = (byte)'O';
+            Code[1] = (byte)'F';
+            Code[2] = (byte)'F';
+            Code[3] = (byte)'.';
+            Code[4] = (byte)'.';
 
             timer_1s.Enabled = false;
             if (MessageBox.Show("系统将关机", "确认关机?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
@@ -2120,14 +2152,17 @@ namespace Welling_Motor_Debug_Tool
             textBox_SN.Text = "---";
             textBox_HW.Text = "---";
             textBox_FW.Text = "---";
+            textBox_SP.Text = "---";
             textBox_OBC_ReadModel.Text = "---";
             textBox_OBC_ReadSN.Text = "---";
             textBox_OBC_ReadHW.Text = "---";
             textBox_OBC_ReadFW.Text = "---";
+            textBox_OBC_ReadSP.Text = "---";
             textBox_FacModeName.Text = "---";
             textBox_FacModeNum.Text = "---";
             textBox_FacModeHW.Text = "---";
             textBox_FacModeFW.Text = "---";
+            textBox_FacModeSP.Text = "---";
             Class_Motor_Ver.Mode = "---";
             Class_Motor_Ver.SN = "---";
             Class_Motor_Ver.HW = "---";
@@ -2419,7 +2454,7 @@ namespace Welling_Motor_Debug_Tool
                     {
                         if (!PowerOffAckStatus)
                         {
-                            if (!mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2505, Code)) return;
+                            if (!mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2605, Code)) return;
                             PowerOffAckStatus = false;
                             Delay_ms(250);
                         }
@@ -3091,14 +3126,17 @@ namespace Welling_Motor_Debug_Tool
             textBox_SN.Text = "---";
             textBox_HW.Text = "---";
             textBox_FW.Text = "---";
+            textBox_SP.Text = "---";
             textBox_OBC_ReadModel.Text = "---";
             textBox_OBC_ReadSN.Text = "---";
             textBox_OBC_ReadHW.Text = "---";
             textBox_OBC_ReadFW.Text = "---";
+            textBox_OBC_ReadSP.Text = "---";
             textBox_FacModeName.Text = "---";
             textBox_FacModeNum.Text = "---";
             textBox_FacModeHW.Text = "---";
             textBox_FacModeFW.Text = "---";
+            textBox_FacModeSP.Text = "---";
             Class_Motor_Ver.Mode = "---";
             Class_Motor_Ver.SN = "---";
             Class_Motor_Ver.HW = "---";
@@ -3268,11 +3306,11 @@ namespace Welling_Motor_Debug_Tool
 
             //关机保存参数
             var Code = new byte[5];
-            Code[0] = (byte)'R';
-            Code[1] = (byte)'E';
-            Code[2] = (byte)'S';
-            Code[3] = (byte)'E';
-            Code[4] = (byte)'T';
+            Code[0] = (byte)'O';
+            Code[1] = (byte)'F';
+            Code[2] = (byte)'F';
+            Code[3] = (byte)'.';
+            Code[4] = (byte)'.';
             mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2505, Code);
             PowerOffAckStatus = false;
             Delay_ms(250);

BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.pdb


+ 0 - 0
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool202212102205.exe → Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_202212102205.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_202302071000.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.GenerateResource.cache


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb