2013-07-12 80 views
3

我可以用blueZ hciconfig找到USB蓝牙设备'hci0'。但我无法在Android 4.2.2上启用蓝牙。从4.2版开始,似乎android使用了一个新的蓝牙堆栈。所以它现在不依赖于BlueZ。 这是我BoardConfig:Android 4.2.2是否支持USB蓝牙适配器?

BOARD_HAVE_BLUETOOTH := true 
BOARD_HAVE_BLUETOOTH_BCM := true 

而且我在内核中启用了HCI USB drvier

是否有人有关于如何在Android 4.2.2上支持usb bluetooth加密狗的想法? 这个问题困扰了我两周。我无法从互联网上获得更多信息。

非常感谢!

回答

0

这是我的理解是Android的下降和的BlueZ现在博通依赖于bluedroid,我不知道如何,但我会做的是查找驱动程序,对于BT加密狗在线与构建系统:

PRODUCT_COPY_FILES += drivers 

您AndroidProducs.mk文件

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的86例中此支持的主板的脸色,因为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支持。

相关问题