浏览代码

ATTEN 3.5G 이름변경 및 추가 / 프로토콜 변경

YJ 5 年之前
父节点
当前提交
09943e0d7b
共有 3 个文件被更改,包括 188 次插入127 次删除
  1. 43 16
      Basic_Terminal/Func/Bluecell_BootProtocol.cs
  2. 117 79
      Basic_Terminal/Wnd/Main_Form.Designer.cs
  3. 28 32
      Basic_Terminal/Wnd/Main_Form.cs

+ 43 - 16
Basic_Terminal/Func/Bluecell_BootProtocol.cs

@@ -65,11 +65,12 @@ namespace RF_TRIO_PLL_ZIG
65 65
         ATT_2_1G_UL3,
66 66
         ATT_2_1G_UL4,
67 67
 
68
-        ATT_3_5G_DL,
69
-        ATT_3_5G_UL,
68
+        ATT_3_5G_LOW1,
69
+        ATT_3_5G_HIGH1,
70 70
         ATT_3_5G_COM1,
71
+        ATT_3_5G_LOW2,
72
+        ATT_3_5G_HIGH2,
71 73
         ATT_3_5G_COM2,
72
-        ATT_3_5G_COM3,
73 74
 
74 75
         PLL_1_8G_DL_H,
75 76
         PLL_1_8G_DL_L,
@@ -373,28 +374,54 @@ namespace RF_TRIO_PLL_ZIG
373 374
             temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL3] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL3.Text));
374 375
             temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL4] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL4.Text));
375 376
 
376
-            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_DL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_DL.Text));
377
-            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_UL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_UL.Text));
377
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_LOW1] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_LOW1.Text));
378
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_HIGH1] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_HIGH1.Text));
378 379
             temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM1] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM1.Text));
380
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_LOW2] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_LOW2.Text));
381
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_HIGH2] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_HIGH2.Text));
379 382
             temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM2] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM2.Text));
380
-            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM3] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM3.Text));
381
-
382
-            temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_DL.Text) - 220) * 10);
383
-            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
384
-            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
385
-
386
-            temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_UL.Text) - 270) * 10);
383
+            if (Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_DL.Text) > 0)
384
+            {
385
+                temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_DL.Text) - 220) * 10);
386
+            }
387
+            else
388
+            {
389
+                temp_val = 0;
390
+            }
391
+                temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
392
+                temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
393
+            if (Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_UL.Text) > 0)
394
+            {
395
+                temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_UL.Text) - 270) * 10);
396
+            }
397
+            else
398
+            {
399
+                temp_val = 0;
400
+            }
387 401
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
388 402
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
389
-
390
-            temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_DL.Text) - 145) * 10);
403
+            if (Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_DL.Text) > 0)
404
+            {
405
+                temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_DL.Text) - 145) * 10);
406
+            }
407
+            else
408
+            {
409
+                temp_val = 0;
410
+            }
391 411
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
392 412
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
393
-
394
-            temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_UL.Text) + 345) * 10);
413
+            if(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_UL.Text) > 0)
414
+            {
415
+                temp_val = (Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_UL.Text) + 345) * 10);
416
+            }
417
+            else
418
+            {
419
+                temp_val = 0;
420
+            }
395 421
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
396 422
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
397 423
 
424
+
398 425
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_3_5G_DL.Text) * 10);
399 426
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
400 427
             temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L] = Convert.ToByte((temp_val & 0x00FF));

+ 117 - 79
Basic_Terminal/Wnd/Main_Form.Designer.cs

@@ -41,14 +41,12 @@
41 41
             this.comboBox_baudrate = new System.Windows.Forms.ComboBox();
42 42
             this.groupBox8 = new System.Windows.Forms.GroupBox();
43 43
             this.groupBox7 = new System.Windows.Forms.GroupBox();
44
-            this.numericUpDown_ATT_3_5G_COM3 = new System.Windows.Forms.NumericUpDown();
45 44
             this.numericUpDown_ATT_3_5G_COM2 = new System.Windows.Forms.NumericUpDown();
46 45
             this.numericUpDown_ATT_3_5G_COM1 = new System.Windows.Forms.NumericUpDown();
47 46
             this.label19 = new System.Windows.Forms.Label();
48
-            this.label20 = new System.Windows.Forms.Label();
49 47
             this.label21 = new System.Windows.Forms.Label();
50
-            this.numericUpDown_ATT_3_5G_UL = new System.Windows.Forms.NumericUpDown();
51
-            this.numericUpDown_ATT_3_5G_DL = new System.Windows.Forms.NumericUpDown();
48
+            this.numericUpDown_ATT_3_5G_HIGH1 = new System.Windows.Forms.NumericUpDown();
49
+            this.numericUpDown_ATT_3_5G_LOW1 = new System.Windows.Forms.NumericUpDown();
52 50
             this.label26 = new System.Windows.Forms.Label();
53 51
             this.label28 = new System.Windows.Forms.Label();
54 52
             this.groupBox5 = new System.Windows.Forms.GroupBox();
@@ -195,14 +193,17 @@
195 193
             this.label38 = new System.Windows.Forms.Label();
196 194
             this.label23 = new System.Windows.Forms.Label();
197 195
             this.button_Save = new System.Windows.Forms.Button();
196
+            this.numericUpDown_ATT_3_5G_HIGH2 = new System.Windows.Forms.NumericUpDown();
197
+            this.numericUpDown_ATT_3_5G_LOW2 = new System.Windows.Forms.NumericUpDown();
198
+            this.label20 = new System.Windows.Forms.Label();
199
+            this.label41 = new System.Windows.Forms.Label();
198 200
             this.groupBox9.SuspendLayout();
199 201
             this.groupBox8.SuspendLayout();
200 202
             this.groupBox7.SuspendLayout();
201
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM3)).BeginInit();
202 203
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM2)).BeginInit();
203 204
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM1)).BeginInit();
204
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_UL)).BeginInit();
205
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_DL)).BeginInit();
205
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_HIGH1)).BeginInit();
206
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_LOW1)).BeginInit();
206 207
             this.groupBox5.SuspendLayout();
207 208
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_2_1G_UL4)).BeginInit();
208 209
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_2_1G_UL2)).BeginInit();
@@ -274,6 +275,8 @@
274 275
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).BeginInit();
275 276
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).BeginInit();
276 277
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).BeginInit();
278
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_HIGH2)).BeginInit();
279
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_LOW2)).BeginInit();
277 280
             this.SuspendLayout();
278 281
             // 
279 282
             // groupBox9
@@ -414,14 +417,16 @@
414 417
             // 
415 418
             // groupBox7
416 419
             // 
417
-            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_COM3);
420
+            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_HIGH2);
421
+            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_LOW2);
422
+            this.groupBox7.Controls.Add(this.label20);
423
+            this.groupBox7.Controls.Add(this.label41);
418 424
             this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_COM2);
419 425
             this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_COM1);
420 426
             this.groupBox7.Controls.Add(this.label19);
421
-            this.groupBox7.Controls.Add(this.label20);
422 427
             this.groupBox7.Controls.Add(this.label21);
423
-            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_UL);
424
-            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_DL);
428
+            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_HIGH1);
429
+            this.groupBox7.Controls.Add(this.numericUpDown_ATT_3_5G_LOW1);
425 430
             this.groupBox7.Controls.Add(this.label26);
426 431
             this.groupBox7.Controls.Add(this.label28);
427 432
             this.groupBox7.Location = new System.Drawing.Point(623, 22);
@@ -432,27 +437,6 @@
432 437
             this.groupBox7.Text = "3.5GHz";
433 438
             this.groupBox7.Click += new System.EventHandler(this.Cusor_DeFocus);
434 439
             // 
435
-            // numericUpDown_ATT_3_5G_COM3
436
-            // 
437
-            this.numericUpDown_ATT_3_5G_COM3.DecimalPlaces = 2;
438
-            this.numericUpDown_ATT_3_5G_COM3.Increment = new decimal(new int[] {
439
-            25,
440
-            0,
441
-            0,
442
-            131072});
443
-            this.numericUpDown_ATT_3_5G_COM3.Location = new System.Drawing.Point(141, 175);
444
-            this.numericUpDown_ATT_3_5G_COM3.Maximum = new decimal(new int[] {
445
-            30,
446
-            0,
447
-            0,
448
-            0});
449
-            this.numericUpDown_ATT_3_5G_COM3.Name = "numericUpDown_ATT_3_5G_COM3";
450
-            this.numericUpDown_ATT_3_5G_COM3.Size = new System.Drawing.Size(71, 21);
451
-            this.numericUpDown_ATT_3_5G_COM3.TabIndex = 11;
452
-            this.numericUpDown_ATT_3_5G_COM3.Enter += new System.EventHandler(this.Activi_Change__Setting);
453
-            this.numericUpDown_ATT_3_5G_COM3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
454
-            this.numericUpDown_ATT_3_5G_COM3.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
455
-            // 
456 440
             // numericUpDown_ATT_3_5G_COM2
457 441
             // 
458 442
             this.numericUpDown_ATT_3_5G_COM2.DecimalPlaces = 2;
@@ -461,7 +445,7 @@
461 445
             0,
462 446
             0,
463 447
             131072});
464
-            this.numericUpDown_ATT_3_5G_COM2.Location = new System.Drawing.Point(141, 136);
448
+            this.numericUpDown_ATT_3_5G_COM2.Location = new System.Drawing.Point(141, 199);
465 449
             this.numericUpDown_ATT_3_5G_COM2.Maximum = new decimal(new int[] {
466 450
             30,
467 451
             0,
@@ -482,7 +466,7 @@
482 466
             0,
483 467
             0,
484 468
             131072});
485
-            this.numericUpDown_ATT_3_5G_COM1.Location = new System.Drawing.Point(141, 97);
469
+            this.numericUpDown_ATT_3_5G_COM1.Location = new System.Drawing.Point(141, 91);
486 470
             this.numericUpDown_ATT_3_5G_COM1.Maximum = new decimal(new int[] {
487 471
             30,
488 472
             0,
@@ -498,89 +482,80 @@
498 482
             // label19
499 483
             // 
500 484
             this.label19.AutoSize = true;
501
-            this.label19.Location = new System.Drawing.Point(6, 101);
485
+            this.label19.Location = new System.Drawing.Point(6, 95);
502 486
             this.label19.Name = "label19";
503 487
             this.label19.Size = new System.Drawing.Size(101, 12);
504 488
             this.label19.TabIndex = 8;
505 489
             this.label19.Text = "ATT_3.5G_COM1";
506 490
             // 
507
-            // label20
508
-            // 
509
-            this.label20.AutoSize = true;
510
-            this.label20.Location = new System.Drawing.Point(6, 179);
511
-            this.label20.Name = "label20";
512
-            this.label20.Size = new System.Drawing.Size(101, 12);
513
-            this.label20.TabIndex = 9;
514
-            this.label20.Text = "ATT_3.5G_COM3";
515
-            // 
516 491
             // label21
517 492
             // 
518 493
             this.label21.AutoSize = true;
519
-            this.label21.Location = new System.Drawing.Point(6, 140);
494
+            this.label21.Location = new System.Drawing.Point(6, 203);
520 495
             this.label21.Name = "label21";
521 496
             this.label21.Size = new System.Drawing.Size(101, 12);
522 497
             this.label21.TabIndex = 10;
523 498
             this.label21.Text = "ATT_3.5G_COM2";
524 499
             // 
525
-            // numericUpDown_ATT_3_5G_UL
500
+            // numericUpDown_ATT_3_5G_HIGH1
526 501
             // 
527
-            this.numericUpDown_ATT_3_5G_UL.DecimalPlaces = 2;
528
-            this.numericUpDown_ATT_3_5G_UL.Increment = new decimal(new int[] {
502
+            this.numericUpDown_ATT_3_5G_HIGH1.DecimalPlaces = 2;
503
+            this.numericUpDown_ATT_3_5G_HIGH1.Increment = new decimal(new int[] {
529 504
             25,
530 505
             0,
531 506
             0,
532 507
             131072});
533
-            this.numericUpDown_ATT_3_5G_UL.Location = new System.Drawing.Point(141, 58);
534
-            this.numericUpDown_ATT_3_5G_UL.Maximum = new decimal(new int[] {
508
+            this.numericUpDown_ATT_3_5G_HIGH1.Location = new System.Drawing.Point(141, 55);
509
+            this.numericUpDown_ATT_3_5G_HIGH1.Maximum = new decimal(new int[] {
535 510
             30,
536 511
             0,
537 512
             0,
538 513
             0});
539
-            this.numericUpDown_ATT_3_5G_UL.Name = "numericUpDown_ATT_3_5G_UL";
540
-            this.numericUpDown_ATT_3_5G_UL.Size = new System.Drawing.Size(71, 21);
541
-            this.numericUpDown_ATT_3_5G_UL.TabIndex = 1;
542
-            this.numericUpDown_ATT_3_5G_UL.Enter += new System.EventHandler(this.Activi_Change__Setting);
543
-            this.numericUpDown_ATT_3_5G_UL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
544
-            this.numericUpDown_ATT_3_5G_UL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
514
+            this.numericUpDown_ATT_3_5G_HIGH1.Name = "numericUpDown_ATT_3_5G_HIGH1";
515
+            this.numericUpDown_ATT_3_5G_HIGH1.Size = new System.Drawing.Size(71, 21);
516
+            this.numericUpDown_ATT_3_5G_HIGH1.TabIndex = 1;
517
+            this.numericUpDown_ATT_3_5G_HIGH1.Enter += new System.EventHandler(this.Activi_Change__Setting);
518
+            this.numericUpDown_ATT_3_5G_HIGH1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
519
+            this.numericUpDown_ATT_3_5G_HIGH1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
545 520
             // 
546
-            // numericUpDown_ATT_3_5G_DL
521
+            // numericUpDown_ATT_3_5G_LOW1
547 522
             // 
548
-            this.numericUpDown_ATT_3_5G_DL.DecimalPlaces = 2;
549
-            this.numericUpDown_ATT_3_5G_DL.Increment = new decimal(new int[] {
523
+            this.numericUpDown_ATT_3_5G_LOW1.DecimalPlaces = 2;
524
+            this.numericUpDown_ATT_3_5G_LOW1.Increment = new decimal(new int[] {
550 525
             25,
551 526
             0,
552 527
             0,
553 528
             131072});
554
-            this.numericUpDown_ATT_3_5G_DL.Location = new System.Drawing.Point(141, 19);
555
-            this.numericUpDown_ATT_3_5G_DL.Maximum = new decimal(new int[] {
529
+            this.numericUpDown_ATT_3_5G_LOW1.Location = new System.Drawing.Point(141, 19);
530
+            this.numericUpDown_ATT_3_5G_LOW1.Maximum = new decimal(new int[] {
556 531
             30,
557 532
             0,
558 533
             0,
559 534
             0});
560
-            this.numericUpDown_ATT_3_5G_DL.Name = "numericUpDown_ATT_3_5G_DL";
561
-            this.numericUpDown_ATT_3_5G_DL.Size = new System.Drawing.Size(71, 21);
562
-            this.numericUpDown_ATT_3_5G_DL.TabIndex = 1;
563
-            this.numericUpDown_ATT_3_5G_DL.Enter += new System.EventHandler(this.Activi_Change__Setting);
564
-            this.numericUpDown_ATT_3_5G_DL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
565
-            this.numericUpDown_ATT_3_5G_DL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
535
+            this.numericUpDown_ATT_3_5G_LOW1.Name = "numericUpDown_ATT_3_5G_LOW1";
536
+            this.numericUpDown_ATT_3_5G_LOW1.Size = new System.Drawing.Size(71, 21);
537
+            this.numericUpDown_ATT_3_5G_LOW1.TabIndex = 1;
538
+            this.numericUpDown_ATT_3_5G_LOW1.Enter += new System.EventHandler(this.Activi_Change__Setting);
539
+            this.numericUpDown_ATT_3_5G_LOW1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
540
+            this.numericUpDown_ATT_3_5G_LOW1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
566 541
             // 
567 542
             // label26
568 543
             // 
569 544
             this.label26.AutoSize = true;
570 545
             this.label26.Location = new System.Drawing.Point(6, 23);
571 546
             this.label26.Name = "label26";
572
-            this.label26.Size = new System.Drawing.Size(81, 12);
547
+            this.label26.Size = new System.Drawing.Size(98, 12);
573 548
             this.label26.TabIndex = 0;
574
-            this.label26.Text = "ATT_3.5G_DL";
549
+            this.label26.Text = "ATT_3.5G_LOW1";
575 550
             // 
576 551
             // label28
577 552
             // 
578 553
             this.label28.AutoSize = true;
579
-            this.label28.Location = new System.Drawing.Point(6, 62);
554
+            this.label28.Location = new System.Drawing.Point(6, 59);
580 555
             this.label28.Name = "label28";
581
-            this.label28.Size = new System.Drawing.Size(81, 12);
556
+            this.label28.Size = new System.Drawing.Size(100, 12);
582 557
             this.label28.TabIndex = 0;
583
-            this.label28.Text = "ATT_3.5G_UL";
558
+            this.label28.Text = "ATT_3.5G_HIGH1";
584 559
             // 
585 560
             // groupBox5
586 561
             // 
@@ -2415,6 +2390,66 @@
2415 2390
             this.button_Save.UseVisualStyleBackColor = true;
2416 2391
             this.button_Save.Click += new System.EventHandler(this.button_Save_Click);
2417 2392
             // 
2393
+            // numericUpDown_ATT_3_5G_HIGH2
2394
+            // 
2395
+            this.numericUpDown_ATT_3_5G_HIGH2.DecimalPlaces = 2;
2396
+            this.numericUpDown_ATT_3_5G_HIGH2.Increment = new decimal(new int[] {
2397
+            25,
2398
+            0,
2399
+            0,
2400
+            131072});
2401
+            this.numericUpDown_ATT_3_5G_HIGH2.Location = new System.Drawing.Point(141, 163);
2402
+            this.numericUpDown_ATT_3_5G_HIGH2.Maximum = new decimal(new int[] {
2403
+            30,
2404
+            0,
2405
+            0,
2406
+            0});
2407
+            this.numericUpDown_ATT_3_5G_HIGH2.Name = "numericUpDown_ATT_3_5G_HIGH2";
2408
+            this.numericUpDown_ATT_3_5G_HIGH2.Size = new System.Drawing.Size(71, 21);
2409
+            this.numericUpDown_ATT_3_5G_HIGH2.TabIndex = 16;
2410
+            this.numericUpDown_ATT_3_5G_HIGH2.Enter += new System.EventHandler(this.Activi_Change__Setting);
2411
+            this.numericUpDown_ATT_3_5G_HIGH2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2412
+            this.numericUpDown_ATT_3_5G_HIGH2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2413
+            // 
2414
+            // numericUpDown_ATT_3_5G_LOW2
2415
+            // 
2416
+            this.numericUpDown_ATT_3_5G_LOW2.DecimalPlaces = 2;
2417
+            this.numericUpDown_ATT_3_5G_LOW2.Increment = new decimal(new int[] {
2418
+            25,
2419
+            0,
2420
+            0,
2421
+            131072});
2422
+            this.numericUpDown_ATT_3_5G_LOW2.Location = new System.Drawing.Point(141, 127);
2423
+            this.numericUpDown_ATT_3_5G_LOW2.Maximum = new decimal(new int[] {
2424
+            30,
2425
+            0,
2426
+            0,
2427
+            0});
2428
+            this.numericUpDown_ATT_3_5G_LOW2.Name = "numericUpDown_ATT_3_5G_LOW2";
2429
+            this.numericUpDown_ATT_3_5G_LOW2.Size = new System.Drawing.Size(71, 21);
2430
+            this.numericUpDown_ATT_3_5G_LOW2.TabIndex = 17;
2431
+            this.numericUpDown_ATT_3_5G_LOW2.Enter += new System.EventHandler(this.Activi_Change__Setting);
2432
+            this.numericUpDown_ATT_3_5G_LOW2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2433
+            this.numericUpDown_ATT_3_5G_LOW2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2434
+            // 
2435
+            // label20
2436
+            // 
2437
+            this.label20.AutoSize = true;
2438
+            this.label20.Location = new System.Drawing.Point(6, 131);
2439
+            this.label20.Name = "label20";
2440
+            this.label20.Size = new System.Drawing.Size(98, 12);
2441
+            this.label20.TabIndex = 14;
2442
+            this.label20.Text = "ATT_3.5G_LOW2";
2443
+            // 
2444
+            // label41
2445
+            // 
2446
+            this.label41.AutoSize = true;
2447
+            this.label41.Location = new System.Drawing.Point(6, 167);
2448
+            this.label41.Name = "label41";
2449
+            this.label41.Size = new System.Drawing.Size(100, 12);
2450
+            this.label41.TabIndex = 15;
2451
+            this.label41.Text = "ATT_3.5G_HIGH2";
2452
+            // 
2418 2453
             // Main_Form
2419 2454
             // 
2420 2455
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -2444,11 +2479,10 @@
2444 2479
             this.groupBox8.ResumeLayout(false);
2445 2480
             this.groupBox7.ResumeLayout(false);
2446 2481
             this.groupBox7.PerformLayout();
2447
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM3)).EndInit();
2448 2482
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM2)).EndInit();
2449 2483
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_COM1)).EndInit();
2450
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_UL)).EndInit();
2451
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_DL)).EndInit();
2484
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_HIGH1)).EndInit();
2485
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_LOW1)).EndInit();
2452 2486
             this.groupBox5.ResumeLayout(false);
2453 2487
             this.groupBox5.PerformLayout();
2454 2488
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_2_1G_UL4)).EndInit();
@@ -2531,6 +2565,8 @@
2531 2565
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).EndInit();
2532 2566
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).EndInit();
2533 2567
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).EndInit();
2568
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_HIGH2)).EndInit();
2569
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_3_5G_LOW2)).EndInit();
2534 2570
             this.ResumeLayout(false);
2535 2571
             this.PerformLayout();
2536 2572
 
@@ -2590,8 +2626,8 @@
2590 2626
         private System.Windows.Forms.Label label49;
2591 2627
         private System.Windows.Forms.Label label50;
2592 2628
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_1_8G_DL1;
2593
-        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_UL;
2594
-        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_DL;
2629
+        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_HIGH1;
2630
+        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_LOW1;
2595 2631
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_2_1G_UL4;
2596 2632
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_2_1G_UL2;
2597 2633
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_2_1G_UL3;
@@ -2636,11 +2672,9 @@
2636 2672
         public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_H_ON;
2637 2673
         public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_H_OFF;
2638 2674
         public System.Windows.Forms.PictureBox pictureBox_PATH_1_8G_DL_ON;
2639
-        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_COM3;
2640 2675
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_COM2;
2641 2676
         public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_COM1;
2642 2677
         private System.Windows.Forms.Label label19;
2643
-        private System.Windows.Forms.Label label20;
2644 2678
         private System.Windows.Forms.Label label21;
2645 2679
         private System.Windows.Forms.GroupBox groupBox_TDD;
2646 2680
         private System.Windows.Forms.Label label24;
@@ -2703,6 +2737,10 @@
2703 2737
         private System.Windows.Forms.Label label23;
2704 2738
         private System.Windows.Forms.Button button_Save;
2705 2739
         public System.Windows.Forms.Timer timer;
2740
+        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_HIGH2;
2741
+        public System.Windows.Forms.NumericUpDown numericUpDown_ATT_3_5G_LOW2;
2742
+        private System.Windows.Forms.Label label20;
2743
+        private System.Windows.Forms.Label label41;
2706 2744
     }
2707 2745
 }
2708 2746
 

+ 28 - 32
Basic_Terminal/Wnd/Main_Form.cs

@@ -293,40 +293,52 @@ namespace RF_TRIO_PLL_ZIG
293 293
                     ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
294 294
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL4, ret.ToString());
295 295
 
296
-                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_DL];
296
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_LOW1];
297 297
                     ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
298
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_DL, ret.ToString());
298
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_LOW1, ret.ToString());
299 299
 
300
-                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_UL];
300
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_HIGH1];
301 301
                     ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
302
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_UL, ret.ToString());
302
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_HIGH1, ret.ToString());
303 303
 
304 304
                     temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM1];
305 305
                     ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
306 306
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM1, ret.ToString());
307 307
 
308
-                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM2];
308
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_LOW2];
309 309
                     ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
310
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM2, ret.ToString());
310
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_LOW2, ret.ToString());
311 311
 
312
-                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM3];
312
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_HIGH2];
313 313
                     ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
314
-                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM3, ret.ToString());
314
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_HIGH2, ret.ToString());
315
+
316
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM2];
317
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
318
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM2, ret.ToString());
315 319
 
316 320
                     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) + 220;
321
+                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L]) / 10);
322
+                    if(ret != 0)
323
+                        ret = ret + 220;
318 324
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, ret.ToString());
319 325
 
320 326
                     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) + 270;
327
+                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L]) / 10);
328
+                    if (ret != 0)
329
+                        ret = ret + 270;
322 330
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, ret.ToString());
323 331
 
324 332
                     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) + 145;
333
+                    ret = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L]) / 10);
334
+                    if (ret != 0)
335
+                        ret = ret + 145;
326 336
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, ret.ToString());
327 337
 
328 338
                     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) - 345;
339
+                    ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L]) / 10);
340
+                    if (ret != 0)
341
+                        ret = ret - 345;
330 342
                     this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, ret.ToString());
331 343
 
332 344
                     temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] << 8;
@@ -538,23 +550,6 @@ namespace RF_TRIO_PLL_ZIG
538 550
         public void ReSetting_Values(byte[] temp_buf)
539 551
         {
540 552
             this.numericUpDown_ATT_1_8G_DL1.Text = temp_buf[(byte)Bluecell_TypeIndex_t.ATT_1_8G_DL1].ToString();
541
-            /*this.numericUpDown_ATT_1_8G_DL2.Text;
542
-            this.numericUpDown_ATT_1_8G_UL1.Text;
543
-            this.numericUpDown_ATT_1_8G_UL2.Text;
544
-            this.numericUpDown_ATT_1_8G_UL3.Text;
545
-            this.numericUpDown_ATT_1_8G_UL4.Text;
546
-            this.numericUpDown_ATT_2_1G_DL1.Text;
547
-            this.numericUpDown_ATT_2_1G_DL2.Text;
548
-            this.numericUpDown_ATT_2_1G_UL1.Text;
549
-            this.numericUpDown_ATT_2_1G_UL2.Text;
550
-            this.numericUpDown_ATT_2_1G_UL3.Text;
551
-            this.numericUpDown_ATT_2_1G_UL4.Text;
552
-            this.numericUpDown_ATT_3_5G_DL.Text;
553
-            this.numericUpDown_ATT_3_5G_UL.Text;
554
-            this.numericUpDown_ATT_3_5G_COM1.Text;
555
-            this.numericUpDown_ATT_3_5G_COM2.Text;
556
-            this.numericUpDown_ATT_3_5G_COM3.Text;*/
557
-
558 553
         }
559 554
         private void Label_Text_Set(object label, String str)
560 555
         {
@@ -703,11 +698,12 @@ namespace RF_TRIO_PLL_ZIG
703 698
             this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL2, "0.0");
704 699
             this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL3, "0.0");
705 700
             this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL4, "0.0");
706
-            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_DL, "0.0");
707
-            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_UL, "0.0");
701
+            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_LOW1, "0.0");
702
+            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_HIGH1, "0.0");
708 703
             this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM1, "0.0");
704
+            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_LOW2, "0.0");
705
+            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_HIGH2, "0.0");
709 706
             this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM2, "0.0");
710
-            this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM3, "0.0");
711 707
             Button_Set_Click(sender, e);
712 708
             /*Crc16 crc16 = new Crc16();
713 709
             byte[] temp_buf = new byte[6];