usb-mass-storage-netsilicon-ppt
第11章 移动存储器.ppt

5. MS卡 MS卡(Memory Stick,记忆棒)是由索尼公司独家研制 的,于1999年底推出。主要供索尼公司的各种产品使用,有 长棒(Memory Stick Pro,50mm×21.5mm×2.8mm)和短 棒 (Memory Stick Pro Duo,31mm×20mm×1.6mm)等 两种,背面有保护开关。(俗称)。
(3)如果闪存盘会用在许多地方,就尽量购买无驱动型 的,不然到时候还要驱动程序。
所谓移动硬盘,主要指采用计算机标准接口(USB/IEE1394) 的硬盘,就是用小巧的笔记本硬盘加上特制的配套硬盘盒构成 的一个便携的大容量存储系统,如图11.3所示。
图11.3 USB移动硬盘 USB线(白)、电源线(黑)
闪存盘从主要分为三种类型:基本型、增强型、加密型, 价格也依次递增。
(1)基本型只提供了必需的数据读写功能,性能也比较 一般,但由于技术含量最低,因此价格也相对最便宜。
(2)增强型是在基本型的基础上增加了系统启动、数据 保护等功能,而且有些产品还拥有更高的读写速度,固化了各 种软件等等。
(3)加密型则是专门针对商业用户开发的,提供了密码 保护和文件加密功能,有些产品还有自动压缩功能。
3. 移动硬盘盒的电源 市场上销售的2.5in硬盘盒都不配备电源,在USB数据线
上多了一个USB插头,用于从计算机的USB接口上取电。 3.5in移动硬盘盒都配备有交直流转换器。
4. 移动硬盘盒的材质 目前常见的移动硬盘盒用料一般有塑料、铝以及铝镁合金
3种。目前,品牌大厂及正规厂商的移动硬盘盒大都采用铝质 材料,甚至是铝镁合金的材质,极大帝减轻了硬盘盒的重量并 具有较好的散热效果,可以使硬盘更长时间、更加稳定地工作。
第8章 移动存储设备课件

可以利用组策略gpedit.msc来禁止U盘中的可执行文件的运行:
在"运行"中输入"gpedit.msc" 计算机配置---Windows设置---安全设置---软件限制策略---其它策略--右击新建路径规则----添加你要限制的盘符---确定 这样U盘中的所有可执行文件都不会运行,若要运行,重复以上动作,设为 不受限即可.
第四步、可以加入其他工具 还可以加入一些系统维护的工具,如ghost、pqmagic8 dos版、 smartdrv.exe、FORMAT,XCOPY等工具。
第五步、使用U盘 在BIOS设置第一引导设置为USB-HDD就行了。当然先启用主板对 USB的支持.如果不懂的话就设置BIOS为默认值再设置BIOS的第一引导设 置为USB-HDD。
创基于USB接口,采用闪存(Flash Memory)介质的新一代存 储产品。闪存盘,是中国在计算机存储领域二十年来唯一属于中
国人的原创性发明专利成果。它的缔造者——深圳市朗科科技有
限公司亦因此而驰名中外。
U盘的发展历史 朗科公司
1999年05月 朗科公司成立 同年,朗科研发出全球第一款USB闪存盘,成功启动了全球闪存盘行业 2001年04月 2001年06月 2001年12月 2002年08月 优盘牌加密闪存盘问世 优盘牌无驱动闪存盘问世 第一代GSM优信通牌USB无线上网卡问世 朗科第一代USB2.0的U2型优盘牌闪存盘问世
第8章 移动存储设备
USB闪存盘、移动硬盘、可擦写光盘等存储设备,不需 打开机箱,通过外部接口或相应的设备,可方便地对其进行读 写操作,这类设备统称为移动存储设备或移动存储器。
8.1 移动存储设备的分类
1.按是否需要驱动器分类 按是否需要驱动器分为有驱动器型和无驱动器型。 2.按存储介质分类 按存储介质分为磁介质、光介质和半导体介质。 3.按接口分类 按接口分为专用接口型和通用接口型。
USB Mass Storage Support用户指南说明书

USB Mass Storage Support ..............................................................................................Section 1 Introduction...........................................................................................1-11.References................................................................................................1-12.Abbreviations............................................................................................1-13.Supported Controllers...............................................................................1-14.Introduction...............................................................................................1-15.Operating Systems....................................................................................1-16.LUN support..............................................................................................1-27.Minimum size under windows...................................................................1-2Section 2Memory Targets....................................................................................2-31.Memories Supported.................................................................................2-32.Dataflash card...........................................................................................2-3Section 3Frequently Asked Questions.................................................................3-51.How to use my USB Mass Storage Device under Windows 98SE ?........3-52.How can I disconnect my Mass Storage Device ?....................................3-53.I can't see the "Safe Disconnect" icon in the System Tray !.....................3-54.My device is enumerated but I can't see it under Linux !..........................3-65.Procedure for support 40 Invalid block per 1024 block.............................3-6Section 1Introduction1. References Universal Serial Bus Specification, revision2.0Universal Serial Bus Class Definition for Communication Devices, version 1.1USB Mass Storage Overview, revision 1.2USB Mass Storage Bulk Only, revision 1.02. Abbreviations USB: Universal Serial BusVID: Vendor IdentifierPID: Product IdentifierLUN: Logical Unit Number3. SupportedControllersAT89C5130/31A & AT8xC5122D4. Introduction The aim of this document is to support the developer for Mass Storage Application.5. OperatingSystems The following OSs support the USB Mass Storage Device class:•Linux: USB mass storage is available in kernel 2.4 or later •USB mass storage is available in Mac OS 9/X or later •Windows XP: native driver•Windows 2000: native driver•Windows Me: native driver•Windows 98SE: Vendor specific driver requiredIntroductionsupport In order to support multiple LUN, please verify that you have correctly intalled the latest 6. LUNservice pack of your OS. Multiple LUN will works on:•Windows XP SP1 or more•Windows 2000 SP4 or moresize7. MinimumThe minimum number of sectors to declare in order to be recognized by windows is 8.under windowsSection 2Memory Targets1. MemoriesSupported2. Dataflash cardDo not remove card during read/write action Because of the low write speed in dataflash, the Operating System can report an error when writing a file, but the file is correctly written. In case of failure, format the data flash using the Operating System tools.3. DataflashBecause of the low write speed in dataflash, the Operating System can report an error when writing a file, but the file is correctly written. In case of failure, format the data flash using the Operating System tools.SupplierRefTypeManuf, Dev Code (hex)Capacity (MB)Supported bydriver Samsung MT29F2G08AACWG Nand Flash 2C, DA 2561x2KB,2x2KB Samsung K9K1G08U0A Nand Flash EC, 79, xx, C01281x512B Atmel AT45DB642DataFlash -81x512B Atmel AT45DB321DataFlash -41x512BAtmelAT45DB002 AT45DB004 AT45DB008DataFlash Card-Section 3 Frequently Asked Questions1.How to use myUSB MassStorage Deviceunder Windows98SE ?There is no native driver to support USB Mass Storage in Windows 98SE. Atmel pro-vides drivers derivated from the SDK/DDK Microsoft example. For ATMEL products, we deliver this driver. The mass_storage_driver_for_Win98SE.zip file is in \Atmel\c5131-mass-storage-complete-x_x_x\doc folder.This driver is composed of 3 files:•atusbms.inf file•atusbms.sys file•atusbms.pdr fileThe atusbms.sys and atusbms.pdr files are the system drivers for Windows 98SE.The .inf file describes the driver to load for your application. The application is recog-nized using the Vendor ID (VID) and Product ID (PID). Because you will use your own VID/PID in the final application, you have to modify the .inf file with the corresponding VID/PID. After driver installation :atusbms.inf is located in C:\windows\inf\atusbms.sys is located in c:\windows\system32\drivers\atusbpdr.pdr is located in c:\windows\system\iosubsys\2. How can Idisconnect myMass StorageDevice ?Under Windows, each Mass Storage device appears in the System Tray. Click on the corresponding icon in order to safely disconnect your USB device.3. I can't see the"SafeDisconnect" iconin the SystemTray !There are 2 conditions for that:•be under Windows 2000 Professional, server•use a composite Mass Storage device (mass storage + mouse for example)In such situation, no icon will appear in the System Tray. It's a bug from Microsoft. Please refers to this page:/default.aspx?scid=kb;en-us;841880&Product=win2000Frequently Asked QuestionsTo solve this problem, use the Hotfix from Microsoft.4.My device isenumerated but I can't see it under Linux !Check with the USBview tool that your device is correctly enumerated.The Linux kernel requires a Master Boot Record (MBR) and a Partition Boot Record (PBR). In root mode ("su" command), launch the fdisk tool for your device "fdisk /dev/sdx" (x is the number of your device), erase all existing partitions, and create a new partition. By default, this partition will use a Linux file system. You can change it to a FAT12 or FAT16 in order to be recognized by every OS.$ su Password:# fdisk /dev/sdx Command : dnumber of the partition (1-4) : 1Command : dnumber of the partition (1-4) : 2Command : dnumber of the partition (1-4) : 3Command : dnumber of the partition (1-4) : 4Command : n e Extendedp Primary partition pFirst cylinder ():Last cylinder():Command: tNumber of the partition: 1Code Hex : 6Command: w5. Procedure for support 40 Invalid block per1024 block1) You must modify the number of free blocks in the file "nf_drv.h" :/* Number maximum of free block per zone */ #define NB_FREE_MAX (24+20)This variable increases the size of XDATA, and this one must be less than 2048 bytes.Change the MAX_FILE_FRAGMENT_NUMBER variable in "nf_drv.h" to reduce the xdata size.#define MAX_FILE_FRAGMENT_NUMBER ((Byte)140) /* The maximum number authorized2) if the Nand Flash has been used with a firmware generated with other NB_FREE_MAX value, you must reinitialize the NF : - modify in "config.h" the option format at TRUE :#define NF_FULL_CHIP_ERASE TRUEFrequently Asked Questions- include the new value of NB_FREE_MAX- compile, load and start the firmware- format the NF via the player menuAt this step the NF correct, and you can change this option to FALSE.3) You must format the NFDisclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise,to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN-TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically providedot-herwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’sAtmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.Atmel CorporationAtmel Operations2325 Orchard Parkway San Jose, CA 95131Tel: 1(408) 441-0311Fax: 1(408) 487-2600Regional HeadquartersEuropeAtmel SarlRoute des Arsenaux 41Case Postale 80CH-1705 Fribourg SwitzerlandTel: (41) 26-426-5555Fax: (41) 26-426-5500AsiaRoom 1219Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong KongTel: (852) 2721-9778Fax: (852) 2722-1369Japan9F, Tonetsu Shinkawa Bldg.1-24-8 ShinkawaChuo-ku, Tokyo 104-0033JapanTel: (81) 3-3523-3551Fax: (81) 3-3523-7581Memory2325 Orchard Parkway San Jose, CA 95131Tel: 1(408) 441-0311Fax: 1(408) 436-4314Microcontrollers2325 Orchard Parkway San Jose, CA 95131Tel: 1(408) 441-0311Fax: 1(408) 436-4314La Chantrerie BP 7060244306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18Fax: (33) 2-40-18-19-60ASIC/ASSP/Smart CardsZone Industrielle13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00Fax: (33) 4-42-53-60-011150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906Tel: 1(719) 576-3300Fax: 1(719) 540-1759Scottish Enterprise Technology Park Maxwell BuildingEast Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000Fax: (44) 1355-242-743RF/AutomotiveTheresienstrasse 2Postfach 353574025 Heilbronn, Germany Tel: (49) 71-31-67-0Fax: (49) 71-31-67-23401150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906Tel: 1(719) 576-3300Fax: 1(719) 540-1759Biometrics/Imaging/Hi-Rel MPU/High Speed Converters/RF DatacomAvenue de Rochepleine BP 12338521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00Fax: (33) 4-76-58-34-80e-mail********************Web Site© Atmel Corporation 2005. All rights reserved. Atmel ®, logo and combinations thereof, are registered trademarks, and Everywhere You Are ® are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.。
[课件] 大学操作系统课件ch12-massaive-storage
![[课件] 大学操作系统课件ch12-massaive-storage](https://img.taocdn.com/s3/m/383a71b30b4c2e3f572763ae.png)
(c) RAID 2: memory-style error-correcting codes.
RAID的级别P
(d) RAID 3: bit-interleaved parity.
P (e) RAID 4: block-interleaved parity.
! 有一些改进磁盘使用技术的方法包括了同时使用 多个磁盘协同工作。
!
! 磁盘带使用一组磁盘作为一个存储单元。
RAID (cont)
! RAID机制通过存储冗余数据提高了存储系统 的性能和可靠性。
!
• 镜像(或影子)技术采用了复制每个磁盘的方法。 • 块交织奇偶结构在较低的代价下提供冗余。
ed RAID levels. We describe the various levels here; Fig m pictorially (in the figure, P indicates error-correcting b
head starts at 53
0 14 37 53 65 67 98 122124
183 199
98, 183, 37, 122, 14, 124, 65, 67
C-LOOK
! C-SCAN的一种形式。 ! 磁头只移动到一个方向上最远的请求为止。接着,
它⻢上回头,而不是继续到磁盘的尽头。
ase, the disk head has to move the entire width of the disk. If the dir
• Solaris 2只有在一⻚被强制换出物理内存时,而不是 在首次创建虚拟内存也时,才分配交换空间。
4.3 BSD系统的代码段交换表
USB培训课件

USB电缆:用于连 接USB设备和主机 的线缆通常有型、 B型、C型和 Micro型等类型
USB插头:用于连 接USB设备的接口 通常有型、B型、C 型和Micro型等类 型
USB接口:用于连 接USB设备的物理 接口通常有型、B 型、C型和Micro 型等类型
USB连接器:用于 连接USB设备的电 子连接器通常有型、 B型、C型和 Micro型等类型
b. 容易受到电磁干扰影响传输质量
c. 某些设备可能需要额外的电源适配器
d. 某些设备可能需要额外的驱动程序
电脑外设:如鼠标、键盘、 打印机等
移动设备:如手机、平板 电脑、数码相机等
存储设备:如U盘、移动
视频设备:如显示器、投 影仪等
USB Mini-B: 主要用于 数码相机、 MP3播放 器等小型 设备体积 较小
USB 3.0: 高速USB 接口传输 速度比 USB 2.0 快10倍
● USB Type-:最常见的USB接口用于连接设备 ● USB Type-B:主要用于打印机、扫描仪等设备 ● USB Type-C:支持正反插支持高速传输和充电 ● USB Micro-B:主要用于手机、数码相机等小型设备 ● USB Mini-B:主要用于MP3播放器、移动硬盘等设备 ● USB 3.0:支持高速传输最高可达5Gbps ● USB 3.1:支持更高速传输最高可达10Gbps ● USB 3.2:支持更高速传输最高可达20Gbps ● USB 4.0:支持最高速传输最高可达40Gbps ● USB Power Delivery:支持快速充电最高可达100W
优点: . 即插即用无需驱动程序 b. 传输速度快支持热 插拔 c. 兼容性好支持多种设备 d. 体积小便于携带 . 即插即用无需驱动程序
Chapter 12 Mass-Storage Systems 操作系统课件

Seek time seek distance
Disk bandwidth is the total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer
Operating System Concepts – 8th Edition
12.11
Silberschatz, Galvin and Gagne ©2009
Disk Scheduling (Cont.)
Several algorithms exist to schedule the servicing of disk I/O requests We illustrate them with a request queue (0-199)
12.3
Silberschatz, Galvin and Gagne ©2009
Operating System Concepts – 8th Edition
12.4
Silberschatz, Galvin and Gagne ©2009
Operating System Concepts – 8th Edition
The 1-dimensional array of logical blocks is mapped into the sectors of the disk sequentially
Sector 0 is the first sector of the first track on the outermost cylinder Mapping proceeds in order through that track, then the rest of the tracks in that cylinder, and then through the rest of the cylinders from outermost to innermost
USB基础知识.ppt

有没有一种简单易行的接口既能够最大 限度地节省计算机的软硬件资源,又能 方便使用呢?
答案是肯定的,就是USB接口。
USB快速的发展过程
1.萌芽 Philips 与 数 字 设 备 公 司 ( Digital
Equipment Corporation) 借 鉴 IIC synchronics bus的优点,联合制定出了 Access.bus规范。
同 时 , 它 使 用 了 开 放 收 集 器 ( Opencellector)驱动,这就形成了USB的发 展雏形。
2.成长
1996年1月,在Compaq、Intel、Microsoft、NEC等4家 公司的联合努力下,USB1.0的白皮书问世了,这是USB 发展史上具有里程碑意义的一页。
经过近两年的完善与修改工作,一个完整的、可行的 USB1.1规范于1998年9月完成。至此,许多开发商己经 可以依据USB1.1规范内容来进行相关产品的开发了
在USB2.0推出之时,IEEE-1394也推出了相应 的 IEEE-1394.b 标 准 , 将 速 率 提 高 到 了 3.2Gbit/s。
在这样的竞争下,USB接口仍然需要向前 不断发展。许多新生事物在其产生之初 都 有 不 尽 完 善 之 处 , USB 也 一 样 , 所 以,USB2.0仍然在不断推出其修订手册
令人欣喜的是,这4家公司同意任何人都可免费使用 USB1.1的白皮书版本。这与其他组织开发的标准相比 无疑是一个明智的创举,也正是基于此,使得USB产品 的开发在短暂的时间内获得了迅猛的发展。
USB规范的发展历程如表1·1
3.对抗性的竞争促进了其发展
没有竞争就没有发展,USB在诞生之初, 便面对着许多已趋成熟的计算机接口的 挑战,这就要求它必须具有明显的优势, 并不断完善,才可能被用户所接受。
USB协议资料ppt课件

2020/2/9
1
• B概述
主要内容
• B物理电气规范
• B通信协议
• 4.实现难点
2020/2/9
2
B概述
• USB(Universal Serial BUS)通用串行总线 • 现在存在四种USB协议
– USB1.0 低速 1.5Mbps 192KB/s – USB1.1 全速 12Mbps 1.5MB/s – USB2.0 高速 480Mbps 60MB/s – USB3.0 超速 5Gbps 640MB/s
• B通信协议
• 4.实现难点
2020/2/9
21
B通信协议
• 3.1 USB包
– 包(Packet)是USB系统中信息传输的基本单元, 所有数据都是经过打包后在总线上传输的。
– USB包由五部分组成,即同步字段(SYNC)、 包标识符字段(PID)、数据字段、循环冗余校 验字段(CRC)和包结尾字段(EOP),包的基 本格式如下图:
– 一个USB 系统中仅有一个USB主机;
– 包括
• (1) 客户软件 • (2) USB系统软件 • (3) USB总线接口
2020/2/9
5
B概述
• USB设备
– 一个USB设备由三个功能模块组成:
• 功能单元 • USB逻辑设备 • USB总线接口 即串行接口引擎(SIE)
– 从设备架构角度来看,USB含有一个或多个配 置,在每个配置中可含有一个或多个接口,在 每个接口中可含有若干个端点。其中,配置和 接口是对USB设备功能的抽象,实际的数据传 输由端点来完成。在使用USB设备前,必须指 明其采用的配置和接口
• 只有主机能发送令牌包 • 三个重要的令牌包:IN、OUT、SETUP