<html>
<body>
<font size=3>Peter,<br>
&nbsp;&nbsp; I have not got the megatec_usb working and talking to upsd.
The upsc command gives<br><br>
battery.charge: 95.0<br>
battery.voltage: 27.00<br>
battery.voltage.nominal: 24.0<br>
driver.name: megatec_usb<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: auto<br>
driver.version: 2.1.0<br>
driver.version.internal: 1.5<br>
input.frequency: 50.0<br>
input.voltage: 248.0<br>
input.voltage.fault: 140.0<br>
input.voltage.maximum: 248.0<br>
input.voltage.minimum: 246.5<br>
output.voltage: 248.0<br>
output.voltage.nominal: 240.0<br>
ups.beeper.status: disabled<br>
ups.delay.shutdown: 0<br>
ups.delay.start: 2<br>
ups.load: 11.0<br>
ups.mfr: UIS AblerexAble<br>
ups.model: ex USB Int rface 049e<br>
ups.serial: unknown<br>
ups.status: OL<br>
ups.temperature: 25.0<br><br>
I know the 'mfr' and 'model' fields are wrong. I may look at that
next.<br>
I have implemented the following commands.<br>
Q1<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Status Inquiry<br>
Q<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Turn on/off
beep&nbsp; (not sure this is working correctly)<br>
C<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Cancel shutdown
command<br>
T<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>10 second
test<br>
I<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UPS Information
Command (still needs work)<br>
F<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>UPS Rating
Information<br><br>
Regards<br>
&nbsp;&nbsp; Jon<br><br>
At 13:15 1/02/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Jon Gough wrote:<br>
&gt; <br>
&gt; Carlos,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; I have implemented that and it works.<br>
&gt; <br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; What I want to do is run the
T&lt;n&gt;&nbsp; command to have it test for a <br>
&gt; different length of time than the standard 10 secs. If I can get
this <br>
&gt; to work then I can send other commands to setup the UPS correctly,
ie <br>
&gt; wait 10 mins after loss of power before shutting servers down, but
<br>
&gt; make sure there is 2 mins of power left to allow for shut down to
occur.<br><br>
I don't think that kind of functionality belongs in the driver. The<br>
driver should limit itself to reading information and sending
commands<br>
to the UPS. Decisions about when and how to shut down should be left<br>
to upsmon, which does it uniformly for all drivers.<br><br>
-- Peter</font></blockquote>

<BR><BR>
<TABLE width=400><HR>
<P style="FONT: 9pt/11pt verdana"><a href="http://www.avast.com">avast! Antivirus</a>: Outbound message clean.
<P style="FONT: 8pt/11pt verdana">Virus Database (VPS): 000709-1, 31/01/2007<BR>Tested on: 1/02/2007 2:13:51 PM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>

</body>
<br>
</html>