7 posts / 0 new
Last post
ankitdaf
Offline
Last seen:2 years 9 months ago
加入:2015-09-03 20:14
Reject bonding request from Central

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:
MT_dialog
Offline
Last seen:1 month 4 weeks ago
工作人员”title=
加入:2015-06-08 11:34
Hi ankitdaf,

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

wbluedream
Offline
Last seen:3 years 8 months ago
加入:2016-09-02 23:43
Dear 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

LC_Dialog
Offline
Last seen:3 days 3 hours ago
工作人员”title=
加入:2016-09-19 23:20
Hello wbluedream,

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

wbluedream
Offline
Last seen:3 years 8 months ago
加入:2016-09-02 23:43
Thanks Dialog!

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.

JK_Dialog
Offline
Last seen:1 month 2 weeks ago
工作人员”title=
加入:2016-08-22 23:07
Hello, some of the BLE APIs

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:

android {compileSdkVersion24buildToolsVersion”25.0.0"defaultConfig { applicationId”com.example.jkurtz.beacon"minSdkVersion18targetSdkVersion22versionCode1versionName”1.0"testInstrumentationRunner”android.support.test.runner.AndroidJUnitRunner"}
wbluedream
Offline
Last seen:3 years 8 months ago
加入:2016-09-02 23:43
Dear Dialog!

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