Hi
I have read Tutorial 6 on how to implement bonding and have successful implemented bonding.
However, presently, if I bond an Android phone (as Master) and then I try to bond another phone, it still bonds and the old bonding information is lost.
Is it possible to reject bonding if bonding has already been done? I can set and check a flag manually, but I was wondering if there was an API method to check this. Also, which API method must be called in order to cancel the bonding request initiated by a new Master ?
Thanks
Ankit
Device:
Hi ankitdaf,
The SDK as is, doesn't check the bonding data of the device when it receives a pair request, it just responds in order to pair with the device that made the request, if you want only to pair once, you will have to implement this in your application. You can take a look at the smart Tag application, that stores the bonding data in a flash, and rejects the connection if there is a pairing request and there are pairing data allready in the flash.
Thanks MT_dialog
Dear Dialog!
Now I am working on DA14583 project.
I have issues on bonding with Android 6.0.
"ble_app_security" example from Dialog SDK fails to connect after bonding with Android 6.0.
Android 5.x works fine.
For Android 6.0
- Android bonds with ble_app_security
- Android connects to ble_app_security
- it fails to connect "state=133"
Need your help.
Thanks
Best Regards
Hello wbluedream,
So, regarding you question, are you able to connect without bonding. Reason I ask is to see if there is something wrong with the keys.
Also, did you try sending a BT trace to analyze the interaction?
Best,
LC
Thanks Dialog!
Yes, of course. I can connect without bonding.
I am quite new to this Dialog BLE world.
Can you kindly teach me how to send BT trace, and how to analyze interaction?
Very thanks for your answer.
Hello, some of the BLE APIs have been changed in moving from 5.x to 6. Additionally, I also encountered some errors with the move just in the scanning in connecting. Could you check your target SDK in the gradle.properties . Here is a snippet from a working project I have:
Dear Dialog!
Thanks for your kind support!
I have nevery had such support until now on other companies.
I will check again about SDK version.
Thanks