what is the difference between bounded and unbounded device?

拈花ヽ惹草 提交于 2019-12-23 17:53:14

问题


I’m new to both iOS and BLE, so kindly bear with me if this question is very basic.

What is the distinction between bounded and unbounded devices? I’m working with CBCentralManager for BLE in iOS, and I’m trying to figure out how to pair them through CBCentralManager.


回答1:


You don't need to do anything different app, iOS will handle the binding if required.

Bounded connections are in a way "paired" to the iOS device. Once bounded they will not communicate to any other device. Bounding is controlled by the operating system (iOS). When a device that requires a bounded connection communicates with a iOS device, the iOS device will present a alert view asking if you wish to connect to the device.

Unbounded devices are continually broadcast their services and allows any iOS device to connect to it. The device will not bind to the specific iOS device and is free to connect to another iOS device at another time. This is the normal/recommended method for most BT4.0 sensors.

For both cases the application would normally store the UUID so it can establish the connection to the same device next time.

NOTE: Although unbounded devices are not "paired" with the iOS device, they will only communicate with a single iOS device at any one time.




回答2:


I think the correct terminology here is "bonded" not "bounded".

An non bonded peripheral will connect to any Central that attempts to discover it and establishes a connection.

A bonded peripheral has already paired previously and will automatically connect.

When a pairing persists between a peripheral and central it is bonded



来源:https://stackoverflow.com/questions/10602790/what-is-the-difference-between-bounded-and-unbounded-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!