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

central issues connection

Hi everyone.

I am working with nRF51 to make two BLE device, One act as cetral and another as peripheral.

I have implemented almost functions that the two devices are required. bonding procedure and exchanging data work well.

Now, I would like to add following procedure

  1. peripheral start advertising
  2. central start scaning
  3. two device are connected
  4. two device are bonded
  5. exchange data each other
  6. data exchange done, and connection terminated
  7. central issues connection to peripheral using bonding information, calling sd_ble_gap_connect(...) with bonded peripheral's MAC address

I have two questions :

  1. Is it possible to implement step 7)?
  2. If you say "yes" for question 1, then when the peripheral does not advertise, Is it also possible ?
  • 1 and 2: The Bluetooth core specification decides how the connection is established and it states that the connection must be established by a peripheral advertising and a central scanning and then responding to advertisements. So no, it is not possible in BLE to have the S110 peripheral stack listening for advertisements and connect.

    You can have the peripheral do directed advertising for a specific central, but it would still have to advertise and then central listen for the advertisement.

Related