From owner-freebsd-hackers Thu Jul 6 11:40:13 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA25849 for hackers-outgoing; Thu, 6 Jul 1995 11:40:13 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA25842 for ; Thu, 6 Jul 1995 11:40:12 -0700 X-Authentication-Warning: freefall.cdrom.com: Host localhost.cdrom.com didn't use HELO protocol Prev-Resent: Thu, 06 Jul 1995 11:40:12 -0700 Prev-Resent: "hackers " Received: from violet.berkeley.edu (violet.Berkeley.EDU [128.32.155.22]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA22573 for ; Thu, 6 Jul 1995 09:28:37 -0700 Received: from virginia.edu by violet.berkeley.edu (8.6.10/1.33r) id JAA12868; Thu, 6 Jul 1995 09:28:35 -0700 Received: from avery.med.virginia.edu by uvaarpa.virginia.edu id aa22899; 6 Jul 95 12:28 EDT Received: (from pth3k@localhost) by avery.med.Virginia.EDU (8.6.11/8.6.6) id MAA60410 for jkh@violet.berkeley.edu; Thu, 6 Jul 1995 12:28:30 -0400 Date: Thu, 6 Jul 1995 12:28:30 -0400 From: "Philip T. Hoeffer" Message-Id: <199507061628.MAA60410@avery.med.Virginia.EDU> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: jkh@violet.berkeley.edu Subject: APC UPS INFORMATION you Requested Resent-To: hackers@freefall.cdrom.com Resent-Date: Thu, 06 Jul 1995 11:40:12 -0700 Resent-Message-ID: <25841.805056012@freefall.cdrom.com> Resent-From: "Jordan K. Hubbard" Sender: hackers-owner@FreeBSD.org Precedence: bulk APC Smart UPS Commands / Protocol --------------------------------- Interface: ---------- The SPC Ups's use a simple three wire interface with a shield. When in Smart Mode!!! CPU UPS --- --- TxD 2 --------------------- 2 RxD RxD 3 --------------------- 1 TxD GND 5 --------------------- 9 GND Shield ----------------- Shield Communication Parameters ------------------------ 2400 Baud, 8 Data Bits, 1 Stop Bit, No Parity ( Standard Stuff Here ) Init Ups ( Smart Mode ) ----------------------- To Start the UPS Responding to Smart UPS Commands send the character "Y", 0x59, ( A capital y ). The UPS will respond with the character string "SM" which means I assume Smart Mode. -- From this point on the UPS will respond to the commands below. General Commands ---------------- Command Description Command Description --------------------------------+----------------------------------------- A = Test Front Panel | L = Input Line Voltage "xxx.x" B = Battery Voltage "xx.x" | M = Max. Line Voltage Rcvd. "xxx.x" C = Battery Voltage "xx.x" ?| N = Min. Line Voltage Rcvd. "xxx.x" D = N / A | O = Output Voltage "xxx.x" E = ?? Generates "OK" | P = Power Load on UPS in % "xx.x" F = Line Frequency Hz "xx.x"| Q = ?? generates "08" on mine G = generates "R","T" or "S"| R = N / A H = N / A | S = N / A I = N / A | T = generates "000.1" TIME?? J = N / A | U = Self Test gen. "OK!!S" K = Shutdown UPS | V = Version Req. "6KD" on mine Send a "K", wait 1 sec, | W = Self Test Send another "K", wait | X = Generates "OK" another sec. then send a | Y = Init UPS as Smart Mode . = 0x0d | Z = N / A After 15-30 Secs UPS will | Shutdown. | --------------------------------+----------------------------------------- Return Codes ------------ The Following is a list of characters generated by the UPS & what I did to get them: "SM" Received after sending a "Y", SMART MODE ??? "6KD" UPS Version Number. "!" Unplug ac line cord from UPS. Also rcvd when cord plugged back in. call it LINE TRANSITION OCCURED. "?" Send from UPS after powered up by 1 switch on front panel. "*" Sent by UPS after second "K" sent by me. WARNING ABOUT TO SHUTDOWN?? "R" -\ "S" > Sent by UPS after I sent it the "G" command. ??? "T" -/ ================================================================= This is what I have so far. I am still going to work on this but if any of you findout anything further please let me know or post it on the net. I hope this helps someone out there. Remember you saw it from a FreeBSD'er First!!! Best of luck Ty ===================================================================== Ty Hoeffer pth3k@galen.med.virginia.edu | University of Virginia Telecommunications Support Network Analyst | Hospital Lan Support Group / Unix Systems | Medical Center Computing -------------------------------------------+------------------------- FreeBSD the Operating System of choice for PC UNIX!!! Opinions Expressed by Me are not shared by anyone!!!! *<;) =====================================================================