Makers Blog

Solar charging. Super simple. As an example of running the user application on CHARX Control SEC3xxx, we use evcc.io

Michael Janssen 09 June 2023 min. read
1,778 views 0 comments

CHARX Control is built on the PLCNext Linux platform, similar to a PLCNext Controller. It features hardware specifications including an ARM Cortex-A7 processor, 512MB RAM, and 8GB flash storage (with 5GB of free space). The example provided is specifically based on a CHARX Control SEC-3050, but the principles can be adapted for a PLCNext Controller with an ARM Cortex-A9.

doku_evcc_plcnext-1-4.png

What sets evcc apart is its unique capabilities. It allows you to charge your electric vehicle using your own surplus PV power, making it a sustainable and cost-effective solution. By leveraging existing systems such as PV and battery inverters, wallboxes, and energy meters, evcc seamlessly integrates with your infrastructure. Its intuitive and user-friendly interface provides a straightforward experience, ensuring effortless control over your electric vehicle charging. Furthermore, evcc is 100% open source, fostering collaboration and customization possibilities.

doku_evcc-charx-2.png

Getting Started with evcc.io on CHARX SEC3xxx

This guide will walk you through the installation process of the evcc.io application on the CHARX SEC3xxx charging controller.

Prerequisites

Before you begin, please ensure you have the following:

  • CHARX SEC3xxx charging controller
  • Access to the terminal program
  • SSH credentials (provided by default)
  • Latest firmware installed

Installation Steps

Network Configuration

  1. Assign a static IP address to the CHARX SEC3xxx controller.
  2. Configure the gateway settings accordingly.
  3. Check the manufacturer's manual https://www.phoenixcontact.com/de-de/produkte/ac-ladesteuerung-charx-sec-3000-1139022 for details on directory structure, filesystem access, and software installation.
  4. Verify and update the firmware to the latest version if needed.
doku_evcc_1-1.png

Port Forwarding

  1. Open the CHARX controller configuration website.

  2. Log in with the following credentials: | Username | Password | | -------- | -------- | | manufacturer | manufacturer |

  3. Navigate to "System Control" and add an incoming port (e.g., 7070).

doku_evcc_3.png

SSH connection to CHARX Control

  1. Open your terminal program and establish an SSH connection to the CHARX SEC3xxx controller using the following command:
ssh user-app@ev3000 
  1. Authenticate using the provided SSH credentials. The default credentials are:

| Username | Password | | -------- | -------- | | user-app | user |

Make sure to change the password upon the first login.

Data Transfer

  1. Establish a connection to the CHARX SEC3xxx using an FTP program like WinScp or FileZilla.
  2. Use the IP address of the charging controller as the server address (e.g., 192.168.2.15).
  3. Enter the username "user-app" and the changed password.
  4. Use port 22 for the connection.
  5. Download the latest release binary file "evcc_x.xxx.x_armhf.deb" from the official GitHub repository: https://github.com/evcc-io/evcc/releases.
  6. Extract the downloaded file "evcc_x.xxx.x_armhf.deb" and then extract "data.tar".
  7. Transfer the "usr" and "lib" directories to the "/data/user-app/evcc/" directory on the CHARX controller to ensure the files are not deleted during software updates.
doku_evcc_4.png
doku_evcc_5.png

Linux Application Permissions

  1. Open a terminal window.
  2. Change to the "/data/user-app/evcc/usr/bin" directory using the command:
cd /data/user-app/evcc/usr/bin 
  1. Grant execution permissions to the "evcc" application by running the command:
chmod +x evcc
  1. Add the directory to the environment variables using the command:
export PATH=$PATH:/data/user-app/evcc/usr/bin 

Initial Application Test

  1. Run the command:
./evcc

This will start the evcc.io application.

  1. Test the evcc.io interface by opening a web browser and entering the CHARX SEC3xxx IP address with the port 7070 (e.g., http://192.168.2.15:7070 or evcc.local:7070).
doku_evcc_6_1.png

Configuration

  1. Start the configuration process by running the command:
./evcc configure

Follow the instructions provided in the terminal window. Note: Advanced More Information to Configuration evcc.io :https://docs.evcc.io/docs/guides/setup

Set Autostart

  1. Open a terminal window.
  2. Use NANO to edit “user-application-start" in directory "/data/user-app" using the command:
nano /data/user-app/user-application-start
  1. Add the following lines:
sleep 30; # wait 30s for Modbusservice
/data/user-app/evcc/usr/bin/evcc -c /data/user-app/evcc/usr/bin/evcc.yaml  &
  1. Exit with Ctrl + x and save.
doku_evcc_7.png

After a restart, the applicationshould start again automatically.

sudo reboot

Note:

The Makers Blog shows applications and user stories of community members that are not tested or reviewed by Phoenix Contact. Use them at your own risk.

Discussion

Please login/register to comment

Login/Register

Leave a Reply

Newsletter
Never miss a new article
Sign up for the newsletter
Never miss news about PLCnext Technology
Get interesting content via newsletter four times a year
Receive exclusive information before all other users