[Nut-upsdev] Megatec_usb driver

Dmitry Bely dmitry.bely at gmail.com
Thu May 24 16:13:08 UTC 2007


Trying to use it with Sven Smart RM2000 (seems to be an OEM clone of
Sysgration Smart RM UPS: http://www.sysgration.com/product.asp?KID=7).

I have just compiled the latest svn trunk. Unfortunately it does not
work with that UPS:

dbely at vserver1:~/nut-svn$ sudo /usr/local/ups/bin/megatec_usb -u root -a myups
Network UPS Tools 2.1.0 - Megatec protocol driver 1.5.3 [megatec_usb]
Carlos Rodrigues (c) 2003-2007

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

Megatec protocol UPS detected [SVEN POWER Smart2U 2K Ver 1.1].
This UPS has an unsupported combination of battery voltage/number of batteries.
Cannot calculate charge percentage for this UPS.

If I enable debugging it loops forever:

dbely at vserver1:~/nut-svn$ sudo /usr/local/ups/bin/megatec_usb -u root
-DDDDD -a myups
Network UPS Tools 2.1.0 - 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) (007/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.20-15-server ehci_hcd
- Product: EHCI Host Controller
- Serial Number: 0000:00:1d.7
- Bus: 007
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.20-15-server ehci_hcd
- Product: EHCI Host Controller
- Serial Number: 0000:00:1a.7
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (05B8/0000) (005/003)
- VendorID: 05b8
- ProductID: 0000
- Manufacturer:
- Product: UPS
- Serial Number: unknown
- Bus: 005
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
trying again to claim USB device...
Starting UPS detection process...
Attempting to detect the UPS...
Sending "Q1" command...
Wrong answer to "Q1" command.
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.
1 out of 5 detection attempts failed (minimum failures: 2).
Asking for UPS information ("I" command)...
UPS information: #SVEN POWER      Smart2U 2K Ver 1.1
Megatec protocol UPS detected [SVEN POWER Smart2U 2K Ver 1.1].
Asking for UPS power ratings ("F" command)...
UPS power ratings: #220.0 6.4 48.00 50.0
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 010 50.0 55.5 30.0 00101001
Unsupported battery voltage (48.0V).
This UPS has an unsupported combination of battery voltage/number of batteries.
Cannot calculate charge percentage for this UPS.
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 doesn't return any information about its status.
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 209.0 005 50.0 54.9 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 209.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 010 50.0 55.8 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 209.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 209.0 010 50.0 55.5 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 209.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.9 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.9 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.9 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 010 50.0 55.2 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 236.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (236.0 236.0 208.0 010 50.0 55.5 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (236.0 236.0 208.0 010 50.0 55.5 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.9 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (236.0 237.0 208.0 010 50.0 55.2 30.0 00101001
Asking for UPS status ("Q1" command)...
UPS status: (237.0 237.0 208.0 005 50.0 54.6 30.0 00101001

Any idea how to fix this?

- Dmitry Bely



More information about the Nut-upsdev mailing list