This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2745R10-Q1: Differences between GAP_UpdateLinkParamReq and L2CAP_ConnParamUpdateReq

Part Number: CC2745R10-Q1

Tool/software:

Hi,

What is the difference between GAP_UpdateLinkParamReq and L2CAP_ConnParamUpdateReq?
The contents themselves both set the Connection Parameter, but what is the difference?
I would also like to know which API is appropriate to use.

Best Regards,

Katsuya

  • Hello,

    GAP_UpdateLinkParamReq will send the connection parameters via changing a GATT characteristic on the GAP mandatory service. However, not all devices support this method, so if it fails the devices will send L2CAP_ConnParamUpdateReq that updates the connection parameters via L2CAP. 

    In our BLE stack, if GAP_UpdateLinkParamReq fails (the other device does not support it or allow it), then the stack will automatically send an L2CAP_ConnParamUpdateReq. I recommend sticking to the GAP_UpdateLinkParamReq since it's fallback will call L2CAP_ConnParamUpdateReq anyway if it fails.

    Best,

    Nima Behmanesh