<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thank you for your reply Charles.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">First you are correct in both assumptions, my microprocessor does provide the voltages and my table listing Pin 9 should read Pin 8.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I spent some time reading and thinking about your email and realized that normal (AC present, battery normal) is at -12V which is a logic low.</div><div style="font-family: 'times new roman', 'new
 york', times, serif; font-size: 12pt; ">I thought this was how I designed it but when I got funny results I convinced myself that it was +12V.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Moving on, I have never heard of statserial but I found it on the install CD and tried it out and it is a wonderful tool that I won't forget.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Setting the switches for -12V provided normal operation of logic 0 and flipping either pin 1 or pin 8 caused that signal to change to a 1. </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman',
 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; ">HOWEVER, flipping both to +12V caused both lines to show 0 again? </span><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><span style="font-size: 12pt;">The only possible way for this is if the ground pin 5 was </span>broken<span style="font-size: 12pt;">. I moved the ground wire of my simple jig from pin 5 and connected it to a metal point on the server (which I figured was ground) and eureka! </span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">I exited out of statserial, started up nut and this time setting both lines to +12V caused the servers to shut down as expected.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span><span style="font-size: 12pt;">So, pin 5 (ground) is broken somewhere which I confirmed with my meter so
 tonight I will have to </span>disassemble<span style="font-size: 12pt;"> this server and fix the ground issue.</span></span></div><div><span><span style="font-size: 12pt;"><br></span></span></div><div><span style="font-size: 12pt; ">Thank you for your help, I am eager to fix this and get things back to normal. </span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Sincerely,</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Steve</span></div><div><span style="font-size: 12pt;"><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Charles Lepple <clepple@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Steve Read <sd_read@yahoo.ca> <br><b><span style="font-weight: bold;">Cc:</span></b> "nut-upsuser@lists.alioth.debian.org List" <nut-upsuser@lists.alioth.debian.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, February 26, 2012 5:55 PMbrocken<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Nut-upsuser] Server Does Not Shut Down<br> </font> </div> <br>
On Feb 26, 2012, at 3:14 PM, Steve Read wrote:<br><br>> I made a simple device to apply either +12 or -12volts to both pin 1(DCD) and pin 8 (CTS) to help me understand the correct handshake but I am very confused.<br>> <br>> Here is a table of what I get:<br>> <br>> State    Pin 1    Pin 9    Note         What I understand it means<br>> 1        +12V    +12V    OL            On Line - normal operation.<br>> 2        -12V    +12V    LB OL        I don't understand this. It should be On Battery.<br>> 3        +12V    -12V    OB            I thought this should be
 Low Battery.<br>> 4        -12V    -12V    OL            I thought the server should shut down?<br>> <br>> Note: results of running:<br>> /usr/local/ups/bin/upsc sdrups@localhost ups.status<br><br>For reference, here is the block for type=9 in genericups.h:<br><br>        /* Type 9 */<br>        { "APC",<br>          "Back-UPS",<br>          "APC Back-UPS (940-0023A cable)",<br>          0,                            /* cable power: none            */<br>          TIOCM_CD, 0,                  /* online: CD off              
 */<br>          TIOCM_CTS, TIOCM_CTS,         /* low battery: CTS on          */<br>          TIOCM_RTS                     /* shutdown: RTS                */<br>        },<br><br>And the text from the genericups man page:<br><br>- - - - - - - - - -<br><br>9 = APC Back-UPS/Back-UPS Pro/Smart-UPS with 940-0023A cable<br><br>[CP=none] [OL=-DCD] [LB=CTS] [SD=RTS]<br><br>- - - - - - - - - -<br><br>For your tests where you apply voltage directly, CP is not relevant. (I assume your microcontroller provides its own power to the serial port control lines.) Also, SD=RTS is the shutdown signal *to* the UPS (saying that NUT acknowledges the UPS' low battery condition). But you mentioned pins 1 (DCD) and 8 (CTS), so we can ignore that for now.<br><br>The way I
 read this, online with a good battery should be negative voltages on both DCD and CTS. OB+LB should be positive voltages on both. On Battery (but not yet low) should be DCD high, CTS low. (The fourth condition could occur if the power has returned, but the battery has not yet charged.)<br><br>I am confused as to how you could get OL for both +/+ and -/- states. Your table says Pin 1 and Pin 9, but earlier you mention Pin 1 and Pin 8. Could pin 8 have been floating during the voltage test?<br><br>You can use statserial to double-check that your serial port hardware is still good.<br><br>-- <br>Charles Lepple<br>clepple@gmail<br><br><br><br><br><br> </div> </div>  </div></body></html>