- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi madhusudan,
Thanks a lot for the reply, i will check the same