cancel
Showing results for 
Search instead for 
Did you mean: 

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

Lep
Senior

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

2 REPLIES 2
Remy ISSALYS
ST Employee

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

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?