We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I'm trying to understand this code "LPC2148 USB HID (Human Interface Device) Example". After enumeration an interrupt is always generated (for Endpoint IN 1). Then the report is sent to the PC. Why? How could i stop it? thanks, Joseph
Hi, I had a similar issue with LPC2378 and I solved it by using the feature reports on the control endpoint.
I'll be more clear: the data are continuously sent to the host because the host itself is requesting them periodically. This happens because the device defines an input report which, by its nature, is supposed to be requested by the host periodically on the IN endpoint 1. You can overcome this problem by replacing the input report with a feature report which will be conveyed on the IN endpoint 0. The host will now poll the IN endpoint 0 only after a specific request coming from the application (for instance, if the host application is written for windows with visual studio you'll have to use the function HidD_GetFeature - for more information have a look at the link msdn2.microsoft.com/.../ms790913.aspx).
Hope this helps.
Sebastiano