cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 BLE EXTENDED PACKET NOT EXCEED 249 BYTES

Aishwarya
Associate III

Enable Ble Extended data packet(Send 251 Bytes in one Time) support.

* Data of 249 bytes is send and receive successfully but data of 250 and 251 Bytes not send and receive.

2 REPLIES 2
Remi QUINTIN
ST Employee

Could you be more explicit on the way to try to extend it?

What function did you use? For which kind of packet do you want to extend the data payload?

ble max data Throughput , As-

.) connection complete

    /* Extended Packet Support */

    hci_le_set_data_length(connection_complete_event->Connection_Handle, 251, 0x0848);

.) change p2p notify characteristic size -

  aci_gatt_add_char(aPeerToPeerContext.PeerToPeerSvcHdle,

           UUID_TYPE_128, &uuid16,

 251,

           CHAR_PROP_NOTIFY,

           ATTR_PERMISSION_NONE,

           GATT_NOTIFY_ATTRIBUTE_WRITE, /* gattEvtMask */

           10, /* encryKeySize */

           1, /* isVariable: 1 */

           &(aPeerToPeerContext.P2PNotifyServerToClientCharHdle));

.) send data to ble host using function -

aci_gatt_update_char_value(aPeerToPeerContext.PeerToPeerSvcHdle,

               aPeerToPeerContext.P2PNotifyServerToClientCharHdle,

               0, /* charValOffset */

 251, /* charValueLen */

               (uint8_t *) pPayload);