没有合适的资源?快使用搜索试试~ 我知道了~
首页Mass Storage Class – Bulk-Only Transport
Mass Storage Class – Bulk-Only Transport
4星 · 超过85%的资源 需积分: 20 23 下载量 37 浏览量
更新于2023-03-16
评论
收藏 391KB PDF 举报
非常详细地描述了USB的BBB链接过程。是英文的,由Shakthi Kannan著,2007
资源详情
资源评论
资源推荐
USB Simply Buffered (USB)
Mass Storage Class – Bulk-Only Transport
Copyright © 2007. Shakthi Kannan.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.
Environment
● Debian Etch 4.0.
● x86 system.
● Sandisk Cruzer Mini 256 MB USB thumb drive.
The mass storage devices that comply with USB Mass Storage Class Specifications are supported by the USB Mass Storage Class Working
Group. The various specifications are:
● USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport
● USB Mass Storage Class Bulk-Only Transport
● USB Mass Storage Class UFI Command Specification
● USB Mass Storage Class Bootability Specification
● USB Mass Storage Class Compliance Test Specification
Most mass-storage devices follow the Bulk-Only Transport specification. This specification is available in usbmassbulk_10.pdf. Reading
“USB Simply Buffered – Device Enumeration” is a pre-requisite for this documentation.
There is a Command/Data/Status protocol that is followed:
● Command Block Wrapper (CBW)
● Data Transfer (IN/OUT)
● Command Status Wrapper (CSW)
SCSI Primary Commands -2 (SPC-2) specification, and SCSI Block Commands – 2 (SBC-2) commands are used by USB, and follow SCSI
emulation for communication with the device for mass storage devices. The data transfer phase is optional if the host and device decide
not to have one.
So, the commonly used commands are:
● GetMaxLun
● INQUIRY
● TEST UNIT READY
● READ CAPACITY
● MODE SENSE
● REQUEST SENSE
● READ
● WRITE
The Sandisk USB thumb drive was connected to a GNU/Linux host PC, and it got automounted. A small file was copied to the disk, and
finally unmounted.
The commands can be issued anytime when the device is in configured state.
The packet details on the transactions for each of the requests/commands are explained in detail:
1. GetMaxLun
GetMaxLun request consists of the following transactions:
● SETUP transaction (->)
● IN transaction (<-)
● OUT transaction (->)
Host Device
SETUP transaction
IN transaction
OUT transaction
S
ET
U
P
D
A
T
A
0
A
CK
I
N
D
A
T
A
1
A
CK
O
U
T
D
A
T
A
1
A
CK
1.1 SETUP transaction
The SETUP transaction has the following three packets:
● SETUP packet (->)
● DATA0 packet (->)
● ACK packet (<-)
Host Device
S
ET
U
P
D
A
T
A
0
A
CK
1.1.1 SETUP packet
A SETUP packet consists of:
L M L M L M L M
PID !PID Function Address Endpoint CRC
(bits) 4 4 7 4 5
Values:
L M L M L M L M
1011 0100 1100 000 0000 01010
(bits) 4 4 7 4 5
USB is little-endian. LSB goes out of the wire, first.
Displaying from MSB to LSB:
M L
01010 0000 000 0011 0010 1101
Regrouping in groups of 4-bits:
M L
0101 0000 0000 0011 0010 1101
Hex values:
M L
5 0 0 3 2 D
剩余161页未读,继续阅读
chenxiangming2008
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5