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

Only 1 to 1 bluetooth matching about nrf51822

Hello. I want only 1 to 1 bluetooth matching about nrf51822.

I want only 1EA central with 1EA peripheral matching.

I set as below.

1EA - Bluetooth Central - UUID 0x08

1EA - Bluetooth Peripheral - UUID 0x08

1EA - Bluetooth Peripheral - UUID 0x11

I expectation is to be connect UUID 0x08 central with 0x08 peripheral.

So, UUID 0x11 is disconnect.

but, The test results were also connected with the uuid 0x11 peripheral uuid 0x08 central.

I think, need to other part except uuid. please confirm it.

Parents
  • The central decides what device it wants to connect to.

    It normally uses the content of the advertisment to do this, for example the UUID.

    It can search for a specific UUID, and then send a connect request to the device that sent an advertisment with this UUID.

    This is done in the ble_app_hrc_c example in SDK. Have a look at how the BLE_GAP_EVT_ADV_REPORT in on_ble_evt() is handled. When it receives an advertisment with the heart rate service UUID it will try to connect to that device.

Reply
  • The central decides what device it wants to connect to.

    It normally uses the content of the advertisment to do this, for example the UUID.

    It can search for a specific UUID, and then send a connect request to the device that sent an advertisment with this UUID.

    This is done in the ble_app_hrc_c example in SDK. Have a look at how the BLE_GAP_EVT_ADV_REPORT in on_ble_evt() is handled. When it receives an advertisment with the heart rate service UUID it will try to connect to that device.

Children
Related