<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>[Note: you appear to be subscribed under another address, so I manually forwarded this to the list. Email me off-list if you have questions.]</div><div><br></div><div>On Dec 31, 2009, at 6:14 PM, Mailing Lists wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> Hello all,<br> <br> I'm having trouble getting NUT - specifically the apcsmart driver to recognize an IBM/APC 1500TLV under Vyatta 5.0.2<br> <br> I've been following this site:<br> <blockquote><a class="moz-txt-link-freetext" href="http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/">http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/</a><br> </blockquote> The device is recognized<br> <blockquote>usb 4-1: new low speed USB device using uhci_hcd and address 3<br> usb 4-1: configuration #1 chosen from 1 choice<br> hiddev96hidraw0: USB HID v1.10 Device [American Power Conversion IBM UPS1500TLV FW:601.1I1.D USB FW:1.5] on usb-0000:00:1d.3-1<br> </blockquote> but when I run:<br> <blockquote># upsdrvctl start<br> </blockquote> I get an Invalid argument error:<br> <blockquote>Network UPS Tools - UPS driver controller 2.4.1<br> Network UPS Tools - APC Smart protocol driver 2.00 (2.4.1)<br> APC command table version 2.0<br> tcgetattr(/dev/usb/hiddev0): Invalid argument<br> Driver failed to start (exit status=1)<br></blockquote></div></blockquote><div>The apcsmart driver is only for serial connections to APC equipment.</div><br><blockquote type="cite"><div bgcolor="#ffffff" text="#000000"><blockquote> </blockquote> Here is the device in /dev as well - showing that the udev rules listed in the tutorial were acted upon:<br> <blockquote># ls -alh /dev/usb/hiddev0<br> crw-rw-r-- 1 root nut 180, 96 Dec 31 15:44 /dev/usb/hiddev0<br></blockquote></div></blockquote><div>The hiddev* devices are not used in any of the current NUT drivers.</div><div><br></div><div>Depending on the vintage of Debian which was used for your system, you will need to check on the /proc/bus/usb or /dev/bus/usb node.</div><div><br></div><div>Check the documentation for the usbhid-ups driver -- it is probably the one you want. If it doesn't detect your UPS (e.g. it is rebranded, and uses a different USB Vendor ID), send us the output of 'lsusb -v' for that device.</div><div><br></div><div>&nbsp;&nbsp;&nbsp;<a href="http://new.networkupstools.org/man/usbhid-ups.html">http://new.networkupstools.org/man/usbhid-ups.html</a></div><div><br></div><div>--&nbsp;</div><div>Charles Lepple</div></div></body></html>