Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a single BLE central connect with multiple BLE peripherals via bluetooth low energy?

I am using core bluetooth framework in my iOS application project. I have following questions regarding bluetooth low energy-

  1. Is it possible for a single central to connect multiple peripherals in iOS?
  2. Can multiple central device connect with a single peripheral?
  3. Can a single iOS device act as central as well as peripheral at the same time?
  4. If yes, then what will happen if both of 2 such devices try to connect as central to each other?
  5. Can we communicate via BLE when the app is in background?
like image 254
PS_dev Avatar asked Jan 26 '23 18:01

PS_dev


2 Answers

Is it possible for a single central to connect multiple peripherals in iOS?

Yes.

Can multiple central device connect with a single peripheral?

That completely depends on whether the peripheral supports it (but for most common embedded devices, no).

Can a single iOS device act as central as well as peripheral at the same time?

Yes.

If yes, then what will happen if both of 2 such devices try to connect as central to each other?

They'll generally connect twice. In one connection, one will be central and one will be peripheral. In the other connection, the reverse. This is a pretty unusual way to design a system, but it is legal will often work, despite being illegal (see Youssif's comment below for reference).

Can we communicate via BLE when the app is in background?

Yes, within various restrictions.

like image 94
Rob Napier Avatar answered Jan 30 '23 14:01

Rob Napier


  1. Yes, it's possible to connect one Central to multiple Peripherals.
  2. Not confirmed.
    But single Peripheral can connect only with one Central device and multiple Peripherals can connect with one Central.
    It means that Central can communicate with multiple Peripherals at the same time.
  3. Yes, a single iOS device can work both as Central and Peripheral at the same time.
  4. It communicates one by one.
  5. Yes, we can communicate via BLE in background mode in iOS device.
like image 20
Deepak Tagadiya Avatar answered Jan 30 '23 13:01

Deepak Tagadiya