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

how to combine hid keyboard and hid mouse

Hi

  I want to combine mouse and keyboard function together,and I had  modify the example of hid mouse,show as below

 but the question I meet is that the PC and phone reaction when send the mouse message and no work when I send the keyboard message

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BLE_HIDS_DEF(m_hids, /**< HID service instance. */
NRF_SDH_BLE_TOTAL_LINK_COUNT,
INPUT_REP_BUTTONS_LEN,
INPUT_REP_MOVEMENT_LEN,
INPUT_REP_MEDIA_PLAYER_LEN,
INPUT_REPORT_KEYS_MAX_LEN,
OUTPUT_REPORT_MAX_LEN,
FEATURE_REPORT_MAX_LEN);
/**@brief Function for initializing HID Service.
*/
static void hids_init(void)
{
ret_code_t err_code;
ble_hids_init_t hids_init_obj;
ble_hids_inp_rep_init_t * p_input_report;
ble_hids_outp_rep_init_t * p_output_report;
ble_hids_feature_rep_init_t * p_feature_report;
uint8_t hid_info_flags;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and below is the service's detail 

Is there any thing do wrong?