Re: [Nut-upsuser] APC Question...
2007/1/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Greetings: I've been following through the instructions on how to connect an APC BackUPS 650 ES to USB, and have it monitored with NUT... I know my system can SEE the UPS, as DMESG shows this: hiddev96: USB HID v1.10 Device [APC Back-UPS ES 650 FW:818.w1.D USB FW:w1] on usb-:00:04.2-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver I can see an entry in /dev/usb called hiddev0 I have updated my ups.conf file as follows: [apc] driver = newhidups port = /dev/usb/hiddev0 desc = APC Back-UPS ES 650 Note, that port used to be set to auto, but in deperation, I hardcoded it.. I'm running kernel version 2.6.17.3, and have libusb-0.1.so.4.4.0 libraries installed. I cannot see anything in /proc/bus/usb. depending upon your system, this might sit in /dev/bus/usb just check, using the mount command that you have something like: procbususb on /proc/bus/usb type usbfs (rw) When I try to run newhidups, I get: [EMAIL PROTECTED]:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root /dev/usb/hiddev0 Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4) No matching USB/HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4) No matching USB/HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.4# Can anyone suggest a course of action I can take?.. this should be due to the fact that you have not set the hotplug or udev rules. check the nut/scripts/hotplug*/README for more information. These scripts are there to set the right permissions on the dev file upon {cold,hot}plugging. finally note that newhidups is the way to go since it will fully replace hidups by nut 2.2 Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - RD Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
I've been following through the instructions on how to connect an APC BackUPS 650 ES to USB, and have it monitored with NUT... [...] [EMAIL PROTECTED]:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4) No matching USB/HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.4# Can anyone suggest a course of action I can take?.. this should be due to the fact that you have not set the hotplug or udev rules. Not very likely. He's running the driver as root, so this looks more like what was reported on the Bugs Tracker for an APC Back-Ups ES725: http://alioth.debian.org/tracker/?func=detailatid=411542aid=304333group_id=30602 Solution is to upgrade to nut-2.0.5-pre2. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57 ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
I've been following through the instructions on how to connect an APC BackUPS 650 ES to USB, and have it monitored with NUT... I'm running kernel version 2.6.17.3, and have libusb-0.1.so.4.4.0 libraries installed. FWIW we have found our 2.6.17 systems to be unstable when connected to APC SmartUPS boxes over USB. The same combinations are quite happy to run with USB-serial dongles and apcsmart -a ttyUSB0. We haven't had time to investigate... [EMAIL PROTECTED]:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4) No matching USB/HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.4# Can anyone suggest a course of action I can take? Crank up the -D level and/or run it under strace? -- Dr George D M Ross, School of Informatics, University of Edinburgh Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ Mail: [EMAIL PROTECTED] Voice: +44 131 650 5147 Fax: +44 131 667 7209 PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5 pgpwGcES4oQlq.pgp Description: PGP signature ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
2007/1/12, Arjen de Korte [EMAIL PROTECTED]: I've been following through the instructions on how to connect an APC BackUPS 650 ES to USB, and have it monitored with NUT... [...] [EMAIL PROTECTED]:/usr/src/nut-2.0.4# ./drivers/newhidups -a apc -u root Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4) No matching USB/HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.4# Can anyone suggest a course of action I can take?.. this should be due to the fact that you have not set the hotplug or udev rules. Not very likely. He's running the driver as root, so this looks more like what was reported on the Bugs Tracker for an APC Back-Ups ES725: http://alioth.debian.org/tracker/?func=detailatid=411542aid=304333group_id=30602 Solution is to upgrade to nut-2.0.5-pre2. right, I've missed that one. thanks Arjen. btw, the final 2.0.5 will be out either this afternoon, or on monday. Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - RD Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
Solution is to upgrade to nut-2.0.5-pre2. right, I've missed that one. thanks Arjen. btw, the final 2.0.5 will be out either this afternoon, or on monday. Greetings: I've been reading this page in configuring my BackUPS 650ES: http://www.mscs.dal.ca/~selinger/ups/backups.html I get the same results using 2.0.5-pre2 as I was with 2.0.4 when I get to this stage: [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# ./drivers/newhidups -u root -DD -a apc Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5-pre2) debug level is '2' No appropriate HID device found No matching HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# When I use hidups, I get results, although they're odd, but at least my UPS is recognized... [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# ./drivers/hidups -u root -DD -a apc Network UPS Tools: HID UPS driver 0.13 (2.0.5-pre2) Warning: This is an experimental driver. Some features may not function correctly. debug level is '2' Detected APC Back-UPS ES 650 FW:818.w1.D USB FW:w1 on port /dev/usb/hiddev0 addhidvalue(850066, battery.charge): obtained 100 addhidvalue(850068, battery.runtime): obtained 1005 addhidvalue(840035, ups.load): obtained 35 Ignoring x86 page event 0xff860060 (8) Ignoring x86 page event 0xff860060 (8) IS the full release of 2.0.5 likely to solve the issues I'm having with newhidups?.. Thanks, Richard. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
Hi Richard, This is bizarre. Using -DD, you should get more output between debug level is '2' and No appropriate HID device found. You should at least get something like: debug level is '2' Checking device (/) (005/001) - VendorID: - ProductID: - Manufacturer: Linux 2.6.11-1.1369_FC4 uhci_hcd - Product: UHCI Host Controller - Serial Number: :00:1d.3 - Bus: 005 Trying to match device Device does not match - skipping It looks like in your setup, newhidups (and therefore libusb) is seeing no USB devices at all, never mind your UPS. Could you refresh my memory about your operating system, kernel version, libusb version, and contents of ls -lR /proc/bus/usb? Perhaps you need to mount your USB filesystem. Does mount show a line such as the following? usbfs on /proc/bus/usb type usbfs (rw) If not, try mount -t usbfs usbfs /proc/bus/usb -- Peter [EMAIL PROTECTED] wrote: Solution is to upgrade to nut-2.0.5-pre2. right, I've missed that one. thanks Arjen. btw, the final 2.0.5 will be out either this afternoon, or on monday. Greetings: I've been reading this page in configuring my BackUPS 650ES: http://www.mscs.dal.ca/~selinger/ups/backups.html I get the same results using 2.0.5-pre2 as I was with 2.0.4 when I get to this stage: [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# ./drivers/newhidups -u root -DD -a apc Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5-pre2) debug level is '2' No appropriate HID device found No matching HID UPS found [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# When I use hidups, I get results, although they're odd, but at least my UPS is recognized... [EMAIL PROTECTED]:/usr/src/nut-2.0.5-pre2# ./drivers/hidups -u root -DD -a apc Network UPS Tools: HID UPS driver 0.13 (2.0.5-pre2) Warning: This is an experimental driver. Some features may not function correctly. debug level is '2' Detected APC Back-UPS ES 650 FW:818.w1.D USB FW:w1 on port /dev/usb/hiddev0 addhidvalue(850066, battery.charge): obtained 100 addhidvalue(850068, battery.runtime): obtained 1005 addhidvalue(840035, ups.load): obtained 35 Ignoring x86 page event 0xff860060 (8) Ignoring x86 page event 0xff860060 (8) IS the full release of 2.0.5 likely to solve the issues I'm having with newhidups?.. Thanks, Richard. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC Question...
Could you refresh my memory about your operating system, kernel version, libusb version, and contents of ls -lR /proc/bus/usb? Perhaps you need to mount your USB filesystem. Does mount show a line such as the following? usbfs on /proc/bus/usb type usbfs (rw) Hiya! This did the trick!! USBFS is not something I'm familiar with, or have ever used, but as soon as I mounted that directory, the UPS was found by newhidups, and I received all kinds of output from it, so I think that is the problem.. Thanks everyone for their assistance in solving this problem... Regards, Richard. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser