[Nut-upsuser] Problem with blazer_ser/megatec when upgrading to 2.6.0 from 2.4
Dushan Tcholich
dusanc at gmail.com
Thu Apr 28 09:43:09 UTC 2011
Hello
First things first, thanks for great work with NUT.
For years I used Informer compact 3kVA UPS
http://www.informups.com/informer_compact.html with nut/megatec serial
driver, but it stopped working when I switched to blazer_ser with
2.6.0 upgrade.
I'm using 2.6.0 on gentoo.
Blazer_ser seems to connect with UPS, but upsmon reports driver not connected.
uname -a
Linux localhost 2.6.36-gentoo-r7 #3 SMP Tue Feb 8 18:39:54 CET 2011
x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GenuineIntel GNU/Linux
Configuration:
cat ups.conf | grep "#" -v
[munja]
driver = blazer_ser
port = /dev/ttyS0
cat upsd.conf | grep "#" -v
LISTEN 127.0.0.1 3493
cat upsd.users | grep "#" -v
[monuser]
password = #######
cat upsmon.conf | grep "#" -v
MONITOR munja at localhost 1 monuser ###### slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
/lib64/nut/blazer_ser -DDDDD -a munja -i 10
Network UPS Tools - Megatec/Q1 protocol serial driver 1.51 (2.6.0)
0.000000 send_to_all: SETINFO driver.parameter.port "/dev/ttyS0"
0.000051 debug level is '5'
0.100836 send_to_all: SETINFO device.type "ups"
0.100860 send_to_all: SETINFO driver.version "2.6.0"
0.100870 send_to_all: SETINFO driver.version.internal "1.51"
0.100879 send_to_all: SETINFO driver.name "blazer_ser"
0.100886 Trying megatec protocol...
0.100970 send: Q1
0.326638 read: (246.0 140.0 246.0 004 50.0 54.0 25.0 00001000
0.326681 send_to_all: SETINFO input.voltage "246.0"
0.326695 send_to_all: SETINFO input.voltage.fault "140.0"
0.326707 send_to_all: SETINFO output.voltage "246.0"
0.326730 send_to_all: SETINFO ups.load "4"
0.326741 send_to_all: SETINFO input.frequency "50.0"
0.326752 send_to_all: SETINFO battery.voltage "54.00"
0.326763 send_to_all: SETINFO ups.temperature "25.0"
0.326772 send_to_all: SETINFO beeper.status "disabled"
0.326782 send_to_all: SETINFO ups.type "offline / line interactive"
0.326792 send_to_all: SETINFO ups.status "OL"
0.326799 Status read in 1 tries
0.326806 Supported UPS detected with megatec protocol
0.326877 send: F
0.446626 read: #230.0 0.0 048.0 50.0
0.446660 send_to_all: SETINFO input.voltage.nominal "230"
0.446671 send_to_all: SETINFO input.current.nominal "0.0"
0.446683 send_to_all: SETINFO battery.voltage.nominal "48.0"
0.446694 send_to_all: SETINFO input.frequency.nominal "50"
0.446701 Ratings read in 1 tries
0.446773 send: I
0.634630 read: # IN03064B
0.634659 send_to_all: SETINFO ups.mfr ""
0.634669 send_to_all: SETINFO ups.model ""
0.634679 send_to_all: SETINFO ups.firmware "IN03064B"
0.634686 Vendor information read in 1 tries
0.634693 Battery runtime will not be calculated (runtimecal not set)
0.634702 send_to_all: SETINFO ups.delay.start "180"
0.634711 send_to_all: SETINFO ups.delay.shutdown "30"
0.634719 send_to_all: ADDCMD beeper.toggle
0.634726 send_to_all: ADDCMD load.off
0.634733 send_to_all: ADDCMD load.on
0.634740 send_to_all: ADDCMD shutdown.return
0.634748 send_to_all: ADDCMD shutdown.stayoff
0.634755 send_to_all: ADDCMD shutdown.stop
0.634763 send_to_all: ADDCMD test.battery.start
0.634776 send_to_all: ADDCMD test.battery.start.deep
0.634785 send_to_all: ADDCMD test.battery.start.quick
0.634793 send_to_all: ADDCMD test.battery.stop
0.634864 send: Q1
0.862632 read: (246.0 140.0 246.0 004 50.0 54.0 25.0 00001000
0.862677 send_to_all: DATAOK
0.862793 dstate_init: sock /var/lib/nut/blazer_ser-munja open on fd 5
0.862808 send_to_all: SETINFO driver.parameter.pollinterval "10"
0.862818 send_to_all: SETINFO device.mfr ""
0.862827 send_to_all: SETINFO device.model ""
0.862900 send: Q1
1.090631 read: (246.0 140.0 246.0 003 50.0 54.0 25.0 00001000
1.090670 send_to_all: SETINFO ups.load "3"
10.871363 send: Q1
11.098641 read: (246.0 140.0 246.0 005 50.0 54.0 25.0 00001000
11.098681 send_to_all: SETINFO ups.load "5"
upsmon -DDDDD
Network UPS Tools upsmon 2.6.0
0.000000 UPS: munja at localhost (slave) (power value 1)
0.000153 Using power down flag file /etc/killpower
0.000261 debug level is '5'
0.001301 Trying to connect to UPS [munja at localhost]
0.002166 Logged into UPS munja at localhost
0.002184 pollups: munja at localhost
0.002197 get_var: munja at localhost / status
0.002279 Poll UPS [munja at localhost] failed - Driver not connected
0.002290 do_notify: ntype 0x0005 (COMMBAD)
0.002297 Communications with UPS munja at localhost lost
5.002588 pollups: munja at localhost
5.002617 get_var: munja at localhost / status
5.002758 Poll UPS [munja at localhost] failed - Driver not connected
5.002771 do_notify: ntype 0x0008 (NOCOMM)
5.002781 UPS munja at localhost is unavailable
10.003015 pollups: munja at localhost
10.003048 get_var: munja at localhost / status
10.003191 Poll UPS [munja at localhost] failed - Driver not connected
15.003280 pollups: munja at localhost
15.003309 get_var: munja at localhost / status
15.003450 Poll UPS [munja at localhost] failed - Driver not connected
What am I missing?
Thanks for your time
Dushan
More information about the Nut-upsuser
mailing list