Skip to main content
Aishwarya
Associate III
April 6, 2020
Question

STM32WB55 BLE EXTENDED PACKET NOT EXCEED 249 BYTES

  • April 6, 2020
  • 1 reply
  • 671 views

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.

1 reply

Remi QUINTIN
Technical Moderator
April 29, 2020

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

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