Skip to content

USB port not recognizing Armac UPS #5005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
solmoller opened this issue Apr 24, 2022 · 1 comment
Open

USB port not recognizing Armac UPS #5005

solmoller opened this issue Apr 24, 2022 · 1 comment

Comments

@solmoller
Copy link

solmoller commented Apr 24, 2022

Describe the bug

I have a Armac UPS connected to a Rpi 4, it does not show up with lsusb neither on my 4 GB or 2 GB version. The same SD card in a Pi 2B 1 gb revision a01041 works perfectly and discovers the UPS

Strangely adding a cheapo USB hub fixes the problem

Without the USB hub

pi@raspberrypi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

With the USB hub

pi@raspberrypi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0925:1234 Lakeview Research 
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Lakeview is the UPS, Genesys is the USB hub

DMESG on working system

[    1.394212] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.398817] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.398837] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.399637] hub 1-0:1.0: USB hub found
[    1.400434] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.400459] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.400979] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    1.400998] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.401752] hub 2-0:1.0: USB hub found
[    1.415772] usbhid: USB HID core driver
[    1.694880] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.897584] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.897609] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.897627] usb 1-1: Product: USB2.0 Hub
[    1.899569] hub 1-1:1.0: USB hub found
[    2.234906] usb 1-1.4: new high-speed USB device number 3 using xhci_hcd
[    2.396640] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    2.396662] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.396683] usb 1-1.4: Product: USB2.0 Hub
[    2.400094] hub 1-1.4:1.0: USB hub found
[    2.714905] usb 1-1.4.2: new low-speed USB device number 4 using xhci_hcd
[    2.863339] usb 1-1.4.2: New USB device found, idVendor=0925, idProduct=1234, bcdDevice= 0.01
[    2.863362] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.863380] usb 1-1.4.2: Product: UPS USB MON V1.4
[    2.873944] hid-generic 0003:0925:1234.0001: hiddev96,hidraw0: USB HID v1.00 Device [Љ UPS USB MON V1.4] on usb-0000:01:00.0-1.4.2/input0
[  113.502364] usb 1-1.4: USB disconnect, device number 3
[  113.502393] usb 1-1.4.2: USB disconnect, device number 4
[  306.536933] usb 1-1.4: new high-speed USB device number 5 using xhci_hcd
[  306.668582] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[  306.668606] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  306.668624] usb 1-1.4: Product: USB2.0 Hub
[  306.670515] hub 1-1.4:1.0: USB hub found
[  308.036949] usb 1-1.4.2: new low-speed USB device number 6 using xhci_hcd
[  308.174714] usb 1-1.4.2: New USB device found, idVendor=0925, idProduct=1234, bcdDevice= 0.01
[  308.174737] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  308.174755] usb 1-1.4.2: Product: UPS USB MON V1.4
[  308.185157] hid-generic 0003:0925:1234.0002: hiddev96,hidraw0: USB HID v1.00 Device [Љ UPS USB MON V1.4] on usb-0000:01:00.0-1.4.2/input0

I've tried
boot.config, over_voltage=1, options 8192cu rtw_power_mgnt=0, power supplies and lots of other experiments, including investing in a 3€ 480 mbps USB 2 cable.

Some times I've seen this in DMESG: unable to enumerate USB device
sometimes it's been paired with device descriptor read/64, error -71
sudo sh -c "echo 1 > /sys/bus/pci/devices/0000:00:00.0/remove" sudo sh -c "echo 1 > /sys/bus/pci/rescan"

on a faulty setup gives me this in DMESG:

[  306.668582] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[  306.668606] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  306.668624] usb 1-1.4: Product: USB2.0 Hub
[  306.670515] hub 1-1.4:1.0: USB hub found
[  306.670887] hub 1-1.4:1.0: 4 ports detected
[  308.036949] usb 1-1.4.2: new low-speed USB device number 6 using xhci_hcd
[  308.174714] usb 1-1.4.2: New USB device found, idVendor=0925, idProduct=1234, bcdDevice= 0.01
[  308.174737] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  308.174755] usb 1-1.4.2: Product: UPS USB MON V1.4
[  308.174772] usb 1-1.4.2: Manufacturer: Љ
[  308.185157] hid-generic 0003:0925:1234.0002: hiddev96,hidraw0: USB HID v1.00 Device [Љ UPS USB MON V1.4] on usb-0000:01:00.0-1.4.2/input0
[  785.523875] usb 1-1.4: USB disconnect, device number 5
[  785.523904] usb 1-1.4.2: USB disconnect, device number 6
[ 1100.834139] xhci_hcd 0000:01:00.0: remove, state 4
[ 1100.834171] usb usb2: USB disconnect, device number 1
[ 1100.835553] xhci_hcd 0000:01:00.0: USB bus 2 deregistered
[ 1100.835643] xhci_hcd 0000:01:00.0: remove, state 4
[ 1100.835672] usb usb1: USB disconnect, device number 1
[ 1100.835690] usb 1-1: USB disconnect, device number 2
[ 1100.839833] xhci_hcd 0000:01:00.0: USB bus 1 deregistered
[ 1100.840648] pci_bus 0000:01: busn_res: [bus 01] is released
[ 1106.367800] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1106.368066] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1106.375193] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1106.375339] pci 0000:01:00.0: reg 0x10: [mem 0x600000000-0x600000fff 64bit]
[ 1106.375868] pci 0000:01:00.0: PME# supported from D0 D3cold
[ 1106.379484] PCI: bus1: Fast back to back transfers disabled
[ 1106.379558] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1106.379585] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1106.379670] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1106.379696] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[ 1106.380379] pcieport 0000:00:00.0: PME: Signaling with IRQ 63
[ 1106.419010] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1106.419060] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1106.422396] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000060000000890
[ 1106.423738] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 1106.423758] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1106.423776] usb usb1: Product: xHCI Host Controller
[ 1106.423793] usb usb1: Manufacturer: Linux 5.10.103-v7l+ xhci-hcd
[ 1106.423810] usb usb1: SerialNumber: 0000:01:00.0
[ 1106.425378] hub 1-0:1.0: USB hub found
[ 1106.425500] hub 1-0:1.0: 1 port detected
[ 1106.426303] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1106.426334] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1106.426363] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1106.426999] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[ 1106.427019] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1106.427037] usb usb2: Product: xHCI Host Controller
[ 1106.427055] usb usb2: Manufacturer: Linux 5.10.103-v7l+ xhci-hcd
[ 1106.427072] usb usb2: SerialNumber: 0000:01:00.0
[ 1106.427931] hub 2-0:1.0: USB hub found
[ 1106.428025] hub 2-0:1.0: 4 ports detected
[ 1106.714059] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1106.864266] usb 1-1: device descriptor read/64, error -71
[ 1107.134263] usb 1-1: device descriptor read/64, error -71
[ 1107.404121] usb 1-1: new high-speed USB device number 3 using xhci_hcd
[ 1107.554378] usb 1-1: device descriptor read/64, error -71
[ 1107.824380] usb 1-1: device descriptor read/64, error -71
[ 1107.944757] usb usb1-port1: attempt power cycle
[ 1108.414136] usb 1-1: new high-speed USB device number 4 using xhci_hcd
[ 1109.022085] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 1.

The system is fully upgraded and updated as of today:

Linux version 5.10.103-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1529 SMP Tue Mar 8 12:24:00 GMT 2022
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Steps to reproduce the behaviour

Add Armac UPS to system, do lsusb

add USB hub inbetween, do lsusb

Device (s)

Raspberry Pi 4 Mod. B

System

Raspberry Pi reference 2020-02-13
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 5f884374b6ac6e155330c58caa1fb7249b8badf1, stage4

Dec 1 2021 15:01:54
Copyright (c) 2012 Broadcom
version 71bd3109023a0c8575585ba87cbb374d2eeb038f (clean) (release) (start

Linux raspberrypi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

Logs

See above

Additional context

No response

@ReneElizondo
Copy link

Have you tried the recommended workaround suggested on #5046?

If you do, can you post your results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants