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

HID get's disconnected

Hi,

I'm trying to implement a HID gamepad on nRF52832. Here is my situation: nRF is receiving frame over UART from master uC every 15 ms. Frame is being converted and sent as input report (9 bytes). Gamepad would also support feedback. While testing, feedback frames (output reports - 5 bytes) are being sent by PC program (interval shouldn't be larger than 15 ms).

Now, my problem. When I'm simultaneously sending and receiving reports with ~15 ms interval, nRF get's disconnected after few minutes with error 0x3D (BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE). When I test receiving or sending independently, even with the minimal interval, everything works fine.

Any thoughts how to improve this behavior? Feel free to ask any question if You need more information. I'd be grateful for any help.

Regards, Marcin

Related