PORTS Forum
Ports and Interfaces => USB => Topic started by: aung on October 03, 2012, 12:26:02 am
-
Hi All,
I would like to ask usb hid report size for my application. There are some data communication between PC and USB Hid device via feature report. I can send the data from PC to device 64 bytes only. If I send more than 64 bytes from PC, the device receive just the first 64 bytes only.
I have set the feature report size to 512 bytes in hid report descriptor.
Can I send more than 64 bytes of data via hid feature report which use end point 0 Output?
Thanks
Aung
-
Yes, if your device firmware supports it.
-
Hi Jan, Thanks for the answer.
That means HID driver on PC split the data transfer into the multiple transactions if the data size is more than packet size(64 bytes) for Control pipe(end point 0 output).
-
Yes, for OUT (host to device) reports.
-
Hi Jan, Thank you very much.
I have another problem regarding HID data transfer.
I sent 512 bytes of data from PC to Device via setfeature report. Then PC split into multiple packets (8) and each has 64 bytes. From the firmware side I receive 4 packets only ( Packet 1,3,5,7) and even number packets(2,4,6,8) are missing. I don't know why these packets are missing.
USB sniffer does not show the packet transactions. Please let me know which side(PC or Device) causing the issude?
-
A hardware protocol analyzer will show what is happening on the bus.
If you don't have a hardware analyzer, use whatever debugging tools you have to determine how the device firmware is responding to received data.
On receiving data, the endpoint should NAK new data until firmware has retrieved the received data.
-
I know the error. The data0/1 toggling is not correct.
-
Glad to hear you found the problem. Thanks for posting it.