Hello everyone,
I am working on a HFP unit which integrates CC2564MODA in a non-OS environment. The point is to connect smartphones with the WBS frequency (if the smartphone is compatible obviously).
As usual HFP units or other Bluetooth devices on the market, the first connection to the unit is intended by the user on the smartphone side (through Bluetooth menu).
For the next connection, it is up to the HFP unit to connect the smartphone in range, saving BT MAC address and link-key. This process is working fine.
The issue is :
When I connect the HFP Unit to a Samsung Galaxy S7 Edge running on Android 7.0, the first connection is working fine, audio transmitting at WBS frequency (16kHz).
But when the HFP unit automatically reconnect the smartphone, the audio transmitting is limited to 8kHz.
For the same phone running on Android 8.0, there is no more issue! (16kHz in both case)
Update the phone to Android 8.0 is not an option because my client wishes to cover must of Android version on the market.
So, I tried to analyze the difference between the 2 cases and there is mainly one:
the HFP unit receive the etHFRE_Codec_Select_Request_Indication three time for the non-working case (connection intended by the HFP unit) and only once for the working case (connection intended by a user on the smartphone).
Is this behavior due to my HFP unit firmware? (bad response to some event, ...)
Or is it just an Android bad Bluetooth integration with no workaround?
I join the logs for the cases.
Thanks in advance for any help.
Regards,
Alain.