控制转移的报告状态结果
Reporting Status Results for Control Transfers
考虑 USB 2.0 specification 的第 8.5.3.1 节:
Control write transfers return status information in the data phase of the Status stage transaction.
For control writes, the host sends an IN token to the control pipe to initiate the Status stage. The function
responds with either a handshake or a zero-length data packet to indicate its current status.
在 IN 事务中握手是由主机完成的,而不是设备!
问题是:设备如何为 IN 交易发送握手?
In IN transactions handshake is done by host, not device!
我相信有一些误解。
设备在 IN 事务(控制写入)的握手阶段发送 NAK/STALL 如果 在状态阶段没有数据包。
如果函数有对应IN令牌的数据包,函数在发送数据包后期待主机的ACK握手。
状态阶段的数据包是零长度包。
这是题中场景的说明:
另请参阅评论中的 link。
考虑 USB 2.0 specification 的第 8.5.3.1 节:
Control write transfers return status information in the data phase of the Status stage transaction.
For control writes, the host sends an IN token to the control pipe to initiate the Status stage. The function responds with either a handshake or a zero-length data packet to indicate its current status.
在 IN 事务中握手是由主机完成的,而不是设备!
问题是:设备如何为 IN 交易发送握手?
In IN transactions handshake is done by host, not device!
我相信有一些误解。
设备在 IN 事务(控制写入)的握手阶段发送 NAK/STALL 如果 在状态阶段没有数据包。
如果函数有对应IN令牌的数据包,函数在发送数据包后期待主机的ACK握手。
状态阶段的数据包是零长度包。
这是题中场景的说明:
另请参阅评论中的 link。