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: exitingLooking 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
Alexander I. Gordeev
2008-Apr-25 17:14 UTC
[Nut-upsuser] Unsupported UPS using megatec_usb
Hi Jamie, On Fri, 25 Apr 2008 03:13:15 +0400, Jamie Thompson <lists.nut-upsuser at jamie-thompson.co.uk> wrote:> 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): >[snip]>> 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][snip] megatec_usb is definitely the right driver for your UPS. I don't know if anything could be done to stop failures. Can you plug the UPS to another computer and run megatec_usb again? Also please try version 2.2.2-pre3 released today: http://www.networkupstools.org/source.html> > 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. >As Carlos wrote recently there is no way to calculate charge percentage if I and F commands fail. http://lists.alioth.debian.org/pipermail/nut-upsuser/2008-April/003970.html -- Alexander