cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

hachc_2137126
Contributor II

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
MichaelF_56
Moderator
Moderator

" 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

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
hachc_2137126
Contributor II

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
MichaelF_56
Moderator
Moderator

" 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
hachc_2137126
Contributor II

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.