Bypass radio connection
-
Hello, since I don't have a power connection on the street to charge my car battery and I rarely drive my car, the car battery is constantly discharging.
I built an outdoor maintenance charger so that my car battery is powered by a Li-ion battery with a boost converter.
It keeps the voltage constant at 12.3V.
An Arduino checks the output voltage and switches off when the Li-ion battery drops below 10V. The battery is then replaced approximately every 8 days.
So much for the explanation.
Of course, when the Li-ion battery changes by 0.1V, the current value is sent to my MySensors - Homeassistant gateway.
When the Arduino Pro Mini with MySensors is started, it attempts to reach the gateway 7 times, to my knowledge. Only when a response is received during this time does the setup and presentation start, and the loop in the sketch can begin its work.
But what happens if the parking space in front of the door is too far away and there is no radio connection?
I have noticed that it tries to establish a radio connection in a continuous loop and that battery charging is not possible during this time.
Have I understood this correctly?
I am not a programmer and have gradually created a very chaotic sketch. The test setup works when I am close to the gateway.
How can I get around this, for example, by trying 7 times, and if no connection is possible, continuing with the sketch anyway?
Best regards
I hope everything isn't dead here and there are still active users who can answer my question
(with Deepl) -
Hi Branther. Great to see you back!
These topic give some info on what can be done:
https://forum.mysensors.org/topic/9879/setup-for-the-fastest-sensor-startup-time/
https://forum.mysensors.org/topic/8827/serial-gateway-nrf24-with-sleep-mode-enabled-there/Check if these help, and post any follow-up questions you might have.
-
Hello, thank you very much for your quick help.
I think I'll be able to move forward with
#define MY_PASSIVE_NODE.
Am I understanding this correctly? If data still arrives at the gateway, is that OK?
What are the disadvantages of this function?
I tried it out. It seems to work.
Best regards,
branther