irrigation controller arduino mega doesn't work anymore



  • Arduino Mega Node not working anymore
    I have an arduino mega used for automated irrigation after a year of service the node is not responding anymore.
    The node runs on mysensor 2.1.1
    The serial monitor shows the following

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSF:SID:OK,ID=5
    15 TSM:FPAR
    51 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2058 !TSM:FPAR:NO REPLY
    2060 TSM:FPAR
    2096 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2910 TSF:MSG:READ,11-11-5,s=255,c=3,t=8,pt=1,l=1,sg=0:3
    2915 TSF:MSG:FPAR OK,ID=11,D=4
    4104 TSM:FPAR:OK
    4105 TSM:ID
    4106 TSM:ID:OK
    4108 TSM:UPL
    4113 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    6120 TSM:UPL
    6125 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    8132 TSM:UPL
    8137 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    8212 TSF:MSG:READ,0-11-5,s=255,c=3,t=25,pt=1,l=1,sg=0:4
    8217 TSF:MSG:PONG RECV,HP=4
    8219 TSM:UPL:OK
    8221 TSM:READY:ID=5,PAR=11,DIS=4
    8246 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    10255 TSF:MSG:SEND,5-5-11-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    10297 !TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=NACK:11
    12307 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=11,pt=0,l=12,sg=0,ft=1,st=OK:Bewässerung
    12351 !TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=NACK:2.1
    12388 TSF:MSG:SEND,5-5-11-0,s=13,c=0,t=6,pt=0,l=0,sg=0,ft=1,st=OK:
    12396 TSF:MSG:SEND,5-5-11-0,s=14,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    12437 !TSF:MSG:SEND,5-5-11-0,s=15,c=0,t=16,pt=0,l=0,sg=0,ft=0,st=NACK:
    12445 TSF:MSG:SEND,5-5-11-0,s=1,c=0,t=7,pt=0,l=0,sg=0,ft=1,st=OK:
    12465 TSF:MSG:SEND,5-5-11-0,s=9,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    12474 TSF:MSG:SEND,5-5-11-0,s=2,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    12482 TSF:MSG:SEND,5-5-11-0,s=10,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    12492 TSF:MSG:SEND,5-5-11-0,s=3,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    12533 !TSF:MSG:SEND,5-5-11-0,s=11,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=NACK:
    12541 TSF:MSG:SEND,5-5-11-0,s=4,c=0,t=7,pt=0,l=0,sg=0,ft=1,st=OK:
    12582 !TSF:MSG:SEND,5-5-11-0,s=12,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=NACK:
    12590 MCO:REG:REQ
    12614 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
    14625 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    16635 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    18647 TSF:MSG:SEND,5-5-11-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    18738 TSF:MSG:READ,0-11-5,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    18743 MCO:PIM:NODE REG=1
    18746 MCO:BGN:STP
    

    after MCO:BGN:STP nothing happens
    what does MCO:BGN:STP mean?
    greets
    patrick


  • Mod

    @patrick-schaerer https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ has information on how to interpret the log messages and a link to the log parser which will help you interpret them.

    There are a lot of st=NACK messages which means that radio communication from the node to the gateway has trouble. This is usually a power or range issue. See the link above for flowcharts on how to troubleshoot.



  • thank you for the link

    18743 MCO:PIM:NODE REG=1	Registration response received, registration status 1
    18746 MCO:BGN:STP	Callback setup()
    

    What is Registration status 1?
    Does Callback setup() reinitialize the node?



  • I found the problem ...
    due to a defective sensor (light meter) the arduino could not initialize correctly.
    I think that is why it was calling back setup()


Log in to reply
 

376
Online

6.7k
Users

7.6k
Topics

80.4k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.