|
@@ -3675,6 +3675,8 @@ void checkTask()
|
|
|
DEBUG_WARN("OcppBackend watch dog timeout task restart.\n");
|
|
|
ShmOCPP16Data->procDogTime = time((time_t*)NULL);
|
|
|
system("pkill OcppBackend");
|
|
|
+ sleep(3);
|
|
|
+ ocpp_process_start();
|
|
|
}
|
|
|
|
|
|
if(system("pidof -s OcppBackend > /dev/null") != 0)
|
|
@@ -3690,6 +3692,8 @@ void checkTask()
|
|
|
DEBUG_WARN("OcppBackend20 watch dog timeout task restart.\n");
|
|
|
ShmOCPP20Data->procDogTime = time((time_t*)NULL);
|
|
|
system("pkill OcppBackend20");
|
|
|
+ sleep(3);
|
|
|
+ ocpp_process_start();
|
|
|
}
|
|
|
|
|
|
if(system("pidof -s OcppBackend20 > /dev/null") != 0)
|
|
@@ -4356,7 +4360,7 @@ void checkRfidAuthrize()
|
|
|
{
|
|
|
if(ocpp_get_auth_conf() ||
|
|
|
(!ocpp_get_connection_status() && ((ShmSysConfigAndInfo->SysConfig.OfflinePolicy == OFF_POLICY_FREE) || (ShmSysConfigAndInfo->SysConfig.OfflinePolicy == OFF_POLICY_NOCHARGE))) ||
|
|
|
- (!ocpp_get_connection_status() && (ShmSysConfigAndInfo->SysConfig.OfflinePolicy == OFF_POLICY_LOCALLIST) && (strcmp((char *)&ShmSysConfigAndInfo->SysConfig.OcppServerURL,"") == 0))
|
|
|
+ (!ocpp_get_connection_status() && (ShmSysConfigAndInfo->SysConfig.OfflinePolicy == OFF_POLICY_LOCALLIST) && (DiffTimebWithNow(startTime[0][TMR_IDX_AUTH]) > 2000))
|
|
|
)
|
|
|
{
|
|
|
if(ocpp_get_auth_result(NO) ||
|