<div dir="auto">For clarity, `upsd` is the networked data server for local or remote clients like `upsmon` or `upsc`. It talks to locally running NUT driver(s) which talk to actual devices with their media and protocols. It is the driver (like `usbhid-ups`) that would be annoyed by hardware reconnections. That said, I think there were some fixes to reconnection behavior, which might have landed even after 2.8.0 release.<div dir="auto"><br></div><div dir="auto">For a package rebuild, as a first step I'd suggest tracking down the source recipe involved, and substitute new source there instead of the release (tarball?) used originally. If needed, you can create a new tarball from github master on any other system with `make dist`. I suppose you cross-build the OpenWRT images on a capable system already?..</div><div dir="auto"><br></div><div dir="auto">Jim</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 8, 2023, 17:08 Feliciano Chavez <<a href="mailto:chavezfeliciano@hotmail.com">chavezfeliciano@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-size:10pt;margin:0px">Thanks for your support, Jim.</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-size:10pt;margin:0px"><br>
</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-size:10pt;margin:0px">I found a workaround: </span>
</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<div style="font-size:10pt;margin:0px">logread showed some access-denied errors, and because I don't know exactly what it may be (except the lack of udev rules perhaps), I ran upsd as root and it connected with the UPS.
Therefore I wonder whether a more elegant solution could be used for this part?</div>
<div style="font-size:10pt;margin:0px"><br>
</div>
<div style="font-size:10pt;margin:0px">But there are several things about the readings with the 2.7.4
<span style="display:inline!important;background-color:rgb(255,255,255)">
usbhid-ups </span>driver with this UPS that doesn't make sense:</div>
<div style="font-size:10pt;margin:0px">.- the frequency here should be around 60Hz, but it reports 6010 or 5990 or so. I suppose a 100 division is missing</div>
<div style="font-size:10pt;margin:0px">.- the input/output and battery voltages are 0V, etc.</div>
<div style="font-size:10pt;margin:0px"><br>
</div>
<div style="font-size:10pt;margin:0px">I have built some OpenWrt firmware images, but mostly customizing stuff, I don't have experience integrating a new version of a solution, I would have to keep investigating to avoid bricking my
test device. I would prefer to mod the currently running files/libraries, if possible.</div>
<div style="font-size:10pt;margin:0px"><br>
</div>
<div style="font-size:10pt;margin:0px">FWIW, here's the version info about the relevant objects of the current 22.03.5 stable release of this embedded distro that ships with nut 2.7.4 (I don't know whether is debian-based,
but .ipk packages are installed via opkg):</div>
<div style="font-size:10pt;margin:0px">
<div style="margin:0px"><span style="margin:0px">.- kernel&kmod-usb-core&kmod-usb-ohci&kmod-hid&kmod-hid-generic&kmod-usb-hid 5.10.176-1,</span></div>
<div style="margin:0px"><span style="margin:0px">.- usbutils 014-1</span></div>
<div style="margin:0px"><span style="margin:0px">.- nut&nut-common&nut-server&nut-upsc&nut-driver-usbhid-ups 2.7.4-27</span></div>
</div>
<div style="font-size:10pt;margin:0px"><span style="margin:0px"><span style="margin:0px">.- usbhid-ups 0.41 (2.7.4) USB communication driver 0.33</span></span></div>
<br>
</div>
<div id="m_6417070704945801478appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_6417070704945801478divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt;color:rgb(0,0,0)"><b>De:</b> Jim Klimov <<a href="mailto:jimklimov%2Bnut@gmail.com" target="_blank" rel="noreferrer">jimklimov+nut@gmail.com</a>><br>
<b>Enviado:</b> lunes, 8 de mayo de 2023 7:27 a. m.<br>
<b>Para:</b> Feliciano Chavez <<a href="mailto:chavezfeliciano@hotmail.com" target="_blank" rel="noreferrer">chavezfeliciano@hotmail.com</a>><br>
<b>Cc:</b> Arnaud Quette via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>><br>
<b>Asunto:</b> Re: [Nut-upsuser] NUT support for the new Tripp Lite AVR700U (USB 3024) under OpenWrt?</font>
<div> </div>
</div>
<div>
<div dir="auto">I'm mostly not online for a few more days, so can't check directly.
<div dir="auto"><br>
</div>
<div dir="auto">The general answers to the two questions would be:</div>
<div dir="auto"><br>
</div>
<div dir="auto">1) checking if it is there:</div>
<div dir="auto">* revise if it is mentioned in the NEWS file (in sources - release tarball or on github);</div>
<div dir="auto">* check issues on github;</div>
<div dir="auto">* search/grep for 3024 in current/release-tagged codebase...</div>
<div dir="auto"><br>
</div>
<div dir="auto">2) getting it to your system: versioning looks debianish, some distros/repos (sid, experimental?) already shipped 2.8.0, maybe you can lift such a build to your box. Otherwise, build your own (in this case current master may be preferable to
a year-old release with its few known issues baked in and fixed since, or making and adding custom patches to existing package recipe). It may be possible Several styles of instructions are in source docs, github wiki...</div>
<div dir="auto"><br>
</div>
<div dir="auto">Good luck, and</div>
<div dir="auto">Hope this helps,</div>
<div dir="auto">Jim Klimov</div>
<div dir="auto"><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Sun, May 7, 2023, 01:27 Feliciano Chavez <<a href="mailto:chavezfeliciano@hotmail.com" target="_blank" rel="noreferrer">chavezfeliciano@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
That It may be right (I don't know), however, where could we confirm whether 3024 is already supported for 2.8.0 or newer?</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
And let's suppose it is. Because current OpenWrt releases are built arround 2.7.4-27, what could I try to backport that (driver mod) to 2.7.4-27?</div>
<div id="m_6417070704945801478x_m_-4894085174058867509m_6291858287461332300appendonsend"></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_6417070704945801478x_m_-4894085174058867509m_6291858287461332300divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt;color:rgb(0,0,0)"><b>De:</b> Jim Klimov <<a href="mailto:jimklimov%2Bnut@gmail.com" target="_blank" rel="noreferrer">jimklimov+nut@gmail.com</a>><br>
<b>Enviado:</b> sábado, 6 de mayo de 2023 4:21 p. m.<br>
<b>Para:</b> Feliciano Chavez <<a href="mailto:chavezfeliciano@hotmail.com" target="_blank" rel="noreferrer">chavezfeliciano@hotmail.com</a>><br>
<b>Cc:</b> Arnaud Quette via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>><br>
<b>Asunto:</b> Re: [Nut-upsuser] NUT support for the new Tripp Lite AVR700U (USB 3024) under OpenWrt?</font>
<div> </div>
</div>
<div>
<div dir="auto">I think 3024 was added after NUT 2.7.4 release.</div>
<br>
<div>
<div dir="ltr">On Thu, May 4, 2023, 18:20 Feliciano Chavez via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
Dears,</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
I'm trying to connect this new version of the AVR700U to nut - 2.7.4-27 running over OpenWrt 22.03.5, installed from the stable release repositories,
<span style="display:inline!important;background-color:rgb(255,255,255)">for an ath79 USB2.0 gigabit WiFi router</span>. </div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
According to the supported list, I thought this UPS was supposed to use the USB 2010 protocol, but I guess that was an old version because now uses the 3024 protocol (perhaps it would be good to add a note for future buyers). </div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
root@Router:/# lsusb
<div>Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.176 ehci_hcd EHCI Host Controller</div>
<div>Bus 002 Device 002: ID 09ae:3024 Tripp Lite AVR700U</div>
<div>Bus 002 Device 001: ID 1d6b:0001 Linux 5.10.176 ohci_hcd Generic Platform OHCI controller</div>
<div></div>
<br>
</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">Under networkupstools at github, I noticed the issue 808, which states this could be (partially) supported by including the vendor id and productid in ups.conf.
Therefore, for the OpenWrt use case, I would have to add the following to /etc/config/nut-server:<br>
</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">config driver 'tripplite'
<div> option driver usbhid-ups</div>
<div> option port auto</div>
<div> option vendorid 09ae</div>
option productid 3024<br>
</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">This avoids the previous 3024 "not supported" error message, </span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">root@Router:/# upsdrvctl start
<div>Network UPS Tools - UPS driver controller 2.7.4</div>
<div>Network UPS Tools - Generic HID driver 0.41 (2.7.4)</div>
<div>USB communication driver 0.33</div>
<div>Using subdriver: TrippLite HID 0.82</div>
<br>
</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">but still can't connect to the UPS:</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">root@Router:/# upsc tripplite
<div>Error: Driver not connected</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)"><br>
</span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
So I kindly ask you what could we do in this case<br>
</div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)"><br>
</span></div>
Note: I haven't seen an udev rules file under the running OpenWrt. </span></div>
<div style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:10pt;color:rgb(0,0,0)"><br>
</span></div>
</div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank" rel="noreferrer">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>