Android中的蓝牙LE设备的绑定(即“配对设备")的最大数量是多少? [英] What is the maximum number of bonded i.e. 'Paired Devices' for Bluetooth LE devices in Android?

查看:665
本文介绍了Android中的蓝牙LE设备的绑定(即“配对设备")的最大数量是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在这个问题上寻求的信息与这里寻求的信息相似(但不相同)...

The information being sought with this question is I think similar (but not the same) as the information sought here...

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

...所以让我们以另一种方式重新询问它:

...and so let's re-ask it a different way:

比方说,我们有一个用例,有人用手机可能希望使用配对安全地(使用行业标准的安全机制)连接到Bluetooth LE设备.发生配对时,绑定信息存储在手机中-->设置-->无线-->蓝牙-->配对设备窗口(对话框).

Let's say we have a use case where someone with a mobile phone may want to connect securely (using industry standard security mechanisms) to a Bluetooth LE device using Pairing. When Pairing occurs, bonding information is stored in the mobile phones - - > Settings - - > Wireless - -> Bluetooth - - > Paired Devices window (dialog).

这些配对设备"将保留在此列表中,而不管是否保持活动连接,对吗?

These 'Paired Devices' will remain present in this list regardless of whether or not active connections are maintained, correct?

如果此答案正确,那么在Android OS(或iPhone的iOS)开始开始出现性能问题之前,此列表中可以累积成百上千的先前配对/绑定的设备?

And if this answer is correct, how many hundreds or thousands of previously Paired/bonded devices can be accrued in this list before the Android OS (or iPhone's iOS) begins to start to incur performance issues?

我的理解是……Android操作系统或iPhone操作系统都没有提供编程功能来清除"旧配对/绑定设备的列表.如果忽略允许手动删除配对设备列表的手机用户,那么他们可能会面临艰巨的任务.

My understanding is... neither Android OS or iPhone OS offer programmatic ability to 'clean out' the list of old paired / bonded devices. And mobile phone users who neglect to remove those devices manually could have a challenging task at hand if they've allowed the list of Paired/Bonded devices to get out-of-hand.

有什么想法吗?在此先感谢--DJ Regan

Thoughts? Thanks much in advance, --DJ Regan

2018年11月12日更新...今天有新消息:在使用Android对许多BLE配对设备进行概要分析-->我的一个队友在尝试配对后发现其蓝牙无线电已变得不可用(如无法使用)到今天的第102台设备.正在进行其他分析.那么...也许这是一个不应该信任iOS或Android的用例? --DJ Regan

2018-November-12 Update... New news today: In profiling many BLE paired devices with Android - - > a team mate of mine discovered their Bluetooth radio had become unavailable (as in un-useable) after attempting to pair to the 102nd device+ today. Additional profiling is on-going. So... perhaps this is a use case that neither iOS or Android should be trusted to support? --DJ Regan

推荐答案

从源头来看,我猜想100是指向可以绑定的最大设备数的正确数字.在实践中也得到了证明.

From sources I guess 100 is the right number pointing to the max devices you can bond with. Also proved in practise.

 /* The number of security records for peer devices. */
    #ifndef BTM_SEC_MAX_DEVICE_RECORDS
    #define BTM_SEC_MAX_DEVICE_RECORDS  100
    #endif

...

/************************************************************************************
    **  Local type definitions
    ************************************************************************************/
    typedef struct
    {
        uint32_t num_devices;
        bt_bdaddr_t devices[BTM_SEC_MAX_DEVICE_RECORDS];
    } btif_bonded_devices_t;

这篇关于Android中的蓝牙LE设备的绑定(即“配对设备")的最大数量是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆