ARTiGO A820 Linux BSP v3.2.1 Quick Start Guide
16
5.5.2.
Enabling Bluetooth
The following section explains setting up the Advanced Audio Distribution Profile
(A2DP) and Serial Port Profile (SPP).
5.5.2.1.
Setting Up Bluetooth A2DP Profile
The first step is to copy the pulseaudio-system.conf, bluetooth.conf and system.pa files
to /etc/dbus-1/system.d/ folder to replace the original pulseaudio-system.conf,
Bluetooth.conf and system.pa files in order to add the A2DP support into the ARTiGO
system. 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 EMIO-2531
Bluetooth MAC address and set up pairing mode.
$ bluetoothctl
[NEW] Controller 5C:F3:70:24:4B:2E(EMIO-2531 Bluetooth MAC address)
[
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
(select controller_mac_address)
[
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
(pair device_mac_address)
[
bluetooth
]# trust
00:1D:82:BC:C1:C4
(trust device_mac_address)
To enable the Bluetooth device, use the following commands:
[
bluetooth
]# connect
00:1D:82:BC:C1:C4
(connect device_mac_address)
[
bluetooth
]# info
00:1D:82:BC:C1:C4
(info device_mac_address)
[
bluetooth
]# quit