最近手机的开发中遇到一个问题,具体是很难搜索到一个蓝牙鼠标。
查看该问题的AP log,发现有如下提示:
01-15 10:59:42.837 15710 15753 W bt_btm : btm_process_inq_results: BDA: 00:1f:20:ac:1b:40
01-15 10:59:42.838 15710 15753 W bt_btm : btm_process_inq_results: Dev class: 00-25-80
01-15 10:59:42.838 15710 15732 D bt_btif_config: btif_get_device_type: Device [00:1f:20:ac:1b:40] type 1
01-15 10:59:42.839 15710 15732 W BluetoothRemoteDevices: Skip class update for 00:1F:20:AC:1B:40
01-15 10:59:42.842 3393 9455 I ActivityManager: broadcast act=android.bluetooth.device.action.FOUND from pid=15710, uid=1002,parallel BR:ea627f8,u0,size=2,replaced=0,order BR:null,size=0,resultTo=null
01-15 10:59:42.845 8669 8669 V BluetoothEventManager:Settings: Received android.bluetooth.device.action.FOUND
01-15 10:59:42.845 8669 8669 D BluetoothEventManager:Settings: Device null ,Class: 1280
01-15 10:59:42.845 8669 8669 D Bluet

在手机开发中遇到蓝牙鼠标搜索困难的问题,通过分析AP log发现设备被搜索到但名称为空。根源在于蓝牙模块未上报设备名,进一步研究HCI log揭示在Inqury_Result_with_RSSI中未包含名字,并在获取远程名字时发生超时错误。通过延长查找时间,增加BTM_INQ_DB_SIZE值,成功解决了问题。
最低0.47元/天 解锁文章
2873

被折叠的 条评论
为什么被折叠?



