ned-kelly / docker-voltronic-homeassistant

Programmatically read data from your Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc Inverter and send it to Home Assistant via MQTT - Works with RS232 & USB!
GNU General Public License v3.0
257 stars 140 forks source link

USB read working, but USB2Serial doesn't #93

Open avfoto opened 1 year ago

avfoto commented 1 year ago

I have a Voltronic Axpert VMIII 24V, when I read data trough hidraw0, my raspberry obtains data without any problem, but when I change the adquisition method to ttyUSB0 without changing the qpiri, qpiws, qmod and qpigs values, can't read data. Need to change qpiri, qpiws, qmod and qpigs values or must read with ttyUSB0 without any changes? Do I need to change anything else in the settings?

Boney35y commented 1 year ago

Do you have /dev/ttyUSB0 under /dev?

I have a generic one of these and use hidraw1 (my ups is on hidraw0) why can you not use hidraw0?

avfoto commented 1 year ago

How can I know if ttyUSB0 is under /dev/ ??

Yes, I can use hidraw0, now I'm reading data through hidraw0, but I want to read trough ttyUSB0 too.

Boney35y commented 1 year ago

if you cd to /dev on your pi and do an ls it will list them all. Eg: root@nas:/dev# ls adsp dvd i2c-12 loop2 nvidia-uvm-tools sdc1 stderr tty2 tty36 tty52 ttyS1 ttyS26 userio