Sensor --> Repeater --> Gatway receive problem

  • Hi everyone,

    1. I've setted one node address 200 to be a sensor node (SN) with defined parent node at address 100.

      node.begin(NULL, 200, true, 100);
    2. I've setted one node to be the repeater node (RSN) at address 100, default repeater sketch with fixed address.

      node.begin(NULL, 100, true);
    3. Third node is setted as a gateway (GW) with a default sketch.

    So messages from SN are sent to RSN who should relay these messages to GW.

    I receive a RSN message on a GW terminal:

      0;0;3;0;9;read: 100-100-0 s=255,c=3,t=11,pt=0,l=13:RSN Node
      100;255;3;0;11;RSN Node
      0;0;3;0;9;read: 100-100-0 s=255,c=3,t=12,pt=0,l=3:1.0
      ### nothing more from RSN to GW is been received!

    I receive a SN message on a RSN terminal:

     read: 200-200-0 s=255,c=3,t=11,pt=0,l=20:SN to RSN to GW node
     send: 200-100-1-0 s=255,c=3,t=11,pt=0,l=20,st=fail:SN to RSN to GW node
     read: 200-200-0 s=5,c=0,t=23,pt=0,l=5:1.4.1
     send: 200-100-1-0 s=5,c=0,t=23,pt=0,l=5,st=fail:1.4.1
     read: 200-200-0 s=6,c=0,t=23,pt=0,l=5:1.4.1
     send: 200-100-1-0 s=6,c=0,t=23,pt=0,l=5,st=fail:1.4.1
     read: 200-200-0 s=5,c=1,t=24,pt=2,l=2:1
     send: 200-100-1-0 s=5,c=1,t=24,pt=2,l=2,st=fail:1
     read: 200-200-0 s=6,c=1,t=25,pt=2,l=2:1
     send: 200-100-1-0 s=6,c=1,t=25,pt=2,l=2,st=fail:1
     read: 200-200-0 s=5,c=1,t=24,pt=2,l=2:2
     send: 200-100-1-0 s=5,c=1,t=24,pt=2,l=2,st=fail:2
     read: 200-200-0 s=6,c=1,t=25,pt=2,l=2:2
     send: 200-100-1-0 s=6,c=1,t=25,pt=2,l=2,st=fail:2   

    Output of SN:

    sensor started, id 200
    send: 200-200-100-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1  
    send: 200-200-100-0 s=255,c=3,t=6,pt=1,l=1,st=fail:100
    send: 200-200-100-0 s=255,c=3,t=11,pt=0,l=20,st=ok:SN to RSN to GW node
    send: 200-200-100-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0
    send: 200-200-100-0 s=5,c=0,t=23,pt=0,l=5,st=ok:1.4.1
    send: 200-200-100-0 s=6,c=0,t=23,pt=0,l=5,st=ok:1.4.1    
    send: 200-200-100-0 s=5,c=1,t=24,pt=2,l=2,st=fail:1
    send: 200-200-100-0 s=6,c=1,t=25,pt=2,l=2,st=ok:1
    send: 200-200-100-0 s=5,c=1,t=24,pt=2,l=2,st=ok:2
    send: 200-200-100-0 s=6,c=1,t=25,pt=2,l=2,st=fail:2

    But I don't receive SN messages on GW.

    On the SN side sensor is trying to send messages through RSN to GW:

    read: 200-200-100-0 .... 

    But then RSN is trying to relay these to GW through node with address 1 which is not defined:

    send: 200-100-1-0

    Can someone explain what is happening here? Maybe I'm am doing something wrong here,

  • Admin

    @moo said:

    node.begin(NULL, 100, true);

    Hmm.. could perhaps 1 be stored in the repeater-nodes eeprom for parent?

    What happens if you init repeater with:

    node.begin(NULL, 100, true, 0 );

  • Hi hek, you nailed it!

    Yes, it was problem with old eeprom entries.. Cleared eeprom and everything is fine now. Direct routing (RSN parent address is at 0) did not help

    Repeater output:

    read: 200-200-0 s=255,c=0,t=17,pt=0,l=5:1.4.1
    send: 200-100-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
    read: 200-200-0 s=255,c=3,t=6,pt=1,l=1:100
    send: 200-100-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:100
    read: 200-200-0 s=255,c=3,t=11,pt=0,l=20:SN to RSN to GW node
    send: 200-100-0-0 s=255,c=3,t=11,pt=0,l=20,st=ok:SN to RSN to GW node
    read: 200-200-0 s=5,c=0,t=23,pt=0,l=5:1.4.1
    send: 200-100-0-0 s=5,c=0,t=23,pt=0,l=5,st=fail:1.4.1
    read: 200-200-0 s=5,c=1,t=24,pt=2,l=2:1
    send: 200-100-0-0 s=5,c=1,t=24,pt=2,l=2,st=ok:1
    read: 200-200-0 s=6,c=1,t=25,pt=2,l=2:1
    send: 200-100-0-0 s=6,c=1,t=25,pt=2,l=2,st=ok:1

    Gateway output:

    0;0;3;0;9;read:0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 200-100-0 s=255,c=0,t=17,pt=0,l=5:1.4.1
    0;0;3;0;9;read: 200-100-0 s=255,c=3,t=6,pt=1,l=1:100
    0;0;3;0;9;read: 200-100-0 s=255,c=3,t=11,pt=0,l=20:SN to RSN to GW no
    200;255;3;0;11;SN to RSN to GW node
    0;0;3;0;9;read: 200-100-0 s=5,c=0,t=23,pt=0,l=5:1.4.1
    0;0;3;0;9;read: 200-100-0 s=5,c=1,t=24,pt=2,l=2:1
    0;0;3;0;9;read: 200-100-0 s=6,c=1,t=25,pt=2,l=2:1

    Edit: Forgot, to say thank you!

Log in to reply

Suggested Topics