增加连接时读取版本号功能,修改上位机搜索逻辑由固定192.68.1频段广播变为根据本地IP频段进行广播

This commit is contained in:
zhouyunhao
2024-08-16 17:06:38 +08:00
parent 535d80ffc1
commit 901d626629
6 changed files with 135 additions and 64 deletions

View File

@@ -182,12 +182,16 @@
this.BtnCon1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.labelyinjian = new System.Windows.Forms.Label();
this.labelruanjian = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).BeginInit();
this.menuStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.myGroupBox4.SuspendLayout();
this.myGroupBox3.SuspendLayout();
this.myGroupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// SerialPort1
@@ -566,7 +570,7 @@
this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1034, 25);
this.menuStrip1.Size = new System.Drawing.Size(1045, 25);
this.menuStrip1.TabIndex = 126;
this.menuStrip1.Text = "menuStrip1";
//
@@ -753,7 +757,7 @@
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(889, 83);
this.checkBox1.Location = new System.Drawing.Point(900, 83);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(96, 16);
this.checkBox1.TabIndex = 141;
@@ -764,7 +768,7 @@
// codecheck
//
this.codecheck.Enabled = false;
this.codecheck.Location = new System.Drawing.Point(885, 56);
this.codecheck.Location = new System.Drawing.Point(896, 56);
this.codecheck.Name = "codecheck";
this.codecheck.ReadOnly = true;
this.codecheck.Size = new System.Drawing.Size(100, 21);
@@ -775,7 +779,7 @@
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(892, 29);
this.label9.Location = new System.Drawing.Point(903, 29);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(87, 16);
this.label9.TabIndex = 143;
@@ -801,12 +805,13 @@
this.groupBox1.Controls.Add(this.label34);
this.groupBox1.Controls.Add(this.Sunzong);
this.groupBox1.Controls.Add(this.label28);
this.groupBox1.Location = new System.Drawing.Point(822, 127);
this.groupBox1.Location = new System.Drawing.Point(1140, 127);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(200, 161);
this.groupBox1.TabIndex = 145;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "产测计数";
this.groupBox1.Visible = false;
//
// button1
//
@@ -1547,11 +1552,43 @@
this.label6.TabIndex = 15;
this.label6.Text = "9999";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.labelyinjian);
this.groupBox2.Controls.Add(this.labelruanjian);
this.groupBox2.Location = new System.Drawing.Point(816, 108);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(174, 184);
this.groupBox2.TabIndex = 149;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "设备信息";
//
// labelyinjian
//
this.labelyinjian.AutoSize = true;
this.labelyinjian.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelyinjian.Location = new System.Drawing.Point(6, 140);
this.labelyinjian.Name = "labelyinjian";
this.labelyinjian.Size = new System.Drawing.Size(95, 16);
this.labelyinjian.TabIndex = 24;
this.labelyinjian.Text = "硬件版本号:";
//
// labelruanjian
//
this.labelruanjian.AutoSize = true;
this.labelruanjian.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelruanjian.Location = new System.Drawing.Point(6, 71);
this.labelruanjian.Name = "labelruanjian";
this.labelruanjian.Size = new System.Drawing.Size(95, 16);
this.labelruanjian.TabIndex = 23;
this.labelruanjian.Text = "软件版本号:";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1034, 617);
this.ClientSize = new System.Drawing.Size(1045, 617);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.zhanhao);
this.Controls.Add(this.button2);
this.Controls.Add(this.progressBar1);
@@ -1614,6 +1651,8 @@
this.myGroupBox3.PerformLayout();
this.myGroupBox1.ResumeLayout(false);
this.myGroupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -1772,5 +1811,8 @@
public System.Windows.Forms.Button BtnBreak;
public System.Windows.Forms.ComboBox UDPResults;
public System.Windows.Forms.Button TCPconnect;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label labelyinjian;
private System.Windows.Forms.Label labelruanjian;
}
}