NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
4.3 Hands-free profile (HFP)
This section introduces the Ofono package used to dial, hang-up and answer telephone
calls, and details the configuration for the hands-free profile.
4.3.1 Ofono package
Ofono package
Ofono provides a mobile telephony application development framework with minimal and
easy-to-use APIs. Ofono is controlled through D-Bus.
ofonod is the daemon that provides the Ofono stack for interfacing mobile telephony
devices. For example, one can tell ofonod to send AT commands over
/dev/rfcomm0
by
calling the D-Bus method
org.ofono.at.Manager.Create
.
describes the AT commands used to dial, hang-up and answer the calls:
command
Description
ATA
Command used to answer a call
ATD
Command used to place a call to a phone number
AT+CHUP
Command used to hang up. This command causes the AG to end
an active call
Table 4. Hands-free profile AT commands
For more information on AT commands refer to the
Hands-Free Profile Specification
.
4.3.2 Hands-free profile configuration
Step 1 - Enable the host interface
• 88W8987
: Use
imx8mq-evk-usdhc2-m2.dtb
file to enable SDIO on M.2 connector
• 88W8997
: Use
imx8mq-evk-pcie1-m2.dtb
file to enable PCIe on M.2 connector
Note:
for details on interface enable.
Step 2 - Stop pulseaudio
If pulseaudio is running, run the command to stop pulseaudio:
root@imx8mqevk:~# killall pulseaudio
Command output example:
pulseaudio: no process found
root@imx8mqevk:~#
Step 3 - Update the sample rate in the configuration file
Edit the configuration file to change the default sample rate to 8000 samples per second:
root@imx8mqevk:~# nano /etc/pulse/daemon.conf
; default-sample-rate = 44100
default-sample-rate = 8000
root@imx8mqevk:~#
UM11490
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 2 — 29 January 2021
55 / 88