Skip to content

Instantly share code, notes, and snippets.

@WiseLord
Created March 31, 2021 13:29
Show Gist options
  • Save WiseLord/992985b57d0113efbe92ee3ad139911b to your computer and use it in GitHub Desktop.
Save WiseLord/992985b57d0113efbe92ee3ad139911b to your computer and use it in GitHub Desktop.
Connected: no on previously registered device
pi@hms1110:~ $ bluetoothctl
Agent registered
[bluetooth]# 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 <ctrl> Select default controller
devices List available devices
paired-devices List paired devices
system-alias <name> Set controller alias
reset-alias Reset controller alias
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
advertise <on/off/type> Enable/disable advertising with given type
set-alias <alias> Set device alias
scan <on/off> 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 <dev> Remove device
connect <dev> Connect device
disconnect [dev] Disconnect device
menu <name> Select submenu
version Display version
quit Quit program
exit Quit program
help Display help about this program
export Print evironment variables
[bluetooth]# devices
Device 08:60:6E:2F:CE:C4 Nexus 7
Device 50:8F:4C:D7:22:8C Redmi 4X
[CHG] Device 50:8F:4C:D7:22:8C Connected: yes
[CHG] Device 50:8F:4C:D7:22:8C Connected: no
[bluetooth]# remove 50:8F:4C:D7:22:8C
[DEL] Device 50:8F:4C:D7:22:8C Redmi 4X
Device has been removed
[NEW] Device 50:8F:4C:D7:22:8C Redmi 4X
[CHG] Device 50:8F:4C:D7:22:8C Modalias: bluetooth:v00E0p1200d1436
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C ServicesResolved: yes
[CHG] Device 50:8F:4C:D7:22:8C Paired: yes
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 50:8F:4C:D7:22:8C UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller B8:27:EB:95:9B:A2 Discoverable: no
[Redmi 4X]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment