android bluetooth蓝牙移植,androidbluetooth
前段时间移植神念系统需要使用到bluetooth功能,现将移植过程中碰到的问题简要列一下,备忘而已。
1、内核增加配置
make menuconfig -> Networking support -> Bluetooth subsystem support -->
进行选择BT选项,至少选择如下几项:
CONFIG_BT=y
CONFIG_BT_RFCOMM=y
#
# Bluetooth device drivers
#
CONFIG_BT_HCIBTUSB=y
ONFIG_BT_HCIBFUSB=y
其它的根据平台特性增减
此内核是否配置成功,可以在代码 systembluetoothbluedroid下的bluetooth.c文件
中加打印:
init_rfkill() 函数
如果没有配置ok的话则:
snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id);
fd = open(path, O_RDONLY);
if (fd < 0) {
LOGW("open(%s) failed: %s (%d)n", path, strerror(errno), errno);
return -1;
}
会打开文件失败的。
2、android系统配置
buildtargetbo
最后
以上就是标致小兔子最近收集整理的关于Linux内核配置蓝牙驱动,android bluetooth蓝牙移植,androidbluetooth的全部内容,更多相关Linux内核配置蓝牙驱动,android内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复