<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi, all!<br><br> I sucessfully install NUT by source, but it could not recognize my UPS device<br><br>My UPS device is APC Smart-UPS 750VA USB & Serial 230V for China. Pruduct introduction:<br>http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SUA750ICH<br><br>The page is in Chinese. It may be similar with this one:<br>http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SMT750I<br><br>The UPS device did well on my Synology NAS device, but it could not be detected by NUT of my own board.<br>I did plugged it to the USB port, and a new device named "usbdev1.3" appeared in /dev. <br><br>What I configured in ups.conf is:<br><br>[APC_SMT_USB]<br> driver = usbhid-ups<br> port = auto<br> desc = "APC_USB"<br><br>And I start the driver:<br><br># /usr/local/ups/bin/upsdrvctl start<br>Network UPS Tools - UPS driver controller 2.6.3<br>Network UPS Tools - Generic HID driver 0.35 (2.6.3)<br>USB communication driver 0.31<br>No matching HID UPS found<br>Driver failed to start (exit status=1)<br><br>The User Manual says that I may using a wrong driver when this happens. But I checked and found there was only one driver(usbhid-ups) available for APC USB UPS machine.<br><br>What can I do?<br><br><br>/************/<br>And here are my whole configuration, make and installation procedure:<br><br>1. I downloaded libusb-0.1.12, and then configure it:<br># ./configure --prefix=/usr/local/usb/prefix \<br>> --exec-prefix=/usr/local/usb/eprefix \<br>> --bindir=/bin \<br>> --sbindir=/sbin \<br>> --sysconfdir=/etc \<br>> --localstatedir=/var \<br>> --libdir=/lib \<br>> --host=arm-mv5sft-linux-gnueabi \<br>> --with-PACKAGE >>libusb_configure.log 2>&1<br><br>2. make libusb<br># make >>libusb_make.log 2>&1<br><br>3. install libusb to my computer. The .a files are used by NUT<br># make install >>libusb_install.log 2>&1<br><br>4. copy all libs to my ARM board. "/mnt/ARM_FS/" is the root NFS of my ARM board<br># cp /lib/libusb* /mnt/ARM_FS/lib<br><br>5. configure NUT<br># export PKG_CONFIG_PATH=/lib/pkgconfig<br># ./configure \<br>--prefix=/usr/local/ups \<br>--exec-prefix=/usr/local/ups \<br>--bindir=/bin \<br>--sbindir=/sbin \<br>--sysconfdir=/etc \<br>--localstatedir=/var \<br>--libdir=/lib \<br>--host=arm-mv5sft-linux-gnueabi \<br>--libexecdir=/usr/local/usb \<br>--includedir=/usr/local/usb/include \<br>--with-usb-libs='-L/lib -lusb' \<br>--with-usb-includes=-I/usr/local/usb/prefix/include \<br>--with-user=root --with-group=root \<br>--with-usb >>nut_configure.log 2>&1<br><br>6. make NUT<br># make >>nut_make.log 2>&1<br><br>7. install NUT<br># make DESTDIR=/mnt/ARM_FS install >>nut_install.log 2>&1<br><br><br><br>All manual logs and configure log generated by ./configure are attached. <br><br><br><br>Thank you!!<br><br><pre>Best Regards<br>--
Andrew Chang<br>2012-03-07</pre><br><br><br><br><br><br><br><br><br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>