bluetoothctl – 业余语言练习

bluetoothctl

bluetoothctl
Agent registered
[S-86]# help
Menu main:
Available commands:
-------------------
advertise   Advertise Options Submenu
scan        Scan Options Submenu
gatt        Generic Attribute Submenu
list        List available controllers
show [ctrl] Controller information

select                   Select default controller
devices     List available devices
paired-devices                 List paired devices
system-alias             Set controller alias
reset-alias Reset controller alias
power                  Set controller power
pairable               Set controller pairable mode
discoverable           Set controller discoverable mode
agent       Enable/disable agent with given capability
default-agent                  Set agent as the default one
advertise         Enable/disable advertising with given type
set-alias               Set device alias
scan                   Scan for devices
info [dev]  Device information
pair [dev]  Pair with device
trust [dev] Trust device
untrust [dev]                  Untrust device
block [dev] Block device
unblock [dev]                  Unblock device
remove Remove device
connect                   Connect device
disconnect [dev]               Disconnect device
menu  Select submenu
version     Display version
quit        Quit program
exit        Quit program
help        Display help about this program
export      Print evironment variables
[S-86]# scan
Missing on/off argument
[S-86]# scan on
[DEL] Device 68:4E:05:E7:34:3A SN-5JM8PR02038
Discovery started
[NEW] Device 68:4E:05:E7:34:3A SN-5JM8PR02038
[S-86]# paired-devices
Device 41:42:FF:28:DF:E0 S-86
Device 40:45:DA:29:C4:6A Topway
[S-86]# disconnect 41:42:FF:28:DF:E0
Attempting to disconnect from 41:42:FF:28:DF:E0
Successful disconnected
[CHG] Device 41:42:FF:28:DF:E0 Connected: no
[CHG] Device 41:42:FF:28:DF:E0 RSSI: -57
[NEW] Device 18:A7:F1:61:33:30 U-AC332F
[bluetooth]# connect 41:42:FF:28:DF:E0
Attempting to connect to 41:42:FF:28:DF:E0
[CHG] Device 41:42:FF:28:DF:E0 Connected: yes
Connection successful
[CHG] Device 41:42:FF:28:DF:E0 ServicesResolved: yes
[S-86]#
Published
Categorized as linux

Leave a comment

Your email address will not be published. Required fields are marked *