Charge workflow
Chargeboxes that implement the OCPP protocol must follow a strict workflow to start and stopped charges. Charges can be started locally o remotely.
Local charges are initiated when the chargebox reads an RFID value and asks permission to the OCPP server.
Remote charges are initiated by the server that sends a request to the chargebox to enable a specific connector.
note
Every charge is associated with an ID tag, a string that is used by the chargebox to easily distinguish one charge from another. In local charges this ID tag is the RFID value read by the chargebox's reader. In remote charges the ID tag is generated by the server and sent to the chargebox in the first step of the remote workflow.
#
Local chargesHere is described the workflow of a local charge:
- The user shows the RFID card to the chargebox's reader
- The chargebox sends a request to the server asking if the given RFID is valid for starting or stopping a charge
- If the server replies negatively, the workflow stops
- The chargebox sends a message to the server notifying it that a new charge has started on a specific connector
- The server can reply to the chargebox with either an accepted or rejected response
- If the server rejects the start charge message, the chargebox has to stop charging and the workflow stops
- If the server accepts the start charge message, the chargebox will start sending periodically meter values
- When the user wants to stop the charge, it has to show the same RFID card used when the charge was started
- (Same as 2.) The chargebox sends a request to the server asking if the given RFID is valid for starting or stopping a charge
- If the server replies negatively the workflow stops
- The chargebox stops charging and sends a message to the server notifying it that the charge has finished
#
Remote chargesHere is described the workflow of a remote charge:
- The server sends a request to the chargebox asking if it can start a charge on the given connector
- The chargebox replies with an accepted or rejected message
- If the chargebox reject the message, the workflow stops
- The chargebox starts charging
- The chargebox sends a message to the server notifying it that a new charge has started on a specific connector
- The server can reply to the chargebox with either an accepted or rejected response
- If the server rejects the start charge message, the chargebox has to stop charging and the workflow stops
- If the server accepts the start charge message, the chargebox will start sending periodically meter values
- When the server wants to stop a charge it sends a request to the chargebox asking if it can stop a charge on the given connector
- The chargebox replies with an accepted or rejected message
- If the chargebox reject the message, the workflow stops
- The chargebox stops charging and sends a message to the server notifying it that the charge has finished
#
Remote reservationHere is described the workflow of a remote reservation:
- End user choose to reserve the chargebox to start the charge in second time.
- In the time of reservation the connector choosen on the chargebox can't be used. It seems occupied.
- End user can choose to start the charge, or to leave the reservation free or the last option the reservation expire.
- I the end user decide to start the charge the workflow is this one:
- The server sends a request to the chargebox asking if it can start a charge on the given connector
- The chargebox replies with an accepted or rejected message
- If the chargebox reject the message, the workflow stops
- The chargebox starts charging
- The chargebox sends a message to the server notifying it that a new charge has started on a specific connector
- The server can reply to the chargebox with either an accepted or rejected response
- If the server rejects the start charge message, the chargebox has to stop charging and the workflow stops
- If the server accepts the start charge message, the chargebox will start sending periodically meter values
- When the server wants to stop a charge it sends a request to the chargebox asking if it can stop a charge on the given connector
- The chargebox replies with an accepted or rejected message
- If the chargebox reject the message, the workflow stops
- The chargebox stops charging and sends a message to the server notifying it that the charge has finished
#
ConclusionStarting and stopping charges can take time, especially those made on a car because the chargebox tries to establish a communication with the veichle through the cable.
So when the server sends a remote start charge and the chargebox accepts it, it might take some seconds before the chargebox sends a start charge confirmation. The same goes in local charges after the user has shown the RFID card to the reader.