3.17 Get Configuration
The GetConfiguration message in OCPP 1.6J is sent by the central system to request the current configuration settings of the charge point. It can specify particular configuration keys or request all settings. The charge point responds with the values of the requested configurations. This helps the central system verify and manage the charge point's settings remotely.
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
SendGetChargerConfigResponse | This function creates and sends a Get Configuration response frame to the central system. | void | void |
Example:
/** Retrieve configuration data from the database */
ChargerConfigurationGet(&rxGetConfiguration);
/** Send the response back to the Central System */
SendGetChargerConfigResponse();
return OCPP_PROCESS_REQUEST_OK; /** Return 1 indicating successful processing */
}
return OCPP_PROCESS_REQUEST_NOT_OK;
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
IsProfileSupported | This function checks whether the profile is supported. | const char *input, const char *profile | bool |
Example:
if (!IsProfileSupported("Reservation") || !CheckConnectorIdValid(params.connectorId))
{
SetReserveNowStatus(RESERVE_NOW_REJECTED);
(void)SendReserveNowResponse();
processflow = 1U;
}
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
OCPPGetConfigurationResetGlobals | Function to reset global variables for Get Configuration | void | void |
Example:
void OCPPResetAllGlobals(void)
{
UtilitiesGlobalVariablesReset();
UtilitiesLocalStorageResetGlobals();
OCPPSetChargingProfileResetGlobals();
OCPPGetCompositeScheduleResetGlobals();
CPPClearChargingProfileResetGlobals();
OCPPReserveNowResetGlobals();
OCPPCancelReservationResetGlobals();
OCPPTriggerMessageResetGlobals();
OCPPSendLocalListResetGlobals();
OCPPGetLocalListVersionResetGlobals();
OCPPUpdateFirmwareResetGlobals();
OCPPGetDiagnosticsResetGlobals();
OCPPFirmwareStatusNotificationResetGlobals();
OCPPDiagnosticStatusNotificationResetGlobals();
OCPPUnlockConnectorResetGlobals();
OCPPStopTransactionResetGlobals();
OCPPStatusNotificationResetGlobals();
OCPPStartTransactionResetGlobals();
OCPPResetGlobals();
OCPPRemoteStopTransactionResetGlobals();
OCPPRemoteStartTransactionResetGlobals();
OCPPMeterValuesResetGlobals();
// OCPPHeartbeatResetGlobals();
OCPPGetConfigurationResetGlobals();
|
Syntax |
Description |
Constants/Members |
|---|---|---|
TX_GETCONFIGURATION_T | This structure contains the fields required for a Get Configuration response to be sent to the central system. | DB_DATA_T dbData []; uint8_t totalDbDataRequired; |
DB_DATA_T; | This structure contains the fields representing the configuration data stored in the database. | char id[]; char key[]; char type[]; char value[]; char readonly[]; |
RX_GETCONFIGURATION_T | This structure contains the fields required for a Get Configuration request from the central system. | char uuid[]; char key[]; char unknownKey []; uint8_t arraySize; uint8_t unknownKeySize; |
