<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Hi David</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>As per the link&nbsp;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><A 
href="http://www.llondel.org/ups.shtml">http://www.llondel.org/ups.shtml</A></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>&amp; the final testing paragraph.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have set up a Lantech UPS similiar to your write 
up for<FONT size=3 face="Times New Roman">&nbsp; your Powersure Proactive and 
Powersure Personal&nbsp; UPS's</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>On LOW BATT</FONT></DIV>
<DIV><FONT size=2 face=Arial>it shuts down OK.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>BUT as with other&nbsp; many UPS's during the 
<BR>wait period from low batt to start of shutdown ... IE </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>[SHUTDOWNCMD "/sbin/shutdown -h +20"]</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>20 minutes in this case.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Reapplying AC power before the 20 minute mark stops 
the shutdown &amp; all is normal again.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>This option isn't working on my setup.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>What happens in your setup.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>What I could do a run a script that cancels the 
shutdown.&nbsp; ... with&nbsp;&nbsp; " shutdown -c" .</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>But there is no alert as to AC power being 
restored.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Pulling power before "LOW BATTERY"&nbsp; there is 
an alert.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>IE from /var/log/syslog .............</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><FONT color=#0000ff>Aug 21 12:12:05 roj-desktop 
upsmon[18721]: UPS </FONT><A href="">powerpal@localhost</A><FONT color=#0000ff> 
on line power</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>But after LOW BATTERY is detected there is NO such 
alert.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>thx</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Any comments greatly appreciated.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Roger Salisbury<BR><A 
href="mailto:roger@pchelp2u.com.au">roger@pchelp2u.com.au</A><BR>75 Mawson Pde 
<BR>Chifley Sydney NSW 2036<BR>0296618811 mob 
0400339007</FONT></DIV></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">&nbsp;</FONT> 
<DIV align=center>
<H1>Interfacing a Contact-Closure UPS to Mac OS X and Linux</H1></DIV>
<P>Having acquired some cheap <A href="http://www.liebert.com/">Liebert</A> 
Powersure Proactive and Powersure Personal UPS boxes, I set about interfacing 
them to my Mac and Linux machines. In the process I learned a few things about 
OS X that I didn't know before. </P>
<H2>The UPS</H2>
<P>Both models of UPS have a 9-way D socket on the back with a basic 
contact-closure signalling arrangement that allows <B>On Battery</B> and <B>Low 
Battery</B> to be indicated by the closing of relay contacts. The Proactive uses 
relays and is polarity-independent whereas the Personal uses solid-state 
switching and is polarity sensitive. It also assigns a remote-shutdown function 
to pin 6. </P>
<TABLE border=1 cellSpacing=3 cellPadding=3 width="30%">
  <TBODY>
  <TR>
    <TD>PIN</TD>
    <TD>FUNCTION</TD></TR>
  <TR>
    <TD align=middle>1</TD>
    <TD>Low Battery (+)</TD></TR>
  <TR>
    <TD align=middle>2</TD>
    <TD>Not Used</TD></TR>
  <TR>
    <TD align=middle>3</TD>
    <TD>Not Used</TD></TR>
  <TR>
    <TD align=middle>4</TD>
    <TD>UPS Off</TD></TR>
  <TR>
    <TD align=middle>5</TD>
    <TD>UPS Ground</TD></TR>
  <TR>
    <TD align=middle>6</TD>
    <TD>On Battery (NC)/Remote Shutdown</TD></TR>
  <TR>
    <TD align=middle>7</TD>
    <TD>Low Battery (-)</TD></TR>
  <TR>
    <TD align=middle>8</TD>
    <TD>On Battery (COM) (-)</TD></TR>
  <TR>
    <TD align=middle>9</TD>
    <TD>On Battery (NO) (+)</TD></TR></TBODY></TABLE></FONT><FONT size=2 
face=Arial></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV></BODY></HTML>