Hi. I have this this on a Odroid-u2 backing it up. Have the USB from the CyberPower SX650G plug in the Odroid-u2 and when I do a lsusb it looks like this: Bus 001 Device 008: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS The User's Manual list SE450G and SX650G. So I guess they would take the same driver. CyberPower web page has a driver but it's for i386 not ARM like what's on this Odroid-u2. The best I found was putting "driver =usbhid-ups" in the /etc/nut/ups.conf file. It looks like this at the end of that file: # To find out if your driver supports any extra settings, start it with # the -h option and/or read the driver's documentation. [serverups] driver = usbhid-ups port = auto desc = "Server UPS" # productid = "CP1500 AVR UPS" Here is what I get on the command line: root at odroid-u2:~# upsdrvctl start Network UPS Tools - UPS driver controller 2.6.4 Network UPS Tools - Generic HID driver 0.37 (2.6.4) USB communication driver 0.31 Duplicate driver instance detected! Terminating other driver! Using subdriver: CyberPower HID 0.3 root at odroid-u2:~# upsc apc at localhost Error: Unknown UPS root at odroid-u2:~# So just "Error: Unknown UPS" Any one else got this working with this CyberPower unit? -Raymond Day
On Oct 18, 2016, at 8:21 AM, Raymond Day <raymondday at hotmail.com> wrote:> > > # To find out if your driver supports any extra settings, start it with > # the -h option and/or read the driver's documentation. > [serverups]^^^^^^^^^ this is the name of the UPS that you should pass to "upsc"> driver = usbhid-ups > port = auto > desc = "Server UPS" > # productid = "CP1500 AVR UPS" > > Here is what I get on the command line: > > root at odroid-u2:~# upsdrvctl start > Network UPS Tools - UPS driver controller 2.6.4 > Network UPS Tools - Generic HID driver 0.37 (2.6.4) > USB communication driver 0.31 > Duplicate driver instance detected! Terminating other driver!NUT 2.6.4 is kind of old, and I don't recall whether the logic for terminating other drivers was sound. If you have further issues, you may need to reboot once.> Using subdriver: CyberPower HID 0.3 > root at odroid-u2:~# upsc apc at localhost > Error: Unknown UPSShould work with "upsc serverups at localhost" (or just "upsc serverups")
(please use Reply-All to keep the list CC'd, thanks)> On Oct 18, 2016, at 8:53 AM, Raymond Day <raymondday at hotmail.com> wrote: > > Wow that was fast thank you Charles. > > Put "upsc" in the /etc/nut/ups.conf and then went to start it with > "upsdrvctl start" but I get this then:No, sorry, I didn't mean to change ups.conf - I meant that if the UPS name is listed as "[serverups]", you should run "upsc serverups" at the command line, rather than "upsc apc". I'd recommend the following ups.conf: #################### [serverups] driver = usbhid-ups port = auto desc = "Server UPS" ####################> You said NUT 2.6.4 is kind of old? I just installed it with a "apt-get > install nut" if I do that again it will say "nut is already the newest > version."Newest version for your distribution (but NUT 2.6.4 was released in 2012). It might not be necessary to upgrade, but I only meant that I can't remember the specific things in upsdrvctl that were fixed over that time period, and it would probably be simpler to reboot than to look them up.
Got the: git clone git://github.com/networkupstools/nut.git To work. Had to all so do this: apt-get install autoconf apt-get install libtool Did put driver = usbhid-ups in the /etc/nut/ups.conf file like you said. Here is what I got for it all: root at odroid-u2:~/nut# ./autogen.sh Calling autoreconf... libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'. libtoolize: copying file `./config.guess' libtoolize: copying file `./config.sub' libtoolize: copying file `./install-sh' libtoolize: copying file `./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:15: installing `./missing' clients/Makefile.am: installing `./depcomp' Makefile.am: installing `./INSTALL' root at odroid-u2:~/nut# upsc serverups Error: Driver not connected root at odroid-u2:~/nut# upsc serverups Error: Driver not connected root at odroid-u2:~/nut# upsdrvctl start Network UPS Tools - UPS driver controller 2.6.4 Network UPS Tools - Generic HID driver 0.37 (2.6.4) USB communication driver 0.31 Duplicate driver instance detected! Terminating other driver! Using subdriver: CyberPower HID 0.3 root at odroid-u2:~/nut# upsc serverups Error: Driver not connected root at odroid-u2:~/nut# How do I run the git one? I guess it's up to date. -Raymond Day On 10/18/2016 9:02 AM, Charles Lepple wrote:> upsc serverups