Portál AbcLinuxu, 12. května 2025 18:27

Dotaz: Logitech C110 - Raspberry PI

11.2.2013 08:45 pou | skóre: 18
Logitech C110 - Raspberry PI
Přečteno: 998×
Odpovědět | Admin
Ahoj,
koupil jsem si uvedenou webkameru, odzkoušel na stolním PC (debian Wheezy) vše okamžitě fungovalo (plug and play).
Ovšem na Raspbianu mi nefunguje. Můžete mi prosím poradit??
Výstup lsusb:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:0829 Logitech, Inc. 

Výstup dmesg:
  1.839729] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.849779] Init: Port Power? op_state=1
[    1.858002] Init: Power Port (0)
[    1.865799] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.877087] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.888920] usb usb1: Product: DWC OTG Controller
[    1.898033] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
[    1.908372] usb usb1: SerialNumber: bcm2708_usb
[    1.918167] hub 1-0:1.0: USB hub found
[    1.926471] hub 1-0:1.0: 1 port detected
[    1.935368] dwc_otg: FIQ enabled
[    1.935386] dwc_otg: NAK holdoff enabled
[    1.935407] Module dwc_common_port init
[    1.935740] usbcore: registered new interface driver uas
[    1.945524] Initializing USB Mass Storage driver...
[    1.954963] usbcore: registered new interface driver usb-storage
[    1.965373] USB Mass Storage support registered.
[    1.974536] usbcore: registered new interface driver libusual
[    1.985053] mousedev: PS/2 mouse device common for all mice
[    1.995830] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    2.001668] bcm2835-cpufreq: switching to governor powersave
[    2.011792] bcm2835-cpufreq: switching to governor powersave
[    2.021985] cpuidle: using governor ladder
[    2.034745] cpuidle: using governor menu
[    2.043086] sdhci: Secure Digital Host Controller Interface driver
[    2.053645] sdhci: Copyright(c) Pierre Ossman
[    2.062291] sdhci: Enable low-latency mode
[    2.070726] bcm_power_open() -> 1
[    2.078452] Registered led device: mmc0::
[    2.079932] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.092258] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.102459] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.113877] Registered led device: led0
[    2.114275] usbcore: registered new interface driver usbhid
[    2.124174] usbhid: USB HID core driver
[    2.133209] Indeed it is in host mode hprt0 = 00021501
[    2.150657] TCP cubic registered
[    2.160629] Initializing XFRM netlink socket
[    2.181809] NET: Registered protocol family 17
[    2.203058] Registering the dns_resolver key type
[    2.223079] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.241228] mmc0: problem reading SD Status register.
[    2.263857] registered taskstats version 1
[    2.272334] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.290827] mmc0: new high speed SDHC card at address 0007
[    2.305295] Waiting for root device /dev/mmcblk0p2...
[    2.315412] mmcblk0: mmc0:0007 SD4GB 3.70 GiB 
[    2.326930]  mmcblk0: p1 p2
[    2.422966] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.434582] Indeed it is in host mode hprt0 = 00001101
[    2.469734] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.492984] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.535192] devtmpfs: mounted
[    2.543649] Freeing init memory: 124K
[    2.673334] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.684739] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.698272] hub 1-1:1.0: USB hub found
[    2.706886] hub 1-1:1.0: 3 ports detected
[    2.993321] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.103650] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.116181] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.132822] smsc95xx v1.0.4
[    3.198960] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:31:b6:eb
[    3.293183] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.496493] usb 1-1.2: New USB device found, idVendor=046d, idProduct=0829
[    3.518520] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.543030] usb 1-1.2: Product: Webcam C110
[    3.552241] usb 1-1.2: Manufacturer:  
[    4.196228] udevd[137]: starting version 175
[    6.010916] Linux video capture interface: v2.00
[    6.372527] uvcvideo: Found UVC 1.00 device Webcam C110 (046d:0829)
[    6.622180] input: Webcam C110 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    6.813488] usbcore: registered new interface driver uvcvideo
[    6.933018] USB Video Class driver (1.1.1)
[    7.310874] usbcore: registered new interface driver snd-usb-audio
[   17.699749] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   18.176788] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   18.818630] bcm2835 ALSA card created!
[   18.841198] bcm2835 ALSA chip created!
[   18.859626] bcm2835 ALSA chip created!
[   18.875306] bcm2835 ALSA chip created!
[   18.893100] bcm2835 ALSA chip created!
[   18.912060] bcm2835 ALSA chip created!
[   18.925902] bcm2835 ALSA chip created!
[   18.938250] bcm2835 ALSA chip created!
[   26.908121] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   36.769214] Adding 102396k swap on /var/swap.  Priority:-1 extents:129 across:1754856k SS


Pokud zkusím přehrát video ve vlc, píše chybu:
ALSA lib pcm.c:7339:(snd_pcm_recover) overrun occurred
Při použití programu motion mi to psalo, že kamera je zaneprázdněná, podle návodu navod jsem zakomentoval některé řádky v /lib/udev/rules.d/60-persistent-v4l.rules, tuto chybu už to nepíše ale zase nefunguje(změnu jsem vrátil zpět).
A nakonec přehrátí pomocí mplayeru ukazuje zelenou obrazovku...
s tímto výstupem:
$ mplayer -vf screenshot -fps 15 -tv width=1024:height=768:device=/dev/video0 tv://
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski olschewskizpr.uni-koeln.de
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Webcam C110
 Capabilities:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
[gl] no GLX support present
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler  0x1c40380] BICUBIC scaler, from yuyv422 to rgb565le using C
VO: [x11] 640x480 => 640x480 BGR 16-bit 
v4l2: select timeout
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
FPS forced to be 15.000  (ftime: 0.067).
Starting playback...
V:   0.0   1/  1 ??% ??% ??,?% 0 0 
v4l2: select timeout

Nevíte někdo co s tím??
Díky za radu!
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

11.2.2013 11:08 trubicoid2
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
Odpovědět | | Sbalit | Link | Blokovat | Admin
neni problem s napajenim? mas raspberry s polyfuse nebo bez? zkus kameru pripojit ne primo, ale pres napajeny usb hub
11.2.2013 20:00 pou | skóre: 18
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
Díky za odpověď
polyfuse noo tak to nevím :-/ koupil jsem ho před Vánoci a napájím ho adaptérem přímo od výrobce.
Hub s napájení nemám, na Raspberry nenám připojený nic než tu kameru. Ta snad takový odběr mít nebude ne??
Dioda na kameře indikuje, že je používaná....
11.2.2013 20:17 Trubicoid2
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
Polyfuse jsou tri, f1 a f2 pro dva USB porty jsou na v2 hardware vyrazeny. F3 v napajeni zustala. Koukni treba na https://plus.google.com/app/basic/photos/109928236040342205185/album/5759264418828082833/5780498170375008498?banner=pwa&gpsrc=pwrd1

Jestli tam ty f1 a f2 mas, tak zkus skratovat. Ten napajenej hub taky neni moc drahej.
14.2.2013 20:20 pou | skóre: 18
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
Tak jsem dnes koupil ten napajeny hub a zkusil.... ale vysledek porad stejny, na kamere se rozsviti led (indikace ze snima) ale zase nic... nejake dalsi napady??
14.2.2013 20:27 pou | skóre: 18
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
jeste pridam podekovani za radu a novy vypis dmsg:
[   79.274527] usb 1-1.2: New USB device found, idVendor=1a40, idProduct=0101
[   79.274556] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   79.274572] usb 1-1.2: Product: USB 2.0 Hub
[   79.285077] hub 1-1.2:1.0: USB hub found
[   79.285289] hub 1-1.2:1.0: 4 ports detected
[   82.443686] usb 1-1.2.4: new high-speed USB device number 6 using dwc_otg
[   82.657226] usb 1-1.2.4: New USB device found, idVendor=046d, idProduct=0829
[   82.657257] usb 1-1.2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   82.657275] usb 1-1.2.4: Product: Webcam C110
[   82.657287] usb 1-1.2.4: Manufacturer:  
[   82.665481] uvcvideo: Found UVC 1.00 device Webcam C110 (046d:0829)
[   82.673339] input: Webcam C110 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/input/input1
[  347.185795] retire_capture_urb: 247 callbacks suppressed
[  352.606723] retire_capture_urb: 14 callbacks suppressed
[  357.724027] retire_capture_urb: 14 callbacks suppressed
[  363.747978] retire_capture_urb: 7 callbacks suppressed

14.2.2013 20:59 pou | skóre: 18
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
Tak jeste dalsi poznatek, pokud zmensim rozliseni tak se obraz objevi (sice barvy jsou hrozne), rozliseni na klasickem debianu bez problemu 1024 x 768, na raspberrym se nezobrazi obraz kdy z je rozliseni vetsi nez 400(asi)
15.2.2013 11:22 trubicoid2
Rozbalit Rozbalit vše Re: Logitech C110 - Raspberry PI
jednak c110 ma prej tzv. bandwidth bug, zkus http://www.ideasonboard.org/uvc/faq/#faq6 UVC_QUIRK_FIX_BANDWIDTH

druhak tu se pise, ze mu na raspberry nejede c110 s obrazem vetsim nez 320×240 http://sirlagz.net/2013/01/07/how-to-stream-a-webcam-from-the-raspberry-pi-part-3/

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.