Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

New CHILD ID after reprogramming

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 1.5k 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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              16

              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
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular