Camera problems with Linux

306 views
Skip to first unread message

David Griffiths

unread,
Mar 13, 2022, 11:38:04 PM3/13/22
to OpenPnP
I built my PNP machine and tested it in my office using Win 10. I now want to move it to the workshop with a dedicated PC. I decided to try Linux, which is way out of my comfort zone!
I have two identical ELP HD USB cameras for UP and DOWN and a cheapy webcam for what I call a scenic view (handy when working with a remote colleague).
I have installed Linux Mint 20.3 Cinnamon.
I can view each camera individually (using GUVCView) but OpenPNP can only see one of the cameras.
LSUSB shows all cameras on Bus 1. My first assumption was that the bus related to the host controller that each port was physically attached to, but I have seen a physical port change to bus 2 when a different device was plugged in.
The PC is a circa 2009 machine with an ASUS mobo but I have also tried one with a Gigabyte Mobo of similar vintage with the same results.
My guess is that OpenPNP wants to see the cameras on different busses (possibly because the two ELP cameras have the same ID and serial number (zero).)

Am I looking at a mobo hardware/design issue or a Linux/driver issue or an OpenPNP/Java issue?

Would it help if I bought a PCI USB card?

Any guidance is welcome.

DG

mark maker

unread,
Mar 14, 2022, 3:27:49 AM3/14/22
to ope...@googlegroups.com

If they are HD, they should work, even if connected to the same root USB hub. But if they are Full HD, they will not work if connected to the same root USB hub, the band-width is not enough.

https://github.com/openpnp/openpnp/wiki/USB-Camera-Troubleshooting-FAQ#why-does-mjpeg-still-not-help-for-some-cameras

_Mark

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d02f0ff0-be24-4259-9caf-fa34c027cea0n%40googlegroups.com.

David Griffiths

unread,
Mar 14, 2022, 3:31:48 AM3/14/22
to OpenPnP
Hi Mark,
They are Full HD 1920x1080.  So the question is how do I get them to connect to different root hubs?  Or am I wrong to be reading the 'Bus' number that LSUSB shows me?

DMESG seems to be showing similar information.  eg USB1-2 which I read as Bus 1 Device 2 etc.

DG

mark maker

unread,
Mar 14, 2022, 3:40:33 AM3/14/22
to ope...@googlegroups.com

I don't know enough of Linux to really help there. You just need to make sure to get two different USB root hubs, i.e. plug in the two cameras directly to the PC (no hub), and on plugs that are not internally sharing a hub on the mobo. If I were you, I would just try different combinations of plugs on the PC.

_Mark

Ian Arkver

unread,
Mar 14, 2022, 5:19:22 AM3/14/22
to OpenPnP
lsusb -t

will show the tree structure and easily determine which root hubs are being used.

David Griffiths

unread,
Mar 14, 2022, 5:47:00 PM3/14/22
to OpenPnP
Ah, thanks Ian, I will try that.

DG

David Griffiths

unread,
Mar 18, 2022, 7:08:45 PM3/18/22
to OpenPnP
Update...  I have resolved the problem. I tried four old machines without much joy, so I bit the bullet and acquired a much more recent machine with Win 10 on it and I can now see both UP & DOWN cameras at the same time. I haven't tried the scenic camera yet.
I think the USB architecture on the old machines was the problem.
Reply all
Reply to author
Forward
0 new messages