Hi. We are using the CC2564C with Bluetopia stack for ST32F437ZI processor and free Rtos, and H5 protocol (no hw RTS/CTS connections).
We need to connect the TI bluetooth module to a wireless bluetooth headset.
We successfully make all the following steps, that is the Inquiry, than Pair and pincode set, open remote server, but it fails for the OPEN PORT that gives us "2" as answer code.
MAy you help us in order to pass this step?
AFTER THE INITIALIZATION:
1- GAP_Perform_Inquiry(BluetoothStackID, itGeneralInquiry, 0, 0, 10, 5, GAP_Event_Callback, 0);
2- Pair(…) [remote BD_ADDR of an HEADSET]
3- PINCodeResponse(…) [code used 0000 or 1234]
4- OpenRemoteServer(…) [remote BD_ADDR, port 1 or 2 or 20]
ALWAYS:
(#define HDSET_OPEN_PORT_STATUS_CONNECTION_REFUSED 0x02)
Regards
Fabio