self healing routing tables sometime fails



  • hi
    in the past monthes i've installed a sensor network along the length of a greenhouse mainly with dht22 humidity sensors, some AC monitoring binaryswitch sensors, one 4-20ma industrial sensor reader node (shown as "waterflow" in domoticz) and of course repeater nodes to overcome the distance which reaches about 135 meters between the farest node and the gateway.
    couple of days ago i opened the browser in my domoticz dashboard page and saw 7 of 8 nodes in red which means they didnt respond for some time.
    i reset the first repeater which is installed 4 meter beside a humidity node, and i saw his reading on the log on domoticz mobile app (great method for debugging on the field!!).
    then i reset that node beside that repeater but it didnt showed up on the log, and when i plugged it to my laptop it showed this on the serial monitor:

    send: 254-254-1-0 s=255,c=3,t=15,pt=2,l=2,sg=0,st=fail:0
    send: 254-254-1-0 s=255,c=0,t=17,pt=0,l=5,sg=0,st=ok:1.5.4
    send: 254-254-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:1
    sensor started, id=254, parent=1, distance=2
    send: 254-254-1-0 s=255,c=3,t=11,pt=0,l=16,sg=0,st=ok:Humidity H1 G6-7
    send: 254-254-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
    send: 254-254-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0,st=ok:
    send: 254-254-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=fail:
    send: 254-254-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=fail:31.3
    T: 31.30
    send: 254-254-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0,st=ok:19.8
    H: 19.80
    ( **fail ** was bolded on the forum message - not in the log....)

    i gave up and walked to the next node - which was a second repeater and found a loose GND wire on the NRF!!! great!!
    now after i plugged it another far node began to "talk" and also that humidity node with the attached log, and afterwards some other nodes began to talk and some needed another reset to revive them, and so the whole network was back to life

    now, my conclusion from this strange scenario is that some nodes kept in their memory that they should seek for that unwired repeater and didnt try to reach the gateway itself or the second repeater.

    that node with the attached log is the most curious example - by the time i checked it, the farest node from the gateway was responding normally, so it wasnt a distance issue, and also, there was a working repeater 4 meter from it in straight line with no obstacles, so why it came back to life after reseting a second repeater which is 72 meters from it, in the opposite direction from the gateway, and is behind a door (transperant plastic with metal frame - but still an obstacle..) ??

    final notes - my setup is - domoticz on RPi2 with serial gatewey + nrf+pa+lna

    majority of nodes are wiht nrf+pa+lna except 2 humidity sensors which are close to repeaters.
    all nrf+pa+lna are connected to arduion uno\nano (not original) with 20cm cables.

    sorry for bumping the thread, but i think my intentions werent clear...
    i wish to receive an answear why this incident occoured and why my nodes didnt reroute themself to the gateway like they sould have done according to the description on the site.


 

249
Online

7.8k
Users

8.7k
Topics

93.1k
Posts