#read_solaredge_modbus
Software reads a SolarEdge inverter via its RS485 modbus interface, interprets the data received and writes it to a buffer file, so vzlogger could read it.
- Create the user emlogger:
sudo adduser emlogger
- Login as user emlogger:
sudo su emlogger
- Download git repository:
git clone https://github.com/e-cite/read_solaredge_modbus.git
- Install modbus development library:
sudo apt-get install libmodbus-dev
- Open folder:
cd read_solaredge_modbus
- Create new folder for binary files:
mkdir bin
- Compile it (Please ignore the warnings):
gcc src/*.c -lmodbus -lm -I /usr/include/modbus -o bin/rsm.bin
- The start-script "init.d/read_solaredge_modbus.sh" can be installed to "/etc/init.d/" to provide a global startscript
Start it with: sudo -u emlogger ~emlogger/read_solaredge_modbus/init.d/read_solaredge_modbus.sh start
Stop it with: sudo -u emlogger ~emlogger/read_solaredge_modbus/init.d/read_solaredge_modbus.sh stop
- Create a makefile
- Fix the open bugs
- Remove the warnings by proper casts / referencing
- Write a better documentation