Stubborn UPS (APC SRV 1K I, will not talk on USB to Core)

Geoff-AU

Cadet
Joined
Dec 28, 2016
Messages
4
I have an APC SRV 1K I which will not talk to TrueNAS Core. Drilling into it, it seems to enumerate both as a serial port and a modem:

ugen2.2: <vendor 0x04e2 product 0x1410> at usbus2
umodem0 on uhub1
umodem0: <vendor 0x04e2 product 0x1410, class 239/2, rev 2.00/0.03, addr 1> on usbus2
umodem0: data interface 1, has no CM over data, has break

Attempts to talk to it manually on ugen2.2 fail with ioctl error:
# upsdrvctl -D start
Network UPS Tools - UPS driver controller 2.7.4
0.000000 Starting UPS: ups
Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4)
APC command table version 3.1
tcgetattr(/dev/ugen2.2): Inappropriate ioctl for device
0.001311 Driver failed to start (exit status=1)

I have also installed a newer version of nut in a jail (2.8.0) with the same ioctl error. It seems like the problem is how this device enumerates in BSD and the driver that it uses doesn't support what nut is trying to do to the port.

Under Linux Mint it uses the cdc_xr_usb_serial driver and enumerates as ttyXRUSBx. USB_device_id idVendor:04e2, idProduct 1410 (if it matters)

So at the moment I have it on a separate linux master, with truenas as the slave. The linux master is only running the UPS, which is kinda dumb.

Any bright ideas? Long term might be easier to try SCALE but I'd have to rework some plugins by the sounds of it.
 
Top