Gateway stopped "seeing" the sensors



  • I use MySensors: Gateway ESP8266 WiFi (power supply), Sensory: Pulse Water Meter (power supply), Pulse Gas Meter (battery powered) and check PostBox (battery powered). Everything worked fine for over a year. However, a month ago, the gateway stopped receiving information from sensors (all sensors were no longer visible within an hour - battery sensors sent the battery status every hour). After disconnecting the power supply from Gateway and sensors, it started working again (but only for a dozen or so days). after this time, disconnecting the power supply (several times already) restored the power of this system - unfortunately for a few days. After this time, disconnecting the power supply and restarting the Gateway and sensors did not help. And since then I have failed to "get" the system to work.

    GatewayESP8266.ino:

    #define MY_DEBUG
    #define MY_BAUD_RATE 9600
    #define MY_RADIO_RF24
    #define MY_GATEWAY_ESP8266
    #define MY_WIFI_SSID "P*a"
    #define MY_WIFI_PASSWORD "***"
    #define MY_HOSTNAME "ESP8266_GW"
    #define MY_PORT 5003
    #define MY_GATEWAY_MAX_CLIENTS 2
    #define MY_INCLUSION_MODE_BUTTON_PIN 5 //D1
    #define MY_DEFAULT_ERR_LED_PIN 0 //D3  // Error led pin
    #define MY_DEFAULT_RX_LED_PIN 2  //D4  // RX led pin
    #define MY_DEFAULT_TX_LED_PIN 16 //D0  // TX led pin
    #include <MySensors.h>
    void setup()
    {
    	// Setup locally attached sensors
    }
    void presentation()
    {
    	// Present locally attached sensors here
    }
    void loop()
    {
    	// Send locally attached sensors data here
    }
    

    Console debug from Gateway:

    61 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2
    119 TSF:LRT:OK
    134 TSM:INIT
    148 TSF:WUR:MS=0
    171 !TSM:INIT:TSP FAIL
    195 TSM:FAIL:CNT=1
    215 TSM:FAIL:DIS
    232 TSF:TDI:TSL
    scandone
    no P*a found, reconnect after 1s
    reconnect
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 2
    cnt 
    
    connected with P*a, channel 12
    dhcp client start...
    ip:10.1.1.70,mask:255.255.255.0,gw:10.1.1.1
    10250 TSM:FAIL:RE-INIT
    10274 TSM:INIT
    10295 !TSM:INIT:TSP FAIL
    10321 TSM:FAIL:CNT=2
    10343 TSM:FAIL:DIS
    10362 TSF:TDI:TSL
    pm open,type:2 0
    bcn_timout,ap_probe_send_start
    20382 TSM:FAIL:RE-INIT
    20406 TSM:INIT
    20426 !TSM:INIT:TSP FAIL
    20453 TSM:FAIL:CNT=3
    20474 TSM:FAIL:DIS
    20494 TSF:TDI:TSL
    30514 TSM:FAIL:RE-INIT
    30538 TSM:INIT
    30559 !TSM:INIT:TSP FAIL
    30585 TSM:FAIL:CNT=4
    30607 TSM:FAIL:DIS
    30626 TSF:TDI:TSL
    bcn_timout,ap_probe_send_start
    40646 TSM:FAIL:RE-INIT
    40670 TSM:INIT
    40690 !TSM:INIT:TSP FAIL
    40717 TSM:FAIL:CNT=5
    40738 TSM:FAIL:DIS
    40758 TSF:TDI:TSL
    50778 TSM:FAIL:RE-INIT
    50802 TSM:INIT
    50822 !TSM:INIT:TSP FAIL
    50849 TSM:FAIL:CNT=6
    50870 TSM:FAIL:DIS
    50890 TSF:TDI:TSL
    60910 TSM:FAIL:RE-INIT
    60934 TSM:INIT
    60955 !TSM:INIT:TSP FAIL
    60981 TSM:FAIL:CNT=7
    61003 TSM:FAIL:DIS
    61022 TSF:TDI:TSL
    

    Console debug from node:

    __  __       ____
    |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
            |___/                      2.3.2
    
    209 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=16,REL=255,VER=2.3.2
    337 TSM:INIT
    351 TSF:WUR:MS=0
    373 TSM:INIT:TSP OK
    395 TSF:SID:OK,ID=1
    415 TSM:FPAR
    433 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2506 !TSM:FPAR:NO REPLY
    2531 TSM:FPAR
    2548 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4624 !TSM:FPAR:NO REPLY
    4648 TSM:FPAR
    4666 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6742 !TSM:FPAR:NO REPLY
    6766 TSM:FPAR
    6784 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8859 !TSM:FPAR:FAIL
    8880 TSM:FAIL:CNT=1
    8900 TSM:FAIL:DIS
    8920 TSF:TDI:TSL
    18938 TSM:FAIL:RE-INIT
    18962 TSM:INIT
    18983 TSM:INIT:TSP OK
    19006 TSF:SID:OK,ID=1
    19030 TSM:FPAR
    19048 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    21124 !TSM:FPAR:NO REPLY
    21149 TSM:FPAR
    21168 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    23244 !TSM:FPAR:NO REPLY
    23270 TSM:FPAR
    23288 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    25365 !TSM:FPAR:NO REPLY
    25391 TSM:FPAR
    25409 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    27486 !TSM:FPAR:FAIL
    27507 TSM:FAIL:CNT=2
    27530 TSM:FAIL:DIS
    27549 TSF:TDI:TSL
    37570 TSM:FAIL:RE-INIT
    37594 TSM:INIT
    37615 TSM:INIT:TSP OK
    37638 TSF:SID:OK,ID=1
    37661 TSM:FPAR
    37680 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    39755 !TSM:FPAR:NO REPLY
    39781 TSM:FPAR
    39799 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    41876 !TSM:FPAR:NO REPLY
    41902 TSM:FPAR
    41920 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    43997 !TSM:FPAR:NO REPLY
    44022 TSM:FPAR
    44041 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    46117 !TSM:FPAR:FAIL
    46139 TSM:FAIL:CNT=3
    46161 TSM:FAIL:DIS
    46181 TSF:TDI:TSL
    56201 TSM:FAIL:RE-INIT
    56224 TSM:INIT
    56246 TSM:INIT:TSP OK
    56268 TSF:SID:OK,ID=1
    56292 TSM:FPAR
    56310 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    58386 !TSM:FPAR:NO REPLY
    58412 TSM:FPAR
    58430 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    

    Where could be the reason it stopped working?



  • 60955 !TSM:INIT:TSP FAIL
    

    This line days the transport couldn't be initialised by the gateway. Check your wiring and/or the module.



  • I have an almost identical issue with me ESP MQTT gateway no longer connecting to nodes. Similar issues to start with in that it was good for a number of months then would stop, restart ok, then multiple restarts to begin working. I have now resorted to changing out the 24RF01 module and the ESP to try and locate the issue. Will let you know how I get on.


Log in to reply
 

Suggested Topics

  • 3
  • 5
  • 2
  • 7
  • 3
  • 4
  • 3
  • 4

119
Online

10.5k
Users

10.8k
Topics

110.6k
Posts