This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

At first pairing, all pins are working. However, after power on/off and then re-connect the device, only the keyboard key is working. This situation is not always happen.

Using nRF51822, I define keys and pins as follows:

  1. Keyboard key
  2. Mouse left/right key
  3. Mouse move (up/down/left/right)
  4. Media play/pause key

Pin 0 Mouse Right Pin 1 Mouse Left and Mouse break Pin 2 Keyboard "b" Pin 3 Media play/pause Pin 4 ~Pin 7 Mouse move (up/down/left/right)

At first pairing, all pins are working. However, after power on/off and then re-connect the device, only the keyboard key is working. This situation is not always happen.

Under this situation, the command "sd_ble_gatts_hvx(p_hids->conn_handle, &hvx_params)" will return error_code=0x08. Also, there is no RF signal transmitting when error code=0x08.

I can't find where the problem is, please let me know if there is any solution.keyboard&Mouse&media.rar

Related