<?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[REXduino - Communication failure between Raspberry PI and Arduino_MEGA]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have another big problem with communication between Raspberry PI and ArduinoMEGA. I solved the previous communication problem, see <a href="https://forum.rexygen.com/topic/251/rexduino-rexlang-error">HERE</a>.<br />
I still use REXYGEN 2.50.10.12932, Arduino IDE 1.8.12 and REXduino master / slave version 2.2.0.<br />
Sometimes the communication between Raspberry PI and ArduinoMEGA fails. No data comes from or to ArduinoMEGA (measurement doesn´t change, nothing can be controlled), data remains in the last state.<br />
Communication status FB Arduino_MEGA2560hex, comm_status = 3, but the status LEDs Tx and Rx Arduino_MEGA don´t flash.<br />
So REXcore on Raspberry PI is still running, but the data from and to Arduino_MEGA isn´t going.<br />
According to the manual "REXduino_User_Guide.pdf" I tried to send the message c2 in the Arduino IDE, through the serial monitor. The E11 answer came back to me, but correct answer is c2.</p>
<p dir="auto">So could it be a problem? How to solve it?</p>
<p dir="auto">Thank you very much.<br />
Best regards.<br />
Michal</p>
]]></description><link>https://forum.rexygen.com/topic/261/rexduino-communication-failure-between-raspberry-pi-and-arduino_mega</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 06:30:28 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/261.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Aug 2021 05:09:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Mon, 14 Oct 2024 15:47:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Hello,<br />
I'm really sorry—I somehow overlooked the fact that you were posting in this old thread. The "Warning 1 1" indicates that the buffer for serial communication between the Master and Slave devices is full:</p>
<pre><code>#define WARNING_SERIAL 1
#define WARNING_SERIAL_BUFFER_FULL 1
</code></pre>
<p dir="auto">Have you added any new data communication or changed the communication speed recently? I’d also like to point out that REXduino is a third-party project, and we don’t have direct control over it. I found the explanation for the warning directly in the source code here:<br />
<a href="https://github.com/jaroslavs/REXduino/blob/master/REXduino_slave/REXduino_slave.ino">https://github.com/jaroslavs/REXduino/blob/master/REXduino_slave/REXduino_slave.ino</a></p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1636</link><guid isPermaLink="true">https://forum.rexygen.com/post/1636</guid><dc:creator><![CDATA[Jan Reitinger]]></dc:creator><pubDate>Mon, 14 Oct 2024 15:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Wed, 28 Aug 2024 07:17:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Hello gentlemen,<br />
can someone please respond to my last question pleas?<br />
Thanks a lot!<br />
Michal</p>
]]></description><link>https://forum.rexygen.com/post/1631</link><guid isPermaLink="true">https://forum.rexygen.com/post/1631</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Wed, 28 Aug 2024 07:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Fri, 03 May 2024 13:20:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,<br />
it's been a long time since I had communication problems between Raspbery PI and ArduinoiMega - REXduino. See previous communication problems. I did not make any significant changes in SW.</p>
<p dir="auto">In the last 2 days, there have been 2 communication failures:<br />
<img src="/assets/uploads/files/1714741873913-36c80311-138e-4c7f-8d20-9a71811abb75-obrazek.png" alt="36c80311-138e-4c7f-8d20-9a71811abb75-obrazek.png" class=" img-fluid img-markdown" /><br />
This indicates an error related to the checksum of the 1-wire measurement as explained to me in the previous answer. This could be explained by ordering some 1-wire measurement.</p>
<p dir="auto">But what I don't understand is that there are a lot of warnings:<br />
<img src="/assets/uploads/files/1714742153208-0f6f5aaa-7cd5-4829-92a3-d813cadf639f-obrazek.png" alt="0f6f5aaa-7cd5-4829-92a3-d813cadf639f-obrazek.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What does the warning "REXduino slave warning, code: 1 1" mean please?</p>
<p dir="auto">Is there a description of all error codes and warnings somewhere?</p>
<p dir="auto">Thanks a lot.<br />
Michal</p>
]]></description><link>https://forum.rexygen.com/post/1558</link><guid isPermaLink="true">https://forum.rexygen.com/post/1558</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Fri, 03 May 2024 13:20:22 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Mon, 08 Nov 2021 08:16:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Hi Michal,<br />
I think you can track the PIN number where error occurs when you configure the system log, as described in the last point of the Troubleshooting section described here: <a href="https://github.com/jaroslavs/REXduino/blob/master/REXduino_User_Guide.pdf">https://github.com/jaroslavs/REXduino/blob/master/REXduino_User_Guide.pdf</a>.</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1067</link><guid isPermaLink="true">https://forum.rexygen.com/post/1067</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Mon, 08 Nov 2021 08:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Fri, 05 Nov 2021 06:05:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,<br />
I continuously monitor the system log. None of the errors (49 52, 51 49, 49 50 or 52 51) that I solved last time have come. Errors still occur 52 51. I replaced one of the 1-wire sensors that oscillated the most, so there are fewer errors, about 10 errors a day (see below).<br />
It would not be bad if the system log could list the REXLANG error even with the pin where the errors occur. This would make it easier to find out which sensor has the most errors.<br />
Best regards<br />
Michal<br />
<img src="/assets/uploads/files/1636092299018-7b2ad537-760c-498f-a139-58d26c364dea-obrazek.png" alt="7b2ad537-760c-498f-a139-58d26c364dea-obrazek.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/post/1065</link><guid isPermaLink="true">https://forum.rexygen.com/post/1065</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Fri, 05 Nov 2021 06:05:25 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Thu, 07 Oct 2021 07:42:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Hi Michal,<br />
according to REXduino_slave.ino, the errors mean:</p>
<p dir="auto">49 52 - Error command - wrong pin number<br />
51 49 - Serial bus buffer is full<br />
49 50 - Error command - unknown command</p>
<p dir="auto">Unfortunately, I can't say remotely what happened. Have this errors been repeated? Has there been an error 52 51 since the last time?</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1056</link><guid isPermaLink="true">https://forum.rexygen.com/post/1056</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 07 Oct 2021 07:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Fri, 01 Oct 2021 10:40:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi,<br />
I have currently 6x 1-wire sensors connected. Each sensor is connected separately to Arduino pins 26 to 31. I increased the task period from 1s to 2s. I did that on September 22nd. Today came a new communication error, see the picture below. The serial line dropped out for a moment. Communication resumed immediately. New fault codes have appeared in the system log.<br />
What could have caused it?<br />
Thanks.<br />
Michal<br />
<img src="/assets/uploads/files/1633084601825-833b4550-1b7f-4bb0-a3ae-83ac403202e5-obrazek.png" alt="833b4550-1b7f-4bb0-a3ae-83ac403202e5-obrazek.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/post/1051</link><guid isPermaLink="true">https://forum.rexygen.com/post/1051</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Fri, 01 Oct 2021 10:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Tue, 21 Sep 2021 09:13:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a><br />
Hi Michal, we've been thinking about your problem and come to the conclusion that the 1-Wire bus may still be overloaded. After all, you have a lot of those temperature sensors there.  Please try to increase the task period from 1 s to 1.5 s  or disconnect a few sensors. If both errors and peaks disappear, there is a problem with 1-Wire.</p>
<p dir="auto">Best regards,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1037</link><guid isPermaLink="true">https://forum.rexygen.com/post/1037</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Tue, 21 Sep 2021 09:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Wed, 15 Sep 2021 12:47:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi,<br />
error 52 51 occurs continuously, see below. I only record "peak" in the graph occasionally, because I archive the data every minute, see the graph below.<br />
Michal<br />
<img src="/assets/uploads/files/1631709943806-239910bc-5fc4-4098-9bc3-d3d5024d93cb-obrazek.png" alt="239910bc-5fc4-4098-9bc3-d3d5024d93cb-obrazek.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1631710007153-1b63a5c7-ba20-48ac-8641-9b1127343b3a-obrazek.png" alt="1b63a5c7-ba20-48ac-8641-9b1127343b3a-obrazek.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/post/1036</link><guid isPermaLink="true">https://forum.rexygen.com/post/1036</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Wed, 15 Sep 2021 12:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Tue, 14 Sep 2021 11:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Dear Michal,<br />
this  52 51 error (<em>1-Wire bad crc</em>) is usually associated with data corruption during transmission.  That's why the peak appeared on the chart. The data is not relevant at this time. Does this error occur often?</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1035</link><guid isPermaLink="true">https://forum.rexygen.com/post/1035</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Tue, 14 Sep 2021 11:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Tue, 14 Sep 2021 05:02:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Hi,<br />
after three weeks, without a communication problem, the communication error came again. The communication error came exactly after the "peak" of the 1-wire Tsolar measurement (see graph below). The "comm_status" of FB Arduino_MEGA2560hex changes from 0 to 1 (0: Arduino not responding, waiting for timeout to try again, 1: Serial port open, trying to initialize communication).<br />
I still get 1-wire measurement errors in System Log ...</p>
<p dir="auto">This communication error has not yet occurred. Could it be related to that "peak" of measurement?</p>
<p dir="auto">Thanks.<br />
Best regards<br />
Michal</p>
<p dir="auto"><img src="/assets/uploads/files/1631595507102-5ad1ca89-8a61-4bbb-8cb0-313f9d7f55f1-obrazek.png" alt="5ad1ca89-8a61-4bbb-8cb0-313f9d7f55f1-obrazek.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1631595610645-b48b8bf9-40b8-44bf-a45c-db4fcb62d45b-obrazek.png" alt="b48b8bf9-40b8-44bf-a45c-db4fcb62d45b-obrazek.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1631595618656-30ab81d8-11cb-44fe-8b9b-44514c4e803f-obrazek.png" alt="30ab81d8-11cb-44fe-8b9b-44514c4e803f-obrazek.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1631595659152-9abdfc26-0dbd-44f2-a107-c1adff2f1d44-obrazek.png" alt="9abdfc26-0dbd-44f2-a107-c1adff2f1d44-obrazek.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/post/1034</link><guid isPermaLink="true">https://forum.rexygen.com/post/1034</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Tue, 14 Sep 2021 05:02:34 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Tue, 14 Sep 2021 04:49:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi,<br />
it isn´t related to the previous problem. This was solved by deploying the latest version of FB Arduino_MEGA2560hex and the latest library.<br />
But, during panel repairs, I accidentally found out that I have a broken USB cable between the RaspberryPI and ArduinoMEGA. This error did not recur after replacing the cable. So I will hope that this was the problem.<br />
Michal</p>
]]></description><link>https://forum.rexygen.com/post/1033</link><guid isPermaLink="true">https://forum.rexygen.com/post/1033</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Tue, 14 Sep 2021 04:49:22 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Mon, 16 Aug 2021 14:42:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> This system log output looks exactly like the one from the <a href="https://forum.rexygen.com/topic/251/rexduino-rexlang-error">previous topic</a>. Are you sure this is a different problem?</p>
]]></description><link>https://forum.rexygen.com/post/1024</link><guid isPermaLink="true">https://forum.rexygen.com/post/1024</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Mon, 16 Aug 2021 14:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Mon, 16 Aug 2021 12:02:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi,<br />
I will definitely analyze all outgoing and incoming data into the REXYGEN protocol system as you wrote. Then I'll let you know.</p>
<p dir="auto">However, at the last communication failure, the states of the communication variables of FB Arduino_MEGA2560hex were as follows (comm_status = 3, err_code = 57, err_subcode = 57). These values have not changed.<br />
The system log had the following errors:<br />
<img src="/assets/uploads/files/1629115202645-5eaf1643-be48-4d14-93fd-f10c2a8630a6-obrazek.png" alt="5eaf1643-be48-4d14-93fd-f10c2a8630a6-obrazek.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is it possible to find out what the problem is from this system log listing?</p>
<p dir="auto">Thanks.<br />
Best regards<br />
Michal</p>
]]></description><link>https://forum.rexygen.com/post/1023</link><guid isPermaLink="true">https://forum.rexygen.com/post/1023</guid><dc:creator><![CDATA[mtomek]]></dc:creator><pubDate>Mon, 16 Aug 2021 12:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to REXduino - Communication failure between Raspberry PI and Arduino_MEGA on Mon, 16 Aug 2021 07:46:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/97">@mtomek</a> Dear Michal,<br />
I'm not entirely sure where the problem might be.  Is there an error in the System Log?  Please set up the System log configuration according to the following instructions from the <em>REXduino_User_Guide.pdf</em> document and post the log output here.</p>
<p dir="auto">"You can print all the outgoing and incoming serial data to the REXYGEN System log. This will allow you to find the problem. In REXYGEN Studio, go to menu <em>Target</em>-&gt;<em>Configure System Log</em> and tick Information and Verbose in the Function block messages box. Afterwards you can open System log <em>Target</em>-&gt;<em>Show System Log</em> and analyze the serial communication. It is recommended to use a sampling period of 1 second for such debugging purposes."</p>
<p dir="auto">Best regards,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1021</link><guid isPermaLink="true">https://forum.rexygen.com/post/1021</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Mon, 16 Aug 2021 07:46:23 GMT</pubDate></item></channel></rss>