Detect protocol 4.1 / 4.2 / 5 (link layer MTU)

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

cross mob
RuHe_1008296
Level 3
Level 3
5 replies posted 5 questions asked First reply posted

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
Level 3
Level 3
5 replies posted 5 questions asked First reply posted

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
Level 3
Level 3
5 replies posted 5 questions asked First reply posted

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.

0 Likes