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

NRF Connect for Mobile multiple devices...one connection.

Hi,
I'm using the nrf connect mobile app and I want to connect multiple devices to the advertising device and I want them all to access the same characteristic at the same time but each device has its own connection with its own characteristic value. Actually what I need to do is for every device that's connected to my advertising device to read the same data written on a characteristic. I don't know if that makes sence but that's really what I need. NRF Connect opens a connection tab entitled with the device's name and its mac adress but can't I have the same connection for all devices ??

Parents
  • Hi,

    One link is required per peripheral, but a central can have multiple links. See our multi-link example in the SDK.

    regards

    Jared

  • Hi, thanks for your reply.

    But that's not really what I'm asking.  

    Actually, my situation is: I have an android phone on which I've installed the NRF connect for mobile and I am advertising through it a custom service that I've created. I also have an angular application that's working on two other phones. What I'm doing is each app(on the two seperate phones) is scanning for my phone ( acting as a peripheral) and when it's found each one of them connects to my hone through NRF Connect and finds the advertised service and writes to the specified characteristic.

    Now what I'm asking is if there is a way to manipulate the same characteristic from each phone because that's what I thought could happen before making the two connections and discovering that eache device of the 2 makes its own connection and writes to its own characteristic which is not visible to the other.

    I am just trying to exchage messages between devices using web bluetooth but it turns out it doesn't work the way I've imagined it would. Can you tell if it's an obligation to make my own peripherla device using electronical devices or can I make do with the NRF Connect for Mobile and the phones that I've mentioned. Would it make a difference??

    I really hope that you can explain it to me because I can't seem to find a solution that would work for me.

    Thank you.

Reply
  • Hi, thanks for your reply.

    But that's not really what I'm asking.  

    Actually, my situation is: I have an android phone on which I've installed the NRF connect for mobile and I am advertising through it a custom service that I've created. I also have an angular application that's working on two other phones. What I'm doing is each app(on the two seperate phones) is scanning for my phone ( acting as a peripheral) and when it's found each one of them connects to my hone through NRF Connect and finds the advertised service and writes to the specified characteristic.

    Now what I'm asking is if there is a way to manipulate the same characteristic from each phone because that's what I thought could happen before making the two connections and discovering that eache device of the 2 makes its own connection and writes to its own characteristic which is not visible to the other.

    I am just trying to exchage messages between devices using web bluetooth but it turns out it doesn't work the way I've imagined it would. Can you tell if it's an obligation to make my own peripherla device using electronical devices or can I make do with the NRF Connect for Mobile and the phones that I've mentioned. Would it make a difference??

    I really hope that you can explain it to me because I can't seem to find a solution that would work for me.

    Thank you.

Children
  • Hi,

    Sorry for the misunderstanding. You could "tell" the other GATT client that is connect that the characteristics value in the attribute table has been updated by using notifications. That way the GATT client would be notified if the other GATT client writes to the characteristics in the ATT table of the GATT server. Here is the sequence chart that displays the action between the GATT server and the GATT client.

    best regards

    Jared 

Related