|
@@ -1186,7 +1186,7 @@ void get_firmware_version(unsigned char gun_index)
|
|
|
strcpy((char*)ShmSysConfigAndInfo->SysInfo.CsuPrimFwRev, ShmCharger->gun_info[gun_index].ver.Version_FW);
|
|
|
|
|
|
// Get CSU root file system version
|
|
|
- sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "D0.16.00.0000.00");
|
|
|
+ sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "D0.17.00.0000.00");
|
|
|
|
|
|
// Get AC connector type from model name
|
|
|
for(uint8_t idx=0;idx<3;idx++)
|
|
@@ -2558,13 +2558,18 @@ int main(void)
|
|
|
//CCS handshake timeout
|
|
|
if(DiffTimebWithNow(startTime[gun_index][TMR_IDX_BS_HLC_HANDSHAKE]) > TIMEOUT_SPEC_BS_HLC_HANDSHAKE)
|
|
|
{
|
|
|
-
|
|
|
+ ShmCharger->gun_info[gun_index].acCcsInfo.ChargingPermission = OFF;
|
|
|
+ DEBUG_INFO("BS/HLC 2 secs handshake timeout.\r\n");
|
|
|
+ }
|
|
|
+
|
|
|
+ if((ShmCharger->gun_info[gun_index].acCcsInfo.ChargingPermission == OFF) && (ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty != CCS_PWM_DUTY_5))
|
|
|
+ {
|
|
|
+ DEBUG_INFO("Wait CCS give up negotiagting.\r\n");
|
|
|
ShmCharger->gun_info[gun_index].primaryMcuCp_Pwn_Duty.max_current = CCS_PWM_DUTY_CP_STAT_E;
|
|
|
ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
|
|
|
ShmCharger->gun_info[gun_index].ccsHandshakeState = HANDSHAKE_CP_STATE_E;
|
|
|
ShmCharger->gun_info[gun_index].chargingMode = CHARGING_MODE_BS;
|
|
|
- DEBUG_INFO("BS/HLC 2 secs handshake timeout.\r\n");
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
#ifdef CCS_SIMULATION_DATA
|
|
|
ShmCharger->gun_info[gun_index].acCcsInfo.PresentMsgFlowStatus = 1;
|
|
@@ -2601,7 +2606,7 @@ int main(void)
|
|
|
|
|
|
//restore normal CP PWM duty
|
|
|
// Determine max charging current to MCU
|
|
|
- DEBUG_INFO("Determine max charging current to MCU.\r\n");
|
|
|
+ DEBUG_INFO("Determine max charging current to MCU.\r\n");
|
|
|
if(ShmSysConfigAndInfo->SysConfig.MaxChargingCurrent == 0)
|
|
|
{
|
|
|
ShmCharger->gun_info[gun_index].targetCurrent = ((ShmCharger->gun_info[gun_index].targetCurrent > ShmCharger->gun_info[gun_index].primaryMcuState.rating_current)?ShmCharger->gun_info[gun_index].primaryMcuState.rating_current:ShmCharger->gun_info[gun_index].targetCurrent);
|