Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2016 07:26:18 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Mark Johnston <markjdb@gmail.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: CP2102 UART adapter not attaching
Message-ID:  <alpine.BSF.2.20.1601150717300.37923@wonkity.com>
In-Reply-To: <20160110040732.GA2606@raichu>
References:  <20160110040732.GA2606@raichu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 9 Jan 2016, Mark Johnston wrote:

> I have the module listed here:
> http://www.amazon.com/KEDSUM%C2%AE-CP2102-Module-Download-Converter/dp/B009T2ZR6W
>
> Under Windows 8 it works perfectly, but on FreeBSD-CURRENT I get:
>
> usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored)
> usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
> usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
> usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
> usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
> usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
> usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
> usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
> usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
> usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
> ugen1.3: <Unknown> at usbus1 (disconnected)
> uhub_reattach_port: could not allocate new device
>
> It looks like this device should be handled by uslcom(4), but it looks
> like we can't even get the device descriptor. How can I go about
> debugging this?

As a data point, a CP2102 is built into the NodeMCU microcontroller 
board.  That implementation works with my FreeBSD 10.2-STABLE system:

On attach:

   devd: Executing 'kldload -n uslcom'
   kernel: uslcom0: <CP2102 USB to UART Bridge Controller> on usbus0

On detach:

   kernel: ugen0.4: <Silicon Labs> at usbus0 (disconnected)
   kernel: uslcom0: at uhub5, port 2, addr 3 (disconnected)



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