NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
Step 17 - Write the voice settings
Use
HCI_Write_Voice_Setting
to write the required voice settings.
root@imx8mqevk:~# hcitool -i hci0 cmd 0x03 0x0026 0x60 0x00
Command output example:
< HCI Command: ogf 0x03, ocf 0x0026, plen 2
60 00
> HCI Event: 0x0e plen 4
01 26 0C 00
root@imx8mqevk:~#
Step 18 - Run Ofono test scripts
Go to the repository where Ofono test scripts are available:
root@imx8mqevk:~# cd /usr/lib/ofono/test/
Run the dial number test script
root@imx8mqevk:/usr/lib/ofono/test# python3 ./dial-number 1234567890
Command output example:
Using modem /hfp/org/bluez/hci0/dev_04_1B_BA_C7_92_36
/hfp/org/bluez/hci0/dev_04_1B_BA_C7_92_36/voicecall01
root@imx8mqevk:~/test#
Step 19 - Initialize the PCM interface
The command below initializes and configures PCM. This command should be sent in
any of the following situations:
•
To initialize PCM after starting voice call on a particular SCO connection
•
To switch call from SCO connection 1 to SCO connection 2
•
To route SCO connection 1 voice data to SCO connection 2
•
To de-initialize PCM once the voice call is over on a particular SCO connection
To initialize the PCM interface:
root@imx8mqevk:/usr/lib/ofono/test# hcitool -i hci0 cmd 0x3f 0x006f
0x00 0x00 0x08 0x00 0x00 0x00
Command output example:
< HCI Command: ogf 0x3f, ocf 0x006f, plen 6
00 00 08 00 00 00
> HCI Event: 0x0e plen 4
01 6F FC 00
root@imx8mqevk:/usr/lib/ofono/test#
Command to de-initialize the PCM interface
root@imx8mqevk:/usr/lib/ofono/test# hcitool -i hci0 cmd 0x3f 0x006f
0x01 0x00 0x08 0x00 0x00 0x00
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
62 / 88