Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. RF24_BASE_RADIO_ID

RF24_BASE_RADIO_ID

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 1.7k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • stefaanvS Offline
    stefaanvS Offline
    stefaanv
    wrote on last edited by
    #1

    What exactly is the function of the RF24_BASE_RADIO_ID parameter ?
    Do I understand correctly that the nRF chip will only accept packets from nodes that emit the same radio ID ?
    What could be typical uses for this parameter ?

    1 Reply Last reply
    0
    • SpannersS Offline
      SpannersS Offline
      Spanners
      wrote on last edited by Spanners
      #2

      I'd also like a bit more information on how this works - in particular I'd like to use it in a variable and be able to change it on startup (either via console or controller variable). Would need to store it in EEPROM presumably, but I'm wondering if Mysensors uses the ID in it's EEPROM routing tables or anything.

      Also, are there any restrictions on what it can be changed to? Is it a bunch of bytes we can randomly choose or are there a selection of values?

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        See datasheet page 27
        https://www.mysensors.org/dl/57c1a2411730a6c715b6b1b0/design/nRF24L0Plus.pdf

        All nodes that needs to communicate with each other must have have the same base radio id.
        It's not saved in EEPROM. And there is no way of changing it during runtime.

        1 Reply Last reply
        0
        • SpannersS Offline
          SpannersS Offline
          Spanners
          wrote on last edited by
          #4

          Hi Hek,

          Thanks for the info - just to clarify when you say there's no way to change it doing runtime - do you mean it wouldn't be possible to include something in the before() function that reads in the Radio ID from EEPROM, and then pass it to Mysensors during initialization?

          My use case is to not have to track the Radio ID/Channel etc in sketches - I have multiple sensor networks and I'm regularly loading new sketches. Would make life much easier if the nodes just remembered those settings.

          BartEB 1 Reply Last reply
          0
          • SpannersS Spanners

            Hi Hek,

            Thanks for the info - just to clarify when you say there's no way to change it doing runtime - do you mean it wouldn't be possible to include something in the before() function that reads in the Radio ID from EEPROM, and then pass it to Mysensors during initialization?

            My use case is to not have to track the Radio ID/Channel etc in sketches - I have multiple sensor networks and I'm regularly loading new sketches. Would make life much easier if the nodes just remembered those settings.

            BartEB Offline
            BartEB Offline
            BartE
            Contest Winner
            wrote on last edited by
            #5

            @Spanners what hek means, the channel ID is set compile time. So before uploading to your node. So putting it in before() is currently not an option.

            What you can do is putting the RF_BASE_RADIO_ID define in a separated include file (.h) and include this file before the other defines in all the sketches. So you only have to update the ID once for all your sketches.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            23

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular