Hi,
I am currently working on a sort of a headset which use a Bluetooth connection between a phone and my device.
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.
I chose to include the Bluetooth HFP profile using the example given in the stack. It also works fine for my use case.
My issue is:
My device must automatically connect the phone in case of a disconnection due to distance or transmission errors.
But it must NOT try to reconnect the phone if the user decided to stop the connection to my device on the phone-side.
I currently use the event etHFRE_Close_Port_Indication to detect a disconnection and start a re-connection procedure but this event does not let me see if the connection was stop on purpose by the user.
Is there a way to differentiate the disconnection reason?
I looked through the TI forum but I did not find any information about the subject.
Thanks in advance,
Alain.