< div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >亲爱的对话团队,< / p > < p >我引用ble_app_sleepmode项目实现按钮唤醒在ble_app_barebone项目。我还使用app_timer_set()能够周期性地唤醒信标。
>
>
>
>开始睡眠的函数如下所示。 void user_app_adv_undirect_complete(uint8_t status)
{
…
app_timer_set(APP_BEACON_TIMER, TASK_APP, delay);
arch_set_extended_sleep();
}
现在,我可以通过BLE定时器正确地定时唤醒。但当我按下按钮,系统就会重置。
是否与OTP使用以及深度睡眠模式有关?因为我要在Flash上销毁代码。
Best regards,
Simon
P.S. app_button_press_cb( ) and app_wakeup_cb( ) are changed slightly so that I don't think they will affect the result.