Переглянути джерело

解决修改配置模式时重复发送指令的问题。

Dail 11 місяців тому
батько
коміт
3dc5fea834

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 2 - 0
Welling_Motor_Debug_Tool/Version.cs

@@ -17,6 +17,8 @@ namespace Welling_Motor_Debug_Tool
         //修改记录
         string ChangeLog = "修改记录:\r\n" +
             "V" + mainForm.Version + "\r\n" +
+            "1,优化修改配置模式时重复发送指令的问题。\r\n\r\n" +
+            "V2.2.0\r\n" +
             "1,优化新增协议内容;\r\n" +
             "2,增加协议类型选择,支持CAN和UART;\r\n" +
             "3,针对UART控制器在量产测试过程中增加5S协议设定和联动装置盒波特率设定,以正确接收UART控制器数据和Boot版本信息;\r\n" +

BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.2.0-1.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.2.0-2.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.2.1.exe


+ 43 - 44
Welling_Motor_Debug_Tool/mainForm.Designer.cs

@@ -497,6 +497,8 @@ namespace Welling_Motor_Debug_Tool
             this.checkBox_OffLineCheckMode = new System.Windows.Forms.CheckBox();
             this.comboBox_CheckModeCfgFile = new System.Windows.Forms.ComboBox();
             this.groupBox31 = new System.Windows.Forms.GroupBox();
+            this.label132 = new System.Windows.Forms.Label();
+            this.label_CheckModeMos = new System.Windows.Forms.Label();
             this.label148 = new System.Windows.Forms.Label();
             this.label_CheckModeSN = new System.Windows.Forms.Label();
             this.label154 = new System.Windows.Forms.Label();
@@ -511,6 +513,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox30 = new System.Windows.Forms.GroupBox();
             this.richTextBox_CheckModeLog = new System.Windows.Forms.RichTextBox();
             this.groupBox29 = new System.Windows.Forms.GroupBox();
+            this.checkBox_CheckModeMos = new System.Windows.Forms.CheckBox();
             this.pictureBox_ReadLock = new System.Windows.Forms.PictureBox();
             this.checkBox_CheckModeSN = new System.Windows.Forms.CheckBox();
             this.checkBox_CheckModeTorque = new System.Windows.Forms.CheckBox();
@@ -612,9 +615,6 @@ namespace Welling_Motor_Debug_Tool
             this.label_UserName = new System.Windows.Forms.Label();
             this.label124 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
-            this.checkBox_CheckModeMos = new System.Windows.Forms.CheckBox();
-            this.label132 = new System.Windows.Forms.Label();
-            this.label_CheckModeMos = new System.Windows.Forms.Label();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -1290,7 +1290,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS1ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS1});
             this.mOS1ToolStripMenuItem.Name = "mOS1ToolStripMenuItem";
-            this.mOS1ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.mOS1ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
             this.mOS1ToolStripMenuItem.Text = "MOS1";
             // 
             // toolStripTextBox_MOS1
@@ -1306,7 +1306,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS2ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS2});
             this.mOS2ToolStripMenuItem.Name = "mOS2ToolStripMenuItem";
-            this.mOS2ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.mOS2ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
             this.mOS2ToolStripMenuItem.Text = "MOS2";
             // 
             // toolStripTextBox_MOS2
@@ -1322,7 +1322,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS3ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS3});
             this.mOS3ToolStripMenuItem.Name = "mOS3ToolStripMenuItem";
-            this.mOS3ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.mOS3ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
             this.mOS3ToolStripMenuItem.Text = "MOS3";
             // 
             // toolStripTextBox_MOS3
@@ -1736,7 +1736,6 @@ namespace Welling_Motor_Debug_Tool
             this.comboBox_WorkMode.Name = "comboBox_WorkMode";
             this.comboBox_WorkMode.Size = new System.Drawing.Size(100, 29);
             this.comboBox_WorkMode.TabIndex = 1;
-            this.comboBox_WorkMode.SelectedIndexChanged += new System.EventHandler(this.comboBox_WorkMode_SelectedIndexChanged);
             // 
             // label2
             // 
@@ -5719,6 +5718,29 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox31.TabStop = false;
             this.groupBox31.Text = "测试状态";
             // 
+            // label132
+            // 
+            this.label132.AutoSize = true;
+            this.label132.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label132.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label132.Location = new System.Drawing.Point(6, 202);
+            this.label132.Name = "label132";
+            this.label132.Size = new System.Drawing.Size(70, 20);
+            this.label132.TabIndex = 18;
+            this.label132.Text = "MOS校准";
+            this.label132.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label_CheckModeMos
+            // 
+            this.label_CheckModeMos.BackColor = System.Drawing.Color.Red;
+            this.label_CheckModeMos.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label_CheckModeMos.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.label_CheckModeMos.Location = new System.Drawing.Point(108, 202);
+            this.label_CheckModeMos.Name = "label_CheckModeMos";
+            this.label_CheckModeMos.Size = new System.Drawing.Size(35, 20);
+            this.label_CheckModeMos.TabIndex = 19;
+            this.label_CheckModeMos.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // label148
             // 
             this.label148.AutoSize = true;
@@ -5883,6 +5905,20 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox29.TabStop = false;
             this.groupBox29.Text = "测试项目";
             // 
+            // checkBox_CheckModeMos
+            // 
+            this.checkBox_CheckModeMos.AutoSize = true;
+            this.checkBox_CheckModeMos.Checked = true;
+            this.checkBox_CheckModeMos.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.checkBox_CheckModeMos.Enabled = false;
+            this.checkBox_CheckModeMos.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.checkBox_CheckModeMos.Location = new System.Drawing.Point(7, 148);
+            this.checkBox_CheckModeMos.Name = "checkBox_CheckModeMos";
+            this.checkBox_CheckModeMos.Size = new System.Drawing.Size(145, 24);
+            this.checkBox_CheckModeMos.TabIndex = 9;
+            this.checkBox_CheckModeMos.Text = "MOS内阻校准确认";
+            this.checkBox_CheckModeMos.UseVisualStyleBackColor = true;
+            // 
             // pictureBox_ReadLock
             // 
             this.pictureBox_ReadLock.Image = global::Welling_Motor_Debug_Tool.Properties.Resources.Lock;
@@ -6931,43 +6967,6 @@ namespace Welling_Motor_Debug_Tool
             this.label46.TabIndex = 21;
             this.label46.Text = "/";
             // 
-            // checkBox_CheckModeMos
-            // 
-            this.checkBox_CheckModeMos.AutoSize = true;
-            this.checkBox_CheckModeMos.Checked = true;
-            this.checkBox_CheckModeMos.CheckState = System.Windows.Forms.CheckState.Checked;
-            this.checkBox_CheckModeMos.Enabled = false;
-            this.checkBox_CheckModeMos.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.checkBox_CheckModeMos.Location = new System.Drawing.Point(7, 148);
-            this.checkBox_CheckModeMos.Name = "checkBox_CheckModeMos";
-            this.checkBox_CheckModeMos.Size = new System.Drawing.Size(145, 24);
-            this.checkBox_CheckModeMos.TabIndex = 9;
-            this.checkBox_CheckModeMos.Text = "MOS内阻校准确认";
-            this.checkBox_CheckModeMos.UseVisualStyleBackColor = true;
-            // 
-            // label132
-            // 
-            this.label132.AutoSize = true;
-            this.label132.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label132.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label132.Location = new System.Drawing.Point(6, 202);
-            this.label132.Name = "label132";
-            this.label132.Size = new System.Drawing.Size(70, 20);
-            this.label132.TabIndex = 18;
-            this.label132.Text = "MOS校准";
-            this.label132.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label_CheckModeMos
-            // 
-            this.label_CheckModeMos.BackColor = System.Drawing.Color.Red;
-            this.label_CheckModeMos.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label_CheckModeMos.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.label_CheckModeMos.Location = new System.Drawing.Point(108, 202);
-            this.label_CheckModeMos.Name = "label_CheckModeMos";
-            this.label_CheckModeMos.Size = new System.Drawing.Size(35, 20);
-            this.label_CheckModeMos.TabIndex = 19;
-            this.label_CheckModeMos.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // mainForm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);

+ 1 - 1
Welling_Motor_Debug_Tool/mainForm.cs

@@ -23,7 +23,7 @@ namespace Welling_Motor_Debug_Tool
     {
         #region 变量定义
         //版本号
-        public static string Version = "2.2.0";
+        public static string Version = "2.2.1";
         //串口实例
         Serial_Process mySerialProcess = new Serial_Process();
         string PortNumSave = "";

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