<div dir="ltr">Thanks Marco, I may try this if I can't get David's udev rules to work.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 9, 2019 at 12:58 AM Marco Walther <<a href="mailto:marco@sonic.net">marco@sonic.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div>On 12/8/19 8:18 PM, David Zomaya wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      <div id="gmail-m_-3850582119948759949divtagdefaultwrapper" dir="ltr">
        <p>I haven't tried it on RaspberryPi, but if there's some
          specific Tripp Lite information I can help with, let me know.</p>
      </div>
    </blockquote>
    <p>We had that discussion about the <span id="gmail-m_-3850582119948759949productTitle">SMART1500LCDT  & USB a long time ago:-(
        I bought mine in 2013 (still going strong on the second set of
        batteries) and in August 2016 we had some discussions about the
        USB disconnects.</span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"><br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle">I now use an USB hub
        which can turn it's ports off via software commands and when my
        Linux box (Odroid X2 - ARM) looses the connection, it basically
        cycles the USB port of the UPS and then it can connect again.</span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"><br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle">root@odroid-www:~/bin#
        cat check_ups.sh <br>
        #!/bin/bash<br>
        <br>
        while true<br>
        do<br>
            x=$(curl -s -o -
'<a href="http://192.168.1.5:85/cgi-bin/nut/upsstats.cgi?host=tripplite@127.0.0.1:3493" target="_blank">http://192.168.1.5:85/cgi-bin/nut/upsstats.cgi?host=tripplite@127.0.0.1:3493</a>'
        | sed  's:<[^>]*>::g' | awk 'BEGIN {s = 0; } $1 ==
        "Status:" { s = 1; next; } s == 1 { print $0; s = 0; }')<br>
        <br>
            if [ "$x" != "ONLINE" ]<br>
            then<br>
                logger -p daemon.warning "Triplite is not offline,
        trying to restart USB"<br>
                /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 0<br>
                sleep 5<br>
                /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 1<br>
                sleep 30<br>
            else<br>
                sleep 300<br>
            fi<br>
        done<br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"><br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle">Not sure, if this is
        still the same problem. But I have my solution;-)</span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"><br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle">-- Marco</span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"><br>
      </span></p>
    <p><span id="gmail-m_-3850582119948759949productTitle"></span></p>
    <blockquote type="cite">
      <div id="gmail-m_-3850582119948759949divtagdefaultwrapper" dir="ltr">
        <p><br>
        </p>
        <p>David Zomaya</p>
        <p>Tripp Lite<br>
        </p>
        <br>
        <br>
        <div style="color:rgb(0,0,0)">
          <hr style="display:inline-block;width:98%">
          <div id="gmail-m_-3850582119948759949divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
              Nut-upsuser
<a href="mailto:nut-upsuser-bounces+david_zomaya=tripplite.com@alioth-lists.debian.net" target="_blank"><nut-upsuser-bounces+david_zomaya=tripplite.com@alioth-lists.debian.net></a>
              on behalf of Charles Lepple <a href="mailto:clepple@gmail.com" target="_blank"><clepple@gmail.com></a><br>
              <b>Sent:</b> Sunday, December 8, 2019 8:36 PM<br>
              <b>To:</b> Layne Fowler<br>
              <b>Cc:</b> nut-upsuser<br>
              <b>Subject:</b> [EXTERNAL] Re: [Nut-upsuser] Tripp Lite
              SMART1500LCD repeatedly disconnecting and reconnecting</font>
            <div> </div>
          </div>
          <div><font size="2" face="verdana,arial,sans-serif" color="#C11B17"><span>This is an
                <b>EXTERNAL</b> email. Please take a moment and think
                before clicking any links or opening any attachments
                from this email. If suspicious, please forward to
                <a href="mailto:ishelpdesk@tripplite.com" target="_blank">ishelpdesk@tripplite.com</a> for review.</span></font>
            <hr>
            On Dec 8, 2019, at 5:46 PM, Layne Fowler <<a href="mailto:layne.fowler@gmail.com" target="_blank">layne.fowler@gmail.com</a>>
            wrote:<br>
            <div>
              <blockquote type="cite"><br>
                <div><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">My UPS is connected to a
                    Raspberry Pi by USB. After a few hours of working,
                    the service fails. Looking at kernel messages I
                    noticed that the device is repeatedly disconnecting
                    and reconnecting.</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">I have tried using a
                    different USB port and using a brand new USB cable.
                    I have not had success by changing config parameters
                    like pollfreq/pollinterval/etc.</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">What is causing the UPS to
                    keep disconnecting?</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>Not sure (it's a protocol issue lower than NUT), but
                does this post from Tripp Lite help the UPS
                automatically reconnect?</div>
              <div><br>
              </div>
              <div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_pipermail_nut-2Dupsuser_2019-2DJune_011451.html&d=DwMFAg&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=5bTj0FByjuC7ZwvwC7XsgqsH_kXRehDbkaYVEGxZrkQ&s=-Pz1JlSeu5vl0n4bXiBIaPW1nFRDro_yq3QvTTbwC5o&e=" target="_blank">https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html</a></div>
              <div><br>
              </div>
              <div>(you may need to do some RedHat-to-Debian translation
                for some of the pathnames.)</div>
              <br>
              <blockquote type="cite">
                <div><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">OS - Raspbian GNU/Linux 10
                    (buster)</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Kernel - 4.19.75-v7+</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Nut version - 2.7.4-8</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Installation method - From
                    package</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                  <span style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">UPS - Tripp Lite
                    SMART1500LCD</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
                </div>
              </blockquote>
            </div>
            <br>
            <div>Thanks for including all of the version
              information.</div>
          </div>
        </div>
      </div>
      <hr>
      <font face="calibri" color="grey">This message is for the
        addressee's use only. It may contain confidential information.
        If you receive this message in error, please delete it and
        notify the sender. Tripp Lite disclaims all warranties and
        liabilities, and assumes no responsibility for viruses which may
        infect an email sent to you from Tripp Lite and which damage
        your electronic systems or information. It is your
        responsibility to maintain virus detection systems to prevent
        damage to your electronic systems and information.
      </font>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Nut-upsuser mailing list
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a></pre>
    </blockquote>
    <p><br>
    </p>
  </div>

</blockquote></div>