Преглед изворни кода

Bootloader data index 수정

PYJ пре 5 година
родитељ
комит
19be5c691d

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


+ 7 - 6
Jdas_Mbic/Func/Data_Handler.cs

@@ -216,12 +216,12 @@ namespace Jdas_Mbic
216
                                 datatmp[3] =  (data[(int)MBICProt_st.MBIC_PAYLOADSTART + 3]);
216
                                 datatmp[3] =  (data[(int)MBICProt_st.MBIC_PAYLOADSTART + 3]);
217
                                 datatmp[4] = Convert.ToByte(crcret & 0xFF00 >> 8);
217
                                 datatmp[4] = Convert.ToByte(crcret & 0xFF00 >> 8);
218
                                 datatmp[5] = Convert.ToByte(crcret & 0xFF00 >> 8);
218
                                 datatmp[5] = Convert.ToByte(crcret & 0xFF00 >> 8);
219
-                                datatmp[6] = Convert.ToByte(crcret & 0xFF00 >> 8);
220
-                                datatmp[7] = Convert.ToByte(crcret & 0xFF00 >> 8);
221
-                                datatmp[8] = Convert.ToByte(crcret & 0xFF00 >> 8);
222
-                                datatmp[9] = Convert.ToByte(crcret & 0xFF00 >> 8);
223
-                                datatmp[10] = Convert.ToByte(crcret & 0xFF00 >> 8);
224
-                                datatmp[11] = Convert.ToByte(crcret & 0xFF00 >> 8);
219
+                                datatmp[6] = 0;     /*Reserve*/
220
+                                datatmp[7] = 0;     /*Reserve*/
221
+                                datatmp[8] = 0;     /*Reserve*/
222
+                                datatmp[9] = 0;     /*Reserve*/
223
+                                datatmp[10] =0;     /*Reserve*/
224
+                                datatmp[11] = 0;    /*Reserve*/
225
 
225
 
226
                                 datatmp = bluecell_BootProtocol.MBIC_HeaderMergeFunction(datatmp, 12);
226
                                 datatmp = bluecell_BootProtocol.MBIC_HeaderMergeFunction(datatmp, 12);
227
                                 this.serial.Serial_DataSend(datatmp, 22 + 12 + 3);
227
                                 this.serial.Serial_DataSend(datatmp, 22 + 12 + 3);
@@ -229,6 +229,7 @@ namespace Jdas_Mbic
229
                             
229
                             
230
                             break;
230
                             break;
231
                         case (byte)MBIC_Download_Rsp_L.MBIC_Download_Confirm_RSP:
231
                         case (byte)MBIC_Download_Rsp_L.MBIC_Download_Confirm_RSP:
232
+
232
                             break;
233
                             break;
233
                         case (byte)MBIC_Download_Rsp_L.MBIC_Reboot_Notice_RSP:
234
                         case (byte)MBIC_Download_Rsp_L.MBIC_Reboot_Notice_RSP:
234
                             
235
                             

+ 8 - 8
Jdas_Mbic/Func/Update_Serial.cs

@@ -280,10 +280,10 @@ namespace Jdas_Mbic
280
 
280
 
281
 
281
 
282
                
282
                
283
-                SendArray[4] = Convert.ToByte((MBIC_SendingIndex& 0xFF000000) >> 24);
284
-                SendArray[5] = Convert.ToByte((MBIC_SendingIndex& 0x00FF0000) >> 16);
285
-                SendArray[6] = Convert.ToByte((MBIC_SendingIndex& 0x0000FF00) >> 8);
286
-                SendArray[7] = Convert.ToByte((MBIC_SendingIndex& 0x000000FF));
283
+                SendArray[4] = Convert.ToByte((MBIC_SendingIndex - 1& 0xFF000000) >> 24);
284
+                SendArray[5] = Convert.ToByte((MBIC_SendingIndex - 1& 0x00FF0000) >> 16);
285
+                SendArray[6] = Convert.ToByte((MBIC_SendingIndex - 1& 0x0000FF00) >> 8);
286
+                SendArray[7] = Convert.ToByte((MBIC_SendingIndex - 1& 0x000000FF));
287
 
287
 
288
 
288
 
289
                 SendArray = Bluecell_BootProtocol.MBIC_HeaderMergeFunction(SendArray, SendArray.Length);
289
                 SendArray = Bluecell_BootProtocol.MBIC_HeaderMergeFunction(SendArray, SendArray.Length);
@@ -308,10 +308,10 @@ namespace Jdas_Mbic
308
                 SendArray[3] = Convert.ToByte((Length & 0x000000FF));
308
                 SendArray[3] = Convert.ToByte((Length & 0x000000FF));
309
 
309
 
310
 
310
 
311
-                SendArray[4] = Convert.ToByte((MBIC_SendingIndex& 0xFF000000) >> 24);
312
-                SendArray[5] = Convert.ToByte((MBIC_SendingIndex& 0x00FF0000) >> 16);
313
-                SendArray[6] = Convert.ToByte((MBIC_SendingIndex& 0x0000FF00) >> 8);
314
-                SendArray[7] = Convert.ToByte((MBIC_SendingIndex& 0x000000FF));
311
+                SendArray[4] = Convert.ToByte((MBIC_SendingIndex - 1& 0xFF000000) >> 24);
312
+                SendArray[5] = Convert.ToByte((MBIC_SendingIndex - 1& 0x00FF0000) >> 16);
313
+                SendArray[6] = Convert.ToByte((MBIC_SendingIndex - 1& 0x0000FF00) >> 8);
314
+                SendArray[7] = Convert.ToByte((MBIC_SendingIndex - 1& 0x000000FF));
315
 
315
 
316
 
316
 
317
                 SendArray = Bluecell_BootProtocol.MBIC_HeaderMergeFunction(SendArray, SendArray.Length);
317
                 SendArray = Bluecell_BootProtocol.MBIC_HeaderMergeFunction(SendArray, SendArray.Length);

BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN
Jdas_Mbic/bin/Debug/Untitled1.bak


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