kasbert / epsolar-tracer

Tools for EPsolar Tracer BN solar charge controller
Apache License 2.0
120 stars 76 forks source link

USB-driver fails to compile with recent kernel-versions (5.4.119) #39

Closed SvenRoederer closed 1 year ago

SvenRoederer commented 3 years ago

OpenWrt-21.02 uses Linux kernel 5.4.119 where the driver fails to compile, with 5.4.114 it was still working. According to https://github.com/openwrt/packages/pull/15666 there is a patch to make it build again. Not sure if it is still compatible with older kernels then.

Log when compiling with linux5.4.119 / Openwrt-21.02.txt

kasbert commented 3 years ago

I just applied the openwrt change. We'll see if there are older kernel users

kasbert commented 3 years ago

@SvenRoederer Please could you try the experimental kernel driver in directory linux_usb_serial ? It implements the RS-485 ioctls. The device would be /dev/ttyUSB0 and the client code needs something like:

import serial.rs485

client.socket.rs485_mode = serial.rs485.RS485Settings()
kasbert commented 1 year ago

I guess this was resolved. Closing.