How to debug a misbehaving usb device (DYMO LabelManager PC)?

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sat Jul 9 20:46:06 UTC 2011


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

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

root at 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 at 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 at 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



More information about the freebsd-usb mailing list