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. Controllers
  3. Same Node id for two separate nodes.

Same Node id for two separate nodes.

Scheduled Pinned Locked Moved Controllers
6 Posts 4 Posters 3.1k 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.
  • D Offline
    D Offline
    Dheeraj
    Plugin Developer
    wrote on last edited by
    #1

    I have two sensors in my network ( temp , Hum etc ) and motion detection. both working in auto mode and request node id from controller ( raspberry pi ) node via gateway . but unfortunately, response code of both nodes get same node id 1.

    may be bug in sendNextAvailableSensorId() function response.
    any idea?

    Note: I know static node id will work. but Auto mode should also be working.

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

      http://forum.mysensors.org/topic/666/how-to-ask-for-help

      Which controller software? Which gateway variant?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dheeraj
        Plugin Developer
        wrote on last edited by
        #3

        thanks for replying and providing the guideline for newcomer.

        Arduino IDE : 1.0.6 ( ubuntu 64 bit)
        Controller Software : Nodejscontroller.js using nodejs & mongo db on raspberry pi.
        Gateway : running piGatewaySerial code and connecting it to NRF24L01+ transceiver using SPI.
        Arduino and Raspberry pi gateway code debug on..

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

          Did a quick read-through and there might be a problem in the algorithm for fetching new id (it will return the 1 or max-id every time). @ToSa might be able to shed some light on how it is supposed to work.

          https://github.com/mysensors/Arduino/blob/master/NodeJsController/NodeJsController.js#L388

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marceloaqno
            Code Contributor
            wrote on last edited by
            #5

            This also happened to me once and I don't think is the Nodejscontroller. If I'm not mistaken, this could happen when you have a clean eeprom and connecting both devices at the same time, they will get the same id.
            Try to clear the eeprom again and connect the second device only after the first has received the id.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cribben
              wrote on last edited by
              #6

              If you add a new device and then remove it. After that you add another new device it probably get same Id. Clean EPROM and retry.

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


              28

              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