Gateway All node have same ID



  • Hi All,

    I did a lot of progress in my Mysensors project but I have a last issue.
    I am using a Wifi Gateway with a Node MCU 1.0 but all my node show a one meaning that all my nodes seems to show up with the same node ID.

    I am using Arduino IDE 1.6.8, tested with 1.6.5 and 1.611 same results
    Using Board Manager ESP8266 2.3.0, tested with 2.0 and 2.1 with same results

    MySController for first node
    11/09/2016 11:59:04 RX 1;2;1;0;16;1
    11/09/2016 11:59:11 NODE New node discovered, node id=1
    11/09/2016 11:59:11 CHILD New child discovered, node id=1, child id=internal
    11/09/2016 11:59:11 DEBUG Update child id=255, type=ARDUINO_NODE
    11/09/2016 11:59:11 RX 1;255;0;0;17;2.0.0-beta
    11/09/2016 11:59:11 TX 1;255;3;0;6;M
    11/09/2016 11:59:11 RX 1;255;3;0;6;0
    11/09/2016 11:59:12 RX 1;255;3;0;11;Binary Sensor and Sleep
    11/09/2016 11:59:12 RX 1;255;3;0;12;1.0
    11/09/2016 11:59:12 CHILD New child discovered, node id=1, child id=2
    11/09/2016 11:59:12 DEBUG Update child id=2, type=DOOR
    11/09/2016 11:59:12 RX 1;2;0;0;0;
    11/09/2016 11:59:12 CHILD New child discovered, node id=1, child id=3
    11/09/2016 11:59:12 DEBUG Update child id=3, type=DOOR
    11/09/2016 11:59:12 RX 1;3;0;0;0;
    11/09/2016 11:59:12 CHILD New child discovered, node id=1, child id=4
    11/09/2016 11:59:12 DEBUG Update child id=4, type=CUSTOM
    11/09/2016 11:59:12 RX 1;4;0;0;23;
    11/09/2016 11:59:12 RX 1;2;1;0;16;1

    Second Node
    11/09/2016 12:03:12 DEBUG Update child id=255, type=ARDUINO_RELAY
    11/09/2016 12:03:12 RX 1;255;0;0;18;2.0.0
    11/09/2016 12:03:12 TX 1;255;3;0;6;M
    11/09/2016 12:03:12 RX 1;255;3;0;6;0
    11/09/2016 12:03:12 RX 1;255;3;0;11;Relay
    11/09/2016 12:03:12 RX 1;255;3;0;12;1.0
    11/09/2016 12:03:12 CHILD New child discovered, node id=1, child id=1
    11/09/2016 12:03:12 DEBUG Update child id=1, type=LIGHT
    11/09/2016 12:03:12 RX 1;1;0;0;3;

    How to ensure that each node show as different node in the Gateway ?

    I have tested with 2.0 MySensors Main banche and with 2.0.1 Beta and have the same results.

    Many thanks for your help


  • Mod

    Welcome to the community, @TheDuke ! Nice progress.

    Could you post the sketches for node 1 and 2?



  • Hi mfalkvidd

    I am using GatewayESP8266 for the gateway. Tested on a NodeMCU 0.9 and NodeMCU1.0
    I am using the default RelayActuator that is contained in the devbranch.
    I just uploaded to a 3rd Arduino the sketch. 2 shows up with ID 1 ... the 3rd show ID 100
    Changed NRF24 antenna does not force the change of ID. re uploading the sketch to arduino does not reset ID in gateway

    How to ask my arduino that show up with 1 to change to another number ?

    Thanks


  • Mod

    @TheDuke use the cleareeprom sketch (available in MySensors examples) then upload your sketch again.

    The node id is stored in eeprim, that's why re-uploading the sketch doesn't affect the node id.



  • Great !
    I did clear eeprom on my nodes and now they show up with a new ID

    What is the recommend solution to not have duplicate ID ? Why did my new node get an ID already used ?


  • Mod

    @TheDuke the automatic id assignment in the controller is responsible for handing out ids. Not sure why Myscontroller failed in this case. I don't use Myscontroller myself.



  • @mfalkvidd Thanks for your help. MYScontroller seems to be able to replace the gateway assignement. I was running it for troubleshooting and it assign ID that gateway already used.
    So I created dummy ID in MYSController to ensure that node does not use the first one


Log in to reply
 

Suggested Topics

  • 3
  • 3
  • 2
  • 6
  • 5

11
Online

11.4k
Users

11.1k
Topics

112.7k
Posts