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 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Home Assistant/MySensors quirks
Development • 12 days ago • OldSurferDude 12 days ago -
PJON and Minicore not working
Development • 7 days ago • Trand 7 days ago