Re: [Apcupsd-users] Continual stream of battattach, battdetach, changeme and powerout events from B
Brought to you by:
adk0212
|
From: Sarunas B. <sa...@ma...> - 2024-02-22 20:03:00
|
On 2024-02-21 18:28, Andy Smith wrote: > [...] > As for DEVICE, plugging in the USB cable doesn't result in the > creation of a ttyUSB* so I think I always need to leave that blank. > > When I plug it in, these are the logs: > > 2024-02-21T04:17:48.656215+00:00 specialbrew kernel: [1172892.452906] usb 4-5: new low-speed USB device number 13 using ohci-pci > 2024-02-21T04:17:48.860353+00:00 specialbrew kernel: [1172892.659935] usb 4-5: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 0.01 > 2024-02-21T04:17:48.860405+00:00 specialbrew kernel: [1172892.659945] usb 4-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > 2024-02-21T04:17:48.860411+00:00 specialbrew kernel: [1172892.659949] usb 4-5: Product: Back-UPS BX1600MI > 2024-02-21T04:17:48.860418+00:00 specialbrew kernel: [1172892.659953] usb 4-5: Manufacturer: American Power Conversion > 2024-02-21T04:17:48.860422+00:00 specialbrew kernel: [1172892.659956] usb 4-5: SerialNumber: 9B2339A15993 > 2024-02-21T04:17:48.904082+00:00 specialbrew kernel: [1172892.700945] hid-generic 0003:051D:0002.000C: hiddev0,hidraw0: USB HID v1.10 Device [American Power Conversion Back-UPS BX1600MI] on usb-0000:00:12.0-5/input0 > >> (If there is a way to get a better model ID without crawling >> behind server racks to peek at the back of the unit, please let me >> know). > > As above for USB models it may be in the kernel logs when a USB > cable is inserted. You can remotely trigger the equivalent of an > unplug and replug with something like: > > # echo 0 > /sys/bus/usb/devices/4-5/authorized > # echo 1 > /sys/bus/usb/devices/4-5/authorized Kernel messages and `lsusb -v` just give the same name for [i]Product as is reported for MODEL by `apcaccess`... Newer models are all -SMT and they required going into UPS control panel and enabling Modbus. Now I seem to recall that the newest 3000VA models, when connected via USB, may have flip-flopped in a similar or the same way that you describe. We had to get the proper APC/Schneider accessory serial cables to make them work with apscupsd. -- Sarunas Burdulis Dartmouth Mathematics https://math.dartmouth.edu/~sarunas · https://useplaintext.email · |