Patent ID: 8296466

Claim:
A method for transmitting a data stream from a host to a peripheral device with a chip, the method comprising: generating a write token by a host, and embedding the write token in a first data stream; recording the write token in the host after the write token has been generated; transmitting a first write command to the peripheral device, the first write command being set to write the first data stream to the peripheral device; transmitting at least a portion of the first data stream to the chip, and recording the write token embedded in the first data stream; sequentially transmitting a plurality of read commands to the peripheral device until the host receives a first response message from the peripheral device, wherein data within a specific data region of the first response message are produced by the chip in response to receiving at least a portion of the first data stream, and the first response message comprises the write token, wherein the read commands are set to read data stored on a plurality of logical block addresses; and judging whether the write token embedded in the response message transmitted back from the peripheral device to the host is identical with the write token recorded in the host.