Tool/software:
Hello, we are using CC2564CSTBTBLESW v 5.1.1.1 on a custom board without any operating system.
We use the HFP-AG profile to connect to an headphone. The connction consists of getting the correct port by using the SDP_Service_Search_Attribute_Request(), then using the HFRE_Open_Remote_HandsFree_Port() to actually open the data connection, followed by the SCO opening.
We measured a 12ms execution time for the SDP_Service_Search_Attribute_Request(). This is not a problem if the earphone is turned on, because the function call happens only once.
But if the earphone is turned off, then this function call is repeated periodically until the earphone is found. This delays the time-constrained execution of other processes.
Does it exists a workaround (e.g.: a non blocking version of SDP_Service_Search_Attribute_Request(), etc…) or another function to be used to quickly discover if the earphone is turned on?
We already tried to use “HFRE_Open_Remote_HandsFree_Port” but it has the same problem.
Thanks in advance for any suggestion