Hello JE_Dialog, 非常感谢回复回来。 我经历了文件。 But even after disabling both Extended and deep sleep mode in da14580_config.h file as below : #undef cfg_ext_sleep. #undef CFG_DEEP_SLEEP
Thanks for your attention,I mean how to identify this pins which wake up the system,such as one pin to send data and another to perform adc.I use the method to achieve it accroding to the
I try to use the GPIO IRQs to wake up the system periodically and it work well on active mode and doesn't work on extended sleep mode.By the way,the interrupt is triggered by the pulse
How to change the sleep mode? Our usage scene is : Extended sleep mode when advertising, Active/Idle mode when connected, return to Extended sleep mode after disconnection and
re-advertising. I try to use the API 'app_force_active_mode() with app_restore_sleep_mode() ' or 'arch_disable_sleep() with arch_set_sleep_mode()' to change sleep mode when connected and
你好Asmaitha,你读过the apps note on how to configure sleep mode either synchronously (BLE Timer) or asynchronously (interrupt) ?
http://support.dialog-semiconductor.com/um-b-006-user-manual-sleep-mode-configuration
这是一个完整的应用笔记,是最佳的开始。
BR JE_DIALOG.
Hello JE_Dialog,
我想知道如何识别唤醒事件,例如两个短脉冲唤醒系统异步。谢谢你!
布鲁姆
嗨dateam,
我无法下载这个文件.Can你建议如何下载?
Thanks,
Vishnu.
Hello JE_Dialog,
非常感谢回复回来。
我经历了文件。
But even after disabling both Extended and deep sleep mode in da14580_config.h file as below :
#undef cfg_ext_sleep.
#undef CFG_DEEP_SLEEP
我们无法看到该设备始终唤醒,而且它也不会不断宣传。
Thanks,
asmaitha
Hello JE_Dialog,
我想知道如何识别唤醒事件,例如两个短脉冲唤醒系统异步。谢谢你!
布鲁姆
嗨Young_Dialog,
我不让你的问题,请澄清吗?You can use the wakeup controller and set it up using multiple pins, if that is what you mean.
谢谢mt_dialog.
嗨mt_dialog,
Thanks for your attention,I mean how to identify this pins which wake up the system,such as one pin to send data and another to perform adc.I use the method to achieve it accroding to the
wucpt_quadec.c。但是我发现函数'wkupct_register_callback()'只能注册一个回调函数。声当任何引脚有效时,它们会来到同一个回调,没有
寄存器指示哪个引脚是活动的。它是我的方法吗?是什么建议吗?
BR,
Young
嗨Young_Dialog,
是的那样,你可以宣布许多唤醒引脚,但你只有一个回调,如果你想识别你得到中断的引脚,你可以尝试在获得中断后读取引脚的状态,检查哪个引脚高或低。
谢谢mt_dialog.
嗨mt_dialog,
When the interrupts result from the short pulse such as 5us high pulse,it is difficult to identify it when read the status of the pin.
I also wonder how to retain the pin state when system enters the Extended Sleep mode,thank you!
BR,
Young
嗨Young_Dialog,
没有其他方式执行此操作,您可以读取您的引脚,或者您可以尝试为连接引脚设置GPIO IRQS,如果连接源与可用的IRQ匹配。你不必刚才做任何令人默认的事情,以便为580保留别针的状态,当它睡觉时,当你处于睡眠模式时,状态将保留状态,但是您将不得不保留销钉以来当580醒来时,Periph_Init()将运行,您的引脚将重新配置。
谢谢mt_dialog.
嗨mt_dialog,
I try to use the GPIO IRQs to wake up the system periodically and it work well on active mode and doesn't work on extended sleep mode.By the way,the interrupt is triggered by the pulse
从ADC芯片生成4ms的时期。唤醒系统的时间太短了吗?任何建议?
谢谢!
BR,
Young
嗨mt_dialog,
如我们所知,DA14580可以通过唤醒定时器和正交解码器在延长或深度睡眠模式下唤醒。我想知道如何醒来,只有使用GPIO IRQS?谢谢!
BR,
Young
嗨Young_Dialog,
我不认为4ms太短而无法唤醒系统并触发中断,您是否尝试在唤醒设置和GPIO IRQ上正确配置Debouncing参数?因为我尝试了4毫秒脉冲,我可以唤醒系统并触发IRQ。
关于醒来,您无法通过GPIO IRQS唤醒系统,只有唤醒定时器和正交可以唤醒它。
谢谢mt_dialog.
嗨mt_dialog,
是的,如果我唤醒系统并设置GPIO IRQS,4ms,唤醒系统并触发中断并触发中断。这就是我想要的!谢谢!
BR,
Young
嗨mt_dialog,
How to change the sleep mode? Our usage scene is : Extended sleep mode when advertising, Active/Idle mode when connected, return to Extended sleep mode after disconnection and
re-advertising. I try to use the API 'app_force_active_mode() with app_restore_sleep_mode() ' or 'arch_disable_sleep() with arch_set_sleep_mode()' to change sleep mode when connected and
断开连接,当连接时,该模式在连接到活动模式,但无法更改为扩展睡眠模式或重新启动后
disconnection. Any suggestion?Thank you!
BR,
Young
嗨Young_Dialog,
您可以在睡眠模式之间切换时,可以使用以下功能:
ARCH_DISABLE_SLEEP():设备将处于活动状态
ARCH_SET_EXTEDDEND_SLEEP():设备将延长睡眠模式
您可以通过调用(user_app_connection回调的user_app_connection回调和Arch_set_extending_sleep中的user_app_disconnect中的Arch_disable_sleep)与中央设备连接和断开时,调用上述功能。与具有正确参数的ARCH_SET_SLEEP_MODE()相同。要在断开连接后再次启动广告,您必须在User_App_disconnect中调用Arch_set_extending_sleep()和user_app_adv_start(),以便在Exted Sleep中设置设备并再次启动广告。
另外请不要在同一线程下发布不同的问题,您可以始终创建一个新的线程。
谢谢mt_dialog.
嗨mt_dialog,
对此感到抱歉,但我无法获得创建新线程的奇怪!怎么了?我还有足够的许可吗?
BR,
Young
嗨mt_dialog,
我现在找到了创建新线程的方式,谢谢!
BR,
Young