July 30, 2024, 16:46
pi@raspberrypi:~ $ rfkill list all 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: hci1: Bluetooth Soft blocked: no Hard blocked: no 2: phy0: Wireless LAN Soft blocked: no Hard blocked: no
pi@raspberrypi:~ $ hciconfig -a hci1: Type: Primary Bus: USB BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:14 acl:0 sco:0 events:1 errors:0 TX bytes:3 acl:0 sco:0 commands:2 errors:1 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: PERIPHERAL ACCEPT hci0: Type: Primary Bus: UART BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:14 acl:0 sco:0 commands:2 errors:0 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: PERIPHERAL ACCEPT
pi@raspberrypi:~ $ systemctl status bluetooth ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled) Active: active (running) since Tue 2024-07-30 21:34:03 IST; 57min ago Docs: man:bluetoothd(8) Main PID: 742 (bluetoothd) Status: "Running" Tasks: 1 (limit: 3910) CPU: 219ms CGroup: /system.slice/bluetooth.service └─742 /usr/libexec/bluetooth/bluetoothd Jul 30 21:34:03 raspberrypi bluetoothd[742]: Bluetooth daemon 5.66 Jul 30 21:34:03 raspberrypi systemd[1]: Started bluetooth.service - Bluetooth service. Jul 30 21:34:03 raspberrypi bluetoothd[742]: Starting SDP server Jul 30 21:34:03 raspberrypi bluetoothd[742]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled Jul 30 21:34:03 raspberrypi bluetoothd[742]: src/plugin.c:plugin_init() Failed to init vcp plugin Jul 30 21:34:03 raspberrypi bluetoothd[742]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled Jul 30 21:34:03 raspberrypi bluetoothd[742]: src/plugin.c:plugin_init() Failed to init mcp plugin Jul 30 21:34:03 raspberrypi bluetoothd[742]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled Jul 30 21:34:03 raspberrypi bluetoothd[742]: src/plugin.c:plugin_init() Failed to init bap plugin Jul 30 21:34:03 raspberrypi bluetoothd[742]: Bluetooth management interface 1.22 initialized
pi@raspberrypi:~ $ sudo bluetoothctl Agent registered [bluetooth]# default-agent Default agent request successful [bluetooth]# version Version 5.66 [bluetooth]# scan on No default controller available
pairable onMissing, otherwise it can't connect...
BD Address: 00:00:00:00:00:00
bluetoothctl agent on pairable on scan onAnd make sure that the Bluetooth on the device to be connected is switched on and visible.
pi@raspberrypi:~ $ bluetoothctl Agent registered [bluetooth]# agent on Agent is already registered [bluetooth]# pairable on No default controller available [bluetooth]# scan on No default controller available
pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian
show... Check if the service is running
sudo systemctl status bluetoothSwitch on scan
bluetoothctl scan onTo make your Bluetooth adapter discoverable for other devices, use the following command
bluetoothctl discoverable onPair device
bluetoothctl pair FC:69:47:7C:9D:A3Note: Remember to replace the MAC addressFC:69:47:7C:9D:A3used in these instructions with the respective MAC address of your device. You can display the devices that are currently paired with your system by executing the following command
bluetoothctl paired-devicesYou can also use the following command to list devices that are within Bluetooth range of your computer
bluetoothctl devices