RecvUpdateFirmware

RecvUpdateFirmware 1:

With this method, an OCPP client receives an Update Firmware request from the corresponding OCPP server. To respond to the request, the method RespUpdateFirmware must be called.

RecvUpdateFirmware 2:

Syntax

METHOD RecvUpdateFirmware : BOOL
VAR_OUTPUT
    hMessageId     : T_OCPP_MessageId;
    sLocation      : STRING(255);
    nRetries       : UDINT;
    nRetryInterval : UDINT;
    nRetrieveDate  : ULINT; 
END_VAR

RecvUpdateFirmware 3: Return value

Name

Type

Description

RecvUpdateFirmware

BOOL

The method returns the return value TRUE if the call was successful. A method call is also considered successfully completed in the event of an error.

RecvUpdateFirmware 4: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

MessageId of the received message.

sLocation

STRING(255)

String with the URI from which the firmware is to be obtained.

nRetries

UDINT

Optionally contains information on how often the Charge Point should try to download the firmware before it gives up.

nRetryInterval

UDINT

Optionally contains the information after which time a new attempt should be made.

nRetrieveDate

ULINT

Contains information on when the Charge Point is permitted to receive the new firmware.

Possible errors are output at the outputs bError and hrErrorCode of the function block instance.