Small RS485 network - questions.
-
Hi Guys, I'm really new in MySensors topics so I decided to write new post with questions.
I want to create small network using RS485. I know that I have to prepare gateway (for me: Arduino Mega) and 3 nodes (any other Arduino). In the future I will connect gateway to the Hassio system (as the controller).
For now I want to connect nodes with gateway to exchange informations between them. It means, for example that I want to measure something on node1 and send it to the node3. And of course I want to send data to the gateway to keep it in the controller (hassio in the future).
Questions:
- Will my network work without controller (only gateway + nodes)?
- It is possible to send something from first node to the other one?
- If I connect network to the controller it will be possible to set any parameters from this controller?
- What can I do first?
Thank You in advance.
-
@szymo092 said in Small RS485 network - questions.:
- Will my network work without controller (only gateway + nodes)?
No. (As always in software: it is possible, but you'd need additional coding...) So basically: MySensors should always be connected to a controller.
- It is possible to send something from first node to the other one?
Yes. You have to add destination info when sending to another node.
(for code examples on both - not using a controller and node-to-node communication, see the two sketches in https://github.com/rejoe2/SkiStopwatch).- If I connect network to the controller it will be possible to set any parameters from this controller?
For sure; this requires some receive() functionality - just the same as node-to-node messages, so see mentionned examples or one of the MySensors-counter-build examples.
- What can I do first?
Make sure, only two of the RS485 Modules have the 120Ohms resistor and get your controller up and running
.
-
Thank You for Your answers. I will try to build network. So maybe I have to send informations from node1 to controller, but also to node3 using setDestination function. For now I have to start but I'm sure that it isn't end of questions.
Thank You very much.
-
Actually I have to disagree with @rejoe2 about:
Will my network work without controller (only gateway + nodes)?
With an Ethernet gateway it is entirely possible.
One more thing. If you are interested in building RS485 network, maybe you should have a look at my project. Earlier today I created a post about it on this forum. Here it is
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Home Assistant/MySensors quirks
Development • 15 days ago • OldSurferDude 15 days ago -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 20 days ago