且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我们可以通过 BLE 的蓝牙与 Android 配对多少设备?

更新时间:2023-01-23 23:40:42

Android 蓝牙固件搜索 source 显示以下内容:

A search of the Android Bluetooth Firmware source shows the following:

最大并发活动同步连接(BTA_GATTC_CONN_MAX):

Max concurrent active synchronous connections (BTA_GATTC_CONN_MAX):

  • Android 4.3 上的 4
  • Android 4.4+ 上的 7

最大并发活动通知(BTA_GATTC_NOTIF_REG_MAX):

Max concurrent active notifications (BTA_GATTC_NOTIF_REG_MAX):

  • Android 4.3 上的 4
  • Android 4.4 上的 7
  • 15 在 Android 5.0+ 上

作为对比,我使用 iOS 的体验是可以同时连接 8 台设备.

As a comparison my experience with iOS is that 8 devices can be connected at at time.

前几天我尝试在 Android 7.1 上连接超过 7 台设备,但蓝牙停止响应.启动和停止没有帮助;唯一修复它的是重新启动设备.

I tried connecting more than 7 devices the other day on Android 7.1 and Bluetooth stopped responding. Starting and stopping didn't help; the only thing that fixed it was restarting the device.

在使用连接到 4 个以上设备的多个应用程序后,我可以根据经验说这些数字是理论上的.根据每个单独的设备及其硬件,您将更容易或更难连接和保持与最大数量的 BLE 设备的连接.

After working with several apps that connect to 4+ devices I can say from experience that these numbers are theoretical. Depending on each individual device and its hardware you'll have an easier or harder time connecting to and maintaining a connection to the maximum number of BLE devices.