This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

disconnection problem after closing ios bluetooth setting

hi, I am using the nRF51 with code from SDK 9, as well as the S110 softdevice and made a custom service(128-UUID) with bond using device manager.

connection and service procedure is ok but there is some problem.

In case of sample (hrs, hids) projects, these projects keep connection after closing ios bluetooth setting window and can reconnect with peripheral(nRF51) when peripheral device restarts.

But in my custom service project case, it cannot keep connection after closing ios bluetooth setting window and cannot reconnect with peripheral device when it restarts(turn off and turn on).

please kindly advice me

Parents
  • Thank you for kind answer.

    “closing iOS bluetooth setting window” means kill “setting” app on iphone

    [test case #1] step 1. open “setting” on iPhone, select “bluetooth” and click paired(bonded) one(custom service device) in “my devices” (setting => bluetooth => click one in my devices)

    step 2. as soon as i kill “setting” after connection with my custom service. my custom service(peripheral device) disconnected. In case of hrs, hids examples, these samples don’t disconnect after kill “setting” in iPhone.

    [test case #2.] after connection with custom service device

    1. turn off bluetooth on the phone
    2. after a while, turn on bluetooth on the phone
    3. don’t reconnect automatically with my custom service device but In case of samples(hrs, hids) those reconnect automatically.

    [data send & receive] My custom service used "ble_app_template in SDK9” for bond and modified “ble_app_uart” for 128bit UUID custom service. successfully i can send and receive data with central(iPhone) and peripheral(nRF51).

Reply
  • Thank you for kind answer.

    “closing iOS bluetooth setting window” means kill “setting” app on iphone

    [test case #1] step 1. open “setting” on iPhone, select “bluetooth” and click paired(bonded) one(custom service device) in “my devices” (setting => bluetooth => click one in my devices)

    step 2. as soon as i kill “setting” after connection with my custom service. my custom service(peripheral device) disconnected. In case of hrs, hids examples, these samples don’t disconnect after kill “setting” in iPhone.

    [test case #2.] after connection with custom service device

    1. turn off bluetooth on the phone
    2. after a while, turn on bluetooth on the phone
    3. don’t reconnect automatically with my custom service device but In case of samples(hrs, hids) those reconnect automatically.

    [data send & receive] My custom service used "ble_app_template in SDK9” for bond and modified “ble_app_uart” for 128bit UUID custom service. successfully i can send and receive data with central(iPhone) and peripheral(nRF51).

Children
No Data
Related