Repeater nood keeps looping... and doesnt reach gw.


  • Hardware Contributor

    Hello!

    Anyone else experienced this? My network goes down due to this...
    I have static/solid nodeIDs and a repeater due to distance and big walls.
    I have also set the fourth argument in gw.begin on my nodes so they will use my repeater and not find their way by their own.
    Repeater -> gw.begin(incomingMessage, NODEID, true, ParentID);

    All nodes not using the repeater works fine.

    When i open the serial log on the repater the messages keep repeating and never reach the gw.'

    Example: (0 = Ethernet GW (unchanged code) 100 = repeater (unchanged code), 103=relay (unchanged code from MySensors)
    Relay startup:

    read: 103-103-0 s=255,c=0,t=18,pt=0,l=3,sg=0:1.5
    send: 103-100-0-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5
    read: 103-103-0 s=255,c=3,t=6,pt=1,l=1,sg=0:100
    send: 103-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:100
    read: 0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
    read: 0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
    read: 0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
    read: 0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M
    read: 0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    

    State change:

    read: 103-103-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    send: 103-100-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    read: 0-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    send: 0-100-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    read: 0-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    send: 0-100-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    read: 0-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    send: 0-100-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    read: 0-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    send: 0-100-0-103 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    

    I will try to remove the fourght argument i gw.begin and see if thats the problem...
    This will keep looping until either st=fail or another node/message comes in.
    Any thoughts or had this problem and know what to do?

    (Edit: Posted in the wrong place)


  • Hardware Contributor

    Tried to remove the fourth argument to a relay node (after clearing EEPROM)
    Now: gw.begin(incomingMessage, NODEID, true);

    Same result 😞 Repeater (Node 100) keeps looping same message over and over again and doesnt reach GW (even if it says st:OK)
    It seems to work with some nodes which i can see passing by...


  • Admin

    So it is messages from the node controlling relays that is problematic? Sound like the classic underpowering problem discussed here on many occasions. Relays should not be powered from the Arduino.


  • Hardware Contributor

    It is not...and the problem isnt from the relay.
    The message keeps looping in the repeater even if the relay is plugged out. The problem is in the repeater (which also is powered from USB and not arduino)


  • Admin

    What does the repeater logs say?

    EDIT: Ok it is the repeater log above.


  • Admin

    @sundberg84 said:

    0-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M

    Looks like gateway (read from node 0) is sending out multiple values that gets repeated by repeater.

    Weird. Do you have the same type/brand of NRF radio on all nodes/gateway? Could the controller be involved here somehow? Do you have a log from gateway?


  • Hardware Contributor

    Well, on the GW and Repeater i use a radio with long antenna... the other one is same batch normal nrf radio.

    The log from domoticz or gateway is pretty much nothing/no unusual activity... 😞
    Atleast there is not multiple send from the GW and i dont see anything in MYSController either.

    Next step is to try to rebuild the repeater to exclude hardware (as the radio...) and also blank new installation of domoticz.
    I'll keep you posted...

    MysLOG
    13 2015-08-14 13:20:45 RX 102 INTERNAL PRESENTATION NO ARDUINO_RELAY 1.5
    14 2015-08-14 13:20:45 RX 102 INTERNAL INTERNAL NO CONFIG 0
    15 2015-08-14 13:20:45 TX 102 INTERNAL INTERNAL NO CONFIG M
    16 2015-08-14 13:20:49 RX 102 INTERNAL INTERNAL NO SKETCH_NAME Relay - 103
    17 2015-08-14 13:20:49 RX 102 INTERNAL INTERNAL NO SKETCH_VERSION 1.5
    18 2015-08-14 13:20:49 RX 102 1 - LIGHT PRESENTATION NO LIGHT

    Domoticz log
    2015-08-14 13:20:50.264 MySensors: Node: 102, Sketch Name: Relay - 103
    2015-08-14 13:20:50.266 MySensors: Node: 102, Sketch Version: 1.5


  • Hardware Contributor

    -Clean domoticz install - only two nodes installed (Relay 103, Repeter 100 and GW) but same error.
    -Changed radio but no effect (and i guess there should not since i have st=ok)

    I notised that it loops also in the GW.

    Logs:
    Repeter (Same as above, loops until a st=fail or another/new info comes in

    GW (Ethernet)

    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 100-100-0 s=1,c=1,t=16,pt=0,l=1:1
    100;1;1;0;16;1
    0;0;3;0;9;read: 100-100-0 s=255,c=0,t=18,pt=0,l=3:1.5
    100;255;0;0;18;1.5
    0;0;3;0;9;read: 100-100-0 s=255,c=3,t=6,pt=1,l=1:0
    100;255;3;0;6;0
    100;255;3;0;6;M0;0;3;0;9;send: 0-0-100-100 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    0;0;3;0;9;read: 100-100-0 s=255,c=3,t=11,pt=0,l=15:Repeater+ - 100
    100;255;3;0;11;Repeater+ - 100
    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
    0;0;3;0;9;read: 100-100-0 s=1,c=0,t=1,pt=0,l=0:
    100;1;0;0;1;
    
    0;0;3;0;9;read: 102-100-0 s=255,c=0,t=18,pt=0,l=3:1.5
    102;255;0;0;18;1.5
    0;0;3;0;9;read: 102-100-0 s=255,c=3,t=6,pt=1,l=1:100
    102;255;3;0;6;100
    102;255;3;0;6;M0;0;3;0;9;send: 0-0-100-102 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    0;0;3;0;9;read: 0-100-102 s=255,c=3,t=6,pt=0,l=1:M
    0;0;3;0;9;send: 0-0-100-102 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    0;0;3;0;9;read: 0-100-102 s=255,c=3,t=6,pt=0,l=1:M
    0;0;3;0;9;send: 0-0-100-102 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    0;0;3;0;9;read: 0-100-102 s=255,c=3,t=6,pt=0,l=1:M
    0;0;3;0;9;send: 0-0-100-102 s=255,c=3,t=6,pt=0,l=1,st=ok:M
    0;0;3;0;9;read: 0-100-102 s=255,c=3,t=6,pt=0,l=1:M
    --keeps looping
    
    Switch change:
    0;0;3;0;9;read: 0-100-102 s=1,c=1,t=2,pt=2,l=2:0
    0;0;3;0;9;send: 0-0-100-102 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    0;0;3;0;9;read: 0-100-102 s=1,c=1,t=2,pt=2,l=2:0
    0;0;3;0;9;send: 0-0-100-102 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    0;0;3;0;9;read: 0-100-102 s=1,c=1,t=2,pt=2,l=2:0
    0;0;3;0;9;send: 0-0-100-102 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    0;0;3;0;9;read: 0-100-102 s=1,c=1,t=2,pt=2,l=2:0
    0;0;3;0;9;send: 0-0-100-102 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    
    

    This affects my relays and my outdoor sensor (all powered with 5 volt usb chargers...) either there was some sort of thunderstorm killing them all at the same time or i dont know what... 😞 (all volts are within range though)

    Power Issues i guess becuase now i cant read the serial-logs from the relays anymore... just wingdings letters... all i can see there is that it does not loop.

    💥



  • I have the same problem:

      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0:1
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0:1
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0:1
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0:1
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=1,c=1,t=2,pt=0,l=1,sg=0:1
    ....
    

    It happens when the gateway tries to send a new state to a node.

    Also, I have a similar problem sending sketch name and version for some nodes:

    MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0:Get Version
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=2,pt=0,l=11,sg=0,st=ok:Get Versi
      MySensors Debug                 receive raw 0;0;3;0;9;read: 0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0:Get Sketch Name
      MySensors Debug                 receive raw 0;0;3;0;9;send: 0-0-4-11 s=255,c=3,t=11,pt=0,l=15,sg=0,st=ok:Get Sket
    ....
    

    I use Indigo as a controller, with connected Mysensors serial gateway.



  • I have the same problem.

    If someone could try to replicate this:

    • Default SerialGW (from examples)
    • Default RepeaterNode (from examples)
    • Send message from GW to another node (254;4;1;0;2;1)

    This is what i get

    Startup GW

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    

    Startup repeater

    send: 253-253-0-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5
    send: 253-253-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    repeater started, id=253, parent=0, distance=1
    send: 253-253-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:Repeater Node
    send: 253-253-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    

    Gatweway after repeater started

    0;0;3;0;9;read: 253-253-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    253;255;3;0;6;0
    0;0;3;0;9;read: 253-253-0 s=255,c=3,t=11,pt=0,l=13,sg=0:Repeater Node
    253;255;3;0;11;Repeater Node
    0;0;3;0;9;read: 253-253-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    253;255;3;0;12;1.0
    

    Then I type 254;4;1;0;2;1 on the gatweway serial log and press send

    I get hundresds of these on the gateway

    0;0;3;0;9;send: 0-0-253-254 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    0;0;3;0;9;read: 0-253-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    0;0;3;0;9;send: 0-0-253-254 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    0;0;3;0;9;read: 0-253-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    

    and the same on the repeater node

    read: 0-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    send: 0-253-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    send: 0-253-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    send: 0-253-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    read: 0-0-254 s=4,c=1,t=2,pt=0,l=1,sg=0:1
    

    There is no controller here, manually assigned ID's.

    Cheers


  • Hardware Contributor

    @barduino I have tried new hardware on repeater and my next thought was to clean GW eeprom and reload scetch.
    Im just guessing here - but maybe an old route stored in eeprom thats causing problem?
    Since three people now report this - i guess its inside the code somewhere...

    Its frustrating - all my sensors not using the repeater works fine... but my networks isnt much of a network without my repeater.



  • I am not sure, but may be it's problem of the new API version 1.5. Early I used 1.4, and all was ok.


  • Hardware Contributor

    Maybe I should try adding some log/debug lines in the lib files... @hek do you have any good start point/specific file that you think i should look in?


  • Admin

    Strange. Might be something not working as intended in 1.5. We should probably ping @celonunes who did the last couple of changes in the routing here.



  • I have reloaded my repeater node with Mysensors API 1.4.2. And all work fine! Now I use serial gateway (1.5) + repeater node (1.4.2) + sensors (1.5). And it works.


  • Hardware Contributor

    and i can also comfirm @uandy that this is working here as well.
    Ethernet 1.4, Repeater 1.4.2 and Sensor 1.5

    So the problem must be in the 1.5 repeater routing.


  • Admin

    Trying to re-create your setup here.


  • Admin

    @sundberg84 said:

    send: 0-100-0-103 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M

    Seeing the same thing here.

    Getting closer.. the repeater seems to pick up "0" incorrectly from its routing table. In your case it should be 103.


  • Admin

    Ok, with some help from @celonunes I think we found the problem.

    It has been pushed to master.. just one little eeprom write that was missing. 😉


  • Hardware Contributor

    @hek and @celonunes GREAT job - thank you.
    You have saved my homeautomation system 🙂



  • Thanks @hek!

    Working fine now

    Cheers


  • Hardware Contributor

    @hek Correct me if im wrong - but can this been a bug from 1.4?

    I had 1.4 on another laptop, uploaded the repeaterscetch there... then my last relay (new and 1.5) didnt work (stupid me - i didnt check repeter log though) - bu I changed computer reuploaded the new 1.5 and the new relay worked.

    Can be a good to know for people upgrading to 1.5 - if my finding is correct they should upgrade repeaters asap.


  • Admin

    Yes, this might very well be a bug in 1.4. But it could have been introduced late in 1.4 life as people have had repeaters working earlier.


  • Hardware Contributor

    Ok - tnx! 🙂



  • Hello Team,

    I think I fall into the same issue. My repeater goes into a loop (led is blinking continiously), and nothing is not longer working on the repeaterI changed everything (nano/NRF PA/LNA). NRF is powered externally, adding Cap also. Issue seems like to be the same. I can't connect full time in USB because my repeater is outside. Repeater stuck after between 1 day and 2 weeks.
    I have a serial console on the sensor, and after a while, packet are sent st=ok, but packets doesn't reach the GW which work correctly...
    I use library 1.5 for the repeater / node / GW (downloaded in august)... I don't understand the conclusion !!! What should I do, downgrade to 1.4 ??? what is the line code changed, to compare if I have the fix into my library already...

    please advise, I'm working on this issue since 3 months without any finding...Should I clear the eeprom ?
    Thanks a lot !


  • Hardware Contributor

    Hi @doblanch!
    This issue was resolved in 1.5 and if you are using 1.5 you should do fine!
    My repeaters use 1.5 and works great.


Log in to reply
 

Suggested Topics

  • 33
  • 2
  • 5
  • 11
  • 2
  • 3

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts