forked from BarkinSpider/SolarShed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme-Epever-Triton
37 lines (24 loc) · 1.37 KB
/
Readme-Epever-Triton
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
The Epever Triton solar chargers work with an RS485 interface that uses a special kernel module.
Download the source from the link below and compile it for your device. Works well with Raspberry Pi's.
Be aware that Pi Zeros and Pi 3/54 are different binaries and you need to recompile if you change hardware.
You may need to install gcc if you dont have a build environment.
Also, My code for the Epever SCC only works with Python 2.7, not 3!
# apt install gcc
https://github.com/kasbert/epsolar-tracer/tree/master/xr_usb_serial_common-1a
As root, cd to the source folder you just downloaded
# make
Now install the kernel module.
# insmod ./xr_usb_serial_common.ko
If you have installed the xr_usb module correctly, when you plug in your Epever cable into your Pi
you should see /dev/ttyXRUSB0 appear.
If it doesn't work, you may need to remove the competing CDC-ACM module. Check if cdc-acm is installed with
# lsmod | grep cdc
if its there, run
# rmmod cdc-acm
then ensure the cdc module is not reloaded next boot time
# echo blacklist cdc-acm > /etc/modprobe.d/blacklist-cdc-acm.conf
# update-initramfs -u
Now try to install the xr module again and see if the correct /dev/ttyXRUSB0 interface appears
# insmod ./xr_usb_serial_common.ko
Tip: always run 'dmesg' and look at the last few lines after plugging/unplugging any USB interfaces,
to see what the kernel thinks has changed.