admin管理员组文章数量:1641787
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
版权声明:本文标题:AP6236蓝牙BLE广播调试 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1729330015a1196270.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论