question

bbuster avatar image
bbuster asked

Raspberry pi 4 with powered waveshare usb hub

I am having a lot of problems with a powered usb hub from waveshare. This one (https://www.waveshare.com/usb3.2-gen1-hub-2in-4out.htm)


After a lot of plugging in and unplugging, sometimes all my accessories are connected (smart shunt, mppt and multiplus). Then 3 lights are on to show thr 3 connected usb devices. But after a reboot or unplugging the cable and re plugging, it almost never works.


The hub is a few months old now and works okay till a reboot and then i have no idea how to make it work again till it suddenly starts working.


The hub is powered with 12v (13.5v measured from lifepo4 batteries from the motorhome)

Venus OSRaspberry Pimk3-usb
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

4 Answers
mr-manuel avatar image
mr-manuel answered ·

Try to check the serial starter log

tail -F -n 100 /data/log/serial-starter/current | tai64nlocal

and the USB devices

lsusb

when it's working and when it's not working.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bbuster avatar image
bbuster answered ·
root@raspberrypi4:~# tail -F -n 100 /data/log/serial-starter/current | tai64nlocal
2024-05-27 18:43:46.027710500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:43:49.400524500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:43:58.922915500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:44:02.303053500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:44:11.822235500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:44:15.198479500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:44:24.732253500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:44:28.105867500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:44:37.646422500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:44:41.024659500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:44:50.554023500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:44:53.932203500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:45:03.474584500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:45:06.839357500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:45:16.382249500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:45:19.741132500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:45:29.275433500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:45:32.647038500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:45:42.160748500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:45:45.539327500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:45:55.066298500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:45:58.437798500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:46:07.968585500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:46:11.341464500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:46:20.883375500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:46:24.260784500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:46:33.783376500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:46:37.163352500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:46:46.697442500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:46:50.072420500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:46:59.600862500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:47:02.976073500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:47:12.488054500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:47:15.877993500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:47:25.393058500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:47:28.763966500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:47:38.300841500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:47:41.673568500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:47:51.198044500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:47:54.582682500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:48:04.097008500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:48:07.475401500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:48:17.015792500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:48:20.392751500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:48:29.927595500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:48:33.310353500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:48:42.833608500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:48:46.213324500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:48:55.735075500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:48:59.112115500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:49:08.635041500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:49:12.009618500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:49:21.534037500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:49:24.925850500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:49:34.435698500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:49:37.838875500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:49:47.370478500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:49:50.744929500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:50:00.275832500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:50:03.656877500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:50:13.177683500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:50:16.560318500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:50:26.078325500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:50:29.449140500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:50:38.984838500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:50:42.351189500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:50:51.891708500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:50:55.276094500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:51:04.804938500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:51:08.177049500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:51:17.716901500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:51:21.089036500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:51:30.625845500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:51:34.006358500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:51:43.543235500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:51:46.914954500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:51:56.449665500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:51:59.829820500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:52:09.369096500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:52:12.753046500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:52:22.285228500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:52:25.668864500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:52:35.190753500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:52:38.573710500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:52:48.098267500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:52:51.478888500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:53:01.010609500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:53:04.380787500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:53:13.907963500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:53:17.283469500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:53:26.826728500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:53:30.210240500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:53:39.755858500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:53:43.116638500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:53:52.667203500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:53:56.056258500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:54:05.578827500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:54:08.975268500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:54:18.505101500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:54:21.880616500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 18:54:31.415387500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 18:54:34.791660500 INFO: Start service gps-dbus.ttyACM0 once


root@raspberrypi4:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 03eb:572b Atmel Corp. 
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


For some reason i can't get it working now anymore. After connecting, disconnecting and restarting the raspberry pi at least 10 times, i still can't get a usb connection

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mr-manuel avatar image mr-manuel commented ·
Is this the situation when it's working or not working?
0 Likes 0 ·
Show more comments
bbuster avatar image
bbuster answered ·

Now 1 device is being detected (while 2 of the 3 leds are on, on the hub):


root@raspberrypi4:~# tail -F -n 100 /data/log/serial-starter/current | tai64nlocal
2024-05-27 19:36:28.816569500 *** starting serial-starter ***
2024-05-27 19:36:29.857830500 serstart starting
2024-05-27 19:36:29.873905500 INFO: loading config file /etc/venus/serial-starter.conf
2024-05-27 19:36:32.268615500 INFO: Create daemontools service gps-dbus.ttyACM0
2024-05-27 19:36:38.722644500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:36:48.173620500 INFO: Create daemontools service vedirect-interface.ttyACM0
2024-05-27 19:36:54.264517500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:36:55.707947500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:37:05.473005500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:37:08.909988500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:37:29.815118500 *** CCGX booted (0) ***
2024-05-27 19:37:31.064881500 *** starting serial-starter ***
2024-05-27 19:37:33.146989500 serstart starting
2024-05-27 19:37:33.213775500 INFO: loading config file /etc/venus/serial-starter.conf
2024-05-27 19:37:37.344402500 INFO: Create daemontools service gps-dbus.ttyACM0
2024-05-27 19:37:42.144422500 INFO: Create daemontools service mk2-dbus.ttyUSB0
2024-05-27 19:37:43.754537500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:37:48.774325500 INFO: Start service mk2-dbus.ttyUSB0
2024-05-27 19:37:59.044544500 INFO: Create daemontools service vedirect-interface.ttyACM0
2024-05-27 19:38:05.974140500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:38:09.684122500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:38:19.850905500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:38:23.414652500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:38:33.063706500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:38:36.550392500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:44:28.058593500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:44:31.456138500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:44:41.010457500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:44:44.408699500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:44:53.970287500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:44:57.380773500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:45:00.710942500 INFO: Create daemontools service vedirect-interface.ttyUSB1
2024-05-27 19:45:06.188173500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:45:06.798294500 INFO: Start service vedirect-interface.ttyUSB1
2024-05-27 19:45:09.656761500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:45:19.217394500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:45:22.671840500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:45:32.235147500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:45:35.634322500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:45:45.196346500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:45:48.596396500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:45:58.244459500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:46:01.643084500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:46:11.208891500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:46:14.609574500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:46:24.180758500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:46:27.590733500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:46:37.163590500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:46:40.568457500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:46:50.143990500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:46:53.556788500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:47:03.127275500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:47:06.526962500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:47:16.098229500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:47:19.498322500 INFO: Start service gps-dbus.ttyACM0 once
2024-05-27 19:47:29.069337500 INFO: Start service vedirect-interface.ttyACM0 once
2024-05-27 19:47:32.481107500 INFO: Start service gps-dbus.ttyACM0 once


root@raspberrypi4:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 03eb:572b Atmel Corp. 
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 008: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 007: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 004: ID 2109:2817 VIA Labs, Inc. 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bbuster avatar image
bbuster answered ·

Hmmz, i think i figured it out. I use a LogiLink Line Extender USB via CAT5/6 and for some reason that gives a lot of problems. When trying with a regular usb cable it works instantly.

I return the LogiLink Line Extender USB via CAT5/6 and bought another more professional usb via ethernet extender. Let's hope that works more reliable

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Additional resources still need to be added for this topic

Raspberry Pi running Victron’s Venus firmware - Blog Post

Venus OS Large image: Signal K and Node-RED - Install

raspberrypi install venus image


Additional resources still need to be added for this topic

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)