Protocol definition for EVSEsd over ubus¶
Object “evse.control”¶
Port states definition
State | Description |
---|---|
idle | … |
waiting | … |
charging | … |
Command “reload
Ӧ
Description:
Forces a reading of the current state for each charging port.
Request parameters:
None
Response:
None
Command “read_temperatures
Ӧ
Description:
Forces a reading of the all the temperatures sensors for the charging station.
Request parameters:
None
Response:
None
Command “set_port_info
Ӧ
Description:
Sets permanent port configuration parameters.
!!DANGER!! This command sets critical port parameters and must be used only by authorized installers.
Request parameters:
port
integer Port number starting from 1current_max_limit
float Maximum configurable current in Aopt_autostart
bool Whether the port automatically starts charging when connectedopt_singlephase
bool Whether the port only supports single phase charging mode
Response:
None
Sample request:
{
"port": 1,
"current_max_limit": 15.90000,
"opt_autostart": true,
"opt_singlephase": false
}
Command “get_status
Ӧ
Description:
Requests the global state of the charging station.
Request parameters:
None
Response:
firmware
string Main firmware versionstm-firmware
string Internal STM32 firmware versionstm-cpuid
string Internal STM32 CPU idports
array List of ports with their current state (see below)temperatures
array List of temperatures reading for various internal sensorserror
integer Global error state code for the charging station
Single port record definition:
port
integer Port number starting from 1status
string Port statecurrent_limit
float Maximum configurable current in Acurrent_max
float Maximum charging current in Acurrent_now
float Actual current in Avoltage_now
float Actual voltage in Vpower_now
integer Actual power in Wenergy_session
integer Total energy charged in this session in Whenergy_total
integer Total energy charged lifetime in Whsession_time
integer Elapsed time for the current charging session in secondsconnected
bool Indicates if a vehicle is connected to the portthreephase
bool Indicates if the port is currently using threephaseerror
bool Indicates if the port is in error
Sample response:
{
"status": "success",
"result": {
"firmware": "Prism 1.0 build 492",
"stm-firmware": "0.1",
"stm-cpuid": "12FF4E123E1D001234567890",
"ports": [
{
"port": 1,
"status": "charging",
"current_limit": 32.000000,
"current_max": 6.000000,
"current_now": 4.800000,
"voltage_now": 232.500000,
"power_now": 10.000000,
"energy_session": 840.000000,
"energy_total": 92400.000000,
"session_time": 928,
"connected": true,
"threephase": false,
"error": 0
}
],
"temperatures": [
45,
null,
null,
null
],
"error": 0
}
}
Command “set_current
Ӧ
Description:
Sets the maximum current that can be charged on a specific port.
Request parameters:
port
integer Port number starting from 1current_max
float Maximum charging current in A
Response:
None
Sample request:
{
"port": 2,
"current_max": 22.500000
}
Event “port_current_max_changed
Ӧ
Description:
Notifies that the maximum charging current for a port has changed.
Event parameters:
port
integer Port number starting from 1current_max
float Maximum charging current in A
Sample event:
{
"port": 1,
"current_max": 8.000000
}
Event “port_connected_change
Ӧ
Description:
Notifies that a vehicle has been connected or disconnected from a charging port.
Event parameters:
port
integer Port number starting from 1connected
bool Indicates if a vehicle is connected to the port
Sample event:
{
"port": 1,
"connected": true
}
Event “error_change
Ӧ
Description:
Notifies that an error situation has appeared or disappeared.
*Event parameters:**
port
integer Optional port number starting from 1 (zero means a global error)error
integer Error code
Sample event:
{
"port": 0,
"error": 80
}