Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jul 2011 22:46:05 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: How to debug a misbehaving usb device (DYMO LabelManager PC)?
Message-ID:  <20110709224605.702e61b4.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <201107092238.04303.hselasky@c2i.net>
References:  <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> <201107092229.22653.hselasky@c2i.net> <20110709223653.3fda9a73.torfinn.ingolfsen@broadpark.no> <201107092238.04303.hselasky@c2i.net>

index | next in thread | previous in thread | raw e-mail

On Sat, 09 Jul 2011 22:38:04 +0200
Hans Petter Selasky <hselasky@c2i.net> wrote:

> 
> What does the device descriptor say about the number of configurations?

root@kg-v7# usbconfig -d 0.3 dump_device_desc
ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW (1.5Mbps) pwr=ON

  bLength = 0x0003 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0209 
  bDeviceClass = 0x0021 
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0001 
  bMaxPacketSize0 = 0x0001 
  idVendor = 0xc000 
  idProduct = 0x0901 
  bcdDevice = 0x0004 
  iManufacturer = 0x0000  <no string>
  iProduct = 0x0002  <retrieving string failed>
  iSerialNumber = 0x0003  <0>
  bNumConfigurations = 0x0001 
 
> If there are any configurations, could you dump them?

root@kg-v7# usbconfig -d 0.3 dump_curr_config_desc
ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW (1.5Mbps) pwr=ON
root@kg-v7# usbconfig -d 0.3 dump_all_config_desc
ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW (1.5Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0021 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00c0 
    bMaxPower = 0x0001 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x0007 
      bInterfaceSubClass = 0x0001 
      bInterfaceProtocol = 0x0002 
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0008 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0008 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0002  <OUT>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008 
        bInterval = 0x0004 
        bRefresh = 0x00ff 
        bSynchAddress = 0x0000 

HTH
-- 
Torfinn



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110709224605.702e61b4.torfinn.ingolfsen>