Re: USB stop to identify sun keyboard

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Wed, 6 Jan 2010 12:55:56 -0200
On Wed, Jan 6, 2010 at 10:58 AM, Hans Petter Selasky <hselasky_at_c2i.net> wrote:
> On Wednesday 06 January 2010 12:36:58 Renato Botelho wrote:
>> On Wed, Jan 6, 2010 at 9:16 AM, Hans Petter Selasky <hselasky_at_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:
>
> Yes. Could you dump the language table aswell:
>
> usbconfig -u X -a Y do_request 0x80 0x06 0x0300 0 0x100

And here is the data for Hub that this keyboard have:

root_at_botelhor:/home/garga# usbconfig -u 0 -a 2 dump_device_desc
dump_curr_config_desc
ugen0.2: <product 0x100e vendor 0x0430> at usbus0, cfg=0 md=HOST
spd=FULL (12Mbps) pwr=SAVE

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0009
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0008
  idVendor = 0x0430
  idProduct = 0x100e
  bcdDevice = 0x0104
  iManufacturer = 0x0000  <no string>
  iProduct = 0x0000  <no string>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001


 Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x0019
    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 = 0x0009
      bInterfaceSubClass = 0x0000
      bInterfaceProtocol = 0x0000
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0001
        bInterval = 0x00ff
        bRefresh = 0x0000
        bSynchAddress = 0x0000

root_at_botelhor:/home/garga# usbconfig -u 0 -a 2 do_request 0x80 0x06
0x0300 0 0x100
REQUEST = <0x04 0x03 0x09 0x04><>

-- 
Renato Botelho
Received on Wed Jan 06 2010 - 13:56:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC