Improving battery life and waking up for continuous tests