启用 BLE 的设备是否默认可发现?
Are BLE-enabled devices discoverable by default?
我正在寻找与此类似的东西question, based on the answer它表明设备只有在发出信息包时才会被发现。
我想了解的是,手机(iOS/Android)等设备是否默认发送这些可发现的数据包?或者他们是否需要配置(例如通过应用程序)以明确宣传自己或一些数据?
这在很大程度上取决于设备的性质。
手机、桌子
首先并不是所有的手机都可以做广告。新的可以。例如,Android 5.0 获得了广告功能。早期版本只能是中央或观察者。
那些可以做广告的默认不做广告。必须从应用启用广告。
信标
信标,另一方面,默认情况下做广告。他们一直在做广告。就是播广告。
不,默认情况下它们是不可发现的。
Bluetooth 4.x spec 的第 3 卷定义了两种可发现的模式:
- 9.2.3 - 有限可发现模式
The limited discoverable mode is typically used when a
user performs a specific action to make the device discoverable for a limited
period of time.
- 9.2.4 - 一般可发现模式
The
general discoverable mode is typically used when the device is intending to be
discoverable for a long period of time.
一个好的 BLE 设计是让设备无限期休眠以节省电池电量,直到需要执行某些操作为止。何时投放广告、投放多长时间以及以什么间隔投放广告完全由设计师决定。您可以让它按钮激活或从启动时立即激活。
但是,如果您的设备没有用户界面,也无法手动激活(例如广播传感器节点),那么您似乎别无选择,只能使用通用可发现模式,并不断发布广告。您将必须选择一个广告间隔,这是节约能源和被发现之间的最佳折衷。
也可以重复 windows 有限可发现模式。
我正在使用的 Laird 模块在 app note:
中有这个
Because BLE is designed to save power, the device is typically dormant until action is required.
我也找到了this quote:
A large number of BLE products sleep most of the time, waking up only to advertise and connect when needed. This means advertisements have a big impact on power consumption.
为了回答问题的第二部分,If a device isn't advertising, it's impossible for any Central to connect to it.
现在,说了这么多。许多设备 从安装电池的那一刻起就一直在做广告 。例如,与 Apple iBeacon 兼容的设备将以 100 毫秒的间隔持续广播,直到电池耗尽。关于广告间隔与电池寿命主题的有趣介绍 is given here。
我正在寻找与此类似的东西question, based on the answer它表明设备只有在发出信息包时才会被发现。
我想了解的是,手机(iOS/Android)等设备是否默认发送这些可发现的数据包?或者他们是否需要配置(例如通过应用程序)以明确宣传自己或一些数据?
这在很大程度上取决于设备的性质。
手机、桌子
首先并不是所有的手机都可以做广告。新的可以。例如,Android 5.0 获得了广告功能。早期版本只能是中央或观察者。
那些可以做广告的默认不做广告。必须从应用启用广告。
信标
信标,另一方面,默认情况下做广告。他们一直在做广告。就是播广告。
不,默认情况下它们是不可发现的。
Bluetooth 4.x spec 的第 3 卷定义了两种可发现的模式:
- 9.2.3 - 有限可发现模式
The limited discoverable mode is typically used when a user performs a specific action to make the device discoverable for a limited period of time.
- 9.2.4 - 一般可发现模式
The general discoverable mode is typically used when the device is intending to be discoverable for a long period of time.
一个好的 BLE 设计是让设备无限期休眠以节省电池电量,直到需要执行某些操作为止。何时投放广告、投放多长时间以及以什么间隔投放广告完全由设计师决定。您可以让它按钮激活或从启动时立即激活。
但是,如果您的设备没有用户界面,也无法手动激活(例如广播传感器节点),那么您似乎别无选择,只能使用通用可发现模式,并不断发布广告。您将必须选择一个广告间隔,这是节约能源和被发现之间的最佳折衷。
也可以重复 windows 有限可发现模式。
我正在使用的 Laird 模块在 app note:
中有这个Because BLE is designed to save power, the device is typically dormant until action is required.
我也找到了this quote:
A large number of BLE products sleep most of the time, waking up only to advertise and connect when needed. This means advertisements have a big impact on power consumption.
为了回答问题的第二部分,If a device isn't advertising, it's impossible for any Central to connect to it.
现在,说了这么多。许多设备 从安装电池的那一刻起就一直在做广告 。例如,与 Apple iBeacon 兼容的设备将以 100 毫秒的间隔持续广播,直到电池耗尽。关于广告间隔与电池寿命主题的有趣介绍 is given here。