<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[sdm120 kwh meter modbus how to add]]></title><description><![CDATA[<p dir="auto">i have a Kwh meter SDM120 i would like to add to Mango.</p>
<p dir="auto"><a href="http://www.flanesi.it/blog/download/sdm120c/SDM120-Modbus_protocol_V2.1.pdf?dl=0" rel="nofollow ugc">http://www.flanesi.it/blog/download/sdm120c/SDM120-Modbus_protocol_V2.1.pdf?dl=0</a></p>
<p dir="auto">also found some code which might be helpfull  for someone how needs it.<br />
<a href="https://github.com/gianfrdp/SDM120C" rel="nofollow ugc">https://github.com/gianfrdp/SDM120C</a></p>
<p dir="auto">the rs485-modbus of the sdm120 is connected via rs485-usb to my Mango server.</p>
<p dir="auto">under datasource i can add ( /dev/ttyUSB0 2400 8N1 ) and i can scan nodes and it will find 1 node.</p>
<p dir="auto">Then i have to enter some data i cant find. i cant figure out how things are working with Hex, registers, offset etc.<br />
should be simple protocol. but i need a hint in the right direction ( good tutorial about offsets, bits, Hex and stuff )</p>
<p dir="auto">Readup for starters like me,<br />
<a href="http://www.simplymodbus.ca/FAQ.htm" rel="nofollow ugc">http://www.simplymodbus.ca/FAQ.htm</a></p>
<p dir="auto">it appeared that , the settings that worked for me where taking the register address minus x_0001 : ( so for Total Kwh. 30343 minus 30001 = offset address is 342 )</p>
<p dir="auto"><img src="https://camo.nodebb.org/f95fd9596d1684948645aa799d3aa3477fddcfa0?url=https%3A%2F%2Fi.imgur.com%2FBDQx2G6.png" alt="0_1477573484703_upload-8f442fef-14ea-4dfa-ab94-30ab57053fef" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/topic/2511/sdm120-kwh-meter-modbus-how-to-add</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 12:17:42 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2511.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Oct 2016 19:12:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Thu, 27 Oct 2016 13:30:56 GMT]]></title><description><![CDATA[<p dir="auto">It's a forum, no need to close things. With regard to the question in the post you've removed about making it more readable, every data point has a text renderer that governs its display. There's a description of the four text renderers for a Numeric data point in the help popup from the blue (?) in the text renderer section of the edit point page. You can also specify the units, or a custom suffix for the value. The units for kWh is kW*h, whereas you can put " kWh" in the suffix.</p>
]]></description><link>https://forum.mango-os.com/post/13019</link><guid isPermaLink="true">https://forum.mango-os.com/post/13019</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 27 Oct 2016 13:30:56 GMT</pubDate></item><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Thu, 27 Oct 2016 13:09:07 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks for all the Help. i think this topic is SOLVED ( if need to close ). i'am on to the next device i want to add.</p>
]]></description><link>https://forum.mango-os.com/post/13016</link><guid isPermaLink="true">https://forum.mango-os.com/post/13016</guid><dc:creator><![CDATA[hengst]]></dc:creator><pubDate>Thu, 27 Oct 2016 13:09:07 GMT</pubDate></item><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Thu, 27 Oct 2016 13:06:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi hengst,</p>
<p dir="auto">I cannot think of a good reason to have an IP posted like that with the implication it has the default password, so I have removed it. Definitely not a secure thing to do.</p>
<p dir="auto">The subtraction of 30001 would be a result of two things,</p>
<ol>
<li>30000 is the INPUT_REGISTER range in the Modbus spec, and you've selected that as your Register range (bereik?)</li>
<li>Your literature is probably 1 offset, meaning the first address is 1. We use a 0 offset. I was pleased to see Mihai included this consideration in his image!</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/13015</link><guid isPermaLink="true">https://forum.mango-os.com/post/13015</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 27 Oct 2016 13:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Thu, 27 Oct 2016 12:57:55 GMT]]></title><description><![CDATA[<p dir="auto">Well i had some coffee ...</p>
<p dir="auto">to get the Kwh total .....</p>
<p dir="auto"><img src="https://camo.nodebb.org/b1a216d0a43063d8cd6882c390e97d38ad11e2c6?url=https%3A%2F%2Fi.imgur.com%2FwmhGB6y.png" alt="0_1477572714719_upload-cf8cec07-bd89-402d-88c3-abfa181cbeca" class=" img-fluid img-markdown" /></p>
<p dir="auto">to get the Volts ...</p>
<p dir="auto"><img src="https://camo.nodebb.org/51e62d3fda3aa396f05a80a53c8b731d51b8806c?url=https%3A%2F%2Fi.imgur.com%2Fsj2J3cr.png" alt="0_1477572782136_upload-05653e39-5daa-4b68-9356-f93f5b408e4a" class=" img-fluid img-markdown" /></p>
<p dir="auto">and so on..</p>
<p dir="auto">so i got it working, but more by gamble than by knowledge.<br />
it looks like i have to put in the register address from the manual , minus 30001 for every register i want to read.</p>
<p dir="auto">maybe someone can explain a little further.</p>
]]></description><link>https://forum.mango-os.com/post/13014</link><guid isPermaLink="true">https://forum.mango-os.com/post/13014</guid><dc:creator><![CDATA[hengst]]></dc:creator><pubDate>Thu, 27 Oct 2016 12:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Wed, 26 Oct 2016 22:30:22 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Mihai!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hengst" aria-label="Profile: hengst">@<bdi>hengst</bdi></a> Hello and welcome!</p>
<p dir="auto">Many of these things (offset, bits) are described in the help document available through the blue help (?) near the top of edit page for a data source or its points.</p>
<p dir="auto">if you're going to be adding a lot of devices and points, you can also experiment with the CSV importer once you get a point working, then export the CSV through the data source's row on the data sources page, and importing it or rows like it on the import/export page.</p>
]]></description><link>https://forum.mango-os.com/post/12997</link><guid isPermaLink="true">https://forum.mango-os.com/post/12997</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 26 Oct 2016 22:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to sdm120 kwh meter modbus how to add on Wed, 26 Oct 2016 21:32:07 GMT]]></title><description><![CDATA[<p dir="auto">Try this to read a point, like the Voltage from your meter.  You can get here from the Data Sources page.  See my picture below:</p>
<p dir="auto">Oh, your modbus settings have to match the meter, of course, like the bit rate, parity, etc.</p>
<p dir="auto"><img src="https://camo.nodebb.org/d341e1a32554ea02183f8eddb78a32ced1d53a79?url=https%3A%2F%2Fi.imgur.com%2FGaNKUU9.png" alt="0_1477517327314_read register test.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">One more thing, you have to turn off the serial data source to do the test, or else i'll throw an error because it's busy.</p>
]]></description><link>https://forum.mango-os.com/post/12995</link><guid isPermaLink="true">https://forum.mango-os.com/post/12995</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Wed, 26 Oct 2016 21:32:07 GMT</pubDate></item></channel></rss>