|
@@ -1270,7 +1270,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, "V0.47.00.0000.00");
|
|
|
+ sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "V0.48.00.0000.00");
|
|
|
|
|
|
// Get AC connector type from model name
|
|
|
for(uint8_t idx=0;idx<3;idx++)
|
|
@@ -2401,6 +2401,7 @@ int main(void)
|
|
|
{
|
|
|
DEBUG_INFO("URL is empty kill Module_OcppBackend...\n");
|
|
|
system ("pkill OcppBackend");
|
|
|
+ LoadSysConfigAndInfo(&ShmSysConfigAndInfo->SysConfig);
|
|
|
}
|
|
|
|
|
|
// If rotate switch equal zero, the system needs to change Debug mode
|
|
@@ -2579,6 +2580,9 @@ int main(void)
|
|
|
{
|
|
|
// Authorization timeout process.
|
|
|
ShmCharger->gun_info[gun_index].rfidReq = OFF;
|
|
|
+ setSpeaker(ON,SPEAKER_INTERVAL_3COUNT);
|
|
|
+ setLedMotion(gun_index,LED_ACTION_RFID_FAIL);
|
|
|
+ sleep(3);
|
|
|
setChargerMode(gun_index, SYS_MODE_IDLE);
|
|
|
DEBUG_WARN("Authorize timeout !!!\n");
|
|
|
}
|
|
@@ -3483,6 +3487,9 @@ int main(void)
|
|
|
sprintf((char*)ShmOCPP16Data->FirmwareStatusNotification.Status, "InstallationFailed");
|
|
|
ShmOCPP16Data->SpMsg.bits.FirmwareStatusNotificationReq = ON;
|
|
|
DEBUG_WARN("Firmware upgrade fail.\n");
|
|
|
+
|
|
|
+ sleep(1);
|
|
|
+ system("rm -rvf /mnt/* ");
|
|
|
close(wtdFd);
|
|
|
system("/usr/bin/run_evse_restart.sh");
|
|
|
}
|