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 and Running
west build -b mimxrt1170_evk@B/mimxrt1176/cm7 samples/bluetooth/classic/handsfree
west flash
After flashing, the device works as a Hands-Free unit. After the Bluetooth Host stack is initialized, connectable and discoverable modes will be automatically enabled. The peer device AG (Audio Gateway) can discover and connect to the device.
When the SCO connection 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.
See Bluetooth samples for details.