2024-09-26 07:44 AM
I have setup a client and server with two STM32WB1MMCs and have the server periodically send data based on a frequency stated by the client. My payloads are 10 bytes long and are incrementing values for me to keep track of any losses. I am finding that I have a limited message per second throughput of around 200-210. I cannot achieve more than this no matter how much I optimise my code and play around with the intervals and PHY settings, as stated in the an5289 documentation.
My code uses notifications to send from server to client. It also uses a timer set to trigger a flag every 10,000th a second to allow me to keep track of timings for ensuring my payloads are sent at the specified frequency by the client.
I feel 200-210 10 byte payloads sent a second is very low throughput for BLE, should I expect higher and also, if so, what is the best approach to achieving this?
Solved! Go to Solution.
2024-09-26 08:03 AM
I have solved this issue.
Foolishly, I forgot to also set the minimum connection interval on the client side to match the server. Now I see much higher throughputs of around 1000+ 10 byte messages per second.
2024-09-26 08:03 AM
I have solved this issue.
Foolishly, I forgot to also set the minimum connection interval on the client side to match the server. Now I see much higher throughputs of around 1000+ 10 byte messages per second.