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.

BLE Advertising + HFP Discoverability

Hi!

I'm working on a Dual Mode device with the CC2564B, combining BLE + HFP. I'm currently using the random address function for the BLE service, setting it with GAP_LE_Set_Random_Address().

Currently, in order to determine a random address, I'm querying the BT address, subtract 1 to BD_ADDR0 (add 1 if its value is 0), and use that as the random LE address.

Now, I've set the BT mode to be generally discoverable, connectable and pairable. However, after setting the random LE address, I cannot see the HFP service anymore from my phone.


What am I missing?

  • Note: Before using GAP_LE_Set_Random_Address(), I used HCI_LE_Set_Random_Address(), and I could see both the HFP and the BLE services listed on my phone.

    However, the BLE service crashed when I tried to open a BLE connection. On the other hand, the HFP service worked perfectly.
  • Hi,

    Are you using the assisted hands free mode?
    Please note the below note from the datasheet -

    "The assisted modes (HFP 1.6 and A2DP) are not supported simultaneously. Furthermore, the assisted modes are not supported
    simultaneously with BLE or ANT."

    Regards,
    Gigi Joseph.
  • Hi Gigi!

    Thank you for your quick reply.

    By "assisted hands free mode", you mean if the CODEC is connected to the CC2564B audio port? If so, then yes, this is our configuration. However, we are not using WBS (basically, what was added in version 1.6 of the HFP protocol), so we are basically "using" version 1.5 of the HFP protocol, with 8kHz monoaural audio.


    My understanding, from both the datasheet, and other posts in the forum, is that BLE and HFP 1.6 (i.e. WBS) cannot be used together. But nothing is said about BLE + HFP 1.5.

    I have been able to see both the BLE and the HFP services on my cellphone, by setting up the BLE random address with HCI_LE_Set_Random_Address(), but this causes the BLE service to hang upon connection initiated by the phone. So, I tried replacing with GAP_LE_Set_Random_Address() and that's when I stop "seeing" the HFP service.

    As an alternative, could you please explain what is the correct procedure to alternarte the CC2564B's operation between HFP and BLE (i.e. Support both services, but not simultaneously). I am not clear on how to split the stack handling functions between startup and shutdown for each service, while keeping the stack consistent.

    Thanks!

    Nico.

  • Hi Nico,

    BLE + HFP 1.5 should be fine.
    Can you please share some logs? Snoop/Air sniffer/Logger?

    Regards,
    Gigi Joseph.