Skip to main content
Lep
Senior
Oct 21, 2022 8:55 AM UTC
Question

STM32WB55RGV6 What is the maximum payload per notification (BLE server)? How do I need to modify the program?

I want 120bytes per notification,

I want 120bytes per notification, but I can only reach 20bytes with stm32cubemonitor-rf monitoring.

0693W00000UoVm1QAF.png​

The following picture is what I mainly modified in the program:

Am I going wrong somewhere?

0693W00000UoVmGQAV.png0693W00000UoVmVQAV.png 

​0693W00000UoVmpQAF.png

This topic has been closed for replies.

2 replies

Remy ISSALYS
ST Technical Moderator
Oct 28, 2022 3:18 PM UTC

Hello,

The maximum payload per notification is 251 bytes without fragmentation and you can reach 512 bytes with fragmentation mechanism.

After the connection you should use aci_gatt_exchange_config command to perform an ATT MTU exchange procedure in order to be able to send notification with size near to ATT MTU value set in app_conf.h

Best Regards

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

Thanks for your help.I can transmit notifications of 120 bytes. Now I have a new problem, when I try to notify of 240 bytes, I can see the data with nrf connect on the mobile phone, but not with stm32cubemonitor-rf. In the program of BLE_TransparentModeVCP, I only changed ATT_MTU_MAX (245), do I need to do anything else?