cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor II

Hi everyone,

   

 

   

I'm trying to send 26 bytes in one frame via BLE, I first tried using 20 bytes and it works good, but if i try to send 21 bytes, i don'r receive any data.

   

 

   

Do you know why is ths happening?

   

 

   

Regards

0 Likes
Reply
1 Solution
Anonymous
Not applicable

Hi,

   

You need to increase the MTU Size. It is by default 23 bytes. You have to increase it to a higher value in both Central and Peripheral.

   

Also, the central and peripherals need to negotiate the actual MTU Size after the connection is established.

   

(i) Set the MTU Size in the component settings of Client and Server to a greater value.

   

(ii) The client should initiate the negotiation by calling CyBle_GattcExchangeMtuReq.

   

(iii) This invokes CYBLE_EVT_GATTS_XCNHG_MTU_REQ event on server.

   

​(iv) The server should respond with the MTU Size using CyBle_GattsExchangeMtuRsp API

   

(v) This would result in CYBLE_EVT_GATTC_XCHNG_MTU_RSP event the client.

   

Refer to the BLE Component datasheet for details.

   

Regards,

   

- Madhu Sudhan

   

 

   

Please check the 

   

Regards,

   

-Madhu

View solution in original post

0 Likes
Reply
2 Replies
Anonymous
Not applicable

Hi,

   

You need to increase the MTU Size. It is by default 23 bytes. You have to increase it to a higher value in both Central and Peripheral.

   

Also, the central and peripherals need to negotiate the actual MTU Size after the connection is established.

   

(i) Set the MTU Size in the component settings of Client and Server to a greater value.

   

(ii) The client should initiate the negotiation by calling CyBle_GattcExchangeMtuReq.

   

(iii) This invokes CYBLE_EVT_GATTS_XCNHG_MTU_REQ event on server.

   

​(iv) The server should respond with the MTU Size using CyBle_GattsExchangeMtuRsp API

   

(v) This would result in CYBLE_EVT_GATTC_XCHNG_MTU_RSP event the client.

   

Refer to the BLE Component datasheet for details.

   

Regards,

   

- Madhu Sudhan

   

 

   

Please check the 

   

Regards,

   

-Madhu

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

Hi madhusudan,

   

Thanks a lot for the reply, i will check the same

0 Likes
Reply