usb设备信息
$ sudo lsusb -v -d 051d:0002
Bus 003 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x051d American Power Conversion
idProduct 0x0002 Uninterruptible Power Supply
bcdDevice 1.06
iManufacturer 1 American Power Conversion
iProduct 2 Back-UPS BK650M2-CH FW:29***3G -29***4G
iSerial 3 9B2******845
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 745
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0006 1x 6 bytes
bInterval 10
Device Status: 0x0002
(Bus Powered)
Remote Wakeup Enabled
nut配置文件信息:
$ sudo cat /etc/nut/ups.conf
#省略了一大段注释
maxretry = 3
[1248261]
driver = "usbhid-ups"
port = "auto"
vendorid = "051D"
vendor = "American Power Conversion"
productid = "0002"
product = "Back-UPS BK650M2-CH FW:01****45-29***4G"
serial = "9B2******845"
bus = "003"
override.x.additional.devicetype = "USB"
nut-server运行信息:
$ sudo systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-12-05 09:38:00 CST; 2h 33min ago
Main PID: 7536 (upsd)
Tasks: 1 (limit: 37974)
Memory: 904.0K
CPU: 892ms
CGroup: /system.slice/nut-server.service
**─7536 /lib/nut/upsd -F
Dec 05 11:48:08 N150 nut-server[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 11:48:08 N150 upsd[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 11:53:09 N150 nut-server[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 11:53:09 N150 upsd[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 11:58:09 N150 nut-server[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 11:58:09 N150 upsd[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 12:03:10 N150 nut-server[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 12:03:10 N150 upsd[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 12:08:10 N150 nut-server[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory
Dec 05 12:08:10 N150 upsd[7536]: Can't connect to UPS [1248261] (usbhid-ups-1248261): No such file or directory