AnsweredAssumed Answered

USB HID - Keyboard Mouse Examples

Question asked by TOM TALKINGTON on Mar 21, 2019
Latest reply on Mar 26, 2019 by Felipe García

I am using two boards one running the keyboard and mouse host examples and one running the keyboard and mouse device examples. Unfortunately, the device examples are set up to constantly output data from the mouse or keyboard device.  When I plug the boards together I see a stream of data from the keyboard / mouse HID eval board on my host eval board.  If I plug in an actual keyboard to my hose eval board I only see data when I press a key.  


How do I make the device eval board behave this way?  When it is plugged into the host eval board the USB_DeviceHidKeyboardCallback is constantly being executed and it appears that it must result in a USB_DeviceHidSend call to function properly.


If I plug an real keyboard in the USB_DeviceHidKeyboardCallback is only executed when I press a key.


How do I get this behavior in the example code?


HID example is the frdmkl27z_dev_composite_hid_mouse_hid_keybaord_bm