<?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[RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org]]></title><description><![CDATA[<p dir="auto">Hi everyone !</p>
<p dir="auto">I needed a wired solution for my several nodes.<br />
Here is the serial rs485/rs232 wired network transport for mysensors.<br />
<a href="https://github.com/leodesigner/mysensors-serial-transport" rel="nofollow ugc">https://github.com/leodesigner/mysensors-serial-transport</a><br />
It is based on the  Majenko ICSC serial library.<br />
Can you please test it? It is a beta version - but it is working for me.<br />
(However, I am still waiting for my rs485 boards to arrive)<br />
You can find more technical information at<br />
<a href="http://sourceforge.net/p/arduino-icsc/wiki/RS-485/" rel="nofollow ugc">http://sourceforge.net/p/arduino-icsc/wiki/RS-485/</a></p>
<p dir="auto">To use it, you have to:</p>
<ol>
<li>Put SerialTransport.cpp and SerialTransport.h to folder/directory/path SerialTransport in your library.</li>
<li>Add #include &lt;SerialTransport.h&gt; to your .ino sketch</li>
<li>Replace transport class with:<br />
MyTransportSerial transport(Serial,0,-1); // serial port, node, dePin (-1 disabled)</li>
</ol>
<p dir="auto">Please let me know about bugs and how it is working for you.</p>
]]></description><link>https://forum.mysensors.org/topic/1947/rs485-rs232-serial-transport-class-for-mysensors-org</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 19:52:36 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/1947.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Sep 2015 15:04:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 07 Jan 2017 10:43:09 GMT]]></title><description><![CDATA[<p dir="auto">Today the new rs485 shield arrived, i will solder it up over the weekend and start testing early next week:)</p>
]]></description><link>https://forum.mysensors.org/post/56347</link><guid isPermaLink="true">https://forum.mysensors.org/post/56347</guid><dc:creator><![CDATA[skatun]]></dc:creator><pubDate>Sat, 07 Jan 2017 10:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 07 Jan 2017 12:49:23 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to get my Ethernet gateway (UNO with W5100) working with RS485 transport.<br />
While RS485 part seems to be working fine between the node and gateway, the Ethernet part seems to be dead. I suspect this is related to the fact that Ethernet shield uses pin 10 which is unusable with RS485. Am I right? Any workaround?</p>
]]></description><link>https://forum.mysensors.org/post/56293</link><guid isPermaLink="true">https://forum.mysensors.org/post/56293</guid><dc:creator><![CDATA[AndrewZ]]></dc:creator><pubDate>Sat, 07 Jan 2017 12:49:23 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Tue, 01 Nov 2016 19:19:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a><br />
thanks for this really fast and motivating response, I will try!</p>
]]></description><link>https://forum.mysensors.org/post/51539</link><guid isPermaLink="true">https://forum.mysensors.org/post/51539</guid><dc:creator><![CDATA[AndrewZ]]></dc:creator><pubDate>Tue, 01 Nov 2016 19:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Tue, 01 Nov 2016 19:12:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrewz" aria-label="Profile: AndrewZ">@<bdi>AndrewZ</bdi></a></p>
<p dir="auto">Yes, that should work just fine.</p>
]]></description><link>https://forum.mysensors.org/post/51538</link><guid isPermaLink="true">https://forum.mysensors.org/post/51538</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Tue, 01 Nov 2016 19:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Tue, 01 Nov 2016 19:11:48 GMT]]></title><description><![CDATA[<p dir="auto">I'm curious whether it is possible to use this RS485 transport with Ethernet or MQTT gateway or Serial gateway is the only option?<br />
For example, controller talks with MySensors Gateway over Ethernet,<br />
MySensors Gateway talks with the Nodes over RS485.<br />
Thanks!</p>
]]></description><link>https://forum.mysensors.org/post/51537</link><guid isPermaLink="true">https://forum.mysensors.org/post/51537</guid><dc:creator><![CDATA[AndrewZ]]></dc:creator><pubDate>Tue, 01 Nov 2016 19:11:48 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Mon, 24 Oct 2016 19:32:43 GMT]]></title><description><![CDATA[<p dir="auto">[Solved]<br />
Initial Problem were incoming messages at sensor node during reading an image from SD card (170ms). Increase of serial RX buffer size solved the problem.</p>
<p dir="auto">Good to know:<br />
The serial buffer size is not defined in:<br />
c:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h<br />
You can change the numbers with no effect to your sketch.</p>
<p dir="auto">You have to change:<br />
c:\Users...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.14\cores\arduino\HardwareSerial.h</p>
<p dir="auto">Then it will work :smiley:</p>
]]></description><link>https://forum.mysensors.org/post/51069</link><guid isPermaLink="true">https://forum.mysensors.org/post/51069</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Mon, 24 Oct 2016 19:32:43 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sun, 23 Oct 2016 20:12:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leodesigner" aria-label="Profile: LeoDesigner">@<bdi>LeoDesigner</bdi></a><br />
I did a hardware update. Now sensor and gateway are arduino mega. Everything is running on 115200 hardware serial.<br />
RS485 communication looks good. Data is going into sensor node, but does not appear in MySensors.<br />
I tried to increase RX buffer via #define SERIAL_RX_BUFFER_SIZE 256, with no effect in functionality. Does this define works as expected? Because this buffer size number has no effect on the 'dynamic memory' usage after compiling the sketch. It shows always the same number of used bytes, independent of the RX buffer size.</p>
]]></description><link>https://forum.mysensors.org/post/50999</link><guid isPermaLink="true">https://forum.mysensors.org/post/50999</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Sun, 23 Oct 2016 20:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 22 Oct 2016 15:02:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/karlheinz2000" aria-label="Profile: karlheinz2000">@<bdi>karlheinz2000</bdi></a><br />
I had no chance to look to the AltSoftSerial code, but if we are talking about hardware serial - arduino as a standard has 64 bytes buffer. I think it's possible that your gateway is not fast enough to process packets at high rate from FHEM. Also even if they are processed on time - at 19200 you may loose packets due low serial speed. It's simple no room for next packet.</p>
]]></description><link>https://forum.mysensors.org/post/50919</link><guid isPermaLink="true">https://forum.mysensors.org/post/50919</guid><dc:creator><![CDATA[LeoDesigner]]></dc:creator><pubDate>Sat, 22 Oct 2016 15:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 20 Oct 2016 12:12:53 GMT]]></title><description><![CDATA[<p dir="auto">Is any data buffer/FIFO implemented in RS485 gateway?<br />
My controller (fhem) is transmitting data too fast to the gateway, so some data is not transmitted on RS485.<br />
I checked RX/TX from controller to gateway -&gt; all data is going into gateway. But not all data goes out to my sensor node.</p>
<p dir="auto">I have only one sensor (and gateway) on RS485.<br />
Baudrate is 19200 on RS485 and to controller.<br />
Sensor node uses HW serial. Gateway is on NANO with AltSoftSerial.</p>
]]></description><link>https://forum.mysensors.org/post/50737</link><guid isPermaLink="true">https://forum.mysensors.org/post/50737</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Thu, 20 Oct 2016 12:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 08 Oct 2016 17:40:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> ok. all good now - the ping pong example working. I forgot about the gateway flag.</p>
<p dir="auto">BTW, checked to see if the GW has any issues without PR 599 but it seems it is still working OK. I have not changed the HW connections so must be some other change.</p>
]]></description><link>https://forum.mysensors.org/post/49689</link><guid isPermaLink="true">https://forum.mysensors.org/post/49689</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Sat, 08 Oct 2016 17:40:19 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 08 Oct 2016 14:37:27 GMT]]></title><description><![CDATA[<p dir="auto">Did you set one of them to be repeater (or gateway)?</p>
]]></description><link>https://forum.mysensors.org/post/49671</link><guid isPermaLink="true">https://forum.mysensors.org/post/49671</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sat, 08 Oct 2016 14:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sat, 08 Oct 2016 14:33:40 GMT]]></title><description><![CDATA[<p dir="auto">I am wondering if a node-2-node communication should be working. I have compiled the ping/pong example for RS485 but it appears the nodes are not communicating.</p>
]]></description><link>https://forum.mysensors.org/post/49669</link><guid isPermaLink="true">https://forum.mysensors.org/post/49669</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Sat, 08 Oct 2016 14:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Fri, 07 Oct 2016 09:01:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> I will try to check if this change did it.</p>
]]></description><link>https://forum.mysensors.org/post/49608</link><guid isPermaLink="true">https://forum.mysensors.org/post/49608</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Fri, 07 Oct 2016 09:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Fri, 07 Oct 2016 05:22:55 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, strange. Wonder if this PR affected the behaviour of AltSoftSerial (in a good way).</p>
<p dir="auto"><a href="https://github.com/mysensors/MySensors/pull/599" rel="nofollow ugc">https://github.com/mysensors/MySensors/pull/599</a></p>
]]></description><link>https://forum.mysensors.org/post/49598</link><guid isPermaLink="true">https://forum.mysensors.org/post/49598</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Fri, 07 Oct 2016 05:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 06 Oct 2016 23:25:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> Looks like something has been fixed in regards to altSoftSerial. Today I've pulled latest development and everything works fine. The gateway has no problem finding nodes and all messages reach their destinations.</p>
]]></description><link>https://forum.mysensors.org/post/49591</link><guid isPermaLink="true">https://forum.mysensors.org/post/49591</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Thu, 06 Oct 2016 23:25:17 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 06 Oct 2016 11:37:12 GMT]]></title><description><![CDATA[<p dir="auto">I use a mega with hw-serial and a nano (gateway) with AltSoftSerial.<br />
It works fine the last 24 hours. Still running...<br />
I did not test other configurations.</p>
]]></description><link>https://forum.mysensors.org/post/49553</link><guid isPermaLink="true">https://forum.mysensors.org/post/49553</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Thu, 06 Oct 2016 11:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 06 Oct 2016 08:28:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/karlheinz2000" aria-label="Profile: karlheinz2000">@<bdi>karlheinz2000</bdi></a> Are any of your boards using AltSoftSerial instead of HW serial? I was not able to get a reliable connection with software serial library....</p>
]]></description><link>https://forum.mysensors.org/post/49545</link><guid isPermaLink="true">https://forum.mysensors.org/post/49545</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Thu, 06 Oct 2016 08:28:31 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 06 Oct 2016 07:58:03 GMT]]></title><description><![CDATA[<p dir="auto">Got it working too :smile:<br />
Problem was: RX1 and TX1 labels on the chinese Mega2560 board are swapped.  :angry:<br />
All other RX/TX labels are right.</p>
]]></description><link>https://forum.mysensors.org/post/49544</link><guid isPermaLink="true">https://forum.mysensors.org/post/49544</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Thu, 06 Oct 2016 07:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Fri, 30 Sep 2016 04:38:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/karlheinz2000" aria-label="Profile: karlheinz2000">@<bdi>karlheinz2000</bdi></a><br />
Yes. Got it working with this patch. Although not reliably when other board was using the altsoftserial.</p>
]]></description><link>https://forum.mysensors.org/post/48994</link><guid isPermaLink="true">https://forum.mysensors.org/post/48994</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Fri, 30 Sep 2016 04:38:41 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Thu, 29 Sep 2016 20:48:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bart" aria-label="Profile: Bart">@<bdi>Bart</bdi></a><br />
Does it work with serial1 on mega2560?</p>
<p dir="auto">I can't get a single bit out of the harware serial1.<br />
Is it only the smal patch in MyTransportRS485.cpp?</p>
]]></description><link>https://forum.mysensors.org/post/48987</link><guid isPermaLink="true">https://forum.mysensors.org/post/48987</guid><dc:creator><![CDATA[karlheinz2000]]></dc:creator><pubDate>Thu, 29 Sep 2016 20:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Mon, 19 Sep 2016 21:33:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a><br />
I will do the schematic once I solve all issues as I am still losing events while connected to Home Assistant. Need to check whether it is because of pymysensors library (Home Assistant side) or if there is still some GW &lt;-&gt; Sensors problem. At this moment my Sensors board has around 48 binary states one can set/read from the controller and at the same time they are changeable via input pins (falling edge toggles the switch).</p>
<p dir="auto">To give a quick overview of my setup:</p>
<p dir="auto">2 x (MEGA 2560 + RS485 module)<br />
<img src="http://img.dxcdn.com/productimages/sku_163849_3.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have the following connections for each mega+rs485 module:</p>
<ul>
<li>+5/GND connected to respective pins on rs485 module</li>
<li>D2 connected to RE/DE</li>
<li>D18 &lt;-&gt; RO</li>
<li>D19 &lt;-&gt; DI</li>
</ul>
<p dir="auto">The A and B lines are connected to each other. (A-A, B-B). And most importantly I am using the above mentioned minor change in the MyTransportRS485.cpp to replace altSoftSerial with Serial1 (<a href="https://forum.mysensors.org/topic/1947/rs485-rs232-serial-transport-class-for-mysensors-org/99">https://forum.mysensors.org/topic/1947/rs485-rs232-serial-transport-class-for-mysensors-org/99</a>)</p>
<p dir="auto">and just if anyone would like to try it here's the config I am using:</p>
<pre><code>// Gateway:
#define MY_RS485
#define MY_RS485_DE_PIN 2
#define MY_RS485_BAUD_RATE 9600
#define MY_GATEWAY_SERIAL
// below not official for getting the Serial1
#define MY_RS485_SERIAL Serial1
</code></pre>
<pre><code>// Sensor node
#define MY_DEBUG
#define MY_RS485
#define MY_RS485_DE_PIN 2
#define MY_RS485_BAUD_RATE 9600
// below not official for getting the Serial1
#define MY_RS485_SERIAL Serial1
</code></pre>
]]></description><link>https://forum.mysensors.org/post/48054</link><guid isPermaLink="true">https://forum.mysensors.org/post/48054</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Mon, 19 Sep 2016 21:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Mon, 19 Sep 2016 20:22:10 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the feedback.</p>
<p dir="auto">So how should the modules be inter-connected? Do you have time to create some drawing for the instruction page?</p>
]]></description><link>https://forum.mysensors.org/post/48048</link><guid isPermaLink="true">https://forum.mysensors.org/post/48048</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Mon, 19 Sep 2016 20:22:10 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Mon, 19 Sep 2016 20:07:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a></p>
<p dir="auto">I was able to solve that long initialization problem with removing AltSoftSerial completely and using another Mega board on Serial1 serving as a GW. It looks like the AltSoftSerial on Nano was not working well with Serial1 on Mega.</p>
<p dir="auto">Strange that although now it works almost instantly, the reading of data from the HA takes longer than before... Not sure what could be causing this.</p>
<p dir="auto">It looks that these RS485 modules have the resistors already added between A and B cables and +5 and GND so I don't think that could be an issue.</p>
]]></description><link>https://forum.mysensors.org/post/48044</link><guid isPermaLink="true">https://forum.mysensors.org/post/48044</guid><dc:creator><![CDATA[Bart]]></dc:creator><pubDate>Mon, 19 Sep 2016 20:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to RS485&#x2F;RS232&#x2F;Serial transport class for mysensors.org on Sun, 18 Sep 2016 00:47:43 GMT]]></title><description><![CDATA[<p dir="auto">I have a question, when I wont send do domoticz from Arduino presentation lightsensor I can send by serial something like this:</p>
<pre><code>1;2;0;0;16;V_LIGHT_LEVEL
</code></pre>
<p dir="auto">and domoticz will understend that is the lightsensor LUX ?</p>
]]></description><link>https://forum.mysensors.org/post/47914</link><guid isPermaLink="true">https://forum.mysensors.org/post/47914</guid><dc:creator><![CDATA[elektro12345]]></dc:creator><pubDate>Sun, 18 Sep 2016 00:47:43 GMT</pubDate></item></channel></rss>