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 USB HID problem

Hello, I have USB HID sample from NXP (ics.nxp.com/.../an10736.zip) and it work fine. Problem is the number of USB_HID_REPORT_OUT. When I set USB_HID_REPORT_OUT 1 it is working fine and data is recieved from OutReport[0].
Then I set USB_HID_REPORT_OUT 3 and when I need to read data from OutReport[1], then readed data are 0x00. When I look to the comunication with USBTrace, I see, that the data is sended from PC (0x01,0xF0,0x0F), but in OutReport[1] it isn't (it si 0x00). Have you got any idea, where is problem? Is here someone, who tested this sample?

Parents
  • Thanks Tsuneo Chinzei,

    sorry for replying late; i were busy in my sisters wedding and not able to reply.

    I tried as per your instruction. it is working.
    but i having some doubt.

    in my application InReport[90]. USB_HID_REPORT_IN = 63
    my intention to read 90 bytes from device to PC.
    when sending "START" from PC to device.

    i got help from your concept.

    but i need to poll from PC side after every interval to get remainig bytes after once "START" or SetOutReport.

    I am using Keil's Utility HID_Client (VC++ 6 application) came with ARM toolchain. i alter it as per my need.

    again after every time polling it gives same data.
    that "hid_input_sent" gives only 63 bytes. not further bytes after polling it again.

    if you give me ur mail id. i will send you my entire workspace LPC2148 and VC++.

    thanks again for your valuable time.

Reply
  • Thanks Tsuneo Chinzei,

    sorry for replying late; i were busy in my sisters wedding and not able to reply.

    I tried as per your instruction. it is working.
    but i having some doubt.

    in my application InReport[90]. USB_HID_REPORT_IN = 63
    my intention to read 90 bytes from device to PC.
    when sending "START" from PC to device.

    i got help from your concept.

    but i need to poll from PC side after every interval to get remainig bytes after once "START" or SetOutReport.

    I am using Keil's Utility HID_Client (VC++ 6 application) came with ARM toolchain. i alter it as per my need.

    again after every time polling it gives same data.
    that "hid_input_sent" gives only 63 bytes. not further bytes after polling it again.

    if you give me ur mail id. i will send you my entire workspace LPC2148 and VC++.

    thanks again for your valuable time.

Children
No data