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

Parents
  • Hi, Sorry, I forgot to add all tags. I'm testing my program with Windows 10 PC. Maybe next week I will be able also to try sending output reports with Android. It's just scratch of my program based on NS example and I work on nRF52DK. I'm going to do some more test and today or on monday I'll send You the firmware by creating a case. Thank You very much for Your attention!

Reply
  • Hi, Sorry, I forgot to add all tags. I'm testing my program with Windows 10 PC. Maybe next week I will be able also to try sending output reports with Android. It's just scratch of my program based on NS example and I work on nRF52DK. I'm going to do some more test and today or on monday I'll send You the firmware by creating a case. Thank You very much for Your attention!

Children
No Data
Related