AnsweredAssumed Answered

LPC1837: USB Keyboard/Mouse device updating report

Question asked by vamshi krishna on Jul 1, 2017
Latest reply on Jul 17, 2017 by vamshi krishna

Hi All,

 

I am working on LPC1837 based development board, with "lpcopen_2_18_lpcxpresso_nxp_lpcxpresso_1837" SDK as start point. I am working on examples "usbd_rom_hid_keyboard" & "usbd_rom_hid_mouse" they work fine as USB keyboard/mouse device to host machine.

 

I see from the below logic of the code

even if the g_keyBoard.report is empty it is still writing to endpoint, this is creating a continuous stream of packets to host machine, I observed this using Bus-Hound software. Please give your inputs and how to fix this. I would like to send report only if valid data is present.

 

Thanks & Regards,

Vamshi G.

Outcomes