CN102207921B - Based on system and the method thereof of UASP protocol realization multiport Storage Media - Google Patents

Based on system and the method thereof of UASP protocol realization multiport Storage Media Download PDF

Info

Publication number
CN102207921B
CN102207921B CN201110104771.1A CN201110104771A CN102207921B CN 102207921 B CN102207921 B CN 102207921B CN 201110104771 A CN201110104771 A CN 201110104771A CN 102207921 B CN102207921 B CN 102207921B
Authority
CN
China
Prior art keywords
storage media
instruction
write
usb
serial bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110104771.1A
Other languages
Chinese (zh)
Other versions
CN102207921A (en
Inventor
颜协寰
谢登全
林祐群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Etron Technology Inc
Original Assignee
Etron Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Etron Technology Inc filed Critical Etron Technology Inc
Publication of CN102207921A publication Critical patent/CN102207921A/en
Application granted granted Critical
Publication of CN102207921B publication Critical patent/CN102207921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of system based on UASP protocol realization multiport Storage Media and method thereof, and this system comprises a USB (universal serial bus), at least one Storage Media and a storage device, and wherein this storage device stores a mapping table.This USB (universal serial bus) is in order to transmit at least one write data command; Each Storage Media is used to after reception one writes data command, respond the ready instruction of a write to this USB (universal serial bus).When this USB (universal serial bus) comprises the data of an instruction label according to the ready instruction transmission one of this write, this storage device finds out according to this instruction label and this mapping table the port numbers that this instruction label maps, and these data are sent to the Storage Media corresponding to this port numbers.

Description

Based on system and the method thereof of UASP protocol realization multiport Storage Media
Technical field
The present invention relates to a kind of system and the method thereof that realize multiport Storage Media, espespecially a kind of system based on the UASP protocol realization multiport Storage Media in USB3.0 specification and method thereof.
Background technology
The transmission of USB (universal serial bus) in the past adopts sequence transmission, once transmits data or instruction, so the transmission usefulness of USB (universal serial bus) is quite limited.Therefore, a kind of USB (universal serial bus) of USB3.0 specification connects SCSI agreement (USBAttachedSCSIProtocol), wherein UASP agreement is with similar personal computer system interface (smallcomputersysteminterface, SCSI) mode sends many instructions or data (that is under UASP agreement, USB (universal serial bus) can support the Storage Media of multiport), do not need to wait for that a upper instruction or data complete and just can send next record instruction or data, therefore the transmission usefulness of USB (universal serial bus) significantly promotes.
Please refer to Fig. 1, Fig. 1 be DESCRIPTION OF THE PRIOR ART in UASP agreement, the schematic diagram of the signal exchange (handshaking) between USB (universal serial bus) and single Storage Media.As shown in Figure 1, USB (universal serial bus) 102 first transmits one and reads data command 1022 and write data command 1024 to Storage Media 104, wherein read data command 1022 and comprise an instruction label " 128 " and port numbers " 0 ", and write data command 1024 and comprise an instruction label " 129 " and port numbers " 0 ".After Storage Media 104 receives and reads data command 1022 and write data command 1024, ready instruction 1042 and ready instruction 1044 to the USB (universal serial bus) 102 of a write are read in passback one, wherein read ready instruction 1042 and comprise instruction label " 128 ", and write ready instruction 1044 and comprise instruction label " 129 ".Therefore, the data 1026 with instruction label " 129 " can write to Storage Media 104 via USB (universal serial bus) 102, and can read data 1046 with instruction label " 128 " via USB (universal serial bus) 102 from Storage Media 104.
As shown in Figure 1, in UASP agreement, USB (universal serial bus) 102 can transmit at least one reading data command and/or at least one write data command extremely single Storage Media 104 simultaneously, and therefore, Storage Media 104 can once read data command and write-once data command simultaneously.
Please refer to Fig. 2, Fig. 2 be DESCRIPTION OF THE PRIOR ART in UASP agreement, the schematic diagram of the signal exchange (handshaking) between USB (universal serial bus) and two Storage Medias.As shown in Figure 2, USB (universal serial bus) 202 transmits write data command 2022 to Storage Media 204 and write data command 2024 to Storage Media 206 respectively, according to existing UASP agreement, wherein write instruction 2022 and comprise an instruction label " 128 " and port numbers " 0 ", and write data command 2024 and comprise instruction label " 129 " and port numbers " 0 ".After Storage Media 204 receives write data command 2022, ready instruction 2042 to the USB (universal serial bus) 202 of passback one write, and after Storage Media 206 reception write data command 2024, ready instruction 2062 to the USB (universal serial bus) 202 of passback one write, wherein write ready instruction 2042 and comprise instruction label " 128 ", and write ready instruction 2062 and comprise instruction label " 129 ".Therefore, when transmitting the data with instruction label " 128 " via USB (universal serial bus) 102, it is to write to Storage Media 204 or Storage Media 206 that USB (universal serial bus) 102 will judge with the data 2026 of instruction label " 128 ".And the write data command of prior art is because the port numbers comprised cannot correspond to specific storage media, and the data transmitted only comprise instruction label and slogan for no reason, therefore only can utilize the first settling signal of the Storage Media (such as Storage Media 204) wherein in USB (universal serial bus) 202 and Storage Media 204 or Storage Media 206 exchange after (namely complete write data command, write ready instruction and transmit data), signal exchange between reprocessing USB (universal serial bus) 202 and another Storage Media, to solve the problem.
Summary of the invention
One embodiment of the invention provide a kind of system based on the UASP protocol realization multiport Storage Media in USB3.0 specification.This system comprises a USB (universal serial bus), at least one Storage Media and a storage device.This USB (universal serial bus) is in order to transmit at least one write (write) data command, and wherein each write data command comprises the port numbers that an instruction label and is mapped in this instruction label, wherein the corresponding Storage Media of each port numbers; This at least one Storage Media is coupled to this USB (universal serial bus), each Storage Media is in order to after receiving this write data command, respond write ready (writeready) instruction to this USB (universal serial bus), wherein the ready instruction of this write comprises this instruction label to writing data command; And this storage device is coupled to this USB (universal serial bus), this storage device writes data command according to each, store a mapping table of each instruction label and corresponding port numbers, wherein when this USB (universal serial bus) comprises the data of this instruction label according to the ready instruction transmission one of this write, this storage device finds out according to this instruction label and this mapping table this port numbers that this instruction label maps, and these data is sent to this Storage Media corresponding to this port numbers.
Another embodiment of the present invention provides a kind of system based on the UASP protocol realization multiport Storage Media in USB3.0 specification.This system comprises a USB (universal serial bus) and a storage device.This USB (universal serial bus) writes (write) data command to one second Storage Media in order to transmit one first write (write) data command to one first Storage Media with transmission one second, this the first write data command comprises one first instruction label and a first end slogan, this the second write data command comprises one second instruction label and one second port numbers, this first end slogan to should the first Storage Media and this second port numbers to should the second Storage Media; And this storage device is coupled to this USB (universal serial bus), this storage device stores a mapping table (mappingtable), the mapping relations with this second instruction label and this second port numbers are closed in the mapping that this mapping table comprises this first instruction label and this first end slogan, wherein when USB (universal serial bus) transmits data, the instruction label content that this storage device comprises according to these data and this mapping table, these data are sent to this first or this second Storage Media.
Another embodiment of the present invention provides a kind of method based on the UASP protocol realization multiport Storage Media in USB3.0 specification.The method comprises a USB (universal serial bus) and transmits at least one write data command at least one Storage Media; This at least one Storage Media responds the instruction of at least one write ready data to this USB (universal serial bus); Consult data via a storage device and correspond to the port numbers of the Storage Media of instruction label that these data comprise; And write these data to the Storage Media with this port numbers.
The invention provides a kind of system based on the UASP protocol realization multiport Storage Media in USB3.0 specification and method thereof, it is according to storage device, each instruction label is mapped to the port numbers of the corresponding Storage Media of each instruction label.So the data with an instruction label correctly can write the Storage Media of this instruction label corresponding.So, the present invention can based on the function of the UASP protocol realization multiport Storage Media in USB3.0 specification.
Accompanying drawing explanation
Fig. 1 be DESCRIPTION OF THE PRIOR ART in UASP agreement, the schematic diagram of the signal exchange between USB (universal serial bus) and single Storage Media;
Fig. 2 be DESCRIPTION OF THE PRIOR ART in UASP agreement, the schematic diagram of the signal exchange between USB (universal serial bus) and two Storage Medias;
Fig. 3 is the schematic diagram that one embodiment of the invention illustrate based on the system of the UASP protocol realization multiport Storage Media in USB3.0 specification;
Fig. 4 is the schematic diagram of declarative instruction label and port numbers mapping table;
Fig. 5 is the process flow diagram that another embodiment of the present invention illustrates the method for equating signal.
Wherein, Reference numeral
102,202,302 USB (universal serial bus) 300 systems
104,204,206,304,306 Storage Medias
308 instruction label and port numbers mapping table
1022 read data command
1024,2022,2024,3022,3024 write data commands
1042 read ready instruction
1044, the ready instruction of 2042,2062,3042,3062 write
1026,1046,2026,3026,3028 data 500-510 steps
Embodiment
Please refer to Fig. 3, Fig. 3 is the schematic diagram that one embodiment of the invention illustrate based on the system 300 of the UASP protocol realization multiport Storage Media in USB3.0 specification.System 300 comprises a USB (universal serial bus) 302, two Storage Media 304,306 and storage devices 308.USB (universal serial bus) 302 is in order to transmit at least one reading data command or a write data command, and wherein each reading data command or each write data command all include the port numbers that an instruction label and is mapped in an instruction label.Storage Media 304,306 in order to read in reception one data command or one write data command after, response one is read ready instruction or and is write ready instruction to USB (universal serial bus) 302 respectively, wherein reads ready instruction or write ready instruction to comprise the instruction label corresponding to and read data command or write data command.Storage device 308 is coupled to USB (universal serial bus) 302, and storage device 308, according to each write data command, stores a mapping table 3082 of each instruction label and corresponding port numbers.When USB (universal serial bus) 302 comprises the data of instruction label according to the ready instruction transmission one of write, storage device 308 finds out according to instruction label and mapping table 3082 port numbers that instruction label maps, and data is sent to the Storage Media corresponding to port numbers.In addition, two Storage Medias 304,306 are only in order to clearly demonstrate the present invention, that is the present invention is not limited to two Storage Medias.In addition, the combination that two Storage Medias 304,306 are two hard disks, two storeies or above-mentioned hard disk, storer is relevant.
At the beginning, the driver of USB (universal serial bus) 302 " GetMAXLUN " instruction can be utilized to have learnt how many Storage Medias and USB (universal serial bus) 302 couple, and the quantity coupled is passed to operating system.When the first data write Storage Media 304 and the second data will be write Storage Media 306 by operating system, as shown in Figure 3, USB (universal serial bus) of the present invention 302 transmits write data command 3022 to Storage Media 304 and write data command 3024 a to Storage Media 306 respectively, wherein write data command 3022 and comprise the port numbers " 0 " of an instruction label " 128 " and corresponding Storage Media 304, and write the port numbers " 1 " that data command 3024 comprises instruction label " 129 " and corresponding Storage Media 306.After Storage Media 304 receives write data command 3022, ready instruction 3042 to the USB (universal serial bus) 302 of passback one write, and after Storage Media 306 reception write data command 3024, ready instruction 3062 to the USB (universal serial bus) 302 of passback one write, wherein write ready instruction 3042 and correspond to write data command 3022, therefore comprise instruction label " 128 ", and write ready instruction 3062 corresponding to write data command 3024, therefore comprise instruction label " 129 ".
Please refer to Fig. 4, Fig. 4 is the schematic diagram that storage device 308 is described.As shown in Figure 4, each instruction label maps to the port numbers of the corresponding Storage Media of each instruction label, that is, and the port numbers of the corresponding Storage Media of each instruction label.The port numbers " 1 " etc. that such as instruction label " 128 " maps to the port numbers " 0 " of corresponding Storage Media 304, instruction label " 129 " maps to corresponding Storage Media 306.But storage device 308 of the present invention is not limited to 4 instruction label and 4 Storage Medias.Therefore, even if the data transmitted only comprise instruction label and slogan for no reason, when the first data 3026 with instruction label " 128 " are by after USB (universal serial bus) 302, with the data of instruction label " 128 " according to the mapping table 3082 in storage device 308, learn and map to port numbers " 0 ", and port numbers " 0 " is corresponding Storage Media 304, therefore the first data 3026 with instruction label " 128 " can be write to Storage Media 304.In like manner, with the second data 3028 of instruction label " 129 " by after USB (universal serial bus) 302, with the data of instruction label " 129 " according to storage device 308, learn and map to port numbers " 1 ", and port numbers " 1 " is corresponding Storage Media 306, therefore the second data 3028 with instruction label " 128 " can be write to Storage Media 306.In addition, instruction label " 129 " and instruction label " 128 " are only in order to clearly demonstrate the present invention, that is the present invention is not limited to the number in instruction label " 129 " and instruction label " 128 ".
Please refer to Fig. 5, Fig. 5 is the process flow diagram that another embodiment of the present invention illustrates the method for equating signal.The method of Fig. 5 is utilize the system 300 of Fig. 3 to illustrate, detailed step is as follows:
Step 500: start;
Step 502: USB (universal serial bus) 302 transmits at least one write data command at least one Storage Media;
Step 504: at least one Storage Media responds the ready instruction of at least one write to USB (universal serial bus) 302;
Step 506: the port numbers of the data that transmit being consulted the specific storage media of instruction label that these data comprise and mapping via storage device 308;
Step 508: write data to the Storage Media with this port numbers, or read data from the Storage Media with this port numbers;
Step 510: terminate.
In step 502, each instruction comprises corresponding to each the reading instruction label of data command and the port numbers of corresponding specific storage media.As shown in Figure 3, write data command 3022 comprises the port numbers " 0 " of an instruction label " 128 " and corresponding Storage Media 304, and writes the port numbers " 1 " that data command 3024 comprises instruction label " 129 " and corresponding Storage Media 306.According to instruction label in each instruction and port numbers content, namely the mapping table 3082 of storage device 308 can be set up and to search for follow-up.In step 504, each reads ready instruction and corresponds to a reading data command, and each reads the instruction label that ready instruction comprises corresponding reading data command.Each writes ready instruction and corresponds to a write data command, and each writes the instruction label that ready instruction comprises corresponding write data command.As shown in Figure 3, write ready instruction 3042 and correspond to write data command 3022, therefore write ready instruction 3042 and comprise instruction label " 128 ", and write ready instruction 3062 corresponding to write data command 3024, therefore write ready instruction 3062 and comprise instruction label " 129 ".In step 506,508, according to storage device 308, the data with instruction label " 128 " are write to Storage Media 304, and the data with instruction label " 129 " are write to Storage Media 306.
In sum, system based on the UASP protocol realization multiport Storage Media in USB3.0 specification provided by the present invention and method thereof, according to instruction label and port numbers mapping table, each instruction label is mapped to the port numbers of the corresponding Storage Media of each instruction label.So the data with instruction label correctly can write the Storage Media of corresponding instruction label.So, the present invention can based on the function of the UASP protocol realization multiport Storage Media in USB3.0 specification.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (3)

1., based on a system for the UASP protocol realization multiport Storage Media in USB3.0 specification, it is characterized in that, comprise:
One USB (universal serial bus), in order to transmit at least one write data command, wherein each write data command comprises the port numbers that an instruction label and is mapped in this instruction label, wherein the corresponding Storage Media of each port numbers;
At least one Storage Media, be coupled to this USB (universal serial bus), each Storage Media is in order to after receiving this write data command, and respond the ready instruction of a write to this USB (universal serial bus), wherein the ready instruction of this write comprises this instruction label to writing data command; And
One storage device, is coupled to this USB (universal serial bus), and this storage device writes data command according to each, stores a mapping table of each instruction label and corresponding port numbers;
Wherein when this USB (universal serial bus) comprises the data of this instruction label according to the ready instruction transmission one of this write, this storage device finds out according to this instruction label and this mapping table this port numbers that this instruction label maps, and these data is sent to this Storage Media corresponding to this port numbers.
2., based on a method for the UASP protocol realization multiport Storage Media in USB3.0 specification, it is characterized in that, comprise:
One USB (universal serial bus) transmits write data command to Storage Media, and this write data command instruction label and comprised corresponding to this write data command is mapped in the port numbers of this instruction label, wherein corresponding Storage Media of each port numbers;
This Storage Media responds the ready instruction of a write to this USB (universal serial bus);
One storage device, according to this write data command, stores a mapping table of this instruction label and corresponding port numbers;
Instruction label that data comprise port numbers corresponding in this mapping table is consulted via this storage device; And
Write these data to the Storage Media with this port numbers.
3. method according to claim 2, is characterized in that, each writes ready instruction and corresponds to a write data command, and this each write the instruction label that ready instruction comprises this write data command.
CN201110104771.1A 2010-06-01 2011-04-22 Based on system and the method thereof of UASP protocol realization multiport Storage Media Active CN102207921B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US35002710P 2010-06-01 2010-06-01
US61/350,027 2010-06-01
US35707710P 2010-06-21 2010-06-21
US61/357,077 2010-06-21

Publications (2)

Publication Number Publication Date
CN102207921A CN102207921A (en) 2011-10-05
CN102207921B true CN102207921B (en) 2015-11-25

Family

ID=44696762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110104771.1A Active CN102207921B (en) 2010-06-01 2011-04-22 Based on system and the method thereof of UASP protocol realization multiport Storage Media

Country Status (2)

Country Link
CN (1) CN102207921B (en)
TW (1) TW201145034A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281413B (en) * 2013-07-10 2017-10-20 群联电子股份有限公司 Command queue's management method, Memory Controller and memorizer memory devices
CN104156807B (en) * 2014-07-25 2016-04-27 广东建邦计算机软件股份有限公司 Floating population, rental house and three little Locale information management method and systems
CN113392046A (en) * 2021-06-10 2021-09-14 杭州华澜微电子股份有限公司 Data transmission method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6343324B1 (en) * 1999-09-13 2002-01-29 International Business Machines Corporation Method and system for controlling access share storage devices in a network environment by configuring host-to-volume mapping data structures in the controller memory for granting and denying access to the devices
CN1494001A (en) * 2002-10-30 2004-05-05 联阳半导体股份有限公司 Pretaking rack and panel construction of sequence type data system and its operation method
CN1507590A (en) * 2002-02-21 2004-06-23 索尼公司 External connection device, host device and data communication system
CN1521643A (en) * 2003-02-13 2004-08-18 上海汉芯半导体科技有限公司 Digital signal processor with restructurable number of channels DMA
CN1642170A (en) * 2004-01-16 2005-07-20 英业达股份有限公司 Method for accessing logic equipment utilizing ISCSI agreement
US7272619B1 (en) * 2002-02-28 2007-09-18 Veritas Operating Corporation Methods and systems to backup data
CN101256544A (en) * 2008-03-25 2008-09-03 华为技术有限公司 Method, apparatus and system for expansion of inside integrated circuit bus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6343324B1 (en) * 1999-09-13 2002-01-29 International Business Machines Corporation Method and system for controlling access share storage devices in a network environment by configuring host-to-volume mapping data structures in the controller memory for granting and denying access to the devices
CN1507590A (en) * 2002-02-21 2004-06-23 索尼公司 External connection device, host device and data communication system
US7272619B1 (en) * 2002-02-28 2007-09-18 Veritas Operating Corporation Methods and systems to backup data
CN1494001A (en) * 2002-10-30 2004-05-05 联阳半导体股份有限公司 Pretaking rack and panel construction of sequence type data system and its operation method
CN1521643A (en) * 2003-02-13 2004-08-18 上海汉芯半导体科技有限公司 Digital signal processor with restructurable number of channels DMA
CN1642170A (en) * 2004-01-16 2005-07-20 英业达股份有限公司 Method for accessing logic equipment utilizing ISCSI agreement
CN101256544A (en) * 2008-03-25 2008-09-03 华为技术有限公司 Method, apparatus and system for expansion of inside integrated circuit bus

Also Published As

Publication number Publication date
TW201145034A (en) 2011-12-16
CN102207921A (en) 2011-10-05

Similar Documents

Publication Publication Date Title
US8255661B2 (en) Data storage system comprising a mapping bridge for aligning host block size with physical block size of a data storage device
CN101350001B (en) Data sharing and transfer systems and methods
NL2011838B1 (en) Storage device, computing system including the same and data transferring method thereof.
JP2008547068A (en) USB-SD storage device having a plurality of DMA channels, storage method thereof and recording medium
CN102207921B (en) Based on system and the method thereof of UASP protocol realization multiport Storage Media
US20150363259A1 (en) Managing a storage device using a hybrid controller
CN102279820A (en) Data storage device and control method based on SPI interface
CN100410910C (en) Data transmission and control system employing USB and relative method thereof
US20110296106A1 (en) System for realizing multi-port storage media based on a uasp protocol of a usb specification version 3.0 and method thereof
CN101261611A (en) Peripheral apparatus data-transmission apparatus and transmission method
US20120102251A1 (en) Serial attached small computer system interface (sas) domain access through a universal serial bus interface of a data processing device
CN104572513B (en) A kind of TF card and its implementation without driving with Bluetooth function
CN202189558U (en) SPI interface-based data storage device
CN101976230B (en) Transaction translator of universal serial bus and input request isochronous transaction method
JP2008065515A5 (en)
CN100356307C (en) Disk drive connected to host system via memory interface circuit, and interface connecting method
CN105159613A (en) Emmc control system and access method of emmc control system
CN103136556B (en) A kind of SD equipment complex and reading/writing method thereof
CN102567263A (en) Device and method for automatic synchronization and automatic exchanging of user data of serial interface portable device
CN105739919A (en) Data access system and method
CN102063269B (en) Method and system for realizing communication of double controllers of disk array
US7406556B2 (en) Method for reading and writing non-standard register of standard interface device
CN105760325A (en) System and method for supporting hot swapping of USB (universal serial bus) storage device under DOS (disk operating system)
CN204044893U (en) A kind of induction recording electronic memo
CN100378638C (en) External MS memory card interface switching device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160302

Address after: Chinese Taiwan Taipei City Neihu district West Lake Ricky Lake Road 35 Lane 22 Building No. 2

Patentee after: ETRON TECHNOLOGY, INC.

Address before: Hsinchu City, Taiwan, China

Patentee before: Etron Technology, Inc.