This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pairing with passkey

Good morning,

I have taken a look to different information related to this topic but I'm still confussed about the way to proceed in order to implement the way of working I want:

  1. I have a peripheral without keyboard and screen. It doesn't have any button, neither.
  2. This peripheral (in order to save battery) will be advertising periodically.
  3. The first time a Central (smartphone) connects to this peripheral, a passworkd should be entered to connect (this password could be a code that could be internally saved in the peripheral or a code that can be send later by the Central...)
  4. Next time the same Central wants to connect, password should not be requested. Please, could you clarify me this procedure or the different existing methods to proceed in this way?

Do you have any example available or any link where this is shown?

Best regards.

Edit: format.

  • FormerMember
    0 FormerMember

    Yes, you can use bonding with static passkey: the passkey will then be requested the first time a central bonds to a device. The second time the central connects to the device, the passkey will not be requested, because the bonding information is stored in both devices.

    Static passkey can be implemented by following this message sequence chart.

    It can also be useful to take a look at this thread, where static key implementation is being discussed.

Related