Hong Gang Ma(deleted)
|
Using libcapture-usb-uvc.so on an iMX6 Board
|
Hong Gang Ma(deleted)
06/03/2016 6:06 AM
post116377
|
Using libcapture-usb-uvc.so on an iMX6 Board
We are using a USB camera (VID_174f&PID_1734) on an iMX6 board. The camera is connected to iMX6 through a USB hub (USB2517). It works fine in Android, and the following debug messages are output in Android,
root@android:/ # usb 2-1.3: new high speed USB device number 7 using fsl-ehci
uvcvideo: Found UVC 1.00 device Front Camera (174f:1734)
input: Front Camera as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.3/2-1.3:1.0/input/input9
Start a simple camera test application, the camera video is displayed on screen.
If we program a QNX6.6 image to the board and run the following commands, error messages are output repeatedly.
# ln -Psf /usr/lib/libcapture-usb-uvc.so /usr/lib/libcapture.so.1
# rearview-camera -zorder=-1 -parent-zorder=-1 -format=yuy2 -bsize=640x480 -sfsize=640x480 -csize=640x480 -interface-type=csi2 -source=0 -nlanes=2 -sensor-clk-mode=1 -verbosity=1 > /dev/null &
Error messages are as follow,
Has JPEG formatadjusting the source viewport size from -1 x -1 to 640 x 480
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 0 Input/output error(5) 0x2000002
Failed to get urb status size 12028 Input/output error(5) 0x2000008
Failed to get urb status size 49152 Input/output error(5) 0x2000008
Failed to get urb status size 49152 Input/output error(5) 0x2000008
Failed to get urb status size 48244 Input/output error(5) 0x2000008
Failed to get urb status size 31744 Input/output error(5) 0x2000008
Failed to get urb status size 49152 Input/output error(5) 0x2000008
Failed to get urb status size 35840 Input/output error(5) 0x2000008
Run command "usb", the camera info is displayed as follow,
# usb
USB 0 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Device Address : 1
Vendor : 0x0424
Product : 0x2517
Class : 0x09 (Hub)
Subclass : 0x00
Protocol : 0x02
Hub Number Ports : 7
Hub Characteristics : 0x0089 (Individual power, Individual over-current)
Hub Power On->Good : 100 ms
Hub Power Requirements : 1 mA
Device Address : 2
...
...
Device Address : 3
Vendor : 0x174f (D-MAX)
Product : 0x1734 (Front Camera)
Class : 0xef (Unknown)
Subclass : 0x02
Protocol : 0x01
Other USB devices can work normally on the board (e.g. USB LAN, USB storage devices).
I also tested the camera using QNX6.5 image, and run vcapture-test command. But I got the same errors.
What else shall I do to make it work?
Thanks.
|
|
|