[Nut-upsuser] Unsupported UPS using megatec_usb

Jamie Thompson lists.nut-upsuser at jamie-thompson.co.uk
Thu Apr 24 23:13:15 UTC 2008


Hey all, thanks for your work on nut. I recently got myself a new cheap UPS, and have thus far determined very little about it. I can run whatever you
like to help identify and work with it. So far I've played around with various settings and have had some limited success with the megatec_usb driver
(Debian testing version):

----ups.conf----
[plexus]
driver=megatec_usb
model=500VA
mfr=Plexus
vendorid=0001
#port=auto
port=/dev/usb/hiddev0
desc="Plexus V 500VA UPS"
----ups.conf----

> $:/lib/nut# ./megatec_usb -a plexus
> Network UPS Tools 2.2.1- - Megatec protocol driver 1.5.9 [megatec_usb]
> Carlos Rodrigues (c) 2003-2007
> 
> Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
> Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007
> 
> Megatec protocol UPS detected [ UPS500V VER3.10C].
> This UPS has an unsupported combination of battery voltage/number of batteries.
> Cannot calculate charge percentage for this UPS.

...and some debugging output:

> $:/lib/nut# ./megatec_usb -a plexus -DDDDD
> Network UPS Tools 2.2.1- - Megatec protocol driver 1.5.9 [megatec_usb]
> Carlos Rodrigues (c) 2003-2007
> 
> Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
> Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007
> 
> debug level is '5'
> Checking device (0001/0000) (001/002)
> - VendorID: 0001
> - ProductID: 0000
> - Manufacturer: unknown
> - Product: unknown
> - Serial Number: unknown
> - Bus: 001
> Trying to match device
> Device matches
> get_data_krauler: no command set
> Starting UPS detection process...
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 229.0 000 50.2 13.0 00.0 00001010
> Q1 => OK [(229.0 165.0 229.0 000 50.2 13.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 234.0 000 50.0 13.0 00.0 00001010
> Q1 => OK [(234.0 165.0 234.0 000 50.0 13.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> - Unable to fetch string 3
> get_data_krauler: connection failure
> Q1 => FAILED [timeout]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> - Unable to fetch string 3
> get_data_krauler: connection failure
> Q1 => FAILED [timeout]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 229.0 000 50.2 13.0 00.0 00001010
> Q1 => OK [(229.0 165.0 229.0 000 50.2 13.0 00.0 00001010]
> 2 out of 5 detection attempts failed (minimum failures: 2).
> Asking for UPS information [I]...
> get_data_krauler: index [0c], prefix [#]
> - Unable to fetch string 12
> get_data_krauler: connection failure
> I => FAILED [timeout]
> Megatec protocol UPS detected.
> Asking for UPS power ratings [F]...
> get_data_krauler: index [0d], prefix [#]
> - Unable to fetch string 13
> get_data_krauler: connection failure
> F => FAILED [timeout]
> Cannot calculate charge percentage for this UPS.
> -> String: UPS No Ack (len = 10/512)
> set_data_krauler: dump [UPS No Ack]
> Done setting up the UPS.
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> - Unable to fetch string 3
> get_data_krauler: connection failure
> Q1 => FAILED [timeout]
> dstate_init: sock /var/run/nut/megatec_usb-plexus open on fd 5
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 229.0 000 50.2 13.0 00.0 00001010
> Q1 => OK [(229.0 165.0 229.0 000 50.2 13.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> -> String: UPS No Ack (len = 10/128)
> get_data_krauler: retry [UPS No Ack]
> - Unable to fetch string 3
> get_data_krauler: connection failure
> Q1 => FAILED [timeout]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 234.0 000 50.2 13.0 00.0 00001010
> Q1 => OK [(234.0 165.0 234.0 000 50.2 13.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
>  (len = 47/128).0 165.0 234.0 000 50.0 13.0 00.0 00001010
> Q1 => OK [(234.0 165.0 234.0 000 50.0 13.0 00.0 00001010]
> Signal 2: exiting

Looking at similar mails in the archives I guess you need some of those values for the battery table in the driver, but I'm not clear which.

- Jamie



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080425/a4036f6d/attachment.pgp 


More information about the Nut-upsuser mailing list