难道Android的4.2.2支持USB蓝牙适配器? [英] Does Android 4.2.2 support usb bluetooth dongle?

查看:1898
本文介绍了难道Android的4.2.2支持USB蓝牙适配器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用的bluez hciconfig 找到USB蓝牙设备hci0。但我不能让在Android 4.2.2蓝牙。看来Android的使用,因为4.2版本的新蓝牙堆栈。因此,它不依赖的BlueZ statck现在。 这是我的BoardConfig:

I can use blueZ hciconfig to find the usb bluetooth device 'hci0'. But I can't enable the bluetooth on Android 4.2.2. It seems android use a new bluetooth stack since version 4.2 . So it doesn't rely on the BlueZ statck now. This is my BoardConfig:

BOARD_HAVE_BLUETOOTH := true  
BOARD_HAVE_BLUETOOTH_BCM := true

和我在内核中启用了 HCI USB drvier

没有任何一个有关于如何支持 USB蓝牙加密狗在Android 4.2.2的想法? 这个问题卡住了我两个星期。我无法从网上得到更多的信息。

Does any one have the idea about how to support usb bluetooth dongle on Android 4.2.2 ? The issue stuck me two weeks. And I can't get more information from the internet.

非常感谢!

推荐答案

的CyanogenMod和Android-X86包含的补丁支持USB人机交互是这样的: http://review.cyanogenmod.org/#/c/45537/

CyanogenMod and Android-X86 contain patches to support USB HCI like this: http://review.cyanogenmod.org/#/c/45537/

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

<一个href="http://git.android-x86.org/?p=platform/external/bluetooth/bluedroid.git;a=commit;h=471bdeac2ffe054221b3eab72e3b87523c0aa97c" rel="nofollow">http://git.android-x86.org/?p=platform/external/bluetooth/bluedroid.git;a=commit;h=471bdeac2ffe054221b3eab72e3b87523c0aa97c

要启用此支持的主板看看机器人86例如,对于BoardConfig

To enable this support in board look at android-x86 example, for 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

and for 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支持。

Also your kernel need UHID support.

这篇关于难道Android的4.2.2支持USB蓝牙适配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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