Re: Bug in usbser.sys?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Philip Lukidis (pagefault0x0_at_hotmail.com)
Date: 10/26/04


Date: Tue, 26 Oct 2004 13:55:04 -0400


"Randy Aull (MSFT)" <randyau@microsoft.com> wrote in message
news:417d37d6$1@news.microsoft.com...
> This is actually expected behavior. From what you have said, I'm certain
> that your endpoint's MaxPacket is not greater than 64 bytes.
> USB IO will only complete in one of the following situations:
> 1. All of your requested data has been received (your buffer is full)
> 2. A short packet is received (any packet with fewer bytes than
MaxPacket)
> 3. An error occurs (stall condition on the endpoint)
> 4. The IO is cancelled
>
[snip]

Hi, I was just wondering if this holds true for all USB transfers types
(including isochronous transfers, regardless of which flags I select)?

I'd just like to run through a simple example in order to see that I
understand. For example, concerning isochronous input, if I send down an
I/O request with a buffer of size 10*wMaxPacketSize, and say on the USB the
5th packet sent by the device is half full, will my completion routine be
called, even though the buffer is not yet full?

If so, how I can perform a transfer with different packet sizes in one I/O
operation? Must the last packet be smaller than wMaxPacketSize?

thanks,

Philip Lukidis



Relevant Pages

  • Re: Bug in usbser.sys?
    ... A short packet is received (any packet with fewer bytes than ... I was just wondering if this holds true for all USB transfers types ... > I/O request with a buffer of size 10*wMaxPacketSize, ...
    (microsoft.public.development.device.drivers)
  • Re: Packet alignment constraint in WinUSB
    ... a buffer of 1024 bytes is required. ... application code is not concerned with USB packet sizing. ... there is no inherent USB controller limitation. ... simply reading a partial packet directly from the driver. ...
    (microsoft.public.development.device.drivers)
  • Re: Packet alignment constraint in WinUSB
    ... For every transfer that you have that is not a multiple of MaxPacket, you will experience a fixed overhead of an extra request for the last MaxPacket chunk of the buffer. ... the restriction on MaxPacket allignment is not imposed by the lower USB stack. ... It is in fact imposed by the WinUSB driver itself. ... application code is not concerned with USB packet sizing. ...
    (microsoft.public.development.device.drivers)
  • Re: USB Transfer function, IssueBulkTransfer, no data in pBuffer !
    ... USB host driver, ... buffer returned up. ... >>>I am using IssueBulkTransfer and it works PERFECTLY for Write ... >>> packet sniffer, and I can see everything over the wire. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [USB/MSDOSFS] Possible File System Corrupted
    ... my mobo non-support switch to USB 1.1... ... pci0: ... atapci0: port ... da0: 40.000MB/s transfers ...
    (freebsd-current)