I might have read every possible post regarding this topic, but I have never found a clear answer.
I face the following scenario: I have a remote Raspberry Pi 4 connected to an actively powered USB hub with 7 positions. 6 brand new USB webcams are connected to this hub and the hub is plugged into the Raspberry Pi. This is a remote situation and I can not just plug in and out the power cable whenever I want.
Important: Yes this setup does work. It is not limited by USB or power bandwidth limitations because I set this up two days ago, and it worked until now.
Today I have rebooted the Pi. Now only 2 of my 6 webcams are shown when using lsusb. Output here:
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 1224:2a25
Bus 001 Device 004: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 001 Device 011: ID 1224:2a25
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I know that the ones with 1224:2a15 are my webcams because previously 6 of these were shown and i looked into it via v4l2.
Even more weird is the output of ls -l /dev/video*:
crw-rw---- 1 root video 81, 7 Mar 31 17:01 /dev/video0
crw-rw---- 1 root video 81, 8 Mar 31 17:01 /dev/video1
crw-rw---- 1 root video 81, 0 Mar 31 16:18 /dev/video10
crw-rw---- 1 root video 81, 5 Mar 31 16:18 /dev/video11
crw-rw---- 1 root video 81, 6 Mar 31 16:18 /dev/video12
crw-rw---- 1 root video 81, 1 Mar 31 16:18 /dev/video13
crw-rw---- 1 root video 81, 2 Mar 31 16:18 /dev/video14
crw-rw---- 1 root video 81, 3 Mar 31 16:18 /dev/video15
crw-rw---- 1 root video 81, 4 Mar 31 16:18 /dev/video16
crw-rw---- 1 root video 81, 9 Mar 31 17:02 /dev/video2
crw-rw---- 1 root video 81, 10 Mar 31 17:02 /dev/video3
There are many more devices than there are actual webcams but only two give me images when I use fswebcam -d /dev/video*
My Question:
- Is there any way such that I can make my Raspberry Pi find the missing webcams without the need to physically interact with it.
- If 1. is not the case, is there any way such that I can setup the raspberry such that I only have to physically interact with it once and from that point on it finds the webcams until it gets rebooted. Because I know I already had this problem in the past with a different Raspberry and the only method to get it working was "Rebooting and praying until it works".
Please Help.
/var/log/sysloganddmesg) probably have more clues about this. – goldilocks Mar 31 '21 at 19:37lsusb. I have 2 days of logs that tell me that power is not the issue but the reboot is. – Pascal Mar 31 '21 at 19:51