22#ifndef ZEPHYR_INCLUDE_NET_OCPP_H_
23#define ZEPHYR_INCLUDE_NET_OCPP_H_
unsigned short int sa_family_t
Socket address family type.
Definition net_ip.h:168
int ocpp_session_open(ocpp_session_handle_t *hndl)
API to request a new Session.
int(* ocpp_user_notify_callback_t)(enum ocpp_notify_reason reason, union ocpp_io_value *io, void *user_data)
Asynchronous event notification callback registered by the application.
Definition ocpp.h:166
ocpp_auth_status
OCPP IdTag authorization status in result to ocpp request authorization.
Definition ocpp.h:40
int ocpp_authorize(ocpp_session_handle_t hndl, char *idtag, enum ocpp_auth_status *status, uint32_t timeout_ms)
Authorize request call to CS to get validity of idtag.
ocpp_meter_measurand
OCPP meter readings to be filled on user callback request from library.
Definition ocpp.h:67
void * ocpp_session_handle_t
Parameters opaque session handle for ocpp_* API.
Definition ocpp.h:153
void ocpp_session_close(ocpp_session_handle_t hndl)
API to close a Session.
int ocpp_stop_transaction(ocpp_session_handle_t hndl, int meter_val, uint32_t timeout_ms)
Notify transaction stopped to CS.
ocpp_notify_reason
Definition ocpp.h:48
#define CISTR50
Max length of string literals e.g idtag.
Definition ocpp.h:34
int ocpp_init(struct ocpp_cp_info *cpi, struct ocpp_cs_info *csi, ocpp_user_notify_callback_t cb, void *user_data)
OCPP library init.
int ocpp_start_transaction(ocpp_session_handle_t hndl, int meter_val, uint8_t conn_id, uint32_t timeout_ms)
Notify transaction start to CS.
@ OCPP_AUTH_ACCEPTED
accepted, allowed to charge
Definition ocpp.h:42
@ OCPP_AUTH_INVALID
IdTag not valid.
Definition ocpp.h:41
@ OCPP_AUTH_BLOCKED
blocked to charge
Definition ocpp.h:43
@ OCPP_AUTH_CONCURRENT_TX
Parallel access of same IdTag.
Definition ocpp.h:45
@ OCPP_AUTH_EXPIRED
IdTag expired, not allowed to charge.
Definition ocpp.h:44
@ OCPP_OMM_REACTIVE_ENERGY_TO_EV
reactive energy to EV, in varh
Definition ocpp.h:74
@ OCPP_OMM_VOLTAGE_AC_RMS
AC RMS supply voltage, in V.
Definition ocpp.h:85
@ OCPP_OMM_POWER_MAX_OFFERED_TO_EV
maximum power offered to EV, in W
Definition ocpp.h:81
@ OCPP_OMM_ACTIVE_POWER_FROM_EV
active power from EV, in W
Definition ocpp.h:75
@ OCPP_OMM_REACTIVE_ENERGY_FROM_EV
reactive energy from EV, in varh
Definition ocpp.h:73
@ OCPP_OMM_TEMPERATURE
temperature inside charge point, in Celsius
Definition ocpp.h:84
@ OCPP_OMM_CURRENT_TO_EV
current to EV, in A
Definition ocpp.h:69
@ OCPP_OMM_ACTIVE_POWER_TO_EV
active power to EV, in W
Definition ocpp.h:76
@ OCPP_OMM_ACTIVE_ENERGY_TO_EV
active energy to EV, in Wh
Definition ocpp.h:72
@ OCPP_OMM_END
Definition ocpp.h:87
@ OCPP_OMM_REACTIVE_POWER_TO_EV
reactive power to EV, in var
Definition ocpp.h:78
@ OCPP_OMM_CURRENT_MAX_OFFERED_TO_EV
maximum current offered to EV, in A
Definition ocpp.h:70
@ OCPP_OMM_REACTIVE_POWER_FROM_EV
reactive power from EV, in var
Definition ocpp.h:77
@ OCPP_OMM_POWERLINE_FREQ
powerline frequency, in Hz
Definition ocpp.h:79
@ OCPP_OMM_ACTIVE_ENERGY_FROM_EV
active energy from EV, in Wh
Definition ocpp.h:71
@ OCPP_OMM_POWER_FACTOR
power factor of supply
Definition ocpp.h:80
@ OCPP_OMM_CHARGING_PERCENT
charging percentage
Definition ocpp.h:83
@ OCPP_OMM_CURRENT_FROM_EV
current from EV, in A
Definition ocpp.h:68
@ OCPP_OMM_FAN_SPEED
fan speed, in rpm
Definition ocpp.h:82
@ OCPP_USR_START_CHARGING
Process the start charging request as like idtag received from local e.g authorize etc.
Definition ocpp.h:55
@ OCPP_USR_UNLOCK_CONNECTOR
Unlock mechanical connector of CP.
Definition ocpp.h:61
@ OCPP_USR_STOP_CHARGING
Process the stop charging sequence.
Definition ocpp.h:58
@ OCPP_USR_GET_METER_VALUE
User must fill the current reading.
Definition ocpp.h:50
IPv6 and IPv4 definitions.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Parameters for ocpp_init information about Charge Point (CP) all are string literal except num_of_con...
Definition ocpp.h:128
char * iccid
ICC ID.
Definition ocpp.h:138
char * vendor
CP vendor.
Definition ocpp.h:130
char * model
Charge Point (CP) model.
Definition ocpp.h:129
char * meter_sl_no
Main power meter serial number.
Definition ocpp.h:140
char * sl_no
optional fields
Definition ocpp.h:135
char * box_sl_no
Box serial number.
Definition ocpp.h:136
char * meter_type
Main power meter type.
Definition ocpp.h:141
char * fw_ver
Firmware version.
Definition ocpp.h:137
char * imsi
IMSI.
Definition ocpp.h:139
int num_of_con
Max.
Definition ocpp.h:132
Parameters for ocpp_init information about central system (CS)
Definition ocpp.h:145
sa_family_t sa_family
IP protocol family type 4/6.
Definition ocpp.h:149
char * ws_url
Websocket url exclude ipaddr & port.
Definition ocpp.h:147
char * cs_ip
Central system IP address.
Definition ocpp.h:146
int port
Central system port number.
Definition ocpp.h:148
OCPP user callback notification/request of input/output values union member should be accessed with e...
Definition ocpp.h:96
struct ocpp_io_value::@457 meter_val
enum ocpp_meter_measurand mes
Input to user, measurand.
Definition ocpp.h:103
struct ocpp_io_value::@459 stop_charge
struct ocpp_io_value::@460 unlock_con
char val[50]
To be filled by user, value as string.
Definition ocpp.h:106
struct ocpp_io_value::@458 start_charge
int id_con
Input to user, requested connector_id or 0 - main meter.
Definition ocpp.h:100
char idtag[50]
Input to user.
Definition ocpp.h:110