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

Parents
  • @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).

Reply
  • @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).

Children
No Data
Related