【发布时间】:2019-07-15 02:03:19
【问题描述】:
有没有办法知道 Android 蓝牙版本?(5 或 4.x - 4.1 或 4.2?) 目前根据
https://developer.android.com/about/versions/oreo/android-8.0-changes
广告数据包长度比平常多 60 个字节(即 31 个字节)或支持 LE 扩展广告等功能是蓝牙 5 的功能。
检查以下这些 API(为 True)是否可以保证蓝牙 5 受支持?
还有可能知道蓝牙(尽管它们带有 WiFI Combo)芯片版本吗?
isLe2MPhySupported()
isLeCodedPhySupported()
isLeExtendedAdvertisingSupported()
isLePeriodicAdvertisingSupported()
getLeMaximumAdvertisingDataLength() > 31 ( for Bluetooth 5)
我已经读到,通过获取设备的物理 MAC,我们可以知道芯片组属于哪个品牌,因为不同的供应商已经从蓝牙组织购买了这些 MAC?
请帮忙!
【问题讨论】:
标签: bluetooth bluetooth-lowenergy core-bluetooth android-bluetooth android-ble