en:bpi-r64:bluetooth
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r64:bluetooth [2020/01/15 17:55] – [issues] frank | en:bpi-r64:bluetooth [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Bluetooth ====== | ||
+ | |||
+ | need patch from https:// | ||
+ | |||
+ | change | ||
+ | |||
+ | usleep_range(12000, | ||
+ | |||
+ | to | ||
+ | |||
+ | msleep(50); | ||
+ | |||
+ | this is already done in my repo (5.4) | ||
+ | |||
+ | :!: CONFIG_BT_MTKUART needs to be module to load firmware (has to be done after rootfs is mounted) | ||
+ | |||
+ | < | ||
+ | root@bpi-r64: | ||
+ | root@bpi-r64: | ||
+ | root@bpi-r64: | ||
+ | root@bpi-r64: | ||
+ | root@bpi-r64: | ||
+ | root@bpi-r64: | ||
+ | |||
+ | #boot kernel with applied tty-patch and increased scpsys-sleep | ||
+ | </ | ||
+ | |||
+ | ===== bluetoothctl ===== | ||
+ | |||
+ | # bluetoothctl | ||
+ | |||
+ | < | ||
+ | [bluetooth]# | ||
+ | Menu main: | ||
+ | Available commands: | ||
+ | ------------------- | ||
+ | advertise | ||
+ | scan Scan Options Submenu | ||
+ | gatt Generic Attribute Submenu | ||
+ | list List available controllers | ||
+ | show [ctrl] | ||
+ | select < | ||
+ | devices | ||
+ | paired-devices | ||
+ | system-alias < | ||
+ | reset-alias | ||
+ | power < | ||
+ | pairable < | ||
+ | discoverable < | ||
+ | agent < | ||
+ | default-agent | ||
+ | advertise < | ||
+ | set-alias < | ||
+ | scan < | ||
+ | info [dev] Device information | ||
+ | pair [dev] Pair with device | ||
+ | trust [dev] Trust device | ||
+ | untrust [dev] | ||
+ | block [dev] Block device | ||
+ | unblock [dev] | ||
+ | remove < | ||
+ | connect < | ||
+ | disconnect [dev] Disconnect device | ||
+ | menu < | ||
+ | version | ||
+ | quit Quit program | ||
+ | exit Quit program | ||
+ | help Display help about this program | ||
+ | export | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [bluetooth]# | ||
+ | Changing power on succeeded | ||
+ | [bluetooth]# | ||
+ | Agent is already registered | ||
+ | [bluetooth]# | ||
+ | Default agent request successful | ||
+ | [bluetooth]# | ||
+ | Discovery started | ||
+ | [CHG] Controller 00: | ||
+ | [bluetooth]# | ||
+ | Device B4: | ||
+ | [bluetooth]# | ||
+ | [DEL] Device B4: | ||
+ | Device has been removed | ||
+ | [NEW] Device B4: | ||
+ | [bluetooth]# | ||
+ | Attempting to pair with B4: | ||
+ | [CHG] Device B4: | ||
+ | Request confirmation | ||
+ | [agent] Confirm passkey 953871 (yes/no): yes | ||
+ | [CHG] Device B4: | ||
+ | Connection successful | ||
+ | [CHG] Device B4: | ||
+ | ... | ||
+ | [CHG] Device B4: | ||
+ | Authorize service | ||
+ | [agent] Authorize service 00001108-0000-1000-8000-00805f9b34fb (yes/no): Request canceled | ||
+ | [CHG] Device B4: | ||
+ | [CHG] Device B4: | ||
+ | </ | ||
+ | ===== issues ===== | ||
+ | |||
+ | grep bluetooth / | ||
+ | | ||
+ | if it shows something like this on connect: | ||
+ | |||
+ | bluetoothd[197]: | ||
+ | |||
+ | you need to install pulseaudio-module-bluetooth and restart bluetoothd | ||
+ | |||
+ | apt install --no-install-recommends pulseaudio-module-bluetooth | ||
+ | systemctl restart bluetooth | ||