Hi,
Thanks Dave. Following is what I got by cat /proc/bus/usb/devices.
The device is Logitech Pro 5000 webcam (one camera). The driver is
uvcvideo. The application is luvcview. The command is ./luvcview -f yuv -s
640x480.
Maybe Laurent (author of UVC driver) can join us also.
I appreciate all the help.
Daniel Zhang
T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
B: Alloc=616/800 us (77%), #Int= 0, #Iso= 5
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13-15-smp ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=05 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 10 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=046d ProdID=08c5 Rev= 0.05
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=00 Driver=uvcvideo
E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 192 Ivl=125us
I: If#= 1 Alt= 2 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 384 Ivl=125us
I: If#= 1 Alt= 3 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl=125us
I: If#= 1 Alt= 4 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 640 Ivl=125us
I: If#= 1 Alt= 5 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 800 Ivl=125us
I: If#= 1 Alt= 6 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS= 944 Ivl=125us
I: If#= 1 Alt= 7 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS=1280 Ivl=125us
I: If#= 1 Alt= 8 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS=1600 Ivl=125us
I: If#= 1 Alt= 9 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS=1984 Ivl=125us
I: If#= 1 Alt=10 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS=2688 Ivl=125us
I: If#= 1 Alt=11 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=01(Isoc) MxPS=3060 Ivl=125us
I: If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I: If#= 3 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 3 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=86(I) Atr=05(Isoc) MxPS= 16 Ivl=1ms
I: If#= 3 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=86(I) Atr=05(Isoc) MxPS= 32 Ivl=1ms
I: If#= 3 Alt= 3 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=86(I) Atr=05(Isoc) MxPS= 48 Ivl=1ms
From: David Brownell <[EMAIL PROTECTED]>
To: [email protected]
CC: "Zhang Daniel" <[EMAIL PROTECTED]>
Subject: Re: [linux-usb-devel] How to explain two cameras can run together
in YUV 640x480 30 fps in Windows?
Date: Tue, 12 Dec 2006 10:46:48 -0800
On Tuesday 12 December 2006 10:14 am, Zhang Daniel wrote:
> Hi,
> I am trying to run two cameras in YUV 640x480 30 fps in Linux. The
first
> one is running correctly. But the second one always fails with "NO
SPACE"
> error.
The measure relevant to USB is not "YUV @size [but no bitwidth] @fps",
but is instead the size and frequency of the isochronous transfer.
A "cat /proc/bus/usb/devices" while running one camera should show
which altsetting is active, and isochronous endpoint config it uses.
> I was told this is bandwidth issue. But why they can work run under
Windows
> XP.
>
> I am curious if there is something different bandwidth allocation
mechanism
> between Windows and Linux. Or there is one silver bullets (some patch
> somewhere?).
First place to look is the driver you're using. Driver bugs have been
known to happen...
However, there is a USB 2.0 spec inconsistency in this area. From memory,
the issue is that two high bandwidth ISO transfers (24 KB/msec) exceed the
amount of bandwidth reserved for periodic transfers (80%) ... yet one spot
in the spec says that two such transfers ought to work.
- Dave
_________________________________________________________________
与世界各地的朋友进行交流,免费下载 Live Messenger;
http://get.live.com/messenger/overview
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel