微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 关于发送数据

关于发送数据

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

 GATT_WriteLongCharValue()只能是central使用吗?,SimpleBLEPeripheral可以使用吗?如果想使用SimpleBLEPeripheral发送大量的数据使用什么函数

你好,

请问你使用的是CC2541还是CC2640呢?

如果你追求数据传输率,建议你使用CC2640,CC2640支持蓝牙4,.2 stack,可以支持大数据传输。

This example page will demonstrate the maximum BLE throughput that can be achieved with a Texas Instruments CC2640 where the following assumptions are made:

  • Both sides of the connection are CC2640 devices. Other stacks in master devices such as iOS and Android will limit the maximum packets per connection interval, thus limiting the throughput. See this blog post on how to maximize throughput with Android & iOS devices.
  • Ideal RF conditions. Missed events / CRC errors due to RF interference will limit the throughput.
  • Both sides of the connections support the Data Length Extension feature of the spec.
  • Neither master nor slave device contains processing that will starve the controller, thus limiting throughput. That is, application-specific processing or other custom constraints may further decrease throughput.

The throughput being measured is actual usable payload GATT throughput. Any LL / L2CAP headers are not considered part of the throughput. The GATT architecture used is such that the GATT server is sending GATT notifications to the GATT client.

This example is based on the simple_peripheral and simple_central projects from the BLE-Stack v2.2.0 installer.

These projects are slightly modified to:

  • Use max ATT_MTU values
  • Use max data payload of LE controller (Data length extension)
  • Queue and send data (notifications) over BLE

Using the parameters described above, we are able to achieve a throughput of around 38.6kB/s without data length extension

Throughput 27B Controller Payload

Using data length extension and the maximum controller data payload we see a throughput increase to 100kB/s.

Throughput 251B Controller Payload

详细的参考代码见附件所示:

https://github.com/ti-simplelink/ble_examples/blob/master/docs/throughput_example.md

你好,谢谢您的提议,我现在是使用的cc2540,我希望能知道2540的处理方式

自己封装一个notify的函数,使用一个定时事件去调用这个函数,定时时间要大于连接间隔,这个函数中包含4个notify。

看明白了吗,一个连接间隔发送4个notify包,共80字节。

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

网站地图

Top