This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC254x sending larger MTU data through one L2CAP request

Hello,

I'm trying to write to a long characteristic  using PrepareWrite requests but my data is over 500 bytes which means nearly 30 PrepareWrite and that takes too much time. 

I tried to send several packets via HCI_SendDataPkt and using continuation packets boundary, the controller received everything and issued a PrepareWrite Response that I can see via a packets sniffer but in my HostTest application I can't see this response.

If I issue a regular ATT_PrepareWriteReq with a data size of 18 using the regular TI function, I receive the response.

Is there a way of writing/reading to long characteristics within one command ?

How can I receive responses from controller when issuing HCI data packets commands ?

Thanks a lot.

  • Hi marmottus,

    To write a long attribute, you need to use ATT_PrepareWriteReq by the spec. Also, please also note that there are some constraints in CC254x stack, such as NPI packet length and # of prepare write requests for an attribute. The maximum packet length of the NPI which is the interface between HostTestApp and the dongle is 255 and the # of prepare write requests is 5.

    - Cetri