Hi, all! I sucessfully install NUT by source, but it could not recognize my UPS device My UPS device is APC Smart-UPS 750VA USB & Serial 230V for China. Pruduct introduction: http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SUA750ICH The page is in Chinese. It may be similar with this one: http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SMT750I The UPS device did well on my Synology NAS device, but it could not be detected by NUT of my own board. I did plugged it to the USB port, and a new device named "usbdev1.3" appeared in /dev. What I configured in ups.conf is: [APC_SMT_USB] driver = usbhid-ups port = auto desc = "APC_USB" And I start the driver: # /usr/local/ups/bin/upsdrvctl start Network UPS Tools - UPS driver controller 2.6.3 Network UPS Tools - Generic HID driver 0.35 (2.6.3) USB communication driver 0.31 No matching HID UPS found Driver failed to start (exit status=1) 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. What can I do? /************/ And here are my whole configuration, make and installation procedure: 1. I downloaded libusb-0.1.12, and then configure it: # ./configure --prefix=/usr/local/usb/prefix \> --exec-prefix=/usr/local/usb/eprefix \ > --bindir=/bin \ > --sbindir=/sbin \ > --sysconfdir=/etc \ > --localstatedir=/var \ > --libdir=/lib \ > --host=arm-mv5sft-linux-gnueabi \ > --with-PACKAGE >>libusb_configure.log 2>&12. make libusb # make >>libusb_make.log 2>&1 3. install libusb to my computer. The .a files are used by NUT # make install >>libusb_install.log 2>&1 4. copy all libs to my ARM board. "/mnt/ARM_FS/" is the root NFS of my ARM board # cp /lib/libusb* /mnt/ARM_FS/lib 5. configure NUT # export PKG_CONFIG_PATH=/lib/pkgconfig # ./configure \ --prefix=/usr/local/ups \ --exec-prefix=/usr/local/ups \ --bindir=/bin \ --sbindir=/sbin \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/lib \ --host=arm-mv5sft-linux-gnueabi \ --libexecdir=/usr/local/usb \ --includedir=/usr/local/usb/include \ --with-usb-libs='-L/lib -lusb' \ --with-usb-includes=-I/usr/local/usb/prefix/include \ --with-user=root --with-group=root \ --with-usb >>nut_configure.log 2>&1 6. make NUT # make >>nut_make.log 2>&1 7. install NUT # make DESTDIR=/mnt/ARM_FS install >>nut_install.log 2>&1 All manual logs and configure log generated by ./configure are attached. Thank you!! Best Regards -- Andrew Chang 2012-03-07 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120307/251e248c/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: logs.tar.gz Type: application/x-gzip Size: 40867 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120307/251e248c/attachment-0001.bin>
On Mar 7, 2012, at 5:04 AM, Andrew Min Chang wrote:> No matching HID UPS found > Driver failed to start (exit status=1) > > 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.What does 'lsusb' say about this UPS? -- Charles Lepple clepple at gmail
Hi, Charles! # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 05e3:0608 Bus 001 Device 003: ID 051d:0002 And if I make the UPS disconnected, it is: # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 05e3:0608 Best Regards -- Andrew Chang 2012-03-08 At 2012-03-07 22:22:54,"Charles Lepple" <clepple at gmail.com> wrote:>On Mar 7, 2012, at 5:04 AM, Andrew Min Chang wrote: > >> No matching HID UPS found >> Driver failed to start (exit status=1) >> >> 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. > >What does 'lsusb' say about this UPS? > >-- >Charles Lepple >clepple at gmail > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120308/82fa5c7d/attachment.html>
Hi, Charles! I found another UPS device then tried again. The UPS model is: CyberPower DX600E, Europe version: http://www.cyberpower-eu.com/products/ups_systems/dx/dx600e.htm Also I did the same operation as before (and the previous APC device still connected): # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 05e3:0608 Bus 001 Device 004: ID 051d:0002 Bus 001 Device 005: ID 0764:0501 But still: # /usr/local/ups/bin/upsdrvctl start Network UPS Tools - UPS driver controller 2.6.3 Network UPS Tools - Generic HID driver 0.35 (2.6.3) USB communication driver 0.31 No matching HID UPS found Driver failed to start (exit status=1) I believe I might have done something wrong or something missed, but I had did what user-manual had told from Chapter 2.1 to 6.2. Best Regards -- Andrew Chang 2012-03-08 At 2012-03-08 08:16:29,"Andrew Min Chang" <laplacezhang at 126.com> wrote: Hi, Charles! # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 05e3:0608 Bus 001 Device 003: ID 051d:0002 And if I make the UPS disconnected, it is: # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 05e3:0608 Best Regards -- Andrew Chang 2012-03-08 At 2012-03-07 22:22:54,"Charles Lepple" <clepple at gmail.com> wrote:>On Mar 7, 2012, at 5:04 AM, Andrew Min Chang wrote: > >> No matching HID UPS found >> Driver failed to start (exit status=1) >> >> 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. > >What does 'lsusb' say about this UPS? > >-- >Charles Lepple >clepple at gmail > > >?????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120308/51ae7ded/attachment-0001.html>
On Mar 7, 2012, at 9:19 PM, Andrew Min Chang wrote:> Bus 001 Device 004: ID 051d:0002 > Bus 001 Device 005: ID 0764:0501Both of these IDs should be supported. Can you start the driver in debug mode? /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD (path may vary) -- Charles Lepple A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?