Skip to content

Supervisor

Igor Usenko edited this page May 28, 2022 · 5 revisions

The supervisor controls the sleep and wake behavior of the watch.

  1. minimizes power consumption by turning on sleep mode as soon as possible
  2. guarantees that the watch will not be in sleep mode and fully functional when it is needed

After the watch wakes up, the supervisor waits for some idle period. Idle period means no action from a user.
When the idle period passed then the supervisor asks the application manager about the next wake-up time.
Possible the application manager answers

  1. NW_NO_SLEEP - watch should work
  2. NW_DONT_CARE - supervisor can decide about the next wake-up
  3. value of the period in seconds

In the case of NW_DONT_CARE, the watch goes to sleep until the next hour's start. It guarantees that each hour Service timer will have a possibility to work.

In the case of the value returned, the supervisor takes the minimum between the value and period to the next hour's start.

See also Service timer.

Supervisor API

  • getNextWakeUpPeriod - return time period to next wake up
  • getTimeToSleep - returns time to turning sleep mode
  • getWakeUpReason - returns the reason of last wake up
Clone this wiki locally