Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

High reliability mode / guaranteed wake mode for Witty Pi 4

32 Posts
4 Users
1 Likes
1,493 Views
(@eagleshot)
Posts: 32
Eminent Member
Topic starter
 

Hey @admin 🙂

I just wanted to pick the topic of a "high reliability mode" back up, as I wasn't able to implement  a really elegant solution on how to wake up if the system is not woken up by the RTC so far. My use case are systems, where the schedule is updated remotely, so an invalid schedule file could potentially "brick" the system (or other issues such as the capacitor problem, where a start was triggered, but not executed due to power issues).

My newest idea would be a counter that gets increased with every time the watchdog wakes up the MCU. If the raspberry pi starts up (e.g. by the RTC), the counter gets reset. If it doesn't start, the raspberry pi gets started by the MCU after the counter gets big enough (e.g. after 24 hours). This way, this functionality could be added with very low additional complexity and little additional memory usage. You can see an example implementation here: https://github.com/Eagleshot/Witty-Pi-4/commit/abd4251dcd72fd82910d1910d0f52735935744e0

Could this be a feature, that could be implemented in the official firmware or can you give me feedback, if this makes any sense to you? 😀 

Another question I have is that while trying to compile the firmware to test this modification, I couldn't find the TinyWireS library in the Arduino library manager. Do I have to install it manually from this link ( https://github.com/nadavmatalon/TinyWireS) or is there another location to install it?

Thank you very much for your help!😀

Eagleshot

 

 

 
Posted : 28/05/2024 9:36 pm
(@mhornsby)
Posts: 5
Active Member
 

@admin Thank you and if Bit 7 is zero it would be once every 10 hours approx ?

 
Posted : 16/07/2024 10:40 am
(@admin)
Posts: 479
Member Admin
 

@mhornsby yes, exactly.

 
Posted : 16/07/2024 10:44 am
Page 3 / 3
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.