|
@@ -3123,7 +3123,7 @@ void get_firmware_version(unsigned char gun_index)
|
|
|
strcpy((char*) ShmSysConfigAndInfo->SysInfo.CsuPrimFwRev, ShmCharger->gun_info[0].ver.Version_FW);
|
|
|
|
|
|
// Get CSU root file system version
|
|
|
- sprintf((char*) ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "E0.01.00.0000.00");
|
|
|
+ sprintf((char*) ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "E0.02.00.0000.00");
|
|
|
|
|
|
// Get AC connector type from model name
|
|
|
for (uint8_t idx = 0; idx < 3; idx++)
|
|
@@ -6208,7 +6208,6 @@ int main(void)
|
|
|
{
|
|
|
DEBUG_INFO("========== SYS_MODE_IDLE (%d) ========== \n", gun_index);
|
|
|
|
|
|
- getTargetChargingInfoData(gun_index)->PilotState = CP_STATE_A;
|
|
|
setLedMotion(gun_index, LED_ACTION_IDLE);
|
|
|
setRelay(gun_index, OFF);
|
|
|
setRequest(gun_index, OFF);
|
|
@@ -6252,14 +6251,17 @@ int main(void)
|
|
|
previousData[gun_index].targetCurrent = 0;
|
|
|
previousData[gun_index].current_limit = 0;
|
|
|
previousData[gun_index].current_limit = 0;
|
|
|
+
|
|
|
+ getTargetChargingInfoData(gun_index)->PilotState = CP_STATE_A;
|
|
|
+ getTargetChargingInfoData(gun_index)->ConnectorPlugIn = 0;
|
|
|
+ sleep(5);
|
|
|
+ getTargetChargingInfoData(gun_index)->PilotState = CP_STATE_B;
|
|
|
+ getTargetChargingInfoData(gun_index)->ConnectorPlugIn = 1;
|
|
|
}
|
|
|
|
|
|
- if (((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE)
|
|
|
- && (getTargetChargingInfoData(gun_index)->PilotState == CP_STATE_B))
|
|
|
- || ((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE)
|
|
|
- && (getTargetChargingInfoData(gun_index)->PilotState == CP_STATE_C))
|
|
|
- || ((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE)
|
|
|
- && (ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn == ON))
|
|
|
+ if (((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE) && (getTargetChargingInfoData(gun_index)->PilotState == CP_STATE_B))
|
|
|
+ || ((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE) && (getTargetChargingInfoData(gun_index)->PilotState == CP_STATE_C))
|
|
|
+ || ((ShmSysConfigAndInfo->SysConfig.AuthorisationMode == AUTH_MODE_DISABLE) && (ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn == ON))
|
|
|
|| (ShmCharger->gun_info[gun_index].rfidReq == ON)
|
|
|
|| (ShmCharger->gun_info[gun_index].bleConfigData.isRequestStart == ON)
|
|
|
|| (ocpp_get_remotestart(gun_index) == ON)
|