通过UART中断唤醒

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
2个帖子/ 0新
最后一篇
Wisilica.
离线
最后一次露面:10个月1周前
加入:2015-03-17 08:16
通过UART中断唤醒

你好,
以下是我希望在DA 14580芯片组中实现的功能:
1.默认情况下,设备处于扩展休眠模式
2.在接收UART RX数据时,设备必须唤醒并输入广告模式,并通过UART发送收到的数据。
3.广告后,设备再次进入睡眠模式。

请建议实施同样的步骤。

谢谢
Wisilica.

设备:
PM_DIALOG.
离线
最后一次露面:1天11小时前
职员
加入:2018-02-08 11:03
嗨Wisilica,

嗨Wisilica,

通过配置WKUPCT_ENABLE_IRQ()函数并在RX行上发送字符,可以通过UART唤醒DA14580通过UART唤醒。Although, this approach to design isn’t valid enough, because the DA14580 isn’t able to receive any character, since when the character arrives the device will still be in sleep mode, so the character that would wake up the device will be lost. Also, the XTAL16 won’t be powered up and the device won’t have a valid clock in order to receive the data through UART. The waking up of the device and the powering up of the XTAL doesn’t occur immediately. A valid implementation would be if you have additional connection in order to send a signal to indicate that the device would be ready to receive data. So you can wake up your device through UART and when it is ready to receive data it would signal that to the external device. Something similar to the handshaking of RTS/CTS signal of the UART. One other idea for this kind of implementation, but more tricky than previous would be to use single connection and do the handshaking using characters. Be aware that in a single connection the protocol would require operating the UART as Rx and Tx in different time slots.

谢谢,PM_DIALOG.