Explorar o código

Revert "Error 창 Open 추가 / PLL String 값 소수점 표시하도록 수정 /Port 실시간으로 변경 할 수 있도록 수정 / 5G 표시 numeric 수정불가항목으로 변경"

This reverts commit e6310ea902a2501c73fb43c1e06b5ac2862af9f5.
YJ %!s(int64=5) %!d(string=hai) anos
pai
achega
219a0926a1

+ 1 - 4
Basic_Terminal/Func/Bluecell_BootProtocol.cs

@@ -41,7 +41,6 @@ namespace RF_TRIO_PLL_ZIG
41 41
         TYPE_BLUECELL_GET   = 2,
42 42
         TYPE_BLUECELL_SAVE  = 3,
43 43
         TYPE_BLUECELL_ACK   = 4,
44
-        TYPE_BLUECELL_ERROR = 5,
45 44
     };
46 45
     enum Bluecell_TypeIndex_t
47 46
     {
@@ -556,9 +555,7 @@ namespace RF_TRIO_PLL_ZIG
556 555
                 case (byte)Bluecell_Prot_t.TYPE_BLUECELL_ACK:
557 556
                     this.main_Form.Message_Box_Open();
558 557
                     break;
559
-                case (byte)Bluecell_Prot_t.TYPE_BLUECELL_ERROR:
560
-                    this.main_Form.Message_Box_Error_Open(temp_buf);
561
-                    break;
558
+
562 559
 
563 560
             }
564 561
             //Debug.Invoke(new StringSend(Debug.Data_Recv_Str), data);

+ 0 - 22
Basic_Terminal/Func/Serial.cs

@@ -19,28 +19,6 @@ namespace RF_TRIO_PLL_ZIG
19 19
         Data_Handler data_Handler = new Data_Handler();
20 20
         //FileDownload fileDownload;
21 21
         Update_Serial fileDownload = null;
22
-        public void SetPortNameValues(object obj)
23
-        {
24
-            string[] ports = SerialPort.GetPortNames(); // load all name of com ports to string
25
-            try
26
-            {
27
-                ((ComboBox)obj).Items.Clear(); //delete previous names in combobox items
28
-            }
29
-            catch { }
30
-            ((ComboBox)obj).DataSource = null;
31
-            foreach (string port in ports) //add this names to comboboxPort items
32
-            {
33
-                 ((ComboBox)obj).Items.Add(port); //if there are some com ports ,select first
34
-            }
35
-            if (((ComboBox)obj).Items.Count > 0)
36
-            {
37
-                ((ComboBox)obj).SelectedIndex = 0;
38
-            }
39
-            else
40
-            {
41
-                ((ComboBox)obj).Text = " "; //if there are no com ports ,write Empty
42
-            }
43
-        }
44 22
         public void Serial_Initialize(ref ComboBox cb_port)
45 23
         {
46 24
             

+ 2 - 4
Basic_Terminal/Wnd/Main_Form.Designer.cs

@@ -1407,7 +1407,6 @@
1407 1407
             // numericUpDown_PLL_3_5G_UL
1408 1408
             // 
1409 1409
             this.numericUpDown_PLL_3_5G_UL.DecimalPlaces = 1;
1410
-            this.numericUpDown_PLL_3_5G_UL.Enabled = false;
1411 1410
             this.numericUpDown_PLL_3_5G_UL.Increment = new decimal(new int[] {
1412 1411
             1,
1413 1412
             0,
@@ -1415,7 +1414,7 @@
1415 1414
             65536});
1416 1415
             this.numericUpDown_PLL_3_5G_UL.Location = new System.Drawing.Point(132, 47);
1417 1416
             this.numericUpDown_PLL_3_5G_UL.Maximum = new decimal(new int[] {
1418
-            4000,
1417
+            3000,
1419 1418
             0,
1420 1419
             0,
1421 1420
             0});
@@ -1429,7 +1428,6 @@
1429 1428
             // numericUpDown_PLL_3_5G_DL
1430 1429
             // 
1431 1430
             this.numericUpDown_PLL_3_5G_DL.DecimalPlaces = 1;
1432
-            this.numericUpDown_PLL_3_5G_DL.Enabled = false;
1433 1431
             this.numericUpDown_PLL_3_5G_DL.Increment = new decimal(new int[] {
1434 1432
             1,
1435 1433
             0,
@@ -1437,7 +1435,7 @@
1437 1435
             65536});
1438 1436
             this.numericUpDown_PLL_3_5G_DL.Location = new System.Drawing.Point(132, 19);
1439 1437
             this.numericUpDown_PLL_3_5G_DL.Maximum = new decimal(new int[] {
1440
-            4000,
1438
+            3000,
1441 1439
             0,
1442 1440
             0,
1443 1441
             0});

+ 12 - 36
Basic_Terminal/Wnd/Main_Form.cs

@@ -314,28 +314,28 @@ namespace RF_TRIO_PLL_ZIG
314 314
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM3, ret.ToString());
315 315
 
316 316
                     temp_val  =  data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] << 8;
317
-                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L]) / 10);
318
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, ret.ToString());
317
+                    temp_val  = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L]) / 10);
318
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, temp_val.ToString());
319 319
 
320 320
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] << 8;
321
-                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L]) / 10);
322
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, ret.ToString());
321
+                    temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L]) / 10);
322
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, temp_val.ToString());
323 323
 
324 324
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] << 8;
325
-                    ret = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L]) / 10);
326
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, ret.ToString());
325
+                    temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L]) / 10);
326
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, temp_val.ToString());
327 327
 
328 328
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] << 8;
329
-                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L]) / 10);
330
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, ret.ToString());
329
+                    temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L]) / 10);
330
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, temp_val.ToString());
331 331
 
332 332
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] << 8;
333
-                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L]) / 10);
334
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_DL, ret.ToString());
333
+                    temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L]) / 10);
334
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_DL, temp_val.ToString());
335 335
 
336 336
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] << 8;
337
-                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L]) / 10);
338
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, ret.ToString());
337
+                    temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L]) / 10);
338
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, temp_val.ToString());
339 339
                     /***********************DAC A Sector**********************************/
340 340
                     temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_H] << 8;
341 341
                     temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_L]) );
@@ -774,29 +774,5 @@ namespace RF_TRIO_PLL_ZIG
774 774
                     MessageBoxDefaultButton.Button1,
775 775
                     MessageBoxOptions.DefaultDesktopOnly);
776 776
         }
777
-        public void Message_Box_Error_Open(byte[] data)
778
-        {
779
-            byte type = data[(byte)Bluecell_TypeIndex_t.BLUE_CRCINDEX + 1];
780
-            string str = "";
781
-            if (type == 0)
782
-                str = "PLL 1.8 DL Error";
783
-            else if (type == 1)
784
-                str = "PLL 1.8 UL Error";
785
-            else if (type == 2)
786
-                str = "PLL 2.1 DL Error";
787
-            else if (type == 3)
788
-                str = "PLL 2.1 UL Error";
789
-            else
790
-                str = "Error!!!";
791
-            //blue_MessageBox blue_MessageBox = new Blue_MessageBox();
792
-            //MessageBox.Show("Setting OK");
793
-            if (setcheck_checkBox.Checked == true)
794
-                MessageBox.Show(str,
795
-                    "Setting",
796
-                    MessageBoxButtons.OK,
797
-                    MessageBoxIcon.Error,
798
-                    MessageBoxDefaultButton.Button1,
799
-                    MessageBoxOptions.DefaultDesktopOnly);
800
-        }
801 777
     }
802 778
 }