Using nRF51822, I define keys and pins as follows:
- Keyboard key
- Mouse left/right key
- Mouse move (up/down/left/right)
- 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