-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kjell Claesson wrote: > Hi Jeff, >> Jeffrey B. Green wrote: >>> However, they are fairly simple tools and not configurable beyond >>> the command line arguments specifying the serial line and polling times. >> Sorry, small correction. Not polling times, rather the breakout delay >> time and the UPS shutdown delay time. > > This sounds like the powercom program. So I think you need the powercom > driver. > > Problem is that I don't think we have the papers on the protocol. > > What you can do is starting the UPSMON program, then cat the port. > Ex: > cat /dev/ttyS0 > > If it returns something like this it is powercom. > (199.0 199.0 235.0 019 50.0 27.8 37.8 00101000 > > Then if you can check the speed on the port. The powercom driver is using > 1200 b/s.
I tried a slight variant of what you suggested above (after starting upsmon), e.g. while true do cat /dev/ttyS0 | od -xc sleep 1 done > ttyS0.out & Letting it run for awhile, I get: % cat ttyS0.out 0000000 5130 0000 0000 7353 0000 09f4 7ed3 507e 0 Q \0 \0 \0 \0 S s \0 \0 364 \t 323 ~ ~ P 0000020 5130 0000 0000 7353 0000 09f4 7ed3 517e 0 Q \0 \0 \0 \0 S s \0 \0 364 \t 323 ~ ~ Q 0000040 5030 0000 0000 7353 0000 09f4 7ed3 507e 0 P \0 \0 \0 \0 S s \0 \0 364 \t 323 ~ ~ P 0000060 5030 0000 0000 7353 0000 09f4 7dd3 507d 0 P \0 \0 \0 \0 S s \0 \0 364 \t 323 } } P 0000100 5030 0000 0000 7353 0000 00f4 0 P \0 \0 \0 \0 S s \0 \0 364 \0 0000113 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 0000005 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 [...more of the same...] 0000005 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 0000005 0000000 0000000 7353 0000 S s \0 \0 0000004 0000000 00f4 364 \0 0000001 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 [...more of the same...] 0000005 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 0000005 0000000 0000000 7353 0000 S s \0 \0 0000003 0000000 f400 \0 364 0000002 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 0000005 0000000 0000000 7353 0000 00f4 S s \0 \0 364 \0 0000005 0000000 (END) The powercom driver in nut doesn't seem to work at all even though upsmon starts up with the message: Copyright(c) Powercom Co., Ltd., all rights reserved. UPSMON V0.91a program start! UPSMON: The UPS serial port use /dev/ttyS0. UPSMON: Ac Fail count down is seted 300 secs. UPSMON: UPS shutdown delay time is seted 1 mins and 0 secs. Check UPS type..... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAks5PtwACgkQMfiP4rwHDZzTxgCcCFX/Tb7MnU2m4a0qH1b+F2uQ fwYAniadpg0HuQmdHOnfglEWI24Vvb2l =TBoo -----END PGP SIGNATURE----- _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser