您的位置:首页 > 其它

如何修改蓝牙搜索设备的时间

2012-08-29 14:27 225 查看

[Description]
蓝牙主动搜索设备的时间default为61.44s,如何修改为其他的值
[Solution]
android_server_BluetoothService.cpp在该文件修改如下函数的如下参数,0x30 means 48×1.28= 61.44 seconds,单位为1.28s
bool btmtk_gap_discovery(native_data_t *nat, btbm_discovery_type mode)
{
...
req_p->inquiry_length = 0x30; // modify this line
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: