4

我可以blueZ hciconfig用来查找 USB 蓝牙设备“hci0”。但我无法在 Android 4.2.2 上启用蓝牙。自 4.2 版以来,android 似乎使用了新的蓝牙堆栈。所以它现在不依赖 BlueZ statck。这是我的 BoardConfig:

BOARD_HAVE_BLUETOOTH := true  
BOARD_HAVE_BLUETOOTH_BCM := true

HCI USB drvier在内核中启用了。

有没有人知道如何usb bluetooth在 Android 4.2.2 上支持加密狗?这个问题困扰了我两周。而且我无法从互联网上获得更多信息。

非常感谢 !

4

2 回答 2

0

据我了解,Android 放弃了 BlueZ,它现在依赖于 Broadcom 的 bluedroid,我不知道怎么做,但我会做的是在线查找该 bt 加密狗的驱动程序并使用以下命令构建系统:

PRODUCT_COPY_FILES += drivers

在您的 AndroidProducts.mk 文件上

于 2013-07-12T06:39:33.733 回答
0

CyanogenMod 和 Android-X86 包含支持 USB HCI 的补丁,如下所示: http ://review.cyanogenmod.org/#/c/45537/

http://review.cyanogenmod.org/#/c/45538/

http://git.android-x86.org/?p=platform/external/bluetooth/bluedroid.git;a=commit;h=471bdeac2ffe054221b3eab72e3b87523c0aa97c

要在板上启用此支持,请查看 android-x86 示例,用于 BoardConfig

# Some framework code requires this to enable BT
BOARD_HAVE_BLUETOOTH := true
BLUETOOTH_HCI_USE_USB := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/x86/bluetooth

对于 buildcfg

#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H 
#define BTM_DEF_LOCAL_NAME "Android-x86"
// At present either USB or UART is supported
#define BLUETOOTH_HCI_USE_USB          TRUE
// Bluetooth Low Power Mode is supported on BT4.0
#define HCILP_INCLUDED                 FALSE
#endif

您的内核也需要 UHID 支持。

于 2013-09-27T15:25:12.073 回答