Hands-free
Overview
Application demonstrating usage of the Hands-free Profile (HFP) APIs.
Requirements
BlueZ running on the host, or
A board with Bluetooth BR/EDR (Classic) support
Building
See Bluetooth samples for details.
Running
The application works a Hands-Free uint. After the Bluetooth Host stack is initialized, the connectable and discoverable will be automatically enabled. The peer device AG (Audio Gateway) can discover and connect to the device.
When the SCO connect is established, the application will initialize the codec and pcm interface for voice streaming if the codec and pcm configurations are available.
The HFP application requires the following optional configuration options:
The codec depends on the devicetree alias named i2s-codec-rx and i2s-codec-tx.
The PCM interface depends on the devicetree alias named pcm-rxtx, or pcm-tx and pcm-rx.
This sample has been tested on mimxrt1170_evk@B/mimxrt1176/cm7.
Bluetooth Hands-Free voice streaming topology