Multiple Gateways
-
Hi
I live on a high property and as such. have more than one gateway. I have not changed the channel of these gateways as they are not in wireless range of each other. and I want to have the nodes be interchangeable between gateways without the need to have to upload a new sketch each time they are moved between gateways.
What are the implications of this setup, will each gateway remember the node if the nodes are move from one gateways range to the other, or does the gateway allocate a node id automatically each time the node presents itself to the gateway.
How will this impact the controller (Home Assistant) will the controller be confused
-
@terence-faul gateways have a routing table, but except that gateways never remember anything.
Gateways never allocate node ID. Node IDs are allocated by a Controller.Different Controllers can handle ID generation differently. I am not familiar with Home Assistant, but I would guess that it allocates nodeIDs per gateway. If Home Assistant allocates nodeIDs globally, it would be impossible to have more than 253 nodes regardless of how many gateways you have.
If a node is programmed with AUTO nodeID, the node will ask the controller for an ID the first time it boots up. The node will then write the nodeID to EEPROM and reuse that nodeID in the future, regardless if it switches gateway or not. This could lead to nodeID collisions in your setup.
-
Thanks that was really useful, I think the only way would be to define the node ID.
Would that require that the node have its EEPROM cleaned first?
-
@terence-faul if MY_NODE_ID is defined in the sketch (before including MySensors.h), the node ID will be written to eeprom at startup (overwriting any previous value).
-
@terence-faul this is not a fail prove design. Nodes are not typically moved even within one GW. Each GW must have each one channel and the same goes for nodes. Otherwise, in theory you may have a situation that the same node is reporting to one GW and then to the other GW. For controller this is going to be a chaos. A lot of data will be shared between two similar child IDs, i.e. for example two similar temperature child IDs for one node will have one measurement assigned through the first GW to the first temperature child ID and another measurement assigned to another child ID through another GW.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 23 Feb 2025, 14:57 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 5 days ago -
ESP32 with LoRa
General Discussion • 31 Jan 2023, 11:06 • dhanushmh about 21 hours ago -
Human presence sensors....
General Discussion • 31 Jan 2025, 10:54 • skywatch 9 Feb 2025, 19:36