最終更新:2015-02-25 (水) 15:35:05 (3340d)  

USB/ハンドシェイクパケット
Top / USB / ハンドシェイクパケット

概要

  • Used to report the status of a data transaction and can return values indicating successful reception of data, command acceptance or rejection, flow control, and halt conditions.
  • Only transaction types that support flow control can return handshakes.
  • Handshakes are always returned in the handshake phase of a transaction and may be returned, instead of data, in the data phase.
  • Handshake packets are delimited by an EOP after one byte of packet field.

構造

フィールドPID
ビット数8

種類

  • 種別PIDコード定義
    ハンドシェイクACK0010データ正常受信
    NAK1010データ転送失敗
    STALL1110Endpoint is halted or a control pipe request is not supported
    NYET0110No response yet from receiver

メモ

  • 通信データの応答に利用。
  • ホストはACKのみ。受信エラー時は無応答
  • NAKSTALLはデバイスのみ送信できる。
    • NAK - デバイスが処理中でビジー
    • STALL - デバイスが停止中か、エンドポイントが存在しないなど