5 posts / 0 new
Last post
caiziee
Offline
Last seen:2 years 5 months ago
Joined:2016-07-29 10:01
BLE reconnect

Hi, Dialog

I am trying to implement the reconnect feature based on DA14583. My application requirement is that when the DA14583 lose connection to mobile phone, then it will start to reconnect and keep the connection as stable as possible.
因此,有参考代码来帮助这个吗?米y SDK is 5.0.3.

Thanks a lot.

Device:
米T_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi caiziee,

Hi caiziee,

The connection request is a command that the phone will issue and not the peripheral, so its not up to peripheral to reconnect but it depends on the central. The peripheral can just accept the connection request issued by your phone. So from the peripheral side all you can do is just accept the connection from the phone, and just make sure that the central was the one that you were connected last time via checking the keys that were generated during the pairing procedure (if you would like to involve pairing to your system). Regarding the example, there is a security example ble_app_security that can guide you through the pairing procedure.

Thanks MT_dialog

caiziee
Offline
Last seen:2 years 5 months ago
Joined:2016-07-29 10:01
Thanks for your reply. It

Thanks for your reply. It really did help to us. ;-)

caiziee
Offline
Last seen:2 years 5 months ago
Joined:2016-07-29 10:01
By the way, and is it

By the way, and is it required or optional to use the bonding procedure? I assume bonding can speed up the paring process.

米T_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi caiziee,

Hi caiziee,

No, the pairing process is optional and depends on the application, if your system requires security then you can implement it. If you dont use security (you dont use the security feature of the BLE) there will be no pairing between the devices thus there will be no bond, they will be just connected.

Thanks MT_dialog