Hardcoded connection

What is the best strategy for connection between specific central and peripheral when both are powered up and then locking the connection so no more devices interfere?

Parents
  • Hi.

    Maybe you could elaborate a little bit on your usecase here?

    But after you connect to your preferred device, you don't have to start scanning for more devices. You can choose only to allow 1 connection. You can add your device to a whitelist etc.

    If you share some more information about your application or requirements, we can discuss further what could be the best way for you to solve this.

    Br,
    Joakim

  • Thank you, Joakim.

    Currently, we want to hardcore (in the firmware as configuration both in the peripheral and central devices) that peripheral P will connect only to Central C1, Central C2, and Central C3 (C2 and/or C3 may be not present in some cases). We do not want any interaction by the user (pressing the button, waiting for pairing), just when peripheral P and Central C1 are powered up, they establish a connection, and no more connections (except C2 and C3 if powered up) are allowed.

    I assume this is possible if the peripheral serves as a beacon, right? How to select (filter) data coming from a specific beacon then? Also assuring the "freshnes" of the data received from the beacon can be a challenge.

    Or do we need to switch the option - one Central device and three peripherals?

Reply
  • Thank you, Joakim.

    Currently, we want to hardcore (in the firmware as configuration both in the peripheral and central devices) that peripheral P will connect only to Central C1, Central C2, and Central C3 (C2 and/or C3 may be not present in some cases). We do not want any interaction by the user (pressing the button, waiting for pairing), just when peripheral P and Central C1 are powered up, they establish a connection, and no more connections (except C2 and C3 if powered up) are allowed.

    I assume this is possible if the peripheral serves as a beacon, right? How to select (filter) data coming from a specific beacon then? Also assuring the "freshnes" of the data received from the beacon can be a challenge.

    Or do we need to switch the option - one Central device and three peripherals?

Children
Related