epsolar-tracer icon indicating copy to clipboard operation
epsolar-tracer copied to clipboard

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

Open SvenRoederer opened this issue 4 years ago • 2 comments

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

SvenRoederer avatar May 24 '21 19:05 SvenRoederer

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

kasbert avatar Jun 14 '21 01:06 kasbert

@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 avatar Jun 15 '21 17:06 kasbert

I guess this was resolved. Closing.

kasbert avatar Mar 20 '23 17:03 kasbert