Set Network Profile
Source: OCPP 2.0.1 Part 2 — Specification (Edition 2, 2022-12-15) — Section 1.55 (Messages); Use Cases B09 — Setting a new NetworkConnectionProfile, B10 — Migrate to new CSMS (Functional Block B. Provisioning)
Overview
The CSMS sends SetNetworkProfileRequest to configure or update a network connection profile in a specific configuration slot on the Charging Station. The profile contains the CSMS URL, OCPP version & transport, security profile, message timeout and (for cellular setups) APN/VPN configuration.
This is the primary mechanism to migrate a CS to a new CSMS (B10): write a new profile into a slot, then prefer it (via NetworkConfigurationPriority).
Sequence Diagram
CSMS ──── SetNetworkProfileRequest ────▶ Charging Station
(configurationSlot, connectionData)
CSMS ◀─── SetNetworkProfileResponse ──── Charging Station
(status, statusInfo?)
Initiator
CSMS → Charging Station
Fields
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| configurationSlot | integer | 1..1 | Required. Slot in which the configuration is stored. |
| connectionData | NetworkConnectionProfileType | 1..1 | Required. Connection details. |
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| status | SetNetworkProfileStatusEnumType | 1..1 | Required. Result of the operation. |
| statusInfo | StatusInfoType | 0..1 | Optional. Detailed status information. |
NetworkConnectionProfileType (selected fields)
| Field | Type | Card. | Description |
|---|---|---|---|
| ocppVersion | OCPPVersionEnumType | 1..1 | OCPP12, OCPP15, OCPP16, OCPP20. |
| ocppTransport | OCPPTransportEnumType | 1..1 | JSON, SOAP. |
| ocppCsmsUrl | string [0..512] | 1..1 | URL of the CSMS endpoint (without wss:// query string). |
| messageTimeout | integer | 1..1 | Default OCPP message timeout (seconds). |
| securityProfile | integer | 1..1 | OCPP Security Profile (1, 2, or 3). |
| ocppInterface | OCPPInterfaceEnumType | 1..1 | Wired0, Wired1, Wireless0, Wireless1, etc. |
| apn | APNType | 0..1 | APN configuration (cellular). |
| vpn | VPNType | 0..1 | VPN configuration. |
SetNetworkProfileStatusEnumType values
Accepted, Rejected, Failed.
Examples
{
"configurationSlot": 1,
"connectionData": {
"ocppVersion": "OCPP20",
"ocppTransport": "JSON",
"ocppCsmsUrl": "wss://csms.example.com/ocpp/CP-2026-000123",
"messageTimeout": 30,
"securityProfile": 3,
"ocppInterface": "Wired0"
}
}{
"status": "Accepted"
}Schema
Source:
schemas/SetNetworkProfileRequest.json,schemas/SetNetworkProfileResponse.json(OCPP 2.0.1 FINAL)