Distance communication with my ESP32 using LoRa

Hey guys,
I have a few sensors sending their data to a receiver via LoRa which then send these data by WiFi. For some reasons, it can happen that the slave will stop working and the only way is to reset it manually.
Is there a way to reset the slave through the master remotely from home? Do I need to modify my scheme and/or to modify something in my program?
Thanks
Laurent

Find out what causes the thing You name as stop. What does the slave do when it has "stopped"?
It's unlikely it can be restarted by the communication link.
Try and post the formatted slave code using code tags.

I understand your point but it was not my question. This happens randomly and I have no way to collect this information. This might happen during the deep sleep and I'm not around to get it. When I test them at home, everything looks fine. It can happen (very rarely) after a few hours or a few months.
Actually, I would like to know that to reset it remotely, but also to do other stuff remotely. So please, is there a way and how? Is there a tuto somewhere?
Thanks

Create a long range remote type device that resets the slave....

Have it reset itself on a schedule.

what Lora module are you using with the ESP32 and what are the slave Lora devices?
Edit: can you implement a WDT (Watch Dog Timer) on the slave - automatically reset after specified time if WDT not cleared

It could be an option but if the ESP crashes before it resets it, it won't work. And reset it remotely is not the only thing I want to do.

I'm using the SX1278 LoRa 433MHz Ra-02 for both of them.

That could be a good option. I will add it to my program. But same thing as before, I might need to contact my slaves (though the master) for other tasks than reset it.

if you require Lora two way communication have a look at the example code in File>Examples>Lora>LoraDuplex

Thanks for the suggestion. I will try this week-end when I have more time.

On the other hand, implementing the Watch Dog Timer is definitely what I will add to my program. But I realized the only thing that was different with my previous programs and make this one less stable was the time of the deep sleep. I was usually sending my ESP32 for 2h into deep sleep but this time, it was for only 15min. And my program was stopping after a few hours. Is there a minimum time for the deep sleep? Is there any logic to that?

Edit: After 10 days with deepsleep at 1h instead of 15min and no more crash

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.