You are describing the device
sending the zero length packet to the
host. That is fine and legal. The host sending the device a
zero
length packet is not really
d
-----Original Message-----
From: xxxxx@lists.osr.com
[
mailto:xxxxx@lists.osr.com] On Behalf Of stewart
hamilton
Sent: Tuesday, November 29, 2005 5:05 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Writing zero length bulk packets
They are perfectly legal and in fact are one of the fundamental
ways of
indicated the termination of a bulk transfer.
Basically by detecting a short packet ( one which has less bytes
than
the
maximum packet size specified for the pipe) you can determine when a
transfer is complete. To handle the case where the message is an
exact multiple of the maximum packet size, one
completes the message
with packet of zero length … which is the ultimate in a
"short
packet".
>I believe zero-length bulk OUT packets are simply illegal in the
USB
>specification. What are you trying to accomplish?
>
>– arlie
>
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[
mailto:xxxxx@lists.osr.com] On Behalf Of stewart
hamilton
>Sent: Tuesday, November 29, 2005 4:48 PM
>To: Windows System Software Devs Interest List
>Subject: [ntdev] Writing zero length bulk packets
>
>The example Walter Oney gives in his book on writing WDM drivers
,
>“Programming the Windows Driver Model”. Edition 1. Does not
support
writing
>zero length bulk packets.
>
>Specifically in his StartIo routine he checks for a length = 0
and
bypasses
>the bulk send.
>
>Modifying the StartIo routine to send this packet, in my case does
not
work,
>as the Irp MdlAddress is zero.
>
>Has anybody modified this code to support ZLP and if so could
they
please
>indicate where I should look or better still provide an example
>
>Thanks in advance
>Stewart
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>
http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@stonestreetone.com
To
>unsubscribe send a blank email to
xxxxx@lists.osr.com
>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>
http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as:
xxxxx@varianinc.com
>To unsubscribe send a blank email to
xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com