[Nut-upsuser] [EXTERNAL] trying to talk to TrippLite SMX1500LCD using RPI & NUT

Marco Walther marco at sonic.net
Tue Nov 24 18:05:28 GMT 2020


On 11/24/20 9:11 AM, Kirk Bocek wrote:
>
> On 11/24/2020 8:10 AM, David Zomaya wrote:
>>>> Only when I physically unplug it and plug it in again will it start.
>>>> Is there a way I can do something about that?
>>>> Because after that, I tried all kinds of ways to see if I can talk 
>>>> to the thing but I am completely failing in it.
>> Once the UPS drops, is it gone from lsusb too?
>> I believe there were some similar SMX/SMART1500LCDT reports on the 
>> list in the past.
>>
>> Thank you,
>> David Zomaya
>> Tripp Lite
> Yes I have one that *completely* dropped off. Nothing in lsusb. The 
> unit worked intermittantly when first installed. Then the USB 
> interface just disappeared even after power cycling the unit. I've 
> been lazy about calling tech support.

I have one of those SMART1500LCDT which become unresponsive on USB once 
in a while. It looks like lsusb still finds the UPS in my case. My 
solution was an USB hub which can power down different ports via 
software control from the host;-)

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@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 -b 001 -d $(lsusb | awk '/0409:0058/ { print substr($4, 0, 
length($4) - 1); }') -P 1"
         /root/bin/hub-ctrl -b 001 -d $(lsusb | awk '/0409:0058/ { print 
substr($4, 0, length($4) - 1); }') -P 1 -p 0
         sleep 5
         /root/bin/hub-ctrl -b 001 -d $(lsusb | awk '/0409:0058/ { print 
substr($4, 0, length($4) - 1); }') -P 1 -p 1
         sleep 30
     else
         sleep 300
     fi
done

-- Marco

>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser





More information about the Nut-upsuser mailing list