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. New CHILD ID after reprogramming

New CHILD ID after reprogramming

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 1.8k 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.
  • Richard van der PlasR Offline
    Richard van der PlasR Offline
    Richard van der Plas
    wrote on last edited by
    #1

    How can i keep from mixing the CHILD id every time of my sensor node?
    i defined

    #define CHILD_ID 5
    #define CHILD_ID_PIR1 0
    #define CHILD_ID_DOOR1 1
    #define CHILD_ID_TEMP1 2
    

    But the Serial debug shows:

    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSF:SID:OK,ID=7
    14 TSM:FPAR
    

    Thus having a sensor node where i tell them to be 5 and it is 7 ?

    mfalkviddM 1 Reply Last reply
    0
    • Richard van der PlasR Richard van der Plas

      How can i keep from mixing the CHILD id every time of my sensor node?
      i defined

      #define CHILD_ID 5
      #define CHILD_ID_PIR1 0
      #define CHILD_ID_DOOR1 1
      #define CHILD_ID_TEMP1 2
      

      But the Serial debug shows:

      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      13 TSF:SID:OK,ID=7
      14 TSM:FPAR
      

      Thus having a sensor node where i tell them to be 5 and it is 7 ?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @Richard-van-der-Plas did you add the defines before including MySensors.h?

      1 Reply Last reply
      0
      • Richard van der PlasR Offline
        Richard van der PlasR Offline
        Richard van der Plas
        wrote on last edited by
        #3

        No i did not :

        //define MY_DEBUG
        #define MY_RADIO_NRF24
        #include <MySensors.h>
        #include <OneWire.h> 
        #include <DallasTemperature.h>
        #define ONE_WIRE_BUS 8
        
        OneWire oneWire(ONE_WIRE_BUS); 
        DallasTemperature sensors(&oneWire);
        #define CHILD_ID 5
        #define CHILD_ID_PIR1 0
        #define CHILD_ID_DOOR1 1
        #define CHILD_ID_TEMP1 2
        
        #define DOOR_SWITCH 3
        #define PIR_INSIDE 2
        
        MyMessage msgPIR1(CHILD_ID_PIR1, V_TRIPPED);
        MyMessage msgDOOR1(CHILD_ID_DOOR1, V_TRIPPED);
        MyMessage msgTEMP1(CHILD_ID_TEMP1, V_TEMP);
        // temp ```
        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          @Richard-van-der-Plas said in New CHILD ID after reprogramming:

          #define CHILD_ID 5

          actually you have to add #define MY_NODE_ID 5 before the #include <MySensors.h>

          1 Reply Last reply
          1
          • Richard van der PlasR Offline
            Richard van der PlasR Offline
            Richard van der Plas
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • Richard van der PlasR Offline
              Richard van der PlasR Offline
              Richard van der Plas
              wrote on last edited by
              #6

              @gohan said in New CHILD ID after reprogramming:

              #define MY_NODE_ID 5

              aha MY_NODE_ID, instead of CHILD_ID :+1:

              1 Reply Last reply
              1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              10

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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