Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2023 10:51:35 +0100
From:      Milan Obuch <freebsd-usb@dino.sk>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Which serial driver for the development board?
Message-ID:  <20230324105135.11dc8859@zeta.dino.sk>
In-Reply-To: <c7f59377-fd5f-344f-b292-4689153d1b00@selasky.org>
References:  <20230323130418.5ba9954f@zeta.dino.sk> <88f9b5a4-1e7f-ea9e-e170-888a8713a060@selasky.org> <20230323170028.186d77ed@zeta.dino.sk> <27d8da5f-f2f8-af1d-8300-4d7ccb35744b@selasky.org> <20230323220342.76a6c37a@zeta.dino.sk> <c7f59377-fd5f-344f-b292-4689153d1b00@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Mar 2023 09:43:29 +0100
Hans Petter Selasky <hps@selasky.org> wrote:

> On 3/23/23 22:03, Milan Obuch wrote:
> > # usbconfig -d ugen0.5 dump_all_desc
> > ugen0.5: <vendor 0x1d50 product 0x6141> at usbus0, cfg=255 md=HOST
> > spd=FULL (12Mbps) pwr=ON (100mA)
> > 
> >    bLength = 0x0012
> >    bDescriptorType = 0x0001
> >    bcdUSB = 0x0200
> >    bDeviceClass = 0x0002  <Communication device>
> >    bDeviceSubClass = 0x0000
> >    bDeviceProtocol = 0x0000
> >    bMaxPacketSize0 = 0x0020
> >    idVendor = 0x1d50
> >    idProduct = 0x6141
> >    bcdDevice = 0x0000
> >    iManufacturer = 0x0000  <no string>
> >    iProduct = 0x0000  <no string>
> >    iSerialNumber = 0x0000  <no string>
> >    bNumConfigurations = 0x0001
> > 
> > I think there is some bug in device's firmware, but as MacOS was
> > able to communicate with it out-of-the-box, no configuration
> > necessary on MAC, there should be a way.  
> 
> Hi,
> 
> You may need to run "usbdump" before plugging the device to figure
> out exactly what goes wrong.
> 
> cfg=255 means there is a permanent issue using the USB control
> endpoint data channel. Yes - likely a bug in the firmware that it
> does not handle error conditions properly.
> 
> --HPS
> 

I found how I can produce basic USB dumps yesterday. Just a quick
question - could using '-s <snaplen>' option help produce better dumps?
I need some time to prepare the dumps, using '-w <file>' to save them
for examination, I'd just like to know if there is anything special to
use for dump in addition to '-d 0.5' for device filter.

Regards,
Milan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230324105135.11dc8859>