Hi,
I am currently working on a prototype headset using the HFP 1.6 with WBS support for the 16kHz audio frequency.
The device is based on the CC2564MODA chip controlled by a STM32L4 micro controller.
I successfully integrated the Bluetopia stack on my ST chip and managed to control the CC2564 with HCI commands and I2S audio samples.
Now I have an issue with the sound my microcontroller is sending through I2S interface to the CC2564 module (which I will name transmitting sound).
Note that this problem is not present on the sound the CC2564 is sending to the microcontroller (which I will name receiving sound).
When a call is made to the phone connected to my headset, HFP callbacks are raised to configure the device into a CallWaiting state and the I2S audio interface is configured, depending on codec negotiation.
For my case, the codec is the WBS to reach the 16kHz audio frequency and my microcontroller is Master on the I2S interface.
Then I can easily pick up the call and the audio is working great, both in transmitting and receiving.
The problem shows up later; it can be 10 seconds, 30 seconds, or more after the call is made. The transmitting sound is suddenly no longer transmit to caller which means:
+ the caller to the phone connected to the headset is not hearing anything
+ on the headset side, I can still hear what the caller is saying
Of course I probed the I2S signal transmitting from the microcontroller to CC2564: the signal is still there with same quality. That's why I think the problem is more related to CC2564.
So I logged the CC2564 using BT Logger but I didn't find a clue. Maybe someone could help me seeing those logs (see attached files).
Thanks in advance,
Alain
Attached files:
in this scenario, the transmitting sound stopped working after 30 seconds of active call; on the log file, this problem came around line 8000 or more.BT_HFP_no_TX_sound_around_line8000.zip