Re: First bulk write often doesn't seem to reach device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[quoted lines by Alan Stern on 2009/03/23 at 17:10 -0400]

>A bulk write can contain an arbitrary number of data packets.  The
>actual number depends on the length of the data and the maxpacket size
>of the bulk-out endpoint.  Each data packet other than the last one
>will have size equal to the maxpacket size.  The size of the last
>data packet might be equal to maxpacket or it might be smaller -- it
>might even be 0.
>
>I don't know what the maxpacket size is for your device, but let's say 
>it is 64 (which is typical for full-speed devices).

It is 64.

When you spoke of an even vs an odd number of packets being sent to the device, 
is that a literal requirement, or is the requirement that all the packets for 
an operation be sent?

The packet size is 64 but the number of bytes written is always 43, so that'd 
mean that each write uses only one packet. Should I need to care that an even 
number of packets are sent, or is the device misbehaving?

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | 2011 May 21 is the Day of Judgement.
EMail: dave@xxxxxxxxx | Canada  K2A 1H7   | 2011 Oct 21 is the End of the World.
http://FamilyRadio.com/                   | http://Mielke.cc/bible/
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux