|
@@ -5320,17 +5320,21 @@ int main(void)
|
|
setRequest(gun_index, OFF);
|
|
setRequest(gun_index, OFF);
|
|
sleep(15);
|
|
sleep(15);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(((ShmCharger->gun_info[gun_index].chargingMode != CHARGING_MODE_SOCKETE) && (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A)) ||
|
|
|
|
+ ((ShmCharger->gun_info[gun_index].chargingMode != CHARGING_MODE_SOCKETE) && (!ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn)))
|
|
|
|
+ {
|
|
|
|
+ ShmCharger->gun_info[gun_index].rfidReq = OFF;
|
|
|
|
+ ShmCharger->gun_info[gun_index].isAuthPassEnd = OFF;
|
|
|
|
+ ShmCharger->gun_info[gun_index].bleConfigData.isRequestStop = OFF;
|
|
|
|
+ ocpp_set_remotestop(gun_index, OFF);
|
|
|
|
+ ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].schedule.isTriggerStop = OFF;
|
|
|
|
|
|
- ShmCharger->gun_info[gun_index].rfidReq = OFF;
|
|
|
|
- ShmCharger->gun_info[gun_index].isAuthPassEnd = OFF;
|
|
|
|
- ShmCharger->gun_info[gun_index].bleConfigData.isRequestStop = OFF;
|
|
|
|
- ocpp_set_remotestop(gun_index, OFF);
|
|
|
|
- ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].schedule.isTriggerStop = OFF;
|
|
|
|
-
|
|
|
|
- DB_Insert_Record(localDb, gun_index);
|
|
|
|
- setChargerMode(gun_index, SYS_MODE_IDLE);
|
|
|
|
|
|
+ DB_Insert_Record(localDb, gun_index);
|
|
|
|
+ setChargerMode(gun_index, SYS_MODE_IDLE);
|
|
|
|
+ }
|
|
|
|
+
|
|
break;
|
|
break;
|
|
-
|
|
|
|
case SYS_MODE_ALARM:
|
|
case SYS_MODE_ALARM:
|
|
setLedMotion(gun_index,LED_ACTION_ALARM);
|
|
setLedMotion(gun_index,LED_ACTION_ALARM);
|
|
|
|
|