4 次代码提交 c2c7e3decc ... 334251dc7a

作者 SHA1 备注 提交日期
  PYJ 334251dc7a MBIC Version 01.35 4 年之前
  PYJ 5193a2b9dd 불필요 코드 제거/ DL UL AMP ON OFF 시 Alarm 제거 하도록 수정 /DL Shutdown Alarm 조건 추가 4 年之前
  PYJ 9401c8e071 UL 문제 수정완료. 4 年之前
  PYJ e79e8b8f44 AMP On으로 강제로 Shutdown을 해제시킬 경우 Cnt. Idle변경 및 Alarm이 즉시 해제 되도록 수정 요청 사항 수정 Test 필요 4 年之前
共有 2 个文件被更改,包括 59 次插入31 次删除
  1. 2 2
      .settings/language.settings.xml
  2. 57 29
      Bluecell_Src/Bluecell_operate.c

+ 2 - 2
.settings/language.settings.xml

@@ -4,7 +4,7 @@
4
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
4
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
5
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
5
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
6
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
6
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
7
-			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="1891638304241811623" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
7
+			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="1726537617709614172" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
8
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
8
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
9
 				<language-scope id="org.eclipse.cdt.core.g++"/>
9
 				<language-scope id="org.eclipse.cdt.core.g++"/>
10
 			</provider>
10
 			</provider>
@@ -14,7 +14,7 @@
14
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
14
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
15
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
15
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
16
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
16
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
17
-			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="1891638304241811623" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
17
+			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="1726537617709614172" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
18
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
18
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
19
 				<language-scope id="org.eclipse.cdt.core.g++"/>
19
 				<language-scope id="org.eclipse.cdt.core.g++"/>
20
 			</provider>
20
 			</provider>

+ 57 - 29
Bluecell_Src/Bluecell_operate.c

@@ -3255,28 +3255,6 @@ uint32_t MBIC_DataSend(uint8_t* data){
3255
         else
3255
         else
3256
             data[MBIC_PAYLOADSTART + i++] = 0;
3256
             data[MBIC_PAYLOADSTART + i++] = 0;
3257
         
3257
         
3258
-#if 0 // PYJ.2020.08.18_BEGIN -- 
3259
-        if(bluecell_Currdatastatus.ALARM_MASK2 != false)
3260
-            data[MBIC_PAYLOADSTART + i++] = bluecell_Currdatastatus.ALARM_DLI_Level;
3261
-        else
3262
-            data[MBIC_PAYLOADSTART + i++] = 0;
3263
-
3264
-        if(bluecell_Currdatastatus.ALARM_MASK3 != false)
3265
-            data[MBIC_PAYLOADSTART + i++] = (bluecell_Currdatastatus.ALARM_DLI_AGC_Alarm & 0xF0 )
3266
-                                          | (bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN & 0x0F);
3267
-        else
3268
-            data[MBIC_PAYLOADSTART + i++] = 0;    
3269
-        if(bluecell_Currdatastatus.ALARM_MASK4 != false)                                      
3270
-            data[MBIC_PAYLOADSTART + i++] = bluecell_Currdatastatus.ALARM_ULO_Level;
3271
-        else
3272
-        data[MBIC_PAYLOADSTART + i++] = 0;
3273
-
3274
-        if(bluecell_Currdatastatus.ALARM_MASK5 != false)
3275
-            data[MBIC_PAYLOADSTART + i++] = (bluecell_Currdatastatus.ALARM_ULO_ALC_Alarm & 0xF0)
3276
-                                           |(bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN & 0x0F);
3277
-        else
3278
-            data[MBIC_PAYLOADSTART + i++] = 0;     
3279
-#else
3280
 //        printf("bluecell_Currdatastatus.ALARM_DLI_Level : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_Level);
3258
 //        printf("bluecell_Currdatastatus.ALARM_DLI_Level : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_Level);
3281
 //        printf("bluecell_Currdatastatus.ALARM_DLI_AGC_Alarm : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_AGC_Alarm);
3259
 //        printf("bluecell_Currdatastatus.ALARM_DLI_AGC_Alarm : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_AGC_Alarm);
3282
 //        printf("bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN);
3260
 //        printf("bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN : %x \r\n",bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN);
@@ -3486,7 +3464,6 @@ uint32_t MBIC_DataSend(uint8_t* data){
3486
         }
3464
         }
3487
         
3465
         
3488
 
3466
 
3489
-#endif // PYJ.2020.08.18_END -- 
3490
     }
3467
     }
3491
     /*ALARM BIT MASK*/
3468
     /*ALARM BIT MASK*/
3492
     data[MBIC_PAYLOADSTART + i++] = MBIC_AID;
3469
     data[MBIC_PAYLOADSTART + i++] = MBIC_AID;
@@ -4572,6 +4549,9 @@ void Factory_Set(){
4572
 
4549
 
4573
 }
4550
 }
4574
 
4551
 
4552
+
4553
+/*When using the shutdown function, you should never use this function to turn onoff
4554
+Because this function initializes Shutdown related Count and alarm.*/
4575
 void DL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,uint8_t* retrycnt,uint8_t* PrevRetryCnt){
4555
 void DL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,uint8_t* retrycnt,uint8_t* PrevRetryCnt){
4576
     GPIO_TypeDef *Port = 0;
4556
     GPIO_TypeDef *Port = 0;
4577
     uint16_t Pin = 0;    
4557
     uint16_t Pin = 0;    
@@ -4579,18 +4559,28 @@ void DL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,
4579
         case Path1_OnOff:
4559
         case Path1_OnOff:
4580
         Port = PATH_EN_DL1_GPIO_Port;
4560
         Port = PATH_EN_DL1_GPIO_Port;
4581
         Pin = PATH_EN_DL1_Pin;
4561
         Pin = PATH_EN_DL1_Pin;
4562
+        bluecell_Currdatastatus.DLI_Shutdown_Alarm1 = false;
4563
+        bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~ALARM_DLI_SHUTDOWN_P1;
4582
         break;
4564
         break;
4583
         case Path2_OnOff:
4565
         case Path2_OnOff:
4584
         Port = PATH_EN_DL2_GPIO_Port;
4566
         Port = PATH_EN_DL2_GPIO_Port;
4585
         Pin = PATH_EN_DL2_Pin;
4567
         Pin = PATH_EN_DL2_Pin;
4568
+		bluecell_Currdatastatus.DLI_Shutdown_Alarm2 = false;
4569
+        bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~ALARM_DLI_SHUTDOWN_P2;
4586
         break;
4570
         break;
4587
         case Path3_OnOff:
4571
         case Path3_OnOff:
4588
         Port = PATH_EN_DL3_GPIO_Port;
4572
         Port = PATH_EN_DL3_GPIO_Port;
4589
         Pin = PATH_EN_DL3_Pin;
4573
         Pin = PATH_EN_DL3_Pin;
4574
+		bluecell_Currdatastatus.DLI_Shutdown_Alarm3 = false;
4575
+        bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~ALARM_DLI_SHUTDOWN_P3;
4576
+        
4590
         break;
4577
         break;
4591
         case Path4_OnOff:
4578
         case Path4_OnOff:
4592
         Port = PATH_EN_DL4_GPIO_Port;
4579
         Port = PATH_EN_DL4_GPIO_Port;
4593
         Pin = PATH_EN_DL4_Pin;
4580
         Pin = PATH_EN_DL4_Pin;
4581
+		bluecell_Currdatastatus.DLI_Shutdown_Alarm4 = false;
4582
+        bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~ALARM_DLI_SHUTDOWN_P4;
4583
+        
4594
         break;
4584
         break;
4595
     }
4585
     }
4596
     *path = value; 
4586
     *path = value; 
@@ -4609,6 +4599,9 @@ void DL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,
4609
     CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus);
4599
     CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus);
4610
 
4600
 
4611
 }
4601
 }
4602
+/*When using the shutdown function, you should never use this function to turn onoff
4603
+Because this function initializes Shutdown related Count and alarm.*/
4604
+
4612
 void UL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,uint8_t* retrycnt,uint8_t* PrevRetryCnt){
4605
 void UL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,uint8_t* retrycnt,uint8_t* PrevRetryCnt){
4613
     GPIO_TypeDef *Port = 0;
4606
     GPIO_TypeDef *Port = 0;
4614
     uint16_t Pin = 0;    
4607
     uint16_t Pin = 0;    
@@ -4617,18 +4610,26 @@ void UL_Path_OnOff(uint8_t Index,uint8_t value,uint8_t* path,uint8_t* PrevAtten,
4617
         case Path1_OnOff:
4610
         case Path1_OnOff:
4618
         Port = PATH_EN_UL1_GPIO_Port;
4611
         Port = PATH_EN_UL1_GPIO_Port;
4619
         Pin = PATH_EN_UL1_Pin;
4612
         Pin = PATH_EN_UL1_Pin;
4613
+		bluecell_Currdatastatus.ULO_Shutdown_Alarm1 = false;
4614
+        bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~ALARM_ULO_SHUTDOWN_P1;
4620
         break;
4615
         break;
4621
         case Path2_OnOff:
4616
         case Path2_OnOff:
4622
         Port = PATH_EN_UL2_GPIO_Port;
4617
         Port = PATH_EN_UL2_GPIO_Port;
4623
         Pin = PATH_EN_UL2_Pin;
4618
         Pin = PATH_EN_UL2_Pin;
4619
+		bluecell_Currdatastatus.ULO_Shutdown_Alarm2 = false;
4620
+        bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~ALARM_ULO_SHUTDOWN_P2;        
4624
         break;
4621
         break;
4625
         case Path3_OnOff:
4622
         case Path3_OnOff:
4626
         Port = PATH_EN_UL3_GPIO_Port;
4623
         Port = PATH_EN_UL3_GPIO_Port;
4627
         Pin = PATH_EN_UL3_Pin;
4624
         Pin = PATH_EN_UL3_Pin;
4625
+		bluecell_Currdatastatus.ULO_Shutdown_Alarm3 = false;
4626
+        bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~ALARM_ULO_SHUTDOWN_P3;        
4628
         break;
4627
         break;
4629
         case Path4_OnOff:
4628
         case Path4_OnOff:
4630
         Port = PATH_EN_UL4_GPIO_Port;
4629
         Port = PATH_EN_UL4_GPIO_Port;
4631
         Pin = PATH_EN_UL4_Pin;
4630
         Pin = PATH_EN_UL4_Pin;
4631
+		bluecell_Currdatastatus.ULO_Shutdown_Alarm4 = false;
4632
+        bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~ALARM_ULO_SHUTDOWN_P4;        
4632
         break;
4633
         break;
4633
     }
4634
     }
4634
     *path = value; 
4635
     *path = value; 
@@ -6308,6 +6309,11 @@ void DET_LevelAlarmCheck(){
6308
         }
6309
         }
6309
         Res_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1;
6310
         Res_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1;
6310
 #else
6311
 #else
6312
+//        if(i == 2){
6313
+//            printf("======================================================\r\n");            
6314
+//            printf("Res_Down_DL_dBm[DET_Alarm_DL1_Index + i] : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Index + i]);
6315
+//        }
6316
+
6311
         Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] = Res_Down_DL_dBm[DET_Alarm_DL1_Index + i];
6317
         Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] = Res_Down_DL_dBm[DET_Alarm_DL1_Index + i];
6312
         if(Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] < 0) 
6318
         if(Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] < 0) 
6313
             Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] -= 9;
6319
             Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] -= 9;
@@ -6316,6 +6322,7 @@ void DET_LevelAlarmCheck(){
6316
     
6322
     
6317
         Res_Down_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1; // down 
6323
         Res_Down_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1; // down 
6318
         Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1; // Round
6324
         Res_Up_DL_dBm[DET_Alarm_DL1_Index + i] *= 0.1; // Round
6325
+        
6319
             
6326
             
6320
 
6327
 
6321
         
6328
         
@@ -6517,13 +6524,18 @@ void DET_LevelAlarmCheck(){
6517
 //                    printf("1Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6524
 //                    printf("1Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6518
 //                  }
6525
 //                  }
6519
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6526
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6520
-//                printf("Shutdown On 1\r\n");
6527
+//                    if(i == 2){    
6528
+////                        printf("Shutdown On 1\r\n");
6529
+//                    }
6521
             }
6530
             }
6522
             else{
6531
             else{
6523
                 if(LimitData_DL_Shutdown - 2 < Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]
6532
                 if(LimitData_DL_Shutdown - 2 < Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]
6524
                     && MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0 )
6533
                     && MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0 )
6525
                 {
6534
                 {
6526
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6535
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6536
+//                    if(i == 2){    
6537
+////                        printf("Shutdown On 1_2\r\n");
6538
+//                    }                    
6527
 //                  if(i == 0){
6539
 //                  if(i == 0){
6528
 //                    printf("2Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6540
 //                    printf("2Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6529
 //                  }                    
6541
 //                  }                    
@@ -6541,6 +6553,9 @@ void DET_LevelAlarmCheck(){
6541
             if(LimitData_DL_Shutdown < Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]){
6553
             if(LimitData_DL_Shutdown < Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]){
6542
                 //            if(DL_Atten[DET_Alarm_DL1_Index + i] * 0.1 <= -15)
6554
                 //            if(DL_Atten[DET_Alarm_DL1_Index + i] * 0.1 <= -15)
6543
                 ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6555
                 ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6556
+//                if(i == 2){    
6557
+////                    printf("Shutdown On 2_1\r\n");
6558
+//                }                
6544
 //                printf("3Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6559
 //                printf("3Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);     
6545
                 //                    printf("Shutdown On 2\r\n");                      
6560
                 //                    printf("Shutdown On 2\r\n");                      
6546
             }
6561
             }
@@ -6549,21 +6564,33 @@ void DET_LevelAlarmCheck(){
6549
                 && MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0 ){
6564
                 && MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0 ){
6550
 //                    printf("4Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);                         
6565
 //                    printf("4Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index ]);                         
6551
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6566
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6552
-                    //                        printf("Shutdown On 2_1\r\n");
6567
+//                    printf("Shutdown On 2_2\r\n");
6553
                 }
6568
                 }
6569
+                else if(MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0
6570
+                    && LimitData_DL_Shutdown - 2  < Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]){
6571
+                    ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = true;
6572
+//                    if(i == 2){
6573
+////                        printf("Shutdown On 2_3\r\n");                                          
6574
+//                    }
6575
+                }                
6554
                 else if(MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0){
6576
                 else if(MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] > 0){
6555
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = false;
6577
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = false;
6556
-                    //                    printf("Shutdown Off 2\r\n");                                          
6578
+//                    if(i == 2){
6579
+////                        printf("Shutdown Off 2\r\n");                                          
6580
+//                    }
6557
                 }
6581
                 }
6558
                 else if(MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] == 0
6582
                 else if(MBIC_DL_ShutdownCount[DET_Alarm_DL1_Shutdown_Index + i] == 0
6559
                     && LimitData_DL_Shutdown > Res_Up_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]){
6583
                     && LimitData_DL_Shutdown > Res_Up_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]){
6560
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = false;
6584
                     ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + i] = false;
6585
+//                    if(i == 2){
6586
+////                        printf("Shutdown Off 3\r\n");                                          
6587
+//                    }                    
6561
                 }
6588
                 }
6562
             }
6589
             }
6563
 
6590
 
6564
         }
6591
         }
6565
 #if 0 // PYJ.2020.10.23_BEGIN -- 
6592
 #if 0 // PYJ.2020.10.23_BEGIN -- 
6566
-       if(i == 3){
6593
+       if(i == 2){
6567
             printf("======================================================\r\n");
6594
             printf("======================================================\r\n");
6568
             printf("Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i ]);
6595
             printf("Res_Down_DL_dBm : %d \r\n",Res_Down_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i ]);
6569
             printf("Res_Up_DL_dBm : %d \r\n",Res_Up_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]);       
6596
             printf("Res_Up_DL_dBm : %d \r\n",Res_Up_DL_dBm[DET_Alarm_DL1_Shutdown_Index + i]);       
@@ -9494,7 +9521,8 @@ void DL_Shutdown_Operate(uint8_t index,uint8_t* path,uint8_t* retrycnt,uint8_t*
9494
         if(DET_DL_Shutdown_Off_AlarmTimerCnt[index] >= MBIC_OFF_MAINTAIN_SEC
9521
         if(DET_DL_Shutdown_Off_AlarmTimerCnt[index] >= MBIC_OFF_MAINTAIN_SEC
9495
             && (*retrycnt) != RETRYCNT_MAX){
9522
             && (*retrycnt) != RETRYCNT_MAX){
9496
             bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~AlarmFlag;
9523
             bluecell_Currdatastatus.ALARM_DLI_SHTUTDOWN &= ~AlarmFlag;
9497
-            *ShutdownAlarm       = false;            
9524
+            *ShutdownAlarm       = false;         
9525
+            
9498
         }
9526
         }
9499
     } 
9527
     } 
9500
     if((*retrycnt) >= 1){
9528
     if((*retrycnt) >= 1){
@@ -9610,7 +9638,7 @@ void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* R
9610
         if(DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_OFF_MAINTAIN_SEC
9638
         if(DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_OFF_MAINTAIN_SEC
9611
             && (*RetryCnt) != RETRYCNT_MAX){ 
9639
             && (*RetryCnt) != RETRYCNT_MAX){ 
9612
             bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~AlarmFlag;
9640
             bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~AlarmFlag;
9613
-            *ShutdownAlarm       = false;            
9641
+            *ShutdownAlarm       = false;      
9614
         }
9642
         }
9615
     } 
9643
     } 
9616
     if((*RetryCnt) >= 1){
9644
     if((*RetryCnt) >= 1){