Explorar o código

Temp Table 안들어가는 문제 수정 /
Temp Shutdown 기능 추가
MBIC File Make 할 때 Version 3자리 전부 수정 할 수 있도록 변경

PYJ %!s(int64=4) %!d(string=hai) anos
pai
achega
aacf54b768
Modificáronse 39 ficheiros con 107 adicións e 49 borrados
  1. BIN=BIN
      .vs/Jdas_Mbic/v15/.suo
  2. BIN=BIN
      .vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide
  3. BIN=BIN
      .vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-shm
  4. BIN=BIN
      .vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-wal
  5. 1 0
      Jdas_Mbic/Func/Bluecell_BootProtocol.cs
  6. 9 3
      Jdas_Mbic/Hidden.cs
  7. 1 1
      Jdas_Mbic/MBIC_DownLoadWnc.cs
  8. 65 16
      Jdas_Mbic/Main.Designer.cs
  9. 31 29
      Jdas_Mbic/Main.cs
  10. BIN=BIN
      Jdas_Mbic/bin/Debug/Jdas_Mbic.exe
  11. BIN=BIN
      Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb
  12. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_DL1.xls
  13. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_DL2.xls
  14. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_DL3.xls
  15. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_DL4.xls
  16. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_UL1.xls
  17. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_UL2.xls
  18. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_UL3.xls
  19. BIN=BIN
      Jdas_Mbic/bin/Release/ATT_UL4.xls
  20. BIN=BIN
      Jdas_Mbic/bin/Release/DET_DL1.xls
  21. BIN=BIN
      Jdas_Mbic/bin/Release/DET_DL2.xls
  22. BIN=BIN
      Jdas_Mbic/bin/Release/DET_DL3.xls
  23. BIN=BIN
      Jdas_Mbic/bin/Release/DET_DL4.xls
  24. BIN=BIN
      Jdas_Mbic/bin/Release/DET_UL1.xls
  25. BIN=BIN
      Jdas_Mbic/bin/Release/DET_UL2.xls
  26. BIN=BIN
      Jdas_Mbic/bin/Release/DET_UL3.xls
  27. BIN=BIN
      Jdas_Mbic/bin/Release/DET_UL4.xls
  28. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_DL1.xls
  29. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_DL2.xls
  30. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_DL3.xls
  31. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_DL4.xls
  32. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_UL1.xls
  33. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_UL2.xls
  34. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_UL3.xls
  35. BIN=BIN
      Jdas_Mbic/bin/Release/TEMP_UL4.xls
  36. BIN=BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.GenerateResource.cache
  37. BIN=BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.ResolveComReference.cache
  38. BIN=BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.exe
  39. BIN=BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb

BIN=BIN
.vs/Jdas_Mbic/v15/.suo


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


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


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


+ 1 - 0
Jdas_Mbic/Func/Bluecell_BootProtocol.cs

@@ -162,6 +162,7 @@ namespace Jdas_Mbic
162
             Bluecell_UL_Det_Path2_Offset,
162
             Bluecell_UL_Det_Path2_Offset,
163
             Bluecell_UL_Det_Path3_Offset,
163
             Bluecell_UL_Det_Path3_Offset,
164
             Bluecell_UL_Det_Path4_Offset,
164
             Bluecell_UL_Det_Path4_Offset,
165
+            Bluecell_Temp_Shutdown_Path_ON_OFF,
165
         };
166
         };
166
 
167
 
167
        
168
        

+ 9 - 3
Jdas_Mbic/Hidden.cs

@@ -293,13 +293,19 @@ namespace Jdas_Mbic
293
             else
293
             else
294
             {
294
             {
295
                 Length = Convert.ToByte(JdasMbic.ATT_TableMaxLength - 4);
295
                 Length = Convert.ToByte(JdasMbic.ATT_TableMaxLength - 4);
296
+
296
                 temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = Convert.ToByte((Length & 0xFF00) >> 8);
297
                 temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = Convert.ToByte((Length & 0xFF00) >> 8);
297
                 temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = Convert.ToByte((Length & 0x00FF));
298
                 temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_L] = Convert.ToByte((Length & 0x00FF));
298
-                for (i = 0; i < dataGridView_TableSetting.RowCount; i++)
299
+                //for (i = 0; i < dataGridView_TableSetting.RowCount; i++)
300
+                for (i = 0; i < 0x40; i++)
299
                 {
301
                 {
300
-                    attret = Convert.ToByte(Convert.ToSByte(Convert.ToDouble(dataGridView_TableSetting[1, i].Value) * 2) & 0xFF);
302
+                    try
303
+                    {
304
+                        attret = Convert.ToByte(Convert.ToSByte(Convert.ToDouble(dataGridView_TableSetting[1, i].Value) * 2) & 0xFF);
301
 
305
 
302
-                    temp_buf[(int)(Bluecell_ProtIndex_p.Bluecell_data + 1) + i] = (attret);
306
+                        temp_buf[(int)(Bluecell_ProtIndex_p.Bluecell_data + 1) + i] = (attret);
307
+                    }
308
+                    catch { }
303
                 }
309
                 }
304
 
310
 
305
                 for (a = i; a < i + 30; a++)
311
                 for (a = i; a < i + 30; a++)

+ 1 - 1
Jdas_Mbic/MBIC_DownLoadWnc.cs

@@ -86,7 +86,7 @@ namespace Jdas_Mbic
86
         private void button_DownloadStart_Click(object sender, EventArgs e)
86
         private void button_DownloadStart_Click(object sender, EventArgs e)
87
         {
87
         {
88
             byte[] tempdata = new byte[1027];
88
             byte[] tempdata = new byte[1027];
89
-            string MBIC_HeaderFileName = "jhfs-mbic-nrdas-v00.00." + this.main.numericUpDown_Version.Text + ".mbc";
89
+            string MBIC_HeaderFileName = "jhfs-mbic-nrdas-v00.00." + this.main.numericUpDown_Version3.Text + ".mbc";
90
             char[] tempchardata;
90
             char[] tempchardata;
91
             int TotalFrame = 0;
91
             int TotalFrame = 0;
92
             UInt32 Crcret = 0;
92
             UInt32 Crcret = 0;

+ 65 - 16
Jdas_Mbic/Main.Designer.cs

@@ -102,6 +102,8 @@
102
             this.button1 = new System.Windows.Forms.Button();
102
             this.button1 = new System.Windows.Forms.Button();
103
             this.button_FactorySet = new System.Windows.Forms.Button();
103
             this.button_FactorySet = new System.Windows.Forms.Button();
104
             this.panel1 = new System.Windows.Forms.Panel();
104
             this.panel1 = new System.Windows.Forms.Panel();
105
+            this.label10 = new System.Windows.Forms.Label();
106
+            this.button_TempShutdown = new System.Windows.Forms.Button();
105
             this.textBox_UL4_TableOffset = new System.Windows.Forms.TextBox();
107
             this.textBox_UL4_TableOffset = new System.Windows.Forms.TextBox();
106
             this.textBox_UL2_TableOffset = new System.Windows.Forms.TextBox();
108
             this.textBox_UL2_TableOffset = new System.Windows.Forms.TextBox();
107
             this.textBox_DL4_TableOffset = new System.Windows.Forms.TextBox();
109
             this.textBox_DL4_TableOffset = new System.Windows.Forms.TextBox();
@@ -131,7 +133,7 @@
131
             this.button_SelfTest1 = new System.Windows.Forms.Button();
133
             this.button_SelfTest1 = new System.Windows.Forms.Button();
132
             this.button_SelfTest3 = new System.Windows.Forms.Button();
134
             this.button_SelfTest3 = new System.Windows.Forms.Button();
133
             this.panel_Serial = new System.Windows.Forms.Panel();
135
             this.panel_Serial = new System.Windows.Forms.Panel();
134
-            this.numericUpDown_Version = new System.Windows.Forms.NumericUpDown();
136
+            this.numericUpDown_Version3 = new System.Windows.Forms.NumericUpDown();
135
             this.label1 = new System.Windows.Forms.Label();
137
             this.label1 = new System.Windows.Forms.Label();
136
             this.pictureBox_R_TX = new System.Windows.Forms.PictureBox();
138
             this.pictureBox_R_TX = new System.Windows.Forms.PictureBox();
137
             this.pictureBox_G_TX = new System.Windows.Forms.PictureBox();
139
             this.pictureBox_G_TX = new System.Windows.Forms.PictureBox();
@@ -296,6 +298,8 @@
296
             this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
298
             this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
297
             this.label3 = new System.Windows.Forms.Label();
299
             this.label3 = new System.Windows.Forms.Label();
298
             this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
300
             this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
301
+            this.numericUpDown_Version2 = new System.Windows.Forms.NumericUpDown();
302
+            this.numericUpDown_Version1 = new System.Windows.Forms.NumericUpDown();
299
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL3)).BeginInit();
303
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL3)).BeginInit();
300
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL3)).BeginInit();
304
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL3)).BeginInit();
301
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ALC3)).BeginInit();
305
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ALC3)).BeginInit();
@@ -330,7 +334,7 @@
330
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_MASK)).BeginInit();
334
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_MASK)).BeginInit();
331
             this.panel1.SuspendLayout();
335
             this.panel1.SuspendLayout();
332
             this.panel_Serial.SuspendLayout();
336
             this.panel_Serial.SuspendLayout();
333
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version)).BeginInit();
337
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version3)).BeginInit();
334
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).BeginInit();
338
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).BeginInit();
335
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).BeginInit();
339
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).BeginInit();
336
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).BeginInit();
340
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).BeginInit();
@@ -413,6 +417,8 @@
413
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).BeginInit();
417
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).BeginInit();
414
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
418
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
415
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
419
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
420
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version2)).BeginInit();
421
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version1)).BeginInit();
416
             this.SuspendLayout();
422
             this.SuspendLayout();
417
             // 
423
             // 
418
             // textBox_FRBT_TIME
424
             // textBox_FRBT_TIME
@@ -1278,7 +1284,7 @@
1278
             this.comboBox_Port.Location = new System.Drawing.Point(5, 27);
1284
             this.comboBox_Port.Location = new System.Drawing.Point(5, 27);
1279
             this.comboBox_Port.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1285
             this.comboBox_Port.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1280
             this.comboBox_Port.Name = "comboBox_Port";
1286
             this.comboBox_Port.Name = "comboBox_Port";
1281
-            this.comboBox_Port.Size = new System.Drawing.Size(91, 23);
1287
+            this.comboBox_Port.Size = new System.Drawing.Size(94, 23);
1282
             this.comboBox_Port.TabIndex = 88;
1288
             this.comboBox_Port.TabIndex = 88;
1283
             // 
1289
             // 
1284
             // cmBaudRate
1290
             // cmBaudRate
@@ -1312,7 +1318,7 @@
1312
             this.comboBox_baudrate.Location = new System.Drawing.Point(4, 78);
1318
             this.comboBox_baudrate.Location = new System.Drawing.Point(4, 78);
1313
             this.comboBox_baudrate.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1319
             this.comboBox_baudrate.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1314
             this.comboBox_baudrate.Name = "comboBox_baudrate";
1320
             this.comboBox_baudrate.Name = "comboBox_baudrate";
1315
-            this.comboBox_baudrate.Size = new System.Drawing.Size(91, 23);
1321
+            this.comboBox_baudrate.Size = new System.Drawing.Size(94, 23);
1316
             this.comboBox_baudrate.TabIndex = 91;
1322
             this.comboBox_baudrate.TabIndex = 91;
1317
             this.comboBox_baudrate.Text = "115200";
1323
             this.comboBox_baudrate.Text = "115200";
1318
             // 
1324
             // 
@@ -1507,6 +1513,8 @@
1507
             // panel1
1513
             // panel1
1508
             // 
1514
             // 
1509
             this.panel1.BackColor = System.Drawing.Color.White;
1515
             this.panel1.BackColor = System.Drawing.Color.White;
1516
+            this.panel1.Controls.Add(this.label10);
1517
+            this.panel1.Controls.Add(this.button_TempShutdown);
1510
             this.panel1.Controls.Add(this.textBox_UL4_TableOffset);
1518
             this.panel1.Controls.Add(this.textBox_UL4_TableOffset);
1511
             this.panel1.Controls.Add(this.textBox_UL2_TableOffset);
1519
             this.panel1.Controls.Add(this.textBox_UL2_TableOffset);
1512
             this.panel1.Controls.Add(this.textBox_DL4_TableOffset);
1520
             this.panel1.Controls.Add(this.textBox_DL4_TableOffset);
@@ -1618,6 +1626,25 @@
1618
             this.panel1.Size = new System.Drawing.Size(1136, 895);
1626
             this.panel1.Size = new System.Drawing.Size(1136, 895);
1619
             this.panel1.TabIndex = 159;
1627
             this.panel1.TabIndex = 159;
1620
             // 
1628
             // 
1629
+            // label10
1630
+            // 
1631
+            this.label10.AutoSize = true;
1632
+            this.label10.Location = new System.Drawing.Point(429, 132);
1633
+            this.label10.Name = "label10";
1634
+            this.label10.Size = new System.Drawing.Size(96, 15);
1635
+            this.label10.TabIndex = 180;
1636
+            this.label10.Text = "Temp Shutdown";
1637
+            // 
1638
+            // button_TempShutdown
1639
+            // 
1640
+            this.button_TempShutdown.Location = new System.Drawing.Point(575, 127);
1641
+            this.button_TempShutdown.Name = "button_TempShutdown";
1642
+            this.button_TempShutdown.Size = new System.Drawing.Size(75, 23);
1643
+            this.button_TempShutdown.TabIndex = 179;
1644
+            this.button_TempShutdown.Text = "OFF";
1645
+            this.button_TempShutdown.UseVisualStyleBackColor = true;
1646
+            this.button_TempShutdown.Click += new System.EventHandler(this.button_PATH_Ctrl_Click);
1647
+            // 
1621
             // textBox_UL4_TableOffset
1648
             // textBox_UL4_TableOffset
1622
             // 
1649
             // 
1623
             this.textBox_UL4_TableOffset.Location = new System.Drawing.Point(1030, 741);
1650
             this.textBox_UL4_TableOffset.Location = new System.Drawing.Point(1030, 741);
@@ -1853,7 +1880,9 @@
1853
             // 
1880
             // 
1854
             this.panel_Serial.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
1881
             this.panel_Serial.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
1855
             this.panel_Serial.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
1882
             this.panel_Serial.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
1856
-            this.panel_Serial.Controls.Add(this.numericUpDown_Version);
1883
+            this.panel_Serial.Controls.Add(this.numericUpDown_Version1);
1884
+            this.panel_Serial.Controls.Add(this.numericUpDown_Version2);
1885
+            this.panel_Serial.Controls.Add(this.numericUpDown_Version3);
1857
             this.panel_Serial.Controls.Add(this.label_BankSel);
1886
             this.panel_Serial.Controls.Add(this.label_BankSel);
1858
             this.panel_Serial.Controls.Add(this.label1);
1887
             this.panel_Serial.Controls.Add(this.label1);
1859
             this.panel_Serial.Controls.Add(this.button_FirmwareUpdate);
1888
             this.panel_Serial.Controls.Add(this.button_FirmwareUpdate);
@@ -1875,16 +1904,16 @@
1875
             this.panel_Serial.Controls.Add(this.pictureBox_G_RX);
1904
             this.panel_Serial.Controls.Add(this.pictureBox_G_RX);
1876
             this.panel_Serial.Location = new System.Drawing.Point(0, 165);
1905
             this.panel_Serial.Location = new System.Drawing.Point(0, 165);
1877
             this.panel_Serial.Name = "panel_Serial";
1906
             this.panel_Serial.Name = "panel_Serial";
1878
-            this.panel_Serial.Size = new System.Drawing.Size(124, 729);
1907
+            this.panel_Serial.Size = new System.Drawing.Size(127, 729);
1879
             this.panel_Serial.TabIndex = 154;
1908
             this.panel_Serial.TabIndex = 154;
1880
             this.panel_Serial.Paint += new System.Windows.Forms.PaintEventHandler(this.panel_Serial_Paint);
1909
             this.panel_Serial.Paint += new System.Windows.Forms.PaintEventHandler(this.panel_Serial_Paint);
1881
             // 
1910
             // 
1882
-            // numericUpDown_Version
1911
+            // numericUpDown_Version3
1883
             // 
1912
             // 
1884
-            this.numericUpDown_Version.Location = new System.Drawing.Point(25, 539);
1885
-            this.numericUpDown_Version.Name = "numericUpDown_Version";
1886
-            this.numericUpDown_Version.Size = new System.Drawing.Size(69, 23);
1887
-            this.numericUpDown_Version.TabIndex = 151;
1913
+            this.numericUpDown_Version3.Location = new System.Drawing.Point(87, 516);
1914
+            this.numericUpDown_Version3.Name = "numericUpDown_Version3";
1915
+            this.numericUpDown_Version3.Size = new System.Drawing.Size(37, 23);
1916
+            this.numericUpDown_Version3.TabIndex = 151;
1888
             // 
1917
             // 
1889
             // label1
1918
             // label1
1890
             // 
1919
             // 
@@ -2235,7 +2264,7 @@
2235
             // 
2264
             // 
2236
             // button_Carrier
2265
             // button_Carrier
2237
             // 
2266
             // 
2238
-            this.button_Carrier.Location = new System.Drawing.Point(575, 96);
2267
+            this.button_Carrier.Location = new System.Drawing.Point(575, 98);
2239
             this.button_Carrier.Name = "button_Carrier";
2268
             this.button_Carrier.Name = "button_Carrier";
2240
             this.button_Carrier.Size = new System.Drawing.Size(75, 23);
2269
             this.button_Carrier.Size = new System.Drawing.Size(75, 23);
2241
             this.button_Carrier.TabIndex = 8;
2270
             this.button_Carrier.TabIndex = 8;
@@ -2245,13 +2274,13 @@
2245
             // 
2274
             // 
2246
             // button_LedTest
2275
             // button_LedTest
2247
             // 
2276
             // 
2248
-            this.button_LedTest.Location = new System.Drawing.Point(490, 73);
2277
+            this.button_LedTest.Location = new System.Drawing.Point(575, 72);
2249
             this.button_LedTest.Name = "button_LedTest";
2278
             this.button_LedTest.Name = "button_LedTest";
2250
             this.button_LedTest.Size = new System.Drawing.Size(75, 23);
2279
             this.button_LedTest.Size = new System.Drawing.Size(75, 23);
2251
             this.button_LedTest.TabIndex = 7;
2280
             this.button_LedTest.TabIndex = 7;
2252
             this.button_LedTest.Text = "LED TEST";
2281
             this.button_LedTest.Text = "LED TEST";
2253
             this.button_LedTest.UseVisualStyleBackColor = true;
2282
             this.button_LedTest.UseVisualStyleBackColor = true;
2254
-            this.button_LedTest.Click += new System.EventHandler(this.button_LedTest_Click);
2283
+            this.button_LedTest.Click += new System.EventHandler(this.button_PATH_Ctrl_Click);
2255
             // 
2284
             // 
2256
             // textBox_CardType
2285
             // textBox_CardType
2257
             // 
2286
             // 
@@ -3517,6 +3546,20 @@
3517
             0,
3546
             0,
3518
             -2147483648});
3547
             -2147483648});
3519
             // 
3548
             // 
3549
+            // numericUpDown_Version2
3550
+            // 
3551
+            this.numericUpDown_Version2.Location = new System.Drawing.Point(45, 516);
3552
+            this.numericUpDown_Version2.Name = "numericUpDown_Version2";
3553
+            this.numericUpDown_Version2.Size = new System.Drawing.Size(37, 23);
3554
+            this.numericUpDown_Version2.TabIndex = 151;
3555
+            // 
3556
+            // numericUpDown_Version1
3557
+            // 
3558
+            this.numericUpDown_Version1.Location = new System.Drawing.Point(3, 516);
3559
+            this.numericUpDown_Version1.Name = "numericUpDown_Version1";
3560
+            this.numericUpDown_Version1.Size = new System.Drawing.Size(37, 23);
3561
+            this.numericUpDown_Version1.TabIndex = 151;
3562
+            // 
3520
             // JdasMbic
3563
             // JdasMbic
3521
             // 
3564
             // 
3522
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
3565
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -3570,7 +3613,7 @@
3570
             this.panel1.PerformLayout();
3613
             this.panel1.PerformLayout();
3571
             this.panel_Serial.ResumeLayout(false);
3614
             this.panel_Serial.ResumeLayout(false);
3572
             this.panel_Serial.PerformLayout();
3615
             this.panel_Serial.PerformLayout();
3573
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version)).EndInit();
3616
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version3)).EndInit();
3574
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).EndInit();
3617
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).EndInit();
3575
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).EndInit();
3618
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).EndInit();
3576
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).EndInit();
3619
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).EndInit();
@@ -3670,6 +3713,8 @@
3670
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).EndInit();
3713
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).EndInit();
3671
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
3714
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
3672
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
3715
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
3716
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version2)).EndInit();
3717
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version1)).EndInit();
3673
             this.ResumeLayout(false);
3718
             this.ResumeLayout(false);
3674
 
3719
 
3675
         }
3720
         }
@@ -3941,7 +3986,11 @@
3941
         private System.Windows.Forms.Label label_TableOffset;
3986
         private System.Windows.Forms.Label label_TableOffset;
3942
         private System.Windows.Forms.Label label9;
3987
         private System.Windows.Forms.Label label9;
3943
         public System.Windows.Forms.Timer timer_JdasMbic;
3988
         public System.Windows.Forms.Timer timer_JdasMbic;
3944
-        public System.Windows.Forms.NumericUpDown numericUpDown_Version;
3989
+        public System.Windows.Forms.NumericUpDown numericUpDown_Version3;
3990
+        private System.Windows.Forms.Label label10;
3991
+        private System.Windows.Forms.Button button_TempShutdown;
3992
+        public System.Windows.Forms.NumericUpDown numericUpDown_Version1;
3993
+        public System.Windows.Forms.NumericUpDown numericUpDown_Version2;
3945
     }
3994
     }
3946
 }
3995
 }
3947
 
3996
 

+ 31 - 29
Jdas_Mbic/Main.cs

@@ -934,7 +934,7 @@ namespace Jdas_Mbic
934
             DL_Det_ALL_Offset,
934
             DL_Det_ALL_Offset,
935
             UL_Det_Path_Offset1,
935
             UL_Det_Path_Offset1,
936
             UL_Det_Path_Offset2,
936
             UL_Det_Path_Offset2,
937
-            UL_Det_Path_Offset3,
937
+            Path_TempShutdown_Set,
938
             UL_Det_Path_Offset4,
938
             UL_Det_Path_Offset4,
939
             bluecell_crc_H,
939
             bluecell_crc_H,
940
             bluecell_crc_L,
940
             bluecell_crc_L,
@@ -1105,7 +1105,7 @@ namespace Jdas_Mbic
1105
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox_FRBT_Status, "RUNNING");// = false;
1105
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox_FRBT_Status, "RUNNING");// = false;
1106
             }
1106
             }
1107
 
1107
 
1108
-                if (buf[(int)BluecellReqIndex.Carrier_ON_OFF] == 0)
1108
+             if (buf[(int)BluecellReqIndex.Carrier_ON_OFF] == 0)
1109
             {
1109
             {
1110
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "OFF");// = false;
1110
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "OFF");// = false;
1111
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox1_Carrier, "OFF");// = false;
1111
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox1_Carrier, "OFF");// = false;
@@ -1115,7 +1115,14 @@ namespace Jdas_Mbic
1115
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "ON");// = false;
1115
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "ON");// = false;
1116
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox1_Carrier, "ON");// = false;
1116
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox1_Carrier, "ON");// = false;
1117
             }
1117
             }
1118
-
1118
+            if (buf[(int)BluecellReqIndex.Path_TempShutdown_Set] == 0)
1119
+            {
1120
+                this.Invoke(new StringSend(Button_Text_Set), button_TempShutdown, "OFF");// = false;
1121
+            }
1122
+            else
1123
+            {
1124
+                this.Invoke(new StringSend(Button_Text_Set), button_TempShutdown, "ON");// = false;
1125
+            }
1119
             if (buf[(int)BluecellReqIndex.Selftest1] == 0)
1126
             if (buf[(int)BluecellReqIndex.Selftest1] == 0)
1120
             {
1127
             {
1121
                 this.Invoke(new StringSend(Button_Text_Set), button_SelfTest1, "OFF");// = false;
1128
                 this.Invoke(new StringSend(Button_Text_Set), button_SelfTest1, "OFF");// = false;
@@ -1907,20 +1914,7 @@ namespace Jdas_Mbic
1907
             this.Invoke(new StringSend(TextBox_Text_Set), textBox_DL4_TableOffset, ((sbyte)AttData).ToString());
1914
             this.Invoke(new StringSend(TextBox_Text_Set), textBox_DL4_TableOffset, ((sbyte)AttData).ToString());
1908
 
1915
 
1909
 
1916
 
1910
-            AttData = (short)(buf[(int)BluecellReqIndex.UL_Det_Path_Offset1]);
1911
-            this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL1_TableOffset, ((sbyte)AttData).ToString());
1912
-
1913
-
1914
-            AttData = (sbyte)(buf[(int)BluecellReqIndex.UL_Det_Path_Offset2]);
1915
-            this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL2_TableOffset, ((sbyte)AttData).ToString());
1916
-
1917
-
1918
-            AttData = (sbyte)(buf[(int)BluecellReqIndex.UL_Det_Path_Offset3]);
1919
-            this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL3_TableOffset, ((sbyte)AttData).ToString());
1920
-
1921
-            AttData = (sbyte)(buf[(int)BluecellReqIndex.UL_Det_Path_Offset4]);
1922
-            this.Invoke(new StringSend(TextBox_Text_Set), textBox_UL4_TableOffset, ((sbyte)AttData).ToString());
1923
-
1917
+         
1924
 
1918
 
1925
             AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_L] & 0x00FF));
1919
             AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_L] & 0x00FF));
1926
             AttData = Convert.ToInt16(AttData * 0.1);
1920
             AttData = Convert.ToInt16(AttData * 0.1);
@@ -2050,18 +2044,18 @@ namespace Jdas_Mbic
2050
             adcdata = adcdata * 3.3 / 4095;
2044
             adcdata = adcdata * 3.3 / 4095;
2051
             adcdata = (adcdata - 0.5) * 100;
2045
             adcdata = (adcdata - 0.5) * 100;
2052
 #else
2046
 #else
2053
-            adcdata = (buf[(int)BluecellReqIndex.DET_TEMP]);
2047
+            adcdata = (sbyte)(buf[(int)BluecellReqIndex.DET_TEMP]);
2054
 #endif
2048
 #endif
2055
 
2049
 
2056
             this.Invoke(new StringSend(Label_Text_Set), label_Temp, adcdata.ToString("N2") + "°C");
2050
             this.Invoke(new StringSend(Label_Text_Set), label_Temp, adcdata.ToString("N2") + "°C");
2057
             adcdata = 0;
2051
             adcdata = 0;
2058
             //string tmp = Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3],16).ToString();
2052
             //string tmp = Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3],16).ToString();
2059
-
2060
-            string version = Convert.ToString(buf[(int)BluecellReqIndex.CPUVERSION1])
2061
-                             + "."
2062
-                             + Convert.ToString(buf[(int)BluecellReqIndex.CPUVERSION2])
2053
+            char pad = '0';
2054
+            string version = Convert.ToString(buf[(int)BluecellReqIndex.CPUVERSION1]).PadLeft(2,pad)
2063
                              + "."
2055
                              + "."
2064
-                             + Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3]).ToString("X");
2056
+                             + Convert.ToString(buf[(int)BluecellReqIndex.CPUVERSION2]).PadLeft(2, pad)
2057
+            + "."
2058
+                             + Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3]).ToString("X").PadLeft(2, pad);
2065
             //Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3], 16).ToString();
2059
             //Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3], 16).ToString();
2066
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION2])/10;
2060
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION2])/10;
2067
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION3]);
2061
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION3]);
@@ -2145,8 +2139,9 @@ namespace Jdas_Mbic
2145
 
2139
 
2146
         public const byte DET_TableMaxLength = 160 + 1+ 6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2140
         public const byte DET_TableMaxLength = 160 + 1+ 6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2147
         public const byte ATT_TableMaxLength = 96 + 1 +  6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2141
         public const byte ATT_TableMaxLength = 96 + 1 +  6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2142
+        public const byte Temp_TableMaxLength = 96 + 1 + 6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2143
+
2148
 
2144
 
2149
-        
2150
         const byte TableGetMaxLength =  1 + 7 + 1;
2145
         const byte TableGetMaxLength =  1 + 7 + 1;
2151
 
2146
 
2152
 
2147
 
@@ -2663,9 +2658,9 @@ namespace Jdas_Mbic
2663
             string hex = Convert.ToString(int.Parse(dec, 16).ToUpper();*/
2658
             string hex = Convert.ToString(int.Parse(dec, 16).ToUpper();*/
2664
             string hex = "24";
2659
             string hex = "24";
2665
             string dec = Convert.ToInt32(hex, 10).ToString();
2660
             string dec = Convert.ToInt32(hex, 10).ToString();
2661
+            char pad = '0';
2666
 
2662
 
2667
-
2668
-            string MBIC_HeaderFileName = "jhfs-mbic-nrdas-v00.00." + numericUpDown_Version.Text + ".mbc";
2663
+            string MBIC_HeaderFileName = "jhfs-mbic-nrdas-v"+ numericUpDown_Version1.Text.PadLeft(2,pad)+ "." + numericUpDown_Version2.Text.PadLeft(2, pad) + "." + numericUpDown_Version3.Text.PadLeft(2, pad) + ".mbc";
2669
             //현재 사용자 바탕화면 경로
2664
             //현재 사용자 바탕화면 경로
2670
 
2665
 
2671
             string localpath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
2666
             string localpath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
@@ -2707,9 +2702,9 @@ namespace Jdas_Mbic
2707
                 }
2702
                 }
2708
                 MBIC_Add_BootLoader_DataArray[9] = 0x20; //file type : MBIC 0x20
2703
                 MBIC_Add_BootLoader_DataArray[9] = 0x20; //file type : MBIC 0x20
2709
                 MBIC_Add_BootLoader_DataArray[10] = 0x00; //file type : CPU 0x00
2704
                 MBIC_Add_BootLoader_DataArray[10] = 0x00; //file type : CPU 0x00
2710
-                MBIC_Add_BootLoader_DataArray[11] = 0x00;//version
2711
-                MBIC_Add_BootLoader_DataArray[12] = 0x00;//version
2712
-                MBIC_Add_BootLoader_DataArray[13] = Convert.ToByte(numericUpDown_Version.Text,16);//version
2705
+                MBIC_Add_BootLoader_DataArray[11] = Convert.ToByte(numericUpDown_Version1.Text, 16);//version
2706
+                MBIC_Add_BootLoader_DataArray[12] = Convert.ToByte(numericUpDown_Version2.Text, 16);//version
2707
+                MBIC_Add_BootLoader_DataArray[13] = Convert.ToByte(numericUpDown_Version3.Text,16);//version
2713
 
2708
 
2714
                 tempchardata = MBIC_HeaderFileName.ToCharArray();
2709
                 tempchardata = MBIC_HeaderFileName.ToCharArray();
2715
                 for (i = 14; i < 14 + tempchardata.Length + 12; i++) // Total 41byte Filename
2710
                 for (i = 14; i < 14 + tempchardata.Length + 12; i++) // Total 41byte Filename
@@ -2954,6 +2949,13 @@ namespace Jdas_Mbic
2954
                 case "button_Carrier":
2949
                 case "button_Carrier":
2955
                     datatype = DATATYPE.Bluecell_CarrierOnOff;
2950
                     datatype = DATATYPE.Bluecell_CarrierOnOff;
2956
                     break;
2951
                     break;
2952
+                case "button_TempShutdown":
2953
+                    datatype = DATATYPE.Bluecell_Temp_Shutdown_Path_ON_OFF;
2954
+                    break;
2955
+                case "button_LedTest":
2956
+                    datatype = DATATYPE.Bluecell_LED_TEST;
2957
+                    temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_data] = 1;
2958
+                    break;
2957
                 default:
2959
                 default:
2958
                     MessageBox.Show("잘 못된 값 입니다. 확인 부탁드립니다.");
2960
                     MessageBox.Show("잘 못된 값 입니다. 확인 부탁드립니다.");
2959
                     return;
2961
                     return;

BIN=BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN=BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN=BIN
Jdas_Mbic/bin/Release/ATT_DL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_DL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_DL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_DL4.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_UL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_UL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_UL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/ATT_UL4.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_DL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_DL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_DL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_DL4.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_UL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_UL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_UL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/DET_UL4.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_DL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_DL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_DL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_DL4.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_UL1.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_UL2.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_UL3.xls


BIN=BIN
Jdas_Mbic/bin/Release/TEMP_UL4.xls


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


BIN=BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.ResolveComReference.cache


BIN=BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.exe


BIN=BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb