voxl-streamer client repetitive connect/disconnect
-
@wilkinsaf There are some clues here: https://github.com/gregkh/usbutils/issues/42. It seems like there are some endian issues with interpretation of the guidFormat field. For example, for my Logitech C270 test camera, lsusb reports the guidFormat as
32595559-0000-0010-8000-00aa00389b71
but libuvc (which voxl-uvc-server uses) reports the guidFormat as59555932-0000-1000-8000-00aa00389b71
. So, my guess is that since lsusb reports the guidFormat of your camera as59555932-0000-1000-8000-00aa00389b71
, libuvc (and hence voxl-uvc-server) will see it as32595559-0000-0010-8000-00aa00389b71
which doesn't match any valid formats. I think I can hack libuvc to add the extra guidFormat and then your cameras will work but I won't be able to test it without one of your cameras. But I will post it and you can try it. For reference this is where libuvc needs to be modified to add the extra guidFormat: https://github.com/libuvc/libuvc/blob/37f00abd32b083a3d748f2a25c1c794578b51c16/src/stream.c#L109 -
@wilkinsaf There is a new version of libuvc available at http://voxl-packages.modalai.com/dev/libuvc_1.0.2_202112182223.ipk with the changes. If you rebuild the dev branch of voxl-uvc-server and install build deps from dev you should pick up the new libuvc. Then you can rebuild and test with your camera.
-
@Eric-Katzfey roger that. thank you for your support here Eric
-
@Eric-Katzfey will post results after run
-
@Eric-Katzfey Sorry for being such a pain, but it seems like this repo keeps moving.
I went to https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server
but got this
I keep searching around for the repo, but can not find it
-
@wilkinsaf Sorry, it was setup as private. I changed it to public. Can you try again?
-
@Eric-Katzfey Got it, thank you!
Will download and play with
-
@Eric-Katzfey Will it remain public?
-
@wilkinsaf Yes, it will remain public. Did you get a chance to see if the changes worked?
-
@Eric-Katzfey Testing out today
-
We seem to be having trouble finding the camera now which is weird. I wonder if we need to specifically download and install the drivers?
-
@wilkinsaf No, you shouldn't need any drivers. Any USB device should be listed with
lsusb
, even without any specific drivers. Does it show up when plugged into a regular Linux computer? -
@Eric-Katzfey Yes, we have hardwired it into a computer before. We have seen the stream using ffmpeg on VOXL as well. We just can not seem to get voxl-streamer to work with it
-
@wilkinsaf If you unplug the camera from Voxl does anything disappear from the
lsusb
list? -
Yes, the top 3 entries in
lsusb
screenshots above are all cameras. I can unplug those one by one and see them disappear.
Would it matter if we have 2 UVC cameras? -
@wilkinsaf Just try one at a time for now. And when you plug the camera in do you see a new
/dev/videoX
entry appear? -
@wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.
-
Yes, let me try one at a time now.
Here are the two cameras![0_1640728100493_PXL_20211228_214717072.jpg](Uploading 100%)
-
Good news, I was able to get voxl-uvc-server to spin up with one usb camera connected.
However, I am getting this issue from voxl-streamer
Seems like I need to figure out the frame size and set the correct one. Let me play around with that now
-
@Eric-Katzfey Doesn't look to be frame size as the "sizes" seem non-deterministic