Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?

Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?

Scheduled Pinned Locked Moved Troubleshooting
17 Posts 4 Posters 3.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fabien
    wrote on last edited by
    #2

    You issue is on GW. Node ping GW, GW recieve ping but pong response is never recieve by node.
    NodeMCU and especially Chinese clone doesn't have a good 3.3V regulator. Try to power your radio module with external 3.3V (but connect GND together).
    I highly recommand you to use another device like Wemos for GW

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chbla
      wrote on last edited by
      #3

      Thanks for the reply @Fabien

      I'm using this breakout board: https://www.adafruit.com/product/3071 - as far as I understood it has a regulator, is this not sufficient?

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #4

        In case of communication problems with wireless modules, adding a cap on vcc it is always a good thing to try

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fabien
          wrote on last edited by
          #5

          Forget the cap with RFM69 modules. Did you put a one wire antenna (164.7 mm) ?
          Regulator on breakout board is ok. And what about your VIN power ? Is it sufficient ?
          Can you post photo of your GW ?

          C 1 Reply Last reply
          0
          • F Fabien

            Forget the cap with RFM69 modules. Did you put a one wire antenna (164.7 mm) ?
            Regulator on breakout board is ok. And what about your VIN power ? Is it sufficient ?
            Can you post photo of your GW ?

            C Offline
            C Offline
            chbla
            wrote on last edited by
            #6

            @Fabien, thanks for your help!

            The antenna is 164.7mm yes.
            Regarding VIN - what's ideal to use here? I'm not sure how much power it needs, I've got a bunch of USB power supplies
            that I tried.

            Pictures of the GW and RFM69 Module:
            https://www.dropbox.com/sh/txuqvkk1di9awj9/AABpvof5jKt2nq5Vd2rvFrn4a?dl=0

            I would really appreciate if anyone could help me get this to run :/

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fabien
              wrote on last edited by
              #7

              Actually you are powering your RFM69 with your 3V from your NodeMCU. It cannot work because you have a 3.3V regulator on the RFM69 board AND 3.3V on NodeMCU is not very good.
              First you can try to move your red wire from 3V to VIN on the NodeMCU side. It can works f you use a good USB power supply (1A min).
              Just another tip : check in your gateway sketch you have #define MY_IS_RFM69HW

              C 1 Reply Last reply
              0
              • F Fabien

                Actually you are powering your RFM69 with your 3V from your NodeMCU. It cannot work because you have a 3.3V regulator on the RFM69 board AND 3.3V on NodeMCU is not very good.
                First you can try to move your red wire from 3V to VIN on the NodeMCU side. It can works f you use a good USB power supply (1A min).
                Just another tip : check in your gateway sketch you have #define MY_IS_RFM69HW

                C Offline
                C Offline
                chbla
                wrote on last edited by
                #8

                VIN on the Nodemcu produces WDT resets, not sure why.

                I've now connected the RFM69 to the 5V output of a Wemos D1 Mini, and the board via USB.
                I'm still getting the same results: https://gist.github.com/solars/7ed4541372f37166910ca4d1842d8c32

                Trying to use a regulator I have for the breadboard if I find a suitable power supply.

                This is really frustrating.
                I tried with a Wemos D1 Mini earlier - only produces WDT resets.
                Then tried with Arduino Uno + W5100 Ethernet shield, only to find out it's quite complicated
                to get this to run with an RFM69 due to soft spi.

                All I want is get this communication to work..

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Fabien
                  wrote on last edited by
                  #9

                  Very strange, I have a wemos mini gateway working fine (With nodeMCU i have a lot of commmunication probelms because of regulator). Do you have other radios for testing ? With your wemos+nodemcu did you connect GND together ?
                  Wdt resets probably occurs because your usb power supply isn't sufficent.

                  C 1 Reply Last reply
                  0
                  • F Fabien

                    Very strange, I have a wemos mini gateway working fine (With nodeMCU i have a lot of commmunication probelms because of regulator). Do you have other radios for testing ? With your wemos+nodemcu did you connect GND together ?
                    Wdt resets probably occurs because your usb power supply isn't sufficent.

                    C Offline
                    C Offline
                    chbla
                    wrote on last edited by chbla
                    #10

                    @Fabien I have now used a second power supply for the RFM69 (5V), USB for the Nodemcu, connected grounds together. But it's still the same..

                    I also tried a different radio.

                    Do you maybe have a picture how you connected the Wemos D1 Mini and sketch used? I guess I just had a wiring problem with the wemos.
                    I would like to try again.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Fabien
                      wrote on last edited by
                      #11

                      I just build a new one because I bought a sensebender Gateway !
                      So my new setup :

                      RFM69 -> Wemos Mini D1
                      SS -> GPIO16 (D0)
                      SCK -> GPIO14 (D5)
                      MISO -> GPIO12 (D6)
                      MOSI -> GPIO13 (D7)
                      IRQ -> GPIO15 (D8)
                      

                      Connect GND and 5V power (in my case I Don't use breakout board but direct connection to RFM69

                      Sketch :

                      #define MY_DEBUG
                      
                      // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
                      #define MY_BAUD_RATE 9600
                      
                      #define MY_RADIO_RFM69
                      #define MY_RF69_IRQ_PIN 15
                      #define MY_RF69_SPI_CS 16
                      #define MY_RF69_IRQ_NUM 15
                      
                      #define MY_GATEWAY_ESP8266
                      #define MY_ESP8266_SSID "Fab-WLAN"
                      #define MY_ESP8266_PASSWORD "password"
                      
                      #define MY_PORT 5003
                      #define MY_GATEWAY_MAX_CLIENTS 2
                      
                      #include <ESP8266WiFi.h>
                      #include <MySensors.h>
                      
                      void setup() {
                      }
                      void presentation() {
                      }
                      void loop() {
                      }
                      

                      With your Breakout board you must add : #define MY_IS_RFM69HW

                      And now the log with some testing sensors :

                      0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGE--,VER=2.1.0-beta
                      0;255;3;0;9;TSF:LRT:OK
                      0;255;3;0;9;TSM:INIT
                      0;255;3;0;9;TSF:WUR:MS=0
                      scandone
                      state: 0 -> 2 (b0)
                      state: 2 -> 3 (0)
                      state: 3 -> 5 (10)
                      add 0
                      aid 5
                      cnt
                      0;255;3;0;9;TSM:INIT:TSP OK
                      0;255;3;0;9;TSM:INIT:GW MODE
                      0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                      
                      f r0,
                      connected with Fab-WLAN, channel 1
                      dhcp client start...
                      scandone
                      ..ip:192.168.1.55,mask:255.255.255.0,gw:192.168.1.1
                      .IP: 192.168.1.55
                      0;255;3;0;9;MCO:BGN:STP
                      0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
                      pm open,type:2 0
                      0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                      0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
                      0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                      
                      C 1 Reply Last reply
                      0
                      • F Fabien

                        I just build a new one because I bought a sensebender Gateway !
                        So my new setup :

                        RFM69 -> Wemos Mini D1
                        SS -> GPIO16 (D0)
                        SCK -> GPIO14 (D5)
                        MISO -> GPIO12 (D6)
                        MOSI -> GPIO13 (D7)
                        IRQ -> GPIO15 (D8)
                        

                        Connect GND and 5V power (in my case I Don't use breakout board but direct connection to RFM69

                        Sketch :

                        #define MY_DEBUG
                        
                        // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
                        #define MY_BAUD_RATE 9600
                        
                        #define MY_RADIO_RFM69
                        #define MY_RF69_IRQ_PIN 15
                        #define MY_RF69_SPI_CS 16
                        #define MY_RF69_IRQ_NUM 15
                        
                        #define MY_GATEWAY_ESP8266
                        #define MY_ESP8266_SSID "Fab-WLAN"
                        #define MY_ESP8266_PASSWORD "password"
                        
                        #define MY_PORT 5003
                        #define MY_GATEWAY_MAX_CLIENTS 2
                        
                        #include <ESP8266WiFi.h>
                        #include <MySensors.h>
                        
                        void setup() {
                        }
                        void presentation() {
                        }
                        void loop() {
                        }
                        

                        With your Breakout board you must add : #define MY_IS_RFM69HW

                        And now the log with some testing sensors :

                        0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGE--,VER=2.1.0-beta
                        0;255;3;0;9;TSF:LRT:OK
                        0;255;3;0;9;TSM:INIT
                        0;255;3;0;9;TSF:WUR:MS=0
                        scandone
                        state: 0 -> 2 (b0)
                        state: 2 -> 3 (0)
                        state: 3 -> 5 (10)
                        add 0
                        aid 5
                        cnt
                        0;255;3;0;9;TSM:INIT:TSP OK
                        0;255;3;0;9;TSM:INIT:GW MODE
                        0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                        
                        f r0,
                        connected with Fab-WLAN, channel 1
                        dhcp client start...
                        scandone
                        ..ip:192.168.1.55,mask:255.255.255.0,gw:192.168.1.1
                        .IP: 192.168.1.55
                        0;255;3;0;9;MCO:BGN:STP
                        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
                        pm open,type:2 0
                        0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                        0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
                        0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                        
                        C Offline
                        C Offline
                        chbla
                        wrote on last edited by
                        #12

                        @Fabien thanks a lot!

                        I've set it up like you now, but now the GW doesn't seem to read any messages... damn
                        https://gist.github.com/solars/823bc62306909efd3fbb1a66b5211b31

                        Any idea what's wrong again now?

                        Johannes HodneJ 1 Reply Last reply
                        0
                        • C chbla

                          @Fabien thanks a lot!

                          I've set it up like you now, but now the GW doesn't seem to read any messages... damn
                          https://gist.github.com/solars/823bc62306909efd3fbb1a66b5211b31

                          Any idea what's wrong again now?

                          Johannes HodneJ Offline
                          Johannes HodneJ Offline
                          Johannes Hodne
                          wrote on last edited by
                          #13

                          @chbla I gave up on the 2.1.1 library, and tried with 2.0.0. Then everything start working :-D

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            Fabien
                            wrote on last edited by
                            #14

                            In your gateway your don't #define MY_RFM69_FREQUENCY RF69_433MHZ . By default it sets to RF69_868MHZ

                            C 1 Reply Last reply
                            0
                            • F Fabien

                              In your gateway your don't #define MY_RFM69_FREQUENCY RF69_433MHZ . By default it sets to RF69_868MHZ

                              C Offline
                              C Offline
                              chbla
                              wrote on last edited by
                              #15

                              @Fabien said in Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?:

                              In your gateway your don't #define MY_RFM69_FREQUENCY RF69_433MHZ . By default it sets to RF69_868MHZ

                              Oh my god! What an incredible stupid mistake!
                              I wasted all this time trying to get the NodeMCU to work only because I forgot that setting in my initial Wemos Sketch...
                              It's finally working now.. haha. Let me know when you're in Austria @Fabien you deserve a beer :)

                              @Johannes-Hodne thanks for the suggestion but it's finally working now :)

                              F 1 Reply Last reply
                              1
                              • Johannes HodneJ Offline
                                Johannes HodneJ Offline
                                Johannes Hodne
                                wrote on last edited by
                                #16

                                Great! I might have to give the 2.1.1 library another try.

                                1 Reply Last reply
                                0
                                • C chbla

                                  @Fabien said in Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?:

                                  In your gateway your don't #define MY_RFM69_FREQUENCY RF69_433MHZ . By default it sets to RF69_868MHZ

                                  Oh my god! What an incredible stupid mistake!
                                  I wasted all this time trying to get the NodeMCU to work only because I forgot that setting in my initial Wemos Sketch...
                                  It's finally working now.. haha. Let me know when you're in Austria @Fabien you deserve a beer :)

                                  @Johannes-Hodne thanks for the suggestion but it's finally working now :)

                                  F Offline
                                  F Offline
                                  Fabien
                                  wrote on last edited by
                                  #17

                                  @chbla Good news ! Now you can play with sensors !

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  16

                                  Online

                                  11.7k

                                  Users

                                  11.2k

                                  Topics

                                  113.1k

                                  Posts


                                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • MySensors
                                  • OpenHardware.io
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular