Step 1 #
How to Set up OCPP simulator to test EV things locally #
- Go to https://docs.docker.com/get-docker/ and download the installer for your computer’s OS.
- Follow the instructions for your OS to interactively install and set up docker.
- Make sure Docker Desktop is running after. It installs as an application.
- Download this file from google drive: https://drive.google.com/file/d/1uJKhfapOdTzblZ8T4WnuZGApf7t6qJ1i/view?usp=sharing
- If you’re on Mac:
- Open a terminal
- Cmd+space will bring up spotlight
- You can search for “terminal” and then click on the result
- Open a terminal
- If you’re on Windows:
- Open a command prompt
- Copy and paste the following commands one at a time, hitting enter at the end of each
- cd Downloads
- docker load < ocpp.tar
- docker run -d -p 9000:9000 -p 9001:9001 -p 8100:8100 ocpp:latest
- Now you can try going to http://localhost:9000/?cp=test-charger&password=SCCfT4jTYk5_QZJteOO6bfYg&url=ocpp.api.gl7.parkwhiz.com in your browser and see if you see the following screen
- If the docker process stops and you need to restart it, you’ll also need to start the container again. You can do this by:
- docker ps -a
- docker start container_name where container_name is the name of the container you see after the previous command
For example:
Step 2 #
Create an EV Charging Beacon #
- At the Location, go to Beacons.
- Add new beacon.
- To create a new beacon, enter a name.
- From the beacon type dropdown menu, select ID:1 – Generic OCPP. This is for simulator purposes.
- Click on Create & Add Beacon.
- To see the created EV charger, navigate to the EV Chargers tab, where the newly created beacon will be visible.
Step 3 #
Test the charging link #
Ensure Docker is running first:
- In the URL, change the cp=test-charger portion to the name given when the beacon was created. For example, it would become cp=ocpp-sim-sunshine. The updated URL will appear as shown in the image below.
- Click on Startup
- EV charger is now Active.
- Confirm that the beacon is Active by going to the Beacons tab.
Step 4 #
Test the Charger #
- You can test the charger by clicking Show QR code in the EV chargers tab.
2. Scan with your phone to start a session: