ARTiGO A820 Linux BSP v3.2.1 Quick Start Guide
17
The default audio output setting for the ARTIGO A820 is HDMI device.
To list all the available audio output devices, use the following command:
$ pactl list short sinks
0 alsa_output.platform-sound-hdmi.23.analog-stereo module-alsa-card.c s16le 2ch 48000Hz
SUSPENDED
2 bluez_sink.00_1D_82_BC_C1_C4 module-bluez5-device.c s16le 2ch 48000Hz IDLE
From the output, we can see the following:
•
0 = HDMI device
•
2 = Bluetooth device
To set up the audio output to a Bluetooth device, use the following command:
$ pacmd set-default-sink 2
To set up the audio output to HDMI device, use the following command:
$ pacmd set-default-sink 0
5.5.2.2.
Setting Up Bluetooth SPP Profile
The ARTiGO A820 supports SPP server mode and SPP client mode.
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
[
bluetooth
]# scan on
Discovery started
[
CHG
] Controller 5C:F3:70:24:4B:2E Discovering: yes
[
NEW
] Device 5C:F3:70:25:DD:33 BlueZ 5.25
…
[
bluetooth
]# scan off
[
bluetooth
]# devices
Device 5C:F3:70:25:DD:33 BlueZ 5.25
Device …
[
bluetooth
]# pair
5C:F3:70:25:DD:33
(pair device_mac_address)
[
bluetooth
]# trust
5C:F3:70:25:DD:33
(trust device_mac_address)
[
bluetooth
]# quit
SPP server mode:
If you do not change the listen channel number, the service will automatically use the
default channel number. Make sure the server or client mode is using the same
bluetooth channel number.
To set up the SPP server mode and allow other devices to connect, use the following
commands:
$ sdptool add SP
Serial Port service registered
$ rfcomm listen hci0
Waiting for connection on channel 1
Connection from 5C:F3:70:25:DD:33 to /dev/rfcomm0
Press CTRL-C for hangup
Содержание ARTiGO A820
Страница 1: ...1 00 10262016 160700 QUICK START GUIDE ARTiGO A820 Linux BSP v3 2 1...
Страница 28: ......