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. Bug Reports
  3. Sensor --> Repeater --> Gatway receive problem

Sensor --> Repeater --> Gatway receive problem

Scheduled Pinned Locked Moved Bug Reports
3 Posts 2 Posters 1.9k Views 2 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.
  • mooM Offline
    mooM Offline
    moo
    wrote on last edited by
    #1

    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
      100;255;3;0;12;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,

    Testing NodeJsController on Ubuntu, Linux mint, OpenWrt and Raspbian
    Experimenting with bootstrap and d3 for NodeJsController front-end

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

      @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 );

      1 Reply Last reply
      0
      • mooM Offline
        mooM Offline
        moo
        wrote on last edited by moo
        #3

        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
        200;255;0;0;17;1.4.1
        0;0;3;0;9;read: 200-100-0 s=255,c=3,t=6,pt=1,l=1:100
        200;255;3;0;6;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
        200;5;0;0;23;1.4.1
        0;0;3;0;9;read: 200-100-0 s=5,c=1,t=24,pt=2,l=2:1
        200;5;1;0;24;1
        0;0;3;0;9;read: 200-100-0 s=6,c=1,t=25,pt=2,l=2:1
        200;6;1;0;25;1
        

        Edit: Forgot, to say thank you!

        Testing NodeJsController on Ubuntu, Linux mint, OpenWrt and Raspbian
        Experimenting with bootstrap and d3 for NodeJsController front-end

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


        15

        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