<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jul 8, 2011, at 1:42 AM, Eric OwN-3m-All wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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.<br><br>NUT INFORMATION:  Package (apt-get install nut)<br>NUT VERSION:  Latest <br></blockquote><div><br></div><div>"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: <a href="http://packages.ubuntu.com/lucid/nut">http://packages.ubuntu.com/lucid/nut</a> ?</div><div><br></div><div>You can get the full version by running "dpkg -l nut".</div><br><blockquote type="cite">Driver:  I don't have one?<br></blockquote> <div><br></div><div>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.</div><br><blockquote type="cite"> Here's the device information from my syslog:<br> <br> <div style="margin: 5px 20px 20px;">   <div class="smallfont" style="margin-bottom: 2px;">Code:</div>  <pre class="alt2" dir="ltr" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 82px; text-align: left; overflow: auto;">Jul  7 23:25:27 eric-desktop kernel: [ 3045.609066] usb 2-1: USB disconnect, address 3<br>
Jul  7 23:25:30 eric-desktop kernel: [ 3049.073041] usb 2-1: new low speed USB device using uhci_hcd and address 4<br>Jul  7 23:25:30 eric-desktop kernel: [ 3049.257903] usb 2-1: configuration #1 chosen from 1 choice<br>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</pre> </div>Here's my etc/nut/ups.conf file:<br> <br> <div style="margin: 5px 20px 20px;">  <div class="smallfont" style="margin-bottom: 2px;">Code:</div>  <pre class="alt2" dir="ltr" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 194px; text-align: left; overflow: auto;"># /etc/nut/ups.conf<br><br>[Ultra]<br>    driver = powercom<br>    port = port=/dev/hidraw1<br>
    linevoltage = 120<br>    manufacturer = Ultra<br>    modelname = ULTRA 700VA<br>    type = Trust<br>    methodOfFlowControl=dtr0rts1<br>    shutdownArguments = {{7,10},y}</pre> </div>Here's what I get when I run sudo upsdrvctl start:<br> <br> <div style="margin: 5px 20px 20px;">       <div class="smallfont" style="margin-bottom: 2px;">Code:</div>  <pre class="alt2" dir="ltr" style="margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 242px; text-align: left; overflow: auto;">eric@eric-desktop:~$ sudo upsdrvctl start<br>Network UPS Tools - UPS driver controller 2.4.3<br>
Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.3)<br><br>Unable to open port=/dev/hidraw1: No such file or directory<br><br>Things to try:<br><br> - Check 'port=' in ups.conf<br><br> - Check owner/permissions of all parts of path<br>
<br>Fatal error: unusable configuration<br>Driver failed to start (exit status=1)</pre> </div>I've been following these guides:<br> <br> <a href="http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/" target="_blank">http://blog.shadypixel.com/monitorin...-ubuntu-linux/</a><br> <a href="http://www.mail-archive.com/nut-upsuser@lists.alioth.debian.org/msg05168.html" target="_blank">http://www.mail-archive.com/nut-upsu.../msg05168.html</a><br> <br> /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?<br></blockquote></div><br><div>None of the NUT drivers use /dev/hidraw*. Also, it appears you have "port=" twice on the same line.</div><div><br></div><div>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.) </div><div><br></div><div>What do you get from "sudo cat /proc/tty/driver/usbserial"?</div><div><br></div><div>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).</div><div><br></div><div>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:</div><div><br></div><div>[Ultra]</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>driver = blazer_ser</div><div>        port = /dev/ttyUSB0</div><div><br></div><div>The guess of blazer_ser is due to the ULT line here:</div><div><br></div><div><a href="http://www.networkupstools.org/stable-hcl.html?manufacturer=Powercom">http://www.networkupstools.org/stable-hcl.html?manufacturer=Powercom</a></div><div><br></div><div>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.</div><div><br></div><div>-- </div><div>Charles Lepple</div></body></html>