Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to improve throughput #1136

Open
4 tasks done
TreeOfLearning opened this issue Nov 16, 2023 · 1 comment
Open
4 tasks done

How to improve throughput #1136

TreeOfLearning opened this issue Nov 16, 2023 · 1 comment
Labels

Comments

@TreeOfLearning
Copy link

Prerequisites

  • I checked the documentation and FAQ without finding a solution
  • I checked to make sure that this issue has not already been filed
  • I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
  • I'm running the latest version

Question

Hello,

We are currently seeing a throughput of around 3KB/s for receiving data from a monitored characteristic. I'm trying to figure out if there's anything I can do to speed this up. The suggestions I can find on the web are:

  1. Enable DLE (data length extension)
  2. Use the smallest possible connection interval
  3. Use the largest possible MTU
  4. Use the LE 2M PHY mode

I only seem to be able to control the MTU with react-native-ble-plx.

Are any of these other options supported (perhaps automatically enabled?) by the library? Are there any other suggestions on how to improve the throughput?

Thanks

@ethansisk
Copy link

ethansisk commented Nov 22, 2023

https://developer.apple.com/library/archive/qa/qa1931/_index.html Apple has some pretty specific requirements for connection intervals/latency on connections made to their devices. I don't believe that anything from the Core Bluetooth library allows for manually altering many connection parameters, not sure about natively on Android. If you are in control of the code running on the peripheral that the phone is trying to connect to, you would be able to make tweaks to increase the throughput that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants