android - Nexus 7 (ME370T) 和 android 4.4.2 上的 BLE

标签 android bluetooth bluetooth-lowenergy nexus-7

我一直在尝试使用来自 sdk (sdk\samples\android-18\legacy\BluetoothLeGatt) 的示例将 BLE 设备与我的 Nexus 7 (ME370T) 配对。但我收到“不支持 Ble”的信息。我正在寻找解决方案,但我只发现:

NB! Nexus 7 (2012) with Android 4.3 is not delivered with BLE enabled. To work with BLE on this device you will >need the Bluetooth Low Energy Enabler tool. Prerequisites for this to work is that the device is rooted and that >the BusyBox app is installed.

我找不到任何关于支持 4.4.2 或为 4.4.2 启用的信息。我只能找到

Just in case some one else is searching for BLE on Nexus 7 - this ROM has a working BLE on 4.4 KitKat. It is almost >Stock ROM called 'purity'. PURITY ROM (link: http://forum.xda-developers.com/showthread.php?t=2222374).

问题是我是否需要将带有 4.4.2 的 Nexus 7 Root 到另一个 ROM 以启用 BLE? mod 之后它会工作吗?

最佳答案

基本上,2012 Nexus 7 中的 Broadcom 蓝牙芯片组似乎支持蓝牙 4.0 LE/低功耗 (BLE),但是,Google 从未将其认证为这样,仅证明符合当时的 v3.0 规范。这意味着谷歌现在可能看不到重新认证设备以进行合法 BLE 开发的经济利益(因为 2012 Nexus 7 现在已经停产)。然而,隧道尽头有光。

Manuel Naranjo 创建了一个 Android 开源项目 (AOSP) 代码补丁(我相信 Google 避免了,由于上述原因),他已免费提交给基于 AOSP 的 CyanogenMod项目(特别是分别基于 Android 4.3 和 4.4 (KitKat) 的版本 10.2 和 11)。这意味着如果您安装 CyanogenMod(或可能是 Purity Rom),我们确实获得了 2012 Nexus 7(代号“grouper”)的 BLE。

如果您对 the BLE patches Manuel made, they can be found here感兴趣,他的更改相当容易理解(他删除了 BLE 等的“错误”开关,以及其他更改)。

我假设这些补丁也可以应用于现有的 2012 Nexus 7 Wifi('grouper')Google Android 源代码构建(可以找到 here ),如果像 CyanogenMod 这样的第 3 方自定义 Rom 不是'根据您的喜好(构建所需的 Nexus 7 特定二进制硬件驱动程序,包括 Broadcom 蓝牙,可用 here)。

我正在考虑购买较旧的 Nexus 7,因为它们现在的价格非常低(在英国为 99 英镑),而且 Google/CyanogenMod 可能会确保持续升级一段时间(我我希望获得 BLE 外设支持,可能在 Android 4.5 中)。

顺便说一句,Manuel 还推销了一个 Nexus BLE Helper @ Google Play (paid)我认为这以某种方式简化了他的解决方法的安装,而不必刷新整个操作系统。 (免责声明 - 我与开发人员没有任何联系)。

编辑:我找到了this additional thread这指出了 Google 代码库中的蓝牙遗漏。

关于android - Nexus 7 (ME370T) 和 android 4.4.2 上的 BLE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20669590/

相关文章:

android - 如何从 APK 文件中提取 API 调用?

android - 如果设备已被唤醒或进入休眠状态,如何检查应用程序

android - EmojiCompat fetchFont 结果不正常

android - 如何使用蓝牙从arduino接收串行数据?

android - 通过 SIP/VoIP 为 Android 应用程序提供蓝牙 HFP 支持

android - 如何知道当前是否连接了 BLE 设备

android - 蓝牙低功耗 - 多个 TI 传感器标签连接

android - 一个 Physical Web Beacon 可以写入多少个 URL?

java - Android 中无法通过 Google Drive "Choose Account"屏幕

android - 有没有办法知道设备中蓝牙芯片的详细信息?