运行 hcitool lescan 和 btmon 时如何显示 ble 设备“名称”?

运行 hcitool lescan 和 btmon 时如何显示 ble 设备“名称”?

我曾经让它工作过一次,但无法再次工作。我在跑:

./btmon &

hcitool lescan

输出的形式为:

> HCI Event: LE Meta Event (0x3e) plen 43                   [hci0] 80215.374212
  LE Advertising Report (0x02)
    Num reports: 1
    Event type: Connectable undirected - ADV_IND (0x00)
    Address type: Public (0x00)
    Address: EC:FE:7E:14:B8:2E (BlueRadios, Inc.)
    Data length: 31
    Flags: 0x06
      LE General Discoverable Mode
      BR/EDR Not Supported
    Company: Taobao (424)
      Data: 03204c915b6101243d84bbfe04a405e601908190037809b3
    RSSI: -75 dBm (0xb5)

但它也曾经显示设备的名称。我怎样才能让它再次这样做?

答案1

sudo btmon | egrep 'Name|RSSI'

相关内容