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. Using NRF24 - How can I limit the max auto NodeID number?

Using NRF24 - How can I limit the max auto NodeID number?

Scheduled Pinned Locked Moved General Discussion
8 Posts 5 Posters 1.6k Views 3 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.
  • L Offline
    L Offline
    leeoz
    wrote on last edited by
    #1

    Hi,
    I would like to use Auto NodeID however I would like limit the max number of node ID to be 100 so that there is no change I will have a node with an ID greater than 100.
    How can this be done?
    tnx

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LastSamurai
      Hardware Contributor
      wrote on last edited by
      #2

      I am not sure but I don't think so. All controllers I have used yet give incrementing auto Ids though. So if you have less than 100 (auto id) nodes you can simply set the id in code for your test nodes.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        leeoz
        wrote on last edited by
        #3

        Tnx but this doesn't help much.
        Setting up manually 100 nodes is not good for me.
        I am sure that there is somewhere in the code of configuration, a var with the max node ID, because using NRF24 is limited to 254 nodes... so I need someone who knows around the code to help me out finding how to changes this number...
        tnx.

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by scalz
          #4

          @leeoz

          note : I don't think you need to open 3 threads for this.

          MySensors doesn't set any node id.
          If MySensors doesn't set ids, then who?? controller or you by using manual ids.
          nrf24 limited to 254 nodes, doesn't remove the need to set an id. Again, Mysensors doesn't handle this part :)

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #5

            I don't see the need to limit to 100 the id assignment. If you only need 100 just setup those and turn off auto ID assignment

            1 Reply Last reply
            0
            • L Offline
              L Offline
              leeoz
              wrote on last edited by leeoz
              #6

              Let's make it more simple.
              I will have 100 nodes in my property which I don't want to preset with static id.
              I don't have a controller, only one NodeMCU with NRF24 which is the "gateway" to Wifi - I use receive on the GateWay and upload the received data from nodes to POST on local MySQL server (I have a computer at home network with MySQL).
              I need to track each node and know it's ID. Was that ID assigned automatically when I use AUTO mode?

              And, do you have any suggestions on how to approach this?

              The most important is that I want it to be seamless with IDs, I don't want to program each node of the 100 with static ID, cause if I make changes, it adds more complexity to update the system.

              1 Reply Last reply
              0
              • rejoe2R Offline
                rejoe2R Offline
                rejoe2
                wrote on last edited by
                #7

                As @scalz already pointed out:
                No controller, no ID... You may try to implement this part of regular controller functions to your NodeMCU, but I really doubt if this is worth the effort.

                Once, the ID is assigned from controller side, it is stored in EEPROM and no longer dynamic, so this is a one-time question.

                So how to get the ID in EEPROM? Once more: the easiest way to achive that is to assign it in the sketch before uploading.

                Btw.: 100 Nodes sounds quite a lot. How about combining sensors?

                Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                1 Reply Last reply
                0
                • gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #8

                  If your gateway is ethernet you can use myscontroller and use its auto ID function

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


                  19

                  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