搜索不到蓝牙鼠标问题的分析

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  最近手机的开发中遇到一个问题,具体是很难搜索到一个蓝牙鼠标。

  查看该问题的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 BluetoothEventManag

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值