43 Star 38 Fork 311

OpenHarmony / communication_bluetooth

 / 详情

【OpenHarmony3.2 beta1】【API】【bluetooth】bluetooth.BLE.startBLEScan(filters)带过滤条件扫描BLE蓝牙,在发现蓝牙列表中并没有过滤

已完成
缺陷
创建于  
2022-10-14 10:30

【OpenHarmony3.2 beta1】【API】【bluetooth】简要描述:
bluetooth.BLE.startBLEScan(filters)带过滤条件扫描BLE蓝牙,在发现蓝牙列表中并没有过滤

 bluetooth.BLE.on('BLEDeviceFind', this.onBLEDeviceFind)
    let filters: Array<bluetooth.ScanFilter> = [{
                                                  deviceId: "E2:AD:7D:0B:AB:EB",
                                                  name: 'HR2200001234'
                                                }]
    bluetooth.BLE.startBLEScan(filters)

在返回结果中存在非过滤条件下的蓝牙信息

08-05 10:31:58.195 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"2E:64:70:39:01:F2","rssi":-91,"data":{"0":30,"1":255,"2":6,"3":0,"4":1,"5":9,"6":32,"7":2,"8":121,"9":186,"10":123,"11":91,"12":112,"13":14,"14":213,"15":116,"16":174,"17":116,"18":116,"19":37,"20":190,"21":145,"22":129,"23":6,"24":156,"25":90,"26":199,"27":74,"28":74,"29":213,"30":235}}]
08-05 10:31:58.198 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"5B:7E:30:5A:23:74","rssi":-76,"data":{"0":2,"1":1,"2":26,"3":2,"4":10,"5":12,"6":10,"7":255,"8":76,"9":0,"10":16,"11":5,"12":19,"13":24,"14":130,"15":237,"16":206}}]
08-05 10:31:58.201 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"2C:94:EF:F3:FF:EA","rssi":-76,"data":{"0":30,"1":255,"2":6,"3":0,"4":1,"5":9,"6":32,"7":2,"8":249,"9":22,"10":147,"11":10,"12":250,"13":234,"14":223,"15":55,"16":168,"17":60,"18":208,"19":219,"20":0,"21":101,"22":98,"23":203,"24":105,"25":165,"26":96,"27":108,"28":17,"29":11,"30":161}}]
08-05 10:31:58.204 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"3A:64:A3:C4:A4:E0","rssi":-80,"data":{"0":30,"1":255,"2":6,"3":0,"4":1,"5":9,"6":32,"7":2,"8":116,"9":13,"10":31,"11":40,"12":9,"13":212,"14":43,"15":246,"16":128,"17":182,"18":91,"19":142,"20":80,"21":237,"22":51,"23":47,"24":227,"25":158,"26":84,"27":138,"28":207,"29":234,"30":21}}]
08-05 10:31:58.209 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"7A:2A:BA:C5:99:43","rssi":-73,"data":{"0":2,"1":1,"2":26,"3":2,"4":10,"5":12,"6":10,"7":255,"8":76,"9":0,"10":16,"11":5,"12":95,"13":28,"14":184,"15":200,"16":140}}]
08-05 10:31:58.214 1791-1791/ohos.samples.bluetooth I 0ff00/[bluetooth]: Index, BLE scan device find result= [{"deviceId":"0B:53:B3:69:31:58","rssi":-64,"data":{"0":28,"1":255,"2":6,"3":0,"4":1,"5":9,"6":33,"7":10,"8":134,"9":232,"10":183,"11":90,"12":84,"13":104,"14":76,"15":65,"16":80,"17":84,"18":79,"19":80,"20":45,"21":76,"22":86,"23":83,"24":74,"25":56,"26":80,"27":54,"28":52}}]

【环境信息】:

  • 网络环境
  • 硬件开发板型号:DAYU200
  • 软件版本信息或tag节点:OpenHarmony3.2 beta1
  • 测试环境
  • 其他

【预置条件】:

【测试步骤】:
1、启动蓝牙扫描
2、在 BLEDeviceFind 中获取蓝牙扫描结果
【预期结果】:
1、只显示过滤条件中的蓝牙
【实际结果】:
1、现在所有BLE蓝牙
【恢复手段】:

【出现概率】:问题出现次数/实际测试次数
[5/5]
【定位信息】:

    1. Log、截图、多媒体文件等,所有和问题有关的信息:

评论 (1)

xjszzz9 创建了缺陷

未提供日志, 我们测试未复现, 问题先关闭,有问题再提并附上日志

程国红 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
1
https://gitee.com/openharmony/communication_bluetooth.git
git@gitee.com:openharmony/communication_bluetooth.git
openharmony
communication_bluetooth
communication_bluetooth

搜索帮助