Hi, I've recently got a Raspberry Pi working with NUT and my MGE Pulsar ESV+, using the U-TALK driver, a USB Serial adapter and original cable. I've overcome the documented problems with these units and have it running, except for one little niggle! It's installed in central Europe, where the utility voltage is 240v, it's constantly in trim mode and pushing the voltage down to 220.1v - this wouldn't be a problem if it wasn't for the fact it ran the fan a lot of time. I've read the documentation, and it would appear that this can be set by the U-Talk protocol (page 34 of http://networkupstools.org/protocols/mge/9261zwfa.pdf) 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. I think the command would be Lv 24000. Raspbian Version is - Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: Jessie NUT is 2.7.4 and MGE-UTALK driver. It works fine overall, and obtains the information and reports everything as it should - but I'd like to know if I can set the above command. Thanks! Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170302/fa1cec53/attachment.html>
On Mar 2, 2017, at 3:38 PM, David Baker <david at baker.im> wrote:> > I?ve read the documentation, and it would appear that this can be set by the U-Talk protocol (page 34 of http://networkupstools.org/protocols/mge/9261zwfa.pdf) 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. > > I think the command would be Lv 24000. >In theory, you could change the following line: https://github.com/networkupstools/nut/blob/v2.7.4/drivers/mge-utalk.h#L220 from "{ "output.voltage", 0, 0, "Lv", "%05.1f", VOLT, TRUE }," to "{ "output.voltage", ST_FLAG_RW | ST_FLAG_STRING, 5, "Lv", "%05.1f", VOLT, TRUE }," This would allow you to use the "upsrw" command to set the voltage (with appropriate scaling). Do you have a development environment set up for the Raspberry Pi?
On Mar 3, 2017, at 8:21 AM, Charles Lepple <clepple at gmail.com> wrote:> > On Mar 2, 2017, at 3:38 PM, David Baker <david at baker.im> wrote: >> >> I?ve read the documentation, and it would appear that this can be set by the U-Talk protocol (page 34 of http://networkupstools.org/protocols/mge/9261zwfa.pdf) 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. >> >> I think the command would be Lv 24000. >> > In theory, you could change the following line: > > https://github.com/networkupstools/nut/blob/v2.7.4/drivers/mge-utalk.h#L220 > > from "{ "output.voltage", 0, 0, "Lv", "%05.1f", VOLT, TRUE }," > > to "{ "output.voltage", ST_FLAG_RW | ST_FLAG_STRING, 5, "Lv", "%05.1f", VOLT, TRUE }," > > This would allow you to use the "upsrw" command to set the voltage (with appropriate scaling). > > Do you have a development environment set up for the Raspberry Pi?Sorry, I think I read the protocol document too quickly. Is it maybe "Iv 24000" (inverter voltage)? It doesn't look like the current driver reads or writes the inverter settings. Arnaud, do you have any additional insight on the difference between setting output voltage and inverter voltage?