<?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[MODBUS RTU 1ms inter-byte delay ISSUE]]></title><description><![CDATA[<p dir="auto">modbus ascii works just fine</p>
<p dir="auto"><a href="http://rocketdynamic.pl/mango/normal_19200.jpg" rel="nofollow ugc">19200,8,N,1 - NORMAL</a><br />
<a href="http://rocketdynamic.pl/mango/mango_fucktup_19200.jpg" rel="nofollow ugc">19200,8,N,1 - MANGO</a></p>
<p dir="auto"><a href="http://rocketdynamic.pl/mango/normal_115200.jpg" rel="nofollow ugc">115200,8,N,1 - NORMAL</a><br />
<a href="http://rocketdynamic.pl/mango/mango_fucktup_115200.jpg" rel="nofollow ugc">115200,8,N,1 - MANGO</a></p>
<p dir="auto"><a href="http://rocketdynamic.pl/mango/prtsc.jpg" rel="nofollow ugc">PrtSc</a></p>
<p dir="auto">How can I fix this?</p>
<p dir="auto">????<br />
modbus4j/serial/rtu/RtuMaster.java</p>
]]></description><link>https://forum.mango-os.com/topic/1865/modbus-rtu-1ms-inter-byte-delay-issue</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 17:02:21 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1865.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Apr 2015 01:42:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Sat, 25 Apr 2015 00:47:57 GMT]]></title><description><![CDATA[<p dir="auto">xbastek,</p>
<p dir="auto">You say:</p>
<blockquote>
<p dir="auto">But i don't know how to update this files in my mango installation...</p>
</blockquote>
<p dir="auto">It will be far easier for you to upgrade to Mango 2.6.0 that has all the work done for you.  It will be pre-released very soon.</p>
<p dir="auto">Thanks,<br />
Terry</p>
]]></description><link>https://forum.mango-os.com/post/9948</link><guid isPermaLink="true">https://forum.mango-os.com/post/9948</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Sat, 25 Apr 2015 00:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Fri, 24 Apr 2015 23:22:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terrypacker" aria-label="Profile: terrypacker">@<bdi>terrypacker</bdi></a> said:</p>
<blockquote>
<p dir="auto">xbastek,</p>
<p dir="auto">Thanks for the in-depth information.</p>
<p dir="auto">From the Modbus spec here: <a href="http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf" rel="nofollow ugc">http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf</a></p>
<p dir="auto">On page 13 at the bottom there is a remark about RTU that states:<br />
For baud rates greater than 19200 Bps, fixed values for the 2 timers should be used: it is recommended to use a value of 750μs for the inter-character time-out (t1.5) and a value of 1.750ms for inter-frame delay (t3.5).</p>
<p dir="auto">In the past we have had some issues with timing on some systems so we added a larger inter-character space.</p>
<p dir="auto">However your scope is showing spacing greater than the 750μs maximum which is causing the problem.</p>
<p dir="auto">To answer your question:</p>
<p dir="auto">is mango useing this code?<br />
Yes that is the code we use.<br />
Proposed solution:</p>
<p dir="auto">Add an additional constructor to the Modbus4j library that allows passing in the spacing.</p>
<p dir="auto">Add an additional constructor to the Modbus4j library that allows choosing to use 0 spacing or let the library compute the spacing based on the serial settings.</p>
<p dir="auto">Keep the existing constructor that defaults to computing the spacing.</p>
<p dir="auto">Expose the option to set the spacing in the Mango Modbus Data Source module.</p>
</blockquote>
<p dir="auto">Each proposed solution is good enough..<br />
You made the RTU timing settings configurable. :)<br />
But i don't know how to update this files in my mango installation...</p>
]]></description><link>https://forum.mango-os.com/post/9947</link><guid isPermaLink="true">https://forum.mango-os.com/post/9947</guid><dc:creator><![CDATA[xbastek]]></dc:creator><pubDate>Fri, 24 Apr 2015 23:22:19 GMT</pubDate></item><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Fri, 24 Apr 2015 22:18:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terrypacker" aria-label="Profile: terrypacker">@<bdi>terrypacker</bdi></a> <img src="https://camo.nodebb.org/97d42b397cc7703ba7453620530a94f20d8d6c04?url=https%3A%2F%2Fi.imgur.com%2F5J2eNsG.png" alt="spec.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">my english is poor, i may don't understand it well enough..</p>
<p dir="auto">loock at  <a href="http://libmodbus.org/download/" rel="nofollow ugc">libmodbus</a>  libmodbus-3.1.2/src/modbus-rtu.c</p>
]]></description><link>https://forum.mango-os.com/post/9941</link><guid isPermaLink="true">https://forum.mango-os.com/post/9941</guid><dc:creator><![CDATA[xbastek]]></dc:creator><pubDate>Fri, 24 Apr 2015 22:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Thu, 23 Apr 2015 19:38:45 GMT]]></title><description><![CDATA[<p dir="auto">xbastek,</p>
<p dir="auto">Thanks for the in-depth information.</p>
<p dir="auto">From the Modbus spec here: <a href="http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf" rel="nofollow ugc">http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf</a></p>
<p dir="auto">On page 13 at the bottom there is a remark about RTU that states:<br />
For baud rates greater than 19200 Bps, fixed values for the 2 timers should be used: it is recommended to use a value of 750μs for the inter-character time-out (t1.5) and a value of 1.750ms for inter-frame delay (t3.5).</p>
<p dir="auto">In the past we have had some issues with timing on some systems so we added a larger inter-character space.</p>
<p dir="auto">However your scope is showing spacing greater than the 750μs maximum which is causing the problem.</p>
<p dir="auto">To answer your question:</p>
<blockquote>
<p dir="auto">is mango useing this code?<br />
Yes that is the code we use.</p>
</blockquote>
<p dir="auto">Proposed solution:</p>
<ol>
<li>
<p dir="auto">Add an additional constructor to the Modbus4j library that allows passing in the spacing.</p>
</li>
<li>
<p dir="auto">Add an additional constructor to the Modbus4j library that allows choosing to use 0 spacing or let the library compute the spacing based on the serial settings.</p>
</li>
<li>
<p dir="auto">Keep the existing constructor that defaults to computing the spacing.</p>
</li>
<li>
<p dir="auto">Expose the option to set the spacing in the Mango Modbus Data Source module.</p>
</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/9937</link><guid isPermaLink="true">https://forum.mango-os.com/post/9937</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Thu, 23 Apr 2015 19:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Thu, 23 Apr 2015 16:49:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xbastek" aria-label="Profile: xbastek">@<bdi>xbastek</bdi></a> said:</p>
<blockquote>
<p dir="auto">RtuMaster.jav</p>
</blockquote>
<p dir="auto">my test setup:<br />
SERVER (debian+mango demo license) &lt;-&gt; (USB&lt;-&gt;RS485) &lt;-&gt; PLC &lt;-&gt; (RS485&lt;-&gt;USB) &lt;-&gt; PC (Docklight)</p>
<p dir="auto">Distributor ID: Debian<br />
Description:    Debian GNU/Linux 7.8 (wheezy)<br />
Release:        7.8<br />
Codename:       wheezy</p>
<p dir="auto">Package mango: 2.5.2.5</p>
<p dir="auto">core 2.5.2 build 6 - *** unlicensed ***<br />
modbus 1.5.4 - *** unlicensed ***<br />
....</p>
<p dir="auto">i configured one data source "Modbus Serial" with one data point - just for test<br />
MODBUS RTU 19200,8,N,1<br />
...and...<br />
...PLC do not respond... but Docklight read correct frame modbus rtu frame<br />
i send the same  frame from Docklight and plc respond correctly..<br />
so i Hook-up scope and identified the problem...<br />
<a href="http://rocketdynamic.pl/mango/mango_fucktup_19200.jpg" rel="nofollow ugc">delays between individual bytes in frame.</a><br />
in ASCII mod there is no delays between bytes, works just fine...<br />
but i need RTU mod..</p>
<p dir="auto">I particularly don't like modbus4j/serial/rtu/RtuMaster.java<br />
it seam to by something with<br />
Thread.sleep.........<br />
this.characterSpacing.........<br />
i have never heard about character spacing in modbus rtu before...????</p>
<p dir="auto">is mango useing this <a href="https://github.com/infiniteautomation/modbus4j/blob/master/Modbus4J/src/com/serotonin/modbus4j/serial/rtu/RtuMaster.java" rel="nofollow ugc">code</a>?</p>
]]></description><link>https://forum.mango-os.com/post/9916</link><guid isPermaLink="true">https://forum.mango-os.com/post/9916</guid><dc:creator><![CDATA[xbastek]]></dc:creator><pubDate>Thu, 23 Apr 2015 16:49:33 GMT</pubDate></item><item><title><![CDATA[Reply to MODBUS RTU 1ms inter-byte delay ISSUE on Wed, 22 Apr 2015 15:41:13 GMT]]></title><description><![CDATA[<p dir="auto">can you give more detail information?</p>
]]></description><link>https://forum.mango-os.com/post/9913</link><guid isPermaLink="true">https://forum.mango-os.com/post/9913</guid><dc:creator><![CDATA[hussam]]></dc:creator><pubDate>Wed, 22 Apr 2015 15:41:13 GMT</pubDate></item></channel></rss>