Quantcast

Detecting zero length packets

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Detecting zero length packets

Stan Wood
I've been running Kbench and xfer-iso-read for a couple of days trying different buffer
setting on my highspeed device for isochronous data.
 
I noticed in the output from xfer-iso-read that I have a couple of empty packets at the start
of some frames.   But by the pattern I transmitted I can tell I didnt miss any packets they
just got shifted back  a microframe or two in time.
 
From examining the APIs that Kbench uses it didnt look like there was a way to determine
if I had got empty packets. Note I have not looked at the binary log files.  My question is, "would i even see gaps in the buffer returned by the following excerpt from kBench.c?"
 
if (transferParam->Ep.PipeId & USB_ENDPOINT_DIRECTION_MASK)
{
handle->DataMaxLength = transferParam->Test->ReadLength;
success = K.ReadPipe(transferParam->Test->InterfaceHandle,
 transferParam->Ep.PipeId,
handle->Data,
handle->DataMaxLength,
NULL,
&handle->Overlapped);
}

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Loading...