-
Notifications
You must be signed in to change notification settings - Fork 19
BLE transfer speed on STM32WB5 and corrupted data #30
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
Comments
Hi @Kamik18 What is your config? Arduino IDE version? Core version? Library version? Selected options?... |
I guess it have a link to:
|
I am using PlatformIo as my Arduino IDE, and I have tried changing BLE_DEFAULT_ATT_MTU but without any influence on the data. I tried modifying one of your examples (CallbackLED.ino, examples/Peripheral/CallbackLED/CallbackLED.ino), and kept every variable to their default values, where I used “BLENotify” to write a data buffer in a while loop. I did not use delay or anything else doing that test. Versions: |
I've tried using GrumpyOldPizza's ArduinoCore-stm32wb implementation on the Arduino IDE (following the README guide) and achieved impressive bandwidth. I can transfer ~120 bytes per package - speed is yet to be determined, but it is definitely faster. |
Hi @KMeldgaard |
I've tested and read and write up to 256 and have met no issue with latest core 2.4.0, latest library version 1.2.2 and latest wireless copro binary. |
I am limited to 150-180 bytes/s on the transfer speed when I write data from the STM32WB55 to a RPI with read and notify.
I have tested different timings for when the device poll and the advertising interval. Furthermore, I have tested with different buffer sizes between 8 and 22, and the data is corrupted if try to send more data than 22 bytes.
Result from a 30 byte uint8_t buffer of zeros: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01.
Is this a config error? and can the speed be increased?
Best regards Kasper G. Mikkelsen
The text was updated successfully, but these errors were encountered: