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. [Solved] Nodes having trouble reconnecting to gateway

[Solved] Nodes having trouble reconnecting to gateway

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 6 Posters 1.6k Views 7 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 FlyingDomotic

    @grumpazoid: I had recently the same issue with a 2560 node and a Nano gateway. I fixed it putting a delayMicroseconds(1500) at (very) top of RF24stopListening function.

    LOCAL void RF24_stopListening(void)
    {
    	// The following delay will allow this node to send an ACK to the last received message
    	//	Value should be at least equal to ACR (1500 ms for 250 Kb/s transmission with 15 retries
    	delayMicroseconds(1500);			//// *** FF_CHANGE *** //// 
    	RF24_DEBUG(PSTR("RF24:SPL\n"));	// stop listening
    	RF24_ce(LOW);
    	// timing
    	delayMicroseconds(130);
    	RF24_setRFConfiguration(RF24_CONFIGURATION | _BV(RF24_PWR_UP) );
    	// timing
    	delayMicroseconds(100);
    }
    

    Don't know if your trouble is the same as mine, but hope this helps!

    G Offline
    G Offline
    grumpazoid
    wrote on last edited by
    #6

    @flyingdomotic Ok So I have modified \Arduino\libraries\MySensors\hal\transport\RF24\driver\RF24.cpp and reuploaded my sketches to the gateway and a couple of nodes.

    Unfortunately one of those nodes is still reluctant to connect. You can see the tx LED coming on for a long time while it tries.

    There must be something in the underlying code not quite right?

    Raspberry Pi 3B - Domoticz + Node Red
    Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
    Arduino Mega, RFLink 433Mhz
    Sonoff/ESP8266/Tasmota switches

    1 Reply Last reply
    0
    • mfalkviddM mfalkvidd

      @grumpazoid Strange. The log parser works for me in Chrome, IE, FF on Win7 and Safari on ios.

      Could you check if the browser console says anything about why it doesn't work? (F12 in chrome and FF)

      0_1552736186806_10faf41e-c731-48ed-8925-4fb6f2ea8c2d-image.png

      G Offline
      G Offline
      grumpazoid
      wrote on last edited by
      #7

      @mfalkvidd Thanks for that.

      F11 showed that the page was failing to resolve cdnjs.cloudflare.com
      I run a pihole so just needed to add to my whitelist.

      Fixed. Thanks.

      Now back to the node/gateway communication problem!

      Raspberry Pi 3B - Domoticz + Node Red
      Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
      Arduino Mega, RFLink 433Mhz
      Sonoff/ESP8266/Tasmota switches

      1 Reply Last reply
      1
      • G Offline
        G Offline
        grumpazoid
        wrote on last edited by grumpazoid
        #8

        The parser says that no radio ACK has been received when the node tries to ping the gateway.
        I have today built a replacement radio breakout board from scratch. The problem is still the same.
        Some nodes connect, some randomly do not.
        I have replaced every piece of gateway hardware, so this my be something within the Mysensors code.
        Any suggestions please?

        Raspberry Pi 3B - Domoticz + Node Red
        Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
        Arduino Mega, RFLink 433Mhz
        Sonoff/ESP8266/Tasmota switches

        YveauxY 1 Reply Last reply
        0
        • G grumpazoid

          The parser says that no radio ACK has been received when the node tries to ping the gateway.
          I have today built a replacement radio breakout board from scratch. The problem is still the same.
          Some nodes connect, some randomly do not.
          I have replaced every piece of gateway hardware, so this my be something within the Mysensors code.
          Any suggestions please?

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #9

          @grumpazoid what hardware are you running your gateways and sensors on? Please provide a thorough description.

          http://yveaux.blogspot.nl

          G 1 Reply Last reply
          1
          • YveauxY Yveaux

            @grumpazoid what hardware are you running your gateways and sensors on? Please provide a thorough description.

            G Offline
            G Offline
            grumpazoid
            wrote on last edited by grumpazoid
            #10

            @yveaux I have a serial gateway built on Arduino Uno connected to Pi. This is now just spare as I have W5100 / arduino nano ethernet gateway. Nodes are mostly 3.3V pro minis. One is 5V nano. All arduinos are clones.
            Radios on nodes are NRF24L01+. On gateways I can use NRF24L01+ or amplified version (doesn't make a difference to this behaviour).

            As an example I switched off the gateway 2 hours ago. 2 nodes are came in straight away, the other 3 have no communication. Chances are the same 2 will connect again if I power cycle the gateway but the nodes that work straight away changes randomly. It seems like the gateway does not want to acknowledge certain nodes.

            Behaviour is the same if I revert to stock motion sketch.

            Raspberry Pi 3B - Domoticz + Node Red
            Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
            Arduino Mega, RFLink 433Mhz
            Sonoff/ESP8266/Tasmota switches

            mfalkviddM 1 Reply Last reply
            0
            • G grumpazoid

              @yveaux I have a serial gateway built on Arduino Uno connected to Pi. This is now just spare as I have W5100 / arduino nano ethernet gateway. Nodes are mostly 3.3V pro minis. One is 5V nano. All arduinos are clones.
              Radios on nodes are NRF24L01+. On gateways I can use NRF24L01+ or amplified version (doesn't make a difference to this behaviour).

              As an example I switched off the gateway 2 hours ago. 2 nodes are came in straight away, the other 3 have no communication. Chances are the same 2 will connect again if I power cycle the gateway but the nodes that work straight away changes randomly. It seems like the gateway does not want to acknowledge certain nodes.

              Behaviour is the same if I revert to stock motion sketch.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #11

              @grumpazoid are you saying you have two gateways using the same frequency (the serial gw and the ethernet gw) running? If that't the case, the problems have a simple solution - turn off one of the gateways.

              G 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @grumpazoid are you saying you have two gateways using the same frequency (the serial gw and the ethernet gw) running? If that't the case, the problems have a simple solution - turn off one of the gateways.

                G Offline
                G Offline
                grumpazoid
                wrote on last edited by
                #12

                @mfalkvidd No I only use one at any time.
                I started with serial and then built the ethernet gateway. To eliminate the ethernet gateway hardware I just reverted back to serial to test.

                Raspberry Pi 3B - Domoticz + Node Red
                Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
                Arduino Mega, RFLink 433Mhz
                Sonoff/ESP8266/Tasmota switches

                1 Reply Last reply
                1
                • F FlyingDomotic

                  @grumpazoid: I had recently the same issue with a 2560 node and a Nano gateway. I fixed it putting a delayMicroseconds(1500) at (very) top of RF24stopListening function.

                  LOCAL void RF24_stopListening(void)
                  {
                  	// The following delay will allow this node to send an ACK to the last received message
                  	//	Value should be at least equal to ACR (1500 ms for 250 Kb/s transmission with 15 retries
                  	delayMicroseconds(1500);			//// *** FF_CHANGE *** //// 
                  	RF24_DEBUG(PSTR("RF24:SPL\n"));	// stop listening
                  	RF24_ce(LOW);
                  	// timing
                  	delayMicroseconds(130);
                  	RF24_setRFConfiguration(RF24_CONFIGURATION | _BV(RF24_PWR_UP) );
                  	// timing
                  	delayMicroseconds(100);
                  }
                  

                  Don't know if your trouble is the same as mine, but hope this helps!

                  HonkH Offline
                  HonkH Offline
                  Honk
                  wrote on last edited by
                  #13

                  @flyingdomotic thank you. I also had some problems with some nodes which worked very nice on 2.1.1. When I worked on some of the nodes and updated to 2.3.1 I noticed, that communication wasn't so great anymore.
                  On first glance this fix works on my plant sensor node. Hope it stays that way now.

                  Some people are saying with debug on it works and without it, it doesn't maybe the Debug line before the ce(low) does the same thing as your delay.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    grumpazoid
                    wrote on last edited by grumpazoid
                    #14

                    I think I have fixed the issue. I changed to the cap on the ethernet gateway from 47uF to 1uF. I have power cycled the gateway 4 times now and all the nodes came in. Looks like less is more! For whatever reason the breakout boards obviously don't work well for me.
                    I will keep testing for a few days.

                    Raspberry Pi 3B - Domoticz + Node Red
                    Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
                    Arduino Mega, RFLink 433Mhz
                    Sonoff/ESP8266/Tasmota switches

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      grumpazoid
                      wrote on last edited by
                      #15

                      Finally fixed as detailed here https://forum.mysensors.org/topic/10138/repeater-node-causing-problems-solved/25

                      Raspberry Pi 3B - Domoticz + Node Red
                      Arduino Pro Mini 3.3V - W5100 Ethernet, Nrf24
                      Arduino Mega, RFLink 433Mhz
                      Sonoff/ESP8266/Tasmota switches

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


                      25

                      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