[Nut-upsuser] Unitek UPS 1250xD - megatec_usb driver
Alexander I. Gordeev
lasaine at lvk.cs.msu.su
Mon Feb 18 11:33:38 UTC 2008
Hi Matt,
On Sun, 17 Feb 2008 17:16:27 +0300, Matt Brown <matt at mbrown.co.uk> wrote:
> root at pegasus:~# megatec_usb -a Unitek -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 (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...
> 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 234.0 000 50.0 28.0 00.0 00001010
> Q1 => OK [(234.0 165.0 234.0 000 50.0 28.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.0 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.0 28.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 [(]
> (len = 47/128).0 165.0 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> 1 out of 5 detection attempts failed (minimum failures: 2).
> Asking for UPS information [I]...
> get_data_krauler: index [0c], prefix [#]
> (len = 39/128)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]...
> get_data_krauler: index [0d], prefix [#]
> (len = 22/128).0 008 23.50 50.0
> F => OK [#230.0 008 23.50 50.0]
> 23.5V battery, interval [21.3V, 27.1V].
> - Unable to fetch string 11
> Done setting up the UPS.
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> dstate_init: sock /var/state/ups/megatec_usb-Unitek open on fd 5
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> 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]
> -> 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 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 231.0 000 50.0 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.0 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.0 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.0 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 237.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(237.0 165.0 237.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
> Asking for UPS status [Q1]...
> get_data_krauler: index [03], prefix [(]
> (len = 47/128).0 165.0 231.0 000 50.2 28.0 00.0 00001010
> Q1 => OK [(231.0 165.0 231.0 000 50.2 28.0 00.0 00001010]
> Calculated battery charge: 100.0%
>
>
> And so it repeats until I stop it ....
>
> Regards
>
> Matt
Please update to revision 1308. Does it work better?
--
Alexander
More information about the Nut-upsuser
mailing list