Actions
Bug #5310
opensysmoOCTSIM does not re-enumerate after unplug/replug the USB cable when PSU is connected
Start date:
11/15/2021
Due date:
% Done:
0%
Spec Reference:
Description
While working on https://osmocom.org/issues/5285 I found a problem.
1. I connect the PSU to the sysmoOCTSIM
2. I connect the USB to the computer
The reader is enumerated fine.
The kernel says:
[ 935.618635] usb 1-6: new full-speed USB device number 47 using xhci_hcd [ 935.768201] usb 1-6: New USB device found, idVendor=1d50, idProduct=6141, bcdDevice= 0.00 [ 935.768203] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=7 [ 935.768204] usb 1-6: Product: sysmoOCTSIM 0.2.67-30c2 [ 935.768205] usb 1-6: Manufacturer: sysmocom - s.f.m.c. GmbH [ 935.768206] usb 1-6: SerialNumber: df4be7f03335355320202034433b15ff [ 935.770574] cdc_acm 1-6:1.1: ttyACM0: USB ACM device
3. I unplug the USB cable
The kernel says:
[ 972.124864] usb 1-6: USB disconnect, device number 47
4. I re-plug the USB cable
The reader is NOT enumerated. I can't see it using lsusb(1) command for example.
The kernel says:
[ 980.394506] usb 1-6: new full-speed USB device number 48 using xhci_hcd [ 980.522700] usb 1-6: device descriptor read/64, error -71 [ 980.758545] usb 1-6: device descriptor read/64, error -71 [ 980.994493] usb 1-6: new full-speed USB device number 49 using xhci_hcd [ 981.122509] usb 1-6: device descriptor read/64, error -71 [ 981.362514] usb 1-6: device descriptor read/64, error -71 [ 981.470571] usb usb1-port6: attempt power cycle [ 981.882450] usb 1-6: new full-speed USB device number 50 using xhci_hcd [ 981.882654] usb 1-6: Device not responding to setup address. [ 982.090774] usb 1-6: Device not responding to setup address. [ 982.298479] usb 1-6: device not accepting address 50, error -71 [ 982.426545] usb 1-6: new full-speed USB device number 51 using xhci_hcd [ 982.426681] usb 1-6: Device not responding to setup address. [ 982.634593] usb 1-6: Device not responding to setup address. [ 982.842482] usb 1-6: device not accepting address 51, error -71 [ 982.842584] usb usb1-port6: unable to enumerate USB device
Unplug/replug when the PSU is NOT used works fine. But that is not surprising since the reader gets a complete power cycle.
But when the PSU IS connected the reader is not reset-ed correctly or at all on USB unplug/replug.
Updated by roh 2 months ago
i think this is even 2 bugs:
- 1: (this) is - it not reenumbering correctly when the external power is provided. - this one is present in versions after 0.2.61-2a78 and before or including 0.2.67-30c2.
- 2: (maybe a bug) - it is not reenumbering at all when external power is plugged after the device is powered by usb. - this one seems to be present in all versions i tried so far.
Actions