2025-01-11 04:23 AM
I am using Seeed Studio LoRaWan Project for Wio E5 Mini(STM32WLE5JC6). By default the project is using internal RTC, but I want to use an external RTC DS3231 alarm for my application to send data because it would be run through the power line and when there is a power cut I don't want the alarm to be colliding with other such devices because all other similar devices will be sending data one after the other with no collision. How can I modify the project in lora_app.c such that the DS3231 SQW/INT pin wakes up the MCU from sleep, transmit and then go to sleep, and so on. I have issues using the SQW/INT interrupt pin to check for the alarm and then transmit data.
2025-01-11 05:42 AM
@user_01 wrote:I have issues using the SQW/INT interrupt pin to check for the alarm and then transmit data.
What issues, exactly?
@user_01 wrote:I want to use an external RTC DS3231 alarm for my application to send data because it would be run through the power line and when there is a power cut I don't want the alarm to be colliding with other such devices because all other similar devices will be sending data one after the other .
I don't follow the logic here - how does an external (rather than internal) RTC make any difference in that situation?