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

Bluetooth pairing with ble

I've not worked with BT4.0/4.1 before, so I was wondering about this: Take the heart rate monitor example, connection happens automatically when a heart rate monitor is discovered. So what if I wanted there were 20 heart rate monitors in the room? How can I ensure that the app connects only to the belt I want it to?

Parents
  • Typically you would have to interact with both devices in some way for them to be actively looking for a peer device. For instance the heart rate monitor would only look for a heart rate belt while a button is being pressed, and the heart rate belt would only appear as connectable when a button is being pressed.

    Using encryption/pairing would also ensure that it is not possible for a master device to "hijack" the slave device without providing some secret information.

Reply
  • Typically you would have to interact with both devices in some way for them to be actively looking for a peer device. For instance the heart rate monitor would only look for a heart rate belt while a button is being pressed, and the heart rate belt would only appear as connectable when a button is being pressed.

    Using encryption/pairing would also ensure that it is not possible for a master device to "hijack" the slave device without providing some secret information.

Children
No Data
Related