to update connection parameter for Master/Slave Relationship

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

cross mob
hachc_2137126
Level 5
Level 5
10 likes given 5 likes given First like received

Hi,

  Referring to post Connection Interval and Connection Slave Latency What if we need the 20737 as master role to change the parameter to slaves? Any other API?

lel2cap_sendConnParamUpdateReq() can be used anytime when there is a connection (so outside connection up callback is OK too) with a peer device. This however is only a request from the slave to the master to change the connection parameters (only the master can change these).

  Another question is about the call back function 'lel2cap_handleConnParamUpdateReq', is this the callback when parameter update request coming from master or slave role or BOTH?

0 Likes
1 Solution

" Do we have further comment on the usage of callback 'lel2cap_handleConnParamUpdateReq'? And how does a master (20737 running as master role) to handle different connection update requests coming from different slaves?"

Take a look at Proximity_Client as I believe it handles multiple requests from different slaves at a fairly frequent interval.

View solution in original post

0 Likes
4 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Adding maxsong from our support team in Asia.  Max recently provided us this very detailed submission on how to test master and slave configuration: Testing Master and Slave Roles

0 Likes

Hi,

  Unfortunately, I don't see the answer about the usage of callback 'lel2cap_handleConnParamUpdateReq' from post Testing Master and Slave Roles.

  Do we have further comment on the usage of callback 'lel2cap_handleConnParamUpdateReq'? And how does a master (20737 running as master role) to handle different connection update requests coming from different slaves?

0 Likes

" Do we have further comment on the usage of callback 'lel2cap_handleConnParamUpdateReq'? And how does a master (20737 running as master role) to handle different connection update requests coming from different slaves?"

Take a look at Proximity_Client as I believe it handles multiple requests from different slaves at a fairly frequent interval.

0 Likes

Thanks, mwf_mmfae.

From proximity_client, api

blecm_ConnectionUpdate(

                blecen_con_handle,

                blecen_cen_cfg.high_conn_min_interval,

                blecen_cen_cfg.high_conn_max_interval,

                blecen_cen_cfg.high_conn_latency,

                blecen_cen_cfg.high_supervision_timeout,

                blecen_cen_cfg.conn_min_event_len,

                blecen_cen_cfg.conn_max_event_len)

Can be used for specifying connection parameter to each slave connection.