VAB-820 Linux BSP v3.2.0 Quick Start Guide
26
5.7.2. Enabling Bluetooth
The following section explains setting up the Advanced Audio Distribution Profile
(A2DP) and Serial Port Profile (SPP).
5.7.2.1. Setting Up Bluetooth A2DP Profile
To add A2DP support to the VAB-820, first copy and replace the
pulseaudio-system.conf,
bluetooth.conf
to the
/etc/dbus-1/system.d
folder. Next, copy and replace the
system.pa files
to the
/etc/pulse/folder
. These files are located in the EVK/BT_Config
folder of the BSP.
To enable the Bluetooth service, use the following command:
$ rfkill unblock bluetooth
$ hciconfig hci0 up
$ hciconfig hci0 piscan
$ /usr/lib/bluez5/bluetooth/bluetoothd -C -d &
Use the following commands to run the “bluetoothctl” to show the Bluetooth MAC
address and set up pairing mode for the
EMIO-2531 or EMIO-5531
.
$ bluetoothctl
[NEW] Controller 5C:F3:70:24:4B:2E
[bluetooth]#
[bluetooth]# show
Controller 5C:F3:70:24:4B:2E
Name: BlueZ 5.25
Alias: BlueZ 5.25
…..
[bluetooth]# select 5C:F3:70:24:4B:2E
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 5C:F3:70:24:4B:2E Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 5C:F3:70:24:4B:2E Discovering: yes
[NEW] Device 00:1D:82:BC:C1:C4 Jabra BT-530
…
[bluetooth]# scan off
[bluetooth]# devices
Device 00:1D:82:BC:C1:C4 Jabra BT-530
Device …
[bluetooth]# pair 00:1D:82:BC:C1:C4
[bluetooth]# trust 00:1D:82:BC:C1:C4
To enable Bluetooth device, use the following commands:
[bluetooth]# connect 00:1D:82:BC:C1:C4
[bluetooth]# info 00:1D:82:BC:C1:C4
[bluetooth]# quit