How to Reestablish lost NRF24 connection
-
Hello,
I did a few tests to figure out up to what distance my NRF24 would be able to transmit the temperature of my dht temp sensor, this for different PA_levels. So for better testing i modified the sketch for the sensor to send it's data any 2 seconds. What i don't understand is that when the signal becomes too low and the gateway does not anymore receive the data, the connection is lost and transmissions do not restart even if i come back near the gateway .... is this normal , what is the logic behind this?, would the transmission be automatically restarted after sometime (i did not wait much)?
: with a power cycle the sensor arduino recovered the connection...(represented itself to the gateway) .
-
Nobody can answer whether fthe lost connection will be recovered automatically after some time?
-
When the node loses the connection, it tries to find a gateway or repeater and reestablish the connection. I don't know if it gives up at some point, however I have seen situations where it took some time for the connection to come back.
-
@Jan-Gatzke
thanks , i will have to retest this ... i'm concerned because a few days ago i had an interruption of the connection that lasted a full night ... yet i just needed to swith off and on the battery of the arduino and the signal was back ... the battery level was also all rightSo im tempted to believe that i should always favour the best conditions (max PA_level ) to avoid lost connections, if it's confirmed that the arduino might not try to recover connction may be after a number of unsuccessfull attempts or some timeout...
-
If I remember well there is a function that returns if you are connected or not and if not you can call the initialization to get connection back
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 29 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 28 days ago • bocalexandru 26 days ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 19 days ago -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58