Skip to main content
Padmashree_NS
Associate
March 17, 2020
Question

How to enable the Data extension feature in Bluenrg2?

  • March 17, 2020
  • 1 reply
  • 613 views

While sending more bytes of data from app to the BLE module after connection I am getting the following error-

Error 13 (0xd): GATT INVALID ATTR LEN

How do I increase the length so that I can send more bytes of data?

    This topic has been closed for replies.

    1 reply

    MBRAI.9
    Associate
    May 12, 2020

    Hello, I'm trying to send long packets (> 20 bytes), so I added a custom service with characteristic supporting notification and indication with a size = 40 bytes.

    After connection established, I send a LL_LENGTH negotiation to update the TxOctets to 40 bytes (using hci_le_set_data_length api)

    The remote master configured the characteristic to notify.

    I tried then to send a notification of 40 bytes ... only 20 bytes were sent.

    I also tested to use hci_le_write_suggested_default_data_length api before the connection establishment, the negotiation was done successfully, but unable to send packets > 20 bytes

    what is missing to be able to send packets > 20 bytes ?