SendUpdateFirmware

SendUpdateFirmware 1:

With this method, an OCPP server sends an Update Firmware request to the corresponding OCPP client. The response from the OCPP client is processed directly within the method.

SendUpdateFirmware 2:

Syntax

METHOD SendUpdateFirmware : BOOL
VAR_INPUT
    hStationId     : UDINT;
    sLocation      : STRING(255);
    nRetries       : UDINT := 0;
    nRetryInterval : UDINT := 0;
    nRetrieveDate  : ULINT;
END_VAR

SendUpdateFirmware 3: Return value

Name

Type

Description

SendUpdateFirmware

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.

SendUpdateFirmware 4: Inputs

Name

Type

Description

hStationId

UDINT

Identifier of the OCPP client in the instance of the OCPP server.

sLocation

STRING(255)

URI from which the firmware is to be retrieved.

nRetries

UDINT

Number of attempts to download the firmware again if the download fails.

nRetryInterval

UDINT

Time after which the download is attempted again.

nRetrieveDate

ULINT

Time and date from which the Charge Point may receive the new firmware.

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