CN103019987A - Method and system for transmitting data on basis of USB (universal serial bus) interfaces - Google Patents

Method and system for transmitting data on basis of USB (universal serial bus) interfaces Download PDF

Info

Publication number
CN103019987A
CN103019987A CN2013100080336A CN201310008033A CN103019987A CN 103019987 A CN103019987 A CN 103019987A CN 2013100080336 A CN2013100080336 A CN 2013100080336A CN 201310008033 A CN201310008033 A CN 201310008033A CN 103019987 A CN103019987 A CN 103019987A
Authority
CN
China
Prior art keywords
data
storage device
usb interface
buffer storage
recombination
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.)
Pending
Application number
CN2013100080336A
Other languages
Chinese (zh)
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.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
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 Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN2013100080336A priority Critical patent/CN103019987A/en
Publication of CN103019987A publication Critical patent/CN103019987A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a system for transmitting data on the basis of USB (universal serial bus) interfaces. A source data storage device is provided with more than one USB interface, and each USB interface is connected with a data caching device. The method includes at least one procedure for transmitting the data. Each procedure for transmitting the data includes steps of reading the data in the source data storage device; uniformly segmenting the read data into a plurality of segmented data blocks according the quantity of the data caching devices; transmitting the data in each segmented data block to the corresponding data caching device; and reorganizing the data in the data caching devices and then transmitting the reorganized data to a target data storage device. Sizes of the segmented data blocks are identical, and the segmented data blocks are in one-to-one correspondence with the data caching devices. The method and the system have the advantages that the data transmission speed of each USB interface can be increased during data transmission, particularly during large-volume data transmission, and the data transmission time is saved.

Description

A kind of USB interface-based data transmission method and system
Technical field
The present invention relates to field of data transmission, especially, relate to a kind of USB interface-based data transmission method and system.
Background technology
Along with the development of the communication technology, USB interface and usb hub are widely used in the data transmission.Wherein, USB(Universal Serial Bus) interface, claim again USB (universal serial bus), it is an external bus standard, being used for being connected and communication of standard computer and external unit, is the interfacing that is widely used in the PC field, the plug and play of USB interface support equipment and warm connection function.Usb hub, being called again USB HUB, is a kind ofly a USB interface can be converted to a plurality of (being generally 4), and the device that these interfaces are used simultaneously, mostly be applied to use in the network of stelliform connection topology configuration, be used for connecting a plurality of computing machines or the network equipment.
When carrying out data transmission, the hot-swappable function of USB interface and usb hub makes data transmission more convenient, but the transmission speed of USB interface is relatively slow, especially tends to expend the considerable time when the data of transmission of large capacity.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: how can improve USB interface at the transmission of data, especially the data rate during the transmission of large capacity data is saved data transmission period.
Summary of the invention
Technical matters to be solved by this invention provides a kind of USB interface-based data transmission method and system, fully rationally utilize a plurality of USB interface, to improve USB interface in the data rate of the transmission of data during especially in the transmission of large capacity data, save data transmission period.
The invention provides a kind of USB interface-based data transmission method, for the source data memory storage is provided with more than one USB interface, each USB interface connects a data buffer storage, and described method comprises data transmission procedure at least one times, and described transmission course comprises the steps:
Read the data in the source data memory storage;
According to the quantity of data buffer storage device the data that read are averaged to cut apart and form a plurality of partition data pieces, wherein, each partition data block size is all identical, and the corresponding data buffer storage of each partition data piece;
With the data transmission in each partition data piece to the data buffer storage device of correspondence;
Data in the data buffer storage device are carried out being transferred to target data storage device after the data recombination.
Wherein, the described step that reads the data in the source data memory storage is specially the data in the selected sector of reading in the source data memory storage.
Preferably, described data buffer storage device is mobile memory medium.
Preferably, by the USB interface on one or more levels the USB hub extended source data storage device.
Wherein, described step of the data in the data buffer storage device being carried out being transferred to after the data recombination target data storage device, data recombination mode wherein is for to carry out data recombination by RAID 0 algorithm.
The invention allows for a kind of USB interface-based data transmission system, it comprises source data memory storage, data buffer storage device and target data storage device, wherein said source data memory storage is provided with more than one USB interface, each USB interface connects a data buffer storage, and described system also comprises:
Data-reading unit is for the data that read the source data memory storage;
Data partitioning unit is used for quantity according to the data buffer storage device and the data that read are averaged to cut apart forms a plurality of partition data pieces, and wherein, each partition data block size is all identical, and the corresponding data buffer storage of each partition data piece;
Data transmission unit is used for the data transmission of each the partition data piece data buffer storage device to correspondence;
The data recombination unit is used for the data of data buffer storage device are carried out being transferred to target data storage device after the data recombination.
Wherein, the mode of described data-reading unit reading out data is the data in the selected sector of reading in the source data memory storage.
Preferably, described data buffer storage device is mobile memory medium.
Choosing is arranged, and described system also comprises one or more levels usb hub, is used for the USB interface on the extended source data storage device.
Wherein, the data recombination mode of described data recombination unit is for to carry out data recombination by RAID 0 algorithm.
USB interface-based data transmission method provided by the invention and system have fully rationally utilized a plurality of USB interface, have improved the data rate of USB interface when the transmission of data especially transmission of large capacity data, greatly save data transmission period.
Description of drawings
Fig. 1 is the process flow diagram that the present invention is based on the data transmission procedure among the data transmission method embodiment of USB interface;
Fig. 2 is the schematic diagram that the present invention is based on the data transmission system embodiment of USB interface.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
USB interface-based data transmission method according to the embodiment of the invention is, the source data memory storage is provided with more than one USB interface, each USB interface connects a data buffer storage, described data buffer storage device linking objective data storage device, described method comprises data transmission procedure at least one times, referring to Fig. 1, be the process flow diagram of the data transmission procedure in the embodiment of the method provided by the invention.Described transmission course comprises the steps: S1, reads the data in the source data memory storage, and wherein, the mode of reading out data can be the data in the selected sector of reading in the source data memory storage; S2, according to the quantity of data buffer storage device the data that read are averaged to cut apart and form a plurality of partition data pieces, wherein, each partition data block size is all identical, and the corresponding data buffer storage of each partition data piece, described data buffer storage device can be mobile memory medium; S3, with the data transmission in each partition data piece to the data buffer storage device of correspondence; S4 carries out the data in the data buffer storage device to be transferred to target data storage device after the data recombination, and wherein, the mode of data recombination is for to carry out data recombination by RAID 0 algorithm.
Preferably, the USB interface limited amount that on the source data memory storage, can arrange, and the transmitted data amount of wanting when larger, the USB interface on one or more levels the usb hub extended source data storage device of choice for use as required is to improve data rate.
According to the preferred embodiment of this method, described data transmission procedure is specially:
In S1, read the data in the selected sector in the source data memory storage, setting the size of data that reads is X.
In S2, the source data memory storage is set N USB interface of connection, N is greater than 1, if the USB interface that can set on the source data memory storage is limited, can expand USB interface with one or more levels usb hub as required.
The data that read are averaged to cut apart form N partition data piece, respectively with K 1, K 2..., K NRepresent K 1, K 2..., K NSize of data identical, represent with L, and K 1, K 2..., K NRespectively corresponding data buffer storage.
In S3, with K 1, K 2..., K NBe transferred to each self-corresponding data buffer storage device by usb protocol.Because K 1, K 2..., K NSize of data identical, therefore, K 1, K 2..., K NThe time that is transferred to each self-corresponding data buffer storage device is identical, represents with T.
With K 1, K 2..., K NBe transferred to the average velocity V=L/T of each self-corresponding data buffer storage device, so, the transmission of data size is the time T of data to the data buffer storage of X 1=X/ (L/T)=X/V.Can draw, the transmission of data size is that the data of X are to the time T of N data buffer storage N=X/ (L/T * N)=X/ (V * N).
To sum up can obtain, the transmission of data size is data to the time T that data buffer storage reduce of X to N data buffer storage than the transmission of data is big or small for the data of X 0=T 1-T N=((V * N)=(X * (N-1))/(V * N) that is to say the Simultaneous Transmission of Data of formed objects fast to the speed that the velocity ratio of N data buffer storage is transferred to a data buffer storage X/V)-X/.
In S4, data in the data buffer storage device are carried out the data recombination algorithm, and to carry out data recombination be a complete data file, such as carrying out data recombination by RAID O algorithm, again with this complete transmitting data file to target data storage device, the data content that reads among the content of the data file that this is complete and the S1 is consistent.
In the very large situation of data volume in the source data memory storage, described data transmission procedure can carry out repeatedly, until with the data transmission in all sectors of source data memory storage to target data storage device.
Method of the present invention has adequately and reasonably been utilized a plurality of USB interface, the quantity of the data buffer storage device that will connect according to USB interface, transmit after the data that read are reasonably cut apart the partition data piece that forms formed objects, again the partition data piece is carried out data recombination and become the data consistent with the data content that reads before the transmission, can greatly improve data rate, save data transmission period.
The invention allows for a kind of data transmission system corresponding with said method, referring to Fig. 2, the schematic diagram of the USB interface-based data transmission system embodiment that proposes for the present invention.Described system comprises source data memory storage 21, data buffer storage device 22 and target data storage device 23, wherein said source data memory storage 21 is provided with more than one USB interface 211, each USB interface 211 connects a data buffer storage 22, described system also comprises: data-reading unit 24, be used for reading the data of source data memory storage 21, wherein, the mode of data-reading unit 24 reading out datas is the data in the selected sector of reading in the source data memory storage 21; Data partitioning unit 25, being used for quantity according to data buffer storage device 22 averages the data that read to cut apart and forms a plurality of partition data pieces, wherein, each partition data block size is all identical, and the corresponding data buffer storage 22 of each partition data piece, described data buffer storage device 22 can be mobile memory medium; Data transmission unit 26 is used for the data transmission of each the partition data piece data buffer storage device 22 to correspondence; Data recombination unit 27 is used for the data of data buffer storage device 22 are carried out being transferred to target data storage device 23 after the data recombination, and the data recombination mode of wherein said data recombination unit 27 is for to carry out data recombination by RAID 0 algorithm.Wherein, described data-reading unit 24, data partitioning unit 25 and data transmission unit 26 also can be deployed in outside the described source data memory storage 21 or be deployed in other devices.
Preferably, the USB interface limited amount that on source data memory storage 21, can arrange, and the transmitted data amount of wanting when larger, the USB interface on one or more levels the usb hub extended source data storage device 21 of choice for use as required is to improve data rate.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For system embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Above a kind of USB interface-based data transmission method provided by the present invention and system are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. USB interface-based data transmission method, it is characterized in that, the source data memory storage is provided with more than one USB interface, and each USB interface connects a data buffer storage, described method comprises data transmission procedure at least one times, and described transmission course comprises the steps:
Read the data in the source data memory storage;
According to the quantity of data buffer storage device the data that read are averaged to cut apart and form a plurality of partition data pieces, wherein, each partition data block size is all identical, and the corresponding data buffer storage of each partition data piece;
With the data transmission in each partition data piece to the data buffer storage device of correspondence;
Data in the data buffer storage device are carried out being transferred to target data storage device after the data recombination.
2. the method for claim 1 is characterized in that, the described step that reads the data in the source data memory storage is specially the data in the selected sector of reading in the source data memory storage.
3. the method for claim 1 is characterized in that, described data buffer storage device is mobile memory medium.
4. the method for claim 1 is characterized in that, described method also comprises, by the USB interface on one or more levels the USB hub extended source data storage device.
5. the method for claim 1 is characterized in that, described step of the data in the data buffer storage device being carried out being transferred to after the data recombination target data storage device, and data recombination mode wherein is for to carry out data recombination by RAID 0 algorithm.
6. USB interface-based data transmission system, it is characterized in that, comprise source data memory storage, data buffer storage device and target data storage device, wherein said source data memory storage is provided with more than one USB interface, each USB interface connects a data buffer storage, and described system also comprises:
Data-reading unit is for the data that read the source data memory storage;
Data partitioning unit is used for quantity according to the data buffer storage device and the data that read are averaged to cut apart forms a plurality of partition data pieces, and wherein, each partition data block size is all identical, and the corresponding data buffer storage of each partition data piece;
Data transmission unit is used for the data transmission of each the partition data piece data buffer storage device to correspondence;
The data recombination unit is used for the data of data buffer storage device are carried out being transferred to target data storage device after the data recombination.
7. system as claimed in claim 6 is characterized in that, the mode of described data-reading unit reading out data is the data in the selected sector of reading in the source data memory storage.
8. system as claimed in claim 6 is characterized in that, described data buffer storage device is mobile memory medium.
9. system as claimed in claim 6 is characterized in that, described system also comprises one or more levels usb hub, is used for the USB interface on the extended source data storage device.
10. system as claimed in claim 6 is characterized in that, the data recombination mode of described data recombination unit is for to carry out data recombination by RAID 0 algorithm.
CN2013100080336A 2013-01-10 2013-01-10 Method and system for transmitting data on basis of USB (universal serial bus) interfaces Pending CN103019987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100080336A CN103019987A (en) 2013-01-10 2013-01-10 Method and system for transmitting data on basis of USB (universal serial bus) interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100080336A CN103019987A (en) 2013-01-10 2013-01-10 Method and system for transmitting data on basis of USB (universal serial bus) interfaces

Publications (1)

Publication Number Publication Date
CN103019987A true CN103019987A (en) 2013-04-03

Family

ID=47968611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100080336A Pending CN103019987A (en) 2013-01-10 2013-01-10 Method and system for transmitting data on basis of USB (universal serial bus) interfaces

Country Status (1)

Country Link
CN (1) CN103019987A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970690A (en) * 2014-05-19 2014-08-06 浪潮电子信息产业股份有限公司 High-performance high-fault-tolerance storage design method and device based on channel bonding
CN107341125A (en) * 2017-07-15 2017-11-10 深圳市华琥技术有限公司 Data transmission method and system and usb controller
CN108205553A (en) * 2016-12-19 2018-06-26 深圳联友科技有限公司 A kind of interface processing system and method based on text file
CN109413191A (en) * 2018-11-07 2019-03-01 深圳市网心科技有限公司 Data transmission method, electronic equipment and storage medium
CN109710679A (en) * 2018-12-28 2019-05-03 北京旷视科技有限公司 Data pick-up method and device
CN111124985A (en) * 2019-12-24 2020-05-08 厦门市美亚柏科信息股份有限公司 Read-only control method and device for mobile terminal
CN115379280A (en) * 2022-10-19 2022-11-22 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303638A (en) * 2008-02-22 2008-11-12 华南理工大学 Multi-USB interface high performance image adaptation apparatus as well as signal transmission method
CN101546194A (en) * 2009-05-07 2009-09-30 成都市华为赛门铁克科技有限公司 Interface device, interface control method and memory system
CN102063399A (en) * 2011-01-10 2011-05-18 深圳市润天智图像技术有限公司 Multichannel data transmission method, system andequipment
CN102681790A (en) * 2012-03-02 2012-09-19 南京拓界信息技术有限公司 Data dump device and method and system for data dump by same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303638A (en) * 2008-02-22 2008-11-12 华南理工大学 Multi-USB interface high performance image adaptation apparatus as well as signal transmission method
CN101546194A (en) * 2009-05-07 2009-09-30 成都市华为赛门铁克科技有限公司 Interface device, interface control method and memory system
CN102063399A (en) * 2011-01-10 2011-05-18 深圳市润天智图像技术有限公司 Multichannel data transmission method, system andequipment
CN102681790A (en) * 2012-03-02 2012-09-19 南京拓界信息技术有限公司 Data dump device and method and system for data dump by same

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970690A (en) * 2014-05-19 2014-08-06 浪潮电子信息产业股份有限公司 High-performance high-fault-tolerance storage design method and device based on channel bonding
CN108205553A (en) * 2016-12-19 2018-06-26 深圳联友科技有限公司 A kind of interface processing system and method based on text file
CN108205553B (en) * 2016-12-19 2021-12-28 深圳联友科技有限公司 Interface processing system and method based on text file
CN107341125A (en) * 2017-07-15 2017-11-10 深圳市华琥技术有限公司 Data transmission method and system and usb controller
CN109413191A (en) * 2018-11-07 2019-03-01 深圳市网心科技有限公司 Data transmission method, electronic equipment and storage medium
CN109710679A (en) * 2018-12-28 2019-05-03 北京旷视科技有限公司 Data pick-up method and device
CN111124985A (en) * 2019-12-24 2020-05-08 厦门市美亚柏科信息股份有限公司 Read-only control method and device for mobile terminal
CN115379280A (en) * 2022-10-19 2022-11-22 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame
CN115379280B (en) * 2022-10-19 2023-01-31 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame

Similar Documents

Publication Publication Date Title
CN103019987A (en) Method and system for transmitting data on basis of USB (universal serial bus) interfaces
CN107003943B (en) The control method of reading and writing data order, storage equipment and system in NVMe over Fabric framework
CN102866971B (en) Device, the system and method for transmission data
CN103077149A (en) Method and system for transmitting data
KR102268699B1 (en) Operation method of storage device, operation method of host device, and operation method of user system including storage device and host device
CN102609361B (en) Method and device for transferring storage data of virtual machine
CN111752480A (en) Data writing method, data reading method, related equipment and system
CN103491152A (en) Metadata obtaining method, device and system in distributed file system
CN102073611B (en) I2C bus control system and method
CN103984662A (en) Method and device for reading and writing data and storage system
CN102314400A (en) Method and device for dispersing converged DMA (Direct Memory Access)
CN104239252A (en) Data transmission method, device and system of data storage system
CN102750245B (en) Message method of reseptance, message receiver module, Apparatus and system
CN202422111U (en) Novel storage device
US9501437B2 (en) Scalable storage system having multiple storage channels
CN115883022B (en) DMA transmission control method, apparatus, electronic device and readable storage medium
CN205139769U (en) Interface expanding unit and mainboard
CN108228104B (en) Data transmission method and solid state hard disk controller
CN115794701A (en) BMC chip and method of DMA function virtual serial port
CN105389282A (en) Communication method of processor and ARINC429 bus
CN108111380A (en) N roads CAN communication device, implementation method and charging equipment based on A5 platforms
CN114218138A (en) USB equipment simulation device and test system
CN102375795B (en) Interface conversion device and conversion method
CN202632285U (en) Solid state disk (SSD) controller applying intelligent direct memory access (DMA)
CN103902491B (en) USB (universal serial bus)-based high-speed data transmission device and USB-based high-speed data transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130403