浏览代码

增加测试,未编译。

Dail 1 年之前
父节点
当前提交
5402e0cb4b
共有 3 个文件被更改,包括 539 次插入156 次删除
  1. 二进制
      .vs/Welling_Motor_Debug_Tool/v17/.suo
  2. 268 154
      Welling_Motor_Debug_Tool/mainForm.Designer.cs
  3. 271 2
      Welling_Motor_Debug_Tool/mainForm.cs

二进制
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 268 - 154
Welling_Motor_Debug_Tool/mainForm.Designer.cs

@@ -393,9 +393,6 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacMode_CfgWrite = new System.Windows.Forms.Label();
             this.label120 = new System.Windows.Forms.Label();
             this.label_FacModeVolTest = new System.Windows.Forms.Label();
-            this.label133 = new System.Windows.Forms.Label();
-            this.label132 = new System.Windows.Forms.Label();
-            this.label_FacModeErrorCode = new System.Windows.Forms.Label();
             this.label115 = new System.Windows.Forms.Label();
             this.label_FacModeSysClear = new System.Windows.Forms.Label();
             this.groupBox27 = new System.Windows.Forms.GroupBox();
@@ -404,6 +401,9 @@ namespace Welling_Motor_Debug_Tool
             this.comboBox_FacModeCfgFile = new System.Windows.Forms.ComboBox();
             this.comboBox_FacModeCfgDate = new System.Windows.Forms.ComboBox();
             this.groupBox2 = new System.Windows.Forms.GroupBox();
+            this.checkBox_FacLightTest = new System.Windows.Forms.CheckBox();
+            this.checkBox_FacBreakTest = new System.Windows.Forms.CheckBox();
+            this.checkBox_FacThrrotleTest = new System.Windows.Forms.CheckBox();
             this.checkBox_FacBaseFucTest = new System.Windows.Forms.CheckBox();
             this.checkBox_FacModeCfgWrite = new System.Windows.Forms.CheckBox();
             this.checkBox_FacModeSysClear = new System.Windows.Forms.CheckBox();
@@ -525,9 +525,16 @@ namespace Welling_Motor_Debug_Tool
             this.label107 = new System.Windows.Forms.Label();
             this.label_StarInfo = new System.Windows.Forms.Label();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
-            this.checkBox_FacThrrotleTest = new System.Windows.Forms.CheckBox();
-            this.checkBox_FacBreakTest = new System.Windows.Forms.CheckBox();
-            this.checkBox_FacLightTest = new System.Windows.Forms.CheckBox();
+            this.label113 = new System.Windows.Forms.Label();
+            this.label114 = new System.Windows.Forms.Label();
+            this.label_FacModeCad = new System.Windows.Forms.Label();
+            this.label_FacModeTq = new System.Windows.Forms.Label();
+            this.checkBox_FacTorCad = new System.Windows.Forms.CheckBox();
+            this.checkBox_FacModeBMS = new System.Windows.Forms.CheckBox();
+            this.label116 = new System.Windows.Forms.Label();
+            this.label_FacModeBMS = new System.Windows.Forms.Label();
+            this.label117 = new System.Windows.Forms.Label();
+            this.label_FacModeSpeed = new System.Windows.Forms.Label();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -774,7 +781,7 @@ namespace Welling_Motor_Debug_Tool
             this.IP地址ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerIP});
             this.IP地址ToolStripMenuItem.Name = "IP地址ToolStripMenuItem";
-            this.IP地址ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.IP地址ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.IP地址ToolStripMenuItem.Text = "IP地址";
             this.IP地址ToolStripMenuItem.Visible = false;
             // 
@@ -791,7 +798,7 @@ namespace Welling_Motor_Debug_Tool
             this.端口ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPort});
             this.端口ToolStripMenuItem.Name = "端口ToolStripMenuItem";
-            this.端口ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.端口ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.端口ToolStripMenuItem.Text = "端口";
             this.端口ToolStripMenuItem.Visible = false;
             // 
@@ -808,7 +815,7 @@ namespace Welling_Motor_Debug_Tool
             this.用户名ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerUser});
             this.用户名ToolStripMenuItem.Name = "用户名ToolStripMenuItem";
-            this.用户名ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.用户名ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.用户名ToolStripMenuItem.Text = "用户名";
             this.用户名ToolStripMenuItem.Visible = false;
             // 
@@ -825,7 +832,7 @@ namespace Welling_Motor_Debug_Tool
             this.密码ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPasswd});
             this.密码ToolStripMenuItem.Name = "密码ToolStripMenuItem";
-            this.密码ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.密码ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.密码ToolStripMenuItem.Text = "密码";
             this.密码ToolStripMenuItem.Visible = false;
             // 
@@ -842,7 +849,7 @@ namespace Welling_Motor_Debug_Tool
             this.存储路径ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPath});
             this.存储路径ToolStripMenuItem.Name = "存储路径ToolStripMenuItem";
-            this.存储路径ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.存储路径ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.存储路径ToolStripMenuItem.Text = "存储路径";
             this.存储路径ToolStripMenuItem.Visible = false;
             // 
@@ -4237,6 +4244,14 @@ namespace Welling_Motor_Debug_Tool
             // 
             // groupBox28
             // 
+            this.groupBox28.Controls.Add(this.label117);
+            this.groupBox28.Controls.Add(this.label_FacModeSpeed);
+            this.groupBox28.Controls.Add(this.label_FacModeBMS);
+            this.groupBox28.Controls.Add(this.label116);
+            this.groupBox28.Controls.Add(this.label114);
+            this.groupBox28.Controls.Add(this.label_FacModeCad);
+            this.groupBox28.Controls.Add(this.label_FacModeTq);
+            this.groupBox28.Controls.Add(this.label113);
             this.groupBox28.Controls.Add(this.label134);
             this.groupBox28.Controls.Add(this.label_FacModeBootVer);
             this.groupBox28.Controls.Add(this.label136);
@@ -4259,9 +4274,6 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox28.Controls.Add(this.label_FacMode_CfgWrite);
             this.groupBox28.Controls.Add(this.label120);
             this.groupBox28.Controls.Add(this.label_FacModeVolTest);
-            this.groupBox28.Controls.Add(this.label133);
-            this.groupBox28.Controls.Add(this.label132);
-            this.groupBox28.Controls.Add(this.label_FacModeErrorCode);
             this.groupBox28.Controls.Add(this.label115);
             this.groupBox28.Controls.Add(this.label_FacModeSysClear);
             this.groupBox28.Location = new System.Drawing.Point(743, 72);
@@ -4274,11 +4286,11 @@ namespace Welling_Motor_Debug_Tool
             // label134
             // 
             this.label134.AutoSize = true;
-            this.label134.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label134.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label134.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label134.Location = new System.Drawing.Point(123, 212);
+            this.label134.Location = new System.Drawing.Point(123, 206);
             this.label134.Name = "label134";
-            this.label134.Size = new System.Drawing.Size(55, 21);
+            this.label134.Size = new System.Drawing.Size(48, 20);
             this.label134.TabIndex = 14;
             this.label134.Text = "BOOT";
             this.label134.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4288,20 +4300,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeBootVer.BackColor = System.Drawing.Color.Red;
             this.label_FacModeBootVer.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeBootVer.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeBootVer.Location = new System.Drawing.Point(203, 215);
+            this.label_FacModeBootVer.Location = new System.Drawing.Point(208, 210);
             this.label_FacModeBootVer.Name = "label_FacModeBootVer";
-            this.label_FacModeBootVer.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeBootVer.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeBootVer.TabIndex = 15;
             this.label_FacModeBootVer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label136
             // 
             this.label136.AutoSize = true;
-            this.label136.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label136.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label136.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label136.Location = new System.Drawing.Point(10, 212);
+            this.label136.Location = new System.Drawing.Point(6, 206);
             this.label136.Name = "label136";
-            this.label136.Size = new System.Drawing.Size(74, 21);
+            this.label136.Size = new System.Drawing.Size(65, 20);
             this.label136.TabIndex = 16;
             this.label136.Text = "软件版本";
             this.label136.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4311,20 +4323,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeFWVersion.BackColor = System.Drawing.Color.Red;
             this.label_FacModeFWVersion.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeFWVersion.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeFWVersion.Location = new System.Drawing.Point(90, 215);
+            this.label_FacModeFWVersion.Location = new System.Drawing.Point(95, 210);
             this.label_FacModeFWVersion.Name = "label_FacModeFWVersion";
-            this.label_FacModeFWVersion.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeFWVersion.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeFWVersion.TabIndex = 17;
             this.label_FacModeFWVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label145
             // 
             this.label145.AutoSize = true;
-            this.label145.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label145.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label145.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label145.Location = new System.Drawing.Point(123, 182);
+            this.label145.Location = new System.Drawing.Point(123, 180);
             this.label145.Name = "label145";
-            this.label145.Size = new System.Drawing.Size(74, 21);
+            this.label145.Size = new System.Drawing.Size(65, 20);
             this.label145.TabIndex = 10;
             this.label145.Text = "后灯控制";
             this.label145.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4332,11 +4344,11 @@ namespace Welling_Motor_Debug_Tool
             // label127
             // 
             this.label127.AutoSize = true;
-            this.label127.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label127.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label127.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label127.Location = new System.Drawing.Point(123, 152);
+            this.label127.Location = new System.Drawing.Point(123, 154);
             this.label127.Name = "label127";
-            this.label127.Size = new System.Drawing.Size(74, 21);
+            this.label127.Size = new System.Drawing.Size(65, 20);
             this.label127.TabIndex = 10;
             this.label127.Text = "断电刹车";
             this.label127.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4346,9 +4358,9 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeLightB.BackColor = System.Drawing.Color.Red;
             this.label_FacModeLightB.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeLightB.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeLightB.Location = new System.Drawing.Point(203, 185);
+            this.label_FacModeLightB.Location = new System.Drawing.Point(208, 184);
             this.label_FacModeLightB.Name = "label_FacModeLightB";
-            this.label_FacModeLightB.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeLightB.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeLightB.TabIndex = 11;
             this.label_FacModeLightB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -4357,20 +4369,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeBreak.BackColor = System.Drawing.Color.Red;
             this.label_FacModeBreak.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeBreak.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeBreak.Location = new System.Drawing.Point(203, 155);
+            this.label_FacModeBreak.Location = new System.Drawing.Point(208, 158);
             this.label_FacModeBreak.Name = "label_FacModeBreak";
-            this.label_FacModeBreak.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeBreak.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeBreak.TabIndex = 11;
             this.label_FacModeBreak.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label143
             // 
             this.label143.AutoSize = true;
-            this.label143.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label143.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label143.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label143.Location = new System.Drawing.Point(10, 182);
+            this.label143.Location = new System.Drawing.Point(6, 180);
             this.label143.Name = "label143";
-            this.label143.Size = new System.Drawing.Size(74, 21);
+            this.label143.Size = new System.Drawing.Size(65, 20);
             this.label143.TabIndex = 12;
             this.label143.Text = "前灯控制";
             this.label143.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4380,20 +4392,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeLightF.BackColor = System.Drawing.Color.Red;
             this.label_FacModeLightF.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeLightF.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeLightF.Location = new System.Drawing.Point(90, 185);
+            this.label_FacModeLightF.Location = new System.Drawing.Point(95, 184);
             this.label_FacModeLightF.Name = "label_FacModeLightF";
-            this.label_FacModeLightF.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeLightF.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeLightF.TabIndex = 13;
             this.label_FacModeLightF.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label129
             // 
             this.label129.AutoSize = true;
-            this.label129.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label129.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label129.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label129.Location = new System.Drawing.Point(10, 152);
+            this.label129.Location = new System.Drawing.Point(6, 154);
             this.label129.Name = "label129";
-            this.label129.Size = new System.Drawing.Size(74, 21);
+            this.label129.Size = new System.Drawing.Size(65, 20);
             this.label129.TabIndex = 12;
             this.label129.Text = "转把功能";
             this.label129.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4403,20 +4415,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeGas.BackColor = System.Drawing.Color.Red;
             this.label_FacModeGas.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeGas.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeGas.Location = new System.Drawing.Point(90, 155);
+            this.label_FacModeGas.Location = new System.Drawing.Point(95, 158);
             this.label_FacModeGas.Name = "label_FacModeGas";
-            this.label_FacModeGas.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeGas.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeGas.TabIndex = 13;
             this.label_FacModeGas.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label123
             // 
             this.label123.AutoSize = true;
-            this.label123.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label123.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label123.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label123.Location = new System.Drawing.Point(123, 122);
+            this.label123.Location = new System.Drawing.Point(123, 102);
             this.label123.Name = "label123";
-            this.label123.Size = new System.Drawing.Size(74, 21);
+            this.label123.Size = new System.Drawing.Size(65, 20);
             this.label123.TabIndex = 6;
             this.label123.Text = "电机转速";
             this.label123.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4426,20 +4438,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeMotorSpeed.BackColor = System.Drawing.Color.Red;
             this.label_FacModeMotorSpeed.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeMotorSpeed.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeMotorSpeed.Location = new System.Drawing.Point(203, 125);
+            this.label_FacModeMotorSpeed.Location = new System.Drawing.Point(208, 106);
             this.label_FacModeMotorSpeed.Name = "label_FacModeMotorSpeed";
-            this.label_FacModeMotorSpeed.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeMotorSpeed.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeMotorSpeed.TabIndex = 7;
             this.label_FacModeMotorSpeed.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label125
             // 
             this.label125.AutoSize = true;
-            this.label125.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label125.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label125.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label125.Location = new System.Drawing.Point(10, 122);
+            this.label125.Location = new System.Drawing.Point(6, 102);
             this.label125.Name = "label125";
-            this.label125.Size = new System.Drawing.Size(74, 21);
+            this.label125.Size = new System.Drawing.Size(65, 20);
             this.label125.TabIndex = 8;
             this.label125.Text = "温度测量";
             this.label125.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4449,20 +4461,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeNTC.BackColor = System.Drawing.Color.Red;
             this.label_FacModeNTC.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeNTC.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeNTC.Location = new System.Drawing.Point(90, 125);
+            this.label_FacModeNTC.Location = new System.Drawing.Point(95, 106);
             this.label_FacModeNTC.Name = "label_FacModeNTC";
-            this.label_FacModeNTC.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeNTC.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeNTC.TabIndex = 9;
             this.label_FacModeNTC.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label122
             // 
             this.label122.AutoSize = true;
-            this.label122.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label122.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label122.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label122.Location = new System.Drawing.Point(123, 92);
+            this.label122.Location = new System.Drawing.Point(123, 76);
             this.label122.Name = "label122";
-            this.label122.Size = new System.Drawing.Size(74, 21);
+            this.label122.Size = new System.Drawing.Size(65, 20);
             this.label122.TabIndex = 5;
             this.label122.Text = "电流检测";
             this.label122.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4470,11 +4482,11 @@ namespace Welling_Motor_Debug_Tool
             // label118
             // 
             this.label118.AutoSize = true;
-            this.label118.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label118.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label118.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label118.Location = new System.Drawing.Point(123, 62);
+            this.label118.Location = new System.Drawing.Point(123, 24);
             this.label118.Name = "label118";
-            this.label118.Size = new System.Drawing.Size(74, 21);
+            this.label118.Size = new System.Drawing.Size(65, 20);
             this.label118.TabIndex = 5;
             this.label118.Text = "参数写入";
             this.label118.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4484,9 +4496,9 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeCurrentTest.BackColor = System.Drawing.Color.Red;
             this.label_FacModeCurrentTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeCurrentTest.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeCurrentTest.Location = new System.Drawing.Point(203, 95);
+            this.label_FacModeCurrentTest.Location = new System.Drawing.Point(208, 80);
             this.label_FacModeCurrentTest.Name = "label_FacModeCurrentTest";
-            this.label_FacModeCurrentTest.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeCurrentTest.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeCurrentTest.TabIndex = 5;
             this.label_FacModeCurrentTest.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -4495,20 +4507,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacMode_CfgWrite.BackColor = System.Drawing.Color.Red;
             this.label_FacMode_CfgWrite.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacMode_CfgWrite.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacMode_CfgWrite.Location = new System.Drawing.Point(203, 65);
+            this.label_FacMode_CfgWrite.Location = new System.Drawing.Point(208, 28);
             this.label_FacMode_CfgWrite.Name = "label_FacMode_CfgWrite";
-            this.label_FacMode_CfgWrite.Size = new System.Drawing.Size(15, 15);
+            this.label_FacMode_CfgWrite.Size = new System.Drawing.Size(12, 12);
             this.label_FacMode_CfgWrite.TabIndex = 5;
             this.label_FacMode_CfgWrite.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label120
             // 
             this.label120.AutoSize = true;
-            this.label120.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label120.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label120.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label120.Location = new System.Drawing.Point(10, 92);
+            this.label120.Location = new System.Drawing.Point(6, 76);
             this.label120.Name = "label120";
-            this.label120.Size = new System.Drawing.Size(74, 21);
+            this.label120.Size = new System.Drawing.Size(65, 20);
             this.label120.TabIndex = 5;
             this.label120.Text = "电压测量";
             this.label120.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4518,55 +4530,20 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeVolTest.BackColor = System.Drawing.Color.Red;
             this.label_FacModeVolTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeVolTest.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeVolTest.Location = new System.Drawing.Point(90, 95);
+            this.label_FacModeVolTest.Location = new System.Drawing.Point(95, 80);
             this.label_FacModeVolTest.Name = "label_FacModeVolTest";
-            this.label_FacModeVolTest.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeVolTest.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeVolTest.TabIndex = 5;
             this.label_FacModeVolTest.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label133
-            // 
-            this.label133.AutoSize = true;
-            this.label133.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label133.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label133.Location = new System.Drawing.Point(160, 32);
-            this.label133.Name = "label133";
-            this.label133.Size = new System.Drawing.Size(58, 21);
-            this.label133.TabIndex = 5;
-            this.label133.Text = "无故障";
-            this.label133.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label132
-            // 
-            this.label132.AutoSize = true;
-            this.label132.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label132.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label132.Location = new System.Drawing.Point(10, 32);
-            this.label132.Name = "label132";
-            this.label132.Size = new System.Drawing.Size(74, 21);
-            this.label132.TabIndex = 5;
-            this.label132.Text = "故障代码";
-            this.label132.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label_FacModeErrorCode
-            // 
-            this.label_FacModeErrorCode.BackColor = System.Drawing.Color.Red;
-            this.label_FacModeErrorCode.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label_FacModeErrorCode.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeErrorCode.Location = new System.Drawing.Point(90, 35);
-            this.label_FacModeErrorCode.Name = "label_FacModeErrorCode";
-            this.label_FacModeErrorCode.Size = new System.Drawing.Size(60, 15);
-            this.label_FacModeErrorCode.TabIndex = 5;
-            this.label_FacModeErrorCode.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // label115
             // 
             this.label115.AutoSize = true;
-            this.label115.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label115.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label115.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label115.Location = new System.Drawing.Point(10, 62);
+            this.label115.Location = new System.Drawing.Point(6, 24);
             this.label115.Name = "label115";
-            this.label115.Size = new System.Drawing.Size(74, 21);
+            this.label115.Size = new System.Drawing.Size(65, 20);
             this.label115.TabIndex = 5;
             this.label115.Text = "系统清除";
             this.label115.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -4576,9 +4553,9 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeSysClear.BackColor = System.Drawing.Color.Red;
             this.label_FacModeSysClear.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label_FacModeSysClear.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_FacModeSysClear.Location = new System.Drawing.Point(90, 65);
+            this.label_FacModeSysClear.Location = new System.Drawing.Point(95, 28);
             this.label_FacModeSysClear.Name = "label_FacModeSysClear";
-            this.label_FacModeSysClear.Size = new System.Drawing.Size(15, 15);
+            this.label_FacModeSysClear.Size = new System.Drawing.Size(12, 12);
             this.label_FacModeSysClear.TabIndex = 5;
             this.label_FacModeSysClear.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -4605,13 +4582,14 @@ namespace Welling_Motor_Debug_Tool
             // button__FacMode_Start
             // 
             this.button__FacMode_Start.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
-            this.button__FacMode_Start.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
-            this.button__FacMode_Start.Location = new System.Drawing.Point(512, 37);
+            this.button__FacMode_Start.ForeColor = System.Drawing.Color.White;
+            this.button__FacMode_Start.Location = new System.Drawing.Point(512, 35);
             this.button__FacMode_Start.Name = "button__FacMode_Start";
-            this.button__FacMode_Start.Size = new System.Drawing.Size(126, 31);
+            this.button__FacMode_Start.Size = new System.Drawing.Size(126, 35);
             this.button__FacMode_Start.TabIndex = 9;
             this.button__FacMode_Start.Text = "开始测试";
             this.button__FacMode_Start.UseVisualStyleBackColor = false;
+            this.button__FacMode_Start.Click += new System.EventHandler(this.button__FacMode_Start_Click);
             // 
             // comboBox_FacModeCfgFile
             // 
@@ -4640,7 +4618,9 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.groupBox2.Controls.Add(this.checkBox_FacLightTest);
             this.groupBox2.Controls.Add(this.checkBox_FacBreakTest);
+            this.groupBox2.Controls.Add(this.checkBox_FacTorCad);
             this.groupBox2.Controls.Add(this.checkBox_FacThrrotleTest);
+            this.groupBox2.Controls.Add(this.checkBox_FacModeBMS);
             this.groupBox2.Controls.Add(this.checkBox_FacBaseFucTest);
             this.groupBox2.Controls.Add(this.checkBox_FacModeCfgWrite);
             this.groupBox2.Controls.Add(this.checkBox_FacModeSysClear);
@@ -4651,12 +4631,50 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox2.TabStop = false;
             this.groupBox2.Text = "测试项目";
             // 
+            // checkBox_FacLightTest
+            // 
+            this.checkBox_FacLightTest.AutoSize = true;
+            this.checkBox_FacLightTest.Checked = true;
+            this.checkBox_FacLightTest.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.checkBox_FacLightTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacLightTest.Location = new System.Drawing.Point(6, 210);
+            this.checkBox_FacLightTest.Name = "checkBox_FacLightTest";
+            this.checkBox_FacLightTest.Size = new System.Drawing.Size(98, 24);
+            this.checkBox_FacLightTest.TabIndex = 5;
+            this.checkBox_FacLightTest.Text = "前后灯接口";
+            this.checkBox_FacLightTest.UseVisualStyleBackColor = true;
+            // 
+            // checkBox_FacBreakTest
+            // 
+            this.checkBox_FacBreakTest.AutoSize = true;
+            this.checkBox_FacBreakTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacBreakTest.Location = new System.Drawing.Point(6, 184);
+            this.checkBox_FacBreakTest.Name = "checkBox_FacBreakTest";
+            this.checkBox_FacBreakTest.Size = new System.Drawing.Size(56, 24);
+            this.checkBox_FacBreakTest.TabIndex = 4;
+            this.checkBox_FacBreakTest.Text = "刹车";
+            this.checkBox_FacBreakTest.UseVisualStyleBackColor = true;
+            // 
+            // checkBox_FacThrrotleTest
+            // 
+            this.checkBox_FacThrrotleTest.AutoSize = true;
+            this.checkBox_FacThrrotleTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacThrrotleTest.Location = new System.Drawing.Point(6, 158);
+            this.checkBox_FacThrrotleTest.Name = "checkBox_FacThrrotleTest";
+            this.checkBox_FacThrrotleTest.Size = new System.Drawing.Size(56, 24);
+            this.checkBox_FacThrrotleTest.TabIndex = 3;
+            this.checkBox_FacThrrotleTest.Text = "转把";
+            this.checkBox_FacThrrotleTest.UseVisualStyleBackColor = true;
+            // 
             // checkBox_FacBaseFucTest
             // 
             this.checkBox_FacBaseFucTest.AutoSize = true;
-            this.checkBox_FacBaseFucTest.Location = new System.Drawing.Point(7, 96);
+            this.checkBox_FacBaseFucTest.Checked = true;
+            this.checkBox_FacBaseFucTest.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.checkBox_FacBaseFucTest.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacBaseFucTest.Location = new System.Drawing.Point(6, 106);
             this.checkBox_FacBaseFucTest.Name = "checkBox_FacBaseFucTest";
-            this.checkBox_FacBaseFucTest.Size = new System.Drawing.Size(93, 25);
+            this.checkBox_FacBaseFucTest.Size = new System.Drawing.Size(84, 24);
             this.checkBox_FacBaseFucTest.TabIndex = 2;
             this.checkBox_FacBaseFucTest.Text = "基础功能";
             this.checkBox_FacBaseFucTest.UseVisualStyleBackColor = true;
@@ -4664,9 +4682,10 @@ namespace Welling_Motor_Debug_Tool
             // checkBox_FacModeCfgWrite
             // 
             this.checkBox_FacModeCfgWrite.AutoSize = true;
-            this.checkBox_FacModeCfgWrite.Location = new System.Drawing.Point(7, 62);
+            this.checkBox_FacModeCfgWrite.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacModeCfgWrite.Location = new System.Drawing.Point(6, 54);
             this.checkBox_FacModeCfgWrite.Name = "checkBox_FacModeCfgWrite";
-            this.checkBox_FacModeCfgWrite.Size = new System.Drawing.Size(93, 25);
+            this.checkBox_FacModeCfgWrite.Size = new System.Drawing.Size(84, 24);
             this.checkBox_FacModeCfgWrite.TabIndex = 1;
             this.checkBox_FacModeCfgWrite.Text = "参数写入";
             this.checkBox_FacModeCfgWrite.UseVisualStyleBackColor = true;
@@ -4674,9 +4693,10 @@ namespace Welling_Motor_Debug_Tool
             // checkBox_FacModeSysClear
             // 
             this.checkBox_FacModeSysClear.AutoSize = true;
-            this.checkBox_FacModeSysClear.Location = new System.Drawing.Point(7, 28);
+            this.checkBox_FacModeSysClear.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacModeSysClear.Location = new System.Drawing.Point(6, 28);
             this.checkBox_FacModeSysClear.Name = "checkBox_FacModeSysClear";
-            this.checkBox_FacModeSysClear.Size = new System.Drawing.Size(93, 25);
+            this.checkBox_FacModeSysClear.Size = new System.Drawing.Size(84, 24);
             this.checkBox_FacModeSysClear.TabIndex = 0;
             this.checkBox_FacModeSysClear.Text = "系统清除";
             this.checkBox_FacModeSysClear.UseVisualStyleBackColor = true;
@@ -4688,7 +4708,6 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeScan.Name = "textBox_FacModeScan";
             this.textBox_FacModeScan.Size = new System.Drawing.Size(413, 28);
             this.textBox_FacModeScan.TabIndex = 6;
-            this.textBox_FacModeScan.Text = "MIGICT19000E00136V250WM23H29A0031B";
             // 
             // label112
             // 
@@ -4704,9 +4723,9 @@ namespace Welling_Motor_Debug_Tool
             // 
             // label_FacModeSatus
             // 
-            this.label_FacModeSatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.label_FacModeSatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
             this.label_FacModeSatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label_FacModeSatus.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeSatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.label_FacModeSatus.Location = new System.Drawing.Point(763, 38);
             this.label_FacModeSatus.Name = "label_FacModeSatus";
             this.label_FacModeSatus.Size = new System.Drawing.Size(218, 29);
@@ -4718,7 +4737,7 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.label_FacModeResult.BackColor = System.Drawing.Color.Green;
             this.label_FacModeResult.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label_FacModeResult.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeResult.ForeColor = System.Drawing.Color.White;
             this.label_FacModeResult.Location = new System.Drawing.Point(645, 38);
             this.label_FacModeResult.Name = "label_FacModeResult";
             this.label_FacModeResult.Size = new System.Drawing.Size(111, 29);
@@ -5915,35 +5934,123 @@ namespace Welling_Motor_Debug_Tool
             this.pictureBox2.TabIndex = 16;
             this.pictureBox2.TabStop = false;
             // 
-            // checkBox_FacThrrotleTest
-            // 
-            this.checkBox_FacThrrotleTest.AutoSize = true;
-            this.checkBox_FacThrrotleTest.Location = new System.Drawing.Point(7, 130);
-            this.checkBox_FacThrrotleTest.Name = "checkBox_FacThrrotleTest";
-            this.checkBox_FacThrrotleTest.Size = new System.Drawing.Size(93, 25);
-            this.checkBox_FacThrrotleTest.TabIndex = 3;
-            this.checkBox_FacThrrotleTest.Text = "转把接口";
-            this.checkBox_FacThrrotleTest.UseVisualStyleBackColor = true;
-            // 
-            // checkBox_FacBreakTest
-            // 
-            this.checkBox_FacBreakTest.AutoSize = true;
-            this.checkBox_FacBreakTest.Location = new System.Drawing.Point(6, 164);
-            this.checkBox_FacBreakTest.Name = "checkBox_FacBreakTest";
-            this.checkBox_FacBreakTest.Size = new System.Drawing.Size(93, 25);
-            this.checkBox_FacBreakTest.TabIndex = 4;
-            this.checkBox_FacBreakTest.Text = "刹车接口";
-            this.checkBox_FacBreakTest.UseVisualStyleBackColor = true;
-            // 
-            // checkBox_FacLightTest
-            // 
-            this.checkBox_FacLightTest.AutoSize = true;
-            this.checkBox_FacLightTest.Location = new System.Drawing.Point(4, 198);
-            this.checkBox_FacLightTest.Name = "checkBox_FacLightTest";
-            this.checkBox_FacLightTest.Size = new System.Drawing.Size(109, 25);
-            this.checkBox_FacLightTest.TabIndex = 5;
-            this.checkBox_FacLightTest.Text = "前后灯接口";
-            this.checkBox_FacLightTest.UseVisualStyleBackColor = true;
+            // label113
+            // 
+            this.label113.AutoSize = true;
+            this.label113.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label113.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label113.Location = new System.Drawing.Point(6, 128);
+            this.label113.Name = "label113";
+            this.label113.Size = new System.Drawing.Size(79, 20);
+            this.label113.TabIndex = 18;
+            this.label113.Text = "力矩传感器";
+            this.label113.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label114
+            // 
+            this.label114.AutoSize = true;
+            this.label114.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label114.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label114.Location = new System.Drawing.Point(123, 128);
+            this.label114.Name = "label114";
+            this.label114.Size = new System.Drawing.Size(79, 20);
+            this.label114.TabIndex = 19;
+            this.label114.Text = "踏频传感器";
+            this.label114.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label_FacModeCad
+            // 
+            this.label_FacModeCad.BackColor = System.Drawing.Color.Red;
+            this.label_FacModeCad.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label_FacModeCad.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeCad.Location = new System.Drawing.Point(208, 132);
+            this.label_FacModeCad.Name = "label_FacModeCad";
+            this.label_FacModeCad.Size = new System.Drawing.Size(12, 12);
+            this.label_FacModeCad.TabIndex = 20;
+            this.label_FacModeCad.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label_FacModeTq
+            // 
+            this.label_FacModeTq.BackColor = System.Drawing.Color.Red;
+            this.label_FacModeTq.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label_FacModeTq.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeTq.Location = new System.Drawing.Point(95, 132);
+            this.label_FacModeTq.Name = "label_FacModeTq";
+            this.label_FacModeTq.Size = new System.Drawing.Size(12, 12);
+            this.label_FacModeTq.TabIndex = 21;
+            this.label_FacModeTq.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // checkBox_FacTorCad
+            // 
+            this.checkBox_FacTorCad.AutoSize = true;
+            this.checkBox_FacTorCad.Checked = true;
+            this.checkBox_FacTorCad.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.checkBox_FacTorCad.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacTorCad.Location = new System.Drawing.Point(6, 132);
+            this.checkBox_FacTorCad.Name = "checkBox_FacTorCad";
+            this.checkBox_FacTorCad.Size = new System.Drawing.Size(90, 24);
+            this.checkBox_FacTorCad.TabIndex = 3;
+            this.checkBox_FacTorCad.Text = "力矩/踏频";
+            this.checkBox_FacTorCad.UseVisualStyleBackColor = true;
+            // 
+            // checkBox_FacModeBMS
+            // 
+            this.checkBox_FacModeBMS.AutoSize = true;
+            this.checkBox_FacModeBMS.Checked = true;
+            this.checkBox_FacModeBMS.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.checkBox_FacModeBMS.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_FacModeBMS.Location = new System.Drawing.Point(6, 80);
+            this.checkBox_FacModeBMS.Name = "checkBox_FacModeBMS";
+            this.checkBox_FacModeBMS.Size = new System.Drawing.Size(87, 24);
+            this.checkBox_FacModeBMS.TabIndex = 2;
+            this.checkBox_FacModeBMS.Text = "BMS通讯";
+            this.checkBox_FacModeBMS.UseVisualStyleBackColor = true;
+            // 
+            // label116
+            // 
+            this.label116.AutoSize = true;
+            this.label116.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label116.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label116.Location = new System.Drawing.Point(6, 50);
+            this.label116.Name = "label116";
+            this.label116.Size = new System.Drawing.Size(68, 20);
+            this.label116.TabIndex = 22;
+            this.label116.Text = "BMS通讯";
+            this.label116.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label_FacModeBMS
+            // 
+            this.label_FacModeBMS.BackColor = System.Drawing.Color.Red;
+            this.label_FacModeBMS.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label_FacModeBMS.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeBMS.Location = new System.Drawing.Point(95, 54);
+            this.label_FacModeBMS.Name = "label_FacModeBMS";
+            this.label_FacModeBMS.Size = new System.Drawing.Size(12, 12);
+            this.label_FacModeBMS.TabIndex = 23;
+            this.label_FacModeBMS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label117
+            // 
+            this.label117.AutoSize = true;
+            this.label117.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label117.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label117.Location = new System.Drawing.Point(123, 50);
+            this.label117.Name = "label117";
+            this.label117.Size = new System.Drawing.Size(79, 20);
+            this.label117.TabIndex = 24;
+            this.label117.Text = "车速传感器";
+            this.label117.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label_FacModeSpeed
+            // 
+            this.label_FacModeSpeed.BackColor = System.Drawing.Color.Red;
+            this.label_FacModeSpeed.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label_FacModeSpeed.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_FacModeSpeed.Location = new System.Drawing.Point(208, 54);
+            this.label_FacModeSpeed.Name = "label_FacModeSpeed";
+            this.label_FacModeSpeed.Size = new System.Drawing.Size(12, 12);
+            this.label_FacModeSpeed.TabIndex = 25;
+            this.label_FacModeSpeed.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // mainForm
             // 
@@ -6536,9 +6643,6 @@ namespace Welling_Motor_Debug_Tool
         private Label label_FacModeCurrentTest;
         private Label label120;
         private Label label_FacModeVolTest;
-        private Label label133;
-        private Label label132;
-        private Label label_FacModeErrorCode;
         private Label label145;
         private Label label_FacModeLightB;
         private Label label143;
@@ -6573,5 +6677,15 @@ namespace Welling_Motor_Debug_Tool
         private CheckBox checkBox_FacLightTest;
         private CheckBox checkBox_FacBreakTest;
         private CheckBox checkBox_FacThrrotleTest;
+        private Label label114;
+        private Label label_FacModeCad;
+        private Label label_FacModeTq;
+        private Label label113;
+        private CheckBox checkBox_FacTorCad;
+        private CheckBox checkBox_FacModeBMS;
+        private Label label_FacModeBMS;
+        private Label label116;
+        private Label label117;
+        private Label label_FacModeSpeed;
     }
 }

+ 271 - 2
Welling_Motor_Debug_Tool/mainForm.cs

@@ -5432,7 +5432,276 @@ namespace Welling_Motor_Debug_Tool
             //更新生产配置文件目录
             GetDateList(false);
         }
-    }
+
+        /// <summary>
+        /// 量产测试开始
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void button__FacMode_Start_Click(object sender, EventArgs e)
+        {
+            TestStart();
+        }
+        /// <summary>
+        /// 测试子函数
+        /// </summary>
+        private void TestStart()
+        {
+            //初始化标签
+            FacModelLabelInit();
+            //检查打标信息格式
+            //...
+            //检查配置文件是否与打标信息一致
+            //...
+            //流水号计数
+            //...
+            //创建线程,执行测试任务
+            Thread th = new Thread(FacModeTest_Task);
+            th.Start();
+        }
+
+        /// <summary>
+        /// 执行一次测试任务
+        /// </summary>
+        private void FacModeTest_Task()
+        {
+            //开始测试
+            richTextBox_FacModeLog.AppendText("产品信息:" + textBox_FacModeScan.Text + "\r\n");
+            richTextBox_FacModeLog.AppendText("配置文件:" + comboBox_FacModeCfgFile.Text + "\r\n");
+            richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "开始测试" + "\r\n");
+
+            //变量定义
+            var Code = new byte[255];//发送的指令数据
+            ushort DataTemp;
+            short DataTemp_Int16;
+            string ResultPathName = "";
+
+            Delay_ms(500);
+            label_FacModeSatus.Text = "开始测试";
+
+            //检查是否有故障
+            if (textBox_ErrorCode.Text != string.Empty)
+            {
+                label_FacModeSatus.Text = "电机存在故障!";
+                label_FacModeResult.BackColor = Color.Red;
+                label_FacModeResult.Text = "测试异常";
+                Delay_ms(500);
+                //存储异常并上传
+                //...
+                return;
+            }
+
+            //系统清除
+            if (checkBox_FacModeSysClear.Checked)
+            {
+                //发送系统清除指令
+                //...
+                //等待系统清除完成指令
+                //...
+                //系统重新开机
+                //...
+                //等待开机,根据Boot版本信息判断
+                //...
+            }
+            else
+            {
+                label_FacModeSysClear.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过系统清除!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过系统清除" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //参数写入
+            if (checkBox_FacModeCfgWrite.Checked)
+            {
+                //写入产品型号
+                //...
+                //写入产品SN
+                //..
+                //写入配置文件
+                //...
+                //判断反馈是否完整
+                //...
+            }
+            else
+            {
+                label_FacMode_CfgWrite.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过参数写入!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过参数写入" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //BMS通讯
+            if (checkBox_FacModeBMS.Checked)
+            {
+                if (label_FacModeBMS.BackColor == Color.Red)
+                {
+                    label_FacModeSatus.Text = "BMS通讯异常!";
+                    label_FacModeResult.BackColor = Color.Red;
+                    label_FacModeResult.Text = "测试异常";
+                    Delay_ms(500);
+                    //存储异常并上传
+                    //...
+                    return;
+                }
+            }
+            else
+            {
+                label_FacModeBMS.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过BMS通讯检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过BMS通讯检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //基础功能检测
+            if (checkBox_FacBaseFucTest.Checked)
+            {
+                //发送指令进入配置模式
+                //...
+                //发送指令启动电机
+                //...
+                //判断车速
+                //...
+                //判断电压
+                //...
+                //判断电流
+                //...
+                //判断转速
+                //...
+                //判断温度
+                //...
+                //发送指令停止电机
+                //...
+            }
+            else
+            {
+                label_FacModeSpeed.BackColor = Color.Yellow;
+                label_FacModeVolTest.BackColor = Color.Yellow;
+                label_FacModeCurrentTest.BackColor = Color.Yellow;
+                label_FacModeNTC.BackColor = Color.Yellow;
+                label_FacModeMotorSpeed.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过基础功能检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过基础功能检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //力矩或踏频检测
+            if (checkBox_FacTorCad.Checked)
+            {
+                //提示输入力矩信号
+                //...
+                //判断力矩值变化
+                //...
+                //提示输入踏频信号
+                //...
+                //判断踏频值变化
+                //...
+            }
+            else
+            {
+                label_FacModeTq.BackColor = Color.Yellow;
+                label_FacModeCad.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过力矩踏频检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过力矩踏频检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //转把检测
+            if (checkBox_FacThrrotleTest.Checked)
+            {
+                //发送指令进入TURBO
+                //...
+                //提示输入转把信号
+                //...
+                //判断电机是否启动
+                //...
+            }
+            else
+            {
+                label_FacModeGas.BackColor = Color.Yellow;                
+                label_FacModeSatus.Text = "跳过转把检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过转把检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //刹车检测
+            if (checkBox_FacBreakTest.Checked)
+            {
+                //提示输入刹车信号
+                //...
+                //判断电机是否停止
+                //...
+                //提示松开刹车信号
+                //...
+                //判断电机是否重新启动
+                //...
+                //提示断开刹车信号
+                //...
+            }
+            else
+            {
+                label_FacModeBreak.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过刹车检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过刹车检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //前后灯检测
+            if (checkBox_FacLightTest.Checked)
+            {
+                //发送指令打开车灯
+                //...
+                //提示检查灯压是否正确
+                //...
+                //发送指令关闭车灯
+                //...
+            }
+            else
+            {
+                label_FacModeLightF.BackColor = Color.Yellow;
+                label_FacModeLightB.BackColor = Color.Yellow;
+                label_FacModeSatus.Text = "跳过前后灯检测!";
+                richTextBox_FacModeLog.AppendText(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "->" + "跳过前后灯检测" + "\r\n");
+                Delay_ms(500);
+            }
+
+            //软件版本检测
+            do
+            {
+                //发送指令读取版本
+                //...
+                //判断版本是否正确
+                //...
+            } while (false);
+
+            //测试合格
+            label_FacModeSatus.Text = "测试结束!";
+            label_FacModeResult.BackColor = Color.Green;
+            label_FacModeResult.Text = "测试合格";
+            Delay_ms(500);
+            //存储并上传
+            //...
+            return;
+
+        }
+
+        private void FacModelLabelInit()
+        {
+            //测试状态标签
+            label_FacModeResult.BackColor = Color.Yellow;
+            label_FacModeResult.Text = "测试中";
+            //测试过程标签
+            label_FacModeSatus.Text = "测试就绪";
+            //测试结果标签
+            foreach (Control c in groupBox28.Controls)
+            {
+                if ((c is Label))
+                {
+                    c.BackColor = Color.Red;
+                }
+            }
+        }
+
 
 
-}
+    }