Re: USB stop to identify sun keyboard

From: Renato Botelho <rbgarga_at_gmail.com>
Date: Wed, 6 Jan 2010 09:36:58 -0200
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:

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
Received on Wed Jan 06 2010 - 10:37:25 UTC

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