*BSD News Article 84581


Return to BSD News archive

Lines: 62
Newsgroups: comp.unix.bsd.freebsd.misc
Message-ID: <yqr5nMD4F99asz2@borki.zug.use.ch>
From: BORKI@zug.use.ch (Reto Burkhalter)
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!surfnet.nl!swidir.switch.ch!scsing.switch.ch!dino.active.ch!hp.use.ch!zug.use.ch!BORKI
Organization: Turicum Communications
Subject: Re: ups monitoring ...
Date: Sun, 08 Dec 1996 12:11:03 +0100
X-Mailer: MicroDot 1.11beta29 [REGISTERED 004f99]
References: <32a71b41.3337367@news.us.world.net>
X-Gateway: ZCONNECT UH .use.ch [UNIX/Connect v0.71]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Z-F-TO: Michael Enkelis
X-Z-PGP-KEY-AVAIL: 
X-Z-CHARSET: ISO1

>> Michael Enkelis
>> 05.12.1996


> I don't think we will be seeing anything real fancy for the APC
> product.  I have the SmartUPS model, and after talking to
> APC about it's command set.  A user can "license" the
> document for $50.00 and signing a non-disclosure form,
> which would limit including it as source code in FreeBSD.
> I did find the RS-232 pin-outs on the APC fax-back system
> and Microsoft has a older version of the APC monitor program
> located in Windows-95 download directory at MSN.COM which
> i grabbed and installed on my Win-95 system.  I then made a "Y"
> cable to my FreeBSD system and proceded to have FreeBSD
> log all serial port traffic to/from the UPS.  I expect to reverse
> engeener the command set perty soon, and maybe then release
> it to the FreeBSD group.  If anybody wants to help with this i would
> like to hear from you.

I have an APC SmartUPS v/s.

I did the following:

- /etc/uucp/port

  port ups
  device /dev/cuaa1
  dialer hayes
  speed 2400

- cu -l cuaa1
  Answer: Connected.


  Command       Action                      Answer
  ------------------------------------------------

  Y             "Login to UPS"              SM
  A             kind of a test              OK
  G             ?                           T or S
  K             UPS Shutdown after x sec    OK
  X             check if selftest was OK    OK or NO
  y             prints copyright            (C) APCC
  W             selftest                    OK
  b             prints type of UPS          e.g. 42.J.I
  n             prints serial number        gs964....
  U             simulated power interrupt   !$
  a             ?                           .!$?.3
  R             quit session                BYE
  ------------------------------------------------

  all commands are case-sesitive!

  During a loss of power, the UPS sends '!' with a delay
  of about 5 sec.
  At the end of the power interrupt follows a '$'


Hope that helps...


Reto