Re: Numbering devices and usbmon

"Jon Smirl" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On 2/27/07, Jon Smirl <[email protected]> wrote:
> In lsusb devices on a bus are numbered starting at zero, in usbmon
> (ie, the data I'm getting from libcap) the devices numbered starting
> at one. Which one is right?

It seems to be more complex...

>From lsusb
Bus 005 Device 001: ID 0000:0000
Bus 005 Device 002: ID 2001:3c00 D-Link Corp. [hex] DWL-G122 802.11g
rev. B1 [ralink]
Bus 005 Device 003: ID 2001:f103 D-Link Corp. [hex]
Bus 005 Device 005: ID 0b05:1723 ASUSTek Computer, Inc.

With usbmon I have devices 1,2,3 and 6.
Device 3 is a hub and the ASUS device is plugged into it.

jonsmirl@jonsmirl:/proc/bus/usb$ cat devices | grep Bus
T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
T:  Bus=05 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#=  3 Spd=480 MxCh= 7
T:  Bus=05 Lev=02 Prnt=03 Port=04 Cnt=01 Dev#=  5 Spd=480 MxCh= 0

jonsmirl@jonsmirl:/sys/bus/usb/devices$ ls 5* -d
5-0:1.0  5-1  5-1:1.0  5-3  5-3:1.0  5-3.5  5-3.5:1.0


-- 
Jon Smirl
[email protected]

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.