Why I can not send more than 4 byte data to PC using USB_HID example code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why I can not send more than 4 byte data to PC using USB_HID example code

263 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by umitcelik on Mon Apr 25 06:32:03 MST 2011
I am using an LPC1769. I am just trying demo USB_HID code. The demo sends 4 byte to PC. When I try to increase buffer size as 64 byte, the program does not working after that. I could not capture any data from PC.

What I need to do for sending 64 or 128 byte or more data to PC. I could not achieve it. I would like to send bulk data to pc. Please help me?

When I set REPORT_SIZE = 4 it is working, but when I increase it > 4 byte, the program is not working.

        static int iCount;
static int fill = 0;

_iFrame++;
if ((_iFrame > 10000)) {
// send report (dummy data)
for(fill= 0; fill <16; fill++)
{
    abReport[fill] = fill;
}

iCount++;
USBHwEPWrite(INTR_IN_EP, abReport, REPORT_SIZE);

_iFrame = 0;
}

Thak you very much for your replies..
0 Kudos
1 Reply

255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Mon Apr 25 08:46:04 MST 2011
I have no idea:o, but try to modify the descriptors:
HID_ReportCount (x)
HID_ReportSize (x)
0 Kudos