微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 每次链接手机IOS/ANDROID能够发送多少个GATT_Notification ?

每次链接手机IOS/ANDROID能够发送多少个GATT_Notification ?

时间:10-02 整理:3721RD 点击:

OverlappedProcessing:

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.  

simpleBLEPeripheral 项目修改为每1ms发送一个20字节的notification ,由于应用层的任务优先级最低,所以并不会真的是1ms发送一次,但是这就会发送notification 足够频繁来测试OverlappedProcessing补丁的对比效果。

 Without overlapped processing, the controller is unable to refill the Tx buffers during a connection event so the amount of packets that can be sent per connection event is limited to the amount of Tx buffers available: 4,

Therefore (assuming the maximum of packets queued at a connection event), all queued packets (12) plus the original packets in the tx buffers (4) will be able to be sent during a connection interval. 

在上述文章提到,没有打补丁的话,最多是4个,打了补丁后能增加为12+4= 16个,极大提升了数据吞吐量

上述测试时在2个2540之间进行的,那么一个CC2541链接到IOS或者android 4.3的手机  是否也能应用到这个功能呢?

假设20ms链接一次,每次发送4个20字节的notification  ,那么1秒钟传送的总字节为:4*20*50=1000字节

打了补丁后能增加3倍 也就是1秒钟传送4000字节了 (理论上,只要排队够快)

上一篇:BLE API定义
下一篇:CC2540 nv flash 初始化

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top