Browse Source

PE4371 vda4601 rever calc 추가 /

YJ 6 years ago
parent
commit
4d22a8932b

+ 190 - 100
Basic_Terminal/Func/Bluecell_BootProtocol.cs

@@ -42,7 +42,11 @@ namespace RF_TRIO_PLL_ZIG
42 42
     };
43 43
     enum Bluecell_TypeIndex_t
44 44
     {
45
-        ATT_1_8G_DL1 = 0,
45
+        BLUE_HEADER = 0,
46
+        BLUE_TYPE,
47
+        BLUE_LENGTH,
48
+        BLUE_CRCINDEX,
49
+        ATT_1_8G_DL1,
46 50
         ATT_1_8G_DL2,
47 51
 
48 52
         ATT_1_8G_UL1,
@@ -173,7 +177,7 @@ namespace RF_TRIO_PLL_ZIG
173 177
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length]       = BLUECELL_RESET_LENGTH - BLUECELL_FIX_DATA_LENGTH;
174 178
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex]     = (byte)Bluecell_ProtIndex_p.Bluecell_data;
175 179
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data]         = crc16.STH30_CreateCrc(temp_buf, BLUECELL_RESET_LENGTH - 3);
176
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + 1]     = BLUECELL_TAILER;
180
+            temp_buf[1]     = BLUECELL_TAILER;
177 181
             this.serial.Serial_DataSend(temp_buf, temp_buf.Length);
178 182
         }
179 183
         private byte Bluecell_BDA4601_Calc(double data)
@@ -214,6 +218,40 @@ namespace RF_TRIO_PLL_ZIG
214 218
                 data -= 0.5;
215 219
             }
216 220
             return ret;
221
+        }
222
+        public double Bluecell_Reverse_BDA4601_Calc(int data)
223
+        {
224
+            double ret = 0;
225
+
226
+            if (data == 0x3F)
227
+                ret = 31.5;
228
+
229
+            if ((data & 0x01) > 0)
230
+            {
231
+                ret += 16;
232
+            }
233
+            if ((data & 0x02) > 0)
234
+            {
235
+                ret += 8;
236
+            }
237
+            if ((data & 0x04) > 0)
238
+            {
239
+                ret += 4;
240
+
241
+            }
242
+            if ((data & 0x08) > 0)
243
+            {
244
+                ret += 2;
245
+            }
246
+            if ((data & 0x10) > 0)
247
+            {
248
+                ret += 1;
249
+            }
250
+            if ((data & 0x20) > 0)
251
+            {
252
+                ret += 0.5;
253
+            }
254
+            return ret;
217 255
 
218 256
         }
219 257
         private byte Bluecell_PE43711_Calc(double data)
@@ -262,7 +300,45 @@ namespace RF_TRIO_PLL_ZIG
262 300
             return ret;
263 301
 
264 302
         }
265
-        const byte BLUECELL_DATA_SET_LENGTH = (byte)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 3 + 3 + 1;
303
+        public double Bluecell_ReversePE43711_Calc(int data)
304
+        {
305
+            double ret = 0;
306
+
307
+            if (data == 0x7F)
308
+                ret = 31.75;
309
+
310
+            if ((data & 0x40) > 0)
311
+            {
312
+                ret += 16;
313
+            }
314
+            if ((data & 0x20) > 0)
315
+            {
316
+                ret += 8;
317
+            }
318
+            if ((data & 0x10) > 0)
319
+            {
320
+                ret += 4;
321
+            }
322
+            if ((data & 0x08) > 0)
323
+            {
324
+                ret += 2;
325
+            }
326
+            if ((data & 0x04) > 0)
327
+            {
328
+                ret += 1;
329
+            }
330
+            if ((data & 0x02) > 0)
331
+            {
332
+                ret += 0.5;
333
+            }
334
+            if ((data & 0x01) > 0)
335
+            {
336
+                ret += 0.25;
337
+            }
338
+            return ret;
339
+
340
+        }
341
+        const byte BLUECELL_DATA_SET_LENGTH = (byte)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 2 + 1;
266 342
         Main_Form main_Form;
267 343
         public void Bluecell_BtnSet(object serial, object main_form)
268 344
         {
@@ -280,96 +356,96 @@ namespace RF_TRIO_PLL_ZIG
280 356
 
281 357
 
282 358
 
283
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_DL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_DL1.Text));
284
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_DL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_DL2.Text));
285
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_UL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL1.Text));
286
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_UL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL2.Text));
287
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_UL3] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL3.Text));
288
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_1_8G_UL4] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL4.Text));
289
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_DL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_DL1.Text));
290
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_DL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_DL2.Text));
291
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_UL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL1.Text));
292
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_UL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL2.Text));
293
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_UL3] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL3.Text));
294
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_2_1G_UL4] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL4.Text));
359
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_DL1.Text));
360
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_DL2.Text));
361
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL1.Text));
362
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL2.Text));
363
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL3] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL3.Text));
364
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL4] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_1_8G_UL4.Text));
365
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_DL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_DL1.Text));
366
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_DL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_DL2.Text));
367
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL1] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL1.Text));
368
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL2] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL2.Text));
369
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL3] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL3.Text));
370
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL4] = Bluecell_BDA4601_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_2_1G_UL4.Text));
295 371
 
296
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_3_5G_DL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_DL.Text));
297
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_3_5G_UL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_UL.Text));
298
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_3_5G_COM1] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM1.Text));
299
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_3_5G_COM2] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM2.Text));
300
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ATT_3_5G_COM3] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM3.Text));
372
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_DL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_DL.Text));
373
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_UL] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_UL.Text));
374
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM1] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM1.Text));
375
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM2] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM2.Text));
376
+            temp_buf[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM3] = Bluecell_PE43711_Calc(Convert.ToDouble(main_Form.numericUpDown_ATT_3_5G_COM3.Text));
301 377
 
302 378
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_DL.Text) * 10);
303
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
304
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
379
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
380
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
305 381
 
306 382
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_1_8G_UL.Text) * 10);
307
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
308
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
383
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
384
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
309 385
 
310 386
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_DL.Text) * 10);
311
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
312
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
387
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
388
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
313 389
 
314 390
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_2_1G_UL.Text) * 10);
315
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
316
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
391
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
392
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
317 393
 
318 394
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_3_5G_DL.Text) * 10);
319
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
320
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
395
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
396
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L] = Convert.ToByte((temp_val & 0x00FF));
321 397
 
322 398
             temp_val = Convert.ToUInt32(Convert.ToDouble(main_Form.numericUpDown_PLL_3_5G_UL.Text) * 10);
323
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
324
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
325
-
326
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_LD_6_BIT] = 0;//Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
327
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_H] = 0;// Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
328
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_L] = 0;// Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
329
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_H] = 0;
330
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_L] = 0;
331
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_H] = 0;
332
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_L] = 0;
333
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_H] = 0;
334
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_L] = 0;
335
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_H] = 0;
336
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_L] = 0;
337
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_H] = 0;
338
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_L] = 0;
339
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_H] = 0;
340
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_L] = 0;
341
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_H] = 0;
342
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_L] = 0;
343
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_H] = 0;
344
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_L] = 0;
345
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_L] = 0;
346
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_H] = 0;
347
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_H] = 0;
348
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_L] = 0;
349
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_H] = 0;
350
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_L] = 0;
351
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.RFU_TEMP_H] = 0;
352
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.RFU_TEMP_L] = 0;
353
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t._28V_DET_H] = 0;
354
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t._28V_DET_L] = 0;
355
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ALARM_AC] = 0;
356
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.ALARM_DC] = 0;
357
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_1_8G_DL] = Convert.ToByte(PATH_1_8G_DL_Get_Func());
358
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_1_8G_UL] = Convert.ToByte(PATH_1_8G_UL_Get_Func()); 
359
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_2_1G_DL] = Convert.ToByte(PATH_2_1G_DL_Get_Func());
360
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_2_1G_UL] = Convert.ToByte(PATH_2_1G_UL_Get_Func());
361
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_3_5G_L]  = Convert.ToByte(Path_3_5G_L_Get_Func());
362
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_3_5G_H]  = Convert.ToByte(Path_3_5G_H_Get_Func());
363
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_3_5G_DL] = Convert.ToByte(PATH_3_5G_DL_Get_Func());
364
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PATH_EN_3_5G_UL] = Convert.ToByte(PATH_3_5G_UL_Get_Func());
365
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_ON_OFF_3_5G_H] = Convert.ToByte(PLL_ON_OFF_3_5G_H_Get_Func());
366
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.PLL_ON_OFF_3_5G_L] = Convert.ToByte(PLL_ON_OFF_3_5G_L_Get_Func());
367
-
368
-
369
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.T_SYNC_DL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PATH_3_5G_DL_Get_Func());
370
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t._T_SYNC_DL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PATH_3_5G_DL_Get_Func());
371
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.T_SYNC_UL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PLL_ON_OFF_3_5G_H_Get_Func());
372
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t._T_SYNC_UL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PLL_ON_OFF_3_5G_L_Get_Func());
399
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] = Convert.ToByte((temp_val & 0xFF00) >> 8);
400
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L] = Convert.ToByte((temp_val & 0x00FF));
401
+
402
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_LD_6_BIT] = 0;//Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
403
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_H] = 0;// Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
404
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_L] = 0;// Convert.ToByte(main_Form.numericUpDown_ATT_3_5G_COM1.Text);
405
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_H] = 0;
406
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_L] = 0;
407
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_H] = 0;
408
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_L] = 0;
409
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_H] = 0;
410
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_L] = 0;
411
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_H] = 0;
412
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_L] = 0;
413
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_H] = 0;
414
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_L] = 0;
415
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_H] = 0;
416
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_L] = 0;
417
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_H] = 0;
418
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_L] = 0;
419
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_H] = 0;
420
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_L] = 0;
421
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_L] = 0;
422
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_H] = 0;
423
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_H] = 0;
424
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_L] = 0;
425
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_H] = 0;
426
+            temp_buf[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_L] = 0;
427
+            temp_buf[(int)Bluecell_TypeIndex_t.RFU_TEMP_H] = 0;
428
+            temp_buf[(int)Bluecell_TypeIndex_t.RFU_TEMP_L] = 0;
429
+            temp_buf[(int)Bluecell_TypeIndex_t._28V_DET_H] = 0;
430
+            temp_buf[(int)Bluecell_TypeIndex_t._28V_DET_L] = 0;
431
+            temp_buf[(int)Bluecell_TypeIndex_t.ALARM_AC] = 0;
432
+            temp_buf[(int)Bluecell_TypeIndex_t.ALARM_DC] = 0;
433
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_1_8G_DL] = Convert.ToByte(PATH_1_8G_DL_Get_Func());
434
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_1_8G_UL] = Convert.ToByte(PATH_1_8G_UL_Get_Func()); 
435
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_2_1G_DL] = Convert.ToByte(PATH_2_1G_DL_Get_Func());
436
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_2_1G_UL] = Convert.ToByte(PATH_2_1G_UL_Get_Func());
437
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_3_5G_L]  = Convert.ToByte(Path_3_5G_L_Get_Func());
438
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_3_5G_H]  = Convert.ToByte(Path_3_5G_H_Get_Func());
439
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_3_5G_DL] = Convert.ToByte(PATH_3_5G_DL_Get_Func());
440
+            temp_buf[(int)Bluecell_TypeIndex_t.PATH_EN_3_5G_UL] = Convert.ToByte(PATH_3_5G_UL_Get_Func());
441
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_ON_OFF_3_5G_H] = Convert.ToByte(PLL_ON_OFF_3_5G_H_Get_Func());
442
+            temp_buf[(int)Bluecell_TypeIndex_t.PLL_ON_OFF_3_5G_L] = Convert.ToByte(PLL_ON_OFF_3_5G_L_Get_Func());
443
+
444
+
445
+            temp_buf[(int)Bluecell_TypeIndex_t.T_SYNC_DL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PATH_3_5G_DL_Get_Func());
446
+            temp_buf[(int)Bluecell_TypeIndex_t._T_SYNC_DL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PATH_3_5G_DL_Get_Func());
447
+            temp_buf[(int)Bluecell_TypeIndex_t.T_SYNC_UL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PLL_ON_OFF_3_5G_H_Get_Func());
448
+            temp_buf[(int)Bluecell_TypeIndex_t._T_SYNC_UL] = main_Form.Tdd_T_Sync;//Convert.ToByte(PLL_ON_OFF_3_5G_L_Get_Func());
373 449
 
374 450
 
375 451
 
@@ -378,28 +454,28 @@ namespace RF_TRIO_PLL_ZIG
378 454
             temp = Convert.ToUInt16(temp & 0xFF00);
379 455
 
380 456
 
381
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_A_H]
457
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_H]
382 458
                 = Convert.ToByte(0x00 + Convert.ToByte(temp >> 8));
383 459
 
384
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_A_L] 
460
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_L] 
385 461
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_A.Text) * 4095) / 4) & 0x00FF);
386 462
 
387 463
             double_temp = Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_B.Text) * 4095;
388 464
             temp = Convert.ToUInt16(double_temp / 4);
389 465
             temp = Convert.ToUInt16(temp & 0xFF00);
390 466
 
391
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_B_H]
467
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_B_H]
392 468
                 = Convert.ToByte(0x10 + Convert.ToByte(temp >> 8));
393
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_B_L]
469
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_B_L]
394 470
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_B.Text) * 4095) / 4) & 0x00FF);
395 471
 
396 472
             double_temp = Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_C.Text) * 4095;
397 473
             temp = Convert.ToUInt16(double_temp / 4);
398 474
             temp = Convert.ToUInt16(temp & 0xFF00);
399 475
 
400
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_C_H]
476
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_C_H]
401 477
                 = Convert.ToByte(0x20 + Convert.ToByte(temp >> 8));
402
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_C_L]
478
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_C_L]
403 479
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_C.Text) * 4095) / 4) & 0x00FF);
404 480
 
405 481
 
@@ -408,27 +484,27 @@ namespace RF_TRIO_PLL_ZIG
408 484
             temp = Convert.ToUInt16(temp & 0xFF00);
409 485
 
410 486
 
411
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_D_H]
487
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_D_H]
412 488
                 = Convert.ToByte(0x30 + Convert.ToByte(temp >> 8));
413
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_D_L]
489
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_D_L]
414 490
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_D.Text) * 4095) / 4) & 0x00FF); ;
415 491
 
416 492
             double_temp = Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_E.Text) * 4095;
417 493
             temp = Convert.ToUInt16(double_temp / 4);
418 494
             temp = Convert.ToUInt16(temp & 0xFF00);
419 495
 
420
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_E_H]
496
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_E_H]
421 497
                 = Convert.ToByte(0x40 + Convert.ToByte(temp >> 8));
422
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_E_L]
498
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_E_L]
423 499
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_E.Text) * 4095) / 4) & 0x00FF);
424 500
 
425 501
 
426 502
             double_temp = Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_F.Text) * 4095;
427 503
             temp = Convert.ToUInt16(double_temp / 4);
428 504
             temp = Convert.ToUInt16(temp & 0xFF00);
429
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_F_H]
505
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_F_H]
430 506
                 = Convert.ToByte(0x50 + Convert.ToByte(temp >> 8));
431
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_F_L]
507
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_F_L]
432 508
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_F.Text) * 4095) / 4) & 0x00FF);
433 509
 
434 510
 
@@ -438,9 +514,9 @@ namespace RF_TRIO_PLL_ZIG
438 514
             temp = Convert.ToUInt16(temp & 0xFF00);
439 515
 
440 516
 
441
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_G_H]
517
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_G_H]
442 518
                 = Convert.ToByte(0x60 + Convert.ToByte(temp >> 8));
443
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_G_L] 
519
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_G_L] 
444 520
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_G.Text) * 4095) / 4) & 0x00FF);
445 521
 
446 522
 
@@ -448,16 +524,16 @@ namespace RF_TRIO_PLL_ZIG
448 524
             temp = Convert.ToUInt16(double_temp / 4);
449 525
             temp = Convert.ToUInt16(temp & 0xFF00);
450 526
             
451
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_H_H]
527
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_H]
452 528
                 = Convert.ToByte(0x70 + Convert.ToByte(temp >> 8));
453
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L] 
529
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L] 
454 530
                 = Convert.ToByte(Convert.ToUInt16((Convert.ToDouble(main_Form.numericUpDown_DAC_VoltCtrl_H.Text) * 4095) / 4) & 0x00FF);
455 531
 
456 532
 
457 533
             /* * * * * * FIX DATA * * * * * */
458
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 1] 
534
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 1] 
459 535
                 = crc16.STH30_CreateCrc(temp_buf, BLUECELL_DATA_SET_LENGTH -  3);
460
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 2] 
536
+            temp_buf[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L + 2] 
461 537
                 = BLUECELL_TAILER;
462 538
             this.serial.Serial_DataSend(temp_buf, temp_buf.Length);
463 539
         }
@@ -468,12 +544,26 @@ namespace RF_TRIO_PLL_ZIG
468 544
         {
469 545
             this.main_Form = (Main_Form)main_form;
470 546
             this.serial = (Serial)serial;
471
-           
472
-            
547
+          //  main_Form.Invoke(new ByteSend(this.main_Form.ReSetting_Values),(temp_buf));
473 548
             this.main_Form.ADC_Voltage_Value_Set(temp_buf);
474 549
             //Debug.Invoke(new StringSend(Debug.Data_Recv_Str), data);
475 550
             //main_Form.label1_8GHz_DL_OUT.Text = Convert.ToString(temp_val);
476 551
 
552
+        }
553
+        public void Bluecell_RF_Status_Req(object serial)
554
+        {
555
+            Crc16 crc16 = new Crc16();
556
+            this.serial = (Serial)serial;
557
+            byte[] temp_buf = new byte[6];
558
+
559
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = 0xbe;
560
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = 2;
561
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length] = Convert.ToByte(temp_buf.Length - 3);
562
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex] = 5;
563
+            temp_buf[0] = crc16.STH30_CreateCrc(temp_buf, temp_buf[2]);
564
+            temp_buf[1] = 0xeb;
565
+            this.serial.Serial_DataSend(temp_buf, temp_buf.Length);
566
+
477 567
         }
478 568
         bool PATH_1_8G_UL_Get_Func()
479 569
         {

+ 1 - 0
Basic_Terminal/Func/Data_Handler.cs

@@ -105,6 +105,7 @@ namespace RF_TRIO_PLL_ZIG
105 105
             else/* * * * * * * * * * * * * *API RECV 부분 * * * * * * * * * * * * *  */
106 106
             {
107 107
                 bluecell_BootProtocol.Bluecell_RF_Status_Get(this.serial,this.main_Form, data);
108
+
108 109
             }
109 110
         }
110 111
     }

+ 2 - 2
Basic_Terminal/Wnd/Debug.cs

@@ -101,7 +101,7 @@ namespace RF_TRIO_PLL_ZIG
101 101
         public void Data_Recv_Hex(byte[] text)
102 102
         {
103 103
             string AppendMessage = "";
104
-
104
+            
105 105
             int nLimitLines = Convert.ToInt32(LineLimit); //제한 라인 수
106 106
             try
107 107
             {
@@ -134,7 +134,7 @@ namespace RF_TRIO_PLL_ZIG
134 134
                 tbReceived.Select(tbReceived.Text.Length, 0);
135 135
                 tbReceived.ScrollToCaret();
136 136
             }
137
-            finally { }
137
+            catch { try { SendMessage(this.Handle, WM_SETREDRAW, true, 0); } catch { return; } }
138 138
 
139 139
         }
140 140
         public void Data_Send(byte[] text)

+ 230 - 151
Basic_Terminal/Wnd/Main_Form.Designer.cs

@@ -178,22 +178,22 @@
178 178
             this.numericUpDown_DAC_VoltCtrl_A = new System.Windows.Forms.NumericUpDown();
179 179
             this.numericUpDown_DAC_VoltCtrl_E = new System.Windows.Forms.NumericUpDown();
180 180
             this.groupBox6 = new System.Windows.Forms.GroupBox();
181
-            this.label12 = new System.Windows.Forms.Label();
182
-            this.numericUpDown_DAC_VoltCtrl_B = new System.Windows.Forms.NumericUpDown();
181
+            this.label10 = new System.Windows.Forms.Label();
182
+            this.numericUpDown11 = new System.Windows.Forms.NumericUpDown();
183
+            this.numericUpDown10 = new System.Windows.Forms.NumericUpDown();
184
+            this.numericUpDown9 = new System.Windows.Forms.NumericUpDown();
185
+            this.numericUpDown_DAC_VoltCtrl_H = new System.Windows.Forms.NumericUpDown();
183 186
             this.numericUpDown_DAC_VoltCtrl_F = new System.Windows.Forms.NumericUpDown();
184
-            this.label25 = new System.Windows.Forms.Label();
185
-            this.label37 = new System.Windows.Forms.Label();
186
-            this.numericUpDown_DAC_VoltCtrl_C = new System.Windows.Forms.NumericUpDown();
187
-            this.numericUpDown_DAC_VoltCtrl_D = new System.Windows.Forms.NumericUpDown();
188 187
             this.numericUpDown_DAC_VoltCtrl_G = new System.Windows.Forms.NumericUpDown();
189
-            this.numericUpDown_DAC_VoltCtrl_H = new System.Windows.Forms.NumericUpDown();
190
-            this.numericUpDown9 = new System.Windows.Forms.NumericUpDown();
191
-            this.label23 = new System.Windows.Forms.Label();
192
-            this.numericUpDown10 = new System.Windows.Forms.NumericUpDown();
188
+            this.numericUpDown_DAC_VoltCtrl_D = new System.Windows.Forms.NumericUpDown();
189
+            this.numericUpDown_DAC_VoltCtrl_B = new System.Windows.Forms.NumericUpDown();
190
+            this.numericUpDown_DAC_VoltCtrl_C = new System.Windows.Forms.NumericUpDown();
191
+            this.label37 = new System.Windows.Forms.Label();
192
+            this.label12 = new System.Windows.Forms.Label();
193
+            this.label25 = new System.Windows.Forms.Label();
193 194
             this.label36 = new System.Windows.Forms.Label();
194
-            this.numericUpDown11 = new System.Windows.Forms.NumericUpDown();
195
-            this.label10 = new System.Windows.Forms.Label();
196 195
             this.label38 = new System.Windows.Forms.Label();
196
+            this.label23 = new System.Windows.Forms.Label();
197 197
             this.groupBox9.SuspendLayout();
198 198
             this.groupBox8.SuspendLayout();
199 199
             this.groupBox7.SuspendLayout();
@@ -264,15 +264,15 @@
264 264
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_A)).BeginInit();
265 265
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_E)).BeginInit();
266 266
             this.groupBox6.SuspendLayout();
267
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).BeginInit();
267
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).BeginInit();
268
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown10)).BeginInit();
269
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).BeginInit();
270
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_H)).BeginInit();
268 271
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_F)).BeginInit();
269
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).BeginInit();
270
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).BeginInit();
271 272
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_G)).BeginInit();
272
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_H)).BeginInit();
273
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).BeginInit();
274
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown10)).BeginInit();
275
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).BeginInit();
273
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).BeginInit();
274
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).BeginInit();
275
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).BeginInit();
276 276
             this.SuspendLayout();
277 277
             // 
278 278
             // groupBox9
@@ -291,6 +291,7 @@
291 291
             this.groupBox9.TabIndex = 82;
292 292
             this.groupBox9.TabStop = false;
293 293
             this.groupBox9.Text = "Connection";
294
+            this.groupBox9.Click += new System.EventHandler(this.Cusor_DeFocus);
294 295
             // 
295 296
             // button3
296 297
             // 
@@ -405,6 +406,7 @@
405 406
             this.groupBox8.TabIndex = 94;
406 407
             this.groupBox8.TabStop = false;
407 408
             this.groupBox8.Text = "ATTEN(dB)";
409
+            this.groupBox8.Click += new System.EventHandler(this.Cusor_DeFocus);
408 410
             // 
409 411
             // groupBox7
410 412
             // 
@@ -424,6 +426,7 @@
424 426
             this.groupBox7.TabIndex = 94;
425 427
             this.groupBox7.TabStop = false;
426 428
             this.groupBox7.Text = "3.5GHz";
429
+            this.groupBox7.Click += new System.EventHandler(this.Cusor_DeFocus);
427 430
             // 
428 431
             // numericUpDown_ATT_3_5G_COM3
429 432
             // 
@@ -442,7 +445,9 @@
442 445
             this.numericUpDown_ATT_3_5G_COM3.Name = "numericUpDown_ATT_3_5G_COM3";
443 446
             this.numericUpDown_ATT_3_5G_COM3.Size = new System.Drawing.Size(71, 21);
444 447
             this.numericUpDown_ATT_3_5G_COM3.TabIndex = 11;
448
+            this.numericUpDown_ATT_3_5G_COM3.Enter += new System.EventHandler(this.Activi_Change__Setting);
445 449
             this.numericUpDown_ATT_3_5G_COM3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
450
+            this.numericUpDown_ATT_3_5G_COM3.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
446 451
             // 
447 452
             // numericUpDown_ATT_3_5G_COM2
448 453
             // 
@@ -461,7 +466,9 @@
461 466
             this.numericUpDown_ATT_3_5G_COM2.Name = "numericUpDown_ATT_3_5G_COM2";
462 467
             this.numericUpDown_ATT_3_5G_COM2.Size = new System.Drawing.Size(71, 21);
463 468
             this.numericUpDown_ATT_3_5G_COM2.TabIndex = 12;
469
+            this.numericUpDown_ATT_3_5G_COM2.Enter += new System.EventHandler(this.Activi_Change__Setting);
464 470
             this.numericUpDown_ATT_3_5G_COM2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
471
+            this.numericUpDown_ATT_3_5G_COM2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
465 472
             // 
466 473
             // numericUpDown_ATT_3_5G_COM1
467 474
             // 
@@ -480,7 +487,9 @@
480 487
             this.numericUpDown_ATT_3_5G_COM1.Name = "numericUpDown_ATT_3_5G_COM1";
481 488
             this.numericUpDown_ATT_3_5G_COM1.Size = new System.Drawing.Size(71, 21);
482 489
             this.numericUpDown_ATT_3_5G_COM1.TabIndex = 13;
490
+            this.numericUpDown_ATT_3_5G_COM1.Enter += new System.EventHandler(this.Activi_Change__Setting);
483 491
             this.numericUpDown_ATT_3_5G_COM1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
492
+            this.numericUpDown_ATT_3_5G_COM1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
484 493
             // 
485 494
             // label19
486 495
             // 
@@ -526,7 +535,9 @@
526 535
             this.numericUpDown_ATT_3_5G_UL.Name = "numericUpDown_ATT_3_5G_UL";
527 536
             this.numericUpDown_ATT_3_5G_UL.Size = new System.Drawing.Size(71, 21);
528 537
             this.numericUpDown_ATT_3_5G_UL.TabIndex = 1;
538
+            this.numericUpDown_ATT_3_5G_UL.Enter += new System.EventHandler(this.Activi_Change__Setting);
529 539
             this.numericUpDown_ATT_3_5G_UL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
540
+            this.numericUpDown_ATT_3_5G_UL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
530 541
             // 
531 542
             // numericUpDown_ATT_3_5G_DL
532 543
             // 
@@ -545,7 +556,9 @@
545 556
             this.numericUpDown_ATT_3_5G_DL.Name = "numericUpDown_ATT_3_5G_DL";
546 557
             this.numericUpDown_ATT_3_5G_DL.Size = new System.Drawing.Size(71, 21);
547 558
             this.numericUpDown_ATT_3_5G_DL.TabIndex = 1;
559
+            this.numericUpDown_ATT_3_5G_DL.Enter += new System.EventHandler(this.Activi_Change__Setting);
548 560
             this.numericUpDown_ATT_3_5G_DL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
561
+            this.numericUpDown_ATT_3_5G_DL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
549 562
             // 
550 563
             // label26
551 564
             // 
@@ -581,6 +594,7 @@
581 594
             this.groupBox5.TabIndex = 96;
582 595
             this.groupBox5.TabStop = false;
583 596
             this.groupBox5.Text = "2.1GHz UL";
597
+            this.groupBox5.Click += new System.EventHandler(this.Cusor_DeFocus);
584 598
             // 
585 599
             // numericUpDown_ATT_2_1G_UL4
586 600
             // 
@@ -599,7 +613,9 @@
599 613
             this.numericUpDown_ATT_2_1G_UL4.Name = "numericUpDown_ATT_2_1G_UL4";
600 614
             this.numericUpDown_ATT_2_1G_UL4.Size = new System.Drawing.Size(71, 21);
601 615
             this.numericUpDown_ATT_2_1G_UL4.TabIndex = 1;
616
+            this.numericUpDown_ATT_2_1G_UL4.Enter += new System.EventHandler(this.Activi_Change__Setting);
602 617
             this.numericUpDown_ATT_2_1G_UL4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
618
+            this.numericUpDown_ATT_2_1G_UL4.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
603 619
             // 
604 620
             // numericUpDown_ATT_2_1G_UL2
605 621
             // 
@@ -618,7 +634,9 @@
618 634
             this.numericUpDown_ATT_2_1G_UL2.Name = "numericUpDown_ATT_2_1G_UL2";
619 635
             this.numericUpDown_ATT_2_1G_UL2.Size = new System.Drawing.Size(71, 21);
620 636
             this.numericUpDown_ATT_2_1G_UL2.TabIndex = 1;
637
+            this.numericUpDown_ATT_2_1G_UL2.Enter += new System.EventHandler(this.Activi_Change__Setting);
621 638
             this.numericUpDown_ATT_2_1G_UL2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
639
+            this.numericUpDown_ATT_2_1G_UL2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
622 640
             // 
623 641
             // numericUpDown_ATT_2_1G_UL3
624 642
             // 
@@ -637,7 +655,9 @@
637 655
             this.numericUpDown_ATT_2_1G_UL3.Name = "numericUpDown_ATT_2_1G_UL3";
638 656
             this.numericUpDown_ATT_2_1G_UL3.Size = new System.Drawing.Size(71, 21);
639 657
             this.numericUpDown_ATT_2_1G_UL3.TabIndex = 1;
658
+            this.numericUpDown_ATT_2_1G_UL3.Enter += new System.EventHandler(this.Activi_Change__Setting);
640 659
             this.numericUpDown_ATT_2_1G_UL3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
660
+            this.numericUpDown_ATT_2_1G_UL3.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
641 661
             // 
642 662
             // numericUpDown_ATT_2_1G_UL1
643 663
             // 
@@ -656,7 +676,9 @@
656 676
             this.numericUpDown_ATT_2_1G_UL1.Name = "numericUpDown_ATT_2_1G_UL1";
657 677
             this.numericUpDown_ATT_2_1G_UL1.Size = new System.Drawing.Size(71, 21);
658 678
             this.numericUpDown_ATT_2_1G_UL1.TabIndex = 1;
679
+            this.numericUpDown_ATT_2_1G_UL1.Enter += new System.EventHandler(this.Activi_Change__Setting);
659 680
             this.numericUpDown_ATT_2_1G_UL1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
681
+            this.numericUpDown_ATT_2_1G_UL1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
660 682
             // 
661 683
             // label15
662 684
             // 
@@ -710,6 +732,7 @@
710 732
             this.groupBox2.TabIndex = 97;
711 733
             this.groupBox2.TabStop = false;
712 734
             this.groupBox2.Text = "1.8GHz UL";
735
+            this.groupBox2.Click += new System.EventHandler(this.Cusor_DeFocus);
713 736
             // 
714 737
             // numericUpDown_ATT_1_8G_UL4
715 738
             // 
@@ -728,7 +751,9 @@
728 751
             this.numericUpDown_ATT_1_8G_UL4.Name = "numericUpDown_ATT_1_8G_UL4";
729 752
             this.numericUpDown_ATT_1_8G_UL4.Size = new System.Drawing.Size(71, 21);
730 753
             this.numericUpDown_ATT_1_8G_UL4.TabIndex = 1;
754
+            this.numericUpDown_ATT_1_8G_UL4.Enter += new System.EventHandler(this.Activi_Change__Setting);
731 755
             this.numericUpDown_ATT_1_8G_UL4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
756
+            this.numericUpDown_ATT_1_8G_UL4.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
732 757
             // 
733 758
             // numericUpDown_ATT_1_8G_UL2
734 759
             // 
@@ -747,7 +772,9 @@
747 772
             this.numericUpDown_ATT_1_8G_UL2.Name = "numericUpDown_ATT_1_8G_UL2";
748 773
             this.numericUpDown_ATT_1_8G_UL2.Size = new System.Drawing.Size(71, 21);
749 774
             this.numericUpDown_ATT_1_8G_UL2.TabIndex = 1;
775
+            this.numericUpDown_ATT_1_8G_UL2.Enter += new System.EventHandler(this.Activi_Change__Setting);
750 776
             this.numericUpDown_ATT_1_8G_UL2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
777
+            this.numericUpDown_ATT_1_8G_UL2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
751 778
             // 
752 779
             // numericUpDown_ATT_1_8G_UL3
753 780
             // 
@@ -766,7 +793,9 @@
766 793
             this.numericUpDown_ATT_1_8G_UL3.Name = "numericUpDown_ATT_1_8G_UL3";
767 794
             this.numericUpDown_ATT_1_8G_UL3.Size = new System.Drawing.Size(71, 21);
768 795
             this.numericUpDown_ATT_1_8G_UL3.TabIndex = 1;
796
+            this.numericUpDown_ATT_1_8G_UL3.Enter += new System.EventHandler(this.Activi_Change__Setting);
769 797
             this.numericUpDown_ATT_1_8G_UL3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
798
+            this.numericUpDown_ATT_1_8G_UL3.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
770 799
             // 
771 800
             // numericUpDown_ATT_1_8G_UL1
772 801
             // 
@@ -785,7 +814,9 @@
785 814
             this.numericUpDown_ATT_1_8G_UL1.Name = "numericUpDown_ATT_1_8G_UL1";
786 815
             this.numericUpDown_ATT_1_8G_UL1.Size = new System.Drawing.Size(71, 21);
787 816
             this.numericUpDown_ATT_1_8G_UL1.TabIndex = 1;
817
+            this.numericUpDown_ATT_1_8G_UL1.Enter += new System.EventHandler(this.Activi_Change__Setting);
788 818
             this.numericUpDown_ATT_1_8G_UL1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
819
+            this.numericUpDown_ATT_1_8G_UL1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
789 820
             // 
790 821
             // label7
791 822
             // 
@@ -835,6 +866,7 @@
835 866
             this.groupBox4.TabIndex = 98;
836 867
             this.groupBox4.TabStop = false;
837 868
             this.groupBox4.Text = "2.1GHz DL";
869
+            this.groupBox4.Click += new System.EventHandler(this.Cusor_DeFocus);
838 870
             // 
839 871
             // numericUpDown_ATT_2_1G_DL2
840 872
             // 
@@ -853,7 +885,9 @@
853 885
             this.numericUpDown_ATT_2_1G_DL2.Name = "numericUpDown_ATT_2_1G_DL2";
854 886
             this.numericUpDown_ATT_2_1G_DL2.Size = new System.Drawing.Size(71, 21);
855 887
             this.numericUpDown_ATT_2_1G_DL2.TabIndex = 1;
888
+            this.numericUpDown_ATT_2_1G_DL2.Enter += new System.EventHandler(this.Activi_Change__Setting);
856 889
             this.numericUpDown_ATT_2_1G_DL2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
890
+            this.numericUpDown_ATT_2_1G_DL2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
857 891
             // 
858 892
             // numericUpDown_ATT_2_1G_DL1
859 893
             // 
@@ -872,7 +906,9 @@
872 906
             this.numericUpDown_ATT_2_1G_DL1.Name = "numericUpDown_ATT_2_1G_DL1";
873 907
             this.numericUpDown_ATT_2_1G_DL1.Size = new System.Drawing.Size(71, 21);
874 908
             this.numericUpDown_ATT_2_1G_DL1.TabIndex = 1;
909
+            this.numericUpDown_ATT_2_1G_DL1.Enter += new System.EventHandler(this.Activi_Change__Setting);
875 910
             this.numericUpDown_ATT_2_1G_DL1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
911
+            this.numericUpDown_ATT_2_1G_DL1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
876 912
             // 
877 913
             // label13
878 914
             // 
@@ -905,6 +941,7 @@
905 941
             this.groupBox1.TabIndex = 99;
906 942
             this.groupBox1.TabStop = false;
907 943
             this.groupBox1.Text = "1.8GHz DL";
944
+            this.groupBox1.Click += new System.EventHandler(this.Cusor_DeFocus);
908 945
             // 
909 946
             // numericUpDown_ATT_1_8G_DL2
910 947
             // 
@@ -923,7 +960,9 @@
923 960
             this.numericUpDown_ATT_1_8G_DL2.Name = "numericUpDown_ATT_1_8G_DL2";
924 961
             this.numericUpDown_ATT_1_8G_DL2.Size = new System.Drawing.Size(71, 21);
925 962
             this.numericUpDown_ATT_1_8G_DL2.TabIndex = 1;
963
+            this.numericUpDown_ATT_1_8G_DL2.Enter += new System.EventHandler(this.Activi_Change__Setting);
926 964
             this.numericUpDown_ATT_1_8G_DL2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
965
+            this.numericUpDown_ATT_1_8G_DL2.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
927 966
             // 
928 967
             // numericUpDown_ATT_1_8G_DL1
929 968
             // 
@@ -942,7 +981,9 @@
942 981
             this.numericUpDown_ATT_1_8G_DL1.Name = "numericUpDown_ATT_1_8G_DL1";
943 982
             this.numericUpDown_ATT_1_8G_DL1.Size = new System.Drawing.Size(71, 21);
944 983
             this.numericUpDown_ATT_1_8G_DL1.TabIndex = 1;
984
+            this.numericUpDown_ATT_1_8G_DL1.Enter += new System.EventHandler(this.Activi_Change__Setting);
945 985
             this.numericUpDown_ATT_1_8G_DL1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
986
+            this.numericUpDown_ATT_1_8G_DL1.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
946 987
             // 
947 988
             // label3
948 989
             // 
@@ -1000,6 +1041,7 @@
1000 1041
             this.groupBox17.TabIndex = 95;
1001 1042
             this.groupBox17.TabStop = false;
1002 1043
             this.groupBox17.Text = "Power";
1044
+            this.groupBox17.Click += new System.EventHandler(this.Cusor_DeFocus);
1003 1045
             // 
1004 1046
             // label74
1005 1047
             // 
@@ -1342,6 +1384,7 @@
1342 1384
             this.groupBox10.TabIndex = 102;
1343 1385
             this.groupBox10.TabStop = false;
1344 1386
             this.groupBox10.Text = "PLL(MHz)";
1387
+            this.groupBox10.Click += new System.EventHandler(this.Cusor_DeFocus);
1345 1388
             // 
1346 1389
             // groupBox11
1347 1390
             // 
@@ -1355,6 +1398,7 @@
1355 1398
             this.groupBox11.TabIndex = 94;
1356 1399
             this.groupBox11.TabStop = false;
1357 1400
             this.groupBox11.Text = "3.5GHz";
1401
+            this.groupBox11.Click += new System.EventHandler(this.Cusor_DeFocus);
1358 1402
             // 
1359 1403
             // numericUpDown_PLL_3_5G_UL
1360 1404
             // 
@@ -1373,7 +1417,9 @@
1373 1417
             this.numericUpDown_PLL_3_5G_UL.Name = "numericUpDown_PLL_3_5G_UL";
1374 1418
             this.numericUpDown_PLL_3_5G_UL.Size = new System.Drawing.Size(71, 21);
1375 1419
             this.numericUpDown_PLL_3_5G_UL.TabIndex = 1;
1420
+            this.numericUpDown_PLL_3_5G_UL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1376 1421
             this.numericUpDown_PLL_3_5G_UL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1422
+            this.numericUpDown_PLL_3_5G_UL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1377 1423
             // 
1378 1424
             // numericUpDown_PLL_3_5G_DL
1379 1425
             // 
@@ -1392,7 +1438,9 @@
1392 1438
             this.numericUpDown_PLL_3_5G_DL.Name = "numericUpDown_PLL_3_5G_DL";
1393 1439
             this.numericUpDown_PLL_3_5G_DL.Size = new System.Drawing.Size(71, 21);
1394 1440
             this.numericUpDown_PLL_3_5G_DL.TabIndex = 1;
1441
+            this.numericUpDown_PLL_3_5G_DL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1395 1442
             this.numericUpDown_PLL_3_5G_DL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1443
+            this.numericUpDown_PLL_3_5G_DL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1396 1444
             // 
1397 1445
             // label32
1398 1446
             // 
@@ -1424,6 +1472,7 @@
1424 1472
             this.groupBox15.TabIndex = 98;
1425 1473
             this.groupBox15.TabStop = false;
1426 1474
             this.groupBox15.Text = "2.1GHz";
1475
+            this.groupBox15.Click += new System.EventHandler(this.Cusor_DeFocus);
1427 1476
             // 
1428 1477
             // numericUpDown_PLL_2_1G_UL
1429 1478
             // 
@@ -1442,7 +1491,9 @@
1442 1491
             this.numericUpDown_PLL_2_1G_UL.Name = "numericUpDown_PLL_2_1G_UL";
1443 1492
             this.numericUpDown_PLL_2_1G_UL.Size = new System.Drawing.Size(71, 21);
1444 1493
             this.numericUpDown_PLL_2_1G_UL.TabIndex = 1;
1494
+            this.numericUpDown_PLL_2_1G_UL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1445 1495
             this.numericUpDown_PLL_2_1G_UL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1496
+            this.numericUpDown_PLL_2_1G_UL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1446 1497
             // 
1447 1498
             // numericUpDown_PLL_2_1G_DL
1448 1499
             // 
@@ -1461,7 +1512,9 @@
1461 1512
             this.numericUpDown_PLL_2_1G_DL.Name = "numericUpDown_PLL_2_1G_DL";
1462 1513
             this.numericUpDown_PLL_2_1G_DL.Size = new System.Drawing.Size(71, 21);
1463 1514
             this.numericUpDown_PLL_2_1G_DL.TabIndex = 1;
1515
+            this.numericUpDown_PLL_2_1G_DL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1464 1516
             this.numericUpDown_PLL_2_1G_DL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1517
+            this.numericUpDown_PLL_2_1G_DL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1465 1518
             // 
1466 1519
             // label47
1467 1520
             // 
@@ -1493,6 +1546,7 @@
1493 1546
             this.groupBox16.TabIndex = 99;
1494 1547
             this.groupBox16.TabStop = false;
1495 1548
             this.groupBox16.Text = "1.8GHz";
1549
+            this.groupBox16.Click += new System.EventHandler(this.Cusor_DeFocus);
1496 1550
             // 
1497 1551
             // numericUpDown_PLL_1_8G_UL
1498 1552
             // 
@@ -1511,7 +1565,9 @@
1511 1565
             this.numericUpDown_PLL_1_8G_UL.Name = "numericUpDown_PLL_1_8G_UL";
1512 1566
             this.numericUpDown_PLL_1_8G_UL.Size = new System.Drawing.Size(71, 21);
1513 1567
             this.numericUpDown_PLL_1_8G_UL.TabIndex = 1;
1568
+            this.numericUpDown_PLL_1_8G_UL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1514 1569
             this.numericUpDown_PLL_1_8G_UL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1570
+            this.numericUpDown_PLL_1_8G_UL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1515 1571
             // 
1516 1572
             // numericUpDown_PLL_1_8G_DL
1517 1573
             // 
@@ -1530,7 +1586,9 @@
1530 1586
             this.numericUpDown_PLL_1_8G_DL.Name = "numericUpDown_PLL_1_8G_DL";
1531 1587
             this.numericUpDown_PLL_1_8G_DL.Size = new System.Drawing.Size(71, 21);
1532 1588
             this.numericUpDown_PLL_1_8G_DL.TabIndex = 1;
1589
+            this.numericUpDown_PLL_1_8G_DL.Enter += new System.EventHandler(this.Activi_Change__Setting);
1533 1590
             this.numericUpDown_PLL_1_8G_DL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
1591
+            this.numericUpDown_PLL_1_8G_DL.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
1534 1592
             // 
1535 1593
             // label49
1536 1594
             // 
@@ -1552,7 +1610,7 @@
1552 1610
             // 
1553 1611
             // timer
1554 1612
             // 
1555
-            this.timer.Interval = 3000;
1613
+            this.timer.Interval = 1;
1556 1614
             this.timer.Tick += new System.EventHandler(this.timer_Tick);
1557 1615
             // 
1558 1616
             // groupBox12
@@ -1567,6 +1625,7 @@
1567 1625
             this.groupBox12.TabIndex = 103;
1568 1626
             this.groupBox12.TabStop = false;
1569 1627
             this.groupBox12.Text = "DATA Status";
1628
+            this.groupBox12.Click += new System.EventHandler(this.Cusor_DeFocus);
1570 1629
             // 
1571 1630
             // pictureBox_R_TX
1572 1631
             // 
@@ -1629,6 +1688,7 @@
1629 1688
             this.groupBox_TDD.TabIndex = 107;
1630 1689
             this.groupBox_TDD.TabStop = false;
1631 1690
             this.groupBox_TDD.Text = "Tdd";
1691
+            this.groupBox_TDD.Click += new System.EventHandler(this.Cusor_DeFocus);
1632 1692
             // 
1633 1693
             // label24
1634 1694
             // 
@@ -1728,6 +1788,7 @@
1728 1788
             this.groupBox3.TabIndex = 108;
1729 1789
             this.groupBox3.TabStop = false;
1730 1790
             this.groupBox3.Text = "Voltage";
1791
+            this.groupBox3.Click += new System.EventHandler(this.Cusor_DeFocus);
1731 1792
             // 
1732 1793
             // label_28V_Det
1733 1794
             // 
@@ -2037,7 +2098,9 @@
2037 2098
             this.numericUpDown_DAC_VoltCtrl_A.Name = "numericUpDown_DAC_VoltCtrl_A";
2038 2099
             this.numericUpDown_DAC_VoltCtrl_A.Size = new System.Drawing.Size(71, 21);
2039 2100
             this.numericUpDown_DAC_VoltCtrl_A.TabIndex = 102;
2101
+            this.numericUpDown_DAC_VoltCtrl_A.Enter += new System.EventHandler(this.Activi_Change__Setting);
2040 2102
             this.numericUpDown_DAC_VoltCtrl_A.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2103
+            this.numericUpDown_DAC_VoltCtrl_A.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2041 2104
             // 
2042 2105
             // numericUpDown_DAC_VoltCtrl_E
2043 2106
             // 
@@ -2056,7 +2119,9 @@
2056 2119
             this.numericUpDown_DAC_VoltCtrl_E.Name = "numericUpDown_DAC_VoltCtrl_E";
2057 2120
             this.numericUpDown_DAC_VoltCtrl_E.Size = new System.Drawing.Size(71, 21);
2058 2121
             this.numericUpDown_DAC_VoltCtrl_E.TabIndex = 101;
2122
+            this.numericUpDown_DAC_VoltCtrl_E.Enter += new System.EventHandler(this.Activi_Change__Setting);
2059 2123
             this.numericUpDown_DAC_VoltCtrl_E.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2124
+            this.numericUpDown_DAC_VoltCtrl_E.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2060 2125
             // 
2061 2126
             // groupBox6
2062 2127
             // 
@@ -2087,109 +2152,112 @@
2087 2152
             this.groupBox6.TabIndex = 102;
2088 2153
             this.groupBox6.TabStop = false;
2089 2154
             this.groupBox6.Text = "V(Voltage)";
2155
+            this.groupBox6.Click += new System.EventHandler(this.Cusor_DeFocus);
2090 2156
             // 
2091
-            // label12
2157
+            // label10
2092 2158
             // 
2093
-            this.label12.AutoSize = true;
2094
-            this.label12.Location = new System.Drawing.Point(278, 59);
2095
-            this.label12.Name = "label12";
2096
-            this.label12.Size = new System.Drawing.Size(46, 12);
2097
-            this.label12.TabIndex = 99;
2098
-            this.label12.Text = "V out B";
2159
+            this.label10.AutoSize = true;
2160
+            this.label10.Location = new System.Drawing.Point(278, 88);
2161
+            this.label10.Name = "label10";
2162
+            this.label10.Size = new System.Drawing.Size(45, 12);
2163
+            this.label10.TabIndex = 103;
2164
+            this.label10.Text = "V out F";
2099 2165
             // 
2100
-            // numericUpDown_DAC_VoltCtrl_B
2166
+            // numericUpDown11
2101 2167
             // 
2102
-            this.numericUpDown_DAC_VoltCtrl_B.DecimalPlaces = 1;
2103
-            this.numericUpDown_DAC_VoltCtrl_B.Increment = new decimal(new int[] {
2168
+            this.numericUpDown11.DecimalPlaces = 1;
2169
+            this.numericUpDown11.Increment = new decimal(new int[] {
2104 2170
             1,
2105 2171
             0,
2106 2172
             0,
2107 2173
             65536});
2108
-            this.numericUpDown_DAC_VoltCtrl_B.Location = new System.Drawing.Point(342, 55);
2109
-            this.numericUpDown_DAC_VoltCtrl_B.Maximum = new decimal(new int[] {
2110
-            4,
2174
+            this.numericUpDown11.Location = new System.Drawing.Point(1577, 69);
2175
+            this.numericUpDown11.Maximum = new decimal(new int[] {
2176
+            3000,
2111 2177
             0,
2112 2178
             0,
2113 2179
             0});
2114
-            this.numericUpDown_DAC_VoltCtrl_B.Name = "numericUpDown_DAC_VoltCtrl_B";
2115
-            this.numericUpDown_DAC_VoltCtrl_B.Size = new System.Drawing.Size(71, 21);
2116
-            this.numericUpDown_DAC_VoltCtrl_B.TabIndex = 102;
2117
-            this.numericUpDown_DAC_VoltCtrl_B.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2180
+            this.numericUpDown11.Name = "numericUpDown11";
2181
+            this.numericUpDown11.Size = new System.Drawing.Size(71, 21);
2182
+            this.numericUpDown11.TabIndex = 101;
2118 2183
             // 
2119
-            // numericUpDown_DAC_VoltCtrl_F
2184
+            // numericUpDown10
2120 2185
             // 
2121
-            this.numericUpDown_DAC_VoltCtrl_F.DecimalPlaces = 1;
2122
-            this.numericUpDown_DAC_VoltCtrl_F.Increment = new decimal(new int[] {
2186
+            this.numericUpDown10.DecimalPlaces = 1;
2187
+            this.numericUpDown10.Increment = new decimal(new int[] {
2123 2188
             1,
2124 2189
             0,
2125 2190
             0,
2126 2191
             65536});
2127
-            this.numericUpDown_DAC_VoltCtrl_F.Location = new System.Drawing.Point(342, 84);
2128
-            this.numericUpDown_DAC_VoltCtrl_F.Maximum = new decimal(new int[] {
2129
-            4,
2192
+            this.numericUpDown10.Location = new System.Drawing.Point(1331, 69);
2193
+            this.numericUpDown10.Maximum = new decimal(new int[] {
2194
+            3000,
2130 2195
             0,
2131 2196
             0,
2132 2197
             0});
2133
-            this.numericUpDown_DAC_VoltCtrl_F.Name = "numericUpDown_DAC_VoltCtrl_F";
2134
-            this.numericUpDown_DAC_VoltCtrl_F.Size = new System.Drawing.Size(71, 21);
2135
-            this.numericUpDown_DAC_VoltCtrl_F.TabIndex = 101;
2136
-            this.numericUpDown_DAC_VoltCtrl_F.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2137
-            // 
2138
-            // label25
2139
-            // 
2140
-            this.label25.AutoSize = true;
2141
-            this.label25.Location = new System.Drawing.Point(523, 59);
2142
-            this.label25.Name = "label25";
2143
-            this.label25.Size = new System.Drawing.Size(47, 12);
2144
-            this.label25.TabIndex = 99;
2145
-            this.label25.Text = "V out C";
2198
+            this.numericUpDown10.Name = "numericUpDown10";
2199
+            this.numericUpDown10.Size = new System.Drawing.Size(71, 21);
2200
+            this.numericUpDown10.TabIndex = 101;
2146 2201
             // 
2147
-            // label37
2202
+            // numericUpDown9
2148 2203
             // 
2149
-            this.label37.AutoSize = true;
2150
-            this.label37.Location = new System.Drawing.Point(772, 59);
2151
-            this.label37.Name = "label37";
2152
-            this.label37.Size = new System.Drawing.Size(46, 12);
2153
-            this.label37.TabIndex = 99;
2154
-            this.label37.Text = "V out D";
2204
+            this.numericUpDown9.DecimalPlaces = 1;
2205
+            this.numericUpDown9.Increment = new decimal(new int[] {
2206
+            1,
2207
+            0,
2208
+            0,
2209
+            65536});
2210
+            this.numericUpDown9.Location = new System.Drawing.Point(1088, 69);
2211
+            this.numericUpDown9.Maximum = new decimal(new int[] {
2212
+            3000,
2213
+            0,
2214
+            0,
2215
+            0});
2216
+            this.numericUpDown9.Name = "numericUpDown9";
2217
+            this.numericUpDown9.Size = new System.Drawing.Size(71, 21);
2218
+            this.numericUpDown9.TabIndex = 101;
2155 2219
             // 
2156
-            // numericUpDown_DAC_VoltCtrl_C
2220
+            // numericUpDown_DAC_VoltCtrl_H
2157 2221
             // 
2158
-            this.numericUpDown_DAC_VoltCtrl_C.DecimalPlaces = 1;
2159
-            this.numericUpDown_DAC_VoltCtrl_C.Increment = new decimal(new int[] {
2222
+            this.numericUpDown_DAC_VoltCtrl_H.DecimalPlaces = 1;
2223
+            this.numericUpDown_DAC_VoltCtrl_H.Increment = new decimal(new int[] {
2160 2224
             1,
2161 2225
             0,
2162 2226
             0,
2163 2227
             65536});
2164
-            this.numericUpDown_DAC_VoltCtrl_C.Location = new System.Drawing.Point(589, 55);
2165
-            this.numericUpDown_DAC_VoltCtrl_C.Maximum = new decimal(new int[] {
2228
+            this.numericUpDown_DAC_VoltCtrl_H.Location = new System.Drawing.Point(836, 84);
2229
+            this.numericUpDown_DAC_VoltCtrl_H.Maximum = new decimal(new int[] {
2166 2230
             4,
2167 2231
             0,
2168 2232
             0,
2169 2233
             0});
2170
-            this.numericUpDown_DAC_VoltCtrl_C.Name = "numericUpDown_DAC_VoltCtrl_C";
2171
-            this.numericUpDown_DAC_VoltCtrl_C.Size = new System.Drawing.Size(71, 21);
2172
-            this.numericUpDown_DAC_VoltCtrl_C.TabIndex = 102;
2173
-            this.numericUpDown_DAC_VoltCtrl_C.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2234
+            this.numericUpDown_DAC_VoltCtrl_H.Name = "numericUpDown_DAC_VoltCtrl_H";
2235
+            this.numericUpDown_DAC_VoltCtrl_H.Size = new System.Drawing.Size(71, 21);
2236
+            this.numericUpDown_DAC_VoltCtrl_H.TabIndex = 101;
2237
+            this.numericUpDown_DAC_VoltCtrl_H.Enter += new System.EventHandler(this.Activi_Change__Setting);
2238
+            this.numericUpDown_DAC_VoltCtrl_H.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2239
+            this.numericUpDown_DAC_VoltCtrl_H.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2174 2240
             // 
2175
-            // numericUpDown_DAC_VoltCtrl_D
2241
+            // numericUpDown_DAC_VoltCtrl_F
2176 2242
             // 
2177
-            this.numericUpDown_DAC_VoltCtrl_D.DecimalPlaces = 1;
2178
-            this.numericUpDown_DAC_VoltCtrl_D.Increment = new decimal(new int[] {
2243
+            this.numericUpDown_DAC_VoltCtrl_F.DecimalPlaces = 1;
2244
+            this.numericUpDown_DAC_VoltCtrl_F.Increment = new decimal(new int[] {
2179 2245
             1,
2180 2246
             0,
2181 2247
             0,
2182 2248
             65536});
2183
-            this.numericUpDown_DAC_VoltCtrl_D.Location = new System.Drawing.Point(836, 55);
2184
-            this.numericUpDown_DAC_VoltCtrl_D.Maximum = new decimal(new int[] {
2249
+            this.numericUpDown_DAC_VoltCtrl_F.Location = new System.Drawing.Point(342, 84);
2250
+            this.numericUpDown_DAC_VoltCtrl_F.Maximum = new decimal(new int[] {
2185 2251
             4,
2186 2252
             0,
2187 2253
             0,
2188 2254
             0});
2189
-            this.numericUpDown_DAC_VoltCtrl_D.Name = "numericUpDown_DAC_VoltCtrl_D";
2190
-            this.numericUpDown_DAC_VoltCtrl_D.Size = new System.Drawing.Size(71, 21);
2191
-            this.numericUpDown_DAC_VoltCtrl_D.TabIndex = 102;
2192
-            this.numericUpDown_DAC_VoltCtrl_D.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2255
+            this.numericUpDown_DAC_VoltCtrl_F.Name = "numericUpDown_DAC_VoltCtrl_F";
2256
+            this.numericUpDown_DAC_VoltCtrl_F.Size = new System.Drawing.Size(71, 21);
2257
+            this.numericUpDown_DAC_VoltCtrl_F.TabIndex = 101;
2258
+            this.numericUpDown_DAC_VoltCtrl_F.Enter += new System.EventHandler(this.Activi_Change__Setting);
2259
+            this.numericUpDown_DAC_VoltCtrl_F.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2260
+            this.numericUpDown_DAC_VoltCtrl_F.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2193 2261
             // 
2194 2262
             // numericUpDown_DAC_VoltCtrl_G
2195 2263
             // 
@@ -2208,71 +2276,99 @@
2208 2276
             this.numericUpDown_DAC_VoltCtrl_G.Name = "numericUpDown_DAC_VoltCtrl_G";
2209 2277
             this.numericUpDown_DAC_VoltCtrl_G.Size = new System.Drawing.Size(71, 21);
2210 2278
             this.numericUpDown_DAC_VoltCtrl_G.TabIndex = 101;
2279
+            this.numericUpDown_DAC_VoltCtrl_G.Enter += new System.EventHandler(this.Activi_Change__Setting);
2211 2280
             this.numericUpDown_DAC_VoltCtrl_G.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2281
+            this.numericUpDown_DAC_VoltCtrl_G.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2212 2282
             // 
2213
-            // numericUpDown_DAC_VoltCtrl_H
2283
+            // numericUpDown_DAC_VoltCtrl_D
2214 2284
             // 
2215
-            this.numericUpDown_DAC_VoltCtrl_H.DecimalPlaces = 1;
2216
-            this.numericUpDown_DAC_VoltCtrl_H.Increment = new decimal(new int[] {
2285
+            this.numericUpDown_DAC_VoltCtrl_D.DecimalPlaces = 1;
2286
+            this.numericUpDown_DAC_VoltCtrl_D.Increment = new decimal(new int[] {
2217 2287
             1,
2218 2288
             0,
2219 2289
             0,
2220 2290
             65536});
2221
-            this.numericUpDown_DAC_VoltCtrl_H.Location = new System.Drawing.Point(836, 84);
2222
-            this.numericUpDown_DAC_VoltCtrl_H.Maximum = new decimal(new int[] {
2291
+            this.numericUpDown_DAC_VoltCtrl_D.Location = new System.Drawing.Point(836, 55);
2292
+            this.numericUpDown_DAC_VoltCtrl_D.Maximum = new decimal(new int[] {
2223 2293
             4,
2224 2294
             0,
2225 2295
             0,
2226 2296
             0});
2227
-            this.numericUpDown_DAC_VoltCtrl_H.Name = "numericUpDown_DAC_VoltCtrl_H";
2228
-            this.numericUpDown_DAC_VoltCtrl_H.Size = new System.Drawing.Size(71, 21);
2229
-            this.numericUpDown_DAC_VoltCtrl_H.TabIndex = 101;
2230
-            this.numericUpDown_DAC_VoltCtrl_H.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2297
+            this.numericUpDown_DAC_VoltCtrl_D.Name = "numericUpDown_DAC_VoltCtrl_D";
2298
+            this.numericUpDown_DAC_VoltCtrl_D.Size = new System.Drawing.Size(71, 21);
2299
+            this.numericUpDown_DAC_VoltCtrl_D.TabIndex = 102;
2300
+            this.numericUpDown_DAC_VoltCtrl_D.Enter += new System.EventHandler(this.Activi_Change__Setting);
2301
+            this.numericUpDown_DAC_VoltCtrl_D.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2302
+            this.numericUpDown_DAC_VoltCtrl_D.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2231 2303
             // 
2232
-            // numericUpDown9
2304
+            // numericUpDown_DAC_VoltCtrl_B
2233 2305
             // 
2234
-            this.numericUpDown9.DecimalPlaces = 1;
2235
-            this.numericUpDown9.Increment = new decimal(new int[] {
2306
+            this.numericUpDown_DAC_VoltCtrl_B.DecimalPlaces = 1;
2307
+            this.numericUpDown_DAC_VoltCtrl_B.Increment = new decimal(new int[] {
2236 2308
             1,
2237 2309
             0,
2238 2310
             0,
2239 2311
             65536});
2240
-            this.numericUpDown9.Location = new System.Drawing.Point(1088, 69);
2241
-            this.numericUpDown9.Maximum = new decimal(new int[] {
2242
-            3000,
2312
+            this.numericUpDown_DAC_VoltCtrl_B.Location = new System.Drawing.Point(342, 55);
2313
+            this.numericUpDown_DAC_VoltCtrl_B.Maximum = new decimal(new int[] {
2314
+            4,
2243 2315
             0,
2244 2316
             0,
2245 2317
             0});
2246
-            this.numericUpDown9.Name = "numericUpDown9";
2247
-            this.numericUpDown9.Size = new System.Drawing.Size(71, 21);
2248
-            this.numericUpDown9.TabIndex = 101;
2249
-            // 
2250
-            // label23
2251
-            // 
2252
-            this.label23.AutoSize = true;
2253
-            this.label23.Location = new System.Drawing.Point(523, 88);
2254
-            this.label23.Name = "label23";
2255
-            this.label23.Size = new System.Drawing.Size(47, 12);
2256
-            this.label23.TabIndex = 100;
2257
-            this.label23.Text = "V out G";
2318
+            this.numericUpDown_DAC_VoltCtrl_B.Name = "numericUpDown_DAC_VoltCtrl_B";
2319
+            this.numericUpDown_DAC_VoltCtrl_B.Size = new System.Drawing.Size(71, 21);
2320
+            this.numericUpDown_DAC_VoltCtrl_B.TabIndex = 102;
2321
+            this.numericUpDown_DAC_VoltCtrl_B.Enter += new System.EventHandler(this.Activi_Change__Setting);
2322
+            this.numericUpDown_DAC_VoltCtrl_B.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2323
+            this.numericUpDown_DAC_VoltCtrl_B.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2258 2324
             // 
2259
-            // numericUpDown10
2325
+            // numericUpDown_DAC_VoltCtrl_C
2260 2326
             // 
2261
-            this.numericUpDown10.DecimalPlaces = 1;
2262
-            this.numericUpDown10.Increment = new decimal(new int[] {
2327
+            this.numericUpDown_DAC_VoltCtrl_C.DecimalPlaces = 1;
2328
+            this.numericUpDown_DAC_VoltCtrl_C.Increment = new decimal(new int[] {
2263 2329
             1,
2264 2330
             0,
2265 2331
             0,
2266 2332
             65536});
2267
-            this.numericUpDown10.Location = new System.Drawing.Point(1331, 69);
2268
-            this.numericUpDown10.Maximum = new decimal(new int[] {
2269
-            3000,
2333
+            this.numericUpDown_DAC_VoltCtrl_C.Location = new System.Drawing.Point(589, 55);
2334
+            this.numericUpDown_DAC_VoltCtrl_C.Maximum = new decimal(new int[] {
2335
+            4,
2270 2336
             0,
2271 2337
             0,
2272 2338
             0});
2273
-            this.numericUpDown10.Name = "numericUpDown10";
2274
-            this.numericUpDown10.Size = new System.Drawing.Size(71, 21);
2275
-            this.numericUpDown10.TabIndex = 101;
2339
+            this.numericUpDown_DAC_VoltCtrl_C.Name = "numericUpDown_DAC_VoltCtrl_C";
2340
+            this.numericUpDown_DAC_VoltCtrl_C.Size = new System.Drawing.Size(71, 21);
2341
+            this.numericUpDown_DAC_VoltCtrl_C.TabIndex = 102;
2342
+            this.numericUpDown_DAC_VoltCtrl_C.Enter += new System.EventHandler(this.Activi_Change__Setting);
2343
+            this.numericUpDown_DAC_VoltCtrl_C.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ATT_Enter);
2344
+            this.numericUpDown_DAC_VoltCtrl_C.Leave += new System.EventHandler(this.Activi_Change__SettingComplete);
2345
+            // 
2346
+            // label37
2347
+            // 
2348
+            this.label37.AutoSize = true;
2349
+            this.label37.Location = new System.Drawing.Point(772, 59);
2350
+            this.label37.Name = "label37";
2351
+            this.label37.Size = new System.Drawing.Size(46, 12);
2352
+            this.label37.TabIndex = 99;
2353
+            this.label37.Text = "V out D";
2354
+            // 
2355
+            // label12
2356
+            // 
2357
+            this.label12.AutoSize = true;
2358
+            this.label12.Location = new System.Drawing.Point(278, 59);
2359
+            this.label12.Name = "label12";
2360
+            this.label12.Size = new System.Drawing.Size(46, 12);
2361
+            this.label12.TabIndex = 99;
2362
+            this.label12.Text = "V out B";
2363
+            // 
2364
+            // label25
2365
+            // 
2366
+            this.label25.AutoSize = true;
2367
+            this.label25.Location = new System.Drawing.Point(523, 59);
2368
+            this.label25.Name = "label25";
2369
+            this.label25.Size = new System.Drawing.Size(47, 12);
2370
+            this.label25.TabIndex = 99;
2371
+            this.label25.Text = "V out C";
2276 2372
             // 
2277 2373
             // label36
2278 2374
             // 
@@ -2283,33 +2379,6 @@
2283 2379
             this.label36.TabIndex = 100;
2284 2380
             this.label36.Text = "A out E";
2285 2381
             // 
2286
-            // numericUpDown11
2287
-            // 
2288
-            this.numericUpDown11.DecimalPlaces = 1;
2289
-            this.numericUpDown11.Increment = new decimal(new int[] {
2290
-            1,
2291
-            0,
2292
-            0,
2293
-            65536});
2294
-            this.numericUpDown11.Location = new System.Drawing.Point(1577, 69);
2295
-            this.numericUpDown11.Maximum = new decimal(new int[] {
2296
-            3000,
2297
-            0,
2298
-            0,
2299
-            0});
2300
-            this.numericUpDown11.Name = "numericUpDown11";
2301
-            this.numericUpDown11.Size = new System.Drawing.Size(71, 21);
2302
-            this.numericUpDown11.TabIndex = 101;
2303
-            // 
2304
-            // label10
2305
-            // 
2306
-            this.label10.AutoSize = true;
2307
-            this.label10.Location = new System.Drawing.Point(278, 88);
2308
-            this.label10.Name = "label10";
2309
-            this.label10.Size = new System.Drawing.Size(45, 12);
2310
-            this.label10.TabIndex = 103;
2311
-            this.label10.Text = "V out F";
2312
-            // 
2313 2382
             // label38
2314 2383
             // 
2315 2384
             this.label38.AutoSize = true;
@@ -2319,10 +2388,20 @@
2319 2388
             this.label38.TabIndex = 100;
2320 2389
             this.label38.Text = "V out H";
2321 2390
             // 
2391
+            // label23
2392
+            // 
2393
+            this.label23.AutoSize = true;
2394
+            this.label23.Location = new System.Drawing.Point(523, 88);
2395
+            this.label23.Name = "label23";
2396
+            this.label23.Size = new System.Drawing.Size(47, 12);
2397
+            this.label23.TabIndex = 100;
2398
+            this.label23.Text = "V out G";
2399
+            // 
2322 2400
             // Main_Form
2323 2401
             // 
2324 2402
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
2325 2403
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
2404
+            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
2326 2405
             this.ClientSize = new System.Drawing.Size(1185, 840);
2327 2406
             this.Controls.Add(this.button1);
2328 2407
             this.Controls.Add(this.button_Set);
@@ -2424,15 +2503,15 @@
2424 2503
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_E)).EndInit();
2425 2504
             this.groupBox6.ResumeLayout(false);
2426 2505
             this.groupBox6.PerformLayout();
2427
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).EndInit();
2506
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).EndInit();
2507
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown10)).EndInit();
2508
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).EndInit();
2509
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_H)).EndInit();
2428 2510
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_F)).EndInit();
2429
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).EndInit();
2430
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).EndInit();
2431 2511
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_G)).EndInit();
2432
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_H)).EndInit();
2433
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).EndInit();
2434
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown10)).EndInit();
2435
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).EndInit();
2512
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_D)).EndInit();
2513
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_B)).EndInit();
2514
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DAC_VoltCtrl_C)).EndInit();
2436 2515
             this.ResumeLayout(false);
2437 2516
             this.PerformLayout();
2438 2517
 

+ 262 - 67
Basic_Terminal/Wnd/Main_Form.cs

@@ -13,19 +13,20 @@ using System.IO;
13 13
 using System.IO.Ports;
14 14
 namespace RF_TRIO_PLL_ZIG
15 15
 {
16
-    
16
+
17 17
     public partial class Main_Form : Form
18 18
     {
19 19
         Serial serial = new Serial(); // Uart Open
20 20
         Bluecell_BootProtocol bluecell_BootProtocol = new Bluecell_BootProtocol();
21 21
         Update_Serial file = new Update_Serial();
22 22
         public byte Tdd_T_Sync = 0;
23
+       
23 24
         public Main_Form()
24 25
         {
25 26
             InitializeComponent();
26 27
             serial.Serial_Initialize(ref comboBox_Port);
27 28
         }
28
-       
29
+
29 30
         private void Firmware_Update_Click(object sender, EventArgs e)
30 31
         {
31 32
             OpenFileDialog ofd = new OpenFileDialog();
@@ -49,7 +50,7 @@ namespace RF_TRIO_PLL_ZIG
49 50
             bool ret = false;
50 51
             ret = Serial_connectiondisable(serial.Serial_PortOpen(ref button_PortOpen, ref comboBox_Port));
51 52
             if (ret == false && timer.Enabled == false)
52
-            { 
53
+            {
53 54
                 timer.Start(); //타이머를 발동시킨다.
54 55
             }
55 56
             else if (timer.Enabled == true)
@@ -61,7 +62,7 @@ namespace RF_TRIO_PLL_ZIG
61 62
                 /*NOP*/
62 63
             }
63 64
             serial.Serial_Main_Form_Get(this);
64
-            
65
+
65 66
 
66 67
         }
67 68
 
@@ -81,10 +82,10 @@ namespace RF_TRIO_PLL_ZIG
81 82
             return on_off;
82 83
         }
83 84
         private delegate void BoolSet();
84
-        
85
+
85 86
         public void TX_Light_ON()
86 87
         {
87
-            
88
+
88 89
             this.pictureBox_G_TX.Visible = true;
89 90
             this.pictureBox_R_TX.Visible = false;
90 91
         }
@@ -103,28 +104,28 @@ namespace RF_TRIO_PLL_ZIG
103 104
             this.pictureBox_R_RX.Visible = true;
104 105
             this.pictureBox_G_RX.Visible = false;
105 106
         }
107
+
106 108
         private void timer_Tick(object sender, EventArgs e)
107 109
         {
110
+            
108 111
             if (this.pictureBox_G_TX.Visible == true)
109 112
             {
110 113
                 TX_Light_OFF();
111 114
             }
112
-            if(this.pictureBox_G_RX.Visible == true)
115
+            if (this.pictureBox_G_RX.Visible == true)
113 116
             {
114 117
                 RX_Light_OFF();
115 118
             }
116 119
         }
117
-
118
-    
119 120
         private void Main_Form_Load(object sender, EventArgs e)
120 121
         {
121
-            pictureBox_PATH_1_8G_DL_ON.Visible      = !false;
122
-            pictureBox_PATH_1_8G_UL_ON.Visible      = !false; 
123
-            pictureBox_PATH_2_1G_DL_ON.Visible      = !false; 
124
-            pictureBox_PATH_2_1G_UL_ON.Visible      = !false; 
125
-            pictureBox_PATH_3_5G_L_ON.Visible       = !false; 
126
-            pictureBox_PATH_3_5G_H_ON.Visible       = !false; 
127
-            pictureBox_PLL_ON_OFF_3_5G_L_ON.Visible = !false; 
122
+            pictureBox_PATH_1_8G_DL_ON.Visible = !false;
123
+            pictureBox_PATH_1_8G_UL_ON.Visible = !false;
124
+            pictureBox_PATH_2_1G_DL_ON.Visible = !false;
125
+            pictureBox_PATH_2_1G_UL_ON.Visible = !false;
126
+            pictureBox_PATH_3_5G_L_ON.Visible = !false;
127
+            pictureBox_PATH_3_5G_H_ON.Visible = !false;
128
+            pictureBox_PLL_ON_OFF_3_5G_L_ON.Visible = !false;
128 129
             pictureBox_PLL_ON_OFF_3_5G_H_ON.Visible = !false;
129 130
             pictureBox_PATH_3_5G_UL_ON.Visible = !false;
130 131
             pictureBox_PATH_3_5G_DL_ON.Visible = !false;
@@ -140,74 +141,247 @@ namespace RF_TRIO_PLL_ZIG
140 141
             pictureBox_PATH_3_5G_UL_OFF.Visible = false;
141 142
             pictureBox_PATH_3_5G_DL_OFF.Visible = false;
142 143
 
143
-            pictureBox_G_RX.Visible                 = !false;
144
-            pictureBox_G_TX.Visible                 = !false;
145
-            /*        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_L_OFF;
146
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_H_OFF;
147
-        public System.Windows.Forms.PictureBox pictureBox_PLL_ON_OFF_3_5G_L_OFF;
148
-        public System.Windows.Forms.PictureBox pictureBox_PLL_ON_OFF_3_5G_H_OFF;
149
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_UL_OFF;
150
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_DL_OFF;
151
-        public System.Windows.Forms.PictureBox pictureBox_PATH_2_1G_UL_OFF;
152
-        public System.Windows.Forms.PictureBox pictureBox_PATH_2_1G_DL_OFF;
153
-        public System.Windows.Forms.PictureBox pictureBox_PATH_1_8G_UL_OFF;
154
-        public System.Windows.Forms.PictureBox pictureBox_PATH_1_8G_DL_OFF;
155
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_L_ON;
156
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_H_ON;
157
-        public System.Windows.Forms.PictureBox pictureBox_PLL_ON_OFF_3_5G_L_ON;
158
-        public System.Windows.Forms.PictureBox pictureBox_PLL_ON_OFF_3_5G_H_ON;
159
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_UL_ON;
160
-        public System.Windows.Forms.PictureBox pictureBox_PATH_3_5G_DL_ON;
161
-        public System.Windows.Forms.PictureBox pictureBox_PATH_2_1G_UL_ON;
162
-        public System.Windows.Forms.PictureBox pictureBox_PATH_2_1G_DL_ON;
163
-        public System.Windows.Forms.PictureBox pictureBox_PATH_1_8G_UL_ON;;*/
144
+            pictureBox_G_RX.Visible = !false;
145
+            pictureBox_G_TX.Visible = !false;        
164 146
 
165 147
         }
166 148
         private delegate void StringSend(object label, String str);
167 149
         public void ADC_Voltage_Value_Set(byte[] data)
168 150
         {
169 151
             int temp_val = 0;
152
+            double Volt_Calc_val = 3.3 / 4095;
153
+            double ret = 0;
170 154
             try
171 155
             {
172
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_L]);
173
-
174
-                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_DL_IN, Convert.ToString(temp_val));
175
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_L]);
176
-                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_DL_OUT, Convert.ToString(temp_val));
177
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_L]);
178
-                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_UL_IN, Convert.ToString(temp_val));
179
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_L]);
180
-                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_UL_OUT, Convert.ToString(temp_val));
181
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_L]);
182
-                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_DL_IN, Convert.ToString(temp_val));
183
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_L]);
184
-                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_DL_OUT, Convert.ToString(temp_val));
185
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_L]);
186
-                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_UL_IN, Convert.ToString(temp_val));
187
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_L]);
188
-                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_UL_OUT, Convert.ToString(temp_val));
189
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_L]);
190
-                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_DL_IN, Convert.ToString(temp_val));
191
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_L]);
192
-                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_DL_OUT, Convert.ToString(temp_val));
193
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_L]);
194
-                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_UL_IN, Convert.ToString(temp_val));
195
-                temp_val = (int)(data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_H] << 8) | (data[(int)Bluecell_ProtIndex_p.Bluecell_data + (int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_L]);
196
-                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_UL_OUT, Convert.ToString(temp_val));
156
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_IN_L]);
157
+                ret = temp_val * Volt_Calc_val;
158
+                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_DL_IN, ret.ToString("N2") + "V");
159
+
160
+
161
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_1_8G_DL_OUT_L]);
162
+                ret = temp_val * Volt_Calc_val;
163
+                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_DL_OUT, ret.ToString("N2") + "V");
164
+
165
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_IN_L]);
166
+                ret = temp_val * Volt_Calc_val;
167
+                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_UL_IN, ret.ToString("N2") + "V");
168
+
169
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_1_8G_UL_OUT_L]);
170
+                ret = temp_val * Volt_Calc_val;
171
+                this.Invoke(new StringSend(Label_Text_Set), label1_8GHz_UL_OUT, ret.ToString("N2") + "V");
172
+
173
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_IN_L]);
174
+                ret = temp_val * Volt_Calc_val;
175
+                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_DL_IN, ret.ToString("N2") + "V");
176
+
177
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_2_1G_DL_OUT_L]);
178
+                ret = temp_val * Volt_Calc_val;
179
+                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_DL_OUT, ret.ToString("N2") + "V");
180
+
181
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_IN_L]);
182
+                ret = temp_val * Volt_Calc_val;
183
+                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_UL_IN, ret.ToString("N2") + "V");
184
+
185
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_2_1G_UL_OUT_L]);
186
+                ret = temp_val * Volt_Calc_val;
187
+                this.Invoke(new StringSend(Label_Text_Set), label2_1GHz_UL_OUT, ret.ToString("N2") + "V");
188
+
189
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_IN_L]);
190
+                ret = temp_val * Volt_Calc_val;
191
+                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_DL_IN, ret.ToString("N2") + "V");
192
+
193
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_3_5G_DL_OUT_L]);
194
+                ret = temp_val * Volt_Calc_val;
195
+                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_DL_OUT, ret.ToString("N2") + "V");
196
+
197
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_IN_L]);
198
+                ret = temp_val * Volt_Calc_val;
199
+                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_UL_IN, ret.ToString("N2") + "V");
200
+
201
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_H] << 8) | (data[(int)Bluecell_TypeIndex_t.DET_3_5G_UL_OUT_L]);
202
+                ret = temp_val * Volt_Calc_val;
203
+                this.Invoke(new StringSend(Label_Text_Set), label3_5GHz_UL_OUT, ret.ToString("N2") + "V");
204
+
205
+
206
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t.RFU_TEMP_H] << 8) | (data[(int)Bluecell_TypeIndex_t.RFU_TEMP_L]);
207
+                ret = temp_val * Volt_Calc_val;
208
+                this.Invoke(new StringSend(Label_Text_Set), label_RFU_Temp, ret.ToString("N2") + "V");
209
+
210
+                temp_val = (int)(data[(int)Bluecell_TypeIndex_t._28V_DET_H] << 8) | (data[(int)Bluecell_TypeIndex_t._28V_DET_L]);
211
+                ret = temp_val * Volt_Calc_val;
212
+                this.Invoke(new StringSend(Label_Text_Set), label_28V_Det, ret.ToString("N2") + "V");
213
+                if (IamSetting_Get() == false)
214
+                {
215
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
216
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
217
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, ret.ToString());
218
+
219
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL2];
220
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
221
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL2, ret.ToString());
222
+
223
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL1];
224
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
225
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_UL1, ret.ToString());
226
+
227
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL2];
228
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
229
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_UL2, ret.ToString());
230
+
231
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL3];
232
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
233
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_UL3, ret.ToString());
234
+
235
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_UL4];
236
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
237
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_UL4, ret.ToString());
238
+
239
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_DL1];
240
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
241
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_DL1, ret.ToString());
242
+
243
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_DL2];
244
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
245
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_DL2, ret.ToString());
246
+
247
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL1];
248
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
249
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL1, ret.ToString());
250
+
251
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL2];
252
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
253
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL2, ret.ToString());
254
+
255
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL3];
256
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
257
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL3, ret.ToString());
258
+
259
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_2_1G_UL4];
260
+                    ret = bluecell_BootProtocol.Bluecell_Reverse_BDA4601_Calc(temp_val);
261
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_2_1G_UL4, ret.ToString());
262
+
263
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_DL];
264
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
265
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_DL, ret.ToString());
266
+
267
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_UL];
268
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
269
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_UL, ret.ToString());
270
+
271
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM1];
272
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
273
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM1, ret.ToString());
274
+
275
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM2];
276
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
277
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM2, ret.ToString());
278
+
279
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_3_5G_COM3];
280
+                    ret = bluecell_BootProtocol.Bluecell_ReversePE43711_Calc(temp_val);
281
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM3, ret.ToString());
282
+
283
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L];
284
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, temp_val.ToString());
285
+
286
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L];
287
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, temp_val.ToString());
288
+
289
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L];
290
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, temp_val.ToString());
291
+
292
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L];
293
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, temp_val.ToString());
294
+
295
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L];
296
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_DL, temp_val.ToString());
297
+
298
+                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L];
299
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, temp_val.ToString());
300
+
301
+/*                    temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] << 8 | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L];
302
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
303
+
304
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
305
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
306
+
307
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
308
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
309
+
310
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
311
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
312
+
313
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
314
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
315
+
316
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
317
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
318
+
319
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
320
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
321
+
322
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
323
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
324
+
325
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
326
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
327
+
328
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
329
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
330
+
331
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
332
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
333
+
334
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
335
+                    this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL1, temp_val.ToString());
336
+
337
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
338
+                    */
339
+
340
+                    temp_val = data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL1];
341
+                    // this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_1_8G_DL2, data[(int)Bluecell_TypeIndex_t.ATT_1_8G_DL2]);
342
+
343
+                }
344
+
197 345
             }
198
-            catch { }
199 346
 
347
+            catch { /*MessageBox.Show("What is this?");*/ }
348
+        }
349
+        public void ReSetting_Values(byte[] temp_buf)
350
+        {
351
+            this.numericUpDown_ATT_1_8G_DL1.Text = temp_buf[(byte)Bluecell_TypeIndex_t.ATT_1_8G_DL1].ToString();
352
+            /*this.numericUpDown_ATT_1_8G_DL2.Text;
353
+            this.numericUpDown_ATT_1_8G_UL1.Text;
354
+            this.numericUpDown_ATT_1_8G_UL2.Text;
355
+            this.numericUpDown_ATT_1_8G_UL3.Text;
356
+            this.numericUpDown_ATT_1_8G_UL4.Text;
357
+            this.numericUpDown_ATT_2_1G_DL1.Text;
358
+            this.numericUpDown_ATT_2_1G_DL2.Text;
359
+            this.numericUpDown_ATT_2_1G_UL1.Text;
360
+            this.numericUpDown_ATT_2_1G_UL2.Text;
361
+            this.numericUpDown_ATT_2_1G_UL3.Text;
362
+            this.numericUpDown_ATT_2_1G_UL4.Text;
363
+            this.numericUpDown_ATT_3_5G_DL.Text;
364
+            this.numericUpDown_ATT_3_5G_UL.Text;
365
+            this.numericUpDown_ATT_3_5G_COM1.Text;
366
+            this.numericUpDown_ATT_3_5G_COM2.Text;
367
+            this.numericUpDown_ATT_3_5G_COM3.Text;*/
200 368
 
201 369
         }
202
-        private void Label_Text_Set(object label,String str)
370
+        private void Label_Text_Set(object label, String str)
203 371
         {
204 372
             Label Temp_label = (Label)label;
205 373
             Temp_label.Text = str;
206 374
         }
375
+        private void numeric_Text_Set(object numeric, String str)
376
+        {
377
+            NumericUpDown Temp_numeric = (NumericUpDown)numeric;
378
+            Temp_numeric.Text = str;
379
+        }
207 380
         private void ATT_Enter(object sender, KeyEventArgs e)
208 381
         {
209 382
             if (e.KeyCode == Keys.Enter)
210 383
             {
384
+                
211 385
                 Button_Set_Click(sender, e);
212 386
                 //to do
213 387
             }
@@ -216,13 +390,13 @@ namespace RF_TRIO_PLL_ZIG
216 390
                 return;
217 391
             }
218 392
         }
219
-        
393
+
220 394
         private void TDD_T_SYNC_Click(object sender, EventArgs e)
221 395
         {
222 396
             PictureBox pictureBox = (PictureBox)sender;
223 397
             Tdd_T_Sync = Convert.ToByte(pictureBox.Tag);
224 398
             bluecell_BootProtocol.Bluecell_BtnSet(this.serial, this);
225
-  
399
+
226 400
             pictureBox_TDD_T_SYNC_UL_ON.Visible = !pictureBox_TDD_T_SYNC_UL_ON.Visible;
227 401
             pictureBox_TDD_T_SYNC_DL_OFF.Visible = !pictureBox_TDD_T_SYNC_DL_OFF.Visible;
228 402
         }
@@ -252,6 +426,7 @@ namespace RF_TRIO_PLL_ZIG
252 426
             byte temp_tag = 0;
253 427
             PictureBox pictureBox = (PictureBox)sender;
254 428
             temp_tag = Convert.ToByte(pictureBox.Tag);
429
+            
255 430
             switch (temp_tag)
256 431
             {
257 432
                 case PATH_1_8G_DL_OFF:
@@ -334,13 +509,33 @@ namespace RF_TRIO_PLL_ZIG
334 509
             serial.Serial_DataSend(temp_buf, temp_buf[2] + 2);
335 510
         }
336 511
 
337
- 
512
+
338 513
 
339 514
         private void Button_Set_Click(object sender, EventArgs e)
340 515
         {
341 516
             bluecell_BootProtocol.Bluecell_BtnSet(this.serial, this);
342 517
         }
518
+        private bool IamSetting = false;
519
+        private void Activi_Change__Setting(object sender, EventArgs e)
520
+        {
521
+           
522
+            IamSetting = true;
523
+        }
524
+        private void Activi_Change__SettingComplete(object sender, EventArgs e)
525
+        {
526
+            IamSetting = false;
527
+        }
528
+        public bool IamSetting_Get()
529
+        {
530
+            return IamSetting;
531
+        }
343 532
 
344 533
 
534
+        private void Cusor_DeFocus(object sender, EventArgs e)
535
+        {
536
+            GroupBox grp = (GroupBox)sender;
537
+            grp.Focus();
538
+        }
539
+           
345 540
     }
346 541
 }