You are not logged in.
Pages: 1
Just added two new CyberPower UPS units to my rack (replacing old ones). The new units are detected but the linux kernel is unable to read the serial number correctly, it shows up as a 2. Here is the journalctl output after plugging them in via usb
Jan 07 19:38:45 ds9 kernel: usb 1-2: new full-speed USB device number 3 using xhci_hcd
Jan 07 19:38:45 ds9 kernel: usb 1-2: New USB device found, idVendor=0764, idProduct=0601, bcdDevice= 2.00
Jan 07 19:38:45 ds9 kernel: usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2 <-- *****
Jan 07 19:38:45 ds9 kernel: usb 1-2: Product: OR2200PFCRT2U
Jan 07 19:38:45 ds9 kernel: usb 1-2: Manufacturer: CPS
Jan 07 19:38:45 ds9 kernel: hid-generic 0003:0764:0601.000C: hiddev98,hidraw5: USB HID v1.10 Device [CPS OR2200PFCRT2U] on usb-0000:05:00.1-2/input0
Jan 07 19:44:26 ds9 kernel: usb 1-1: new full-speed USB device number 4 using xhci_hcd
Jan 07 19:44:26 ds9 kernel: usb 1-1: New USB device found, idVendor=0764, idProduct=0601, bcdDevice= 2.00
Jan 07 19:44:26 ds9 kernel: usb 1-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2 <-- *****
Jan 07 19:44:26 ds9 kernel: usb 1-1: Product: OR2200PFCRT2U
Jan 07 19:44:26 ds9 kernel: usb 1-1: Manufacturer: CPS
Jan 07 19:44:27 ds9 kernel: hid-generic 0003:0764:0601.000D: hiddev99,hidraw6: USB HID v1.10 Device [CPS OR2200PFCRT2U] on usb-0000:05:00.1-1/input0I am not able to distinguish which between the two. The older UPS' show the serialNumber.
Jan 07 19:26:43 ds9 kernel: usb 1-6: new full-speed USB device number 2 using xhci_hcd
Jan 07 19:26:43 ds9 kernel: usb 1-6: New USB device found, idVendor=0764, idProduct=0601, bcdDevice= 2.00
Jan 07 19:26:43 ds9 kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
Jan 07 19:26:43 ds9 kernel: usb 1-6: Product: PR1500LCD
Jan 07 19:26:43 ds9 kernel: usb 1-6: Manufacturer: CPS
Jan 07 19:26:43 ds9 kernel: usb 1-6: SerialNumber: PQ8CZ2000148 <-- *****
Jan 07 19:26:43 ds9 kernel: hid-generic 0003:0764:0601.000B: hiddev96,hidraw3: USB HID v1.10 Device [CPS PR1500LCD] on usb-0000:05:00.1-6/input0Has anyone else run into problems likes this before? Anyone have any ideas?
I have updated my system to the latest (used pacman -Syu).
Output of uname -a
Linux ds9 6.1.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 04 Jan 2023 16:28:15 +0000 x86_64 GNU/LinuxOffline
It's possible the device doesn't have a serial number programmed into it. Or the serial number needs to be retrieved in a non-standard way. Your old devices had the serial number stored in a standard USB attribute, so the driver didn't need to do anything special to obtain it.
It's not ideal, but you can distinguish them based on the USB port: "usb 1-2" and "usb 1-1". Those numbers should be the same every time, I think.
Driver for every Realtek wifi 6 and 7 USB adapter: https://github.com/morrownr/rtw89
Offline
Thanks for this, I did not think of that. I do know they have serial numbers as they show up when I use my windows laptop and the cyberpower software. As you stated, maybe something that is non-standard. That being said,I want to uniquely identify them using udev rules and create a /dev/ups1 and /dev/ups2 (easier for me to read/remember). I will do more research to see if that is possible.
Offline
Any identifying fields in
udevadm info --query=all /dev/bus/usb/*for the devices?
Online
There is nothing uniquely identifying between the two UPS' using udevadm command (outside of which port it is plugged into):
UPS1
P: /devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:05:00.1/usb1/1-2
M: 1-2
R: 2
U: usb
T: usb_device
D: c 189:2
N: bus/usb/001/003
L: 0
V: usb
E: DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:05:00.1/usb1/1-2
E: DEVNAME=/dev/bus/usb/001/003
E: DEVTYPE=usb_device
E: DRIVER=usb
E: PRODUCT=764/601/200
E: TYPE=0/0/0
E: BUSNUM=001
E: DEVNUM=003
E: MAJOR=189
E: MINOR=2
E: SUBSYSTEM=usb
E: USEC_INITIALIZED=15998661343
E: ID_BUS=usb
E: ID_MODEL=OR2200PFCRT2U
E: ID_MODEL_ENC=OR2200PFCRT2U
E: ID_MODEL_ID=0601
E: ID_SERIAL=CPS_OR2200PFCRT2U
E: ID_VENDOR=CPS
E: ID_VENDOR_ENC=CPS
E: ID_VENDOR_ID=0764
E: ID_REVISION=0200
E: ID_USB_MODEL=OR2200PFCRT2U
E: ID_USB_MODEL_ENC=OR2200PFCRT2U
E: ID_USB_MODEL_ID=0601
E: ID_USB_SERIAL=CPS_OR2200PFCRT2U
E: ID_USB_VENDOR=CPS
E: ID_USB_VENDOR_ENC=CPS
E: ID_USB_VENDOR_ID=0764
E: ID_USB_REVISION=0200
E: ID_USB_INTERFACES=:030000:
E: ID_VENDOR_FROM_DATABASE=Cyber Power System, Inc.
E: ID_MODEL_FROM_DATABASE=PR1500LCDRT2U UPS
E: ID_PATH=pci-0000:05:00.1-usb-0:2
E: ID_PATH_TAG=pci-0000_05_00_1-usb-0_2
E: ID_FOR_SEAT=usb-pci-0000_05_00_1-usb-0_2
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:UPS 2
P: /devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:05:00.1/usb1/1-1
M: 1-1
R: 1
U: usb
T: usb_device
D: c 189:3
N: bus/usb/001/004
L: 0
V: usb
E: DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:05:00.1/usb1/1-1
E: DEVNAME=/dev/bus/usb/001/004
E: DEVTYPE=usb_device
E: DRIVER=usb
E: PRODUCT=764/601/200
E: TYPE=0/0/0
E: BUSNUM=001
E: DEVNUM=004
E: MAJOR=189
E: MINOR=3
E: SUBSYSTEM=usb
E: USEC_INITIALIZED=16340149602
E: ID_BUS=usb
E: ID_MODEL=OR2200PFCRT2U
E: ID_MODEL_ENC=OR2200PFCRT2U
E: ID_MODEL_ID=0601
E: ID_SERIAL=CPS_OR2200PFCRT2U
E: ID_VENDOR=CPS
E: ID_VENDOR_ENC=CPS
E: ID_VENDOR_ID=0764
E: ID_REVISION=0200
E: ID_USB_MODEL=OR2200PFCRT2U
E: ID_USB_MODEL_ENC=OR2200PFCRT2U
E: ID_USB_MODEL_ID=0601
E: ID_USB_SERIAL=CPS_OR2200PFCRT2U
E: ID_USB_VENDOR=CPS
E: ID_USB_VENDOR_ENC=CPS
E: ID_USB_VENDOR_ID=0764
E: ID_USB_REVISION=0200
E: ID_USB_INTERFACES=:030000:
E: ID_VENDOR_FROM_DATABASE=Cyber Power System, Inc.
E: ID_MODEL_FROM_DATABASE=PR1500LCDRT2U UPS
E: ID_PATH=pci-0000:05:00.1-usb-0:1
E: ID_PATH_TAG=pci-0000_05_00_1-usb-0_1
E: ID_FOR_SEAT=usb-pci-0000_05_00_1-usb-0_1
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:Offline
Pages: 1