Skip to main content
Mar 14, 2023 9:24 AM UTC
Question

Testing the BLE_DataThroughput application

I'm trying to check the dependence of BLE data rate with respect to distance from the board. I runned the BLE_DataThroughput example but I'm having a hard time to interpret the info on the gatt_server terminal (I'm using a nucleo board with a smartphone).

1) here I sent the word hello

** data error ** N= 4 
DataThroughput = 5 bytes/s lost = 116762973 

what does lost = 116762973 mean?

2) I expected to see a roughly constant value of bytes/s (and higher of course) but it seems that the software just counts out the amount of characters that I send from the smartphone.

DataThroughput = 22 bytes/s lost = 0 
DataThroughput = 70 bytes/s lost = 0 

in this case https://community.st.com/s/question/0D53W00000ElwrQSAR/stm32wb-data-throughput-issues someone got higher throughputs.

How to understand this behavior? Thanks in advance.

This topic has been closed for replies.

3 replies

Remy ISSALYS
ST Technical Moderator
Mar 31, 2023 3:12 PM UTC

Hello,

In BLE_DataThroughput application when it's configured as GATT server, the application checks a sequence number into the payload that received in the write packet and if this number doesn't follow the previous, the number of lost packets is incremented. You can use the example without any modification and use ST BLE Toolbox application on the smartphone and check the throughput in the log.

Best Regards

Apr 1, 2023 11:50 PM UTC
Thanks for explaining. What about the 2) question?
Remy ISSALYS
ST Technical Moderator
Apr 7, 2023 6:11 PM UTC

Hello,

The data throughput value depends on data send by the smartphone, if the smartphone sends only few data, the throughput will be very low. Try with ST BLE Toolbox application in upload window and you will see higher throughput.

Best Regards