AP6236蓝牙BLE广播调试

Platform: RK3368
OS: Android 6.0
Kernel: 3.10.0

wifi蓝牙模块为ap6236

现象:
APP调用BluetoothAdapter.isMultipleAdvertisementSupported返回false和BluetoothLeAdvertiser对象为Null:

解决方法:
主要是修改device/rockchip/rk3368/bluetooth/bdroid_buildcfg.h:
BLE_VND_INCLUDED为TRUE,打开供应商特定扩展的支持,比如RPA卸载、特性发现、多播等等。
Toggles support for vendor specific extensions such as RPA offloading, feature discovery, multi-adv etc.

diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index b23951e..0d20aef 100755
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -18,7 +18,15 @@
 #define _BDROID_BUILDCFG_H
 
 #define BTM_DEF_LOCAL_NAME     "Android"
-#define BTA_DM_COD {0x1A, 0x01, 0x10}
+#define BTM_WBS_INCLUDED TRUE
+#define BTIF_HF_WBS_PREFERRED TRUE
+#define BLE_VND_INCLUDED TRUE
+
+/* Handsfree device */
+#define BTA_DM_COD {0x20, 0x04, 0x08}
+
+/* Enable A2DP sink */
+#define BTA_AV_SINK_INCLUDED TRUE
 
 #endif
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值