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. radio ID in EEPROM

radio ID in EEPROM

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 2.9k 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.
  • BulldogLowellB Offline
    BulldogLowellB Offline
    BulldogLowell
    Contest Winner
    wrote on last edited by
    #1

    At which address does the Radio ID get stored? I want to use the EEPROM on my sensor, but I want to make sure I'm not overwriting

    hekH 1 Reply Last reply
    0
    • BulldogLowellB BulldogLowell

      At which address does the Radio ID get stored? I want to use the EEPROM on my sensor, but I want to make sure I'm not overwriting

      hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      @BulldogLowell

      Pos 0. Have a look in Sensor.h

      #define EEPROM_RADIO_ID_ADDRESS 0 // Where to store radio id in EEPROM
      #define EEPROM_RELAY_ID_ADDRESS 1 // Where to store relay id in EEPROM
      #define EEPROM_DISTANCE_ADDRESS 2 // Where to store distance to gateway in EEPROM
      

      If you're building a relaying node your have to lease space for routing table also (255 additional bytes).

      BulldogLowellB 1 Reply Last reply
      0
      • hekH hek

        @BulldogLowell

        Pos 0. Have a look in Sensor.h

        #define EEPROM_RADIO_ID_ADDRESS 0 // Where to store radio id in EEPROM
        #define EEPROM_RELAY_ID_ADDRESS 1 // Where to store relay id in EEPROM
        #define EEPROM_DISTANCE_ADDRESS 2 // Where to store distance to gateway in EEPROM
        

        If you're building a relaying node your have to lease space for routing table also (255 additional bytes).

        BulldogLowellB Offline
        BulldogLowellB Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #3

        @hek said:

        yes, this part I found:

        #define EEPROM_RADIO_ID_ADDRESS 0 // Where to store radio id in EEPROM
        #define EEPROM_RELAY_ID_ADDRESS 1 // Where to store relay id in EEPROM
        #define EEPROM_DISTANCE_ADDRESS 2 // Where to store distance to gateway in EEPROM
        

        This part, help me to know

        If you're building a relaying node your have to lease space for routing table also (255 additional bytes).

        means only the relaying node needs this routing table, or if I add the relaying capability to a specific device.

        Did you guys plan to reach any deeper into EEPROM in upcoming versions (foreseeable)?

        I'm going to take 125 bytes for a project, but it only a project specific need and I want to make sure that I'm not creating another problem later.

        In this project, I am going to hold some rain history data in EEPROM in case of a power loss for the rain gauge...

        thanks for the help.

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

          If your write above address 512 you should be safe.

          If you look at the beta version of 1.4 you can see I've added eeprom read/write in the API for sketch usage (that doesn't overwrite any important MySensor stuff). Will make life easier for you.

          BulldogLowellB 1 Reply Last reply
          0
          • hekH hek

            If your write above address 512 you should be safe.

            If you look at the beta version of 1.4 you can see I've added eeprom read/write in the API for sketch usage (that doesn't overwrite any important MySensor stuff). Will make life easier for you.

            BulldogLowellB Offline
            BulldogLowellB Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #5

            @hek said:

            If your write above address 512 you should be safe.

            If you look at the beta version of 1.4 you can see I've added eeprom read/write in the API for sketch usage (that doesn't overwrite any important MySensor stuff). Will make life easier for you.

            cheers mate

            appreciated, as usual.

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


            20

            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