Driver adventures for a 1999 webcam
21–30 of 78 posts
Re: Driver adventures for a 1999 webcam
#22Reminds me when I had to read barcodes from a USB-connected barcode scanner on a Mac. The manufacturer supplied a closed-source library which only supported PPC code and they told me that they lost the source code, so I couldn't easily add intel support. In the end I sniffed the USB protocol of the windows driver and was delighted to see how they abused the control endpoint rather than setting up proper data endpoint…
> In the end I sniffed the USB protocol of the windows driver and was delighted to see how they abused the control endpoint rather than setting up proper data endpoints. Is there a better way to implement this? They seem to use it for any non-standard feature. My laptop's keyboard uses the control endpoint to control the LEDs.
In the case of this barcode scanner all communication was done over the control endpoint though.
Re: Driver adventures for a 1999 webcam
#23Paper cuts like this is why the Linux Desktop isn't mainstream.
Re: Driver adventures for a 1999 webcam
#24Re: Driver adventures for a 1999 webcam
#25Re: Driver adventures for a 1999 webcam
#26>This means that all attempts to get data from it using the first USB interface would fail. Now you might ask, why does the webcam have an endpoint with a 0 byte MaxPacketSize on its first interface? Who knows! Paper cuts like this is why the Linux Desktop isn't mainstream.
Re: Driver adventures for a 1999 webcam
#27I did something very similar quite recently with an old Mustek DV3000 camera that had webcam functionality. I was shocked to find out that Linux actually supports it out of the box. The quality is trash so it's not really usable, but fun messing around with it nonetheless.
Re: Driver adventures for a 1999 webcam
#28>This means that all attempts to get data from it using the first USB interface would fail. Now you might ask, why does the webcam have an endpoint with a 0 byte MaxPacketSize on its first interface? Who knows! Paper cuts like this is why the Linux Desktop isn't mainstream.
I am not sure I fully understand what you mean by your remark, but I am positive that this is not a situation most “mainstream desktop users” are ever going to encounter.
Re: Driver adventures for a 1999 webcam
#29I have an 2012 Logitech webcam connected to an OpenBSD box. A cron job instructs ffmpeg to read from /dev/video0 every 10 minutes, which in turn writes a .jpg into a folder for creating a timelapse. Not bad for a random old webcam I had laying around.
Re: Driver adventures for a 1999 webcam
#30>This means that all attempts to get data from it using the first USB interface would fail. Now you might ask, why does the webcam have an endpoint with a 0 byte MaxPacketSize on its first interface? Who knows! Paper cuts like this is why the Linux Desktop isn't mainstream.