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. Development
  3. Node/sensor id process

Node/sensor id process

Scheduled Pinned Locked Moved Development
10 Posts 2 Posters 3.1k Views 1 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.
  • Dan S.D Offline
    Dan S.D Offline
    Dan S.
    Hero Member
    wrote on last edited by
    #1

    When I uploaded an new sensor sketch to my newly built arduino sensor, I noticed the serial monitor showed it communicating to the ethernet gateway and it seemed to have a node id. I checked the eeprom and it did have a node id (I am sure that it did not before the sketch upload). I thought that the id was assigned during the inclusion process and I had not included the sensor in Vera yet. Am I wrong on this?

    1 Reply Last reply
    0
    • hekH Online
      hekH Online
      hek
      Admin
      wrote on last edited by
      #2

      It uses the temporary node id 255 during id-exchange. If that was what you saw.

      Dan S.D 1 Reply Last reply
      0
      • hekH hek

        It uses the temporary node id 255 during id-exchange. If that was what you saw.

        Dan S.D Offline
        Dan S.D Offline
        Dan S.
        Hero Member
        wrote on last edited by
        #3

        @hek It had the node number 4 in eeprom. The eeprom contents were 401 in first 3 bytes. I know they were all 255 before I started. Since I have 3 sensors, 4 would be the right number for the next id. I guess you're saying this shouldn't happen?

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #4

          Node-id-handout is dependent on the controller you´re using.
          The vera plugin hands out ids to nodes even if no inclusion process has started.

          Dan S.D 1 Reply Last reply
          0
          • hekH hek

            Node-id-handout is dependent on the controller you´re using.
            The vera plugin hands out ids to nodes even if no inclusion process has started.

            Dan S.D Offline
            Dan S.D Offline
            Dan S.
            Hero Member
            wrote on last edited by
            #5

            @hek OK. Thanks for your response. So you are saying that what happened is normal. If this is the case, the description of the sensor id process in mysensors.org is somewhat misleading.

            If you are testing sensors that you have not been included, they would already have id numbers. I guess this could cause gaps in id numbers if you don't include them in the order you have tested. To override that you would have to overwrite the eeprom with the id number you want. I found that when I went to include a sensor that had been tested and had id assigned as 4, vera tried to create both a number 3 and 4 node since I had not included the sensor that was assigned id 3 yet. Think Vera got confused. I deleted the false number 3 node in Vera and all was fine, but was curious what caused that. Now I think I know.

            1 Reply Last reply
            0
            • hekH Online
              hekH Online
              hek
              Admin
              wrote on last edited by
              #6

              @Dan-S. said:

              If this is the case, the description of the sensor id process in mysensors.org is somewhat misleading

              Out of curiosity. Which part of the text is misleading?

              Dan S.D 2 Replies Last reply
              0
              • hekH hek

                @Dan-S. said:

                If this is the case, the description of the sensor id process in mysensors.org is somewhat misleading

                Out of curiosity. Which part of the text is misleading?

                Dan S.D Offline
                Dan S.D Offline
                Dan S.
                Hero Member
                wrote on last edited by
                #7

                @hek I take that back after rereading the text. It said the controller assigns the id which is true in the Vera case that is discussed above. My mistake was in assuming that the controller does not recognized the sensor (that it is only communicating with the gateway) until the inclusion process is started.

                1 Reply Last reply
                0
                • hekH hek

                  @Dan-S. said:

                  If this is the case, the description of the sensor id process in mysensors.org is somewhat misleading

                  Out of curiosity. Which part of the text is misleading?

                  Dan S.D Offline
                  Dan S.D Offline
                  Dan S.
                  Hero Member
                  wrote on last edited by
                  #8

                  @hek Just wondering. Is there something unique about Vera that makes for the plugin providing a sensor node when the sensor first wakes up and communicates? If the plugin could be changed (without a lot of difficulty) to keep the default 255 designation and only hand out a node id when the inclusion process is started it would be more intuitive (at least to me) and potentially reduce node id problems. I don't know enough about the plugin details to know whether this question makes sense.

                  1 Reply Last reply
                  0
                  • hekH Online
                    hekH Online
                    hek
                    Admin
                    wrote on last edited by hek
                    #9

                    It would be possible. But resulting in many other problems.

                    In your proposal if two new sensors would be started (without any id) at almost the same time they will both continue to use the temporary id (until someone start inclusion mode). This means the sensor network has no way of routing the id-request back to the correct node. Or they could both pick up the same id-response.

                    So... it is actually a good thing that a node gets a unique id as soon as possible.

                    Dan S.D 1 Reply Last reply
                    0
                    • hekH hek

                      It would be possible. But resulting in many other problems.

                      In your proposal if two new sensors would be started (without any id) at almost the same time they will both continue to use the temporary id (until someone start inclusion mode). This means the sensor network has no way of routing the id-request back to the correct node. Or they could both pick up the same id-response.

                      So... it is actually a good thing that a node gets a unique id as soon as possible.

                      Dan S.D Offline
                      Dan S.D Offline
                      Dan S.
                      Hero Member
                      wrote on last edited by
                      #10

                      @hek Got it. Thanks. Hadn't thought of that.

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


                      24

                      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