我有一个偶尔使用Movesense传感器的用例(比如,一天一小时),我想最大限度地延长电池寿命。有没有办法让它进入睡眠状态,然后根据用户的操作唤醒它?例如,关闭蓝牙和除加速计以外的所有传感器,然后在加速计检测到它正在移动或被轻敲时唤醒它们。
我看到Movesense传感器可以处于“断电”或“全断电”状态。在这些状态下,是否完全关闭,或者是否可以继续监测加速计?
是的,这是可能的。您可以检查hr\u wakeup\u示例:
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/samples/hr_wakeup_app/?at=master
当您将手指放在金属销(底部)上时,设备正在苏醒。
您还可以更改此行:
asyncPut(WB_RES::LOCAL::COMPONENT_MAX3000X_WAKEUP::ID, AsyncRequestOptions(NULL, 0, true), (uint8_t) 1);
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/samples/hr_wakeup_app/HrWakeupApp.cpp?at=master&fileviewer=file-view-default#HrWakeupApp.cpp-132
要使用此API,请执行以下操作:
https://bitbucket.org/suunto/movesense-device-lib/src/887714f3b42496988cce6055b3ccf8b8c99a6846/MovesenseCoreLib/resources/movesense-api/component/lsm6ds3.yaml?at=master&fileviewer=file-view-default#lsm6ds3.yaml-119