<html><head></head><body>Yeah, I have its datasheet (it's a Xantrex XW invertor by the way). I do not know why creating a more-or-less generic driver is an issue. Of course, there are Modbus beasts that can scare everyone but mostly one would need to read either intreger or float numbers out of Modbus registers in order to decide whether or not to start or stop the shutdown process.<br><br><div class="gmail_quote">24 июня 2017 г. 19:25:14 GMT+03:00, Charles Lepple <clepple@gmail.com> пишет:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Jun 24, 2017, at 10:57 AM, Sergei Naumov wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> I was wonering if there is a driver that supports communicating with a Modbus aware device over IP. I have a solar/wind invertor that can broadcast its state and I would like to monitor the batteries. If they discarge to a certain voltage or come to a defined state, I would perform a shutdown. All of this information id provided in Modbus holding registers. This could of course be done placing a Modbus-to-SNMP gateway but they seem to be somewhat pricey.<br /></blockquote><br />There is a GitHub issue tracking the general idea of a NUT MODBUS driver: <a href="https://github.com/networkupstools/nut/issues/50">https://github.com/networkupstools/nut/issues/50</a><br /><br />The skeleton code on the referenced branch uses libmodbus, which as I understand, can communicate over TCP.<br /><br />However, since you have a specific device in mind, you might be better served by creating a new driver based on the phoenixcontact_modbus driver (which also uses libmodbus): <a href="https://github.com/networkupstools/nut/pull/404">https://github.com/networkupstools/nut/pull/404</a> and <a href="https://github.com/networkupstools/nut/blob/7bd8971db89eec51fa55bbb75c8a54ca4a46e7dc/drivers/phoenixcontact_modbus.c">https://github.com/networkupstools/nut/blob/7bd8971db89eec51fa55bbb75c8a54ca4a46e7dc/drivers/phoenixcontact_modbus.c</a><br /><br />Do you have a datasheet or protocol document for this device?<br /><hr /><br />Nut-upsuser mailing list<br />Nut-upsuser@lists.alioth.debian.org<br /><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br /></pre></blockquote></div><br>
-- <br>
Простите за краткость, создано в K-9 Mail.</body></html>