2011-08-02 03:09:48 Can't get image from a USB-Webcam
Christian Klingen (GERMANY)
Message: 102762
Hi,
I am working with the DEV-BF548DA-Lite board and the 2010R1-RC5 distribution.
I try to get a picture from a USB-Webcam but it doesn´t work. I only get the error can´t get image.
I use the Hercules Classic Silver webcam. I connected the cam via USB. I set the settings for uclinux ditribution from this site docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:usb_video_device_class&s[]=v4l
To get an image I used the prog vidcat from the distibution. But when I enter the command root:/> vidcat -d /dev/video0 I only get the Error message “Error: Can't get image“.
I think the driver is loaded correctly.
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0017a9a0
rodata = 0x0017a9a0-0x002021bc
bss = 0x00203000-0x002160f4
data = 0x002160f4-0x0023c000
stack = 0x0023a000-0x0023c000
init = 0x0023c000-0x00934000
available = 0x00934000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev any, running on 0.1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: New USB device found, idVendor=06f8, idProduct=300c
usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 1-1: Product: Classic Silver
usb 1-1: Manufacturer: Guillemot Corporation
uvcvideo: Found UVC 1.00 device Classic Silver (06f8:300c)
input: Classic Silver as /devices/platform/musb_hdrc.0/usb1/1-1/1-1:1.0/input/input0
root:/> lsusb
Bus 001 Device 002: ID 06f8:300c Guillemot Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root:/> vidcat -d /dev/video0 -v
input palette: rgb
size: 320x240
using read()
Error: Can't get image
root:/>
root:/> luvcview -f yuv -s 320x240 -i 30
luvcview 0.2.4
Couldn't initialize SDL: No available video device
Is there anybody who knows how I can do this?
Is there any example schematic?
Thanks a lot
TranslateQuoteReplyEditDelete
2011-08-02 04:54:50 Re: Can't get image from a USB-Webcam
Aaron Wu (CHINA)
Message: 102782
Could you check if your device driver is proerly installed and probed. Is the /dev/video0 present there?
QuoteReplyEditDelete
2011-08-02 09:35:32 Re: Can't get image from a USB-Webcam
Christian Klingen (GERMANY)
Message: 102786
I think yes
root:/> lsusb
Bus 001 Device 002: ID 06f8:300c Guillemot Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root:/> modprobe videodev
Linux video capture interface: v2.00
root:/> modprobe uvcvideo
uvcvideo: Found UVC 1.00 device Classic Silver (06f8:300c)
input: Classic Silver as /devices/platform/musb_hdrc.0/usb1/1-1/1-1:1.0/input/input0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
root:/> vidcat -v -d /dev/video0
input palette: rgb
size: 320x240
using read()
Error: Can't get image
root:/>