Hi,
Now, the client is MCU and the host is CPU.
The host CPU sent 1.8KB datas(1000 frames, every frame including 2 head bytes and 16 data bytes) to usb-serial.
I have mapped a 1.8KB buf in the MCU and some frames are lost in the usb driver function USBEndpointDataGet.
I count the 16bytes datas and only about 827 can be read.
I have added 2 counters. One is for the ui32ByteCount greater than 16 bytes and the other is for ui32ByteCount equal to 16 bytes.
The code as following:
/* receive data from usb-serial, 1000 frames and 16bytes every frame. */
if (ui32ByteCount > 16)
{
fra_count1++;
}
else if (ui32ByteCount == 16)
{
fra_count2++;
}
The fra_count2 equals to 827.
Thanks.