David Zomaya
2019-Dec-09 04:18 UTC
[Nut-upsuser] [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
I haven't tried it on RaspberryPi, but if there's some specific Tripp Lite information I can help with, let me know. David Zomaya Tripp Lite ________________________________ From: Nut-upsuser <nut-upsuser-bounces+david_zomaya=tripplite.com at alioth-lists.debian.net> on behalf of Charles Lepple <clepple at gmail.com> Sent: Sunday, December 8, 2019 8:36 PM To: Layne Fowler Cc: nut-upsuser Subject: [EXTERNAL] Re: [Nut-upsuser] Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting This is an EXTERNAL email. Please take a moment and think before clicking any links or opening any attachments from this email. If suspicious, please forward to ishelpdesk at tripplite.com for review. ________________________________ On Dec 8, 2019, at 5:46 PM, Layne Fowler <layne.fowler at gmail.com<mailto:layne.fowler at gmail.com>> wrote: 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. 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. What is causing the UPS to keep disconnecting? Not sure (it's a protocol issue lower than NUT), but does this post from Tripp Lite help the UPS automatically reconnect? https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html<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=> (you may need to do some RedHat-to-Debian translation for some of the pathnames.) OS - Raspbian GNU/Linux 10 (buster) Kernel - 4.19.75-v7+ Nut version - 2.7.4-8 Installation method - From package UPS - Tripp Lite SMART1500LCD Thanks for including all of the version information. ________________________________ 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20191209/50774299/attachment.html>
Marco Walther
2019-Dec-09 05:58 UTC
[Nut-upsuser] [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
On 12/8/19 8:18 PM, David Zomaya wrote:> > I haven't tried it on RaspberryPi, but if there's some specific Tripp > Lite information I can help with, let me know. >We had that discussion about the 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. 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. root at odroid-www:~/bin# cat check_ups.sh #!/bin/bash while true do x=$(curl -s -o - 'http://192.168.1.5:85/cgi-bin/nut/upsstats.cgi?host=tripplite at 127.0.0.1:3493' | sed 's:<[^>]*>::g' | awk 'BEGIN {s = 0; } $1 == "Status:" { s = 1; next; } s == 1 { print $0; s = 0; }') if [ "$x" != "ONLINE" ] then logger -p daemon.warning "Triplite is not offline, trying to restart USB" /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 0 sleep 5 /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 1 sleep 30 else sleep 300 fi done Not sure, if this is still the same problem. But I have my solution;-) -- Marco> > David Zomaya > > Tripp Lite > > > > ------------------------------------------------------------------------ > *From:* Nut-upsuser > <nut-upsuser-bounces+david_zomaya=tripplite.com at alioth-lists.debian.net> > on behalf of Charles Lepple <clepple at gmail.com> > *Sent:* Sunday, December 8, 2019 8:36 PM > *To:* Layne Fowler > *Cc:* nut-upsuser > *Subject:* [EXTERNAL] Re: [Nut-upsuser] Tripp Lite SMART1500LCD > repeatedly disconnecting and reconnecting > This is an *EXTERNAL* email. Please take a moment and think before > clicking any links or opening any attachments from this email. If > suspicious, please forward to ishelpdesk at tripplite.com for review. > ------------------------------------------------------------------------ > On Dec 8, 2019, at 5:46 PM, Layne Fowler <layne.fowler at gmail.com > <mailto:layne.fowler at gmail.com>> wrote: >> >> 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. >> >> 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. >> >> What is causing the UPS to keep disconnecting? > > Not sure (it's a protocol issue lower than NUT), but does this post > from Tripp Lite help the UPS automatically reconnect? > > https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html > <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=> > > (you may need to do some RedHat-to-Debian translation for some of the > pathnames.) > >> >> OS - Raspbian GNU/Linux 10 (buster) >> Kernel - 4.19.75-v7+ >> Nut version - 2.7.4-8 >> Installation method - From package >> UPS - Tripp Lite SMART1500LCD > > Thanks for including all of the version information. > ------------------------------------------------------------------------ > 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. > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20191208/13023ea8/attachment-0001.html>
Layne Fowler
2019-Dec-10 03:04 UTC
[Nut-upsuser] [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
Charles, thank you for that link to David's earlier message. I tried adding those udev rules and changing the pollinterval. I need to do some tinkering but I don't think the part RUN+="/sbin/upsdrvctl stop; /sbin/upsdrvctl start" is working right. If I manually run the commands then the USB disconnects stop and there are no kernel messages. Running "sudo /lib/nut/usbhid-ups -DD -a ups" also looks clean to me. I'll be sure to update if I figure out how to get it fully working. Thanks! On Sun, Dec 8, 2019 at 11:18 PM David Zomaya <David_Zomaya at tripplite.com> wrote:> I haven't tried it on RaspberryPi, but if there's some specific Tripp Lite > information I can help with, let me know. > > > David Zomaya > > Tripp Lite > > > ------------------------------ > *From:* Nut-upsuser <nut-upsuser-bounces+david_zomaya> tripplite.com at alioth-lists.debian.net> on behalf of Charles Lepple < > clepple at gmail.com> > *Sent:* Sunday, December 8, 2019 8:36 PM > *To:* Layne Fowler > *Cc:* nut-upsuser > *Subject:* [EXTERNAL] Re: [Nut-upsuser] Tripp Lite SMART1500LCD > repeatedly disconnecting and reconnecting > > This is an *EXTERNAL* email. Please take a moment and think before > clicking any links or opening any attachments from this email. If > suspicious, please forward to ishelpdesk at tripplite.com for review. > ------------------------------ > On Dec 8, 2019, at 5:46 PM, Layne Fowler <layne.fowler at gmail.com> wrote: > > > 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. > > 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. > > What is causing the UPS to keep disconnecting? > > > Not sure (it's a protocol issue lower than NUT), but does this post from > Tripp Lite help the UPS automatically reconnect? > > https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html > <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=> > > (you may need to do some RedHat-to-Debian translation for some of the > pathnames.) > > > OS - Raspbian GNU/Linux 10 (buster) > Kernel - 4.19.75-v7+ > Nut version - 2.7.4-8 > Installation method - From package > UPS - Tripp Lite SMART1500LCD > > > Thanks for including all of the version information. > ------------------------------ > 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. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20191209/99828cc5/attachment-0001.html>
Layne Fowler
2019-Dec-10 03:05 UTC
[Nut-upsuser] [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
Thanks Marco, I may try this if I can't get David's udev rules to work. On Mon, Dec 9, 2019 at 12:58 AM Marco Walther <marco at sonic.net> wrote:> On 12/8/19 8:18 PM, David Zomaya wrote: > > I haven't tried it on RaspberryPi, but if there's some specific Tripp Lite > information I can help with, let me know. > > We had that discussion about the 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. > > > 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. > > > root at odroid-www:~/bin# cat check_ups.sh > #!/bin/bash > > while true > do > x=$(curl -s -o - ' > http://192.168.1.5:85/cgi-bin/nut/upsstats.cgi?host=tripplite at 127.0.0.1:3493' > | sed 's:<[^>]*>::g' | awk 'BEGIN {s = 0; } $1 == "Status:" { s = 1; next; > } s == 1 { print $0; s = 0; }') > > if [ "$x" != "ONLINE" ] > then > logger -p daemon.warning "Triplite is not offline, trying to > restart USB" > /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 0 > sleep 5 > /root/bin/hub-ctrl -b 001 -d 005 -P 1 -p 1 > sleep 30 > else > sleep 300 > fi > done > > > Not sure, if this is still the same problem. But I have my solution;-) > > > -- Marco > > > > David Zomaya > > Tripp Lite > > > ------------------------------ > *From:* Nut-upsuser > <nut-upsuser-bounces+david_zomaya=tripplite.com at alioth-lists.debian.net> > <nut-upsuser-bounces+david_zomaya=tripplite.com at alioth-lists.debian.net> > on behalf of Charles Lepple <clepple at gmail.com> <clepple at gmail.com> > *Sent:* Sunday, December 8, 2019 8:36 PM > *To:* Layne Fowler > *Cc:* nut-upsuser > *Subject:* [EXTERNAL] Re: [Nut-upsuser] Tripp Lite SMART1500LCD > repeatedly disconnecting and reconnecting > > This is an *EXTERNAL* email. Please take a moment and think before > clicking any links or opening any attachments from this email. If > suspicious, please forward to ishelpdesk at tripplite.com for review. > ------------------------------ > On Dec 8, 2019, at 5:46 PM, Layne Fowler <layne.fowler at gmail.com> wrote: > > > 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. > > 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. > > What is causing the UPS to keep disconnecting? > > > Not sure (it's a protocol issue lower than NUT), but does this post from > Tripp Lite help the UPS automatically reconnect? > > https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html > <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=> > > (you may need to do some RedHat-to-Debian translation for some of the > pathnames.) > > > OS - Raspbian GNU/Linux 10 (buster) > Kernel - 4.19.75-v7+ > Nut version - 2.7.4-8 > Installation method - From package > UPS - Tripp Lite SMART1500LCD > > > Thanks for including all of the version information. > ------------------------------ > 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. > > _______________________________________________ > Nut-upsuser mailing listNut-upsuser at alioth-lists.debian.nethttps://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20191209/efc64620/attachment.html>
Layne Fowler
2019-Dec-11 15:35 UTC
[Nut-upsuser] [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
Thought I'd follow up in case someone else runs into this issue. In the end what worked for me was tweaking the udev rules. I have had no USB disconnects or stale data warnings so far. I only used one rule for my UPS: # /etc/udev/rules.d/62-nut-usbups.rules SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end" # TrippLite # e.g. TrippLite SMART1500LCD - usbhid-ups ACTION=="add|change", SUBSYSTEM=="usb|usb_device", SUBSYSTEMS=="usb|usb_device", ATTR{idVendor}=="09ae", ATTR{idProduct}=="2012", MODE="664", GROUP="nut", RUN+="/sbin/upsdrvctl stop; /sbin/upsdrvctl start" LABEL="nut-usbups_rules_end" My ups.conf: # /etc/nut/ups.conf pollinterval = 1 [ups] driver = usbhid-ups port = auto desc = "Tripp Lite SMART1500LCD" vendorid = 09ae productid = 2012 And I also removed MTP as it was trying to take the device. sudo apt-get remove --auto-remove libmtp-common On Mon, Dec 9, 2019 at 10:04 PM Layne Fowler <layne.fowler at gmail.com> wrote:> Charles, thank you for that link to David's earlier message. I tried > adding those udev rules and changing the pollinterval. I need to do some > tinkering but I don't think the part RUN+="/sbin/upsdrvctl stop; > /sbin/upsdrvctl start" is working right. If I manually run the commands > then the USB disconnects stop and there are no kernel messages. Running > "sudo /lib/nut/usbhid-ups -DD -a ups" also looks clean to me. I'll be sure > to update if I figure out how to get it fully working. Thanks! > > On Sun, Dec 8, 2019 at 11:18 PM David Zomaya <David_Zomaya at tripplite.com> > wrote: > >> I haven't tried it on RaspberryPi, but if there's some specific Tripp >> Lite information I can help with, let me know. >> >> >> David Zomaya >> >> Tripp Lite >> >> >> ------------------------------ >> *From:* Nut-upsuser <nut-upsuser-bounces+david_zomaya>> tripplite.com at alioth-lists.debian.net> on behalf of Charles Lepple < >> clepple at gmail.com> >> *Sent:* Sunday, December 8, 2019 8:36 PM >> *To:* Layne Fowler >> *Cc:* nut-upsuser >> *Subject:* [EXTERNAL] Re: [Nut-upsuser] Tripp Lite SMART1500LCD >> repeatedly disconnecting and reconnecting >> >> This is an *EXTERNAL* email. Please take a moment and think before >> clicking any links or opening any attachments from this email. If >> suspicious, please forward to ishelpdesk at tripplite.com for review. >> ------------------------------ >> On Dec 8, 2019, at 5:46 PM, Layne Fowler <layne.fowler at gmail.com> wrote: >> >> >> 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. >> >> 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. >> >> What is causing the UPS to keep disconnecting? >> >> >> Not sure (it's a protocol issue lower than NUT), but does this post from >> Tripp Lite help the UPS automatically reconnect? >> >> >> https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html >> <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=> >> >> (you may need to do some RedHat-to-Debian translation for some of the >> pathnames.) >> >> >> OS - Raspbian GNU/Linux 10 (buster) >> Kernel - 4.19.75-v7+ >> Nut version - 2.7.4-8 >> Installation method - From package >> UPS - Tripp Lite SMART1500LCD >> >> >> Thanks for including all of the version information. >> ------------------------------ >> 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. >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20191211/612a111a/attachment.html>
Maybe Matching Threads
- [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
- [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
- [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
- [EXTERNAL] Re: Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting
- Tripp Lite SMART1500LCD repeatedly disconnecting and reconnecting