Disconnection delay

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

cross mob
Juar_2150386
Level 4
Level 4
5 likes given First like received First like given

Hi,

I have two BCM20736S BLE. The first one is in master mode and the second in central mode.

The master exchange data with the central and the central can notify to the master (if enabled)

I want to have the possiblity to disconnect and reconnect quickly (~1 second)

For example:

The 2 BLE are connected. if I disconnect the central (power off) and one second after I reconnect (power on) my central device , the peripheral BLE is not ready to connect..I think it is finding the old central BLE...the connection down callback was not call...

Is it possible to modify the delay between a link loss and a connection down process?

Thanks

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi,

I am not sure why you are powering off the board for disconnecting BLE.

Rather you can use API void blecm_disconnect(INT32 errCode ); for sending a disconnection. Eg:  blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);

For reconnecting fast, make sure your Peripheral is sending adv packets fast (adv interval small) and keeping scan fast on central side.

Thanks,

Anjana

View solution in original post

0 Likes
1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi,

I am not sure why you are powering off the board for disconnecting BLE.

Rather you can use API void blecm_disconnect(INT32 errCode ); for sending a disconnection. Eg:  blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);

For reconnecting fast, make sure your Peripheral is sending adv packets fast (adv interval small) and keeping scan fast on central side.

Thanks,

Anjana

0 Likes