wie entdecke ich USB-Geraete? z.B. usb://EPSON/Stylus%20C64
wie bekomme ich USB-Geräte mit ihren eindeutigen Gerätenamen heraus? z.B. usb://EPSON/Stylus%20C64 ? Wie / Wo stelle ich ggf die Namen ein? Gruss Ekkard
On Mar 20 23:46 Ekkard Gerlach wrote (shortened):
wie bekomme ich USB-Geräte mit ihren eindeutigen Gerätenamen heraus?
Allgemein: /usr/sbin/lsusb -v
z.B. usb://EPSON/Stylus%20C64 ?
Bei USB Druckern ist besser: http://de.opensuse.org/SDB:CUPS_in_aller_K%C3%BCrze#Die_Backends Gruss, Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
* Johannes Meixner schrieb:
On Mar 20 23:46 Ekkard Gerlach wrote (shortened):
wie bekomme ich USB-Geräte mit ihren eindeutigen Gerätenamen heraus?
Allgemein: /usr/sbin/lsusb -v
kann mir hier jmd behilflich sein, den Namen für das Backend für dem usb->seriell prolific-Adapter zusammenzubasteln? - (BTW: gibt es kein Programm, das das macht?) könnte so heißen (ausgedacht:) usb://serial/prolific%20PL2303 Wie heißt das backend für den prolific? "serial"? lsusb -v [...] Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x067b Prolific Technology, Inc. idProduct 0x2303 PL2303 Serial Port bcdDevice 2.02 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x000a bytes 10 twice bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 bytes 64 once bInterval 0
z.B. usb://EPSON/Stylus%20C64 ?
Bei USB Druckern ist besser: http://de.opensuse.org/SDB:CUPS_in_aller_K%C3%BCrze#Die_Backends das sieht ja gut dokumentiert aus. Leider nur für Drucker.
Gruss Ekkard
aus der linux-usb-users@lists.sourceforge.net - Mailingliste:
How can I detect the dedicated device name of a serial usb adapter? I know to access it with /dev/ttyUSB0, but what if I have two different serial adapters connected? Which one is USB0 and which USB1? Are there somewhere databases where to asign vendor and product ID to an name?
Yes, use udev to do this. Look at the udev documentation and tutorial on how to detect this from the different sysfs files for your devices.
good luck,
greg k-h
ich werde mich demnächst mal drum kümmern. Ekkard
participants (3)
-
Ekkard Gerlach
-
Johannes Meixner
-
Norbert Vohwinkel jun.