소스 검색

Hidden 창 수정사항
- 제조일 , 시리얼 넘버, PCB 버전 설정 할 수 있도록 추가
- Main 화면에서 PCB / 시리얼 넘버 / 제조일 확인 할 수 있도록 추가
-

PYJ 5 년 전
부모
커밋
96c3df04a6

BIN
.vs/Jdas_Mbic/v15/.suo


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-shm


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-wal


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 746 - 581
Jdas_Mbic/Hidden.Designer.cs


+ 80 - 1
Jdas_Mbic/Hidden.cs

@@ -11,7 +11,7 @@ using System.Text.RegularExpressions;
11 11
 using System.Threading;
12 12
 using System.Threading.Tasks;
13 13
 using System.Windows.Forms;
14
-
14
+using static Jdas_Mbic.Bluecell_BootProtocol;
15 15
 using Excel = Microsoft.Office.Interop.Excel;
16 16
 namespace Jdas_Mbic
17 17
 {
@@ -1110,5 +1110,84 @@ namespace Jdas_Mbic
1110 1110
 
1111 1111
             }
1112 1112
         }
1113
+
1114
+        private void button_ManufactureSet_Click(object sender, EventArgs e)
1115
+        {
1116
+            byte[] temp_buf = new byte[10];
1117
+            Button button = (Button)sender;
1118
+            DATATYPE datatype;
1119
+            ((JdasMbic)(this.Owner)).ReqTimer_Cnt = 0;
1120
+            char[] tempchardata;
1121
+            string s3 = DateTime.Now.ToString("yyMMdd");
1122
+
1123
+            tempchardata = s3.ToCharArray();
1124
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = ((JdasMbic)(this.Owner)).DataToConvertHex(s3)[0];
1125
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + 1] = ((JdasMbic)(this.Owner)).DataToConvertHex(s3)[1];
1126
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + 2] = ((JdasMbic)(this.Owner)).DataToConvertHex(s3)[2];
1127
+            datatype = DATATYPE.Bluecell_ManufactureDateSet;
1128
+
1129
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
1130
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = Convert.ToByte(datatype);
1131
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = ((7 & 0xFF00) >> 8);
1132
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = (7 & 0x00FF);
1133
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex] = 5;
1134
+            //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = 0;
1135
+            UInt16 CRCRET = ((JdasMbic)(this.Owner)).crc.CRC16_Generate(temp_buf, temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
1136
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + 3] = Convert.ToByte((CRCRET & 0xFF00) >> 8);//CRC
1137
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + 4] = Convert.ToByte(CRCRET & 0x00FF);//CRC
1138
+            ((JdasMbic)(this.Owner)).serial.Serial_DataSend(temp_buf, temp_buf.Length);
1139
+        }
1140
+        //Serial Number : BL-J37C00-20050004  Example 
1141
+        private void button_SerialNumverSet_Click(object sender, EventArgs e)
1142
+        {
1143
+            byte[] temp_buf = new byte[26];
1144
+            int i = 0;
1145
+            Button button = (Button)sender;
1146
+            DATATYPE datatype;
1147
+            ((JdasMbic)(this.Owner)).ReqTimer_Cnt = 0;
1148
+            char[] data = textBox_SerialNumber.Text.ToCharArray();
1149
+
1150
+            //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = textBox_SerialNumber.Text.Split();
1151
+            datatype = DATATYPE.Bluecell_SerialNumberSet;
1152
+            for (i = 0; i < data.Length; i++)
1153
+                temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i] = (Byte)data[i];
1154
+
1155
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
1156
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = Convert.ToByte(datatype);
1157
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = ((23 & 0xFF00) >> 8);
1158
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = (23 & 0x00FF);
1159
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex] = 5;
1160
+            //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = 0;
1161
+            UInt16 CRCRET = ((JdasMbic)(this.Owner)).crc.CRC16_Generate(temp_buf, temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
1162
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i++] = Convert.ToByte((CRCRET & 0xFF00) >> 8);//CRC
1163
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i++] = Convert.ToByte(CRCRET & 0x00FF);//CRC
1164
+            ((JdasMbic)(this.Owner)).serial.Serial_DataSend(temp_buf, temp_buf.Length);
1165
+        }
1166
+
1167
+        private void button_PCBVersionSet_Click(object sender, EventArgs e)
1168
+        {
1169
+            byte[] temp_buf = new byte[9];
1170
+            int i = 0;
1171
+            Button button = (Button)sender;
1172
+            DATATYPE datatype;
1173
+            ((JdasMbic)(this.Owner)).ReqTimer_Cnt = 0;
1174
+            string[] data = textBox_PcbVersion.Text.Split('.');
1175
+
1176
+            //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = textBox_SerialNumber.Text.Split();
1177
+            datatype = DATATYPE.Bluecell_PCBVersionSet;
1178
+            for (i = 0; i < data.Length; i++)
1179
+                temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i] = Convert.ToByte(data[i]);
1180
+
1181
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
1182
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = Convert.ToByte(datatype);
1183
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = ((6 & 0xFF00) >> 8);
1184
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = (6 & 0x00FF);
1185
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex] = 5;
1186
+            //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = 0;
1187
+            UInt16 CRCRET = ((JdasMbic)(this.Owner)).crc.CRC16_Generate(temp_buf, temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
1188
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i++] = Convert.ToByte((CRCRET & 0xFF00) >> 8);//CRC
1189
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data + i++] = Convert.ToByte(CRCRET & 0x00FF);//CRC
1190
+            ((JdasMbic)(this.Owner)).serial.Serial_DataSend(temp_buf, temp_buf.Length);
1191
+        }
1113 1192
     }
1114 1193
 }

+ 6 - 0
Jdas_Mbic/Hidden.resx

@@ -123,6 +123,12 @@
123 123
   <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124 124
     <value>True</value>
125 125
   </metadata>
126
+  <metadata name="Column_DB.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
+    <value>True</value>
128
+  </metadata>
129
+  <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
130
+    <value>True</value>
131
+  </metadata>
126 132
   <metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127 133
     <value>17, 17</value>
128 134
   </metadata>

+ 113 - 132
Jdas_Mbic/Main.Designer.cs

@@ -93,21 +93,24 @@
93 93
             this.textBox_DET_UL2_dBm = new System.Windows.Forms.TextBox();
94 94
             this.textBox_DET_DL2 = new System.Windows.Forms.TextBox();
95 95
             this.textBox_DET_UL2 = new System.Windows.Forms.TextBox();
96
-            this.numericUpDown_DLI_Level_High_Threshold = new System.Windows.Forms.NumericUpDown();
97
-            this.numericUpDown_DLI_Level_Low_Threshold = new System.Windows.Forms.NumericUpDown();
98 96
             this.numericUpDown_MASK = new System.Windows.Forms.NumericUpDown();
99 97
             this.label_MASK = new System.Windows.Forms.Label();
100 98
             this.timer_JdasMbic = new System.Windows.Forms.Timer(this.components);
101 99
             this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
102
-            this.label_CPU_Version = new System.Windows.Forms.Label();
100
+            this.label_CurrBank = new System.Windows.Forms.Label();
103 101
             this.button1 = new System.Windows.Forms.Button();
104 102
             this.button_FactorySet = new System.Windows.Forms.Button();
105 103
             this.panel1 = new System.Windows.Forms.Panel();
106
-            this.button_PCBVersionSet = new System.Windows.Forms.Button();
107
-            this.button_SerialNumverSet = new System.Windows.Forms.Button();
108
-            this.button_ManufactureSet = new System.Windows.Forms.Button();
104
+            this.textBox_Bank2Name = new System.Windows.Forms.TextBox();
105
+            this.label8 = new System.Windows.Forms.Label();
106
+            this.textBox_Bank1Name = new System.Windows.Forms.TextBox();
107
+            this.label6 = new System.Windows.Forms.Label();
108
+            this.textBox_CurrBank = new System.Windows.Forms.TextBox();
109
+            this.textBox_DLI_Level_Low_Threshold = new System.Windows.Forms.TextBox();
110
+            this.textBox_DLI_Level_High_Threshold = new System.Windows.Forms.TextBox();
111
+            this.textBox_ULO_Level_High_Threshold = new System.Windows.Forms.TextBox();
109 112
             this.label4 = new System.Windows.Forms.Label();
110
-            this.textBox10 = new System.Windows.Forms.TextBox();
113
+            this.textBox_MunufactureDate = new System.Windows.Forms.TextBox();
111 114
             this.label5 = new System.Windows.Forms.Label();
112 115
             this.label_SerialNumber = new System.Windows.Forms.Label();
113 116
             this.textBox_PcbVersion = new System.Windows.Forms.TextBox();
@@ -313,8 +316,6 @@
313 316
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_UL2_User)).BeginInit();
314 317
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_DL2)).BeginInit();
315 318
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_UL2)).BeginInit();
316
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DLI_Level_High_Threshold)).BeginInit();
317
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DLI_Level_Low_Threshold)).BeginInit();
318 319
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_MASK)).BeginInit();
319 320
             this.panel1.SuspendLayout();
320 321
             this.panel_Serial.SuspendLayout();
@@ -405,7 +406,7 @@
405 406
             // 
406 407
             // textBox_FRBT_TIME
407 408
             // 
408
-            this.textBox_FRBT_TIME.Location = new System.Drawing.Point(454, 132);
409
+            this.textBox_FRBT_TIME.Location = new System.Drawing.Point(700, 132);
409 410
             this.textBox_FRBT_TIME.Name = "textBox_FRBT_TIME";
410 411
             this.textBox_FRBT_TIME.Size = new System.Drawing.Size(67, 23);
411 412
             this.textBox_FRBT_TIME.TabIndex = 153;
@@ -1040,7 +1041,7 @@
1040 1041
             // 
1041 1042
             // button_FRBT_TimeSetting
1042 1043
             // 
1043
-            this.button_FRBT_TimeSetting.Location = new System.Drawing.Point(534, 133);
1044
+            this.button_FRBT_TimeSetting.Location = new System.Drawing.Point(780, 133);
1044 1045
             this.button_FRBT_TimeSetting.Name = "button_FRBT_TimeSetting";
1045 1046
             this.button_FRBT_TimeSetting.Size = new System.Drawing.Size(75, 23);
1046 1047
             this.button_FRBT_TimeSetting.TabIndex = 146;
@@ -1432,60 +1433,6 @@
1432 1433
             this.textBox_DET_UL2.Size = new System.Drawing.Size(65, 23);
1433 1434
             this.textBox_DET_UL2.TabIndex = 149;
1434 1435
             // 
1435
-            // numericUpDown_DLI_Level_High_Threshold
1436
-            // 
1437
-            this.numericUpDown_DLI_Level_High_Threshold.DecimalPlaces = 2;
1438
-            this.numericUpDown_DLI_Level_High_Threshold.Location = new System.Drawing.Point(323, 299);
1439
-            this.numericUpDown_DLI_Level_High_Threshold.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1440
-            this.numericUpDown_DLI_Level_High_Threshold.Maximum = new decimal(new int[] {
1441
-            9,
1442
-            0,
1443
-            0,
1444
-            0});
1445
-            this.numericUpDown_DLI_Level_High_Threshold.Minimum = new decimal(new int[] {
1446
-            42,
1447
-            0,
1448
-            0,
1449
-            -2147483648});
1450
-            this.numericUpDown_DLI_Level_High_Threshold.Name = "numericUpDown_DLI_Level_High_Threshold";
1451
-            this.numericUpDown_DLI_Level_High_Threshold.Size = new System.Drawing.Size(65, 23);
1452
-            this.numericUpDown_DLI_Level_High_Threshold.TabIndex = 103;
1453
-            this.numericUpDown_DLI_Level_High_Threshold.Value = new decimal(new int[] {
1454
-            15,
1455
-            0,
1456
-            0,
1457
-            -2147483648});
1458
-            this.numericUpDown_DLI_Level_High_Threshold.Enter += new System.EventHandler(this.Activi_Change__SettingComplete);
1459
-            this.numericUpDown_DLI_Level_High_Threshold.KeyDown += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_User_KeyDown);
1460
-            this.numericUpDown_DLI_Level_High_Threshold.Leave += new System.EventHandler(this.Activi_Change__Setting);
1461
-            // 
1462
-            // numericUpDown_DLI_Level_Low_Threshold
1463
-            // 
1464
-            this.numericUpDown_DLI_Level_Low_Threshold.DecimalPlaces = 2;
1465
-            this.numericUpDown_DLI_Level_Low_Threshold.Location = new System.Drawing.Point(403, 299);
1466
-            this.numericUpDown_DLI_Level_Low_Threshold.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1467
-            this.numericUpDown_DLI_Level_Low_Threshold.Maximum = new decimal(new int[] {
1468
-            7,
1469
-            0,
1470
-            0,
1471
-            0});
1472
-            this.numericUpDown_DLI_Level_Low_Threshold.Minimum = new decimal(new int[] {
1473
-            44,
1474
-            0,
1475
-            0,
1476
-            -2147483648});
1477
-            this.numericUpDown_DLI_Level_Low_Threshold.Name = "numericUpDown_DLI_Level_Low_Threshold";
1478
-            this.numericUpDown_DLI_Level_Low_Threshold.Size = new System.Drawing.Size(65, 23);
1479
-            this.numericUpDown_DLI_Level_Low_Threshold.TabIndex = 103;
1480
-            this.numericUpDown_DLI_Level_Low_Threshold.Value = new decimal(new int[] {
1481
-            7,
1482
-            0,
1483
-            0,
1484
-            0});
1485
-            this.numericUpDown_DLI_Level_Low_Threshold.Enter += new System.EventHandler(this.Activi_Change__SettingComplete);
1486
-            this.numericUpDown_DLI_Level_Low_Threshold.KeyDown += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_User_KeyDown);
1487
-            this.numericUpDown_DLI_Level_Low_Threshold.Leave += new System.EventHandler(this.Activi_Change__Setting);
1488
-            // 
1489 1436
             // numericUpDown_MASK
1490 1437
             // 
1491 1438
             this.numericUpDown_MASK.Location = new System.Drawing.Point(820, 172);
@@ -1517,14 +1464,14 @@
1517 1464
             this.timer_JdasMbic.Interval = 166;
1518 1465
             this.timer_JdasMbic.Tick += new System.EventHandler(this.timer1_Tick);
1519 1466
             // 
1520
-            // label_CPU_Version
1467
+            // label_CurrBank
1521 1468
             // 
1522
-            this.label_CPU_Version.AutoSize = true;
1523
-            this.label_CPU_Version.Location = new System.Drawing.Point(20, 128);
1524
-            this.label_CPU_Version.Name = "label_CPU_Version";
1525
-            this.label_CPU_Version.Size = new System.Drawing.Size(74, 15);
1526
-            this.label_CPU_Version.TabIndex = 150;
1527
-            this.label_CPU_Version.Text = "CPU Version";
1469
+            this.label_CurrBank.AutoSize = true;
1470
+            this.label_CurrBank.Location = new System.Drawing.Point(28, 127);
1471
+            this.label_CurrBank.Name = "label_CurrBank";
1472
+            this.label_CurrBank.Size = new System.Drawing.Size(33, 15);
1473
+            this.label_CurrBank.TabIndex = 150;
1474
+            this.label_CurrBank.Text = "Bank";
1528 1475
             // 
1529 1476
             // button1
1530 1477
             // 
@@ -1549,18 +1496,23 @@
1549 1496
             // panel1
1550 1497
             // 
1551 1498
             this.panel1.BackColor = System.Drawing.Color.White;
1552
-            this.panel1.Controls.Add(this.button_PCBVersionSet);
1553
-            this.panel1.Controls.Add(this.button_SerialNumverSet);
1554
-            this.panel1.Controls.Add(this.button_ManufactureSet);
1499
+            this.panel1.Controls.Add(this.textBox_Bank2Name);
1500
+            this.panel1.Controls.Add(this.label8);
1501
+            this.panel1.Controls.Add(this.textBox_Bank1Name);
1502
+            this.panel1.Controls.Add(this.label6);
1503
+            this.panel1.Controls.Add(this.textBox_CurrBank);
1504
+            this.panel1.Controls.Add(this.textBox_DLI_Level_Low_Threshold);
1505
+            this.panel1.Controls.Add(this.textBox_DLI_Level_High_Threshold);
1506
+            this.panel1.Controls.Add(this.textBox_ULO_Level_High_Threshold);
1555 1507
             this.panel1.Controls.Add(this.label4);
1556
-            this.panel1.Controls.Add(this.textBox10);
1508
+            this.panel1.Controls.Add(this.textBox_MunufactureDate);
1557 1509
             this.panel1.Controls.Add(this.label5);
1558 1510
             this.panel1.Controls.Add(this.label_SerialNumber);
1559 1511
             this.panel1.Controls.Add(this.textBox_PcbVersion);
1560 1512
             this.panel1.Controls.Add(this.textBox_SerialNumber);
1561 1513
             this.panel1.Controls.Add(this.label_CompileDate);
1562 1514
             this.panel1.Controls.Add(this.label7);
1563
-            this.panel1.Controls.Add(this.label_CPU_Version);
1515
+            this.panel1.Controls.Add(this.label_CurrBank);
1564 1516
             this.panel1.Controls.Add(this.button_SelfTest2);
1565 1517
             this.panel1.Controls.Add(this.button_SelfTest4);
1566 1518
             this.panel1.Controls.Add(this.button_SelfTest1);
@@ -1600,8 +1552,6 @@
1600 1552
             this.panel1.Controls.Add(this.button_UL_Shutdown);
1601 1553
             this.panel1.Controls.Add(this.button_AGC);
1602 1554
             this.panel1.Controls.Add(this.button_ALC);
1603
-            this.panel1.Controls.Add(this.numericUpDown_DLI_Level_High_Threshold);
1604
-            this.panel1.Controls.Add(this.numericUpDown_DLI_Level_Low_Threshold);
1605 1555
             this.panel1.Controls.Add(this.textBox_DL_ShutdownLimit);
1606 1556
             this.panel1.Controls.Add(this.textBox_UL_ShutdownLimit);
1607 1557
             this.panel1.Controls.Add(this.textBox_DLI_AGC_Threshold);
@@ -1647,56 +1597,86 @@
1647 1597
             this.panel1.Size = new System.Drawing.Size(1136, 895);
1648 1598
             this.panel1.TabIndex = 159;
1649 1599
             // 
1650
-            // button_PCBVersionSet
1600
+            // textBox_Bank2Name
1601
+            // 
1602
+            this.textBox_Bank2Name.Location = new System.Drawing.Point(233, 103);
1603
+            this.textBox_Bank2Name.Name = "textBox_Bank2Name";
1604
+            this.textBox_Bank2Name.Size = new System.Drawing.Size(186, 23);
1605
+            this.textBox_Bank2Name.TabIndex = 172;
1606
+            // 
1607
+            // label8
1608
+            // 
1609
+            this.label8.AutoSize = true;
1610
+            this.label8.Location = new System.Drawing.Point(187, 106);
1611
+            this.label8.Name = "label8";
1612
+            this.label8.Size = new System.Drawing.Size(44, 15);
1613
+            this.label8.TabIndex = 171;
1614
+            this.label8.Text = "Bank 2";
1615
+            // 
1616
+            // textBox_Bank1Name
1617
+            // 
1618
+            this.textBox_Bank1Name.Location = new System.Drawing.Point(233, 79);
1619
+            this.textBox_Bank1Name.Name = "textBox_Bank1Name";
1620
+            this.textBox_Bank1Name.Size = new System.Drawing.Size(186, 23);
1621
+            this.textBox_Bank1Name.TabIndex = 172;
1622
+            // 
1623
+            // label6
1624
+            // 
1625
+            this.label6.AutoSize = true;
1626
+            this.label6.Location = new System.Drawing.Point(186, 82);
1627
+            this.label6.Name = "label6";
1628
+            this.label6.Size = new System.Drawing.Size(44, 15);
1629
+            this.label6.TabIndex = 171;
1630
+            this.label6.Text = "Bank 1";
1631
+            // 
1632
+            // textBox_CurrBank
1633
+            // 
1634
+            this.textBox_CurrBank.Location = new System.Drawing.Point(105, 124);
1635
+            this.textBox_CurrBank.Name = "textBox_CurrBank";
1636
+            this.textBox_CurrBank.Size = new System.Drawing.Size(63, 23);
1637
+            this.textBox_CurrBank.TabIndex = 170;
1638
+            // 
1639
+            // textBox_DLI_Level_Low_Threshold
1651 1640
             // 
1652
-            this.button_PCBVersionSet.Location = new System.Drawing.Point(888, 131);
1653
-            this.button_PCBVersionSet.Name = "button_PCBVersionSet";
1654
-            this.button_PCBVersionSet.Size = new System.Drawing.Size(75, 23);
1655
-            this.button_PCBVersionSet.TabIndex = 165;
1656
-            this.button_PCBVersionSet.Text = "Apply";
1657
-            this.button_PCBVersionSet.UseVisualStyleBackColor = true;
1658
-            this.button_PCBVersionSet.Click += new System.EventHandler(this.button_PCBVersionSet_Click);
1641
+            this.textBox_DLI_Level_Low_Threshold.Location = new System.Drawing.Point(403, 303);
1642
+            this.textBox_DLI_Level_Low_Threshold.Name = "textBox_DLI_Level_Low_Threshold";
1643
+            this.textBox_DLI_Level_Low_Threshold.Size = new System.Drawing.Size(65, 23);
1644
+            this.textBox_DLI_Level_Low_Threshold.TabIndex = 169;
1659 1645
             // 
1660
-            // button_SerialNumverSet
1646
+            // textBox_DLI_Level_High_Threshold
1661 1647
             // 
1662
-            this.button_SerialNumverSet.Location = new System.Drawing.Point(888, 102);
1663
-            this.button_SerialNumverSet.Name = "button_SerialNumverSet";
1664
-            this.button_SerialNumverSet.Size = new System.Drawing.Size(75, 23);
1665
-            this.button_SerialNumverSet.TabIndex = 165;
1666
-            this.button_SerialNumverSet.Text = "Apply";
1667
-            this.button_SerialNumverSet.UseVisualStyleBackColor = true;
1668
-            this.button_SerialNumverSet.Click += new System.EventHandler(this.button_SerialNumverSet_Click);
1648
+            this.textBox_DLI_Level_High_Threshold.Location = new System.Drawing.Point(323, 304);
1649
+            this.textBox_DLI_Level_High_Threshold.Name = "textBox_DLI_Level_High_Threshold";
1650
+            this.textBox_DLI_Level_High_Threshold.Size = new System.Drawing.Size(65, 23);
1651
+            this.textBox_DLI_Level_High_Threshold.TabIndex = 168;
1669 1652
             // 
1670
-            // button_ManufactureSet
1653
+            // textBox_ULO_Level_High_Threshold
1671 1654
             // 
1672
-            this.button_ManufactureSet.Location = new System.Drawing.Point(888, 73);
1673
-            this.button_ManufactureSet.Name = "button_ManufactureSet";
1674
-            this.button_ManufactureSet.Size = new System.Drawing.Size(75, 23);
1675
-            this.button_ManufactureSet.TabIndex = 165;
1676
-            this.button_ManufactureSet.Text = "Apply";
1677
-            this.button_ManufactureSet.UseVisualStyleBackColor = true;
1678
-            this.button_ManufactureSet.Click += new System.EventHandler(this.button_ManufactureSet_Click);
1655
+            this.textBox_ULO_Level_High_Threshold.Location = new System.Drawing.Point(824, 300);
1656
+            this.textBox_ULO_Level_High_Threshold.Name = "textBox_ULO_Level_High_Threshold";
1657
+            this.textBox_ULO_Level_High_Threshold.Size = new System.Drawing.Size(65, 23);
1658
+            this.textBox_ULO_Level_High_Threshold.TabIndex = 167;
1679 1659
             // 
1680 1660
             // label4
1681 1661
             // 
1682 1662
             this.label4.AutoSize = true;
1683
-            this.label4.Location = new System.Drawing.Point(673, 76);
1663
+            this.label4.Location = new System.Drawing.Point(919, 76);
1684 1664
             this.label4.Name = "label4";
1685 1665
             this.label4.Size = new System.Drawing.Size(59, 15);
1686 1666
             this.label4.TabIndex = 164;
1687 1667
             this.label4.Text = "제조 일자";
1688 1668
             // 
1689
-            // textBox10
1669
+            // textBox_MunufactureDate
1690 1670
             // 
1691
-            this.textBox10.Location = new System.Drawing.Point(759, 73);
1692
-            this.textBox10.Name = "textBox10";
1693
-            this.textBox10.Size = new System.Drawing.Size(115, 23);
1694
-            this.textBox10.TabIndex = 163;
1671
+            this.textBox_MunufactureDate.Location = new System.Drawing.Point(1005, 73);
1672
+            this.textBox_MunufactureDate.Name = "textBox_MunufactureDate";
1673
+            this.textBox_MunufactureDate.Size = new System.Drawing.Size(115, 23);
1674
+            this.textBox_MunufactureDate.TabIndex = 163;
1695 1675
             // 
1696 1676
             // label5
1697 1677
             // 
1698 1678
             this.label5.AutoSize = true;
1699
-            this.label5.Location = new System.Drawing.Point(670, 135);
1679
+            this.label5.Location = new System.Drawing.Point(916, 135);
1700 1680
             this.label5.Name = "label5";
1701 1681
             this.label5.Size = new System.Drawing.Size(73, 15);
1702 1682
             this.label5.TabIndex = 162;
@@ -1705,7 +1685,7 @@
1705 1685
             // label_SerialNumber
1706 1686
             // 
1707 1687
             this.label_SerialNumber.AutoSize = true;
1708
-            this.label_SerialNumber.Location = new System.Drawing.Point(666, 106);
1688
+            this.label_SerialNumber.Location = new System.Drawing.Point(912, 106);
1709 1689
             this.label_SerialNumber.Name = "label_SerialNumber";
1710 1690
             this.label_SerialNumber.Size = new System.Drawing.Size(71, 15);
1711 1691
             this.label_SerialNumber.TabIndex = 161;
@@ -1713,14 +1693,14 @@
1713 1693
             // 
1714 1694
             // textBox_PcbVersion
1715 1695
             // 
1716
-            this.textBox_PcbVersion.Location = new System.Drawing.Point(759, 132);
1696
+            this.textBox_PcbVersion.Location = new System.Drawing.Point(1005, 132);
1717 1697
             this.textBox_PcbVersion.Name = "textBox_PcbVersion";
1718 1698
             this.textBox_PcbVersion.Size = new System.Drawing.Size(115, 23);
1719 1699
             this.textBox_PcbVersion.TabIndex = 159;
1720 1700
             // 
1721 1701
             // textBox_SerialNumber
1722 1702
             // 
1723
-            this.textBox_SerialNumber.Location = new System.Drawing.Point(759, 103);
1703
+            this.textBox_SerialNumber.Location = new System.Drawing.Point(1005, 103);
1724 1704
             this.textBox_SerialNumber.Name = "textBox_SerialNumber";
1725 1705
             this.textBox_SerialNumber.Size = new System.Drawing.Size(115, 23);
1726 1706
             this.textBox_SerialNumber.TabIndex = 158;
@@ -2127,28 +2107,28 @@
2127 2107
             // 
2128 2108
             // textBox_DLI_FRBT_D_Day
2129 2109
             // 
2130
-            this.textBox_DLI_FRBT_D_Day.Location = new System.Drawing.Point(534, 76);
2110
+            this.textBox_DLI_FRBT_D_Day.Location = new System.Drawing.Point(780, 76);
2131 2111
             this.textBox_DLI_FRBT_D_Day.Name = "textBox_DLI_FRBT_D_Day";
2132 2112
             this.textBox_DLI_FRBT_D_Day.Size = new System.Drawing.Size(75, 23);
2133 2113
             this.textBox_DLI_FRBT_D_Day.TabIndex = 11;
2134 2114
             // 
2135 2115
             // textBox_FRBT_Status
2136 2116
             // 
2137
-            this.textBox_FRBT_Status.Location = new System.Drawing.Point(534, 104);
2117
+            this.textBox_FRBT_Status.Location = new System.Drawing.Point(780, 104);
2138 2118
             this.textBox_FRBT_Status.Name = "textBox_FRBT_Status";
2139 2119
             this.textBox_FRBT_Status.Size = new System.Drawing.Size(75, 23);
2140 2120
             this.textBox_FRBT_Status.TabIndex = 11;
2141 2121
             // 
2142 2122
             // textBox1_Carrier
2143 2123
             // 
2144
-            this.textBox1_Carrier.Location = new System.Drawing.Point(244, 99);
2124
+            this.textBox1_Carrier.Location = new System.Drawing.Point(490, 99);
2145 2125
             this.textBox1_Carrier.Name = "textBox1_Carrier";
2146 2126
             this.textBox1_Carrier.Size = new System.Drawing.Size(75, 23);
2147 2127
             this.textBox1_Carrier.TabIndex = 9;
2148 2128
             // 
2149 2129
             // button_Carrier
2150 2130
             // 
2151
-            this.button_Carrier.Location = new System.Drawing.Point(329, 96);
2131
+            this.button_Carrier.Location = new System.Drawing.Point(575, 96);
2152 2132
             this.button_Carrier.Name = "button_Carrier";
2153 2133
             this.button_Carrier.Size = new System.Drawing.Size(75, 23);
2154 2134
             this.button_Carrier.TabIndex = 8;
@@ -2158,7 +2138,7 @@
2158 2138
             // 
2159 2139
             // button_LedTest
2160 2140
             // 
2161
-            this.button_LedTest.Location = new System.Drawing.Point(244, 73);
2141
+            this.button_LedTest.Location = new System.Drawing.Point(490, 73);
2162 2142
             this.button_LedTest.Name = "button_LedTest";
2163 2143
             this.button_LedTest.Size = new System.Drawing.Size(75, 23);
2164 2144
             this.button_LedTest.TabIndex = 7;
@@ -2175,7 +2155,7 @@
2175 2155
             // 
2176 2156
             // textBox_CpuVersion
2177 2157
             // 
2178
-            this.textBox_CpuVersion.Location = new System.Drawing.Point(105, 98);
2158
+            this.textBox_CpuVersion.Location = new System.Drawing.Point(105, 100);
2179 2159
             this.textBox_CpuVersion.Name = "textBox_CpuVersion";
2180 2160
             this.textBox_CpuVersion.Size = new System.Drawing.Size(63, 23);
2181 2161
             this.textBox_CpuVersion.TabIndex = 6;
@@ -3275,7 +3255,7 @@
3275 3255
             // label71
3276 3256
             // 
3277 3257
             this.label71.AutoSize = true;
3278
-            this.label71.Location = new System.Drawing.Point(451, 108);
3258
+            this.label71.Location = new System.Drawing.Point(697, 108);
3279 3259
             this.label71.Name = "label71";
3280 3260
             this.label71.Size = new System.Drawing.Size(70, 15);
3281 3261
             this.label71.TabIndex = 1;
@@ -3284,7 +3264,7 @@
3284 3264
             // label70
3285 3265
             // 
3286 3266
             this.label70.AutoSize = true;
3287
-            this.label70.Location = new System.Drawing.Point(451, 79);
3267
+            this.label70.Location = new System.Drawing.Point(697, 79);
3288 3268
             this.label70.Name = "label70";
3289 3269
             this.label70.Size = new System.Drawing.Size(72, 15);
3290 3270
             this.label70.TabIndex = 1;
@@ -3293,7 +3273,7 @@
3293 3273
             // label69
3294 3274
             // 
3295 3275
             this.label69.AutoSize = true;
3296
-            this.label69.Location = new System.Drawing.Point(179, 102);
3276
+            this.label69.Location = new System.Drawing.Point(425, 102);
3297 3277
             this.label69.Name = "label69";
3298 3278
             this.label69.Size = new System.Drawing.Size(42, 15);
3299 3279
             this.label69.TabIndex = 1;
@@ -3302,7 +3282,7 @@
3302 3282
             // label68
3303 3283
             // 
3304 3284
             this.label68.AutoSize = true;
3305
-            this.label68.Location = new System.Drawing.Point(179, 79);
3285
+            this.label68.Location = new System.Drawing.Point(425, 79);
3306 3286
             this.label68.Name = "label68";
3307 3287
             this.label68.Size = new System.Drawing.Size(53, 15);
3308 3288
             this.label68.TabIndex = 1;
@@ -3477,8 +3457,6 @@
3477 3457
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_UL2_User)).EndInit();
3478 3458
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_DL2)).EndInit();
3479 3459
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ATT_UL2)).EndInit();
3480
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DLI_Level_High_Threshold)).EndInit();
3481
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DLI_Level_Low_Threshold)).EndInit();
3482 3460
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_MASK)).EndInit();
3483 3461
             this.panel1.ResumeLayout(false);
3484 3462
             this.panel1.PerformLayout();
@@ -3634,11 +3612,9 @@
3634 3612
         public System.Windows.Forms.NumericUpDown numericUpDown_Temperature_Offset;
3635 3613
         public System.Windows.Forms.NumericUpDown numericUpDown_MASK;
3636 3614
         private System.Windows.Forms.Label label_MASK;
3637
-        public System.Windows.Forms.NumericUpDown numericUpDown_DLI_Level_High_Threshold;
3638
-        public System.Windows.Forms.NumericUpDown numericUpDown_DLI_Level_Low_Threshold;
3639 3615
         private System.Windows.Forms.Button button_Test;
3640 3616
         private System.Windows.Forms.Button button_MBICMake;
3641
-        private System.Windows.Forms.Label label_CPU_Version;
3617
+        private System.Windows.Forms.Label label_CurrBank;
3642 3618
         private System.Windows.Forms.NumericUpDown numericUpDown_ALC3;
3643 3619
         private System.Windows.Forms.NumericUpDown numericUpDown_ALC4;
3644 3620
         private System.Windows.Forms.NumericUpDown numericUpDown_ALC1;
@@ -3839,10 +3815,15 @@
3839 3815
         private System.Windows.Forms.TextBox textBox_PcbVersion;
3840 3816
         private System.Windows.Forms.TextBox textBox_SerialNumber;
3841 3817
         private System.Windows.Forms.Label label4;
3842
-        private System.Windows.Forms.TextBox textBox10;
3843
-        private System.Windows.Forms.Button button_PCBVersionSet;
3844
-        private System.Windows.Forms.Button button_SerialNumverSet;
3845
-        private System.Windows.Forms.Button button_ManufactureSet;
3818
+        private System.Windows.Forms.TextBox textBox_MunufactureDate;
3819
+        private System.Windows.Forms.TextBox textBox_DLI_Level_Low_Threshold;
3820
+        private System.Windows.Forms.TextBox textBox_DLI_Level_High_Threshold;
3821
+        private System.Windows.Forms.TextBox textBox_ULO_Level_High_Threshold;
3822
+        private System.Windows.Forms.TextBox textBox_CurrBank;
3823
+        private System.Windows.Forms.TextBox textBox_Bank2Name;
3824
+        private System.Windows.Forms.Label label8;
3825
+        private System.Windows.Forms.TextBox textBox_Bank1Name;
3826
+        private System.Windows.Forms.Label label6;
3846 3827
     }
3847 3828
 }
3848 3829
 

+ 66 - 26
Jdas_Mbic/Main.cs

@@ -1084,6 +1084,12 @@ namespace Jdas_Mbic
1084 1084
                 default: this.Invoke(new StringSend(TextBox_Text_Set), textBox_CardType, "ID None"); break;
1085 1085
             }
1086 1086
             this.Invoke(new StringSend(TextBox_Text_Set), textBox_DLI_FRBT_D_Day, buf[(int)BluecellReqIndex.DLI_FRBT_D_Day].ToString());// = false;
1087
+            if(buf[(int)BluecellReqIndex.CPU_Current_Bank] == 1)
1088
+                this.Invoke(new StringSend(TextBox_Text_Set), textBox_CurrBank, "Bank 1");// = false;
1089
+            else if (buf[(int)BluecellReqIndex.CPU_Current_Bank] == 2)
1090
+                this.Invoke(new StringSend(TextBox_Text_Set), textBox_CurrBank, "Bank 2");// = false;
1091
+            else
1092
+                this.Invoke(new StringSend(TextBox_Text_Set), textBox_CurrBank, "Unknown");// = false;
1087 1093
 
1088 1094
             if (buf[(int)BluecellReqIndex.DLI_FRBT_Status] == 0)
1089 1095
             {
@@ -1835,28 +1841,7 @@ namespace Jdas_Mbic
1835 1841
                 this.Invoke(new StringSend(Numeric_Text_Set), numericUpDown_UL4_User, adcdata.ToString("N2"));
1836 1842
                 adcdata = 0;
1837 1843
 
1838
-                AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Shutdown_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Shutdown_Threshold_L] & 0x00FF));
1839
-                AttData = Convert.ToInt16(AttData * 0.1);
1840
-                //this.Invoke(new StringSend(Numeric_Text_Set), hidden.numericUpDown_DLI_Shutdown_Threshold, AttData.ToString());
1841
-                this.Invoke(new StringSend(TextBox_Text_Set), textBox_DL_ShutdownLimit, AttData.ToString());
1842
-
1843
-                AttData = (short)(((buf[(int)BluecellReqIndex.ULO_Shutdown_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.ULO_Shutdown_Threshold_L] & 0x00FF));
1844
-                AttData = Convert.ToInt16(AttData * 0.1);
1845
-                this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL_ShutdownLimit, AttData.ToString());
1846
-
1847
-
1848
-
1849
-                AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_L] & 0x00FF));
1850
-                AttData = Convert.ToInt16(AttData * 0.1);
1851
-                this.Invoke(new StringSend(Numeric_Text_Set), numericUpDown_DLI_Level_High_Threshold, AttData.ToString());
1852
-
1853
-                AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_Low_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_Low_Threshold_L] & 0x00FF));
1854
-                AttData = Convert.ToInt16(AttData * 0.1);
1855
-                this.Invoke(new StringSend(Numeric_Text_Set), numericUpDown_DLI_Level_Low_Threshold, AttData.ToString());
1856
-
1857
-                AttData = (short)(((buf[(int)BluecellReqIndex.ULO_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.ULO_Level_High_Threshold_L] & 0x00FF));
1858
-                AttData = Convert.ToInt16(AttData * 0.1);
1859
-                this.Invoke(new StringSend(Numeric_Text_Set), hidden.numericUpDown_ULO_Level_High_Threshold, AttData.ToString());
1844
+  
1860 1845
 
1861 1846
                 AttData = (short)(((buf[(int)BluecellReqIndex.MBIC_ULO_ALC_Atten1_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.MBIC_ULO_ALC_Atten1_L] & 0x00FF));
1862 1847
                 AttData = Convert.ToInt16(AttData * 0.1);
@@ -1874,7 +1859,62 @@ namespace Jdas_Mbic
1874 1859
                 AttData = (short)(((buf[(int)BluecellReqIndex.MBIC_ULO_ALC_Atten4_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.MBIC_ULO_ALC_Atten4_L] & 0x00FF));
1875 1860
                 AttData = Convert.ToInt16(AttData * 0.1);
1876 1861
                 this.Invoke(new StringSend(Numeric_Text_Set), numericUpDown_ALC4, AttData.ToString());
1862
+
1877 1863
             }
1864
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_MunufactureDate,
1865
+                                             buf[(int)BluecellReqIndex.Manufacture_Date].ToString()
1866
+                                           + buf[(int)BluecellReqIndex.Manufacture_Date + 1].ToString()
1867
+                                           + buf[(int)BluecellReqIndex.Manufacture_Date + 2].ToString());
1868
+            string tempstr = "";
1869
+            for (int strindex = 0; strindex < 20; strindex++)
1870
+                tempstr += Convert.ToChar(buf[(int)BluecellReqIndex.Serial_Number + strindex]);
1871
+
1872
+
1873
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_SerialNumber, tempstr);
1874
+
1875
+
1876
+            tempstr = buf[(int)BluecellReqIndex.PCB_Version].ToString();
1877
+            tempstr += ".";
1878
+            tempstr += buf[(int)BluecellReqIndex.PCB_Version + 1].ToString();
1879
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_PcbVersion, tempstr);
1880
+
1881
+
1882
+            tempstr = "";
1883
+            for (int strindex = 0; strindex < 31; strindex++)
1884
+                tempstr += Convert.ToChar(buf[(int)BluecellReqIndex.CPU_Bank1_Image_Name + strindex]);
1885
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_Bank1Name, tempstr);
1886
+
1887
+            tempstr = "";
1888
+            for (int strindex = 0; strindex < 31; strindex++)
1889
+                tempstr += Convert.ToChar(buf[(int)BluecellReqIndex.CPU_Bank2_Image_Name + strindex]);
1890
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_Bank2Name, tempstr);
1891
+
1892
+
1893
+
1894
+            AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Shutdown_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Shutdown_Threshold_L] & 0x00FF));
1895
+            AttData = Convert.ToInt16(AttData * 0.1);
1896
+            //this.Invoke(new StringSend(Numeric_Text_Set), hidden.numericUpDown_DLI_Shutdown_Threshold, AttData.ToString());
1897
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_DL_ShutdownLimit, AttData.ToString());
1898
+
1899
+            AttData = (short)(((buf[(int)BluecellReqIndex.ULO_Shutdown_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.ULO_Shutdown_Threshold_L] & 0x00FF));
1900
+            AttData = Convert.ToInt16(AttData * 0.1);
1901
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL_ShutdownLimit, AttData.ToString());
1902
+
1903
+
1904
+
1905
+            AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_L] & 0x00FF));
1906
+            AttData = Convert.ToInt16(AttData * 0.1);
1907
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_DLI_Level_High_Threshold, AttData.ToString());
1908
+
1909
+            AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_Low_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_Low_Threshold_L] & 0x00FF));
1910
+            AttData = Convert.ToInt16(AttData * 0.1);
1911
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_DLI_Level_Low_Threshold, AttData.ToString());
1912
+
1913
+            AttData = (short)(((buf[(int)BluecellReqIndex.ULO_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.ULO_Level_High_Threshold_L] & 0x00FF));
1914
+            AttData = Convert.ToInt16(AttData * 0.1);
1915
+            this.Invoke(new StringSend(TextBox_Text_Set), textBox_ULO_Level_High_Threshold, AttData.ToString());
1916
+
1917
+
1878 1918
             AttData = buf[(int)BluecellReqIndex.ULO_Shutdown_Retry_Count1];
1879 1919
             this.Invoke(new StringSend(Numeric_Text_Set), numericUpDown_ShutdownUL1, AttData.ToString());
1880 1920
 
@@ -2411,7 +2451,7 @@ namespace Jdas_Mbic
2411 2451
         byte[] MBIC_Add_BootLoader_DataArray = new byte[128];
2412 2452
         const string MBIC_HeaderName = "JT-NRDAS ";
2413 2453
         
2414
-        private byte[] DataToConvertHex(string date)
2454
+        public byte[] DataToConvertHex(string date)
2415 2455
         {
2416 2456
             char[] tmpret;
2417 2457
             byte[] ret = new byte[6];
@@ -2983,7 +3023,7 @@ namespace Jdas_Mbic
2983 3023
         //Serial Number : BL-J37C00-20050004  Example 
2984 3024
         private void button_SerialNumverSet_Click(object sender, EventArgs e)
2985 3025
         {
2986
-            byte[] temp_buf = new byte[25];
3026
+            byte[] temp_buf = new byte[26];
2987 3027
             int i = 0;
2988 3028
             Button button = (Button)sender;
2989 3029
             DATATYPE datatype;
@@ -2997,8 +3037,8 @@ namespace Jdas_Mbic
2997 3037
 
2998 3038
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
2999 3039
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = Convert.ToByte(datatype);
3000
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = ((22 & 0xFF00) >> 8);
3001
-            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = (22 & 0x00FF);
3040
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = ((23 & 0xFF00) >> 8);
3041
+            temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = (23 & 0x00FF);
3002 3042
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_CrcIndex] = 5;
3003 3043
             //temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = 0;
3004 3044
             UInt16 CRCRET = crc.CRC16_Generate(temp_buf, temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);

BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.GenerateResource.cache


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb