On Mon, 18 Feb 2008 15:59:51 +0300, Matt Brown <[EMAIL PROTECTED]> wrote:
> Hi Alexander, > >> Hm... compiling under root... >> >> You should install package 'libtool'. >> > > Ok, exited out of sudo bash ;-) > > Installed libtool and compiled... > > Clean compile, and install. > > Running the megatec_usb -DDDDD -a Unitek now outputs the following... > > megatec_usb -DDDDD -a Unitek > Network UPS Tools 2.3.0-1308 - Megatec protocol driver 1.5.13 > [megatec_usb] > Carlos Rodrigues (c) 2003-2008 > > 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 (0000/0000) (005/001) > - VendorID: 0000 > - ProductID: 0000 > - Manufacturer: unknown > - Product: unknown > - Serial Number: unknown > - Bus: 005 > Trying to match device > Device does not match - skipping > Checking device (0001/0000) (003/003) > - VendorID: 0001 > - ProductID: 0000 > - Manufacturer: unknown > - Product: unknown > - Serial Number: unknown > - Bus: 003 > 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... > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 234.0 000 50.0 26.3 00.0 00001010 > Q1 => OK [(234.0 165.0 234.0 000 50.0 26.3 00.0 00001010] > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 234.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(234.0 165.0 234.0 000 50.2 26.3 00.0 00001010] > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.0 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.0 26.3 00.0 00001010] > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 231.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(231.0 165.0 231.0 000 50.2 26.3 00.0 00001010] > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 231.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(231.0 165.0 231.0 000 50.2 26.3 00.0 00001010] > 0 out of 5 detection attempts failed (minimum failures: 2). > Cancelling any pending shutdown or battery test. > set_data_krauler: index [0b] > -> String: UPS No Ack (len = 10/255) > set_data_krauler: retry [UPS No Ack] > Asking for UPS information [I]... > set_data_krauler: index [0c] > (len = 39/255)TEK ALPHA1250 VER2.0C > I => OK [#UNITEK ALPHA1250 VER2.0C ] > Megatec protocol UPS detected [UNITEK ALPHA1250 VER2.0C]. > Parameter [ignoreoff]: [true] > Asking for UPS power ratings [F]... > set_data_krauler: index [0d] > (len = 22/255).0 008 23.50 50.0 > F => OK [#230.0 008 23.50 50.0] > 23.5V battery, interval [21.3V, 27.1V]. > Done setting up the UPS. > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > dstate_init: sock /var/state/ups/megatec_usb-Unitek open on fd 5 > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 231.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(231.0 165.0 231.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 231.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(231.0 165.0 231.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 231.0 000 50.0 26.3 00.0 00001010 > Q1 => OK [(231.0 165.0 231.0 000 50.0 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.2 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.2 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Asking for UPS status [Q1]... > set_data_krauler: index [03] > (len = 47/255).0 165.0 237.0 000 50.0 26.3 00.0 00001010 > Q1 => OK [(237.0 165.0 237.0 000 50.0 26.3 00.0 00001010] > Calculated battery charge: 86.2% > Signal 2: exiting > > (Battery not 100% as I applied a quick test to check it reported on/ > offline) > > Certainly a lot happier I think, and now the logs are no longer filling > up with connect/disconnect issues or reports of stale data. > Interesting. There is no single failure now... > Thanks for all your help on this (on and off list) - it is very much > appreciated. > > Regards > > Matt Well, it was not hard :) -- Alexander _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser