I am currently using USB Keyboard Device example from MQX 4.2.0. I have successfully integrated this example into current MQX 4.0.0 and I am able to send data to my laptop on USB port. The only problem I am facing is it is continuously sending NULL keys when no key is pressed causing unwanted traffic on USB bus. When I checked packets coming from standard USB keyboard on Wireshark, it does not send anything unless any key is pressed. How do I make the Keyboard example work like standard keyboard? I suspect this is the issue with the initialization of USB device.
Thanks!
Hi Omkar:
USB bus polling interval of interrupt transfer is configured in USB device (Endpoint) descriptor (bInterval parameter).
Regards
Daniel