NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

cosmos1's avatar
cosmos1
Aspirant
Oct 22, 2012

Duo v2: Including other drivers for NUT (Network UPS Tools)?

Hello,

I tried to connect my Microdowell BBox 1500 UPS to a Duo V2. This is a serial-connected UPS, that comes bundled with a serial to USB adaptor. As far as Network UPS tools is concerned, it is supported using the powerpanel NUT driver, see http://www.networkupstools.org/stable-h ... icroDowell

After connection, it is detected as a USB device, but not as a UPS one:

dmesg |tail

xhci_hcd 0000:01:01.0: WARN: Stalled endpoint
drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed
generic-usb 0003:0764:0005.0001: timeout initializing reports
generic-usb 0003:0764:0005.0001: hiddev96: USB HID v1.10 Device [Cyber Power System CPS RS232 USB BRIDGE for UPS] on usb-0000:01:01.0-1/input0


Trying to start ups throws an error, most likely due to the fact that the NUT driver used is the hidups:

cat /etc/nut/ups.conf

[UPS]
driver = hidups
port = /dev/usb/hiddev0

upsdrvctl start UPS
Network UPS Tools - UPS driver controller 2.0.5
Network UPS Tools: HID UPS driver 0.13 (2.0.5)

hiddev path open /dev/usb/hiddev0: No such file or directory
Driver failed to start (exit status=1)


Funny thing is that duo v2 does understand that this is a UPS device, because upon disconnection I receive a "UPS disconnected" alert.

Is there any chance Netgear can include the powerpanel and the other NUT drivers in the next firmware?

7 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    No. The drivers won't be added. Serial to USB is not supported and I can't see that changing.
  • Pity, thought that it would be feasible to add this functionality without too much development effort, since the NUT drivers are there for this thing (although not included), plus it only needs a USB connection from the computer/NAS side.

    Say, do you know if there are any plans to offer a UPS network-slave functionality? That is, connect to a NUT daemon operating on another rig? All the components are there...
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    cosmos wrote:
    Pity, thought that it would be feasible to add this functionality without too much development effort, since the NUT drivers are there for this thing (although not included), plus it only needs a USB connection from the computer/NAS side.

    There are a number of different ways serial-to-usb is done requiring different drivers. Too complicated to support. Anyway for quite some time now a very good range of UPS units with USB ports have been readily available.
    cosmos wrote:

    Say, do you know if there are any plans to offer a UPS network-slave functionality? That is, connect to a NUT daemon operating on another rig? All the components are there...

    I'd like it if that was added.
  • mdgm wrote:
    cosmos wrote:
    Pity, thought that it would be feasible to add this functionality without too much development effort, since the NUT drivers are there for this thing (although not included), plus it only needs a USB connection from the computer/NAS side.

    There are a number of different ways serial-to-usb is done requiring different drivers. Too complicated to support. Anyway for quite some time now a very good range of UPS units with USB ports have been readily available.

    Hmm, I have a feeling that you misunderstood me here. Just to clarify things, the Network UPS Tools suite provides a generalized abstraction for ups monitoring daemons/monitors to query ups capabilities and be notified of power-related events, regardless of the underlying hardware, be it serial/usb/hybrid. To accomplish that, NUT is composed of two parts: the abstracted, high-level layer, which is already in our readynas units, as well as a lower-level layer that is specific for a given ups family. For the latter, NUT already includes drivers for a vast number of ups families, hidups (already included in readynas) and powerpanel (not included) being two of them. It's because not all the drivers are included, that I cannot configure the nas box for my own ups type/brand.

    Bottomline: to include support for powerpanel-based ups's there's no need to modify readynas in an extensive way. Just include the powerpanel NUT driver and other NUT drivers. IOW, generate all NUT drivers, when compiling NUT for readynas, piece of cake! What does require some work (and then some) is modifying the readynas interface to provide a new pull down menu for the user to select a ups type (essentially, a NUT driver), plus provide a box for customizations...

    That's some work, if you ask me. Another alternative, much simpler for netgear, is to compile and provide all the NUT drivers, but without catering for ups types other than hidups, from the user interface. At least, a user could modify /etc/nut/ups.conf to it tailored for his/her UPS model.

    cosmos wrote:

    Say, do you know if there are any plans to offer a UPS network-slave functionality? That is, connect to a NUT daemon operating on another rig? All the components are there...

    I'd like it if that was added.

    If you have another linux box, I could provide help to test a client/server setup for NUT :)
  • mdgm wrote:
    Well you could download the GPL and compile NUT yourself if you really want it badly. I don't think NetGear's likely to include it though considering they don't on the other platforms.
    http://www.readynas.com/kb/faq/hardware/can_i_use_a_serial-to-usb_converter_from_a_serial_port-only_ups_to_the_readynas

    Thanks for the link, however it seems it is about hardware "hacking" of sorts to make a serial ups work, by trying a converter. This is not the case here, the nut powerpanel driver is especially included for this type of connection and the special cable is bundled with the ups.

    But, like you said, chances are that most likely one would have to do this himself...
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    That link is including serial-to-usb converter cables provided by the UPS manufacturer. In fact that's what most people would use if they were trying to connect a UPS that only had a serial port.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More