Installation of the cFos Charging Manager on a Raspberry Pi

1. Preparation

You need:

2. Install the operating system

cFos Charging Manager + Raspberry Pi - #1

Install the Raspberry Pi Imager software on your computer. Insert the Micro SD card into the adapter and open the Raspberry Pi Imager.

cFos Charging Manager + Raspberry Pi - #2

Select under: "Select OS" "Raspberry Pi OS".
Select your micro SD card under "Select SD card".

cFos Charging Manager + Raspberry Pi - #3

To start the writing process, click on "Write". All existing data will be erased during the write process - make sure that the correct drive is selected.

3. Set up SSH

cFos Charging Manager + Raspberry Pi - #4

As soon as the process is complete, the main directory of the SD card opens. Here you create an empty file with the name "ssh". To do this, right-click and select "New> Text Document".

cFos Charging Manager + Raspberry Pi - #5

Enter "ssh" as the name and delete the suggested ".txt" after it.

4. Connection to the Raspberry Pi

Eject the SD card and insert it into the Raspberry Pi. Connect the Raspberry Pi with a network cable and the power supply.
Wait a moment until the Raspberry Pi has started up.

To check whether the Raspberry Pi is available in your network via SSH, ping the Raspberry Pi with the following command on the command line:

ping [IP-Adresse]

E.g .: ping 192.168.0.153
(You can open the command line, for example, by entering cmd in the Windows search. You can find out the IP address in the configuration of your router.

cFos Charging Manager + Raspberry Pi - #6

If you are using a Fritz! Box you can also use "raspberrypi.local" instead of the IP address)
If that was successful, you can reach the Raspberry Pi via SSH. To do this, enter the following command:

ssh pi@[IP-Adresse]

The password for access is: "raspberry" (the password is not visible while you are entering it).

cFos Charging Manager + Raspberry Pi - #7

You will then be asked to confirm the authenticity of the host. This serves to prevent "man-in-the-middle" attacks. Since the host (your Raspberry Pi) is in your local network, you can confirm this message with "yes".

5. Establishment

Some configurations are required to proceed with the setup.
To get into the menu, enter this command:

sudo raspi-config

cFos Charging Manager + Raspberry Pi - #9

Select the entry "1 System options"

cFos Charging Manager + Raspberry Pi - #10

Then select "S3 Password" and assign your own password.

cFos Charging Manager + Raspberry Pi - #11

Then you are back in the main menu. Here you select "5 Localization Options".

cFos Charging Manager + Raspberry Pi - #12

Then select "L2 Timezone". Set your current time zone here.

cFos Charging Manager + Raspberry Pi - #11

Then select "5 Localization Options" again if necessary.

cFos Charging Manager + Raspberry Pi - #13

nn select "L4 WLAN Country" and set the country in which you are located.

Complete the settings with "Finish".

We recommend that you make an update. You do that with the following commands. Run the next command after the previous one completes.

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get dist-upgrade -y

6. Installation of the cFos Charging Manager

cFos Charging Manager + Raspberry Pi - #15

To install the cFos Charging Manager enter the following command:

curl -sL https://cfos-emobility.de/charging-manager/cm_install.sh | bash -

A menu opens. Use the arrow buttons to select the installation variant and confirm with "OK".

Read and accept the license agreement.

cFos Charging Manager + Raspberry Pi - #16

The cFos Charging Manager is now installed.

7. Setup of the cFos Charging Manager

Write the IP address that you used previously for access via SSH with the correct port number in the search line of your browser to open the user interface.

Example: 192.168.0.153:4712

cFos Charging Manager + Raspberry Pi - #17

Now read and accept the license agreement. Then you can set up the cFos Charging Manager as you wish. For more information, please refer to the commissioning instructions.

8. Notice

If a lot of data is written to the SD card, it can wear out. Make regular data backups so that you do not have to set up the configuration from scratch in the event of a failure.

Alternatively, you can set up your Raspberry Pi so that it boots from a USB hard drive. You can find the instructions here