Skip to main content
Aishwarya
Associate III
Apr 6, 2020 5:58 AM UTC
Question

STM32WB55 BLE EXTENDED PACKET NOT EXCEED 249 BYTES

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.

This topic has been closed for replies.

2 replies

Remi QUINTIN
ST Technical Moderator
Apr 29, 2020 3:58 PM UTC

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?

Aishwarya
AishwaryaAuthor
Associate III
May 9, 2020 12:25 PM UTC

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);