cancel
Showing results for 
Search instead for 
Did you mean: 

Custom external RTC DS3231 implementation in LoRaWan Wio E5 project

user_01
Associate II

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. 

1 REPLY 1

@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?