PDA

View Full Version : DFK 23UM021 and USB3 on linux



Gautier
November 29, 2016, 14:18:14
Hello,

I've got a DFK 23UM021 camera that I'm trying to get working on ubuntu. The camera works fine when plugged in a USB2 port, but the USB2 keeps it from delivering its normal frame rate.

Here is the issue: when plugged in a USB3 port, the camera doesn't work most of the time. I have tried several cables, on computers running ubuntu 14.04 and 16.04, and the problem persists. No issues on windows 10.

It is easily reproducible: with the camera plugged in a USB3 port, launch guvcview or an opencv script. It fails a few times, keep relaunching the software, and then for no apparent reason it suddenly works once. It fails during the VideoCapture::grab step in opencv ("select timeout" message). Guvcview error: "Could not grab image (select timeout): Resource temporarily unavailable".

I expected this USB3 camera to work out of the box, am I doing something wrong ?

Thanks in advance,

Gautier

Stefan Geissler
December 1, 2016, 14:06:10
Hello Gautier


I expected this USB3 camera to work out of the box, am I doing something wrong ?
Yes and no. However, can you try another computer too? I can imagine, there is a problem ion your computer. What is the serial number of your camera?
Also it might be a good idea to check the camera on a Windows PC too.

What about dmesg and lsusb outputs, when the camera does not run as expected?

Gautier
December 7, 2016, 14:19:59
I have tried on several computers running ubuntu (both 14.04 and 16.04) and the issue is the same.
The camera works fine on a windows 10 computer with your lastest drivers installed.

Here is the dmesg with the camera plugged in a USB2 port:


[12211.854307] usb 1-7: new high-speed USB device number 6 using xhci_hcd
[12211.984519] usb 1-7: New USB device found, idVendor=199e, idProduct=8455
[12211.984521] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12211.984522] usb 1-7: Product: DFK 23UM021
[12211.984523] usb 1-7: Manufacturer: The Imaging Source Europe GmbH
[12211.984523] usb 1-7: SerialNumber: 21410664
[12211.985010] uvcvideo: Found UVC 1.10 device DFK 23UM021 (199e:8455)
[12212.004710] uvcvideo: Failed to query (GET_LEN) UVC control 27 on unit 3: 1 (exp. 2).
[12212.004894] uvcvideo: Failed to query (GET_LEN) UVC control 24 on unit 3: 1 (exp. 2).
[12212.005099] uvcvideo: Failed to query (GET_LEN) UVC control 21 on unit 3: 1 (exp. 2).
[12212.005210] uvcvideo: Failed to query (GET_LEN) UVC control 22 on unit 3: 1 (exp. 2).
[12212.005338] uvcvideo: Failed to query (GET_LEN) UVC control 23 on unit 3: 1 (exp. 2).

And with the camera plugged in a USB3 port:


[12253.092798] usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd
[12253.109257] usb 2-4: LPM exit latency is zeroed, disabling LPM.
[12253.109952] usb 2-4: New USB device found, idVendor=199e, idProduct=8455
[12253.109953] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12253.109954] usb 2-4: Product: DFK 23UM021
[12253.109955] usb 2-4: Manufacturer: The Imaging Source Europe GmbH
[12253.109956] usb 2-4: SerialNumber: 21410664
[12253.110322] uvcvideo: Found UVC 1.10 device DFK 23UM021 (199e:8455)
[12253.117334] uvcvideo: Failed to query (GET_LEN) UVC control 27 on unit 3: 1 (exp. 2).
[12253.117452] uvcvideo: Failed to query (GET_LEN) UVC control 24 on unit 3: 1 (exp. 2).
[12253.117597] uvcvideo: Failed to query (GET_LEN) UVC control 21 on unit 3: 1 (exp. 2).
[12253.117718] uvcvideo: Failed to query (GET_LEN) UVC control 22 on unit 3: 1 (exp. 2).
[12253.117837] uvcvideo: Failed to query (GET_LEN) UVC control 23 on unit 3: 1 (exp. 2).

And each time the capture works, I get this message in the dmesg at the beginning of the capture:

[12322.506439] uvcvideo: Non-zero status (-71) in video completion handler.

As shown in the dmesg, the serial number is 21410664.

You can find the lsusb -v results in the two attachments. It seems to be properly recognized. Note that the camera is plugged in once, and that whether it works or not appears to be decided when a software using it is launched.

Thanks for you help.

Stefan Geissler
December 7, 2016, 15:42:28
Hello

The camera has an too old firmware, therefore it does not work in Linux. Please create a request at http://www.theimagingsource.com/en_US/company/contact/ for an update firmware.

Always keep in mind: Firmware update have a small risc of making the camera unusable.