TI论坛
直播中

李勇

7年用户 1247经验值
私信 关注
[问答]

请问用Overlapped Processing能在1ms发送20个字节吗?

我用的是两块cc2541的板子,想要用notify方式达到1ms从机发给主机16个字节。
从机下载的是Overlapped Processing中的simpleBLEPeripheral,主机在Overlapped Processing中的simpleBLECentral的基础上在函数simpleBLECentralProcessGATTMsg后面加了收到notify消息后串口打印。根据串口助手上的接收计数,我测试出来实际接收率在20%左右,求问是什么原因?
是串口的测试方式不对吗? 还是从机的循环时间没有1ms执行一次?(本来从机的循环时间是1ms发送20个字节)

回帖(2)

李子月

2019-11-1 08:38:35
1毫秒应该不能的,5毫秒估计能做到吧。
                                                                         
提供德州仪器蓝牙和射频cc2540,cc2541,cc26系列,cc13系列脱机烧录工具。



 
举报

庄当甜

2019-11-1 08:53:55
请您参考 TI WIKI页面内http://processors.wiki.ti.com/index.php/OverlappedProcessing 给出的代码
The simpleBLEPeripheral project has also been modified so that an event to send a dummy 20-byte notification is set every 1 ms.  This won't actually get called every 1 ms as the application task has the lowest priority and other tasks will have to process but it should happen often enough that we can exercise the overlapped processing. 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分