雷竞技电竞平台对话半导体客户支持-延长睡眠间隔 https://support.dialog-semiconductor.com/resource-keywords/extended-sleep-interval 如何让设备长时间处于延长睡眠模式? https://support.dialog-semiconductor.com/how-get-device-stay-extended-sleep-mode-longer-time < 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 >嗨对话框中,< br / >我修改ble_barebone应用程序通过改变app_default_sleep_mode=ARCH_EXT_SLEEP_ON在扩展睡眠模式下工作。配置了一个led指示的gpio。
I have kept an LED to indicate whether the device is in active mode or sleep mode edit the arch_main.c如下:

sleep_mode = rwip_power_down();
if ((sleep_mode == mode_ext_sleep) || (sleep_mode == mode_deep_sleep)) {
//power down the radio and whatever is allowed
GPIO_SetInactive(GPIO_CNXN_LED_PORT,
arch_goto_sleep(sleep_mode);

//等待中断恢复操作
WFI();
//恢复操作
arch_resume_from_sleep();如何增加睡眠时间?< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / extended-sleep-interval”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >延长睡眠时间间隔< / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da14583”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14583 < / > < / div > < / div > < / div > 星期三,2016年7月6日13:03:51 +0000 dhirajp15 4099年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/how-get-device-stay-extended-sleep-mode-longer-time#comments