[Nut-upsuser] battery.charge and other fixes needed for X-Power Tigra 1kVA

Tmima Pliroforikis Perifereiakis Enotitas Pierias pliroforiki at pieria.pkm.gov.gr
Thu May 10 07:11:55 UTC 2012


Hello all,

been 5 years since I posted on this list, glad to be back :)

I have a number of X-power Tigra 1kVA online UPS units. From some 
knowledgeable folks working for the local distributor, I learnt that 
from inside this looked like a Best 610 ups unit.

Before, I had this UPS hooked via serial to my Windows 2003 server. For 
monitoring, some winpilot/upspilot software was also provided. This 
software produced also a csv format log (upsdata.csv) that contained the 
following lines:

05/10/2012,07:36:56,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,035,029
05/10/2012,07:37:56,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,036,029
05/10/2012,07:38:56,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,036,029
05/10/2012,07:39:56,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,036,029
05/10/2012,07:40:56,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,035,029
05/10/2012,07:41:57,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,036,030
05/10/2012,07:42:57,COM1,ON-LINE,1,224,999,999,231,999,999,041.1,50.0,036,030
05/10/2012,07:43:57,COM1,ON-LINE,1,225,999,999,229,999,999,041.1,50.0,036,030
05/10/2012,07:44:57,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,036,030
05/10/2012,07:45:57,COM1,ON-LINE,1,225,999,999,231,999,999,041.1,50.0,035,030


So I disabled this bundled software and installed the windows version 
NUT-Installer-2.6.3-3.msi, without the libusb option (since I had a 
serial UPS)

In ups.conf I used the following

[ups1]
driver = bestups
port = com1
id = 610,1000,230,230,10.0,36.0
nombattvolt=41.1
battvoltmult = 18

With regard to the id option, the 2nd, 3rd and 4th options seemed ok. 
Not sure about the fifth (10.0). And definitely not sure about the last 
(36.0). I used 36.0 because the Best 610-1000 lists 36V as the DC bus 
voltage. Not sure if that is correct or not. According to specs ( 
http://www.lexis.gr/upload/File/ProductBrochures/XPower/Tigrablack.pdf ) 
this Xpower ups has three (3) 12V batteries.

I used nombattvolt 41.1 since that seemed to be similar also to the Best 
610-1000. As for battvoltmult, I must say I also experimented here.

The bestups driver seems to run ok:

C:\PROGRA~1\NUT\bin>bestups.exe -DDDDDDD -a ups1
Network UPS Tools - Best UPS driver 1.06 (2.6.3-3534:3545M)
    0.000000     send_to_all: SETINFO driver.parameter.port "com1"
    0.000000     send_to_all: SETINFO driver.parameter.id 
"610,1000,230,230,10.0,36.0"
    0.000000     send_to_all: SETINFO driver.parameter.nombattvolt "41.1"
    0.015625     send_to_all: SETINFO driver.parameter.battvoltmult "18"
    0.015625     debug level is '7'
    0.015625     w32_serial_open (com1)
    0.015625     setting initial state on com1
    0.015625     000007AC = w32_serial_open (com1)
    0.015625     Warning: no locking method is available: No error [The 
operation completed successfully. ]
    0.015625     vmin_ 0, vtime_ 0
    0.109376     action 0
    0.109376     vtime 0, vmin 1

    0.125002     ReadTotalTimeoutConstant -2, ReadIntervalTimeout -1, 
ReadTotalTi
meoutMultiplier -1
    0.125002     send_to_all: SETINFO device.type "ups"
    0.125002     send_to_all: SETINFO driver.version "2.6.3-3534:3545M"
    0.125002     send_to_all: SETINFO driver.version.internal "1.06"
    0.125002     send_to_all: SETINFO driver.name "bestups"
    0.328129     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.328129     w32_serial_read : Reading 8 characters
    0.328129     w32_serial_read : total characters read = 8
    0.328129     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.343754     w32_serial_read : characters are available on input buffer
    0.343754     w32_serial_read : Reading 1 characters
    0.359380     w32_serial_read : total characters read = 1
    0.359380     w32_serial_read : Reading 7 characters
    0.359380     w32_serial_read : total characters read = 8
    0.359380     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.359380     w32_serial_read : characters are available on input buffer
    0.359380     w32_serial_read : Reading 1 characters
    0.390630     w32_serial_read : total characters read = 1
    0.390630     w32_serial_read : Reading 7 characters
    0.390630     w32_serial_read : total characters read = 8
    0.390630     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.390630     w32_serial_read : characters are available on input buffer
    0.390630     w32_serial_read : Reading 1 characters
    0.421880     w32_serial_read : total characters read = 1
    0.421880     w32_serial_read : Reading 7 characters
    0.421880     w32_serial_read : total characters read = 8
    0.421880     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.421880     w32_serial_read : characters are available on input buffer
    0.421880     w32_serial_read : Reading 1 characters
    0.453131     w32_serial_read : total characters read = 1
    0.453131     w32_serial_read : Reading 7 characters
    0.453131     w32_serial_read : total characters read = 8
    0.453131     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    0.453131     w32_serial_read : characters are available on input buffer
    0.468756     w32_serial_read : Reading 1 characters
    0.500006     w32_serial_read : total characters read = 1
    0.500006     w32_serial_read : Reading 6 characters
    0.500006     w32_serial_read : total characters read = 7
    0.500006     NOTE: using user-supplied ID response
    0.500006     send_to_all: SETINFO input.voltage.nominal "230"
    0.500006     send_to_all: SETINFO output.voltage.nominal "230"
    0.515632     send_to_all: SETINFO ups.mfr "Best Power"
    0.515632     send_to_all: SETINFO ups.model "610 1000"
    0.515632     send_to_all: SETINFO battery.voltage.nominal "216"
Detected Best Power 610 1000 on com1
    0.609383     send_to_all: ADDCMD test.battery.start
    0.625008     send_to_all: ADDCMD test.battery.stop
    1.015638     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    1.031263     w32_serial_read : Reading 51 characters
    1.031263     w32_serial_read : total characters read = 51
    1.031263     Communications with UPS lost: Poll failed: short read 
(got 3 bytes)
    1.031263     dstate_init: sock \\.\pipe\bestups-ups1 open on fd 1956
    1.031263     send_to_all: SETINFO driver.parameter.pollinterval "2"
    1.031263     send_to_all: SETINFO device.mfr "Best Power"
    1.031263     send_to_all: SETINFO device.model "610 1000"
    1.437518     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    1.437518     w32_serial_read : Reading 47 characters
    1.437518     w32_serial_read : total characters read = 47
    1.437518     Communications with UPS re-established
    1.453144     send_to_all: SETINFO battery.voltage "41.0"
    1.453144     send_to_all: SETINFO input.voltage "226.5"
    1.453144     send_to_all: SETINFO output.voltage "230.7"
    1.453144     send_to_all: SETINFO ups.load "035"
    1.453144     send_to_all: SETINFO input.frequency "50.0"
    1.453144     send_to_all: SETINFO ups.temperature "34.0"
    1.453144     send_to_all: SETINFO battery.charge "-24.8"
    1.453144     send_to_all: SETINFO ups.status "OL"
    1.453144     send_to_all: DATAOK
    3.437544     w32_serial_read : ulen 64, vmin_ 1, vtime_ 0, hEvent 
000007A8
    3.437544     w32_serial_read : Reading 47 characters
    3.437544     w32_serial_read : total characters read = 47


My questions are:

1) Any ideas on why battery.charge is set to -24.8 (note also the 
negative sign)

2) Anything else that should be corrected in ups.conf, in your opinion?

3) Regardless if the battery.charge is correct, will the system shutdown 
when battery charge is low?

4) In my FreeBSD installations, ups.log is written as a log, anything 
similar for Windows?

I understand that this is a large number of questions, please accept my 
apologies in advance.

With kind regards,


Michail.-



More information about the Nut-upsuser mailing list