3 Replies Latest reply on Aug 16, 2017 7:17 AM by MichaelF_56

    Pair with multiple devices

    pangma01

      Hello,

       

      We will be using a master 20737s to connect multiple 20737s slaves. We would like to connect with pairing and by looking at the hello client and hello sensor examples the API only accepts one key. The questions is how to manage multiple connections where each of them has its own pairing key ?

       

      The API for setting the passkey looks like:

       

          lesmp_setSMPassKey((UINT8*)passKey,LESMP_MAX_KEY_SIZE);

          lesmp_setJustWorksNotPermitted();

       

      As we can see the API is not "connection" aware, but it looks like it will use the same key for all the connections. More, our master will connect multiple devices and some of them will require pairing and some of them will not.

       

      Thanks.

        • 1. Re: Pair with multiple devices
          BoonT_56

          Never seen this before but possible in theory. The developer will need to create an array to store a few sets of pass-key and device an algorithm on how to select which one to use.

          1 of 1 people found this helpful
          • 2. Re: Pair with multiple devices
            pangma01

            Thanks for confirming my worries.

             

            We have a pairing schema where the slave advertises itself and withing the manufacturer data advertises some data which is the used as a hashing algorithm to compute the pin code. The pin code thus changes once in while and is not fixed. That's why we need to be able to set pairing keys for each device.

             

            Moving forward we will probably have to wait for a SDK release. Do you have any timing about that ?

            • 3. Re: Pair with multiple devices
              MichaelF_56

              There are currently no plans to release a newer version of the WICED Smart SDK, which is the one needed for development on CYW2073X devices.