[chirp_users] chirp connecting to UV-5R from Ubuntu 16.04 on Lenovo Carbon X1

Aubrey Turner
Mon Feb 17 18:25:03 PST 2020


Error 71 is EPROTO. According to the Linux USB info I found, this usually indicates some sort of hardware problem with the device.

https://www.kernel.org/doc/html/latest/driver-api/usb/error-codes.html

As per the footnote for -71:

Error codes like -EPROTO, -EILSEQ and -EOVERFLOW normally indicate hardware problems such as bad devices (including firmware) or cables.

It’s interesting to note that the error happens when transmission is attempted.

So it’s suggesting a hardware issue, but there is the potential for it to be an issue with the underlying USB controller drivers. 

> On Feb 17, 2020, at 7:51 PM, Kheong Sann CHAN <kheongsann at gmail.com> wrote:
> 
> 
> Aubrey: Thanks for your response. We have some other software on the laptop that works with 16.04 but seemed to become unstable with Ubuntu 18.04, so I stuck with 16.04. I will try it later with 20.04 when it comes out.
> 
> Glenn: Thanks too for your suggestion. Is there any web-page that gives instructions on how to trim the cable properly? 
> 
> So my current tests have led me to this point:
> 1) On a fresh reboot of the computer, I plug in the cable. dmesg records:
> [  236.666847] usb 1-2: new full-speed USB device number 6 using xhci_hcd
> [  236.815784] usb 1-2: New USB device found, idVendor=067b, idProduct=2303
> [  236.815792] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> [  236.815796] usb 1-2: Product: USB-Serial Controller
> [  236.815800] usb 1-2: Manufacturer: Prolific Technology Inc.
> [  238.404233] usbcore: registered new interface driver usbserial_generic
> [  238.404281] usbserial: USB Serial support registered for generic
> [  238.411330] usbcore: registered new interface driver pl2303
> [  238.411658] usbserial: USB Serial support registered for pl2303
> [  238.412585] pl2303 1-2:1.0: pl2303 converter detected
> [  238.414588] usb 1-2: pl2303 converter now attached to ttyUSB0
> 
> and we have
> $ la /dev/ttyU*
> crw-rw---- 1 root dialout 188, 0 Feb 18 09:32 /dev/ttyUSB0
> 
> 2) I start chirpw and select Download from Radio which fails with 
> [Errno 16] could not open port /dev/ttyUSB0: 
> [Errno 16] Device or resource busy: '/dev/ttyUSB0'
> dmesg now shows:
> [  308.507632] usb 1-2: reset full-speed USB device number 6 using xhci_hcd
> [  308.635386] usb 1-2: device descriptor read/64, error -71
> [  308.871081] usb 1-2: device descriptor read/64, error -71
> [  309.107291] usb 1-2: reset full-speed USB device number 6 using xhci_hcd
> [  309.235327] usb 1-2: device descriptor read/64, error -71
> [  309.471350] usb 1-2: device descriptor read/64, error -71
> [  309.707373] usb 1-2: reset full-speed USB device number 6 using xhci_hcd
> [  309.707623] usb 1-2: Device not responding to setup address.
> [  309.915475] usb 1-2: Device not responding to setup address.
> [  310.123045] usb 1-2: device not accepting address 6, error -71
> [  310.251215] usb 1-2: reset full-speed USB device number 6 using xhci_hcd
> [  310.251475] usb 1-2: Device not responding to setup address.
> [  310.459467] usb 1-2: Device not responding to setup address.
> [  310.667256] usb 1-2: device not accepting address 6, error -71
> [  310.667475] usb 1-2: USB disconnect, device number 6
> [  310.668036] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
> [  310.668175] pl2303 1-2:1.0: device disconnected
> [  310.795035] usb 1-2: new full-speed USB device number 7 using xhci_hcd
> [  310.923062] usb 1-2: device descriptor read/64, error -71
> [  311.159198] usb 1-2: device descriptor read/64, error -71
> [  311.395184] usb 1-2: new full-speed USB device number 8 using xhci_hcd
> [  311.523271] usb 1-2: device descriptor read/64, error -71
> [  311.762954] usb 1-2: device descriptor read/64, error -71
> [  311.871262] usb usb1-port2: attempt power cycle
> [  312.523242] usb 1-2: new full-speed USB device number 9 using xhci_hcd
> [  312.523471] usb 1-2: Device not responding to setup address.
> [  312.731488] usb 1-2: Device not responding to setup address.
> [  312.939107] usb 1-2: device not accepting address 9, error -71
> [  313.067232] usb 1-2: new full-speed USB device number 10 using xhci_hcd
> [  313.067438] usb 1-2: Device not responding to setup address.
> [  313.275458] usb 1-2: Device not responding to setup address.
> [  313.483203] usb 1-2: device not accepting address 10, error -71
> [  313.483329] usb usb1-port2: unable to enumerate USB device
> 
> and /dev/ttyUSB0 has disappeared:
> 
> $ la /dev/ttyU*
> ls: cannot access '/dev/ttyU*': No such file or directory
> 
> As an experiment I tried the exact same thing, but only plugging the USB cable into the computer, NOT the radio. This time, on selecting "Download from Radio", chirpw opens the Cloning.... dialog box for a couple of seconds, then reports: Radio did not respond. Furthermore, /dev/ttyUSB0 does not disappear in this situation.
> 
> BTW, the firmware on my radio is BFB297. Does that have any bearing on what I'm doing?
> 
> Thanks
> 
> Kheong.
> 
> 
> 
>> On Mon, Feb 17, 2020 at 11:42 PM Aubrey Turner <aubrey.c.turner at gmail.com> wrote:
>> Just out of curiosity, why did you choose to run such an old distribution (16.04) of Ubuntu on a relatively new laptop?
>> 
>> I just happened to receive a marketing email from Lenovo this morning (I've bought a few PCs from them in the past) that included the Carbon X1 Gen 7 and I looked it up.  It has USB 3.1 ports (2x Gen 2 Type-C with Thunderbolt and 2x Gen 1).  I'd think that you'd need the latest possible version of Ubuntu (and the Linux kernel) to support this laptop.  
>> 
>> Looking at the Ubuntu certification page for the Carbon X1, it shows as having been tested with Ubuntu 18.04 LTS 64-bit.
>> 
>> Your symptoms (device appears, disappears, works sometimes but not others) could be due to instability in the underlying kernel support for the motherboard and/or USB controllers.
>> 
>> Another issue to investigate is the use of USB 3.1 ports.  In the past there have been issues with USB 3 ports causing RF interference with devices that are connected.  This mostly manifests with wireless keyboards and mice, but it wouldn't surprise me if it was an issue here.  The common fix is to use a USB extension cable to move the USB device away from the port.
>> 
>> 
>> 
>> On 2/17/20 7:39 AM, Kheong Sann CHAN wrote:
>>> I had connected the cable, tried to access it from chirpw causing it to disconnect a few times, by the time I did dmesg. I removed out the multiple connect/disconnect lines from dmesg output because the information was mostly duplicate.
>>> 
>>> On Mon, Feb 17, 2020 at 7:24 PM Tom Henderson <Tom at henderson4.us> wrote:
>>>> Just double checking here. The log messages below show the cable connecting, and then disconnecting. Had you disconnected the cable again before running dmesg, or did the cable fail?
>>>> 
>>>> Tom Henderson
>>>>> On 2/16/20 11:56 PM, Kheong Sann CHAN wrote:
>>>>> The tty port is found when I plug it in:
>>>>> $ dmesg | grep tty
>>>>> [ 7527.188154] usb 1-2: pl2303 converter now attached to ttyUSB0
>>>>> [ 7548.490452] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
>>>>> 
>>>> _______________________________________________
>>>> chirp_users mailing list
>>>> chirp_users at intrepid.danplanet.com
>>>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users
>>>> This message was sent to kheong sann at kheongsann at gmail.com
>>>> To unsubscribe, send an email to chirp_users-unsubscribe at intrepid.danplanet.com
>>> 
>>> 
>>> _______________________________________________
>>> chirp_users mailing list
>>> chirp_users at intrepid.danplanet.com
>>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users
>>> This message was sent to Aubrey Turner at aubrey.c.turner at gmail.com
>>> To unsubscribe, send an email to chirp_users-unsubscribe at intrepid.danplanet.com
>> _______________________________________________
>> chirp_users mailing list
>> chirp_users at intrepid.danplanet.com
>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users
>> This message was sent to kheong sann at kheongsann at gmail.com
>> To unsubscribe, send an email to chirp_users-unsubscribe at intrepid.danplanet.com
> _______________________________________________
> chirp_users mailing list
> chirp_users at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_users
> This message was sent to Aubrey Turner at aubrey.c.turner at gmail.com
> To unsubscribe, send an email to chirp_users-unsubscribe at intrepid.danplanet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_users/attachments/20200217/77b2ea1e/attachment.html 


More information about the chirp_users mailing list