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. Not save ID

Not save ID

Scheduled Pinned Locked Moved Development
12 Posts 4 Posters 2.9k Views 2 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.
  • A Offline
    A Offline
    alfredocdmiranda
    wrote on last edited by
    #3

    Yeah. I think that should work! However, I think it should be an option to choose if you want to save or not the ID.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alfredocdmiranda
      wrote on last edited by
      #4

      @hek would be possible implement some option that makes the node always requests a "new id"? Like DHCP.

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

        @alfredocdmiranda
        Could you please enlighten me on what the use case is for requesting a new id each startup?

        1 Reply Last reply
        0
        • AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #6

          Won't a new I'd on every startup wreak havoc with the controller? That is, you will get a "new" sensor device on every startup?

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alfredocdmiranda
            wrote on last edited by
            #7

            @Anticimex
            If you use an algorithm like DHCP, you won't get a new ID every node startup/restart. If there is few time since the node was seen on that network, the controller should give the same ID.

            @hek
            Well, I know that 253 nodes is a lot of nodes. However, just thinking in worst case, if you reach the limit and remove a node A, and a new node B, so will get the A id, and after that (some months later?) you remove a node C and put A on its place. So, there is a problem because A already have an ID (same B's ID). Then, you have an ID conflict. Or I am wrong?

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

              The problem is that we don't have any mac address or anything else unique per node that the "dhcp" can use to reassign same id.

              The id IS this unique thing...

              1 Reply Last reply
              0
              • AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #9

                Right...

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  alfredocdmiranda
                  wrote on last edited by
                  #10

                  Oh...yeah...you are right! Maybe you can change ID in production? =x

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

                    I don't know how your controller works. . But for for the vera plugin, id's is reused. If you remove a device (on the controller side) the id is free and can be handed out to a new node.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      alfredocdmiranda
                      wrote on last edited by
                      #12

                      Yeah. I know that, but if you insert the old node, it would have the old ID stored. So, it would be an ID conflict.

                      I don't have my controller yet. I am actually creating my own and getting some ideas.

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


                      14

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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