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 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 15 days ago • bocalexandru 13 days ago -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 6 days ago -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20