<?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 RS-485 problem]]></title><description><![CDATA[<p dir="auto">Hi. I recently got myself a raspberry PI. I was thinking of running a web server with modbus communication in Mango M2M. I have a FTDI usb/serial converter connected to my PI. The problem is that i am getting this error message constantly after a few minutes of polling:</p>
<p dir="auto">"com.serotonin.modbus4j.exception.ModbusTransportException: com.serotonin.modbus4j.sero.messaging.TimeoutException: request=SerialMessage [modbusMessage=ReadCoilsRequest [slaveId=1, getFunctionCode()=1, toString()=ReadBinaryRequest [startOffset=0, numberOfBits=1]]]"</p>
<p dir="auto">I have been running the same communication with Mango M2M in Windows 10 for a long time with the same FTDI converter and it has been working perfectly. So the problem seem to be in Linux/Rasbian OS .<br />
I have been googling this problem but havent find anything that have been working properly<br />
My modbus RTU setting are:<br />
Updaterate: 30s<br />
Timeout: 500ms<br />
Retries: 2<br />
Has anyone any idea what the problem is?</p>
<p dir="auto">Thanks in advance //Mikael</p>
]]></description><link>https://forum.mango-os.com/topic/2616/modbus-rtu-rs-485-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 00:48:26 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2616.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jan 2017 20:30:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Thu, 12 Jan 2017 18:36:13 GMT]]></title><description><![CDATA[<p dir="auto">I have the original 2.5 amp powersupply for raspberry Pi3 , so shouldnt be the problem in this case.</p>
]]></description><link>https://forum.mango-os.com/post/13680</link><guid isPermaLink="true">https://forum.mango-os.com/post/13680</guid><dc:creator><![CDATA[Mikael]]></dc:creator><pubDate>Thu, 12 Jan 2017 18:36:13 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Thu, 12 Jan 2017 14:23:24 GMT]]></title><description><![CDATA[<p dir="auto">Make sure the Pi has an adequate power supply (&gt;2 amps). I had some issues with mine until I got a proper power supply.</p>
]]></description><link>https://forum.mango-os.com/post/13678</link><guid isPermaLink="true">https://forum.mango-os.com/post/13678</guid><dc:creator><![CDATA[DieselD]]></dc:creator><pubDate>Thu, 12 Jan 2017 14:23:24 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Wed, 11 Jan 2017 19:50:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello again! I baught an externaly powered usb hub today and plugged in my usb/serial adapter. I have only tested a short time sofar but , the polling in mango is working perfectly. So it seem to have solved my problem. Proberbly the voltage level is to low from the Pi usb outputs like you said.</p>
<p dir="auto">Thank you phildunlap and craig for your guidance and help with this "pain in the ass problem  of mine" .</p>
]]></description><link>https://forum.mango-os.com/post/13676</link><guid isPermaLink="true">https://forum.mango-os.com/post/13676</guid><dc:creator><![CDATA[Mikael]]></dc:creator><pubDate>Wed, 11 Jan 2017 19:50:14 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Tue, 10 Jan 2017 22:51:48 GMT]]></title><description><![CDATA[<p dir="auto">As phildunlap found it looks like a problem with the USB serial port and linux or rpi hardware and not a mango problem.  Try a powered USB hub?</p>
]]></description><link>https://forum.mango-os.com/post/13672</link><guid isPermaLink="true">https://forum.mango-os.com/post/13672</guid><dc:creator><![CDATA[craig]]></dc:creator><pubDate>Tue, 10 Jan 2017 22:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Wed, 11 Jan 2017 23:06:40 GMT]]></title><description><![CDATA[<p dir="auto">It is possible your slave doesn't respond at all to requests will illegal registers. You could try lowering the max registers per request to 1 and see if that changes anything.</p>
<p dir="auto">You have said Mango M2M twice, so I am wondering what version of Mango is this?</p>
<p dir="auto">Mango is my favorite modbus master!</p>
<p dir="auto">Googling that "usb serial failed to get modem status" got me a forum post with someone saying the voltage expected by their converter wasn't what was being supplied by the device. The device was supplying too low a voltage, says that forum.</p>
]]></description><link>https://forum.mango-os.com/post/13671</link><guid isPermaLink="true">https://forum.mango-os.com/post/13671</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 11 Jan 2017 23:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Tue, 10 Jan 2017 21:01:17 GMT]]></title><description><![CDATA[<p dir="auto">Hey . I have been searching for a answer for a few days with the new information I got from you, to solve my problem. No luck so far thou. I have been monitoring dmesg when i get error like you said. It looks like this:</p>
<p dir="auto">[177933.336023] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[177936.967285] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[177939.391069] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32<br />
[177997.635468] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178012.491447] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178014.356323] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178022.094132] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178030.387082] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178037.685084] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178194.498338] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178211.858300] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178224.504454] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32<br />
[178230.219091] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32<br />
[178296.276900] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32[178330.143037] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -3<br />
[178382.466934] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
[178388.017523] ftdi_sio ttyUSB0: failed to get modem status: -32<br />
And goes on and on if I try to reset the connection in Mango. One strange thing is that it seems to work perfect if you poll manually in "Point locataor test " in mango. I never get any error when I do the polls manually nomatter how many times i try it. I havent tested any other program with modbus yet. I will try to find a good modbus master software. Do you know any good one working with Rpi 3?</p>
<p dir="auto">//Mikael</p>
]]></description><link>https://forum.mango-os.com/post/13669</link><guid isPermaLink="true">https://forum.mango-os.com/post/13669</guid><dc:creator><![CDATA[Mikael]]></dc:creator><pubDate>Tue, 10 Jan 2017 21:01:17 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Tue, 03 Jan 2017 18:52:53 GMT]]></title><description><![CDATA[<p dir="auto">Hello again, and thanks for taking time helping me.</p>
<p dir="auto">Yes, it is updating correcly for about 1-2 minutes no matter what updatarate and timeout i set. I get correct values. But then stops and i get the fault message. Yepp it has RX/TX leds and you see its updating correcly those first minutes. But then you see like 8-9 fast blinks from rx/tx leds and the fault message in m2m.</p>
<p dir="auto">I will try what you are suggesting tomorow and see what happens. I will come back when I have tested.</p>
]]></description><link>https://forum.mango-os.com/post/13602</link><guid isPermaLink="true">https://forum.mango-os.com/post/13602</guid><dc:creator><![CDATA[Mikael]]></dc:creator><pubDate>Tue, 03 Jan 2017 18:52:53 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Tue, 03 Jan 2017 18:58:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craig" aria-label="Profile: craig">@<bdi>craig</bdi></a> thanks for helping people with their questions this last week!</p>
<p dir="auto">Hi Mikael,</p>
<p dir="auto">If I understand you correctly, you're saying that it works for several minutes, then stops working? As craig suggested, checking that the serial port works is a good first step. Linux is really nice in that you can do things like <code>sudo echo "Hello World" &gt;&gt; /dev/ttyUSB0</code> and it'll try to write out those characters at the configuration of the serial port. Hopefully your converter has rx/tx LEDs?</p>
<p dir="auto">Some other things to keep eyes out for is reenumerating the serial port, but the enumeration changing. I.E. /dev/ttyUSB0 is now showing up as /dev/ttyUSB1 . You could see this enumeration occurring in a <code>dmesg</code> output. Another possibility is that something else is resetting the configuration periodically. So, in a working state, observe <code>sudo stty -a -F /dev/ttyUSB0</code> and then observe the command again when it is not working. If the confiugration of the port is not the same, either the connection to the serial converter is bad (try another USB port) or something else is fussing with the serial converter.</p>
]]></description><link>https://forum.mango-os.com/post/13596</link><guid isPermaLink="true">https://forum.mango-os.com/post/13596</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 03 Jan 2017 18:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to Modbus RTU RS-485 problem on Tue, 03 Jan 2017 16:26:41 GMT]]></title><description><![CDATA[<p dir="auto">The error is a timeout. Are you sure you have the correct serial port address?</p>
<p dir="auto">Make sure you can use the serial port from other linux programs.</p>
]]></description><link>https://forum.mango-os.com/post/13590</link><guid isPermaLink="true">https://forum.mango-os.com/post/13590</guid><dc:creator><![CDATA[craig]]></dc:creator><pubDate>Tue, 03 Jan 2017 16:26:41 GMT</pubDate></item></channel></rss>