This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HFRE_Setup_Audio_Connection() Failure: -1001. Using Bluetopia stack in HFP application

Hi everybody, i'm trying to create an audio connection between HFP client and server using bluetopia stack.

The HFRE connection is open:

HFRE Open Port Confirmation, ID: 0x0002, Status: 0x0000.

but when I try to setup the audio connection I'll see the error:

HFRE_Setup_Audio_Connection() Failure: -1001.

 

reading HFREAPI.h i see

#define BTHFRE_ERROR_NOT_INITIALIZED                             (-1001)

What is not initialized, What I'm missing? I think there is no 'service level connection set up'. How can I do?

Thanks in advance for your help

Paolo