Thanx for replying Jan.
On making the output report as a structure, I am able to receive the request SET_REPORT.
struct ReportOut
{
unsigned int id;
char ch[4];
}report,*preport;
report.id=0;
char str[]="aebi";
memcpy(&(report.ch),&str,(sizeof(str)+1));
But I am receiving just 'a' and that too on the 4th position of the receiving( buffer[3]). I expect that buffer[3] should be 'i'. What can I do for this?
I think there is some problem in the report descriptor.
{ 0x06,0x00,0xff,
0x09,0x01,
0xA1,0x01,
0x09,0x01,
0x15,0x00,
0x26,0xff,0x00,
0x75,0x08,
0x95,0x04,
0x82,0x03,0x01,
0x09,0x02,
0x15,0x00,
0x26,0xff,0x00,
0x75,0x08,
0x95,0x04,
0x92,0x03,0x01,
0xC0
}
I just want to send 4 byte data in the input report and 4 byte data in output report. Please help!!