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:38 -0400]

>That was the literal requirement.  On each successful data packet
>transfer, the toggle changes between 0 and 1.  So after an odd number
>of data packets the toggle would be equal to 1 -- and that could be the
>source of a mismatch problem.

Is the purpose of the toggle to be a simple way to see if the host and device 
are out of sync? Is it that the host sends its toggle state to the device and 
the device refuses the packet and signals an error if its toggle state doesn't 
match, or something like that?

Assuming I'm at least close to being right, is it also that a freshly opened 
usbfs device starts with its toggle state at 0 (or 1)? If so, how would the 
device know that the usbfs device has been closed and reopened, and, therefore, 
that the host's toggle state may have switched because of that?

-- 
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