How do I achieve 2 Mbit/s (or close to that) data rate on STM32WB55 ?
Hi,
I am running the BLE_DataThroughput example for the STM32WB55 with two boards as described in the documentation- one set as a client, one as a server. I have connected the client board to a desktop PC via UART, and I am monitoring the output with PuTTy. With this setup, the highest data throughput rate I get is ~ 98 600 bytes/s as reported at the UART by the board. This is with PHY = 2M. When I press the SW2 button on the baord it switches to PHY = 1M, and the data throughput rate falls to ~2 500 bytes/s. My question is whether this is normal and how can I get the advertised 2 Mbit/s datarates for this chip, or at least something closer? The current data rate corresponds to ~ 0.8 Mbit/s.
I referred to AN5289 Building wireless applications withSTM32WB Series microcontrollers, section 7.6.5- How to maximize data throughput where it is advised that I set the connection interval and connection event length at 50 ms, which I did correctly as far as I can tell. The effect this produced was to increase the PHY=1M data rate from ~ 2 500 bytes/s to ~ 30 000 bytes/s, however the PHY=2M data rate was reduced from ~ 98 600 bytes/s to ~ 85 000 bytes/s. What am I doing wrong? How can I get the advertised 2 Mbit/s (or at least close to that)? These data rates are for the two boards almost on top of each other so loss due to range is not a problem.
