Pārlūkot izejas kodu

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

PYJ 4 gadi atpakaļ
vecāks
revīzija
aacf54b768
39 mainītis faili ar 107 papildinājumiem un 49 dzēšanām
  1. BIN
      .vs/Jdas_Mbic/v15/.suo
  2. BIN
      .vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide
  3. BIN
      .vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-shm
  4. 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
      Jdas_Mbic/bin/Debug/Jdas_Mbic.exe
  11. BIN
      Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb
  12. BIN
      Jdas_Mbic/bin/Release/ATT_DL1.xls
  13. BIN
      Jdas_Mbic/bin/Release/ATT_DL2.xls
  14. BIN
      Jdas_Mbic/bin/Release/ATT_DL3.xls
  15. BIN
      Jdas_Mbic/bin/Release/ATT_DL4.xls
  16. BIN
      Jdas_Mbic/bin/Release/ATT_UL1.xls
  17. BIN
      Jdas_Mbic/bin/Release/ATT_UL2.xls
  18. BIN
      Jdas_Mbic/bin/Release/ATT_UL3.xls
  19. BIN
      Jdas_Mbic/bin/Release/ATT_UL4.xls
  20. BIN
      Jdas_Mbic/bin/Release/DET_DL1.xls
  21. BIN
      Jdas_Mbic/bin/Release/DET_DL2.xls
  22. BIN
      Jdas_Mbic/bin/Release/DET_DL3.xls
  23. BIN
      Jdas_Mbic/bin/Release/DET_DL4.xls
  24. BIN
      Jdas_Mbic/bin/Release/DET_UL1.xls
  25. BIN
      Jdas_Mbic/bin/Release/DET_UL2.xls
  26. BIN
      Jdas_Mbic/bin/Release/DET_UL3.xls
  27. BIN
      Jdas_Mbic/bin/Release/DET_UL4.xls
  28. BIN
      Jdas_Mbic/bin/Release/TEMP_DL1.xls
  29. BIN
      Jdas_Mbic/bin/Release/TEMP_DL2.xls
  30. BIN
      Jdas_Mbic/bin/Release/TEMP_DL3.xls
  31. BIN
      Jdas_Mbic/bin/Release/TEMP_DL4.xls
  32. BIN
      Jdas_Mbic/bin/Release/TEMP_UL1.xls
  33. BIN
      Jdas_Mbic/bin/Release/TEMP_UL2.xls
  34. BIN
      Jdas_Mbic/bin/Release/TEMP_UL3.xls
  35. BIN
      Jdas_Mbic/bin/Release/TEMP_UL4.xls
  36. BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.GenerateResource.cache
  37. BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.ResolveComReference.cache
  38. BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.exe
  39. BIN
      Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb

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


+ 1 - 0
Jdas_Mbic/Func/Bluecell_BootProtocol.cs

@@ -162,6 +162,7 @@ namespace Jdas_Mbic
162 162
             Bluecell_UL_Det_Path2_Offset,
163 163
             Bluecell_UL_Det_Path3_Offset,
164 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 293
             else
294 294
             {
295 295
                 Length = Convert.ToByte(JdasMbic.ATT_TableMaxLength - 4);
296
+
296 297
                 temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = Convert.ToByte((Length & 0xFF00) >> 8);
297 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 311
                 for (a = i; a < i + 30; a++)

+ 1 - 1
Jdas_Mbic/MBIC_DownLoadWnc.cs

@@ -86,7 +86,7 @@ namespace Jdas_Mbic
86 86
         private void button_DownloadStart_Click(object sender, EventArgs e)
87 87
         {
88 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 90
             char[] tempchardata;
91 91
             int TotalFrame = 0;
92 92
             UInt32 Crcret = 0;

+ 65 - 16
Jdas_Mbic/Main.Designer.cs

@@ -102,6 +102,8 @@
102 102
             this.button1 = new System.Windows.Forms.Button();
103 103
             this.button_FactorySet = new System.Windows.Forms.Button();
104 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 107
             this.textBox_UL4_TableOffset = new System.Windows.Forms.TextBox();
106 108
             this.textBox_UL2_TableOffset = new System.Windows.Forms.TextBox();
107 109
             this.textBox_DL4_TableOffset = new System.Windows.Forms.TextBox();
@@ -131,7 +133,7 @@
131 133
             this.button_SelfTest1 = new System.Windows.Forms.Button();
132 134
             this.button_SelfTest3 = new System.Windows.Forms.Button();
133 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 137
             this.label1 = new System.Windows.Forms.Label();
136 138
             this.pictureBox_R_TX = new System.Windows.Forms.PictureBox();
137 139
             this.pictureBox_G_TX = new System.Windows.Forms.PictureBox();
@@ -296,6 +298,8 @@
296 298
             this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
297 299
             this.label3 = new System.Windows.Forms.Label();
298 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 303
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL3)).BeginInit();
300 304
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL3)).BeginInit();
301 305
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ALC3)).BeginInit();
@@ -330,7 +334,7 @@
330 334
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_MASK)).BeginInit();
331 335
             this.panel1.SuspendLayout();
332 336
             this.panel_Serial.SuspendLayout();
333
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version)).BeginInit();
337
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version3)).BeginInit();
334 338
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).BeginInit();
335 339
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).BeginInit();
336 340
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).BeginInit();
@@ -413,6 +417,8 @@
413 417
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).BeginInit();
414 418
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
415 419
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
420
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version2)).BeginInit();
421
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version1)).BeginInit();
416 422
             this.SuspendLayout();
417 423
             // 
418 424
             // textBox_FRBT_TIME
@@ -1278,7 +1284,7 @@
1278 1284
             this.comboBox_Port.Location = new System.Drawing.Point(5, 27);
1279 1285
             this.comboBox_Port.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1280 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 1288
             this.comboBox_Port.TabIndex = 88;
1283 1289
             // 
1284 1290
             // cmBaudRate
@@ -1312,7 +1318,7 @@
1312 1318
             this.comboBox_baudrate.Location = new System.Drawing.Point(4, 78);
1313 1319
             this.comboBox_baudrate.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
1314 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 1322
             this.comboBox_baudrate.TabIndex = 91;
1317 1323
             this.comboBox_baudrate.Text = "115200";
1318 1324
             // 
@@ -1507,6 +1513,8 @@
1507 1513
             // panel1
1508 1514
             // 
1509 1515
             this.panel1.BackColor = System.Drawing.Color.White;
1516
+            this.panel1.Controls.Add(this.label10);
1517
+            this.panel1.Controls.Add(this.button_TempShutdown);
1510 1518
             this.panel1.Controls.Add(this.textBox_UL4_TableOffset);
1511 1519
             this.panel1.Controls.Add(this.textBox_UL2_TableOffset);
1512 1520
             this.panel1.Controls.Add(this.textBox_DL4_TableOffset);
@@ -1618,6 +1626,25 @@
1618 1626
             this.panel1.Size = new System.Drawing.Size(1136, 895);
1619 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 1648
             // textBox_UL4_TableOffset
1622 1649
             // 
1623 1650
             this.textBox_UL4_TableOffset.Location = new System.Drawing.Point(1030, 741);
@@ -1853,7 +1880,9 @@
1853 1880
             // 
1854 1881
             this.panel_Serial.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
1855 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 1886
             this.panel_Serial.Controls.Add(this.label_BankSel);
1858 1887
             this.panel_Serial.Controls.Add(this.label1);
1859 1888
             this.panel_Serial.Controls.Add(this.button_FirmwareUpdate);
@@ -1875,16 +1904,16 @@
1875 1904
             this.panel_Serial.Controls.Add(this.pictureBox_G_RX);
1876 1905
             this.panel_Serial.Location = new System.Drawing.Point(0, 165);
1877 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 1908
             this.panel_Serial.TabIndex = 154;
1880 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 1918
             // label1
1890 1919
             // 
@@ -2235,7 +2264,7 @@
2235 2264
             // 
2236 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 2268
             this.button_Carrier.Name = "button_Carrier";
2240 2269
             this.button_Carrier.Size = new System.Drawing.Size(75, 23);
2241 2270
             this.button_Carrier.TabIndex = 8;
@@ -2245,13 +2274,13 @@
2245 2274
             // 
2246 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 2278
             this.button_LedTest.Name = "button_LedTest";
2250 2279
             this.button_LedTest.Size = new System.Drawing.Size(75, 23);
2251 2280
             this.button_LedTest.TabIndex = 7;
2252 2281
             this.button_LedTest.Text = "LED TEST";
2253 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 2285
             // textBox_CardType
2257 2286
             // 
@@ -3517,6 +3546,20 @@
3517 3546
             0,
3518 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 3563
             // JdasMbic
3521 3564
             // 
3522 3565
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -3570,7 +3613,7 @@
3570 3613
             this.panel1.PerformLayout();
3571 3614
             this.panel_Serial.ResumeLayout(false);
3572 3615
             this.panel_Serial.PerformLayout();
3573
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version)).EndInit();
3616
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version3)).EndInit();
3574 3617
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_TX)).EndInit();
3575 3618
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_G_TX)).EndInit();
3576 3619
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_R_RX)).EndInit();
@@ -3670,6 +3713,8 @@
3670 3713
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_TempHigh_Alarm_OFF)).EndInit();
3671 3714
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
3672 3715
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
3716
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version2)).EndInit();
3717
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Version1)).EndInit();
3673 3718
             this.ResumeLayout(false);
3674 3719
 
3675 3720
         }
@@ -3941,7 +3986,11 @@
3941 3986
         private System.Windows.Forms.Label label_TableOffset;
3942 3987
         private System.Windows.Forms.Label label9;
3943 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 934
             DL_Det_ALL_Offset,
935 935
             UL_Det_Path_Offset1,
936 936
             UL_Det_Path_Offset2,
937
-            UL_Det_Path_Offset3,
937
+            Path_TempShutdown_Set,
938 938
             UL_Det_Path_Offset4,
939 939
             bluecell_crc_H,
940 940
             bluecell_crc_L,
@@ -1105,7 +1105,7 @@ namespace Jdas_Mbic
1105 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 1110
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "OFF");// = false;
1111 1111
                 this.Invoke(new StringSend(TextBox_Text_Set), textBox1_Carrier, "OFF");// = false;
@@ -1115,7 +1115,14 @@ namespace Jdas_Mbic
1115 1115
                 this.Invoke(new StringSend(Button_Text_Set), button_Carrier, "ON");// = false;
1116 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 1126
             if (buf[(int)BluecellReqIndex.Selftest1] == 0)
1120 1127
             {
1121 1128
                 this.Invoke(new StringSend(Button_Text_Set), button_SelfTest1, "OFF");// = false;
@@ -1907,20 +1914,7 @@ namespace Jdas_Mbic
1907 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 1919
             AttData = (short)(((buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_H] << 8) & 0xFF00) | (buf[(int)BluecellReqIndex.DLI_Level_High_Threshold_L] & 0x00FF));
1926 1920
             AttData = Convert.ToInt16(AttData * 0.1);
@@ -2050,18 +2044,18 @@ namespace Jdas_Mbic
2050 2044
             adcdata = adcdata * 3.3 / 4095;
2051 2045
             adcdata = (adcdata - 0.5) * 100;
2052 2046
 #else
2053
-            adcdata = (buf[(int)BluecellReqIndex.DET_TEMP]);
2047
+            adcdata = (sbyte)(buf[(int)BluecellReqIndex.DET_TEMP]);
2054 2048
 #endif
2055 2049
 
2056 2050
             this.Invoke(new StringSend(Label_Text_Set), label_Temp, adcdata.ToString("N2") + "°C");
2057 2051
             adcdata = 0;
2058 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 2059
             //Convert.ToInt32(buf[(int)BluecellReqIndex.CPUVERSION3], 16).ToString();
2066 2060
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION2])/10;
2067 2061
             //adcdata += (buf[(int)BluecellReqIndex.CPUVERSION3]);
@@ -2145,8 +2139,9 @@ namespace Jdas_Mbic
2145 2139
 
2146 2140
         public const byte DET_TableMaxLength = 160 + 1+ 6 + 2; // Header + Type + Length + CRCINDEX + TableIndex + .....    +  CRC
2147 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 2145
         const byte TableGetMaxLength =  1 + 7 + 1;
2151 2146
 
2152 2147
 
@@ -2663,9 +2658,9 @@ namespace Jdas_Mbic
2663 2658
             string hex = Convert.ToString(int.Parse(dec, 16).ToUpper();*/
2664 2659
             string hex = "24";
2665 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 2666
             string localpath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
@@ -2707,9 +2702,9 @@ namespace Jdas_Mbic
2707 2702
                 }
2708 2703
                 MBIC_Add_BootLoader_DataArray[9] = 0x20; //file type : MBIC 0x20
2709 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 2709
                 tempchardata = MBIC_HeaderFileName.ToCharArray();
2715 2710
                 for (i = 14; i < 14 + tempchardata.Length + 12; i++) // Total 41byte Filename
@@ -2954,6 +2949,13 @@ namespace Jdas_Mbic
2954 2949
                 case "button_Carrier":
2955 2950
                     datatype = DATATYPE.Bluecell_CarrierOnOff;
2956 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 2959
                 default:
2958 2960
                     MessageBox.Show("잘 못된 값 입니다. 확인 부탁드립니다.");
2959 2961
                     return;

BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN
Jdas_Mbic/bin/Release/ATT_DL1.xls


BIN
Jdas_Mbic/bin/Release/ATT_DL2.xls


BIN
Jdas_Mbic/bin/Release/ATT_DL3.xls


BIN
Jdas_Mbic/bin/Release/ATT_DL4.xls


BIN
Jdas_Mbic/bin/Release/ATT_UL1.xls


BIN
Jdas_Mbic/bin/Release/ATT_UL2.xls


BIN
Jdas_Mbic/bin/Release/ATT_UL3.xls


BIN
Jdas_Mbic/bin/Release/ATT_UL4.xls


BIN
Jdas_Mbic/bin/Release/DET_DL1.xls


BIN
Jdas_Mbic/bin/Release/DET_DL2.xls


BIN
Jdas_Mbic/bin/Release/DET_DL3.xls


BIN
Jdas_Mbic/bin/Release/DET_DL4.xls


BIN
Jdas_Mbic/bin/Release/DET_UL1.xls


BIN
Jdas_Mbic/bin/Release/DET_UL2.xls


BIN
Jdas_Mbic/bin/Release/DET_UL3.xls


BIN
Jdas_Mbic/bin/Release/DET_UL4.xls


BIN
Jdas_Mbic/bin/Release/TEMP_DL1.xls


BIN
Jdas_Mbic/bin/Release/TEMP_DL2.xls


BIN
Jdas_Mbic/bin/Release/TEMP_DL3.xls


BIN
Jdas_Mbic/bin/Release/TEMP_DL4.xls


BIN
Jdas_Mbic/bin/Release/TEMP_UL1.xls


BIN
Jdas_Mbic/bin/Release/TEMP_UL2.xls


BIN
Jdas_Mbic/bin/Release/TEMP_UL3.xls


BIN
Jdas_Mbic/bin/Release/TEMP_UL4.xls


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


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


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb