Change RF24 transport channel
-
Hi guys!
I've got an idea to use mysensors devices for education in the class but I'm thinking how to run multiple networks in the same area. I'm thinking about using different RF channels for different set of "sensors+gateway" packs. So my question -- is it possible to switch the channel in runtime? Basically, I'm thinking about starting sensors on some "public" channel, switch given gateway to the same "public" channel to send its "private" channel number so all nodes running on "public" channel will receive it, switch to that channel and store it to EEPROM for the next start. After that gateway will switch back to its "private" channel to talk to new sensors.
Or maybe you could suggest some other way for given task..
Thanks!
-
I suppose it is not possible to do... Maybe any alternative ideas? Is there any way I can have, for example, two networks running with no need to re-compile and re-upload their code?
-
It should be possible. Why not use the SetChannel() function of the RF24 library to set a different channel for each network? And use few jumpers connected to free inputs of the cpu for channelselection, and/or Sensor-ID selection. So no need for recompilation....or automatic configuration....which method is also possible, but needs more code changes..
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
PJON and Minicore not working
Development • 29 days ago • Trand 29 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51