This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HID output report size and count

Hello,

I am developing a simple HID device with output report to receive data from PC. I took keyboard example as base project and I want to increase output report size (count) up to 64 bytes. 

I can successfully send data from PC to device when output report is not larger than 1 byte. If I change size or count in descriptor, data transmission is not working.

I use c# code to connect to device and send byte buffer. It does not show any errors, I have just "success" or "fail".

Device is recognized by the PC correctly.

Here is my descriptor

#define HID_CONTROL_REPORT_DESCRIPTOR() {                \
    0x05, 0x01,                    /* USAGE_PAGE (Generic Desktop)*/	\
    0x09, 0x00,                    /* USAGE (Undefined)*/	\
    0xa1, 0x01,                    /* COLLECTION (Application)*/	\
    0x75, 0x08,                    /*   REPORT_SIZE (1)*/	\
    0x95, 0x01,                    /*   REPORT_COUNT (1)*/	\
    0x15, 0x00,                    /*   LOGICAL_MINIMUM (0)*/	\
    0x25, 0x7F,                    /*   LOGICAL_MAXIMUM (127)*/	\
    0x09, 0x01,                    /*   USAGE (Consumer Control)*/	\
    0x91, 0x02,                    /*   OUTPUT (Data,Ary,Abs)*/	\
    0xc0                           /* END_COLLECTION*/	\
}

It works perfectly. But if I increase REPORT_COUNT, or REPORT_SIZE, it stops receiving data from PC

Parents Reply Children
No Data
Related