Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: When UART enabled, BLE not working on CC2540.

$
0
0

Hi Michael,

The throughput (payload data rate) is not defined explicitly in BLE since is very aplication dependent and greatly affects the energy consumption, something critical for low energy comm., so you need to make your own calculations for your application. The data exchange in BLE happens in "events" where master & slave meet each other, so let's say if your events are programmed to be every 1 sec. you will be unable to send 2400 bps (since BLE stack permits only 4 packets per connection event and a max payload about 20 bytes per packet).

If you want to adjust the connection event periodicity to your needs check this in your code:

// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80

// Maximum connection interval (units of 1.25ms, 800=1000ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 800

Note that the minimun connection interval in BLE is 7.5 ms.

One useful link and code for understanding BLE throughput is this:

http://processors.wiki.ti.com/index.php/CC2540_Data_Throughput 

Keep up your good work.

Best regards.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>