Hi Guys / @ned-kelly
Not quite sure what the best way of debugging is, while this is running in a docker im not sure how i see errors. Im running a kodak 3kw inverter, i believe its based on voltronic, it ships with watchpower software.
I’m trying to see if there’s an issue with the rs232 >via serial to usb is a problem. I have a serial to USB adaptor which loads in the Raspberry PI OS as a prolific serial to usb device. I can see this device when i run ‘sudo lsusb’, or ls '/dev/ttyUSB0. This device seems to disappear at some point, I think it’s when the ha-inverter runs, but not sure. If i unplug the usb and reconnect, it doesn’t reconnect. If i unplug and reconnect to a new USB port, it registers in ‘lsusb’ and i can see the device /dev/ttyUSB0. IT crashes when i restart the ha-inverter container.
Here are the messages from the command ‘sudo dmesg -T’, hoping they mean something useful?
These are messages i see when i reconnect to a new USB port.
[Sun Nov 8 19:41:13 2020] usb 1-1.3: new full-speed USB device number 10 using xhci_hcd
[Sun Nov 8 19:41:13 2020] usb 1-1.3: string descriptor 0 read error: -32
[Sun Nov 8 19:41:13 2020] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[Sun Nov 8 19:41:13 2020] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303 converter detected
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [8484]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0404]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [8484]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [8383]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0404]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [8484]: -32
[Sun Nov 8 19:41:13 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0001]: -32
[Sun Nov 8 19:41:13 2020] usb 1-1.3: pl2303 converter now attached to ttyUSB0
These are the messages i see when i start the ha-inverter container, after these messages the TTYUSB0 device is gone and i need to reboot before the usb connection is detected
[Sun Nov 8 20:04:47 2020] br-7c940eaae4a5: port 2(vethc903b32) entered blocking state
[Sun Nov 8 20:04:47 2020] br-7c940eaae4a5: port 2(vethc903b32) entered disabled state
[Sun Nov 8 20:04:47 2020] device vethc903b32 entered promiscuous mode
[Sun Nov 8 20:04:47 2020] IPv6: ADDRCONF(NETDEV_CHANGE): vetheb4011e: link becomes ready
[Sun Nov 8 20:04:47 2020] IPv6: ADDRCONF(NETDEV_CHANGE): vethc903b32: link becomes ready
[Sun Nov 8 20:04:47 2020] br-7c940eaae4a5: port 2(vethc903b32) entered blocking state
[Sun Nov 8 20:04:47 2020] br-7c940eaae4a5: port 2(vethc903b32) entered forwarding state
[Sun Nov 8 20:04:48 2020] eth0: renamed from vetheb4011e
[Sun Nov 8 20:04:48 2020] br-7c940eaae4a5: port 2(vethc903b32) entered disabled state
[Sun Nov 8 20:04:48 2020] br-7c940eaae4a5: port 2(vethc903b32) entered blocking state
[Sun Nov 8 20:04:48 2020] br-7c940eaae4a5: port 2(vethc903b32) entered forwarding state
[Sun Nov 8 20:04:48 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0008]: -32
[Sun Nov 8 20:04:48 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0009]: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: pl2303_set_line_request - failed: -32
[Sun Nov 8 20:04:48 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [0080]: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[Sun Nov 8 20:04:48 2020] pl2303 ttyUSB0: pl2303_set_line_request - failed: -32
[Sun Nov 8 20:04:48 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [0080]: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: error sending break = -32
[Sun Nov 8 20:04:52 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0008]: -32
[Sun Nov 8 20:04:52 2020] pl2303 1-1.3:1.0: pl2303_vendor_write - failed to write [0009]: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303_set_line_request - failed: -32
[Sun Nov 8 20:04:52 2020] pl2303 1-1.3:1.0: pl2303_vendor_read - failed to read [0080]: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: usb_serial_generic_write_bulk_callback - urb stopped: -32
[Sun Nov 8 20:04:52 2020] usb 1-1.3: USB disconnect, device number 10
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -19
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: error sending break = -19
[Sun Nov 8 20:04:52 2020] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[Sun Nov 8 20:04:52 2020] pl2303 1-1.3:1.0: device disconnected
[Sun Nov 8 20:04:52 2020] usb 1-1.3: new full-speed USB device number 11 using xhci_hcd
[Sun Nov 8 20:04:52 2020] usb 1-1.3: device descriptor read/64, error -32
[Sun Nov 8 20:04:53 2020] usb 1-1.3: device descriptor read/64, error -32
[Sun Nov 8 20:04:53 2020] usb 1-1.3: new full-speed USB device number 12 using xhci_hcd
[Sun Nov 8 20:04:53 2020] usb 1-1.3: device descriptor read/64, error -32
[Sun Nov 8 20:04:53 2020] usb 1-1.3: unable to read config index 0 descriptor/start: -75
[Sun Nov 8 20:04:53 2020] usb 1-1.3: can't read configurations, error -75
[Sun Nov 8 20:04:53 2020] usb 1-1-port3: attempt power cycle
[Sun Nov 8 20:04:54 2020] usb 1-1.3: new full-speed USB device number 13 using xhci_hcd
[Sun Nov 8 20:04:54 2020] usb 1-1.3: unable to read config index 0 descriptor/start: -32
[Sun Nov 8 20:04:54 2020] usb 1-1.3: chopping to 0 config(s)
[Sun Nov 8 20:04:54 2020] usb 1-1.3: can't read configurations, error -32
[Sun Nov 8 20:04:54 2020] usb 1-1.3: new full-speed USB device number 14 using xhci_hcd
[Sun Nov 8 20:04:54 2020] usb 1-1.3: device descriptor read/8, error -32
[Sun Nov 8 20:04:54 2020] usb 1-1.3: unable to read config index 0 descriptor/start: -32
[Sun Nov 8 20:04:54 2020] usb 1-1.3: chopping to 0 config(s)
[Sun Nov 8 20:04:54 2020] usb 1-1.3: can't read configurations, error -32
[Sun Nov 8 20:04:54 2020] usb 1-1-port3: unable to enumerate USB device