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.

CC2640R2F: CC26xx Default MAX Packets Per Connection Event,

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640

Hi,

I understand that the restrictions on how many packets are sent per connection is basically dependent on the master.

But, how much memory or buffer is allocated by default for a connection in CC2640?
Is it defined through MAX_NUM_PDU?

And what happens if the total number of packets are more than the allocated buffer?
the older packets are overwritten by new packets?

Best Regards
Paddu

  • Hello Paddu,

    The MAX_NUM_PDU specifies the maximum number of PDUs the BLE Stack will permit to be enqueued at any given time, and thus the max number of PDUs the Controller (Link Layer) will attempt to send in a connection event. If there is insufficient heap memory space to allocate a PDU, then you will receive a bleMemAllocError when attempting to allocate the PDU from the heap, i.e., when calling GATT_bm_alloc.

    As you mention, the master may only accept one PDU or otherwise specify the PDU limit on a per connection event basis using the MD signal bit.

    In any case, previously enqueued PDUs are not overwritten and remain in the Stack's TX queue until they are successfully sent or the connection is lost/terminated.

    Best wishes