<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; ">Hello,</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 have a UPS connected to my server with the following:</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; ">Server is Suse 10.1</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Nut version is Network UPS Tools - Generic UPS driver 1.32 (2.0.4)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I installed this around
 2005 and cannot remember how I installed the software.</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; ">ups.conf:</div><div><div><font face="'times new roman', 'new york', times, serif">[sdrups]</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">     </span>driver = genericups</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">    </span>port = /dev/ttyS0</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">      </span>desc = "For Server & Backup"</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">     </span>upstype =
 9</font></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; ">upsd.conf:</div><div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space: pre; ">      </span>ACL all 0.0.0.0/0</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">      </span>ACL localhost 127.0.0.1/255.255.255.0</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">  </span>ACL server 192.168.0.4/255.255.255.0</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">    </span>ACCEPT localhost</font></div><div><font
 face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>ACCEPT server</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space: pre; ">       </span>REJECT all</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">upsd.users:</font></div><div><font face="'times new roman', 'new york', times, serif"><div>[root]</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>password = autocad</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>allowfrom = localhost server</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>instcmds = all</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>upsmon slave</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>upsmon
 master<span class="Apple-tab-span" style="white-space:pre">          </span># or upsmon slave</div><div><br></div><div>upsmon.conf:</div><div><div><span class="Apple-tab-span" style="white-space:pre">     </span>POWERDOWNFLAG /etc/killpower</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>MONITOR sdrups@localhost 1 root autocad master</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>SHUTDOWNCMD "/sbin/shutdown -h +0"</div><div><br></div><div>This has been running flawlessly since I installed it until recently. The problem is that the UPS died. What I did not mention is the UPS is home made using a switching AC to DC and a Inverter to convert the DC back to AC along with a microcontroller and a car battery (it is outside in the garage)</div><div><br></div><div>While replacing the power supply (because that is what smoked) I decided to rebuild the microcontroller. It is complete however I cannot get the AC present and low
 battery to work properly. It uses a standard serial port with simple relay switching.</div><div><br></div><div>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></div></div><div><br></div><div>Here is a table of what I get:</div><div><br></div><div>State<span class="Apple-tab-span" style="white-space:pre">     </span>Pin 1<span class="Apple-tab-span" style="white-space:pre">       </span>Pin 9<span class="Apple-tab-span" style="white-space:pre">       </span>Note <span class="Apple-tab-span" style="white-space:pre">          </span>What I understand it means</div><div>1<span class="Apple-tab-span" style="white-space:pre">          </span>+12V<span class="Apple-tab-span" style="white-space:pre">        </span>+12V<span class="Apple-tab-span" style="white-space:pre">        </span>OL<span class="Apple-tab-span" style="white-space:pre">                  </span>On Line - normal
 operation.</div><div>2<span class="Apple-tab-span" style="white-space:pre">              </span>-12V<span class="Apple-tab-span" style="white-space:pre">        </span>+12V<span class="Apple-tab-span" style="white-space:pre">        </span>LB OL<span class="Apple-tab-span" style="white-space:pre">               </span>I don't understand this. It should be On Battery.</div><div>3<span class="Apple-tab-span" style="white-space:pre">           </span>+12V<span class="Apple-tab-span" style="white-space:pre">        </span>-12V<span class="Apple-tab-span" style="white-space:pre">        </span>OB<span class="Apple-tab-span" style="white-space:pre">                  </span>I thought this should be Low Battery.</div><div>4<span class="Apple-tab-span" style="white-space:pre">               </span>-12V<span class="Apple-tab-span" style="white-space:pre">        </span>-12V<span class="Apple-tab-span" style="white-space:pre">        </span>OL<span class="Apple-tab-span" style="white-space:pre">                  </span>I thought the server should shut
 down?</div><div><br></div><div><div style="font-family: 'Times New Roman'; "><div><font face="'times new roman', 'new york', times, serif"><div>Note: results of running:</div><div>/usr/local/ups/bin/upsc sdrups@localhost ups.status<br></div><div><br></div></font></div></div></div><div>I am completely confused as this has been working for years. </div><div>The only state that I understand is state 1.</div><div>Also, none of these states causes the server to shut down.<br></div><div><br></div><div>Where I live I don't get many power failures that cause the UPS to shut down the server but I have had them and so it used to work.</div><div><br></div><div>Please help me in understanding what is wrong. Because it has run for years I don't remember anything about how it works.</div><div><br></div><div><br></div><div>Thank you for any help-
 Steve</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></font></div></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div></div></div></body></html>