[Nut-upsuser] Bogus "UPS not available" messages

Eric S. Raymond esr at thyrsus.com
Fri May 25 05:50:08 UTC 2007


Arjen de Korte <nut+users at de-korte.org>:
> Generally it is a good idea to run the driver in debug mode and see what
> it is reporting then.
> 
>      megatec_usb -u root -DDDDD -a <upsname>

Looks like I'm going to have to write a troubleshooting guide...

root at snark:/home/esr/svn/nut/trunk#  drivers/megatec_usb -u root -DDDDD -a myups
Network UPS Tools 2.1.0 (916M) - Megatec protocol driver 1.5.3 [megatec_usb]
Carlos Rodrigues (c) 2003-2007

Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]

debug level is '5'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.17-11-generic ohci_hcd
- Product: OHCI Host Controller
- Serial Number: 0000:00:02.0
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (003/002)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 003
Trying to match device
Device matches
Starting UPS detection process...
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
0 out of 5 detection attempts failed (minimum failures: 2).
Asking for UPS information ("I" command)...
UPS doesn't return any information about itself.
Megatec protocol UPS detected.
Asking for UPS power ratings ("F" command)...
UPS power ratings: #120.0 008 24.00 60.0
Asking for UPS status ("Q1" command)...
UPS status: (128.2 128.2 128.2 026 60.1 27.5 N/.A 00001001
24.0V battery, interval [19.4V, 27.4V].
Done setting up the UPS.
Asking for UPS status ("Q1" command)...
UPS doesn't return any information about its status.
dstate_init: sock /var/state/ups/myups open on fd 5
Asking for UPS status ("Q1" command)...
UPS status: (128.5 128.2 128.5 025 60.1 27.5 N/.A 00001001
Charge: 100.0%
Asking for UPS status ("Q1" command)...
UPS status: (128.5 128.5 128.5 024 60.1 27.5 N/.A 00001001
Charge: 100.0%
Asking for UPS status ("Q1" command)...
UPS status: (128.5 128.5 128.5 024 60.1 27.5 N/.A 00001001
Charge: 100.0%
Signal 2: exiting

Driver seems to work OK in this test mode.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>



More information about the Nut-upsuser mailing list