<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'll ask the obvious which is wouldn't it be easier to write a
      driver for NUT that would exec python code (or other scripting
      languages) that talked to the UPS?</p>
    <p>Seems to me that nowadays the hack/reverse engineer/disassembly
      crowd who loves breaking into stuff is really big into python and
      having something like this might make it easier to prototype
      drivers for oddball UPSes... - it could also help with writing
      screen-scrapers  (my understanding is the SMC1000I has a network
      port and I'm betting it provides some rudimentary webinterface)<br>
    </p>
    <p>Ted<br>
    </p>
    <div class="moz-cite-prefix">On 5/14/2022 1:01 AM, Jim Klimov via
      Nut-upsdev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJYg8vLTbN7z9zjHs6MemrWfT3V5vRDFG_F=NKD76y+8AeYNkQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto"><a
          href="https://github.com/networkupstools/nut/issues/1426"
          moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/networkupstools/nut/issues/1426</a>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Does anyone feel up to the challenge?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">There's some research and python code to
          interact with MicroLink-only serial APC models, waiting for a
          port into NUT...</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">---------- Forwarded message
          ---------<br>
          From: <strong class="gmail_sendername" dir="auto">EetuRasilainen</strong>
          <span dir="auto"><<a href="mailto:notifications@github.com"
              moz-do-not-send="true" class="moz-txt-link-freetext">notifications@github.com</a>></span><br>
          Date: Fri, May 13, 2022, 20:35<br>
          Subject: [networkupstools/nut] Support for MicroLink APC UPSs
          (Issue #1426)<br>
          To: networkupstools/nut <<a
            href="mailto:nut@noreply.github.com" moz-do-not-send="true"
            class="moz-txt-link-freetext">nut@noreply.github.com</a>><br>
          Cc: Subscribed <<a
            href="mailto:subscribed@noreply.github.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">subscribed@noreply.github.com</a>><br>
        </div>
        <br>
        <br>
        <p dir="auto">Hi there,</p>
        <p dir="auto">as you know APC is still manufacturing
          MicroLink-only UPSs. I have purchased a APC SMC1000I and just
          found out that it could only be used as a generic USB-HID UPS
          with NUT right now. And unfortunately the SMC-series is not
          capable of ModBus so there are still APC devices out there
          which can only use MicroLink for a full operation.</p>
        <p dir="auto">So I think it would be great if MicroLink-UPSs
          could be supported directly by NUT at least through a serial
          connection. That's why I'd like to raise this <em>feature
            request</em> here.</p>
        <p dir="auto">For testing purposes I have created a custom
          serial cable <a
            href="https://pinoutguide.com/UPS/apc_0625_cable_pinout.shtml"
            rel="nofollow noreferrer" target="_blank"
            moz-do-not-send="true">with this pinout</a> and used the
          following Python tool for checking the MicroLink communication
          with my unit:</p>
        <p dir="auto"><a
            href="https://github.com/klaasdc/apcups-serial-test"
            target="_blank" rel="noreferrer" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/klaasdc/apcups-serial-test</a></p>
        <p dir="auto">I was able to get information about my unit and
          even set the battery installation date through MicroLink in a
          Python shell (with the help of <a
            href="https://github.com/klaasdc/apcups-serial-test/issues/1"
            target="_blank" rel="noreferrer" moz-do-not-send="true">some
            sample code</a>). So it seems like the protocol description
          is there, it's just written in Python and needs to be ported
          to C. Unfortunately I am only familiar with Python and not
          with C :(</p>
        <p style="font-size:small;color:#666">—<br>
          Reply to this email directly, <a
            href="https://github.com/networkupstools/nut/issues/1426"
            target="_blank" rel="noreferrer" moz-do-not-send="true">view
            it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/AAMPTFB5XN5AUZJRQOI7OCTVJ2OHLANCNFSM5V4E7ROQ"
            target="_blank" rel="noreferrer" moz-do-not-send="true">unsubscribe</a>.<br>
          You are receiving this because you are subscribed to this
          thread.<img
src="https://github.com/notifications/beacon/AAMPTFDJMWHPZOLL6HH6OXTVJ2OHLA5CNFSM5V4E7RO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SNFGMWA.gif"
            alt="" moz-do-not-send="true" width="1" height="1"><span
style="color:transparent;font-size:0;display:none;overflow:hidden;opacity:0;width:0;height:0;max-width:0;max-height:0">Message
            ID: <span><networkupstools/nut/issues/1426</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Nut-upsdev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsdev@alioth-lists.debian.net">Nut-upsdev@alioth-lists.debian.net</a>
<a class="moz-txt-link-freetext" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a>
</pre>
    </blockquote>
  </body>
</html>