====== Bluetooth ====== blutooth should work in 4.14 and 4.19 except BTLE http://forum.banana-pi.org/t/bpi-r2-new-image-ubuntu-16-04-v1-2-1-bt-and-wifi-ap-mode-are-working-fine-2017-11-27/4291 http://forum.banana-pi.org/t/bpi-r2-kernel-bluetouh-module/4592/46 root@bpi-r2-ubuntu:~# apt-get install bluez # #enable combo-chip via wmt-tools root@bpi-r2-ubuntu:~# wmt_loader root@bpi-r2-ubuntu:~# stp_uart_launcher -p /etc/firmware & root@bpi-r2-ubuntu:~# hciconfig -a hci0: Type: Primary Bus: SDIO 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:0 acl:0 sco:0 commands:0 errors:0 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: SLAVE ACCEPT #<<<<<< wrong mode for connect to client-devices root@bpi-r2-ubuntu:~# hciconfig -a hci0 lm master root@bpi-r2-ubuntu:~# hciconfig -a hci0: Type: Primary Bus: SDIO 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:0 acl:0 sco:0 commands:0 errors:0 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: MASTER #<<<<<<<<<<<<<<< now we are in master-mode root@bpi-r2-ubuntu:~# hciconfig hci0 up root@bpi-r2-ubuntu:~# hciconfig -a hci0: Type: Primary Bus: SDIO BD Address: 00:00:46:85:90:01 ACL MTU: 1021:4 SCO MTU: 184:1 UP RUNNING RX bytes:554 acl:0 sco:0 events:27 errors:0 TX bytes:386 acl:0 sco:0 commands:27 errors:0 Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x5b 0x87 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH SNIFF Link mode: MASTER Name: 'MTK MT8590 #1' Class: 0x001f00 Service Classes: Unspecified #<<<<<<<<<<<<<<<<<<<<<<<<< Device Class: Invalid Device Class! #<<<<<<<<<<<<<<<<<<<<<<<<< HCI Version: 4.0 (0x6) Revision: 0x0 LMP Version: 4.1 (0x7) Subversion: 0x0 Manufacturer: MediaTek, Inc. (70) root@bpi-r2-ubuntu:~# hciconfig hci0 class ff0104 #try to fix class root@bpi-r2-ubuntu:~# hciconfig -a | grep Class Class: 0xff0104 Service Classes: Positioning, Networking, Rendering, Capturing, Object Transfer, Audio, Telephony, Information Device Class: Computer, Desktop workstation root@bpi-r2-ubuntu:~# hciconfig hci0 features hci0: Type: Primary Bus: SDIO BD Address: 00:00:46:85:90:01 ACL MTU: 1021:4 SCO MTU: 184:1 Features page 0: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x5b 0x87 <3-slot packets> <5-slot packets> <3-slot EDR ACL> <5-slot EDR ACL> <3-slot EDR eSCO> Features page 1: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 root@bpi-r2-ubuntu:~# hcitool -i hci0 scan Scanning ... B4:9D:0B:5F:2A:B9 Aquaris X5 Plus root@bpi-r2-ubuntu:~# hciconfig hci0 piscan #make r2 visible to other devices root@bpi-r2-ubuntu:~# hcitool cc B4:9D:0B:5F:2A:B9 root@bpi-r2-ubuntu:~# hcitool auth B4:9D:0B:5F:2A:B9 HCI authentication request failed: Connection timed out root@bpi-r2-ubuntu:~# l2ping B4:9D:0B:5F:2A:B9 Ping: B4:9D:0B:5F:2A:B9 from 00:00:46:85:90:01 (data size 44) ... 44 bytes from B4:9D:0B:5F:2A:B9 id 0 time 5.33ms 44 bytes from B4:9D:0B:5F:2A:B9 id 1 time 14.76ms 44 bytes from B4:9D:0B:5F:2A:B9 id 2 time 46.78ms 44 bytes from B4:9D:0B:5F:2A:B9 id 3 time 22.62ms ^C4 sent, 4 received, 0% loss nothing happens on my mobile-phone during connect and auth. if i try to connect from mobile-phone to r2, i got a pin-request but i have no pin defined...hcid.conf does not exist with bluez4 ===== issues ===== Journalcontrol shows error $ journalctl | grep bluetooth bluetoothd[462]: a2dp-source profile connect failed for 18:F0:E4:FE:F5:58: Protocol not available this is maybe caused by a bluez5-bug $nano /etc/systemd/system/dbus-org.bluez.service append: ExecStart=/usr/lib/bluetooth/bluetoothd --compat (or -C) $systemctl daemon-reload $systemctl restart bluetooth thanks to user "yenseaman" from bananapi-forum