Moving sensor from one network to another may cause conflict
-
Hi
My question is about moving sensor from one 'MySensors network' (lets call it network A) to another (lets call it network B ), ie: a friend give you one of his sensors from his network. In this scenario, the sensor still use his network A id in the network B. This may cause conflicts with another sensor with the same id in the new network...
A solution would be to give a network some kind of hashcode to compare with a sensor at boot time (in gw.begin()). If hashcodes are different (the one stored in the controller/gateway and the one stored in the sensor), then the sensor need to reinitialize (reset EEPROM and reboot) before any other action. The hashcode may be a string of 8 characters for example.
Add a new sub-type for internal mesage like this :
I_NETWORK_HASHCODE with a value of 15 (?) with the comment "Hashcode used in the network to avoid conflict with others networks".What do you think about that ?
Suggested Topics
-
Perimeter wire with sensors for robotic mower
Hardware • 22 Sept 2014, 19:40 • grint 23 Sept 2014, 19:35 -
Question about MySensors features
My Project • 10 May 2020, 13:41 • IronFelix 11 May 2020, 01:34 -
Connect sensors directly to the Gateway (again)
Development • 12 Jan 2016, 09:01 • mortommy 1 Sept 2016, 12:58 -
Motion Sensing sketch which is also a repeater
Troubleshooting • 18 Jan 2015, 10:07 • Dean 15 Mar 2015, 04:08 -
Home Assistant v 0.12
Home Assistant • 30 Jan 2016, 13:57 • martinhjelmare 30 Jan 2016, 15:05 -
Network of arduinos using NRF24l01+ RF transceivers using Mysensor library
Feature Requests • 3 Feb 2015, 14:07 • amitach 3 Feb 2015, 16:03 -
General advice
General Discussion • 8 Oct 2014, 18:43 • shawn_ky 17 Oct 2014, 06:27