3.23 Reset

The Reset message in OCPP 1.6J is sent by the central system to restart or reset the charge point. It includes a reset type:

  • Soft reset to reboot the charge point while keeping configurations.
  • Hard reset to restore the charge point to factory settings.

The charge point responds to confirm whether the reset was successful or if there was an error. This helps resolve issues or apply new settings.

API Syntax

Description

Input Params

Return Value

SetResetStatus

Sets the status for the Reset request.

RESET_STATUS_T status

void

Example:


                 case 'R': /*Rest*/
                {
                    uint8_t resetState = 0;
                    LogDebug("APP_LOG", "Set Reset state: \n\t 0. Reset request accepted \n\t 1. Reset request rejected \n");

                    result = scanf("%hhd", (char*)&resetState);
                    if (result != 1) 
                    {
                        LogDebug("APP_LOG", "Error reading ResetState\n");
                    }
                    if(resetState < 2U)
                    {
                        SetResetStatus(resetState);
                        (void)SendResetResponse();
                    }
                }
                break;

API Syntax

Description

Input Params

Return Value

ResetInit

Initializes the Reset module.

void

void

Example:

 void OCPPMessagesInit(void)
{
    DataTransferInit();
    ResetInit();
    MeterValueStructInit();
    SetLocalListVersionNumber(DEFAULT_SEND_LOCAL_LIST_VERSION);   
    SetChargePointConnectorId(CHARGEPOINT_DEFAULT_CONTROLLER);
    SetChargePointError(NOERROR);
    SetChargePointStatus(AVAILABLE);
    SetAuthorizeStatus(AUTHORIZE_INVALID);
    SetRemoteStartTransactionStatus(REMOTE_START_STOP_REJECTED);
    SetOCPPWebsocketOnlineMode();
    UnlockConnectorInit();
    ReserveNowInit();
    ChangeAvailabilityInit();
    ClearCacheInit();
    ChangeConfigurationInit();
    CancelReservationInit();
    GetAllIDsFromDB();
    CheckAndStartClockAlignedMeterValueTimer();
}

Syntax

Description

Constants/Members

RESET_RESPONSE_T

Structure to hold the response of a Reset request

RESET_STATUS_T status

RX_RESET_T

Structure to hold the details of a received Reset request

char uuid[];

RESET_TYPE_T typeENUM;

RESET_TYPE_T

Enum representing the type of reset

RESET_HARD

RESET_SOFT

RESET_STATUS_T

Enum representing the status of a reset request

RESET_ACCEPTED

RESET_REJECTED