Browse Source

Temperature Shudown 기능 On Off 기능 순서 변경

PYJ 4 years ago
parent
commit
4e0a9145f1
1 changed files with 13 additions and 8 deletions
  1. 13 8
      Bluecell_Src/Bluecell_operate.c

+ 13 - 8
Bluecell_Src/Bluecell_operate.c

@@ -3697,7 +3697,7 @@ uint32_t MBIC_DataSend(uint8_t* data){
3697
 
3697
 
3698
 
3698
 
3699
 
3699
 
3700
-    /*Temperature_Offset*/
3700
+    /*Temperature_Threshold*/
3701
     data[MBIC_PAYLOADSTART + i++] = MBIC_AID;
3701
     data[MBIC_PAYLOADSTART + i++] = MBIC_AID;
3702
     data[MBIC_PAYLOADSTART + i++] = Temp_High_Threshold;
3702
     data[MBIC_PAYLOADSTART + i++] = Temp_High_Threshold;
3703
     data[MBIC_PAYLOADSTART + i++] = 1; // LENGTH
3703
     data[MBIC_PAYLOADSTART + i++] = 1; // LENGTH
@@ -4835,7 +4835,7 @@ void Temp_Shutdown_ONOFF(uint8_t val){
4835
     printf("val :%d \r\n",val);
4835
     printf("val :%d \r\n",val);
4836
     printf("Path_TempShutdown_Set : %d \r\n",bluecell_Currdatastatus.Path_TempShutdown_Set);    
4836
     printf("Path_TempShutdown_Set : %d \r\n",bluecell_Currdatastatus.Path_TempShutdown_Set);    
4837
     printf(" bluecell_Currdatastatus.Path_TempSave_Bit : %x \r\n", bluecell_Currdatastatus.Path_TempSave_Bit);
4837
     printf(" bluecell_Currdatastatus.Path_TempSave_Bit : %x \r\n", bluecell_Currdatastatus.Path_TempSave_Bit);
4838
-    if(val == 0){// ON //Path ON
4838
+    if(val == 1){// ON //Path ON
4839
 #if 0 // PYJ.2020.08.14_BEGIN -- 
4839
 #if 0 // PYJ.2020.08.14_BEGIN -- 
4840
          bluecell_Currdatastatus.ATT_DL1_PATH= TempShutdown_DL_SaveData[0];    
4840
          bluecell_Currdatastatus.ATT_DL1_PATH= TempShutdown_DL_SaveData[0];    
4841
          bluecell_Currdatastatus.ATT_DL2_PATH= TempShutdown_DL_SaveData[1];    
4841
          bluecell_Currdatastatus.ATT_DL2_PATH= TempShutdown_DL_SaveData[1];    
@@ -5300,6 +5300,7 @@ bool MBIC_Operate(uint8_t* data){
5300
                 break;
5300
                 break;
5301
             case  Alarm_Test_Mode                         :
5301
             case  Alarm_Test_Mode                         :
5302
 //                printf("bluecell_Currdatastatus.ALsARM_TESTMODE : %d \r\n",bluecell_Currdatastatus.ALARM_TESTMODE);
5302
 //                printf("bluecell_Currdatastatus.ALsARM_TESTMODE : %d \r\n",bluecell_Currdatastatus.ALARM_TESTMODE);
5303
+//                printf("bluecell_Currdatastatus.ALsARM_TESTMODE : %d \r\n",data[MBIC_PAYLOADSTART + 3]);
5303
                 bluecell_Currdatastatus.ALARM_TESTMODE = data[MBIC_PAYLOADSTART + 3]; 
5304
                 bluecell_Currdatastatus.ALARM_TESTMODE = data[MBIC_PAYLOADSTART + 3]; 
5304
                 break;
5305
                 break;
5305
             case  Alarm_Test_Dummy                        :
5306
             case  Alarm_Test_Dummy                        :
@@ -5308,11 +5309,11 @@ bool MBIC_Operate(uint8_t* data){
5308
                 bluecell_Currdatastatus.ALARM_Test_Dummy3 = data[MBIC_PAYLOADSTART + 5];
5309
                 bluecell_Currdatastatus.ALARM_Test_Dummy3 = data[MBIC_PAYLOADSTART + 5];
5309
                 bluecell_Currdatastatus.ALARM_Test_Dummy4 = data[MBIC_PAYLOADSTART + 6];
5310
                 bluecell_Currdatastatus.ALARM_Test_Dummy4 = data[MBIC_PAYLOADSTART + 6];
5310
                 bluecell_Currdatastatus.ALARM_Test_Dummy5 = data[MBIC_PAYLOADSTART + 7];
5311
                 bluecell_Currdatastatus.ALARM_Test_Dummy5 = data[MBIC_PAYLOADSTART + 7];
5311
-//                printf("Dummy 1 : %d \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy1);
5312
-//                printf("Dummy 2 : %d \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy2);
5313
-//                printf("Dummy 3 : %d \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy3);
5314
-//                printf("Dummy 4 : %d \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy4);
5315
-//                printf("Dummy 5 : %d \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy5);                
5312
+//                printf("Dummy 1 : %x \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy1);
5313
+//                printf("Dummy 2 : %x \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy2);
5314
+//                printf("Dummy 3 : %x \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy3);
5315
+//                printf("Dummy 4 : %x \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy4);
5316
+//                printf("Dummy 5 : %x \r\n",bluecell_Currdatastatus.ALARM_Test_Dummy5);                
5316
                 break;
5317
                 break;
5317
             case  CPU_Bank_Select_Reboot_by               :
5318
             case  CPU_Bank_Select_Reboot_by               :
5318
                 bluecell_Currdatastatus.CPU_Bank_Select = data[MBIC_PAYLOADSTART + 3]; 
5319
                 bluecell_Currdatastatus.CPU_Bank_Select = data[MBIC_PAYLOADSTART + 3]; 
@@ -5329,11 +5330,12 @@ bool MBIC_Operate(uint8_t* data){
5329
                 EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_WINDOW_STATUS_ADDRESDS,&bluecell_Currdatastatus.bluecell_header,sizeof(BLUESTATUS_st) );
5330
                 EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_WINDOW_STATUS_ADDRESDS,&bluecell_Currdatastatus.bluecell_header,sizeof(BLUESTATUS_st) );
5330
 //                printf("bluecell_Currdatastatus.CPU_Bank_Select : %d \r\n",bluecell_Currdatastatus.CPU_Bank_Select);
5331
 //                printf("bluecell_Currdatastatus.CPU_Bank_Select : %d \r\n",bluecell_Currdatastatus.CPU_Bank_Select);
5331
 //                printf("I will Booting Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
5332
 //                printf("I will Booting Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
5333
+                printf("Reset : \r\n");
5332
                 NVIC_SystemReset();
5334
                 NVIC_SystemReset();
5333
                 break;
5335
                 break;
5334
             case  SW_Reset                                :
5336
             case  SW_Reset                                :
5335
 //                Table_LengSet();
5337
 //                Table_LengSet();
5336
-//                printf("SoftWare Reset Start \r\n");
5338
+                printf("SoftWare Reset Start \r\n");
5337
                 bluecell_Currdatastatus.S_W_Reset = data[MBIC_PAYLOADSTART + 3]; 
5339
                 bluecell_Currdatastatus.S_W_Reset = data[MBIC_PAYLOADSTART + 3]; 
5338
                 NVIC_SystemReset();
5340
                 NVIC_SystemReset();
5339
                 break;
5341
                 break;
@@ -5371,7 +5373,10 @@ bool MBIC_Operate(uint8_t* data){
5371
                 break;
5373
                 break;
5372
             case Temp_Shutdown_Path_ON_OFF:
5374
             case Temp_Shutdown_Path_ON_OFF:
5373
                 bluecell_Currdatastatus.Path_TempShutdown_Set = data[MBIC_PAYLOADSTART + 3];
5375
                 bluecell_Currdatastatus.Path_TempShutdown_Set = data[MBIC_PAYLOADSTART + 3];
5376
+                printf("bluecell_Currdatastatus.Path_TempShutdown_Set : %d \r\n",bluecell_Currdatastatus.Path_TempShutdown_Set);
5374
                 Temp_Shutdown_ONOFF(bluecell_Currdatastatus.Path_TempShutdown_Set);
5377
                 Temp_Shutdown_ONOFF(bluecell_Currdatastatus.Path_TempShutdown_Set);
5378
+                printf("bluecell_Currdatastatus.Path_TempShutdown_Set : %d \r\n",bluecell_Currdatastatus.Path_TempShutdown_Set);                
5379
+                printf(" bluecell_Currdatastatus.ATT_DL1_PATH : %d \r\n", bluecell_Currdatastatus.ATT_DL1_PATH);
5375
                 break;
5380
                 break;
5376
             case  Carrier_ON_OFF                          :
5381
             case  Carrier_ON_OFF                          :
5377
                 bluecell_Currdatastatus.Carrier_ON_OFF = data[MBIC_PAYLOADSTART + 3]; 
5382
                 bluecell_Currdatastatus.Carrier_ON_OFF = data[MBIC_PAYLOADSTART + 3];