我在使用CC2541进行蓝牙通信相关开发,蓝牙每个一段时间会唤醒MCU进行一次connection event,我想了解一下每次interval唤醒有没有什么标志或者回调函数,这样我能够在每次interval的同时处理一些事件,不额外增加唤醒次数。
谢谢您的回复
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我在使用CC2541进行蓝牙通信相关开发,蓝牙每个一段时间会唤醒MCU进行一次connection event,我想了解一下每次interval唤醒有没有什么标志或者回调函数,这样我能够在每次interval的同时处理一些事件,不额外增加唤醒次数。
谢谢您的回复
connection interval是蓝牙底层的一个控制,本身CC2541是使用OSAL这样一个轮询的机制来控制上层APP和底层消息之间的处理的。有需要报到APP层的消息,协议栈会报上来,没有的话,并没有接口可以直接操作到connection event。本身CC2541有三个power mode分别为PM1 PM2 PM3,这三个状态和APP层的操控更相关一些
谢谢你的回答,我的意思是我不需要操作到connection event,而是我知道connection event报上来了,唤醒MCU了。在这时加入我对事件的处理从而降低MCU的唤醒次数。请问是否在connection event到来时候有任何标志或者回调吗?
以central role举例,simpleBLECentralEventCB