Solved apcupsd vs merlin 384.13_10 on RT-AC3200: COMMLOST

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

itibi

Occasional Visitor
Hi! networkers,

I want to re-use my old UPS (APC Back-UPS 750G which was monitored correctly by my workstation Ubuntu 20.04.2 usb port)

So, I installed apcupsd from Entware on my ASUS RT-AC3200 router running merlin 384.13_10

Then I configure my /opt/etc/apcupsd/apcupsd.conf as following:
UPSNAME RTAC3200
UPSCABLE usb
UPSTYPE usb
DEVICE (blank)

When connecting the usb cable to my router's USB 2.0 port, dmesg indicates:
usb 3-2: new low speed USB device using ohci_hcd and address 3

RT-AC3200 # lsusb
...cut...
Bus 003 Device 003: ID 051d:0002

RT-AC3200 # cat /proc/bus/usb/devices
... cut ...
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=051d ProdID=0002 Rev= 1.01
S: Manufacturer=American Power Conversion
S: Product=Back-UPS ES 750G FW:908.W3 .D USB FW:W3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100ms

RT-AC3200 # apcupsd start
RT-AC3200 # apcaccess
APC : 001,018,0449
DATE : 2021-09-24 18:43:02 +0000
HOSTNAME : RT-AC3200
VERSION : 3.14.14 (31 May 2016) unknown
UPSNAME : RTAC3200
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2021-09-24 18:41:52 +0000
STATUS : COMMLOST

RT-AC3200 # apctest -b -d9999 (please note that apcupsd is NOT running in background)
2021-09-25 16:56:30 apctest 3.14.14 (31 May 2016) unknown
Checking configuration ...
0.000 apcupsd: apcconfig.c:755 After config scriptdir: "/opt/etc/apcupsd"
0.000 apcupsd: apcconfig.c:756 After config pwrfailpath: "/opt/etc/apcupsd"
0.000 apcupsd: apcconfig.c:757 After config nologinpath: "/opt/etc"
0.000 apcupsd: newups.c:102 write_lock at drivers.c:109
0.000 apcupsd: drivers.c:111 Looking for driver: usb
0.000 apcupsd: drivers.c:115 Driver dumb is configured.
0.000 apcupsd: drivers.c:115 Driver apcsmart is configured.
0.000 apcupsd: drivers.c:115 Driver net is configured.
0.000 apcupsd: drivers.c:115 Driver usb is configured.
0.000 apcupsd: drivers.c:118 Driver usb found and attached.
0.000 apcupsd: newups.c:108 write_unlock at drivers.c:135
0.000 apcupsd: drivers.c:137 Driver ptr=0x7e608
0.000 apcupsd: drivers.c:138 Attached to driver: usb
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
0.000 apcupsd: newups.c:102 write_lock at linux-usb.c:638
0.000 apcupsd: linux-usb.c:178 Reattached kernel driver to /proc/bus/usb/003/003
0.000 apcupsd: linux-usb.c:94 Attempting to open "/dev/usb/hiddev0"
...cut...
9.012 apcupsd: linux-usb.c:94 Attempting to open "/dev/hiddev15"
10.012 apcupsd: newups.c:108 write_unlock at linux-usb.c:646
apctest FATAL ERROR in apctest.c at line 321
Unable to open UPS device.

ASUS Wireless Router RT-AC3200 - Network Map web page indicates:
USB 3.0 Seagate
USB 2.0 No device

Did I missed something ?

Thanks in advance

FYI, here is the dmesg from Ubuntu when connecting the USB cable into it:
[ 318.597931] usb 4-2: new low-speed USB device number 2 using uhci_hcd
[ 318.858930] usb 4-2: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 1.01
[ 318.858934] usb 4-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 318.858937] usb 4-2: Product: Back-UPS ES 750G FW:908.W3 .D USB FW:W3
[ 318.858940] usb 4-2: Manufacturer: American Power Conversion
[ 319.476542] hid-generic 0003:051D:0002.0003: hiddev0,hidraw2: USB HID v1.10 Device [American Power Conversion Back-UPS ES 750G FW:908.W3 .D USB FW:W3 ] on usb-0000:00:1d.2-2/input0
 
Last edited:

itibi

Occasional Visitor
Hi!

Is it possible that the cause of my problem is is the absence of "Driver" as show by the following command:

RT-AC3200 # cat /proc/bus/usb/devices
... cut ...
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=051d ProdID=0002 Rev= 1.01
S: Manufacturer=American Power Conversion
S: Product=Back-UPS ES 750G FW:908.W3 .D USB FW:W3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100ms

If so, how can it be corrected ?

Thanks for your help.
 

netware5

Very Senior Member
You may try to use NUT instead of apcupsd.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top