CN109684234A - A kind of data transmission method and system - Google Patents
A kind of data transmission method and system Download PDFInfo
- Publication number
- CN109684234A CN109684234A CN201811570200.5A CN201811570200A CN109684234A CN 109684234 A CN109684234 A CN 109684234A CN 201811570200 A CN201811570200 A CN 201811570200A CN 109684234 A CN109684234 A CN 109684234A
- Authority
- CN
- China
- Prior art keywords
- data
- virtual memory
- memory
- terminal
- transfer request
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 79
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012546 transfer Methods 0.000 claims abstract description 46
- 238000013507 mapping Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 12
- 238000013481 data capture Methods 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 abstract description 17
- 238000003860 storage Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000032683 aging Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0815—Cache consistency protocols
- G06F12/0831—Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention discloses a kind of data transmission method, is applied to computer, comprising: receives the data transfer request that terminal is sent, and to operating system application virtual memory;The corresponding data reading in hard disk is mapped in the virtual memory according to the data transfer request;Realize that the data between terminal and computer are transmitted by the virtual memory.The present invention receives after the data transfer request of terminal by computer operating system application virtual memory, and data transfer request maps to reading data needed for data, that is, terminal corresponding with the data transfer request in hard disk in the virtual memory based on the received, terminal can directly read the data of virtual memory, and the data of reading can be passed through to multichannel usb port transmission into multiple production terminals, because the reading speed of memory may be up to 10G/s, the number of computer multiplexing can then be increased, improve data transfer efficiency simultaneously, to greatly improve production efficiency.Invention additionally discloses a kind of data transmission systems simultaneously.
Description
Technical field
The present invention relates to field of communication technology, relate more specifically to a kind of data transmission method and system.
Background technique
Currently, factory needs creation data to pass through usb (Universal by computer in existing production
Serial Bus, universal serial bus) it is transferred in a large amount of production terminal, in order to improve the production efficiency, computer is often
It needs to connect multiple production terminals simultaneously, while the production time can be saved by way of the multi-path transmission data, that is, pass through meter
Calculation machine reads data from memory, and divides Multi-path synchronous to be transferred to multiple production terminals, but because computer storage generally makes
With mechanical hard disk, 7200 turns of SATA hard disc maximum reads 150M/s or so, and the transmission speed of each port usb2.0 can only
Reach 30M/s, in actual use, 4 road usb simultaneous transmissions have substantially just reached the reading bottleneck of hard disk, are further continued for increasing road
Number also cannot achieve the improved efficiency of data transmission, and the operating of hard disk high load capacity is read, and the aging and damage of hard disk can be also accelerated
It is bad.
In consideration of it, it is necessary to provide the number that one kind can increase computer multiplexing, while improve data transfer efficiency
Data transmission method and system to solve drawbacks described above.
Summary of the invention
The technical problems to be solved by the invention, which provide one kind, can increase the number of computer multiplexing, while improve number
According to the data transmission method of efficiency of transmission.
Another technical problem to be solved by this invention is to provide a kind of number that can increase computer multiplexing, simultaneously
The data transmission system of improve data transfer efficiency.
In order to solve the above technical problems, according to an aspect of the present invention, providing a kind of data transmission method, it is applied to meter
Calculation machine, this method comprises:
The data transfer request that terminal is sent is received, and to operating system application virtual memory;
The corresponding data reading in hard disk is mapped in the virtual memory according to the data transfer request;
Realize that the data between terminal and computer are transmitted by the virtual memory.
Its further technical solution are as follows: described that corresponding data in hard disk is read by mapping according to the data transfer request
To in the virtual memory, comprising:
The corresponding physical address of the virtual address for obtaining the virtual memory from memory mapping table;
The corresponding data in hard disk is obtained according to the data transfer request;
The corresponding data of the acquisition is mapped in virtual memory according to the physical address.
Its further technical solution are as follows: described to realize that the data between terminal and computer pass by the virtual memory
It is defeated, specifically: the terminal obtains the data from computer by carrying out read operation to the virtual memory.
Its further technical solution are as follows: realize that the data between terminal and computer pass by the virtual memory described
After defeated, further includes: discharge the virtual memory.
In order to solve the above technical problems, according to another aspect of the present invention, a kind of data transmission system is provided, the system packet
It includes:
Memory application module, for receiving the data transfer request of terminal transmission, and to operating system application virtual memory;
Processing module is controlled, it is described for being mapped to the corresponding data reading in hard disk according to the data transfer request
In virtual memory;
Transmission module, for being realized between terminal and computer by the virtual memory of the memory application module application
Data transmission.
Its further technical solution are as follows: the control processing module includes:
Address acquisition unit, the virtual address for obtaining the virtual memory from memory mapping table are corresponding physically
Location;
Data capture unit, for obtaining the corresponding data in hard disk according to the data transfer request;
Map unit, for being mapped to the corresponding data of the acquisition in virtual memory according to the physical address.
Its further technical solution are as follows: the transmission module is specifically used for by carrying out read operation to the virtual memory,
Realize that the data between terminal and computer are transmitted.
Its further technical solution are as follows: the data transmission system further includes release module, is used to discharge the memory
Apply for the virtual memory of module application.
In order to solve the above technical problems, also provide a kind of data transmission system, which includes: processor and memory,
Wherein, the processor is for executing following procedure module stored in memory:
Memory application module, for receiving the data transfer request of terminal transmission, and to operating system application virtual memory;
Processing module is controlled, it is described for being mapped to the corresponding data reading in hard disk according to the data transfer request
In virtual memory;
Transmission module, for being realized between terminal and computer by the virtual memory of the memory application module application
Data transmission.
Compared with prior art, the present invention receives after the data transfer request of exterior terminal by computer operation system
System application virtual memory, and be by data corresponding with the data transfer request in hard disk according to received data transmission request
Reading data needed for terminal maps in the virtual memory, and by the virtual memory can realize terminal and computer it
Between data transmission, it is known that, terminal can directly read the data of virtual memory in the present invention, and can pass through the data of reading more
Road usb port transmission is into multiple production terminals, because the reading speed of memory may be up to 10G/s, then it is more can to increase computer
The number of road transmission, while improve data transfer efficiency, to greatly improve production efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of one specific embodiment of data transmission method of the present invention.
Fig. 2 is the sub-process schematic diagram of data transmission method provided in an embodiment of the present invention.
Fig. 3 is the structural block diagram that data transmission system of the present invention unifies specific embodiment.
Specific embodiment
To make those skilled in the art that the object, technical solutions and advantages of the present invention be more clearly understood, with
Under the present invention is further elaborated in conjunction with the accompanying drawings and embodiments.
Referring to Fig.1, Fig. 1 is the flow diagram of one specific embodiment of data transmission method of the present invention.The data transmission
Method is applied to computer, in the embodiment shown in the figures, comprising:
S101, the data transfer request that terminal is sent is received, and to operating system application virtual memory.
In the step, it is used to store needed for terminal to operating system application after receiving the data transfer request of terminal transmission
Data virtual memory, wherein the terminal is the production terminal in workshop on production line.
S102, the corresponding data reading in hard disk is mapped in the virtual memory according to the data transfer request.
In the step, the data form computer hard disk for needing to be transferred to terminal is led to according to received data transmission request
It crosses and disposably reads in virtual memory, invent one using virtual memory as the virtual data files of storage medium.
Specifically, in some embodiments, as shown in Fig. 2, the step S102 may include step S1021-S1023.
S1021, the corresponding physical address of virtual address for obtaining the virtual memory from memory mapping table.
In the step, the memory mapping table record has the mapping relations of virtual memory and physical memory, i.e. its record has
Mapping relations between the virtual address and physical address of virtual memory.
S1022, the corresponding data in hard disk is obtained according to the data transfer request.
In the step, request is transmitted according to received data and reads corresponding with the data transfer request in hard disk count
According to i.e. data needed for reading terminals.
S1023, the corresponding data of the acquisition is mapped in virtual memory according to the physical address.
It is found that will be from data needed for data corresponding with the data transfer request i.e. terminal read in hard disc of computer
It maps in the virtual memory, to invent one using virtual memory as the virtual data files of storage medium.
S103, realize that the data between terminal and computer are transmitted by the virtual memory.
In the step, a terminal is connected to computer by usb all the way, i.e. terminal is counted with intercomputer by usb
According to transmission.Specifically, the terminal obtains the data from computer, by carrying out read operation to the virtual memory with reality
Data between existing terminal and computer are transmitted.
S104, the release virtual memory.
In the step, after the data between terminal and computer are transmitted, then the virtual memory is discharged.
In summary, computer and terminal are carried out data transmission by usb in the above method, when receiving exterior terminal
By to computer operating system application virtual memory after data transfer request, and will be hard according to received data transmission request
Reading data needed for data, that is, terminal corresponding with the data transfer request maps in the virtual memory in disk, external whole
End obtains the data from computer, by carrying out read operation to the virtual memory to realize between terminal and computer
Data transmission, it is known that, terminal can directly read the data of virtual memory in the present invention, and the data of reading can be passed through multichannel
Usb port transmission is into multiple production terminals, because the reading speed of memory may be up to 10G/s, can theoretically support simultaneously several
The usb on hundred tunnels is transmitted, then can increase the number of computer multiplexing, while improve data transfer efficiency, to greatly improve life
Produce efficiency.
Referring to Fig. 3, Fig. 3 is the structural block diagram that data transmission system of the present invention unifies specific embodiment.In reality shown in the drawings
Apply in example, the data transmission system 200 include a memory application module 201, control processing module 202, transmission module 203 with
And release module 204.
Wherein, the memory application module 201 is used to receive the data transfer request of terminal transmission, and to operating system Shen
It please virtual memory;Wherein, a terminal is connected to computer by usb all the way, then terminal carries out data by usb with intercomputer
Transmission, the terminal are the production terminal in workshop on production line.The control processing module 202 is used for according to the number
The corresponding data reading in hard disk is mapped in the virtual memory according to transmission request, i.e. 202 basis of control processing module
Received data transmission request is by the data form computer hard disk for needing to be transferred to terminal by disposably reading in virtual
In depositing, one is invented using virtual memory as the virtual data files of storage medium;Specifically, the control processing module 202
Including address acquisition unit 2021, data capture unit 2022 and map unit 2023;Wherein, the address acquisition unit
The 2021 corresponding physical address of virtual address for obtaining the virtual memory from memory mapping table;The memory mapping table note
Record has the mapping relations of virtual memory and physical memory, i.e. its record has reflecting between the virtual address of virtual memory and physical address
Penetrate relationship.The data capture unit 2022 is used to obtain the corresponding data in hard disk according to the data transfer request.It is described
Map unit 2023, i.e., will be from meter for being mapped to the corresponding data of the acquisition in virtual memory according to the physical address
Data needed for data corresponding with the data transfer request i.e. terminal read in calculation machine hard disk map to the virtual memory
In, to invent one using virtual memory as the virtual data files of storage medium.The transmission module 203 is used for by described
The virtual memory that memory application module 201 is applied realizes that the data between terminal and computer are transmitted;Specifically, the terminal is logical
It crosses and read operation is carried out to the virtual memory, the data from computer are obtained, to realize the data between terminal and computer
Transmission.The release module 204 is used to discharge the virtual memory that the memory application module 201 is applied.
The embodiment of the invention also provides a kind of data transmission systems comprising: processor and memory, wherein described
Processor is for executing following procedure module stored in memory:
Memory application module, for receiving the data transfer request of terminal transmission, and to operating system application virtual memory;
Processing module is controlled, for the corresponding data reading in hard disk to be mapped to the virtual memory according to the data transfer request
In;Transmission module realizes the data between terminal and computer for the virtual memory by the memory application module application
Transmission.
In conclusion the present invention receives after the data transfer request of exterior terminal by computer operating system application
Virtual memory, and requested according to received data transmission by data corresponding with the data transfer request in hard disk, that is, terminal institute
The reading data needed maps in the virtual memory, and can realize the number between terminal and computer by the virtual memory
According to transmission, it is known that, terminal can directly read the data of virtual memory in the present invention, and the data of reading can be passed through multichannel usb
Port transmission because the reading speed of memory may be up to 10G/s, then can increase computer multiplexing into multiple production terminals
Number, while improve data transfer efficiency, to greatly improve production efficiency.
It should be noted that for the aforementioned method embodiment, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that,
The embodiments described in the specification are all preferred embodiments, and not necessarily the present invention must for related actions and modules
Must.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In addition, each functional unit in various embodiments of the present invention can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a processor, i.e., in computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are to make
Computer equipment (can be personal computer, server or network equipment etc.) is obtained to execute described in each embodiment of the present invention
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-
OnlyMemory), random access memory (RAM, RandomAccess Memory), mobile hard disk, magnetic or disk etc. are each
Kind can store the medium of program code.
The above description is only a preferred embodiment of the present invention, rather than does limitation in any form to the present invention.This field
Technical staff can impose various equivalent changes and improvement, all institutes within the scope of the claims on the basis of the above embodiments
The equivalent variations or modification done, should all fall under the scope of the present invention.
Claims (9)
1. a kind of data transmission method, it is applied to computer, which is characterized in that the data transmission method includes:
The data transfer request that terminal is sent is received, and to operating system application virtual memory;
The corresponding data reading in hard disk is mapped in the virtual memory according to the data transfer request;
Realize that the data between terminal and computer are transmitted by the virtual memory.
2. data transmission method as described in claim 1, it is characterised in that: it is described according to the data transfer request by hard disk
In corresponding data reading map in the virtual memory, comprising:
The corresponding physical address of the virtual address for obtaining the virtual memory from memory mapping table;
The corresponding data in hard disk is obtained according to the data transfer request;
The corresponding data of the acquisition is mapped in virtual memory according to the physical address.
3. data transmission method as described in claim 1, it is characterised in that: it is described by the virtual memory realize terminal with
Data transmission between computer, specifically: the terminal is obtained by carrying out read operation to the virtual memory from calculating
The data of machine.
4. data transmission method as described in claim 1, it is characterised in that: realize terminal by the virtual memory described
After data transmission between computer, further includes: discharge the virtual memory.
5. a kind of data transmission system, which is characterized in that the data transmission system includes:
Memory application module, for receiving the data transfer request of terminal transmission, and to operating system application virtual memory;
Processing module is controlled, it is described virtual for being mapped to the corresponding data reading in hard disk according to the data transfer request
In memory;
Transmission module realizes the data between terminal and computer for the virtual memory by the memory application module application
Transmission.
6. data transmission system as claimed in claim 5, which is characterized in that the control processing module includes:
Address acquisition unit, the corresponding physical address of virtual address for obtaining the virtual memory from memory mapping table;
Data capture unit, for obtaining the corresponding data in hard disk according to the data transfer request;
Map unit, for being mapped to the corresponding data of the acquisition in virtual memory according to the physical address.
7. data transmission system as claimed in claim 5, it is characterised in that: the transmission module is specifically used for by described
Virtual memory carries out read operation, realizes that the data between terminal and computer are transmitted.
8. data transmission system as claimed in claim 5, it is characterised in that: the data transmission system further includes release mould
Block is used to discharge the virtual memory of the memory application module application.
9. a kind of data transmission system, which is characterized in that the data transmission system includes: processor and memory, wherein institute
Processor is stated for executing following procedure module stored in memory:
Memory application module, for receiving the data transfer request of terminal transmission, and to operating system application virtual memory;
Processing module is controlled, it is described virtual for being mapped to the corresponding data reading in hard disk according to the data transfer request
In memory;
Transmission module realizes the data between terminal and computer for the virtual memory by the memory application module application
Transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811570200.5A CN109684234A (en) | 2018-12-21 | 2018-12-21 | A kind of data transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811570200.5A CN109684234A (en) | 2018-12-21 | 2018-12-21 | A kind of data transmission method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109684234A true CN109684234A (en) | 2019-04-26 |
Family
ID=66188645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811570200.5A Pending CN109684234A (en) | 2018-12-21 | 2018-12-21 | A kind of data transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684234A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738328A (en) * | 2020-12-24 | 2021-04-30 | 维沃移动通信有限公司 | Electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7249241B1 (en) * | 2004-04-29 | 2007-07-24 | Sun Microsystems, Inc. | Method and apparatus for direct virtual memory address caching |
CN102110196A (en) * | 2009-12-25 | 2011-06-29 | 中国长城计算机深圳股份有限公司 | Method and system for safely transmitting data among parallel-running multiple user operating systems |
CN104615383A (en) * | 2015-02-06 | 2015-05-13 | 安一恒通(北京)科技有限公司 | Software operation method and device based on virtual disk |
CN108197038A (en) * | 2018-02-01 | 2018-06-22 | 深圳市风云实业有限公司 | A kind of Linux data transmission methods, device and user terminal |
-
2018
- 2018-12-21 CN CN201811570200.5A patent/CN109684234A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7249241B1 (en) * | 2004-04-29 | 2007-07-24 | Sun Microsystems, Inc. | Method and apparatus for direct virtual memory address caching |
CN102110196A (en) * | 2009-12-25 | 2011-06-29 | 中国长城计算机深圳股份有限公司 | Method and system for safely transmitting data among parallel-running multiple user operating systems |
CN104615383A (en) * | 2015-02-06 | 2015-05-13 | 安一恒通(北京)科技有限公司 | Software operation method and device based on virtual disk |
CN108197038A (en) * | 2018-02-01 | 2018-06-22 | 深圳市风云实业有限公司 | A kind of Linux data transmission methods, device and user terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738328A (en) * | 2020-12-24 | 2021-04-30 | 维沃移动通信有限公司 | Electronic device |
CN112738328B (en) * | 2020-12-24 | 2022-08-26 | 维沃移动通信有限公司 | Electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103607428B (en) | A kind of method and apparatus for accessing shared drive | |
CN107728936B (en) | Method and apparatus for transmitting data processing requests | |
CN104079445A (en) | Distributed type pressure testing system and method | |
CN104216835A (en) | Method and device for implementing memory fusion | |
CN112130748A (en) | Data access method, network card and server | |
CN103812945A (en) | Method for upgrading data and central server | |
CN105677754A (en) | Method, apparatus and system for acquiring subitem metadata in file system | |
CN209248436U (en) | A kind of expansion board clamping and server | |
US20190156245A1 (en) | Platform as a service cloud server and machine learning data processing method thereof | |
CN109684234A (en) | A kind of data transmission method and system | |
CN117591009A (en) | Data management method, storage device and server | |
CN105471930A (en) | Method, system and equipment for reading distributed data | |
CN103561128A (en) | FC ID recycling method and network equipment | |
CN116827797A (en) | PCIe bandwidth allocation method and server | |
CN113434604B (en) | Time sequence database synchronization method, system, equipment and storage medium | |
CN209248518U (en) | A kind of solid state hard disk expansion board clamping and server | |
CN109616156B (en) | Gene sequencing data storage method and device | |
CN112882722A (en) | Compiling method, chip, computer readable medium | |
CN103051975A (en) | P2P (peer to peer) cache data elimination method | |
CN104536800A (en) | Virtual machine placement method and device | |
CN104679688A (en) | Data access method, device and system | |
CN109542702A (en) | A kind of test equipment and test method | |
CN114500688B (en) | Method, device, terminal and storage medium for identifying equipment protocol | |
CN112764666B (en) | Method, apparatus and computer program product for storage management | |
CN113986134B (en) | Method for storing data, method and device for reading data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20190426 |