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.

CC2541: CC2541 Change Connected Device

Part Number: CC2541

Hi, all.

I make Bluetooth Hid Keyboard and need some advise.

I use CC2541 and its my custom PCB.

My question is it :

I want to scan other devices when it connected one device.

For example, I connect my Keyboard to PC, and when I press button, I can find my keyboard in iPhone and connect to that.

Then when I type keyboard, it is typed on iPhone(not PC).

Is it possible? If so, how can I do that?

Thanks.

  • Hi Tabin,

    On CC2541, I believe you might have to disconnect one of the connections or at least modify the HOGP code to handle this.

  • Thanks, Joakim.

    I can disconnect my current device by using GAPRole_TerminateConnection() function, but it connect device agin.

    So, My question is :

    How can I erase device information(address, or what ever....) in CC2541?

    I used GAPBOND_ERASE_ALLBONDS, but it doesn't work well.

    How can I serch CC2541 in other device when it connected?

    I'm so sorry about I don't know bluetooth connection well.

  • Hi Tabin,

    I understand, but the pairing/bonding information still persists on the phone/desktop so I am not sure the use case is really feasible to be honest.