Hi Andrew,<br><br><div><span class="gmail_quote">2006/1/9, Andrew Burgess <<a href="mailto:aab@cichlid.com">aab@cichlid.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I got one of these working recently with NUT. I modified the<br>cpsups.c driver, mostly deleting leading "\r" in the strings,<br>which seemed to confuse my ups, changed the timeout which caused<br>lost characters and adding the id returned by the ups.
<br><br>I haven't really finished<br>with it but it did find the ups, poll it and return battery level<br>etc. I used the serial interface and this was linux not bsd.<br><br>Attached is cpsups.c (this was from nut-2.0.3)<br>
<br></blockquote></div><br>If the changes are limited, you'd better extend cpups with some "type" option. The best would be to detect the init failure, and try with the alternative one. That shouldn't be too hard to do.
<br><br>From there, prefer the upsdev list to post code and talk about development.<br clear="all"><br>Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt<br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">
http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/
</a>