Electric Vehicle Charging OCPP Handler
Publication date: November 15, 2023 (Diagram history)
This reference architecture demonstrates how to build a highly-scalable, low-latency electric vehicle (EV) charge point operator system based on the EV industry standard, Open Charge Point Protocol (OCPP), using AWS services like AWS IoT Core and AWS Lambda.
Electric Vehicle Charging OCPP Handler Diagram
-
An electric vehicle arrives to a charge point and connects to the charge cable. The customer swipes their RFID card to initiate charging.
-
The charge point performs a DNS lookup and receives a response from a record registered in Amazon RouteĀ 53.
-
The charge point connects to the resolved OCPP endpoint through a Network Load Balancer (NLB).
-
The NLB redirects the connection to a containerized instance of the OCPP Handler running on AWS Fargate.
-
The OCPP Handler application authenticates the charge point and establishes a bi-directional WebSockets connection to the charge point.
-
The OCPP Handler application established a bi-directional MQTT connection to AWS IoT Core using the charge point ID as its identifier.
-
OCPP messages received from the charge point are published to an MQTT topic identified by the charge point ID and the topic path
/in
. -
An IoT rule subscribes to specific MQTT messages (such as Heartbeat) that are passed to and handled by an AWS Lambda function for auto-responses.
-
An IoT rule subscribes to all MQTT messages that include the topic path
/in
and forwards the message payload to an Amazon Simple Queue Service (Amazon SQS) queue. -
An AWS Step Functions instance is initiated by the Amazon SQS queue and orchestrates the interpretation of the message payload and execution of the appropriate business logic based on the OCPP message payload.
-
OCPP messages sent from the Charging Station Management System (CSMS) to the charge point are published as a MQTT message to the topic using the charge point ID and the topic path
/out
. -
The OCPP Handler application subscribes to all MQTT messages for the topic using the charge point ID and the topic path
/out
. The OCPP Handler forwards the OCPP response message over the WebSocket connection associated with the charge point ID. -
The charge point receives the OCPP response and acts upon it. In this case, it initiates the delivery of power to the electric vehicle.
-
Telemetry and metrics from the charge point are added to the appropriate data stores. Analytics and visualizations can be performed against this data.
-
Charge point operator administrators can access a web-based user interface portal to monitor system help, view data, or initiate configuration and firmware changes.
Download editable diagram
To customize this reference architecture diagram based on your business needs, download the ZIP file which contains an editable PowerPoint.
Create a free AWS account
Sign up for an AWS account. New accounts include 12 months of AWS Free Tier
Further reading
For additional information, refer to
Diagram history
To be notified about updates to this reference architecture diagram, subscribe to the RSS feed.
Change | Description | Date |
---|---|---|
Initial publication | Reference architecture diagram first published. | November 15, 2023 |
Note
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.