|
@@ -4673,7 +4673,7 @@ void checkConnectionTimeout()
|
|
|
ShmCharger->timeoutSpec.Setting_Timeout_Spec = ocpp_get_connection_timeout();
|
|
|
DEBUG_INFO("[ConnectionTimeOut] Receive timeout specification: [%d] \n", ShmCharger->timeoutSpec.Setting_Timeout_Spec);
|
|
|
|
|
|
- if(ShmCharger->timeoutSpec.Setting_Timeout_Spec >= (TIMEOUT_SPEC_BS_HLC_HANDSHAKE+10))
|
|
|
+ if((ShmCharger->timeoutSpec.Setting_Timeout_Spec >= (TIMEOUT_SPEC_BS_HLC_HANDSHAKE+5)) && (ShmCharger->timeoutSpec.Setting_Timeout_Spec <= 3600))
|
|
|
{
|
|
|
DEBUG_INFO("[ConnectionTimeOut] Valid value: [%d] \n", ShmCharger->timeoutSpec.Setting_Timeout_Spec);
|
|
|
}
|
|
@@ -4684,7 +4684,8 @@ void checkConnectionTimeout()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(ShmCharger->timeoutSpec.Setting_Timeout_Spec >= (TIMEOUT_SPEC_BS_HLC_HANDSHAKE+10))
|
|
|
+ // Connection timeout minimum: 30 seconds / maximum: 3600 seconds
|
|
|
+ if((ShmCharger->timeoutSpec.Setting_Timeout_Spec >= (TIMEOUT_SPEC_BS_HLC_HANDSHAKE+5)) && (ShmCharger->timeoutSpec.Setting_Timeout_Spec <= 3600))
|
|
|
{
|
|
|
if(ShmCharger->timeoutSpec.Setting_Timeout_Spec != ShmCharger->timeoutSpec.Present_Timeout_Spec)
|
|
|
{
|
|
@@ -4731,6 +4732,7 @@ void checkAuthorizeTimeout()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Authorize timeout minimum: 10 seconds / maximum: 300 seconds
|
|
|
if((ShmCharger->timeoutSpec.Setting_Authorize_Timeout_Spec >= 10) && (ShmCharger->timeoutSpec.Setting_Authorize_Timeout_Spec <= 300))
|
|
|
{
|
|
|
if(ShmCharger->timeoutSpec.Setting_Authorize_Timeout_Spec != ShmCharger->timeoutSpec.Present_Authorize_Timeout_Spec)
|