--- Alan Stern <[EMAIL PROTECTED]> wrote:

> On Sun, 11 Sep 2005, Leslie Katz wrote:
> 
> > My apologies. I was composing a message to the
> list a
> > moment ago and sent it by mistake, though only
> part
> > written. I'll begin again.
> > 
> > I am using Fedora Core 3 with kernel version
> > 2.6.11-1.35, gphoto2, version 2.1.6 and a USB DSC
> > with VID 2770 and PID 9120.
> > 
> > At first, I was using gphoto2, version 2.1.5, and
> was
> > able to download images satisfactorily. Then,
> however,
> > I suddenly became unable to do so. When I tried, I
> > received a message saying "Error updating port
> > settings" and found in /var/log/messages a
> statement
> > like: "usbfs: 'interface 0 claimed while gphoto2
> sets
> > config #1'".
> > 
> > I posted to the gphoto2 list and was told that the
> > message was a recognised bug in v 2.1.5 and that I
> > should upgrade to v 2.1.6.
> > 
> > I did, but continue to get the same message. I
> posted
> > again to the list, but got no further reply and so
> am
> > soliciting help here.
> > 
> > I have 5 usb buses. I'll try, within my limited
> > knowledge, to summarise here what cat
> > /proc/bus/usb/devices says about them.
> 
> It's easier (and more informative) just to include a
> copy of the file in 
> your email.

In case it may be of any assistance in dealing with my
problem, I take the liberty of including now the
entire output from "cat /proc/bus/usb/devices":

"[EMAIL PROTECTED] ~]$ cat /proc/bus/usb/devices

T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1
Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8
#Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.11-1.35_FC3 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:02:0d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=255ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1
Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8
#Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.11-1.35_FC3 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:02:0d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=255ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1
Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8
#Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.11-1.35_FC3 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1f.4
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=255ms

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  6
Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8
#Cfgs=  1
P:  Vendor=2770 ProdID=9120 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff
Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=3ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1
Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8
#Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.11-1.35_FC3 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1f.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2
Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8
#Cfgs=  1
P:  Vendor=055f ProdID=d004 Rev= 1.00
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=160mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 128 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 2 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 192 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 3 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 256 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 4 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 384 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 5 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 6 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS= 768 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 7 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=spca5xx
E:  Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00
Driver=snd-usb-audio
I:  If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00
Driver=snd-usb-audio
I:  If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00
Driver=snd-usb-audio
E:  Ad=83(I) Atr=01(Isoc) MxPS=  16 Ivl=1ms
I:  If#= 2 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00
Driver=snd-usb-audio
E:  Ad=83(I) Atr=01(Isoc) MxPS=  32 Ivl=1ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1
Spd=480 MxCh= 4
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
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.11-1.35_FC3 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:02:0d.2
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=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2
Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64
#Cfgs=  1
P:  Vendor=0ea0 ProdID=2168 Rev= 2.00
S:  Manufacturer=USB
S:  Product=Flash Disk
S:  SerialNumber=7075422BBAA900A5
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=125us
[EMAIL PROTECTED] ~]$"


> > Four of the buses are v 1.1 and have uhci host
> > controllers. The fifth is v 2 and has an ehci host
> > controller.
> > 
> > The DCS is attached to one of the uhci buses, a
> webcam
> > is attached to another and the ehci bus has a
> flash
> > disk attached.
> > 
> > The driver shown for each controller is "hub", for
> the
> > webcam, "spca5xx", for the flash disk,
> "usb-storage",
> > and for the dsc, "none".
> > 
> > My first and most basic question is--is it
> necessary
> > for the dsc to have its own driver before it will
> > work?
> 
> No.  Although during the period when gphoto2 is
> running, the driver should 
> show up as "usbfs".
> 
> > The gphoto2 manual, which, although dated June of
> this
> > year, refers to host controller drivers which I
> > understand are no longer current (usb-uhci and
> > usb-ohci),
> 
> Those are the 2.4 equivalents of uhci-hcd and
> ohci-hcd.
> 
> >  seems to imply that all that is needed is a
> > driver for the host controller to which any dsc is
> > attached.
> 
> Yes.
> 
> > If someone would be good enought to tell me the
> answer
> > to my first question, I may be able to make some
> > progress.
> 
> To get more information, set the "usbfs_snoop=y"
> parameter for the usbcore
> module.  Then post the output from dmesg, showing
> what happens when you
> try to run gphoto2.

I'm sure it's unnecessary for me to say so, but my
knowledge of these matters is rather glancing.

I ran the command "/sbin/lsmod" and got a list of my
loaded modules. There isn't one called "usbcore". The
command "/sbin/lsmod | grep usb" produces the
following output:

"[EMAIL PROTECTED] ~]$ /sbin/lsmod | grep usb
usb_storage            68489  1
scsi_mod              140073  2 sd_mod,usb_storage
snd_usb_audio          65025  2
snd_usb_lib            13121  1 snd_usb_audio
snd_rawmidi            28641  1 snd_usb_lib
snd_pcm                99657  4
snd_usb_audio,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd                    56741  13
snd_usb_audio,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
[EMAIL PROTECTED] ~]$"

The output of the command "/sbin/lsmod | grep core" is
as follows:

"[EMAIL PROTECTED] ~]$ /sbin/lsmod | grep core
i2c_core               21953  1 i2c_i801
soundcore              10785  3 snd
[EMAIL PROTECTED] ~]$"

I knew, however, that I'd seen the word "usbcore"
before when examining the output of "dmesg", so I ran
that for the purpose of this post and got the
following output:

"[EMAIL PROTECTED] ~]$ dmesg | grep usbcore
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
usbcore: registered new driver snd-usb-audio
usbcore: registered new driver spca5xx
usbcore: registered new driver usb-storage
[EMAIL PROTECTED] ~]$"

I googled for "usbcore module", but got no assistance
for present purposes.

Is it possible that some other loaded module has a
parameter which, when set appropriately, would provide
the equivalent output?

Finally, assuming I had usbcore, am I right to think I
could set the parameter by doing this:

echo "y" > /sys/module/usbcore/usbfs_snoop

I apologise for not being able to do more to help
myself. I appreciate very much your taking the trouble
to reply to my original post.

Best wishes,

Leslie
> 
> Alan Stern
> 
> 



        

        
                
____________________________________________________ 
Do you Yahoo!? 
The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and full 
Actor Database. 
http://au.movies.yahoo.com


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to