减少蓝牙冗长

时间:2019-11-22 09:36:08

标签: bluetooth hci

在交互使用bluetoothctl时,它不断报告邻居设备的RSSI变化。大多数时候,这很烦人,因为在将笔记本电脑连接到蓝牙鼠标时,我不在乎同事iMac的RSSI:

$ bluetoothctl
Agent registered
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -82
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -81
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -82
[Bluetooth Mouse]# devices
Device 04:xx:xx:xx:xx:37 iMac de Bernard
Device 48:xx:xx:xx:xx:86 xxxxxxxxxxx
Device 53:xx:xx:xx:xx:26 xxxxxxxxxxx
Device 2C:xx:xx:xx:xx:B6 xxxxxxxxxxx
Device 04:xx:xx:xx:xx:87 xxxxxxxxxxx
Device 6C:xx:xx:xx:xx:88 xxxxxxxxxxx
Device 00:xx:xx:xx:xx:32 Bluetooth Mouse
Device 44:xx:xx:xx:xx:8E xxxxxxxxxxx
Device D4:xx:xx:xx:xx:8E xxxxxxxxxxx
Device 77:xx:xx:xx:xx:77 xxxxxxxxxxx
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -82
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -80
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 53:xx:xx:xx:xx:26 RSSI: -84
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -78
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -80
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -82
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -77
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -84
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -78
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -82
[Bluetooth Mouse]# connect 00:xx:xx:xx:xx:32
Attempting to connect to 00:xx:xx:xx:xx:32
Connection successful
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -81
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -84
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 53:xx:xx:xx:xx:26 RSSI: -86
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -78
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -81
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -80
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -81
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -79
[CHG] Device 2C:xx:xx:xx:xx:B6 RSSI: -81

是否有一种方法可以消除大多数“ [CHG]”消息? bluetoothctl --quiet种?

0 个答案:

没有答案