<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
With the confirmation of David that USB 3024 support was added after 2.7.4, I looked at the nightly builds and found that 2.8.0 is already in beta for us. I tested it, but in spite of my troubleshooting attempts, some extended parts didn't work for me, so I
 took that usbhid-ups driver and integrated it into the 2.7.4, and it worked, as long as I remember to run upsd as root to load the drivers as root as well. (multiple-steps workaround).</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0">root@Router:~# upsdrvctl start<o:p class="ContentPasted0"> </o:p></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0">Network UPS Tools - UPS driver controller 2.7.4<o:p class="ContentPasted0"> </o:p></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0">Network UPS Tools - Generic HID driver 0.47 (2.8.0)<o:p class="ContentPasted0"> </o:p></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0">USB communication driver (libusb 1.0) 0.43<o:p class="ContentPasted0"> </o:p></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0">Using subdriver: TrippLite HID 0.84<o:p class="ContentPasted0"> </o:p></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0"><o:p class="ContentPasted0 ContentPasted2">root@Router:/# upsc tripplite |grep
 voltage</p>
<div class="ContentPasted2">battery.voltage: 13.5</div>
<div class="ContentPasted2">battery.voltage.nominal: 12.0</div>
<div class="ContentPasted2">input.voltage: 119.7</div>
<div class="ContentPasted2">input.voltage.nominal: 120</div>
<div class="ContentPasted2">output.voltage: 119.7</div>
<div class="ContentPasted2">output.voltage.nominal: 120</div>
</o:p></span>
<p></p>
<p class="MsoNormal" style="margin:0cm 0cm 10pt;font-size:11pt;font-family:Calibri, "sans-serif";margin-bottom:.0001pt">
<span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;mso-bidi-font-family:Calibri;mso-bidi-theme-font:minor-latin;mso-ansi-language:EN-US" class="ContentPasted0"><o:p class="ContentPasted0 ContentPasted1">root@Router:/# upsc tripplite |grep
 current</p>
<div class="ContentPasted1">output.current: 0.0</div>
<div class="ContentPasted1">root@Router:/# upsc tripplite |grep power</div>
<div class="ContentPasted1">ups.power: 0.0</div>
<div class="ContentPasted1">ups.power.nominal: 700</div>
</o:p></span>
<p></p>
<br>
</div>
<div id="appendonsend"></div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
Now the main things that don't work are the lack of current and power measurements (not a deal breaker for me), and I don't whether it could be a firmware limitation or something else.</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm contacting the OpenWrt developers about my issues with the nightly and stable builds, to see what can we make from it.</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for keeping nut moving forward.</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>De:</b> Feliciano Chavez <chavezfeliciano@hotmail.com><br>
<b>Enviado:</b> lunes, 8 de mayo de 2023 10:08 a. m.<br>
<b>Para:</b> Jim Klimov <jimklimov+nut@gmail.com><br>
<b>Cc:</b> Arnaud Quette via Nut-upsuser <nut-upsuser@alioth-lists.debian.net><br>
<b>Asunto:</b> RE: [Nut-upsuser] NUT support for the new Tripp Lite AVR700U (USB 3024) under OpenWrt?</font>
<div> </div>
</div>
<div dir="ltr">
<div class="x_elementToProof" style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<span class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px">Thanks for your support, Jim.</span></div>
<div class="x_elementToProof" style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<span class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px"><br>
</span></div>
<div class="x_elementToProof" style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<span class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px">I found a workaround: </span>
</div>
<div class="x_elementToProof" style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<div class="x_ContentPasted0 x_elementToProof" 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 class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px">
<br>
</div>
<div class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px">
But there are several things about the readings with the 2.7.4 <span class="x_ContentPasted1" style="display: inline !important; background-color: rgb(255, 255, 255);">
usbhid-ups </span>driver with this UPS that doesn't make sense:</div>
<div class="x_ContentPasted0 x_elementToProof" 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 class="x_ContentPasted0 x_elementToProof" style="font-size:10pt; margin:0px">
.- the input/output and battery voltages are 0V, etc.</div>
<div class="x_elementToProof" style="font-size:10pt; margin:0px"><br class="x_ContentPasted0">
</div>
<div class="x_elementToProof" 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 class="x_elementToProof" style="font-size:10pt; margin:0px"><br>
</div>
<div class="x_ContentPasted0 x_elementToProof" 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 class="x_ContentPasted0" 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 class="x_ContentPasted0" style="margin:0px">.- usbutils 014-1</span></div>
<div style="margin:0px"><span class="x_ContentPasted0" 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 class="x_ContentPasted0" style="margin:0px">.- usbhid-ups 0.41 (2.7.4) USB communication driver 0.33</span></span></div>
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>De:</b> Jim Klimov <jimklimov+nut@gmail.com><br>
<b>Enviado:</b> lunes, 8 de mayo de 2023 7:27 a. m.<br>
<b>Para:</b> Feliciano Chavez <chavezfeliciano@hotmail.com><br>
<b>Cc:</b> Arnaud Quette via Nut-upsuser <nut-upsuser@alioth-lists.debian.net><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 class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Sun, May 7, 2023, 01:27 Feliciano Chavez <<a href="mailto:chavezfeliciano@hotmail.com" data-auth="NotApplicable">chavezfeliciano@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="x_x_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);">
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="x_x_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="x_x_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" data-auth="NotApplicable">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" data-auth="NotApplicable">chavezfeliciano@hotmail.com</a>><br>
<b>Cc:</b> Arnaud Quette via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" data-auth="NotApplicable">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" data-auth="NotApplicable">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" data-auth="NotApplicable">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" data-auth="NotApplicable">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>