<div dir="ltr"><div class="gmail_quote">Hi David and Charles<div dir="auto"><br></div>Le 3 mars 2017 2:35 PM, "Charles Lepple" <<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mar 3, 2017, at 8:21 AM, Charles Lepple <<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>> wrote:<br>
><br>
> On Mar 2, 2017, at 3:38 PM, David Baker <<a href="mailto:david@baker.im" target="_blank">david@baker.im</a>> wrote:<br>
>><br>
>> I’ve read the documentation, and it would appear that this can be set by the U-Talk protocol (page 34 of <a href="http://networkupstools.org/protocols/mge/9261zwfa.pdf" rel="noreferrer" target="_blank">http://networkupstools.org/pro<wbr>tocols/mge/9261zwfa.pdf</a>) but I can’t seem to figure out how to send the device the command, or manage to terminal into the unit (once disabling NUT services) and send the command.<br>
>><br>
>> I think the command would be Lv 24000.<br>
>><br>
> In theory, you could change the following line:<br>
><br>
> <a href="https://github.com/networkupstools/nut/blob/v2.7.4/drivers/mge-utalk.h#L220" rel="noreferrer" target="_blank">https://github.com/networkupst<wbr>ools/nut/blob/v2.7.4/drivers/<wbr>mge-utalk.h#L220</a><br>
><br>
> from "{ "output.voltage", 0, 0, "Lv", "%05.1f", VOLT, TRUE },"<br>
><br>
> to "{ "output.voltage", ST_FLAG_RW | ST_FLAG_STRING, 5, "Lv", "%05.1f", VOLT, TRUE },"<br>
><br>
> This would allow you to use the "upsrw" command to set the voltage (with appropriate scaling).<br>
><br>
> Do you have a development environment set up for the Raspberry Pi?<br>
<br>
Sorry, I think I read the protocol document too quickly.<br>
<br>
Is it maybe "Iv 24000" (inverter voltage)? It doesn't look like the current driver reads or writes the inverter settings.<br>
<br>
Arnaud, do you have any additional insight on the difference between setting output voltage and inverter voltage?</blockquote><div><br><br></div><div>It's a long time since I've not dive into the UTalk code and devices. The last time was more than a decade ago.Happy to see some ESV+ alive :)<br><br></div><div><div dir="auto">Then, even reading the spec, I'm not sure what was the exact difference between Lv and Iv, at least for a small UPS like ESV+.<br><br></div><div>So you can add the following line after "output.voltage in mge-utalk.h:<br><br><span class="gmail-im">"{ "output.voltage.nominal", ST_FLAG_RW | ST_FLAG_STRING, 5, "Lv ?", "%05.1f", VOLT, TRUE },"<br><br></span></div><div><span class="gmail-im">By adding the above, you'll be able to have the nominal output voltage reading and report (Lv ?) and to use upsrw to set nominal output voltage (Lv 24000).<br></span></div><div><span class="gmail-im">Please tell us back if the above works fine for you, so that we can update the driver.<br></span></div><div><span class="gmail-im">Otherwise, simply test by replacing the "Lv ?" with "Iv ?".<br><br></span></div><div><span class="gmail-im">thanks and cheers,<br></span></div><div><span class="gmail-im">Arno<br></span></div></div><div> </div></div>
</div>