Вы находитесь на странице: 1из 6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

Translation(s):EnglishFrenchItaliano

Discussion

Howtoidentifyadevice>USB

HowtolistandidentifytheUSBdevicesthatareconnectedtoyoucomputer.
Makesurethedeviceispoweredupandenabledbeforelistingthedevices.
Devicearemainlyidentifiedusingapairofhexadecimalnumbers,like04b3:3108.
The4firsthexadecimaldigitsaretheVendorID(04b3=IBM).
The4lasthexadecimaldigitsaretheDeviceID(3108=ThinkPad800dpiOpticalTravel
Mouse).
Seereferencesformoreinformation.
Mostofthedevices(deviceids)handledbyDebianarelistedinthepage:
DeviceDatabase/USB.
Manypeoplesimplyuselsusb,whichisavailableonalmosteveryDebiansystem,tolistthe
devicesontheircomputer.Gnomeuserscaninstallandusethehardinfomethod.KDEusercan
usekinfocenter.

lsusb
lsusb(package: DebPkg: usbutils)isthestandardtooltoquerytheconnectedUSBdevices.

#lsusb
Bus005Device001:ID0000:0000
Bus004Device006:ID0a5c:2110BroadcomCorp.
Bus004Device001:ID0000:0000
Bus001Device001:ID0000:0000
Bus002Device001:ID0000:0000
Bus003Device001:ID0000:0000

ifyourdevicedescriptionsays"Unknowndevice",youcanupdateyourlocalusbiddefinition
byrunningupdateusbidsasroot.
Togetsomethingslightlymoreverbose,butstillreadable,Iuse:

wiki.debian.org/HowToIdentifyADevice/USB

1/6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

#lsusbv|grepE'\<(Bus|iProduct|bDeviceClass|bDeviceProtocol)'2>/dev/n
ull
Bus005Device001:ID0000:0000
bDeviceClass9Hub
bDeviceProtocol1SingleTT
iProduct2EHCIHostController
Bus004Device006:ID0a5c:2110BroadcomCorp.
bDeviceClass224Wireless
bDeviceProtocol1Bluetooth
iProduct2BCM2045B
(BusPowered)
Bus004Device001:ID0000:0000
bDeviceClass9Hub
bDeviceProtocol0Fullspeedhub
iProduct2UHCIHostController
Bus001Device001:ID0000:0000
bDeviceClass9Hub
bDeviceProtocol0Fullspeedhub
iProduct2UHCIHostController
Bus002Device001:ID0000:0000
bDeviceClass9Hub
bDeviceProtocol0Fullspeedhub
iProduct2UHCIHostController
Bus003Device001:ID0000:0000
bDeviceClass9Hub
bDeviceProtocol0Fullspeedhub
iProduct2UHCIHostController

man

lspci(8)

UnderGnome:hardinfo
Gnomes'sSystemInformation(HardinfoinMenuApplications/SystemTools,from
package: DebPkg: hardinfo)hasaninformationpageonthe"USB"cards.

wiki.debian.org/HowToIdentifyADevice/USB

2/6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

notethe"Vendor"and"ProductID".

UnderKDE:KInfocenter
KDE'sKInfoCenter(inKMenu/System/KInfoCenterInfoCenter,from
package: DebPkg: kcontrol)hasaninformationpageonthe"USB"cards.

wiki.debian.org/HowToIdentifyADevice/USB

3/6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

discover
The DebPkg: discoverpackagehasanicecommandtoo:

discovervendoridmodelidusb
00000000unknownunknown
00000000unknownunknown
0a5c2110unknownunknown
00000000unknownunknown
00000000unknownunknown
00000000unknownunknown

man (1)discover
discoverusesitsownfiles:/lib/discover/usbbusclass.xml,
/lib/discover/usbdevice.xml,/lib/discover/usbvendor.xml

Diggingbyhand
/proc/bus/usb/devices
Iflsusbisn'tavailable(!),youcandisplaythecontentsof/proc/bus/usb/devicestolist
vendoranddeviceIDsandothertechnicaldetails:

wiki.debian.org/HowToIdentifyADevice/USB

4/6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

#usegreptofilterimportantline.
cat/proc/bus/usb/devices|grepE"^([TSPD]:.*|)$"
T:Bus=05Lev=00Prnt=00Port=00Cnt=00Dev#=1Spd=480MxCh=8
D:Ver=2.00Cls=09(hub)Sub=00Prot=01MxPS=64#Cfgs=1
P:Vendor=0000ProdID=0000Rev=2.06
S:Manufacturer=Linux2.6.184686ehci_hcd
S:Product=EHCIHostController
S:SerialNumber=0000:00:1d.7

T:Bus=04Lev=00Prnt=00Port=00Cnt=00Dev#=1Spd=12MxCh=2
D:Ver=1.10Cls=09(hub)Sub=00Prot=00MxPS=64#Cfgs=1
P:Vendor=0000ProdID=0000Rev=2.06
S:Manufacturer=Linux2.6.184686uhci_hcd
S:Product=UHCIHostController
S:SerialNumber=0000:00:1d.3

T:Bus=04Lev=01Prnt=01Port=00Cnt=01Dev#=7Spd=12MxCh=0
D:Ver=2.00Cls=e0(unk.)Sub=01Prot=01MxPS=64#Cfgs=1
P:Vendor=0a5cProdID=2110Rev=1.00
S:Manufacturer=BroadcomCorp
S:Product=BCM2045B

T:Bus=03Lev=00Prnt=00Port=00Cnt=00Dev#=1Spd=12MxCh=2
D:Ver=1.10Cls=09(hub)Sub=00Prot=00MxPS=64#Cfgs=1
P:Vendor=0000ProdID=0000Rev=2.06
S:Manufacturer=Linux2.6.184686uhci_hcd
S:Product=UHCIHostController
S:SerialNumber=0000:00:1d.2

T:Bus=02Lev=00Prnt=00Port=00Cnt=00Dev#=1Spd=12MxCh=2
D:Ver=1.10Cls=09(hub)Sub=00Prot=00MxPS=64#Cfgs=1
P:Vendor=0000ProdID=0000Rev=2.06
S:Manufacturer=Linux2.6.184686uhci_hcd
S:Product=UHCIHostController
S:SerialNumber=0000:00:1d.1

T:Bus=01Lev=00Prnt=00Port=00Cnt=00Dev#=1Spd=12MxCh=2
D:Ver=1.10Cls=09(hub)Sub=00Prot=00MxPS=64#Cfgs=1
P:Vendor=0000ProdID=0000Rev=2.06
S:Manufacturer=Linux2.6.184686uhci_hcd
S:Product=UHCIHostController

wiki.debian.org/HowToIdentifyADevice/USB

5/6

1/16/13

HowToIdentifyADevice/USB - Debian Wiki

S:SerialNumber=0000:00:1d.0

References
WikiPedia: WikipediaUSB
http://www.linuxusb.org/usb.idsmaintainsalistofdeviceidandvendoridtotext
mappings
/usr/share/doc/linuxdoc2.6.26/Documentation/usb/*kernelUSBdocumentation

wiki.debian.org/HowToIdentifyADevice/USB

6/6

Вам также может понравиться