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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

347件の閲覧回数
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 件の賞賛
返信
1 返信

339件の閲覧回数
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 件の賞賛
返信