Ramya K Sharma
Ramya K Sharma

Reputation: 743

In BLE, who decides which pairing mode is to be used? Peripheral/Central

I've been looking for BLE materials to get answer to this. But I could not get in any. Though practically/logically speaking, peripheral should decide I want to see if it is documented some where. Any links with this information will be very helpful.

Upvotes: 2

Views: 1099

Answers (2)

SlowlyButSurly
SlowlyButSurly

Reputation: 1

On "Just Works"; my understanding is that this is pairing where neither device can display a passkey, or allow the user to input one. It is NOT an unencrypted connections.

While your general iOS device can do both, many devices, such as an toothbrush handle, can't, but can still require "just works" pairing and bounding. This is also called unauthenticated pairing with encryption. It appears that iOS will prompt the user to accept a pairing request if the peripheral can't display a passkey.

Upvotes: 0

Paulw11
Paulw11

Reputation: 115104

On iOS, at least, if the peripheral specifies that encryption is required for a characteristic then iOS Central will initiate a pairing operation when access is attempted. If encryption isn't required then no pairing takes place - The central can just initiate a connection.

So, in summary -

  • The peripheral 'decides' if pairing is required through the definition of its characteristics.
  • The central manages the pairing process when required.

Upvotes: 1

Related Questions