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. Troubleshooting
  3. How to keep sensor ID when upgrading

How to keep sensor ID when upgrading

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 1.3k 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
    LastSamurai
    Hardware Contributor
    wrote on last edited by
    #1

    Hi, I have lots of sensors/actuators running in my MySensors / Domoticz network. They are still using 1.5. Now I want to upgrade to 2 and also add some (sub)sensors to some nodes. Its important for me to keep them the "same" (= same ID I guess) so that domoticz plotting and my scripts keep working.
    All my nodes are programmed directly via an USBasp. Whenever I updated a node before it got a new id. Does reprogramming like this delete the EEPROM, or why is that?
    How can I keep the old id?

    1 Reply Last reply
    0
    • mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      The node ID seems to be stored in the same location for 1.5.4 and 2.0 so my guess would be that upgrading shouldn't affect node id.
      See
      https://github.com/mysensors/MySensors/blob/8cacb4825b256f63aa2fc51468fd11a90bb19678/core/MyEepromAddresses.h#L55
      https://github.com/mysensors/MySensors/blob/1.5.4/libraries/MySensors/MySensor.h#L72

      But since you are experiencing problems, I guess there is something I'm not understanding :)

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

        Oh I did not yet try to update from 1.5 to 2.0. It happened when I just updated the code on a node (some small fixes only). But I also want to upgrade soon so that should somehow work too.

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

          Anyone an idea? I guess its all about the eeprom?

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            If I remember right, there are options to avrdude, that let it keep contents of the eeprom. I don't know if arduino does this, when it invokes avrdude to upload via a ISP dongle..

            You could have a look at avrdude documentation, for more info..

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

              Ah, great hint! It seems like I have to change the high fuse to "Preserve EEPROM memory through the Chip Erase cycle" (see fuse calculator). I will try that out.

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


              27

              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