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

Peripheral connecting with 2 central

Hello,

After looking into forum regarding usage of S130 stack for using the device as both central and peripheral, I understood that the peripheral and central can concurrently work. But I have a scenario like this: 2 devices A, B.

  • A acts a peripheral and connects to B
  • B acts a central to A and peripheral to mobile
  • A should also connect to mobile phone

Now my question is, a peripheral can connect to only 1 central at a time or it cannot advertise once the connection is established with 1 central. So how can I achieve the connection of device A with mobile?

I have an answer of using the broadcast role. Is this correct? Assumption: Device A first connects to device B and later has to connect to mobile phone.

Regards, Sowmya

Parents
  • The only way of doing this currently is to have the mobile phone act as a peripheral (supported in newer Android devices), which allows device A to use its concurrent central role to connect to it.

    However, this requires the mobile phone to act as both peripheral and central concurrently (as it is already connected to B as a central), which I don't know if supported.

    An optimal solution would be to have A act as two peripherals concurrently, which is not supported.

  • As long as one of the phones support peripheral your scenario should work fine. A can connect to B as a peripheral and to a mobile phone as a central. B connects to A as a central and to the phone as a peripheral. This is supported with the S130 today.

Reply Children
No Data
Related