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

Can the nRF52832 support an HID joystick profile?

Hi:

Looking in both SDK12/13 I cannot see any examples related to an HID Joystick/Gamepad. It looks like somebody asked a similar question here: devzone.nordicsemi.com/.../

I did start to modify the mouse example to act as a joystick. modifying report_map_data to report a joystick. Windows then reported an error with the driver of the joystick.

Looking further into the code, I can see mouse specific API calls being made including &hids_init_obj.security_mode_boot_mouse_inp_rep.cccd_write_perm, hids_init_obj.is_mouse and ble_hids_boot_mouse_inp_rep_send.

Parsing the SDK I cannot find equivalents for a joystick and so I got to wonder if the SDK really supports joysticks. Apart from the HID descriptor, which is pretty straight forward, what is necessary to modify in the HID initialization to report a joystick? Particularly those calls to BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM and BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS.

Regards, JS

Related