What is the limit of data transmission? Which one is the maximum payload size?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

It is a little bit confusing that, in the CySmart_Dongle example for BLE KIT, inside CySmt_TransportLayer.h,

   

/* Both UART RX & TX buffers are set to maximum 5K with assumption that L2CAP MTU will be with-in this limit */
#define                      (UART_UART_TX_BUFFER_SIZE)

   

However, UART_UART_TX_BUFFER_SIZE is defined as 550u, and not hexadecimal, which is different with 5K.

   

 

   

So, how big on earth is the maximum of the MAX_PAYLOAD_SIZE?

   

 

   

Thank you!

0 Likes
1 Reply
Anonymous
Not applicable

that's a typo in the comment.

   

 

   

it's not 5k. it is 550u.

   

 

   

We set the L2CAp MTU as 512 in the BLE component and including the headers it would be more than 512. 

   

 

   

So we set a value 550. 

   

 

   

Regards,

   

Vikas.

0 Likes