Skip to main content
Lep
Senior
Oct 25, 2022 4:02 PM UTC
Question

STM32WB55RGV6 ble The larger the number of bytes per notification, the slower the transmission interval?

15bytes per notificaiton, interval about 7.5ms

120bytes per notification, interval about 30ms

I want to change 30ms to 10ms. How can I do?

This topic has been closed for replies.

2 replies

Remy ISSALYS
ST Technical Moderator
Oct 28, 2022 5:36 PM UTC

Hello,

You can change the connection interval using aci_l2cap_connection_parameter_update_req command, you can look BLE_p2pServer example which allow to change connection interval by pressing SW2.

Best Regards

Lep
LepAuthor
Senior
Oct 29, 2022 2:10 AM UTC

Thank you. I changed the interval only when I added the command hci_le_set_data_length().

Why is this, I see that the ble server does not use this api.

I use stm32cubeRF to receive notifications, and now I can accept about 80 notifications per second, the interval is about 12ms, but it still can't reach 10ms. Of course, the way I send the notification is that the external falling edge triggers the interrupt. Is it because of the synchronization problem that I can't reach 10ms?

0693W00000VOPDWQA5.pngBLE_SVC_L2CAP_Conn_Update() as picture:

0693W00000VOPDbQAP.png0693W00000VOPDlQAP.png