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

USB HID reports longer than 64 bytes on lpc2141

Hi everyone,

I'm working on a custom system monitoring device and have a requirement for a USB HID input report longer than 64 bytes. From what I've read, it's possible to send it as multiple transactions but I can't figure out how to make Keil's USBHID sample code do it.

Any ideas?

Thanks,
Jason

Parents
  • Okay, another related question. I also need to be able to send the controller long reports (140 bytes) via a control transfer. I've verified that the report is being sent and the controller is receiving them (64, 64, and 12). I can't figure out how to modify the HIDUSB code to parse the pieces together. Any help would be appreciated.

    Jason Lewis

Reply
  • Okay, another related question. I also need to be able to send the controller long reports (140 bytes) via a control transfer. I've verified that the report is being sent and the controller is receiving them (64, 64, and 12). I can't figure out how to modify the HIDUSB code to parse the pieces together. Any help would be appreciated.

    Jason Lewis

Children
  • Sorry for my late response,

    "I also need to be able to send the controller long reports (140 bytes) via a control transfer."

    You can support OUT report over control transfer, but primarily OUT report is handled by an OUT endpoint.
    - For the firmware, handling of control transfer is heavy than interrupt endpoint
    - For Windows XP and Vista host app, WriteFile primarily goes to OUT endpoint.

    In this topic, we discussed about the way to add OUT endpoint to HID.
    You can extend this method for the greater report size than 64, as you did it to the IN endpoint.

    "LPC2148 usb controller"
    http://www.keil.com/forum/docs/thread11137.asp

    Instead of OUT report, Feature report is primarily handled by control transfer. If you want to exercise the control write transfer implementation, I'll guide you.

    Tsuneo