U盘BOT存储UFI协议TEST UNIT READY命令:0x00
TEST UNIT READY提供了一种检查UFI设备是否就绪的方法。
TEST UNIT READY不是用于自检的。如果UFI设备将接受适当的介质访问命令而不返回检查条件状态,则该命令应返回良好状态。如果UFI设备无法运行或处于需要主机操作才能使UFI设备准备就绪的状态,UFI设备应返回检查条件状态,且检测键为NOT ready(未准备就绪)。
This is not a requestfor a self-test. If the UFI device would accept an appropriate medium-access command without returning CHECK CONDITION status, this command shall return a GOOD status. If the UFI device cannot becomeoperational or is in a state such that a host action is required to make the UFI device ready, the UFI device shall return CHECK CONDITION status with a sense key of NOT READY.
UFI设备可能会使TEST UNIT READY失败,检测键为NOT READY,附加检测代码为LOGICAL DRIVE NOT READY–需要初始化。清除错误后,主机应尝试发出启动命令块.
The UFI device may fail a TEST UNIT READY command with a sense key of NOT READY and an Additional
Sense Code of LOGICAL DRIVE NOT READY – INITIALIZATION REQUIRED. After clearing the error,
the host should try issuing a START command block
一般一个正常的U盘抓包没有看到过这个命令,不过本人在虚拟U盘(http://www.usbzh.com/article/detail-920.html )的时候,如果某些命令没有正确返回或者逻辑状态错误,系统会下发大量的EST UNIT READY命令。