|
@@ -1154,24 +1154,6 @@ unsigned char isModeChange(unsigned char gun_index)
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
-unsigned char isCCSMode(unsigned char gun_index, unsigned char mode)
|
|
|
|
-{
|
|
|
|
- return ((ShmCharger->gun_info[gun_index].acCcsInfo.EVChargeProgress == mode)?YES:NO);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-unsigned char isCCSModeChange(unsigned char gun_index)
|
|
|
|
-{
|
|
|
|
- unsigned char result = NO;
|
|
|
|
-
|
|
|
|
- if(!isMode(gun_index, ShmCharger->gun_info[gun_index].PreviousEVChargeProgress))
|
|
|
|
- {
|
|
|
|
- result = YES;
|
|
|
|
-
|
|
|
|
- ShmCharger->gun_info[gun_index].PreviousEVChargeProgress = ShmCharger->gun_info[gun_index].acCcsInfo.EVChargeProgress;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return result;
|
|
|
|
-}
|
|
|
|
//===============================================
|
|
//===============================================
|
|
// Get firmware version
|
|
// Get firmware version
|
|
//===============================================
|
|
//===============================================
|
|
@@ -1204,7 +1186,7 @@ void get_firmware_version(unsigned char gun_index)
|
|
strcpy((char*)ShmSysConfigAndInfo->SysInfo.CsuPrimFwRev, ShmCharger->gun_info[gun_index].ver.Version_FW);
|
|
strcpy((char*)ShmSysConfigAndInfo->SysInfo.CsuPrimFwRev, ShmCharger->gun_info[gun_index].ver.Version_FW);
|
|
|
|
|
|
// Get CSU root file system version
|
|
// Get CSU root file system version
|
|
- sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "D0.14.00.0000.00");
|
|
|
|
|
|
+ sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "D0.15.00.0000.00");
|
|
|
|
|
|
// Get AC connector type from model name
|
|
// Get AC connector type from model name
|
|
for(uint8_t idx=0;idx<3;idx++)
|
|
for(uint8_t idx=0;idx<3;idx++)
|
|
@@ -2721,11 +2703,11 @@ int main(void)
|
|
ShmCharger->gun_info[gun_index].acCcsInfo.ChargingPermission = OFF;
|
|
ShmCharger->gun_info[gun_index].acCcsInfo.ChargingPermission = OFF;
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
#ifdef CCS_SIMULATION_DATA
|
|
#ifdef CCS_SIMULATION_DATA
|
|
- ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty = CCS_PWM_DUTY_100;
|
|
|
|
|
|
+ ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty = CCS_PWM_DUTY_100;
|
|
#endif //CCS_SIMULATION_DATA
|
|
#endif //CCS_SIMULATION_DATA
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty == CCS_PWM_DUTY_100)
|
|
|
|
|
|
+ if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty == CCS_PWM_DUTY_100)
|
|
{
|
|
{
|
|
ShmCharger->gun_info[gun_index].primaryMcuCp_Pwn_Duty.max_current = CCS_PWM_DUTY_100;
|
|
ShmCharger->gun_info[gun_index].primaryMcuCp_Pwn_Duty.max_current = CCS_PWM_DUTY_100;
|
|
ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
|
|
ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
|
|
@@ -2750,7 +2732,7 @@ int main(void)
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
|
|
|
|
#ifdef CCS_SIMULATION_DATA
|
|
#ifdef CCS_SIMULATION_DATA
|
|
- ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty = CCS_PWM_DUTY_100;
|
|
|
|
|
|
+ ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty = CCS_PWM_DUTY_100;
|
|
#endif //CCS_SIMULATION_DATA
|
|
#endif //CCS_SIMULATION_DATA
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2766,7 +2748,7 @@ int main(void)
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
|
|
|
|
#ifdef CCS_SIMULATION_DATA
|
|
#ifdef CCS_SIMULATION_DATA
|
|
- ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty = CCS_PWM_DUTY_100;
|
|
|
|
|
|
+ ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty = CCS_PWM_DUTY_100;
|
|
#endif //CCS_SIMULATION_DATA
|
|
#endif //CCS_SIMULATION_DATA
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -2774,7 +2756,7 @@ int main(void)
|
|
ShmCharger->gun_info[gun_index].rfidReq = OFF;
|
|
ShmCharger->gun_info[gun_index].rfidReq = OFF;
|
|
}
|
|
}
|
|
|
|
|
|
- if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty == CCS_PWM_DUTY_100)
|
|
|
|
|
|
+ if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty == CCS_PWM_DUTY_100)
|
|
{
|
|
{
|
|
ShmCharger->gun_info[gun_index].primaryMcuCp_Pwn_Duty.max_current = CCS_PWM_DUTY_100;
|
|
ShmCharger->gun_info[gun_index].primaryMcuCp_Pwn_Duty.max_current = CCS_PWM_DUTY_100;
|
|
ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
|
|
ShmCharger->gun_info[gun_index].mcuFlag.isSetCpPwmDuty = ON;
|
|
@@ -3622,7 +3604,7 @@ int main(void)
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty = ON;
|
|
|
|
|
|
#ifdef CCS_SIMULATION_DATA
|
|
#ifdef CCS_SIMULATION_DATA
|
|
- ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty = CCS_PWM_DUTY_100;
|
|
|
|
|
|
+ ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty = CCS_PWM_DUTY_100;
|
|
#endif //CCS_SIMULATION_DATA
|
|
#endif //CCS_SIMULATION_DATA
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3642,7 +3624,7 @@ int main(void)
|
|
setChargerMode(gun_index, SYS_MODE_CHARGING);
|
|
setChargerMode(gun_index, SYS_MODE_CHARGING);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.SetCPPWMDuty == CCS_PWM_DUTY_100)
|
|
|
|
|
|
+ if((ShmCharger->gun_info[gun_index].isCCSWaitChangeDuty == ON) && ShmCharger->gun_info[gun_index].acCcsInfo.CpSetPWMDuty == CCS_PWM_DUTY_100)
|
|
{
|
|
{
|
|
DEBUG_INFO("Set PWM duty 100% go to SYS_MODE_TERMINATING.\r\n");
|
|
DEBUG_INFO("Set PWM duty 100% go to SYS_MODE_TERMINATING.\r\n");
|
|
|
|
|