Announcements
IMPORTANT: Cypress Developer Community currently doesn’t allow sign-in to prepare for the upcoming transition. To learn more, check out our announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6

RuHe_1008296
New Contributor II

Hi

I am working on a high throughput application. I am using the PSoC6, and have been making some test against different receivers. To a BLE 4.2 and 5 receiver everything seems to work as expected, but on a 4.0/4.1 receiver I generate a bit more data than the link can handle.

I would like to detect the underling MTU of the link layer, so I can adjust the data rates accordingly. How can I do this?? To clarify, I have negotiated a higher GATT MTU of 512, but this is still split into some link layer packets. The MTU of the link layer depends on the protocol, and the receiver, and should be negotiated when I connect to the device. 

Hope that anyone can help

0 Likes
1 Solution
RuHe_1008296
New Contributor II

I found the answer to the question when looking at something completely unrelated

Use the CY_BLE_EVT_DATA_LENGTH_CHANGE evt in the BLE handler to get the current link layer MTU.

View solution in original post

0 Likes
1 Reply
RuHe_1008296
New Contributor II

I found the answer to the question when looking at something completely unrelated

Use the CY_BLE_EVT_DATA_LENGTH_CHANGE evt in the BLE handler to get the current link layer MTU.

View solution in original post

0 Likes
Top labels