Eric OwN-3m-All
2011-Jul-08 05:42 UTC
[Nut-upsuser] Ubuntu 10.04 Ultra 700VA UPS Setup Nut
I just bought an Ultra UPS system for my linux server, and I need help getting it set up. It's an Ultra 700VA UPS. NUT INFORMATION: Package (apt-get install nut) NUT VERSION: Latest Driver: I don't have one? Here's the device information from my syslog: Code: Jul 7 23:25:27 eric-desktop kernel: [ 3045.609066] usb 2-1: USB disconnect, address 3 Jul 7 23:25:30 eric-desktop kernel: [ 3049.073041] usb 2-1: new low speed USB device using uhci_hcd and address 4 Jul 7 23:25:30 eric-desktop kernel: [ 3049.257903] usb 2-1: configuration #1 chosen from 1 choice Jul 7 23:25:31 eric-desktop kernel: [ 3049.671558] generic-usb 0003:0D9F:0004.0005: hiddev96,hidraw1: USB HID v1.00 Device [POWERCOM Co.,LTD HID UPS Battery] on usb-0000:00:1d.0-1/input0 Here's my etc/nut/ups.conf file: Code: # /etc/nut/ups.conf [Ultra] driver = powercom port = port=/dev/hidraw1 linevoltage = 120 manufacturer = Ultra modelname = ULTRA 700VA type = Trust methodOfFlowControl=dtr0rts1 shutdownArguments = {{7,10},y} Here's what I get when I run sudo upsdrvctl start: Code: eric at eric-desktop:~$ sudo upsdrvctl start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.3) Unable to open port=/dev/hidraw1: No such file or directory Things to try: - Check 'port=' in ups.conf - Check owner/permissions of all parts of path Fatal error: unusable configuration Driver failed to start (exit status=1) I've been following these guides: http://blog.shadypixel.com/monitorin...-ubuntu-linux/<http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/> http://www.mail-archive.com/nut-upsu.../msg05168.html<http://www.mail-archive.com/nut-upsuser at lists.alioth.debian.org/msg05168.html> /dev/hidraw1 does exist... is this how I'm supposed to configure a USB connection between my UPS system? What permissions need to be set on hidraw1? Any and all help is appreciated! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110707/f6ba74f6/attachment.html>
On Jul 8, 2011, at 1:42 AM, Eric OwN-3m-All wrote:> I just bought an Ultra UPS system for my linux server, and I need > help getting it set up. It's an Ultra 700VA UPS. > > NUT INFORMATION: Package (apt-get install nut) > NUT VERSION: Latest"Latest" doesn't sound like one of our version numbers :-) For Ubuntu 10.04, I assume it's 2.4.3-1ubuntu3 as listed here: http://packages.ubuntu.com/lucid/nut ? You can get the full version by running "dpkg -l nut".> Driver: I don't have one?Usually, we're referring to the right side of "driver =" in ups.conf, but in your case, there may be a kernel driver involved as well. See below.> Here's the device information from my syslog: > > Code: > Jul 7 23:25:27 eric-desktop kernel: [ 3045.609066] usb 2-1: USB > disconnect, address 3 > > Jul 7 23:25:30 eric-desktop kernel: [ 3049.073041] usb 2-1: new low > speed USB device using uhci_hcd and address 4 > Jul 7 23:25:30 eric-desktop kernel: [ 3049.257903] usb 2-1: > configuration #1 chosen from 1 choice > Jul 7 23:25:31 eric-desktop kernel: [ 3049.671558] generic-usb > 0003:0D9F:0004.0005: hiddev96,hidraw1: USB HID v1.00 Device > [POWERCOM Co.,LTD HID UPS Battery] on usb-0000:00:1d.0-1/input0 > Here's my etc/nut/ups.conf file: > > Code: > # /etc/nut/ups.conf > > [Ultra] > driver = powercom > port = port=/dev/hidraw1 > > linevoltage = 120 > manufacturer = Ultra > modelname = ULTRA 700VA > type = Trust > methodOfFlowControl=dtr0rts1 > shutdownArguments = {{7,10},y} > Here's what I get when I run sudo upsdrvctl start: > > Code: > eric at eric-desktop:~$ sudo upsdrvctl start > Network UPS Tools - UPS driver controller 2.4.3 > > Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.3) > > Unable to open port=/dev/hidraw1: No such file or directory > > Things to try: > > - Check 'port=' in ups.conf > > - Check owner/permissions of all parts of path > > > Fatal error: unusable configuration > Driver failed to start (exit status=1) > I've been following these guides: > > http://blog.shadypixel.com/monitorin...-ubuntu-linux/ > http://www.mail-archive.com/nut-upsu.../msg05168.html > > /dev/hidraw1 does exist... is this how I'm supposed to configure a > USB connection between my UPS system? What permissions need to be > set on hidraw1?None of the NUT drivers use /dev/hidraw*. Also, it appears you have "port=" twice on the same line. Are there any /dev/ttyUSB* device nodes? Do any appear if you run "sudo modprobe cypress_m8"? (Although I think that module would have been loaded automatically if needed.) What do you get from "sudo cat /proc/tty/driver/usbserial"? Basically, if the NUT driver name doesn't contain "usb", the driver is expecting a serial port device name (either one corresponding to a physical 9- or 25-pin port, or a virtual one created by a USB-to- serial converter driver in the kernel). Another tip from the nut-upsuser thread is to start with the shortest possible entry in ups.conf (driver= and port= are required across all drivers), and build up as things start to work. In your case, I would try this: [Ultra] driver = blazer_ser port = /dev/ttyUSB0 The guess of blazer_ser is due to the ULT line here: http://www.networkupstools.org/stable-hcl.html?manufacturer=Powercom Also, the entries below that for the "powercom" driver mention USB Product ID 0002, and the 0D9F:0004 entry in the syslog seems to indicate a Product ID of 0004. -- Charles Lepple -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110708/1ec60ef4/attachment.html>
Hi Eric, first, please keep the traffic on the list. Other people may be interested in reading... 2011/7/16 Eric OwN-3m-All <own3mall at gmail.com>> *I tried that, but it's not working.* > * > Here's what I get:* > > * > Network UPS Tools - UPS driver controller 2.4.3 > Network UPS Tools - Generic HID driver 0.34 (2.4.3) > USB communication driver 0.31 > This PowerCOM device (0d9f:0004) is not (or perhaps not yet) supported > by usbhid-ups. Please make sure you have an up-to-date version of NUT. If > this does not fix the problem, try running the driver with the > '-x productid=0004' option. Please report your results to the NUT user's > mailing list <nut-upsuser at lists.alioth.debian.org>. > > No matching HID UPS found > > Driver failed to start (exit status=1) > eric at eric-desktop:~$ sudo upsdrvctl start > Network UPS Tools - UPS driver controller 2.4.3 > Network UPS Tools - Generic HID driver 0.34 (2.4.3) > USB communication driver 0.31 > This PowerCOM device (0d9f:0004) is not (or perhaps not yet) supported > by usbhid-ups. Please make sure you have an up-to-date version of NUT. If > this does not fix the problem, try running the driver with the > '-x productid=0004' option. Please report your results to the NUT user's > mailing list <nut-upsuser at lists.alioth.debian.org>. > > No matching HID UPS found > > Driver failed to start (exit status=1) > * > * > I first tried it like this:* > > > [Ultra] > driver = usbhid-ups > port = auto > > *Then I tried:* > > > [Ultra] > driver = usbhid-ups > port = auto > -x productid=0004 > > Any other ideas? I think I was close with the Blazer drivers, but I don't > have any USB ttyUSB0 files.first, test usbhid-ups with the following config (no "-x", since it's for the command line version): [Ultra] driver = usbhid-ups port = auto vendorid=0d9f productid=0004 and use: $ /path/to/usbhid-ups -D -a Ultra then send us back the output. If it really doesn't work, you may want to try out blazer_usb, with: [Ultra] driver = blazer_usb port = auto vendorid=0d9f productid=0004 and use: $ /path/to/blazer_usb -DDDDD -a Ultra cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110718/19cb1fc6/attachment.html>