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.

Compiler/CC2564: How to distinguish between Bluetooth off and unmatched in HID mode?

Part Number: CC2564

Tool/software: TI C/C++ Compiler

 HI, I use the TI HIDdemo of CC2564B of STM32,Now I set the cc2564 module to devie,The cc2564 module has been connected to the Android Mobile。

       now The question:

       When the Bluetooth of my mobile phone is turned off, the control port of cc2564 device prints "hid close indication, ID: 0x0002", but after I cancel the Bluetooth pairing on my mobile phone, the control port of cc2564 device also prints "hid close indication, ID: 0x0002", so how can I distinguish these two events?

  • Because the IDs are the same for both events when the HID connection is closed there is no way to distinguish. Perhaps you can set a timer to distinguish the two assuming pairing takes a couple seconds before the connection is fully established (connection + pairing).

    Jesu