This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2148 HID

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

Parents
  • 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

Reply
  • 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

Children
No data