用户工具

站点工具


cc2640r2f:ble_throughput

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
cc2640r2f:ble_throughput [2017/08/31 21:42]
wuyl
cc2640r2f:ble_throughput [2021/06/22 23:14] (当前版本)
行 3: 行 3:
  
 ## 介绍 ## ## 介绍 ##
-本章分别测试了 TI CC2640R2F LaunchPad 和 <a href="..\..\..\leconiot\cc13x0_cc26x0_evaluation_board\cc13x0_cc26x0_evaluation_board.html"> LECONIOT CC2640R2F Evaluation Board</a>开发板吞吐量,并提供了两个例程供大家参考测试,分别是 `ble5_throughput_peripheral` 和 `ble5_throughput_central` 。文末附对应测试程序下载链接。+本章分别测试了 TI CC2640R2F LaunchPad 和 <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:leconiot:cc13x0_cc26x0_evaluation_board:cc13x0_cc26x0_evaluation_board"> LECONIOT CC2640R2F Evaluation Board</a>开发板吞吐量,并提供了两个例程供大家参考测试,分别是 `ble5_throughput_peripheral` 和 `ble5_throughput_central` 。文末附对应测试程序下载链接。
  
 该工程中进行了一些修改以方便进行吞吐量测试: 该工程中进行了一些修改以方便进行吞吐量测试:
行 13: 行 13:
  
 ## 硬件环境 ## ## 硬件环境 ##
-使用 USB 连接 <a href="..\..\..\leconiot\cc13x0_cc26x0_evaluation_board\cc13x0_cc26x0_evaluation_board.html">CC2640R2F Evaluation Board</a> ,确保跳线帽正确连接,如下图所示:+使用 USB 连接 <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:leconiot:cc13x0_cc26x0_evaluation_board:cc13x0_cc26x0_evaluation_board">CC2640R2F Evaluation Board</a> ,确保跳线帽正确连接,如下图所示:
  
 ![](http://www.leconiot.com/md_res/cc2640r2f/ble_stack_app/app_examples/ble_throughput/image/picture.jpg) ![](http://www.leconiot.com/md_res/cc2640r2f/ble_stack_app/app_examples/ble_throughput/image/picture.jpg)
行 22: 行 22:
  
 ### ATT_MTU大小 ### ### ATT_MTU大小 ###
-有关最大传输单元(ATT_MTU)的说明,请参见 <a href="..\..\..\ble_stack_app\stack\le_data_length_extension\le_data_length_extension.html">LE Data Length Extension</a> 和  <a href="..\..\..\ble_stack_app\stack\l2cap\l2cap.html"> Logical Link Control and Adaptation Layer Protocol (L2CAP)</a>+有关最大传输单元(ATT_MTU)的说明,请参见 <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:ble_stack_app:stack:le_data_length_extension:le_data_length_extension">LE Data Length Extension</a> 和  <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:ble_stack_app:stack:l2cap:l2cap"> Logical Link Control and Adaptation Layer Protocol (L2CAP)</a>
  
 这里定义 6 个Tx缓冲区,每个缓冲区 251 字节。用户应用程序应根据自身堆栈情况进行分配。如果没有足够的堆栈,可以减少 `MAX_NUM_PDU` ,但这样可能导致吞吐量的损失。实际使用中的最坏情况是 `MAX_NUM_PDU` 和 `MAX_PDU_SIZE` 的乘积,即缺乏堆栈时能减少的最大值。设计人员应该根据设备的可用内存来平衡这些参数。 这里定义 6 个Tx缓冲区,每个缓冲区 251 字节。用户应用程序应根据自身堆栈情况进行分配。如果没有足够的堆栈,可以减少 `MAX_NUM_PDU` ,但这样可能导致吞吐量的损失。实际使用中的最坏情况是 `MAX_NUM_PDU` 和 `MAX_PDU_SIZE` 的乘积,即缺乏堆栈时能减少的最大值。设计人员应该根据设备的可用内存来平衡这些参数。
行 38: 行 38:
  
 ### LE 数据长度拓展 ### ### LE 数据长度拓展 ###
-在蓝牙 4.2 规范中允许控制器发送最多 251 个字节的单个数据包,这与以前的 27 个字节相比大大增加了吞吐量,此功能称为数据长度拓展。有关这方面详细介绍请参考 <a href="..\..\..\ble_stack_app\stack\le_data_length_extension\le_data_length_extension.html"> LE Data Length Extension</a> 以及 <a href="..\..\..\ble_stack_app\app_examples\exchange_mtu\exchange_mtu.html"> BLE 一次能传多少数据( ATT_MTU 设置/LE Data 扩展)</a>+在蓝牙 4.2 规范中允许控制器发送最多 251 个字节的单个数据包,这与以前的 27 个字节相比大大增加了吞吐量,此功能称为数据长度拓展。有关这方面详细介绍请参考 <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:ble_stack_app:stack:le_data_length_extension:le_data_length_extension"> LE Data Length Extension</a> 以及 <a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:ble_stack_app:app_examples:exchange_mtu:exchange_mtu"> BLE 一次能传多少数据( ATT_MTU 设置/LE Data 扩展)</a>
 下面的 PDU 更新过程的代码片段可以在 `throughput_peripheral.c` 文件中找到 下面的 PDU 更新过程的代码片段可以在 `throughput_peripheral.c` 文件中找到
 ````C ````C
行 133: 行 133:
 |251 Bytes|780.800 (kb/s)|1366.400 (kb/s)|175.680 (kb/s)|58.560 (kb/s)| |251 Bytes|780.800 (kb/s)|1366.400 (kb/s)|175.680 (kb/s)|58.560 (kb/s)|
  
-**<a href="..\..\..\leconiot\cc13x0_cc26x0_evaluation_board\cc13x0_cc26x0_evaluation_board.html"> CC2640R2F Evaluation Board</a>**+**<a href="http://docs.leconiot.com/doku.php?id=cc2640r2f:leconiot:cc13x0_cc26x0_evaluation_board:cc13x0_cc26x0_evaluation_board"> CC2640R2F Evaluation Board</a>**
  
 |||||| ||||||
行 149: 行 149:
 ## 测试用例下载 ## ## 测试用例下载 ##
  
-[](ble_throughput.zip)+[](http://www.leconiot.com/md_res/cc2640r2f/ble_stack_app/app_examples/ble_throughput/files/ble_throughput.zip)
  
-<p>下载 <a href="ble_throughput.zip" title="Title">+<p>下载 <a href="http://www.leconiot.com/md_res/cc2640r2f/ble_stack_app/app_examples/ble_throughput/files/ble_throughput.zip" title="Title">
 BLE Throughput</a> 测试例程.</p> BLE Throughput</a> 测试例程.</p>
  
行 165: 行 165:
 </p> </p>
 </div> </div>
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
  
 </markdown> </markdown>
  
cc2640r2f/ble_throughput.1504186966.txt.gz · 最后更改: 2021/06/22 23:14 (外部编辑)