This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MITM Bonding issue with Android L

Hi, we'd like to use nexus 7 II(android 5.1.1) to connect nrf51822, but cannot connect if nrf51822 uses whitelist.

step 1. we send advertising packets without using whitelist, and uses MITM. Nexus 7 II can do the bonding.

adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
adv_params.p_peer_addr = NULL;
adv_params.fp          = BLE_GAP_ADV_FP_ANY;
adv_params.interval    = APP_ADV_INTERVAL;
adv_params.timeout     = APP_ADV_TIMEOUT_IN_SECONDS;

step 2. then we send advertising packets with whitelist info, nexus 7 II cannot connect to us, even we did bonding before.

adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
    adv_params.fp          = BLE_GAP_ADV_FP_FILTER_BOTH;
    adv_params.p_whitelist = &whitelist;
    advertising_init(BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED); 

But iPhone5s is okay on step2.

Is it google's issue? or we can do something for it?

-Thanks, Bill

  • @Now: There is something that I'm confusing about. You mentioned that "it's okay for nexus 7 to reconnect while using whitelist advertising", but on the last comment you said the BT address of Nexus 7 is not saved in the whitelist.

    If it's not saved how could you reconect with whitelist on ?

    I'm testing here with my Nexus 7 with the proximity example in SDK v8.1 on nRFMaster Control panel app. It works fine exect for only one issue that it won't disconnect when click disconnect button after bonding. I have to turn off Bluetooth to do so. Delete bond on the tablet, won't stop it from re-connecting (and then initiate another bond).

  • Hi Hung, 'Cause Nexus 7 II uses irk not bt address, so we only saved irk. I used two android devices to do the test again. And the link is : devzone.nordicsemi.com/.../

    thanks for your resply again.

    ===================================================

    we have two devices using android 5.0 have this issue.

    1. bonding to s110, irk_counter=1; s110 uses whitelist advertising. android 5.0 device can reconnect to s110.

    2. android 5.0 device delete bonding info, and rebonding to s110, irk_counter=2; s110 uses whitelist advertising. android 5.0 device cannot reconnect to s110.

    3. s110 uses advertising without whitelist, android 5.0 device can reconnect to s110.

    iPhone5s and android 4.4 device can do it right. Anyone have similar issue like me? thanks.

    S110 + SDKv6.1 + SDv7.1

  • @Now: I would suggest to close this case and continue on the other one.

Related