| forum.getinpulse.com http://www.getinpulse.com/hack/forum/ |
|
| power_down... Not really powered down? http://www.getinpulse.com/hack/forum/viewtopic.php?f=6&t=241 |
Page 1 of 1 |
| Author: | MonkeyEnFuego [ Tue Apr 19, 2011 2:32 pm ] |
| Post subject: | power_down... Not really powered down? |
I am confused. I have my watch app, and it displays for 10 seconds then goes to sleep. The idea is to preserve battery. I had a mental lapse and added code in the main_app_loop() to buzz on the hour and half-hour. Then I realized, wait a min. I will be asleep. I can't buzz on the hour and half-hour this way (unless I am displaying (unlikely). The weird thing, is that it appears to work. Now I am confused. When you call: Code: Select all pulse_update_power_down_timer(10000);and go asleep, does it just turn off the display and main_app_loop() is always being called? I figured it wouldn't be. If so, I will restructure the code so short circuit when "asleep". Any other pointers on preserving battery would be great. <confused> Matt |
|
| Author: | Ryan [ Tue Apr 19, 2011 5:56 pm ] |
| Post subject: | Re: power_down... Not really powered down? |
When pulse_update_power_down_timer() is called the screen is turned off and the processor is put into a low power sleep mode. During this time the main_app_loop() function should not be called, which suggests that your watch isn't in sleep mode. Only bluetooth, the alarm and the button can wake up the watch from sleep mode. Also for your app I'd recommend using the alarm and registering a callback for it to buzz every half hour. |
|
| Author: | MonkeyEnFuego [ Tue Apr 19, 2011 7:59 pm ] |
| Post subject: | Re: power_down... Not really powered down? |
You sure? This example buzzes every minute, even when asleep Code: Select all static struct pulse_time_tm current_time; |
|
| Author: | Ryan [ Wed Apr 20, 2011 12:32 am ] |
| Post subject: | Re: power_down... Not really powered down? |
While in sleep mode the watch wakes up once a minute to check the alarm. The vibrations occur during these alarm checks. |
|
| Author: | MonkeyEnFuego [ Wed Apr 20, 2011 8:51 am ] |
| Post subject: | Re: power_down... Not really powered down? |
Soooooo... The main_app_loop *IS* called, but only once per minute? |
|
| Author: | Ryan [ Wed Apr 20, 2011 1:50 pm ] |
| Post subject: | Re: power_down... Not really powered down? |
You are correct. In most cases this is not noticeable, but you found one where it was apparent. |
|
| Author: | MonkeyEnFuego [ Wed Apr 20, 2011 2:38 pm ] |
| Post subject: | Re: power_down... Not really powered down? |
Is there an easy way to see if you are "looping" while asleep to avoid any computation that is meant for display to help preserve battery. Of course I can manage my own boolean, but just curious if there is a baked in way to do it. Thanks, |
|
| Page 1 of 1 | All times are UTC - 8 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|