Browse Source

[Added][AW-CCS][main.c]
2022-10-25 / EASON YANG
Action:
1. Added: check isCcsEnable under booting mode and open or close qca700 power.

File:
1. main.c
Action 1

FIRMWARE VERSION: B0.63.XX.XXXX.PX

8009 2 years ago
parent
commit
a4c9c441d2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      EVSE/Projects/AW-CCS/Apps/main.c

+ 6 - 0
EVSE/Projects/AW-CCS/Apps/main.c

@@ -6391,6 +6391,12 @@ int main(void)
 						// Refresh PTB resend timer
 						// Refresh PTB resend timer
 						if(ShmSysConfigAndInfo->SysConfig.ModelName[3] == 'P')
 						if(ShmSysConfigAndInfo->SysConfig.ModelName[3] == 'P')
 							refreshStartTimer(&startTime[gun_index][TMR_IDX_PTB_METER_SEND]);
 							refreshStartTimer(&startTime[gun_index][TMR_IDX_PTB_METER_SEND]);
+						
+						// Check is ccs Enable/Disable to open ccs power.
+						if(ShmCharger->isCcsEnable == ON)
+							system("echo 1 > /sys/class/gpio/gpio115/value");
+						else
+							system("echo 0 > /sys/class/gpio/gpio115/value");
 					}
 					}
 
 
 					break;
 					break;