CN108809363A - Near-field Data transmission method and its device - Google Patents

Near-field Data transmission method and its device Download PDF

Info

Publication number
CN108809363A
CN108809363A CN201810979497.4A CN201810979497A CN108809363A CN 108809363 A CN108809363 A CN 108809363A CN 201810979497 A CN201810979497 A CN 201810979497A CN 108809363 A CN108809363 A CN 108809363A
Authority
CN
China
Prior art keywords
data
thread
transfer request
buffering area
disk
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
CN201810979497.4A
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.)
Ucweb Singapore Pte Ltd
Original Assignee
Ucweb Singapore Pte 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 Ucweb Singapore Pte Ltd filed Critical Ucweb Singapore Pte Ltd
Priority to CN201810979497.4A priority Critical patent/CN108809363A/en
Priority to PCT/IB2018/057152 priority patent/WO2020044091A1/en
Publication of CN108809363A publication Critical patent/CN108809363A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of Near-field Data transmission method, device, system, equipment/terminal/server, computer-readable mediums.One specific implementation mode of this method includes:Determine the data transfer request that data receiver initiates in LAN;According to the data transfer request, parallel starting network inputs export thread and disk input and output thread;Thread and disk input and output thread are exported according to the network inputs, receives the data for being transferred to the data receiver by the data sender in the LAN.The specific implementation mode efficiently avoids obstruction of the disk I/O implementation procedure to network I/O, improves the speed of data transmission, has advanced optimized user experience.

Description

Near-field Data transmission method and its device
Technical field
This application involves Internet technical field more particularly to a kind of Near-field Data transmission method, device, system, equipment/ Terminal/server, computer-readable medium.
Background technology
In some application environments, for example, function machine use ratio still far be more than intelligent machine use ratio, separately Outside, add mobile mutually net connection development degree is still relatively slow and the basis of the hardware facilities such as internet is poor, provide across Platform transmission technology scheme, under the scene of no flow and operator WiFi, either the state without net or low network speed, real The transmission of existing data.
In above-mentioned cross-platform transmission plan, for the recipient of data, receives data while to use network I/O Mouth and hard disk I/O port are still easy to cause resistance of the disk I/O implementation procedure to network I/O to the control of network I/O and hard disk I/O port Plug, it is slower so as to cause data transmission bauds.
Invention content
The purpose of the application be to propose a kind of Near-field Data transmission method, device, system, equipment/terminal/server, Computer-readable medium, for solving or alleviating the above problem in the prior art.
In a first aspect, this application provides a kind of Near-field Data transmission methods comprising:
Determine the data transfer request that data receiver initiates in LAN;
According to the data transfer request, parallel starting network inputs export thread and disk input and output thread;
Thread and disk input and output thread are exported according to the network inputs, is received by the data in the LAN Sender is transferred to the data of the data receiver.
Second aspect, the embodiment of the present application provide a kind of Near-field Data transmitting device comprising:
First program unit is configured to determine the data transfer request that data receiver initiates in LAN;
Second program unit is configured to according to the data transfer request, parallel starting network inputs export thread and Disk input and output thread;
Third program unit is configured to export thread and disk input and output thread according to network inputs, receive by institute State the data that the data sender in LAN is transferred to the data receiver.
The third aspect, the embodiment of the present application provide a kind of near-field transmission system comprising:Data sender and data Recipient, the data sender and the data receiver are located in same LAN, and the data receiver determines it The data transfer request initiated in the LAN, and according to the data transfer request, the output of parallel starting network inputs Thread and disk input and output thread, and thread and disk input and output thread are exported according to network inputs, it will be described The data that data transfer request is directed toward are transferred to the data receiver by the data sender in the LAN.
Fourth aspect, the embodiment of the present application provide a kind of equipment/terminal/server, including:
One or more processors;
Computer-readable medium is configured to store one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the method as described in above-mentioned any embodiment.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in above-mentioned any embodiment is realized when program is executed by processor.
Near-field Data transmission method provided by the present application, device, system, equipment/terminal/server, computer-readable Jie In matter, by the data transfer request for determining data receiver's initiation in LAN;According to the data transfer request, open parallel Dynamic network inputs output thread and disk input and output thread;Thread is exported according to the network inputs and disk input is defeated Go out thread, receives the data for being transferred to the data receiver by the data sender in the LAN, avoid disk I/O Implementation procedure improves the speed of data transmission, has advanced optimized user experience to the obstruction of network I/O.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is Near-field Data transmission method flow diagram in the embodiment of the present application one;
Fig. 2 is Near-field Data transmission method flow diagram in the embodiment of the present application two;
Fig. 3 is Near-field Data transmission method flow diagram in the embodiment of the present application three;
Fig. 4 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application four;
Fig. 5 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application five;
Fig. 6 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application six;
Fig. 7 is the structural schematic diagram of near-field transmission system in the embodiment of the present application seven;
Fig. 8 is the structural schematic diagram of equipment/terminal/server in the embodiment of the present application eight;
Fig. 9 is the hardware configuration of equipment/terminal/server in the embodiment of the present application nine.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated only is only configured to explain related invention, rather than the restriction to the invention.It also should be noted that being Convenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is Near-field Data transmission method flow diagram in the embodiment of the present application one;As shown in Figure 1, in the present embodiment, It may include steps of S101-S102:
S101, the data transfer request that data receiver initiates in LAN is determined;
In the present embodiment, the LAN is built by self-built WIFI to realize the near field transmission.In the LAN May include multiple user terminals, which can be smart mobile phone, Intelligent flat, smartwatch, PC etc..This scene The basis that is preferably suitable for the hardware facilities such as internet is poor, without under the scene of flow and cloud operator WiFi, or without net Or the state of low network speed, realize in the same LAN to be the transmission for realizing data sharing between different user terminals.I.e. not It is direct-connected and independent of other networks (such as internet) and equipment (such as router) between same terminal (such as two mobile phones), and transmit speed Rate is fast, therefore can easily realize that the data interaction between different terminals i.e. Near-field Data transmits, and is applied widely.The data packet Include but be not limited to audio, video data, application program installation kit etc..
Specifically, in a kind of specific application scenarios, the mode of building of LAN can be that a station terminal opens hot spot And random connection password is generated, another station terminal or more station terminals are searched for and find the hot spot, and it is close to input connection by user later Code.
Alternatively, in another specific application scenarios, data sender opens hot spot, and generates connection letter Breath, wherein the content of the link information is used to establish with data sender by hot spot for data receiver direct-connected;With described Link information generates Quick Response Code, and shows the Quick Response Code;According to the data receiver scan the Quick Response Code with it is described Data sender is direct-connected, easy to operate, take section, is not error-prone so as to avoid connection password is manually entered.
The content of link information may include the mark of hot spot, i.e., the SSID (Service for the hot spot that data sender opens SetIdentifier), it is used for direct-connected hot spot so that data receiver determines.For another example, the content of link information may also comprise number Such as it is the MAC Address of its hot spot module, i.e. BSSID according to the mark of sender, i.e. unique device identification of data sender (Basic Service SetIdentifier) can be such that data receiver determines straight with it by the mark of data sender Data sender even.
It should be appreciated that according to the difference of connection type, the particular content of the above link information can be different.If for example, number The hot spot opened according to sender has been searched by data receiver, then the content of link information can only have connection password, and not have There is the mark (if certainly have can also) of hot spot.For another example, if data sender hides hot spot without allowing to count after opening hot spot It is searched according to recipient, then the content of link information can only have the mark of hot spot, (also may be used if having certainly without connection password With).For another example, the mark of data above sender can be individualism, can also be existed simultaneously with other contents, as to it The further verification of its content.
It should be appreciated that may also include other known content in link information, such as showing that it is link information Mark, the separator for dividing its different piece, the verification position etc. for showing its length, format etc..
In the present embodiment, on data sender can transmission data can specifically have by list or more it is good in a manner of be in It is existing, there is the data receiver of demand data intuitively to check to facilitate.Data receiver can be carried by the LAN access built For the data sender of data, the upper sharable data of the data sender or also known as sharable resource are checked.It is arranging The resource distribution shown on table have download either transmission button when the thing that this captures the download or transmission button is operated Part, i.e. data receiver have initiated data transfer request.
S102, according to the data transfer request, parallel starting network inputs export thread and disk input-output line Journey;
In the present embodiment, in step s 102 according to the data transfer request, parallel starting network inputs export thread And it when disk input and output thread, can specifically include:
According to the data transfer request, preset buffered switch system is triggered;
According to buffered switch system, parallel starting network inputs export thread and disk input and output thread.
In the present embodiment, network inputs output thread is mainly used for control and transfers data to data from data sender and connect Debit, and disk input and output thread is mainly used for control and writes data into the hard disk of data receiver local.
During realizing the application, controls from data sender transfer data to data receiver in the prior art Side controls the same thread used in the hard disk for writing data into data receiver local, and therefore, it is necessary to frequently using latch Signal carries out the use switching of thread, thus cause first to control from data sender transfer data to data receiver, It controls and is write data into the hard disk of data receiver local again, substantially can be regarded as a kind of serial processing mode, by This can cause from data sender transfer data to data receiver, write data into data receiver local hard disk it Between block, and then the speed for resulting in data transmission is slower, and user experience is poor.
And in contrast, in the present embodiment, thread, disk input-output line are exported by parallel startup network inputs Journey is equivalent to the coupled relation relieved between network inputs output thread, disk input and output thread, network inputs output line Journey, disk input and output thread are in control from data sender transfers data to data receiver, control writes data into There is no stringent Serial Relations between the hard disk of data receiver local, alternatively, can be understood as realizing network inputs again Export thread, the decoupling of disk input and output thread and discrete.
S103, thread and disk input and output thread are exported according to the network inputs, received by the LAN Data sender be transferred to the data of the data receiver.
In the present embodiment, in original execution, the data of disk input and output thread processing are sky, and network inputs export Thread obtains data from data receiver for the first time, and after getting data, the disk input and output thread processing of startup, which is directed to, to be obtained The data got are handled, and network inputs export thread and obtain data from data receiver again, and the disk input of startup is defeated Go out thread process to be handled for the data got again, and so on, until all data transmissions of request resource arrive In the disk of data receiver.
In the present embodiment, thread and disk input and output thread are exported according to the network inputs in step s 103, When reception is transferred to the data of the data receiver by the data sender in the LAN, it can specifically include:
Thread is exported according to the network inputs, the data that the data transfer request is directed toward are stored to the data and are connect The buffering area of debit;
According to the disk input and output thread, the data that the data transfer request is directed toward are read in from the buffering area Into the disk of the data receiver.
In the present embodiment, in a concrete application scene, network inputs output thread, disk input and output thread are controlling From data sender transfers data to the buffering area of data receiver, the data of buffering area are written to data receiver by control Local hard disk.
Further, in this embodiment in original execution, the data of disk input and output thread processing are sky, and net Network input and output thread obtains data, after getting data, the disk input and output thread of startup from data receiver for the first time Processing is handled the buffering area for transmission to data receiver for the data that get, network inputs export thread again from Data receiver obtains data for transmission to the buffering area of data receiver, and the disk input and output thread processing of startup is for again The secondary data got are handled so that the data of buffering area to be written to the hard disk of data receiver local, and so on, directly Into all data transmissions to the disk of data receiver of request resource.
Fig. 2 is Near-field Data transmission method flow diagram in the embodiment of the present application two;As shown in Fig. 2, in the present embodiment, It may include steps of:
S201, the data transfer request that data receiver initiates in LAN is determined;
S202, according to the data transfer request, parallel starting network inputs export thread and disk input-output line Journey;
In the present embodiment, step S201, S202 please refers to the related record in above-described embodiment one.
S203, thread is exported according to the network inputs, the data that the data transfer request is directed toward is added to first Data queue, and stored to the data receiver according to the data that the data transfer request is directed toward by first data queue The buffering area of side.
When the data that the data transfer request is directed toward are stored to the buffering area of the data receiver, the network is defeated Enter to export thread and is in non-blocking state;
S204, according to the disk input and output thread, the data read from the buffering area are added to the second data In queue, and the data that the data transfer request is directed toward are read by the number from the buffering area according to the second queue According in the disk of recipient.
It is unlike the embodiments above in the present embodiment, in order to realize the orderly quick transmission of data, by establishing number According to the mode of queue (the first data queue, the second data queue), data storage is controlled respectively to the slow of the data receiver Rush area, from the disk that the buffering area is read into the data receiver.
By data that the data transfer request is directed toward from the disk that the buffering area is read into the data receiver When, the disk input and output thread is in non-blocking state.In the present embodiment, specifically disk can be controlled by latch signal Input and output thread is in non-blocking state.When the data have been transferred to data receiver from data sender, pass through lock Depositing signal control, disk input and output thread is in blocked state, disk input and output thread is in blocked state.
Fig. 3 is Near-field Data transmission method flow diagram in the embodiment of the present application three;As shown in figure 3, in the present embodiment, It may include steps of:
S301, the data transfer request that data receiver initiates in LAN is determined;
S302, according to the data transfer request, parallel starting network inputs export thread and disk input-output line Journey;
S303, thread is exported according to the network inputs, the data that the data transfer request is directed toward are stored to described The buffering area of data receiver;
In the present embodiment, step S301, S302, S303 are similar to above-described embodiment one, embodiment two.
S304, latch processing is carried out to the data that the buffering area stores according to latch signal;
In the present embodiment, in order to ensure the safety of data, latch processing is carried out to the data stored to buffer area, the lock Processing is deposited specifically to be triggered by the latch signal.
S305, according to the disk input and output thread, the data that the data transfer request is directed toward are from the buffering Area is read into the disk of the data receiver.
In the present embodiment, since the data of buffering area are latched, when in disk to be read into, first to latching Data be unlocked.
In the present embodiment, thread and disk input and output can also be exported to the network inputs according to the latch signal Thread is scheduled processing, i.e. latch signal not only controls the latch of data, is additionally operable to control the network inputs output thread With the switching of disk input and output thread.The switching is mainly used for coordinating digital independent, i.e., when carrying out data processing to described Network inputs export thread and disk input and output thread is individually controlled, to flexibly control the transmission process of data.
Fig. 4 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application four;As shown in figure 4, the present embodiment In, may include:
First program unit 401 is configured to determine the data transfer request that data receiver initiates in LAN;
Second program unit 402 is configured to according to the data transfer request, parallel starting network inputs export thread with And disk input and output thread;
Third program unit 403 is configured to export thread and disk input and output thread according to network inputs, receive by Data sender in the LAN is transferred to the data of the data receiver.
In the present embodiment or other embodiment, second program unit 402 can be further configured to:
According to the data transfer request, preset buffered switch system is triggered;
According to buffered switch system, parallel starting network inputs export thread and disk input and output thread.
In the present embodiment or other embodiment, the third program unit 403 can be further configured to:
Thread is exported according to the network inputs, the data that the data transfer request is directed toward are stored to the data and are connect The buffering area of debit;
According to the disk input and output thread, the data that the data transfer request is directed toward are read in from the buffering area Into the disk of the data receiver.
In the present embodiment or other embodiment, the third program unit 403 is further configured to:According to the network The data that the data transfer request is directed toward are added to the first data queue, and are counted according to described first by input and output thread The buffering area to the data receiver is stored according to the data that the data transfer request is directed toward by queue.
In the present embodiment or other embodiment, the third program unit 403 is further configured to:According to the disk The data read from the buffering area are added in the second data queue by input and output thread, and according to the second queue By data that the data transfer request is directed toward from the disk that the buffering area is read into the data receiver.
In the present embodiment or other embodiment, the third program unit 403 is further configured to:The data are passed When the data that defeated request is directed toward are stored to the buffering area of the data receiver, the network inputs output thread is in non-obstruction State;Alternatively, data that the data transfer request is directed toward to be read into the disk of the data receiver from the buffering area When middle, the disk input and output thread is in non-blocking state.
Fig. 5 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application five;As shown in figure 5, the present embodiment In, it, can be with other than it may include above-mentioned first program unit 401, the second program unit 402, third program unit 403 Including:4th program unit 404 is configured to the data for being directed toward the data transfer request and stores to the data receiver's Further include that latch processing is carried out to the data that the buffering area stores according to latch signal after buffering area.
Fig. 6 is the structural schematic diagram of Near-field Data transmitting device in the embodiment of the present application six;As shown in fig. 6, the present embodiment In, it, can be with other than it may include above-mentioned first program unit 401, the second program unit 402, third program unit 403 Including:5th program unit 405, for exporting thread and disk input and output thread to the network inputs according to latch signal It is scheduled processing.
Fig. 7 is the structural schematic diagram of near-field transmission system in the embodiment of the present application seven;As shown in fig. 7, it may include:Number According to sender 701 and data receiver 702, the data sender 701 and the data receiver 702 are located at same office In the net of domain, the data receiver 702 determines its data transfer request initiated in the LAN, and according to the data Transmission request, parallel starting network inputs export thread and disk input and output thread, and according to network inputs output line Journey and disk input and output thread, the data that the data transfer request is directed toward are by the data sender in the LAN 701 are transferred to the data receiver 702.
In the present embodiment, data sender 701 can be referred to as data center again, be specifically as follows a PC, Er Qieqi His data receiver 702 can be smart mobile phone, function machine, network printer etc..
Fig. 8 is the structural schematic diagram of equipment/terminal/server in the embodiment of the present application eight;Equipment/the terminal/server May include:
One or more processors 801;
Computer-readable medium 802 is configurable to store one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the transmission method as described in above-mentioned any embodiment.
Fig. 9 is the hardware configuration of equipment/terminal/server in the embodiment of the present application nine;As shown in figure 9, equipment/the end The hardware configuration of end/server may include:Processor 901, communication interface 902, computer-readable medium 903 and communication bus 904;
Wherein processor 901, communication interface 902, computer-readable medium 903 are completed each other by communication bus 904 Communication;
Optionally, communication interface 902 can be the interface of communication module, such as the interface of gsm module;
Wherein, processor 901 is specifically configurable to:Determine that the data transmission that data receiver initiates in LAN is asked It asks;According to the data transfer request, parallel starting network inputs export thread and disk input and output thread;According to described Network inputs export thread and disk input and output thread, and reception is transferred to by the data sender 701 in the LAN The data of the data receiver.
Processor 901 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), special Integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor Logical device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logic in the embodiment of the present application Block diagram.General processor can be microprocessor or the processor can also be any conventional processor etc..
Computer-readable medium 903 may be, but not limited to, random-access storage medium (Random Access Memory, RAM), read-only storage medium (Read Only Memory, ROM) may be programmed read-only storage medium (Programmable Read-Only Memory, PROM), erasable read-only storage medium (Erasable Programmable Read-Only Memory, EPROM), the read-only storage medium of electric erasable (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
It should be noted that above-described embodiment data receiver, data sender are relative concept, work as data receiver When can provide data to the other-end in LAN, role can become data sender again.
Particularly, according to an embodiment of the present application, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiments herein includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes to be configured to the program code of method shown in execution flow chart.Such In embodiment, which can be downloaded and installed by communications portion from network, and/or from detachable media quilt Installation.When the computer program is executed by central processing unit (CPU), the above-mentioned work(limited in the present processes is executed Energy.It should be noted that computer-readable medium described herein can be computer-readable signal media or computer Readable storage medium storing program for executing either the two arbitrarily combines.Computer-readable medium for example can be, but not limited to be electricity, magnetic, Optical, electromagnetic, the system of infrared ray or semiconductor, device or device, or the arbitrary above combination.Computer-readable storage medium The more specific example of matter can include but is not limited to:Electrical connection, portable computer diskette with one or more conducting wires, Hard disk, random access storage medium (RAM), read-only storage medium (ROM), erasable type may be programmed read-only storage medium (EPROM or Flash memory), optical fiber, the read-only storage medium of portable compact disc (CD-ROM), optical storage media part, magnetic storage medium part or Above-mentioned any appropriate combination.In this application, can be any include computer readable storage medium or storage program Tangible medium, the program can be commanded the either device use or in connection of execution system, device.And in the application In, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, wherein Carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but not limited to electric Magnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, which can send, propagate or transmission configuration is served as reasons Instruction execution system, device either device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
It can be write in terms of the operation for being configured to execute the application by one or more programming languages or combinations thereof Calculation machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C ++, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute on the user computer, partly execute, executed as an independent software package on the user computer, Part executes or executes on a remote computer or server completely on the remote computer on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind:Including LAN (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for one module, program segment, or code of table, a part for the module, program segment, or code are matched comprising one or more It is set to the executable instruction of logic function as defined in realizing.There is specific precedence relationship in above-mentioned specific embodiment, but these are successively Relationship is only exemplary, when specific implementation, these steps may less, more or execution sequence have adjustment.I.e. In some implementations as replacements, the function of being marked in box can also be sent out in a different order than that indicated in the drawings It is raw.For example, two boxes succeedingly indicated can essentially be basically executed in parallel, they sometimes can also be by opposite suitable Sequence executes, this is depended on the functions involved.It is also noted that each box in block diagram and or flow chart and block diagram And/or the combination of the box in flow chart, can with execute as defined in functions or operations dedicated hardware based system come It realizes, or can realize using a combination of dedicated hardware and computer instructions.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet Include request determination unit, thread start unit, receiving unit.
Determination unit is asked, is configured to determine the data transfer request that data receiver initiates in LAN;
Thread start unit, is configured to the data transfer request, and parallel starting network inputs export thread and disk Input and output thread;
Receiving unit is configured to export thread and disk input and output thread according to the network inputs, receive by institute State the data that the data sender in LAN is transferred to the data receiver.
Wherein, the title of these units does not constitute the restriction to the unit itself under certain conditions, for example, request is true Order member is also described as " determining the unit for the data transfer request that data receiver initiates in LAN ".
As on the other hand, present invention also provides a kind of computer-readable mediums, are stored thereon with computer program, should The method as described in above-mentioned any embodiment is realized when program is executed by processor.
As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device so that should Device:Determine the data transfer request that data receiver initiates in LAN;According to the data transfer request, parallel starting net Network input and output thread and disk input and output thread;Thread and disk input-output line are exported according to the network inputs Journey receives the data that the data receiver is transferred to by the data sender 701 in the LAN.
Statement " first ", " second ", " first " or " described used in the various embodiments of the application Two " can modify various parts and unrelated with sequence and/or importance, but these statements do not limit corresponding component.It is presented above It is only configured to the purpose for distinguishing element and other elements.For example, the first user equipment and second user equipment indicate different User equipment, although being both user equipment.For example, under the premise of without departing substantially from scope of the present application, first element can Referred to as second element, similarly, second element can be referred to as first element.
When an element (for example, first element) referred to as " (operationally or can with another element (for example, second element) Communicatedly) connection " or " (operationally or communicably) being attached to " another element (for example, second element) or " being connected to " are another When one element (for example, second element), it is thus understood that an element is connected directly to another element or an element It is indirectly connected to another element via another element (for example, third element).On the contrary, it is appreciated that when element (for example, First element) it referred to as " is directly connected to " or when " directly connection " to another element (second element), then without element (for example, the Three elements) it is inserted between the two.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (20)

1. a kind of Near-field Data transmission method, which is characterized in that including:
Determine the data transfer request that data receiver initiates in LAN;
According to the data transfer request, parallel starting network inputs export thread and disk input and output thread;
Thread and disk input and output thread are exported according to the network inputs, receives and is sent by the data in the LAN Side is transferred to the data of the data receiver.
2. according to the method described in claim 1, it is characterized in that, according to the data transfer request, parallel starting network is defeated Enter to export thread and disk input and output thread, including:
According to the data transfer request, preset buffered switch system is triggered;
According to buffered switch system, parallel starting network inputs export thread and disk input and output thread.
3. according to the method described in claim 1, it is characterized in that, exporting thread and disk input according to the network inputs Thread is exported, the data for being transferred to the data receiver by the data sender in the LAN are received, including:
Thread is exported according to the network inputs, the data storage that the data transfer request is directed toward to the data receiver Buffering area;
According to the disk input and output thread, the data that the data transfer request is directed toward are read into institute from the buffering area In the disk for stating data receiver.
4. according to the method described in claim 3, it is characterized in that, thread is exported according to the network inputs, by the data The data that transmission request is directed toward store the buffering area to the data receiver, including:Thread is exported according to the network inputs, The data that the data transfer request is directed toward are added to the first data queue, and according to first data queue by the number The data being directed toward according to transmission request store the buffering area to the data receiver.
5. according to the method described in claim 3, it is characterized in that, according to the disk input and output thread, by the data Transmission asks the data being directed toward from the disk that the buffering area is read into the data receiver, including:According to the disk The data read from the buffering area are added in the second data queue by input and output thread, and according to the second queue By data that the data transfer request is directed toward from the disk that the buffering area is read into the data receiver.
6. according to the method described in claim 3, it is characterized in that, the data that the data transfer request is directed toward are stored to institute When stating the buffering area of data receiver, the network inputs output thread is in non-blocking state;Alternatively, by the data transmission When the data that request is directed toward are from the disk that the buffering area is read into the data receiver, the disk input and output thread In non-blocking state.
7. according to the method described in claim 3, it is characterized in that, the data that the data transfer request is directed toward are stored to institute The buffering area for stating data receiver further includes later being carried out at latch to the data that the buffering area stores according to latch signal Reason.
8. according to the method described in claim 3, it is characterized in that, further including:It is defeated to the network according to the latch signal Enter to export thread and disk input and output thread is scheduled processing.
9. according to claim 1-8 any one of them methods, which is characterized in that the LAN by self-built WIFI build with Realize the near field transmission.
10. a kind of Near-field Data transmitting device, which is characterized in that including:
First program unit is configured to determine the data transfer request that data receiver initiates in LAN;
Second program unit is configured to according to the data transfer request, and parallel starting network inputs export thread and disk Input and output thread;
Third program unit is configured to export thread and disk input and output thread according to network inputs, receive by the office Data sender in the net of domain is transferred to the data of the data receiver.
11. device according to claim 10, which is characterized in that second program unit is further configured to:
According to the data transfer request, preset buffered switch system is triggered;
According to buffered switch system, parallel starting network inputs export thread and disk input and output thread.
12. device according to claim 10, which is characterized in that the third program unit is further configured to:
Thread is exported according to the network inputs, the data storage that the data transfer request is directed toward to the data receiver Buffering area;
According to the disk input and output thread, the data that the data transfer request is directed toward are read into institute from the buffering area In the disk for stating data receiver.
13. device according to claim 12, which is characterized in that the third program unit is further configured to:According to The network inputs export thread, the data that the data transfer request is directed toward are added to the first data queue, and according to institute State data storage that the data transfer request is directed toward by the first data queue to the data receiver buffering area.
14. device according to claim 12, which is characterized in that the third program unit is further configured to:According to The data read from the buffering area are added in the second data queue by the disk input and output thread, and according to described Second queue is by data that the data transfer request is directed toward from the disk that the buffering area is read into the data receiver.
15. device according to claim 12, which is characterized in that the third program unit is further configured to:By institute When stating the buffering area of the data storage of data transfer request direction to the data receiver, at network inputs output thread In non-blocking state;Alternatively, the data that the data transfer request is directed toward are read into the data receiver from the buffering area When in the disk of side, the disk input and output thread is in non-blocking state.
16. device according to claim 12, which is characterized in that further include the 4th program unit, be configured to the number Further include after the data storage to the buffering area of the data receiver being directed toward according to transmission request, according to latch signal to described The data of buffering area storage carry out latch processing.
17. device according to claim 10, which is characterized in that further include:According to latch signal to the network inputs Output thread and disk input and output thread are scheduled processing.
18. a kind of near-field transmission system, which is characterized in that including:Data sender and data receiver, the data are sent The square and described data receiver is located in same LAN, and the data receiver determines what it was initiated in the LAN Data transfer request, and according to the data transfer request, parallel starting network inputs export thread and disk input and output Thread, and export thread and disk input and output thread, the number that the data transfer request is directed toward according to network inputs It is transferred to the data receiver according to by the data sender in the LAN.
19. a kind of equipment/terminal/server, including:
One or more processors;
Computer-readable medium is configured to store one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-9.
20. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Methods of the Shi Shixian as described in any in claim 1-9.
CN201810979497.4A 2018-08-27 2018-08-27 Near-field Data transmission method and its device Pending CN108809363A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810979497.4A CN108809363A (en) 2018-08-27 2018-08-27 Near-field Data transmission method and its device
PCT/IB2018/057152 WO2020044091A1 (en) 2018-08-27 2018-09-18 Near field data transmission method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810979497.4A CN108809363A (en) 2018-08-27 2018-08-27 Near-field Data transmission method and its device

Publications (1)

Publication Number Publication Date
CN108809363A true CN108809363A (en) 2018-11-13

Family

ID=64081277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810979497.4A Pending CN108809363A (en) 2018-08-27 2018-08-27 Near-field Data transmission method and its device

Country Status (2)

Country Link
CN (1) CN108809363A (en)
WO (1) WO2020044091A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367626A (en) * 2018-12-26 2020-07-03 北京奇虎科技有限公司 Processing method and device for disk reading and writing task

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040049655A1 (en) * 2001-10-12 2004-03-11 Allison David S. Method and apparatus for communication to threads of control through streams
CN101188544A (en) * 2007-12-04 2008-05-28 浙江大学 File transfer method for distributed file server based on buffer
CN102656573A (en) * 2009-10-27 2012-09-05 弗里塞恩公司 Efficient multiple filter packet statistics generation
CN102792273A (en) * 2010-03-15 2012-11-21 国际商业机器公司 Dual mode reader writer lock
CN103237059A (en) * 2013-04-02 2013-08-07 西安翔迅科技有限责任公司 Method for interacting traffic information data and commands
US8683099B1 (en) * 2012-06-14 2014-03-25 Emc Corporation Load balancing of read/write accesses on a single host device
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection
CN105072702A (en) * 2015-07-20 2015-11-18 上海摩软通讯技术有限公司 Wifi-Direct network data transmission method and system
US20160041901A1 (en) * 2014-08-08 2016-02-11 Sas Institute Inc. Dynamic assignment of transfers of blocks of data
CN105610836A (en) * 2015-12-31 2016-05-25 浙江省公众信息产业有限公司 Data transmission method and system
CN106658353A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile equipment
CN107063981A (en) * 2017-02-28 2017-08-18 赛雷纳(中国)医疗科技有限公司 A kind of Data Centralized Processing method based on flow cytometry
CN107133092A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107203637A (en) * 2017-06-08 2017-09-26 恒生电子股份有限公司 A kind of data analysing method and system
CN107347178A (en) * 2017-06-29 2017-11-14 福州汇思博信息技术有限公司 Serial port multiplexing method and electronic equipment
US20180234468A1 (en) * 2017-02-16 2018-08-16 Roger Levy Data processing apparatus configured to recover a network connection, a method, a system and a non-transitory computer readable medium configured to perform same

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040049655A1 (en) * 2001-10-12 2004-03-11 Allison David S. Method and apparatus for communication to threads of control through streams
CN101188544A (en) * 2007-12-04 2008-05-28 浙江大学 File transfer method for distributed file server based on buffer
CN102656573A (en) * 2009-10-27 2012-09-05 弗里塞恩公司 Efficient multiple filter packet statistics generation
CN102792273A (en) * 2010-03-15 2012-11-21 国际商业机器公司 Dual mode reader writer lock
US8683099B1 (en) * 2012-06-14 2014-03-25 Emc Corporation Load balancing of read/write accesses on a single host device
CN103237059A (en) * 2013-04-02 2013-08-07 西安翔迅科技有限责任公司 Method for interacting traffic information data and commands
US20160041901A1 (en) * 2014-08-08 2016-02-11 Sas Institute Inc. Dynamic assignment of transfers of blocks of data
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection
CN105072702A (en) * 2015-07-20 2015-11-18 上海摩软通讯技术有限公司 Wifi-Direct network data transmission method and system
CN105610836A (en) * 2015-12-31 2016-05-25 浙江省公众信息产业有限公司 Data transmission method and system
CN106658353A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile equipment
US20180234468A1 (en) * 2017-02-16 2018-08-16 Roger Levy Data processing apparatus configured to recover a network connection, a method, a system and a non-transitory computer readable medium configured to perform same
CN107063981A (en) * 2017-02-28 2017-08-18 赛雷纳(中国)医疗科技有限公司 A kind of Data Centralized Processing method based on flow cytometry
CN107133092A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107203637A (en) * 2017-06-08 2017-09-26 恒生电子股份有限公司 A kind of data analysing method and system
CN107347178A (en) * 2017-06-29 2017-11-14 福州汇思博信息技术有限公司 Serial port multiplexing method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367626A (en) * 2018-12-26 2020-07-03 北京奇虎科技有限公司 Processing method and device for disk reading and writing task

Also Published As

Publication number Publication date
WO2020044091A1 (en) 2020-03-05

Similar Documents

Publication Publication Date Title
CN111200846B (en) Time delay sensitive network communication method and device thereof
CN110535555B (en) Method, apparatus and computer readable storage medium for determining transmission priority
CN105376738B (en) Wireless network access method, device and system
CN111010702B (en) Time delay sensitive network communication method and device thereof
CN111651253A (en) Computing resource scheduling method and device
CN109040322A (en) Vehicle communication method, device, computer-readable medium and electronic equipment
US9614585B2 (en) Switching communication devices between different communication media
CN105519071A (en) Electronic device using logical channels for communication
CN109640373A (en) Networking method and device applied to Internet of things and storage medium
CN108199931A (en) A kind of household electric appliance control method and system
CN103685419A (en) Business processing method and apparatus
CN110177010B (en) Link switching method and device
CN102299834A (en) Data sharing method, equipment and system for local area network
CN108810177A (en) Data transmission method and its device
CN110213147A (en) A kind of cloud network interoperability methods, device, storage medium and terminal device
CN108809363A (en) Near-field Data transmission method and its device
CN107426726A (en) Network sharing method and device, terminal and storage medium
CN110134480A (en) Processing method, device, electronic equipment and the storage medium of user's trigger action
CN104469770B (en) Towards WLAN authentication methods, platform and the system of third-party application
CN109246207A (en) Near field document transmission method and its device
WO2020044088A1 (en) File transfer method and apparatus thereof, and device/terminal/server
CN110971533A (en) Method, server apparatus, client apparatus, and medium for data communication
CN104702661A (en) Remote control method between mobile communication terminals
CN105491645A (en) Method and device for controlling wireless network connection
Tsuda et al. Proposal for a seamless connection method for remotely located Bluetooth devices

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

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication