Ayoub, Hani
2014-01-01 17:34:27 UTC
Hi,
I'm trying to bring up a device which sends data using BULK transfer using V4L2 UVC Linux driver (Ubuntu 12.04).
Using guvcview<https://apps.ubuntu.com/cat/applications/precise/guvcview/>, I can see that the device transfer data successfully and I can see a stream. However, that works fine ONLY the first time I run guvcview after I plug-in the device, closing the app and re-launching it does not show any pictures... to get a good stream I have to re-plug-in the device to the USB 3.0 port.
Via USB analyzer, I can see that when closing the application (closing the device) an "AltSet 1" (alternateSetting set 1) is sent although it's prohibited by spec (UVC 1.1 section 2.4.3) - so the device ignores it, this (I think) is the reason why the stream doesn't work when re-launching the application.
My question is: how should I properly close the stream in BULK? Is there any way to "patch" V4L or the application to make closing the device works fine?
There are some similar discussions in the web, but I think there's no real answer (some references below)
References:
* Thread1<http://www.spinics.net/lists/linux-usb/msg87684.html>
* Thread2<http://www.spinics.net/lists/linux-usb/msg89002.html>
* Thread3<http://lists.berlios.de/pipermail/linux-uvc-devel/2009-December/005356.html>
* Thread4<http://comments.gmane.org/gmane.linux.usb.general/85292>
Thanks,
Hani;
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
I'm trying to bring up a device which sends data using BULK transfer using V4L2 UVC Linux driver (Ubuntu 12.04).
Using guvcview<https://apps.ubuntu.com/cat/applications/precise/guvcview/>, I can see that the device transfer data successfully and I can see a stream. However, that works fine ONLY the first time I run guvcview after I plug-in the device, closing the app and re-launching it does not show any pictures... to get a good stream I have to re-plug-in the device to the USB 3.0 port.
Via USB analyzer, I can see that when closing the application (closing the device) an "AltSet 1" (alternateSetting set 1) is sent although it's prohibited by spec (UVC 1.1 section 2.4.3) - so the device ignores it, this (I think) is the reason why the stream doesn't work when re-launching the application.
My question is: how should I properly close the stream in BULK? Is there any way to "patch" V4L or the application to make closing the device works fine?
There are some similar discussions in the web, but I think there's no real answer (some references below)
References:
* Thread1<http://www.spinics.net/lists/linux-usb/msg87684.html>
* Thread2<http://www.spinics.net/lists/linux-usb/msg89002.html>
* Thread3<http://lists.berlios.de/pipermail/linux-uvc-devel/2009-December/005356.html>
* Thread4<http://comments.gmane.org/gmane.linux.usb.general/85292>
Thanks,
Hani;
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.