How to use bluetoothctl like hcitool lescan to report repeated proximity beacons

前端 未结 2 1185
暖寄归人
暖寄归人 2021-02-02 13:50

I can use hcitool lescan with the --duplicates flag to capture periodic LE Advertising Reports (proximity beacons) from two nearby BLE devices:

$ sudo hcitool le         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 14:18

    Just found the following to work for me (Ubuntu 18.04.1, bluez 5.48):

    $ bluetoothctl
    [bluetooth]# scan on
    [bluetooth]# menu scan
    [bluetooth]# clear
    SetDiscoveryFilter success
    [NEW] Device de:ad:be:ef:ca:fe SampleDev
    [CHG] Device de:ad:be:ef:ca:fe RSSI: -73
    [CHG] Device de:ad:be:ef:ca:fe RSSI: -73
    [CHG] Device de:ad:be:ef:ca:fe RSSI: -74
    

    Looks like there is a default scan filter active that blocks most advertisements.

提交回复
热议问题