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 HID keyboard pairing only with a single device

Other Parts Discussed in Thread: CC2541

Hello,

I made modifications to cc2541 HiDEmuKbd example to send keystrokes to my PC. I'm using HM 10 module on the hardware side. It works well with my device, but it doesn't pair with any other. Pretty Strange. Any idea on how to solve this? I am running WIndows 10. I tried it with a MAC as well as a system running win8. Previously, the simple BLE example worked fine on multiple devices. And no pairing code is asked. Is that the way with the example?

Thanks

  • How does if fail pairing? What are the events and statuses received in the application pairing state callback on the cc2541? A sniffer capture would also be useful.
  • I fixed the issue. I was writing an ISR in the code, that somehow prevent new pairing but worked fine with already paired devices. But now I am totally confused with HAL usage. I am using HIDEmuKbd example. I understand that the application has a task id. We can associate an event flag with the corresponding task id using osal_set_event function. Once set whenever the flag is detected by the osal, it executes the process assigned to the task id in the taskArr array. I hope I'm right so far. But what I dont really know is how to link an a user defined flag to something that the user wants to detect. For eg, it want to raise a flag when an external falling edge triggered interrupt happens on a specific input pin so that OSAL can execute the process associated. I've been programming AVR devices, so the whole thing on scheduling events and stuff is confusing .

    Thanks