Home › Forums › The libraries hosted on the site › EByte LoRa e220 UART devices LLCC68 › RTC_DATA_ATTR Failure
Tagged: E220 Deep Sleep, RTC_DATA_ATTR
- This topic has 4 replies, 2 voices, and was last updated 11 months, 2 weeks ago by
William.
-
AuthorPosts
-
-
9 May 2024 at 18:41 #30688
Gist of E220_Ticker_Test_Receiver.ino
RTC_DATA_ATTR is not saving variables when going to deep sleep.
Trying to create elapsed timer using Ticker library; minuteTicker.attach keeps re-initalizing intterrupt.
Another RTC variable does not work; bootcount is always 1.
I did my best to follow article:
Ebyte LoRa E220 device for Arduino, esp32 or esp8266: WOR microcontroller and esp32 dev v1 shield .
William
-
9 May 2024 at 18:50 #30705
Hi Willian,
the code is quite complex, and I need time to check It in depth, but what is the scope of the Ticker library?
Bye Renzo -
9 May 2024 at 19:37 #30709
Hi Renzo,
Thank you for having a look at the code. Yes, the code is complex.
Took another look at my Gist file; found I missed making these corrections: lines: 150 redefination Lora E220, 299, 301, 303 e32ttl should be e220ttl. Testing now…Ticker library is used to get a one minute timer to take from the start code unit the INA226 alerts for a low battery.
Could be an interrupt conflick; there are (if memory serves me correctly, three interrupts).
William
-
12 May 2024 at 21:48 #30718
Update 5/12/2024:
Github repository has been updated. Receiver is now able to go to deep sleep; however have not been able to wake up deep sleeping receiver, unable to further test RTC_DATA_ATTR_failure.
This project code does not use Ticker.
William
-
This reply was modified 12 months ago by
William.
-
This reply was modified 12 months ago by
-
30 May 2024 at 05:21 #30765
5/29/2024 Update: Have been working on the “complex code.” Now have an issue with deep Sleep interrupt; where starting with a press of the reset button on the Receiver response is corect in the Serial Monitor. First url request on Receiver is correct. Interrupt works correctly. “After interrupt:” does print to the Serial Monitor after the first url request. Going on with more url requests; interrupt does not work correctly. Have spent much time trying to get this code to work correctly.
Putting together a short 2-3 minute video of the Arduino IDE, Serial Monitor of this code showing url request being made and the Receiver code responses. Will upload video in the morning.
William
-
This reply was modified 11 months, 2 weeks ago by
William.
-
This reply was modified 11 months, 2 weeks ago by
-
-
AuthorPosts
- You must be logged in to reply to this topic.