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. MQTT - RFM69 Gateway stops communicating randomly and doesn't recover

MQTT - RFM69 Gateway stops communicating randomly and doesn't recover

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 4 Posters 3.2k Views 4 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by gohan
    #4

    Yes, it's dev branch but it is working. Give it a try

    1 Reply Last reply
    0
    • CarywinC Offline
      CarywinC Offline
      Carywin
      wrote on last edited by
      #5

      I have upgraded the whole network to 2.2.0-beta using the new RFM69 driver. I started by upgrading just the gateway but it wasn't backwards compatible with the sensors. Maybe the new radio driver changes something.
      Will wait and see if it fails again.

      scalzS 1 Reply Last reply
      0
      • CarywinC Carywin

        I have upgraded the whole network to 2.2.0-beta using the new RFM69 driver. I started by upgrading just the gateway but it wasn't backwards compatible with the sensors. Maybe the new radio driver changes something.
        Will wait and see if it fails again.

        scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by
        #6

        @Carywin
        hi

        if you have upgraded to new rfm69 driver, you need all nodes+gw updated too.

        CarywinC 1 Reply Last reply
        0
        • scalzS scalz

          @Carywin
          hi

          if you have upgraded to new rfm69 driver, you need all nodes+gw updated too.

          CarywinC Offline
          CarywinC Offline
          Carywin
          wrote on last edited by
          #7

          @scalz Thanks yeah I have upgraded all the nodes and they're all talking again on the new driver

          1 Reply Last reply
          1
          • CarywinC Offline
            CarywinC Offline
            Carywin
            wrote on last edited by
            #8

            So far so good. I'm feeling tentatively like this problem may be solved in 2.2-beta, and my sensor network is starting to gain my trust again.

            G 1 Reply Last reply
            1
            • CarywinC Carywin

              So far so good. I'm feeling tentatively like this problem may be solved in 2.2-beta, and my sensor network is starting to gain my trust again.

              G Offline
              G Offline
              gieemek
              wrote on last edited by
              #9

              @Carywin Is your gateway still working without losing connection ?
              I have the same problem as yours: my gatewayMQTTclient with RFM69 by softSPI is losing connection with nodes. Sometimes it works by couple of days, sometimes only few hours.
              I have tried to implement new RFM69 driver version of MySensors (2.2 dev), but arduino has not compiled my sketch according to errors in RFM69_new.cpp file (some variables are not defined). With old driver version sketch has compiled.
              How have you run your gateway with MySensors 2.2 ?
              Have you defined MY_RFM69_NEW_DRIVER parameter to work with new driver ?

              CarywinC 1 Reply Last reply
              0
              • G gieemek

                @Carywin Is your gateway still working without losing connection ?
                I have the same problem as yours: my gatewayMQTTclient with RFM69 by softSPI is losing connection with nodes. Sometimes it works by couple of days, sometimes only few hours.
                I have tried to implement new RFM69 driver version of MySensors (2.2 dev), but arduino has not compiled my sketch according to errors in RFM69_new.cpp file (some variables are not defined). With old driver version sketch has compiled.
                How have you run your gateway with MySensors 2.2 ?
                Have you defined MY_RFM69_NEW_DRIVER parameter to work with new driver ?

                CarywinC Offline
                CarywinC Offline
                Carywin
                wrote on last edited by
                #10

                @gieemek Yes my gateway and sensors are very reliable now, using 2.2-beta from the dev branch and the new RFM69 driver.

                Are you just trying to use the new driver by itself? Or have you updated the whole MySensors library to 2.2? I upgraded the whole library, I'm not sure how much success you'd have just updating the driver itself.

                There are a few definitions changed in the library, anywhere that the old defs had MY_RF69 you have to change it to MY_RFM69 - Note the added M.

                Here's the radio block from my gateway sketch:

                #define MY_RADIO_RFM69
                #define MY_RFM69_NETWORKID 137
                #define MY_RFM69_ENABLE_ENCRYPTION
                #define MY_RFM69_NEW_DRIVER
                #define MY_IS_RFM69HW
                #define MY_RFM69_FREQUENCY RFM69_433MHZ
                #define MY_RFM69_IRQ_PIN 2
                //#define MY_RFM69_IRQ_NUM  1
                #define MY_RF69_SPI_CS 6
                #define MY_RFM69_ATC_MODE_DISABLED
                #define MY_RFM69_TX_POWER_DBM 20
                

                IRQ_NUM seems deprecated now, but it works without it.

                I disabled ATC_MODE just on my gateway when I was troubleshooting a different issue, but I don't care much about power consumption there so I didn't bother to enable it again.

                G 1 Reply Last reply
                0
                • CarywinC Carywin

                  @gieemek Yes my gateway and sensors are very reliable now, using 2.2-beta from the dev branch and the new RFM69 driver.

                  Are you just trying to use the new driver by itself? Or have you updated the whole MySensors library to 2.2? I upgraded the whole library, I'm not sure how much success you'd have just updating the driver itself.

                  There are a few definitions changed in the library, anywhere that the old defs had MY_RF69 you have to change it to MY_RFM69 - Note the added M.

                  Here's the radio block from my gateway sketch:

                  #define MY_RADIO_RFM69
                  #define MY_RFM69_NETWORKID 137
                  #define MY_RFM69_ENABLE_ENCRYPTION
                  #define MY_RFM69_NEW_DRIVER
                  #define MY_IS_RFM69HW
                  #define MY_RFM69_FREQUENCY RFM69_433MHZ
                  #define MY_RFM69_IRQ_PIN 2
                  //#define MY_RFM69_IRQ_NUM  1
                  #define MY_RF69_SPI_CS 6
                  #define MY_RFM69_ATC_MODE_DISABLED
                  #define MY_RFM69_TX_POWER_DBM 20
                  

                  IRQ_NUM seems deprecated now, but it works without it.

                  I disabled ATC_MODE just on my gateway when I was troubleshooting a different issue, but I don't care much about power consumption there so I didn't bother to enable it again.

                  G Offline
                  G Offline
                  gieemek
                  wrote on last edited by
                  #11

                  @Carywin The problem with compiling by Arduino is with softSPI. When I switch it off my sketch is compiling properly. I have to implement softSPI library to new driver. Thanks.

                  CarywinC 1 Reply Last reply
                  0
                  • G gieemek

                    @Carywin The problem with compiling by Arduino is with softSPI. When I switch it off my sketch is compiling properly. I have to implement softSPI library to new driver. Thanks.

                    CarywinC Offline
                    CarywinC Offline
                    Carywin
                    wrote on last edited by
                    #12

                    @gieemek Oh right, well I'm using hardware SPI so that would explain it. Good luck!

                    G 1 Reply Last reply
                    0
                    • CarywinC Carywin

                      @gieemek Oh right, well I'm using hardware SPI so that would explain it. Good luck!

                      G Offline
                      G Offline
                      gieemek
                      wrote on last edited by
                      #13

                      @Carywin OK, my gatewayMQTTclient with RFM69 via SoftSPI is working now. There was a problem in RFM69_new.cpp file with SPI_HAS_TRANSACTION variable which is defined in hard SPI.h but not in SoftSPI.
                      Now I test my gateway and I hope it will work without losing connection. Thank you once more for help.

                      CarywinC 1 Reply Last reply
                      1
                      • G gieemek

                        @Carywin OK, my gatewayMQTTclient with RFM69 via SoftSPI is working now. There was a problem in RFM69_new.cpp file with SPI_HAS_TRANSACTION variable which is defined in hard SPI.h but not in SoftSPI.
                        Now I test my gateway and I hope it will work without losing connection. Thank you once more for help.

                        CarywinC Offline
                        CarywinC Offline
                        Carywin
                        wrote on last edited by
                        #14

                        @gieemek Glad to hear it's working. I don't think SoftSPI needs to be atomic in its transactions the same way hardSPI does, so you're probably not missing anything important.

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


                        29

                        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