[SOLVED] Need help with ESP8266 MQTT Gateway (RFM69HW radio)



  • I am trying to create a MQTT gateway on a ESP8266 with a RFM69HW radio using the config options from the example sketch:

    #define MY_DEBUG
    #define MY_BAUD_RATE 9600
    #define MY_RADIO_RFM69
    #define MY_IS_RFM69HW
    #define MY_RFM69_IRQ_PIN D1
    #define MY_RFM69_IRQ_NUM MY_RFM69_IRQ_PIN
    #define MY_RFM69_CS_PIN D8
    #define MY_GATEWAY_MQTT_CLIENT
    #define MY_GATEWAY_ESP8266
    

    This is the debug output from the gateway:

    --- Miniterm on /dev/cu.SLAB_USBtoUART  9600,8,N,1 ---
    --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
    ␒`␓␀�9���␒�␓␐�)���60 MCO:BGN:INIT GW,CP=RRNGE---,FQ=80,REL=255,VER=2.3.2
    118 TSF:LRT:OK
    133 TSM:INIT
    147 TSF:WUR:MS=0
    167 TSM:INIT:TSP OK
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 1
    cnt 
    
    connected with TOUTATIS, channel 2
    dhcp client start...
    ip:192.168.178.64,mask:255.255.255.0,gw:192.168.178.1
    388 TSM:INIT:GW MODE
    411 TSM:READY:ID=0,PAR=0,DIS=0
    443 MCO:REG:NOT NEEDED
    530 GWT:TPC:CONNECTING...
    1557 MCO:BGN:STP
    1575 MCO:BGN:INIT OK,TSP=1
    1604 TSM:READY:NWD REQ
    1633 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    scandone
    2893 GWT:TPC:IP=192.168.178.64
    2934 GWT:RMQ:CONNECTING...
    2992 GWT:RMQ:OK
    3010 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
    pm open,type:2 0
    
    

    After this line, there is no more output; the gateway just seems to hang.
    I have an arduino node with a RFM69HW radio running trying to connect to the gateway, but it cannot find a parent node: lots of !TSM:FPAR:NO REPLY debug messages
    I am using MySensors V2.3.2 on all nodes.

    I have tried different ESP8266 boards (NodeMCU, Wemos D1) that I know to be good (I have used them succesfully as gateways with NRF24 radio's). Also tried several new RFM69HW boards and various power supplies that I have used succesfully with other working nodes but all with the same results.

    I could use some advice on how to proceed...



  • @willemx do you see the gateway connecting to the mqtt broker? I.e. do you see the message coming in on mygateway2-out/0/255/0/0/18?

    Btw. Is that a local sensor connected to the gateway?



  • Yes, I can see the gateway connecting to the broker. And yes, it is a local sensor that is trying to find the gateway (I just copied the "door/window/button" example sketch for testing)



  • It looks like the gateway is stuck in a loop. Could you post your code?



  • This is the gateway code: (comments left out)

    #define MY_DEBUG
    
    #define MY_BAUD_RATE 9600
    
    #define MY_RADIO_RFM69
    #define MY_IS_RFM69HW
    #define MY_RFM69_IRQ_PIN D1
    #define MY_RFM69_IRQ_NUM MY_RFM69_IRQ_PIN
    #define MY_RFM69_CS_PIN D8
    
    #define MY_GATEWAY_MQTT_CLIENT
    #define MY_GATEWAY_ESP8266
    
    #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway2-out"
    #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway2-in"
    
    #define MY_MQTT_CLIENT_ID "mysensors-2"
    
    #define MY_WIFI_SSID "TOUTATIS"
    #define MY_WIFI_PASSWORD "XXXXXXXXXXXXXX"
    
    #define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 90
    
    #define MY_PORT 1883
    
    #include <ESP8266WiFi.h>
    #include <MySensors.h>
    
    void setup() {}
    
    void presentation() {}
    
    void loop() {}
    

    This is the sensor node code:

    #define MY_DEBUG 
    
    #define MY_RADIO_RFM69
    #define MY_IS_RFM69HW
    
    #include <MySensors.h>
    #include <Bounce2.h>
    
    #define CHILD_ID 3
    #define BUTTON_PIN  3
    
    Bounce debouncer = Bounce(); 
    int oldValue=-1;
    
    MyMessage msg(CHILD_ID,V_TRIPPED);
    
    void setup()  
    {  
      pinMode(BUTTON_PIN,INPUT);
      digitalWrite(BUTTON_PIN,HIGH);
      debouncer.attach(BUTTON_PIN);
      debouncer.interval(5);
    }
    
    void presentation() {
      present(CHILD_ID, S_DOOR);  
    }
    
    void loop() 
    {
      debouncer.update();
      int value = debouncer.read();
    
      if (value != oldValue) {
         send(msg.set(value==HIGH ? 1 : 0));
         oldValue = value;
      }
    }
    

    This is the sensor node log:

     __  __       ____
    |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
            |___/                      2.3.2
    
    16 MCO:BGN:INIT NODE,CP=RRNNA---,FQ=8,REL=255,VER=2.3.2
    28 TSM:INIT
    28 TSF:WUR:MS=0
    32 TSM:INIT:TSP OK
    34 TSM:FPAR
    38 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2048 !TSM:FPAR:NO REPLY
    2050 TSM:FPAR
    2054 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4063 !TSM:FPAR:NO REPLY
    4065 TSM:FPAR
    4069 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6078 !TSM:FPAR:NO REPLY
    6080 TSM:FPAR
    6084 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8093 !TSM:FPAR:FAIL
    8095 TSM:FAIL:CNT=1
    8097 TSM:FAIL:DIS
    8099 TSF:TDI:TSL
    18102 TSM:FAIL:RE-INIT
    18104 TSM:INIT
    18106 TSM:INIT:TSP OK
    18110 TSM:FPAR
    18114 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20123 !TSM:FPAR:NO REPLY
    20125 TSM:FPAR
    20129 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    22138 !TSM:FPAR:NO REPLY
    22140 TSM:FPAR
    22145 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24154 !TSM:FPAR:NO REPLY
    24156 TSM:FPAR
    24160 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26169 !TSM:FPAR:FAIL
    26171 TSM:FAIL:CNT=2
    26173 TSM:FAIL:DIS
    26175 TSF:TDI:TSL
    36179 TSM:FAIL:RE-INIT
    36182 TSM:INIT
    ............repeating endlessly
    

    And this is the gateway log:

    --- Miniterm on /dev/cu.SLAB_USBtoUART  9600,8,N,1 ---
    --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
    0�~?�4�Ҷ␞��␄OA␌r��61 MCO:BGN:INIT GW,CP=RRNGE---,FQ=80,REL=255,VER=2.3.2
    118 TSF:LRT:OK
    134 TSM:INIT
    148 TSF:WUR:MS=0
    167 TSM:INIT:TSP OK
    scandone
    state: 0 -> 2 (b0)
    217 TSM:INIT:GW MODE
    239 TSM:READY:ID=0,PAR=0,DIS=0
    state: 2 -> 3 (0)
    290 MCO:REG:NOT NEEDED
    state: 3 -> 5 (10)
    add 0
    aid 4
    cnt 
    354 GWT:TPC:CONNECTING...
    
    connected with TOUTATIS, channel 2
    dhcp client start...
    scandone
    1441 MCO:BGN:STP
    1459 MCO:BGN:INIT OK,TSP=1
    1487 TSM:READY:NWD REQ
    1515 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    ip:192.168.178.68,mask:255.255.255.0,gw:192.168.178.1
    2209 GWT:TPC:IP=192.168.178.68
    2296 GWT:RMQ:CONNECTING...
    2605 GWT:RMQ:OK
    2622 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
    pm open,type:2 0
    900148 TSF:SAN:OK
    1201488 TSM:READY:NWD REQ
    1201519 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    1800148 TSF:SRT:OK
    1800168 TSF:SAN:OK
    2401489 TSM:READY:NWD REQ
    2401520 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    
    

    So it appears that the gateway is not hanging after all. It just takes a long time between log messages. It is doing a network discovery broadcast every 20 minutes or so.
    But the gateway and sensor (1 meter distance) node do not connect...



  • Is the node id assigned automatically? Maybe you can try with a static id?



  • Yes, but this cannot be the problem. The node must first find a parent anyway.



  • For comparison, I have a MQTT Gateway running on a Wemos D1 for 2 months now, with a RFM69W. Works perfect. Here is my hardware setup and code, maybe it is of any help to you. Change the networkid, MQTT broker and wifi credentials to your own setup. I use static ID's on my nodes.

    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
    #define MY_BAUD_RATE 9600
    
    // Enables and select radio type (if attached)
    #define MY_RADIO_RFM69
    //#define MY_IS_RFM69HW
    #define MY_RFM69_NETWORKID 83   // Own network ID, mysensors default is 100
    
    
    #define MY_GATEWAY_MQTT_CLIENT
    #define MY_GATEWAY_ESP8266
    
    // Set this node's subscribe and publish topic prefix
    #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
    #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
    
    // Set MQTT client id
    #define MY_MQTT_CLIENT_ID "mysensors-1"
    
    // Enable these if your MQTT broker requires username/password
    //#define MY_MQTT_USER "username"
    //#define MY_MQTT_PASSWORD "password"
    
    // Set WIFI SSID and password
    #define MY_WIFI_SSID "xxxxxxx"
    #define MY_WIFI_PASSWORD "xxxxxxxx"
    
    // Set the hostname for the WiFi Client. This is the hostname
    // passed to the DHCP server if not static.
    #define MY_HOSTNAME "ESP8266_MQTT_GW"
    
    // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
    //#define MY_IP_ADDRESS 192,168,178,87
    
    // If using static ip you can define Gateway and Subnet address as well
    //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
    //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
    
    // MQTT broker ip address.
    #define MY_CONTROLLER_IP_ADDRESS 10, 0, 0, 47
    
    //MQTT broker if using URL instead of ip address.
    // #define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"
    
    // The MQTT broker port to to open
    #define MY_PORT 1883
    
    // Enable inclusion mode
    //#define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    //#define MY_INCLUSION_BUTTON_FEATURE
    // Set inclusion mode duration (in seconds)
    //#define MY_INCLUSION_MODE_DURATION 60
    // Digital pin used for inclusion mode button
    //#define MY_INCLUSION_MODE_BUTTON_PIN D1
    
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Flash leds on rx/tx/err
    #define MY_DEFAULT_ERR_LED_PIN D4   // Red
    #define MY_DEFAULT_TX_LED_PIN D3    // Yellow
    #define MY_DEFAULT_RX_LED_PIN D2    // Green
    
    
    #include <MySensors.h>
    
    void setup()
    {
    	// Setup locally attached sensors
    }
    
    void presentation()
    {
    	// Present locally attached sensors here
    }
    
    void loop()
    {
    	// Send locally attached sensors data here
    }
    
    
    

    2020-03-15 07_13_27-sPlan 7.0 - [Z__mysensors_GatewayESP8266MQTTClient_GatewayESP8266MQTT.spl7].jpg

    mqttgateway.jpg



  • Thank you for your setup example. It is nearly identical to my setup (only I use RFM69HW's).
    The only thing I can think of now is that the radio modules must be defective, but I have no means to test this) So I ordered a new batch of RFM69's and hope for the best...

    [Edit]
    I see that you do not use the following defines as instructed in link text:

    #define MY_RFM69_IRQ_PIN D1
    #define MY_RFM69_IRQ_NUM MY_RFM69_IRQ_PIN
    #define MY_RFM69_CS_PIN D8
    

    I have tried both with and without these defines, but it makes no difference.



  • Did you try to add a capacitor next to the power pins?



  • Yes, I added a capacitor to both radio's.


  • Admin

    @willemx And you have 868Mhz modules?



  • Yes, that is what I ordered and also it is marked on the radio PCB's.


  • Admin

    @willemx Can you try with the new rfm69 driver & debug verbose mode on both, node & gw - i.e.

    #define MY_RFM69_NEW_DRIVER
    #define MY_DEBUG_VERBOSE_RFM69
    

    and post the debug logs here.



  • config on WEMOS D1 gateway:

    #define MY_RADIO_RFM69
    #define MY_RFM69_NEW_DRIVER
    #define MY_DEBUG_VERBOSE_RFM69
    #define MY_IS_RFM69HW
    

    log:

    --- Miniterm on /dev/cu.SLAB_USBtoUART  9600,8,N,1 ---
    --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
    0�~?�4�Ҷ␞��␄OAqr��62 MCO:BGN:INIT GW,CP=RPNGE---,FQ=80,REL=255,VER=2.3.2
    119 TSF:LRT:OK
    135 TSM:INIT
    148 TSF:WUR:MS=0
    166 RFM69:INIT
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 3
    cnt 
    
    connected with TOUTATIS, channel 2
    dhcp client start...
    ip:192.168.178.68,mask:255.255.255.0,gw:192.168.178.1
    383 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    423 RFM69:PTX:LEVEL=5 dBm
    450 !RFM69:INIT:SANCHK FAIL
    479 !TSM:INIT:TSP FAIL
    503 TSM:FAIL:CNT=1
    523 TSM:FAIL:DIS
    540 TSF:TDI:TSL
    557 RFM69:RSL
    pm open,type:2 0
    10573 TSM:FAIL:RE-INIT
    10597 TSM:INIT
    10612 RFM69:INIT
    10630 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    10673 RFM69:PTX:LEVEL=5 dBm
    10702 !RFM69:INIT:SANCHK FAIL
    10734 !TSM:INIT:TSP FAIL
    10760 TSM:FAIL:CNT=2
    10781 TSM:FAIL:DIS
    10801 TSF:TDI:TSL
    10820 RFM69:RSL
    20838 TSM:FAIL:RE-INIT
    20862 TSM:INIT
    20877 RFM69:INIT
    20895 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    20938 RFM69:PTX:LEVEL=5 dBm
    20967 !RFM69:INIT:SANCHK FAIL
    20999 !TSM:INIT:TSP FAIL
    21025 TSM:FAIL:CNT=3
    21047 TSM:FAIL:DIS
    21066 TSF:TDI:TSL
    21085 RFM69:RSL
    31103 TSM:FAIL:RE-INIT
    31127 TSM:INIT
    31142 RFM69:INIT
    31160 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    31203 RFM69:PTX:LEVEL=5 dBm
    31232 !RFM69:INIT:SANCHK FAIL
    31264 !TSM:INIT:TSP FAIL
    31290 TSM:FAIL:CNT=4
    31312 TSM:FAIL:DIS
    31332 TSF:TDI:TSL
    31350 RFM69:RSL
    41368 TSM:FAIL:RE-INIT
    41392 TSM:INIT
    41407 RFM69:INIT
    41425 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    41468 RFM69:PTX:LEVEL=5 dBm
    41497 !RFM69:INIT:SANCHK FAIL
    41529 !TSM:INIT:TSP FAIL
    41555 TSM:FAIL:CNT=5
    41577 TSM:FAIL:DIS
    41596 TSF:TDI:TSL
    41615 RFM69:RSL
    51633 TSM:FAIL:RE-INIT
    51657 TSM:INIT
    51672 RFM69:INIT
    51690 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    51733 RFM69:PTX:LEVEL=5 dBm
    51762 !RFM69:INIT:SANCHK FAIL
    51794 !TSM:INIT:TSP FAIL
    51820 TSM:FAIL:CNT=6
    51842 TSM:FAIL:DIS
    51861 TSF:TDI:TSL
    51880 RFM69:RSL
    61898 TSM:FAIL:RE-INIT
    61922 TSM:INIT
    61937 RFM69:INIT
    61955 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    61998 RFM69:PTX:LEVEL=5 dBm
    62027 !RFM69:INIT:SANCHK FAIL
    62059 !TSM:INIT:TSP FAIL
    62085 TSM:FAIL:CNT=7
    62107 TSM:FAIL:DIS
    62126 TSF:TDI:TSL
    62145 RFM69:RSL
    122163 TSM:FAIL:RE-INIT
    122188 TSM:INIT
    122204 RFM69:INIT
    122223 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    122267 RFM69:PTX:LEVEL=5 dBm
    122298 !RFM69:INIT:SANCHK FAIL
    122330 !TSM:INIT:TSP FAIL
    122357 TSM:FAIL:CNT=7
    122380 TSM:FAIL:DIS
    122401 TSF:TDI:TSL
    122421 RFM69:RSL
    182439 TSM:FAIL:RE-INIT
    182464 TSM:INIT
    182480 RFM69:INIT
    182499 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    182543 RFM69:PTX:LEVEL=5 dBm
    182574 !RFM69:INIT:SANCHK FAIL
    182606 !TSM:INIT:TSP FAIL
    182633 TSM:FAIL:CNT=7
    182656 TSM:FAIL:DIS
    182677 TSF:TDI:TSL
    182697 RFM69:RSL
    242716 TSM:FAIL:RE-INIT
    242741 TSM:INIT
    242757 RFM69:INIT
    242776 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    242820 RFM69:PTX:LEVEL=5 dBm
    242851 !RFM69:INIT:SANCHK FAIL
    242883 !TSM:INIT:TSP FAIL
    242910 TSM:FAIL:CNT=7
    242933 TSM:FAIL:DIS
    242954 TSF:TDI:TSL
    242974 RFM69:RSL
    302992 TSM:FAIL:RE-INIT
    303017 TSM:INIT
    303033 RFM69:INIT
    303052 RFM69:INIT:PIN,CS=15,IQP=5,IQN=5
    303096 RFM69:PTX:LEVEL=5 dBm
    303127 !RFM69:INIT:SANCHK FAIL
    303159 !TSM:INIT:TSP FAIL
    303186 TSM:FAIL:CNT=7
    303209 TSM:FAIL:DIS
    303230 TSF:TDI:TSL
    303250 RFM69:RSL
    

    log from Arduino Pro Mini sensor node:

    
     __  __       ____
    |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
            |___/                      2.3.2
    
    16 MCO:BGN:INIT NODE,CP=RPNNA---,FQ=8,REL=255,VER=2.3.2
    28 TSM:INIT
    28 TSF:WUR:MS=0
    30 RFM69:INIT
    32 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
    36 RFM69:PTX:LEVEL=5 dBm
    38 TSM:INIT:TSP OK
    40 TSM:INIT:STATID=42
    45 TSF:SID:OK,ID=42
    47 TSM:FPAR
    47 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
    53 RFM69:CSMA:RSSI=-104
    59 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2066 !TSM:FPAR:NO REPLY
    2068 TSM:FPAR
    2070 RFM69:SWR:SEND,TO=255,SEQ=1,RETRY=0
    2074 RFM69:CSMA:RSSI=-107
    2080 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4089 !TSM:FPAR:NO REPLY
    4091 TSM:FPAR
    4093 RFM69:SWR:SEND,TO=255,SEQ=2,RETRY=0
    4098 RFM69:CSMA:RSSI=-105
    4104 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6113 !TSM:FPAR:NO REPLY
    6115 TSM:FPAR
    6117 RFM69:SWR:SEND,TO=255,SEQ=3,RETRY=0
    6121 RFM69:CSMA:RSSI=-106
    6127 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8136 !TSM:FPAR:FAIL
    8138 TSM:FAIL:CNT=1
    8140 TSM:FAIL:DIS
    8142 TSF:TDI:TSL
    8142 RFM69:RSL
    18145 TSM:FAIL:RE-INIT
    18147 TSM:INIT
    18149 RFM69:INIT
    18151 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
    18155 RFM69:PTX:LEVEL=5 dBm
    18157 TSM:INIT:TSP OK
    18161 TSM:INIT:STATID=42
    18163 TSF:SID:OK,ID=42
    18165 TSM:FPAR
    18167 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
    18173 RFM69:CSMA:RSSI=-107
    18180 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20189 !TSM:FPAR:NO REPLY
    20191 TSM:FPAR
    20193 RFM69:SWR:SEND,TO=255,SEQ=1,RETRY=0
    20197 RFM69:CSMA:RSSI=-103
    20203 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    22212 !TSM:FPAR:NO REPLY
    22214 TSM:FPAR
    22216 RFM69:SWR:SEND,TO=255,SEQ=2,RETRY=0
    22220 RFM69:CSMA:RSSI=-105
    22226 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24236 !TSM:FPAR:NO REPLY
    24238 TSM:FPAR
    24240 RFM69:SWR:SEND,TO=255,SEQ=3,RETRY=0
    24244 RFM69:CSMA:RSSI=-109
    24250 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26259 !TSM:FPAR:FAIL
    26261 TSM:FAIL:CNT=2
    26263 TSM:FAIL:DIS
    26265 TSF:TDI:TSL
    26267 RFM69:RSL
    36270 TSM:FAIL:RE-INIT
    36272 TSM:INIT
    36274 RFM69:INIT
    36276 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
    36280 RFM69:PTX:LEVEL=5 dBm
    36282 TSM:INIT:TSP OK
    36286 TSM:INIT:STATID=42
    36288 TSF:SID:OK,ID=42
    36290 TSM:FPAR
    36292 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
    36298 RFM69:CSMA:RSSI=-105
    36304 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    38316 !TSM:FPAR:NO REPLY
    38318 TSM:FPAR
    38320 RFM69:SWR:SEND,TO=255,SEQ=1,RETRY=0
    38324 RFM69:CSMA:RSSI=-105
    38330 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    40339 !TSM:FPAR:NO REPLY
    40341 TSM:FPAR
    40343 RFM69:SWR:SEND,TO=255,SEQ=2,RETRY=0
    40347 RFM69:CSMA:RSSI=-102
    40353 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    42362 !TSM:FPAR:NO REPLY
    42364 TSM:FPAR
    42366 RFM69:SWR:SEND,TO=255,SEQ=3,RETRY=0
    42371 RFM69:CSMA:RSSI=-104
    42377 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    44386 !TSM:FPAR:FAIL
    44388 TSM:FAIL:CNT=3
    44390 TSM:FAIL:DIS
    44392 TSF:TDI:TSL
    44394 RFM69:RSL
    54398 TSM:FAIL:RE-INIT
    54401 TSM:INIT
    54403 RFM69:INIT
    54405 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
    54409 RFM69:PTX:LEVEL=5 dBm
    54411 TSM:INIT:TSP OK
    54415 TSM:INIT:STATID=42
    54417 TSF:SID:OK,ID=42
    54419 TSM:FPAR
    54421 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
    54427 RFM69:CSMA:RSSI=-105
    54433 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    56442 !TSM:FPAR:NO REPLY
    56444 TSM:FPAR
    56446 RFM69:SWR:SEND,TO=255,SEQ=1,RETRY=0
    56451 RFM69:CSMA:RSSI=-104
    56457 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    58466 !TSM:FPAR:NO REPLY
    58468 TSM:FPAR
    58470 RFM69:SWR:SEND,TO=255,SEQ=2,RETRY=0
    58474 RFM69:CSMA:RSSI=-104
    58480 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    60489 !TSM:FPAR:NO REPLY
    60491 TSM:FPAR
    60493 RFM69:SWR:SEND,TO=255,SEQ=3,RETRY=0
    60497 RFM69:CSMA:RSSI=-102
    60504 ?TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    62513 !TSM:FPAR:FAIL
    62515 TSM:FAIL:CNT=4
    62517 TSM:FAIL:DIS
    62519 TSF:TDI:TSL
    62521 RFM69:RSL
    72525 TSM:FAIL:RE-INIT!
    

  • Admin

    @willemx said in Need help with ESP8266 MQTT Gateway (RFM69HW radio):

    450 !RFM69:INIT:SANCHK FAIL

    There is a problem with the rfm69 module and/or wiring on your GW - can you exchange the rfm69 module with the one from the node and post the logs?



  • 🎉 🎉 🎉
    You were right; there was a minuscule piece of wire strand between two contacts and after removing it all is fine now.
    Also checked all the radio's again which is easy now I have a working configuration and there was indeed one defective radio module.
    Thanks everyone for unblocking me!


  • Admin

    @willemx Excellent! Have fun! 👍


Log in to reply
 

Suggested Topics

  • 9
  • 4
  • 4
  • 11
  • 9
  • 2
  • 23
  • 7

238
Online

9.8k
Users

10.3k
Topics

106.7k
Posts