0
\$\begingroup\$

In the setup stage of a USB control transfer, the host sends both the SETUP and the DATA0 packets. Assuming that the device has received the SETUP packet, how long should it wait for the DATA0 packet? I wasn't successful at finding that information in the USB 2.0 spec.

\$\endgroup\$
1
\$\begingroup\$

Assuming that the device has received the SETUP packet, how long should it wait for the DATA0 packet?

There is no timeout here. The device must retain setup information until either

  • the control transfer has finished
  • another SETUP packet arrives (e.g. due to bus errors)
  • USB Reset/Disconnect is detected
\$\endgroup\$
  • \$\begingroup\$ USB 2.0 specs Figure 8-32? \$\endgroup\$ – Ale..chenski Sep 8 '18 at 0:17
  • \$\begingroup\$ @Ale..chenski well this figure actually mentions a timeout for the DATA packet, which is what made me wonder in the first place. \$\endgroup\$ – geschema Sep 10 '18 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.