Date: Wed, 6 Jan 2010 09:36:58 -0200 From: Renato Botelho <rbgarga@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-current@freebsd.org, Andrew Thompson <thompsa@freebsd.org> Subject: Re: USB stop to identify sun keyboard Message-ID: <747dc8f31001060336j51d6c350x4abda99d18ec3423@mail.gmail.com> In-Reply-To: <201001061216.12121.hselasky@c2i.net> References: <747dc8f31001051046v3fd62732j85b3df10e7db4d8d@mail.gmail.com> <20100105202205.GA29437@citylink.fud.org.nz> <747dc8f31001060217j4cf3156ehcc481c49194bdc9b@mail.gmail.com> <201001061216.12121.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 6, 2010 at 9:16 AM, Hans Petter Selasky <hselasky@c2i.net> wrote: > That is because these devices provide a device string, while your SUN keyboard > does not. See: > > usbconfig -u X -a Y dump_device_desc dump_curr_config_desc > > Look for fields starting with iXXXX . There is an iProduct string there: ugen0.4: <product 0x00a2 vendor 0x0430> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0430 idProduct = 0x00a2 bcdDevice = 0x0104 iManufacturer = 0x0000 <no string> iProduct = 0x0001 <Sun USB Keyboard> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 <no string> bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 <no string> Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, 0x40, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 <IN> bmAttributes = 0x0003 <INTERRUPT> wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 -- Renato Botelho
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f31001060336j51d6c350x4abda99d18ec3423>