Re: [Nut-upsuser] Power Walker VI 2000 LCD

2010-12-21 Thread Arnaud Quette
2010/12/20 Alexander Todorov atodo...@otb.bg

 Hello,
 there's a recent thread about this or very similar model but without much
 info:

 http://lists.alioth.debian.org/pipermail/nut-upsdev/2010-October/004968.html

 I have this UPS and I'm trying to use it with nut-2.4.3 and megatec_usb
 driver:

 The ups id iin ups.conf is powewalker. /var/log/messages says:

 Dec 20 22:22:16 kvm-dom0 upsd[1666]: listening on 127.0.0.1 port 3493
 Dec 20 22:22:16 kvm-dom0 upsd[1666]: listening on ::1 port 3493
 Dec 20 22:22:16 kvm-dom0 upsd[1666]: Can't connect to UPS [powerwalker]
 (megatec_usb-powerwalker): No such file or directory
 Dec 20 22:22:16 kvm-dom0 upsd[1667]: Startup successful
 Dec 20 22:22:16 kvm-dom0 upsmon[1670]: Startup successful
 Dec 20 22:22:17 kvm-dom0 upsmon[1671]: Login on UPS [powerwal...@localhost]
 failed - got [ERR ACCESS-DENIED]
 Dec 20 22:22:22 kvm-dom0 upsmon[1671]: Poll UPS [powerwal...@localhost]
 failed - Driver not connected
 Dec 20 22:22:22 kvm-dom0 upsmon[1671]: Communications with UPS
 powerwal...@localhost lost



 What does (megatec_usb-powerwalker): No such file or directory mean? Which
 directory is this?


this is the communication socket between the driver and upsd (the server).

first, can you try with blazer_usb, since it's set to replace megatec.
Next, after having stopped NUT, launch the following (as root):
$ /path/to/blazer_usb -DDD -a  powerwalker

let it run for ~30 seconds, and send us back the output.
also send us your ups.conf, along with the output of lsusb

cheers,
Arnaud
-- 
Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Power Walker VI 2000 LCD

2010-12-21 Thread Alexander Todorov

На 21.12.2010 13:39, Arnaud Quette написа:


What does (megatec_usb-powerwalker): No such file or directory mean? Which
directory is this?



this is the communication socket between the driver and upsd (the server).



Hi Arnaud,
thanks for the explanation. Is the missing directory a bug or this is indication 
that the incorrect driver was used?



first, can you try with blazer_usb, since it's set to replace megatec.
Next, after having stopped NUT, launch the following (as root):
$ /path/to/blazer_usb -DDD -a  powerwalker



I tried blazer_usb instead of megatec_usb and things now seem to work. I get 
messages on the console when the UPS goes on battery or when on AC power.


FYI (now on battery):
# upsc powerwalker
battery.voltage: 24.60
battery.voltage.nominal: 24.0
beeper.status: enabled
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.vendorid: 0665
driver.version: 2.4.3
driver.version.internal: 0.03
input.current.nominal: 9.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 3.4
input.voltage.fault: 3.9
input.voltage.nominal: 220
output.voltage: 221.0
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 0
ups.productid: 5161
ups.status: OB
ups.type: offline / line interactive
ups.vendorid: 0665



I have an additional question though. According to the docs NUT will execute the 
SHUTDOWNCMD when the battery level becomes low/critical.


Is there a way to configure when the battery level is considered low? For 
example - shut down when battery reaches 50% of its charge.


Thanks,
Alexander.

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Power Walker VI 2000 LCD

2010-12-21 Thread Arjen de Korte

Citeren Alexander Todorov atodo...@otb.bg:


# upsc powerwalker
battery.voltage: 24.60
battery.voltage.nominal: 24.0
beeper.status: enabled
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.vendorid: 0665
driver.version: 2.4.3
driver.version.internal: 0.03
input.current.nominal: 9.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 3.4
input.voltage.fault: 3.9
input.voltage.nominal: 220
output.voltage: 221.0
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 0
ups.productid: 5161
ups.status: OB
ups.type: offline / line interactive
ups.vendorid: 0665



I have an additional question though. According to the docs NUT will  
execute the SHUTDOWNCMD when the battery level becomes low/critical.


Is there a way to configure when the battery level is considered  
low? For example - shut down when battery reaches 50% of its charge.


You'll see in the above output that your UPS doesn't report battery  
charge. The blazer_usb driver can attempt to guestimate the charge  
remaining (see 'man 8 blazer'), but since the UPS doesn't report the  
load either, this will not be nearly good enough to base a decision to  
shutdown on. We really have no reliable means to determine charge  
remaining if the UPS is not providing us with the necessary  
measurement values.


You'll have to rely on the UPS to warn about a low battery well before  
it is actually empty to shutdown. If this is not what you want, buy a  
different UPS that is smart enough to keep track of the charge  
remaining without the help of a NUT driver. It will invariably also  
support changing the value at which it decides when the battery is low.


Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Power Walker VI 2000 LCD

2010-12-21 Thread Alexander Todorov


You'll see in the above output that your UPS doesn't report battery charge. The
blazer_usb driver can attempt to guestimate the charge remaining (see 'man 8
blazer'), but since the UPS doesn't report the load either, this will not be
nearly good enough to base a decision to shutdown on. We really have no reliable
means to determine charge remaining if the UPS is not providing us with the
necessary measurement values.


Hi Arjen,
thanks for the pointer. I configured the guesstimate settings described in the 
man page. Does this mean that when the battery charge reaches the value of

default.battery.voltage.low it will shut down?

Sorry for asking but I'm using UPS on Linux for the first time.


Regards,
Alex.

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Power Walker VI 2000 LCD

2010-12-21 Thread Arjen de Korte

Citeren Alexander Todorov atodo...@otb.bg:

You'll see in the above output that your UPS doesn't report battery  
charge. The

blazer_usb driver can attempt to guestimate the charge remaining (see 'man 8
blazer'), but since the UPS doesn't report the load either, this will not be
nearly good enough to base a decision to shutdown on. We really  
have no reliable

means to determine charge remaining if the UPS is not providing us with the
necessary measurement values.
thanks for the pointer. I configured the guesstimate settings  
described in the man page. Does this mean that when the battery  
charge reaches the value of

default.battery.voltage.low it will shut down?


No, see above.

This only works if a UPS reports the battery charge itself. The values  
drivers can calculate are not accurate enough to base a decision on.  
There is no way to keep track of the battery charge- and discharge  
current that would be needed to accurately calculate the charge  
remaining. We also have no idea what is happening to a battery when a  
driver is not running.


Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser