[go: up one dir, main page]

CN106911633A - A kind of data transmission method and device - Google Patents

A kind of data transmission method and device Download PDF

Info

Publication number
CN106911633A
CN106911633A CN201510975097.2A CN201510975097A CN106911633A CN 106911633 A CN106911633 A CN 106911633A CN 201510975097 A CN201510975097 A CN 201510975097A CN 106911633 A CN106911633 A CN 106911633A
Authority
CN
China
Prior art keywords
terminal
audio signal
data
transmitted
identification code
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.)
Granted
Application number
CN201510975097.2A
Other languages
Chinese (zh)
Other versions
CN106911633B (en
Inventor
杨依萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510975097.2A priority Critical patent/CN106911633B/en
Publication of CN106911633A publication Critical patent/CN106911633A/en
Application granted granted Critical
Publication of CN106911633B publication Critical patent/CN106911633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/53Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
    • H04H20/61Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for local area broadcast, e.g. instore broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is related to communication technical field, discloses a kind of data transmission method and device, including:First terminal sends the first audio signal for matching to second terminal, wherein first audio signal includes the identification code of the first terminal;The first terminal is parsed to the second audio signal from the second terminal for receiving, and according to analysis result after it is determined that the second terminal allows pairing, the identification code to data to be transmitted and the first terminal is encoded, and generates the 3rd audio signal;The first terminal sends the 3rd audio signal to the second terminal.The application is used to provide a kind of new mode in terminal room transmission information, and the range of application for solving in the prior art information transmission mode under closely scene is narrow, limited problem.

Description

A kind of data transmission method and device
Technical field
The application is related to communication technical field, more particularly to a kind of data transmission method and device.
Background technology
The development of intelligent terminal, gives people to bring more facilities in routine work and life.People can use Demand in terms of the offices such as cell phone apparatus realization online, receiving and dispatching mail, browsing multimedia data and amusement, Can be by transmitted data on network information.At present, data transfer in actual life widely, use householder Will be by telephone wire, USB (USB, Universal Serial Bus) interface or private cable etc. Wired mode carries out data transmission, or using mobile Internet, wifi (Wireless Fidelity, The wireless technologys such as WIreless-FIdelity), infrared, bluetooth carry out data transmission.
Closely (in the range of several centimetres to several meters) under scene, people often enter the interaction of row information, Such as conclude the business in exhibitions, need to exchange visiting cards between strange trading object, or during friend's party, to each other The information such as photo can mutually be passed.In the prior art, usually using technologies such as infrared or bluetooths, two hands are realized Transmission information between machine.But, infrared or Bluetooth technology has shortcomings.Using infrared or Bluetooth transmission Information, needs to be provided with special infrared or bluetooth equipment in terminal, for terminal, presently mainly hand Machine or computer can support that some terminals, such as intelligent watch or navigation equipment are not supported typically infrared Or Bluetooth transmission, therefore, range of application is narrower, with limitation.
The content of the invention
The embodiment of the present application provides a kind of data transmission method and device, is used to provide a kind of new in terminal room The mode of transmission information, solves in the prior art that closely the range of application of information transmission mode is narrow under scene, Limited problem.
The data transmission method that the embodiment of the present application is provided includes:
First terminal sends the first audio signal for matching to second terminal, wherein first audio is believed Number include the identification code of the first terminal;
The first terminal is parsed to the second audio signal from the second terminal for receiving, according to Analysis result it is determined that the second terminal allow pairing after, to data to be transmitted and the mark of the first terminal Know code to be encoded, generate the 3rd audio signal;
The first terminal sends the 3rd audio signal to the second terminal.
Optionally, the first terminal according to analysis result it is determined that the second terminal allow pairing after, Identification code to data to be transmitted and the first terminal is encoded, before the 3rd audio signal of generation, also Including:
The first terminal determines the first terminal and institute according to the frequency range of the ambient noise for detecting The frequency range of the audio signal transmitted between second terminal is stated, wherein the first terminal and described second is eventually The frequency range of the audio signal transmitted between end is non-intersect with the frequency range of the ambient noise;
The frequency of the audio signal that the first terminal will be transmitted between the first terminal and the second terminal Rate scope, notifies that the second terminal, the 4th audio signal include described by the 4th audio signal The identification code of first terminal;
The first terminal carries out the identification code of coding and the first terminal, generation the 3rd to data to be transmitted Audio signal, including:
The first terminal is according to the audio transmitted between the first terminal and the second terminal for determining The frequency range of signal, the identification code of coding and the first terminal, generation the 3rd are carried out to data to be transmitted Audio signal.
Optionally, the first terminal is encoded to the identification code of data to be transmitted and the first terminal, The 3rd audio signal is generated, including:
The first terminal is added using the key arranged with the second terminal to the data to be transmitted It is close;
The first terminal carries out the identification code of coding and the first terminal to the data to be transmitted after encryption, Generate the 3rd audio signal.
A kind of data transmission method, including:
Second terminal receives the first audio signal for pairing that first terminal sends;
The second terminal is parsed to first audio signal, in acquisition first audio signal Identification code;
The second terminal sends to the first terminal and uses after it is determined that allowing to be matched with the first terminal In the second audio signal for allowing pairing;
The second terminal is parsed to the 3rd audio signal that the first terminal for receiving sends, and is obtained Take data to be transmitted and identification code;
The second terminal is it is determined that identification code and first audio signal in the 3rd audio signal In identification code it is consistent after, process the data to be transmitted.
Optionally, the first finger print information is also included in first audio signal;
The second terminal determines whether to be matched with the first terminal according to following manner:
The second terminal obtains the second finger print information by Fingerprint Identification Unit;
The second terminal judges whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
Optionally, the second terminal is carried out to the 3rd audio signal that the first terminal for receiving sends Before parsing, also include:
The second terminal is parsed to the 4th audio signal that the first terminal for receiving sends, and is obtained Take the frequency range and identification code of the audio signal transmitted between the first terminal and the second terminal;
The second terminal is it is determined that identification code and first audio signal in the 4th audio signal In identification code identification code it is consistent after, store the audio transmitted between the first terminal and the second terminal The frequency range of signal;
The second terminal receives the 3rd audio signal that the first terminal sends, including:
The second terminal receives the 3rd audio letter that the first terminal sends according to the frequency range for obtaining Number.
Optionally, the second terminal processes the data to be transmitted, including:
The second terminal is decoded to the 3rd audio signal;
The second terminal utilizes the key arranged with the first terminal, to decoded 3rd audio signal It is decrypted, obtains the data to be transmitted of the first terminal.
A kind of data transmission device, including:
Sending module, for sending the first audio signal for matching to second terminal, wherein described first Audio signal includes the identification code of the first terminal;
Coding module, for being parsed to the second audio signal from the second terminal for receiving, root According to analysis result after it is determined that the second terminal allows pairing, to data to be transmitted and the first terminal Identification code is encoded, and generates the 3rd audio signal;
The sending module, is additionally operable to send the 3rd audio signal to the second terminal.
Optionally, also including determining module, it is used for:
According to the frequency range of the ambient noise for detecting, determine the first terminal and the second terminal it Between transmit audio signal frequency range, wherein between the first terminal and the second terminal transmit The frequency range of audio signal is non-intersect with the frequency range of the ambient noise;
The frequency range of the audio signal that will be transmitted between the first terminal and the second terminal, by the Four audio signals notify that the second terminal, the 4th audio signal include the mark of the first terminal Code;
The coding module, is additionally operable to be transmitted according between the first terminal and the second terminal for determining Audio signal frequency range, the identification code of coding and the first terminal is carried out to data to be transmitted, it is raw Into the 3rd audio signal.
Optionally, also it is used for including key sending module:
Key is sent to the second terminal by fifth audio signal, the fifth audio signal includes institute State the identification code of first terminal;
The coding module, is additionally operable to:
Using the key, the data to be transmitted is encrypted;
The identification code of coding and the first terminal is carried out to the data to be transmitted after encryption, the 3rd audio is generated Signal.
A kind of data transmission device, including:
Receiver module, the first audio signal for pairing that first terminal sends is received for holding;
Parsing module, for being parsed to first audio signal, in acquisition first audio signal Identification code;The 3rd audio signal that the first terminal for receiving sends is parsed, is obtained to be passed Transmission of data and identification code;
Matching module, for after it is determined that allowing to be matched with the first terminal, being sent to the first terminal The second audio signal for allowing pairing;
Processing module, for it is determined that identification code and first audio signal in the 3rd audio signal In identification code it is consistent after, process the data to be transmitted.
Optionally, the first finger print information is also included in first audio signal;
The matching module determines whether to be matched with the first terminal according to following manner:
Second finger print information is obtained by Fingerprint Identification Unit;
Judge whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
Optionally, the parsing module, is additionally operable to:
The 4th audio signal that the first terminal for receiving sends is parsed, described first is obtained eventually The frequency range and identification code of the audio signal transmitted between end and the second terminal;
It is determined that identification code mark in identification code in the 4th audio signal and first audio signal After knowledge code is consistent, the frequency model of the audio signal transmitted between the first terminal and the second terminal is stored Enclose;
The receiver module, is additionally operable to:According to the frequency range for obtaining, receive what the first terminal sent 3rd audio signal.
Optionally, also it is used for including key reception module:
The fifth audio signal that the first terminal for receiving sends is parsed, key and mark is obtained Code;
It is determined that identification code one in identification code in the fifth audio signal and first audio signal After cause, the key is stored;
The parsing module, is additionally operable to:
3rd audio signal is decoded,
Using the key, decoded 3rd audio signal is decrypted, obtains the first terminal Data to be transmitted.
In the embodiment of the present application, two terminals can be matched using audio signal, specially first terminal to Second terminal sends the first audio signal for matching, wherein, carry first terminal in the first audio signal Identification code, second terminal can be according to the identification code of first terminal, it is determined whether matched with first terminal, And result is sent to first terminal by the second audio signal.First terminal and second terminal successful matching Afterwards, first terminal is encoded data to be transmitted with the identification code of first terminal, generates the 3rd audio signal, And it is sent to second terminal.Audio can be transmitted using sound wave, be broadcast type transmission, and a terminal sends Sound wave, under scene closely, can have multiple terminals to receive the sound wave, i.e. first terminal can be to multiple the Two terminals send audio signal, and second terminal can receive the audio signal that multiple first terminals send, because This can realize one-to-many data transfer.Additionally, in whole process, it is not necessary to set bluetooth or infrared in addition Deng hardware device, the transmittable reception audio signal of terminal is only needed, be with a wide range of applications.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, institute in being described to embodiment below The accompanying drawing for needing to use is briefly introduced, it should be apparent that, drawings in the following description are only the application's Some embodiments, for one of ordinary skill in the art, are not paying the premise of creative labor Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of data transmission system in the embodiment of the present application;
Fig. 2 is a kind of schematic diagram of data transmission device in the embodiment of the present application;
Fig. 3 is the schematic diagram of another data transmission device in the embodiment of the present application;
Fig. 4 is the flow chart of first terminal side data transmission method in the embodiment of the present application;
Fig. 5 is the flow chart of second terminal side data transmission method in the embodiment of the present application;
Fig. 6 is the flow chart of data transmission method in the embodiment of the present application smart mobile phone scene;
Fig. 7 is the flow chart of data transmission method in the vehicle-mounted scene of the embodiment of the present application;
Fig. 8 is the flow chart of data transmission method in the embodiment of the present application desktop computer scene.
Specific embodiment
In order that the purpose, technical scheme and advantage of the application are clearer, below in conjunction with accompanying drawing to this Shen Please be described in further detail, it is clear that described embodiment is only the application some embodiments, Rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out all other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
First terminal and second terminal in the embodiment of the present application, two Fang Junke are mobile terminal, such as intelligent hand Machine, intelligent watch, panel computer, mobile navigation equipment etc., also can a side be mobile device, a side is solid Determine device, such as desktop computer, intelligent appliance.For functionally, first terminal is used to send data, Second terminal is used to receive data.But it should be recognized that in actual applications, terminal can have first concurrently The function of terminal and second terminal, i.e. terminal device both can send number as first terminal to second terminal According to, it is also possible to receive the data that first terminal is sended over as second terminal.Simply in the biography of a secondary data During defeated, at least two terminals can be related to, a terminal can only serve as a role, otherwise it is first Terminal, otherwise it is second terminal.Certainly, when lower data transfer is carried out, terminal can carry out role's Exchange.
The embodiment of the present application provides a kind of system of data transfer, such as Fig. 1, including first terminal 11 and the Two terminals 12.
First terminal 11, for sending the first audio signal for matching, wherein institute to second terminal 12 Stating the first audio signal includes the identification code of the first terminal;
Second terminal 12, the first audio signal for pairing for receiving the transmission of first terminal 11;
First audio signal is parsed, the identification code in first audio signal is obtained;
After it is determined that allowing to be matched with first terminal 11, for allowing pairing is sent to first terminal 11 Two audio signals;
First terminal 11, is additionally operable to parse the second audio signal from second terminal 12 for receiving, According to analysis result after it is determined that second terminal 12 allows pairing, to data to be transmitted and first terminal 11 Identification code is encoded, and generates the 3rd audio signal;
The 3rd audio signal is sent to second terminal 12;
Second terminal 12, is additionally operable to solve the 3rd audio signal that the first terminal 11 for receiving sends Analysis, obtains data to be transmitted and identification code;
It is determined that identification code one in identification code in the 3rd audio signal and first audio signal After cause, the data to be transmitted is processed
In the embodiment of the present application, data message is sent by audio signal between terminal, including for pairing Request and feedback, and data waiting for transmission.Specifically, can be that first terminal enters data to be transmitted Row coding generation audio format file, is then converted into audio format file audio signal and is sent to second eventually End, second terminal receives row format conversion of going forward side by side, and the audio signal that will be received is converted into audio format file, Audio format file is decoded again, is converted into ordinary file, so as to obtain out the number of first terminal transmission According to.Wherein, data waiting for transmission can include following at least one:Text information, image information, position Information, audio-frequency information or video information.
Optionally, data to be transmitted is voice data, and second terminal 12 is written for voice data to be changed Notebook data.
Request and data waiting for transmission for matching are exist in binary form in first terminal.File It is broadly divided into file header and data volume two large divisions.Different types of data are identified by data head.Text Part is broadly divided into file header and data volume two large divisions.Different files are identified by file header.File Head is that a section started positioned at file undertakes certain task, the data of log file attribute information.Audio format The file header of file header, such as WAV (wave file, Wave Audio Files) form is divided into RIFF (Resource Exchange archival standards, Resource Interchange File Format)/wav file identification section harmony Sound data form illustrates section two parts, comprising RIFF marks, file size, WAV marks, sampling frequency The information such as rate.
When first terminal is ready for sending data, encoded first, using the data of binary form it is whole as The data volume of audio format file, and the head end of the data volume formed in data waiting for transmission adds audio file Corresponding file header, so as to convert thereof into audio format file.By digital-to-analogue conversion, by the audio of numeral Formatted file is converted into the audio signal of simulation.Simulated audio signal can be sent to second by way of sound wave Terminal.Second terminal receives audio signal, and the audio signal of simulation is converted into numeral by analog-to-digital conversion Audio format file, then audio format file is decoded, be converted into common format file, acquisition is treated The data of transmission.Wherein, second terminal is decoded to audio format file, can remove audio format text The file header of part, so as to audio format file is converted into common format file.Above-mentioned data and audio signal Between conversion regime be only for example, and non-limiting description is any to convert data to audio signal, And convert audio signals into the mode of data and can use in the embodiment of the present application.
Optionally, audio signal can be transmitted by sound wave between first terminal and second terminal.Due to Sound wave is transmitted as broadcast type transmission, and the sound wave that terminal sends can receive by multiple terminals, and one Individual terminal can receive the sound wave that multiple terminals send.Between first terminal and second terminal transmit data it Before, need to be matched.First terminal in for the first audio signal matched by adding first terminal Identification code, makes second terminal can determine the first audio signal for receiving transmitted by first terminal.Second Terminal recognizes from the first audio signal and preserves the identification code of first terminal, and according to the mark of first terminal Code confirms to match to first terminal feedback information.Afterwards, the audio signal that first terminal sends to second terminal In also all carry the identification code of first terminal.After second terminal receives audio signal, by audio signal The identification code of the first terminal of carrying, is contrasted with the identification code for preserving, if both are consistent, confirmation connects The audio signal for receiving is sent for first terminal, and the data that first terminal sends are processed, right It is not the audio signal of first terminal transmission, second terminal can not be processed and abandoned.Wherein, The identification code of first terminal can be that the ID (identity number, identification) of first terminal, IMEI (are moved Dynamic equipment international identity code, International Mobile Equipment Identity) etc., or for first eventually The user at end gives first terminal customized title, such as " small Y ".Hereby it is achieved that first terminal and second Man-to-man data transfer between terminal, improves data transfer and applicability.
Additionally, first terminal can send the first audio signal for matching to multiple second terminals;First Terminal is to second terminal transmission the 3rd audio signal that pairing is allowed in the multiple second terminal.
Specifically, first terminal can send data to multiple second terminals by audio signal, and second eventually End also can receive and process the data that multiple first terminals send.Can be by a first terminal and multiple the Two terminals are matched, and/or multiple first terminals are matched with a second terminal.Thus, it is possible to Realize the data transfer of one-to-many, many-one or multi-to-multi.It is with multiple second terminals with a first terminal Example, first terminal sends sound wave by the audio phonation unit such as loudspeaker, and the sound wave is used to send the first audio Signal, carries the identification code of first terminal in the first audio signal.(several lis closer to the distance with first terminal Rice to more than ten meters) multiple second terminals can open the audio collection unit reception sound such as microphone or recorder Ripple.The audio collection unit of acoustic wave vibrations multiple second terminal so that multiple second terminals get first eventually The first audio signal for sending is held, then multiple second terminals process the first audio signal, obtain first terminal Identification code., it is necessary to receive the second terminal of the data of first terminal transmission to first in multiple second terminals Terminal feedback agrees to pairing, can confirm to agree to by sending the second audio signal to first terminal, wherein the The identification code of first terminal and/or the identification code of second terminal can be carried in two audio signals.First terminal connects After receiving the second audio signal, determine which second terminal confirms pairing, and again by sound wave, to multiple the Two terminals send data waiting for transmission.
Second terminal can have various ways to confirm to agree to be matched with first terminal.Such as, second terminal is received To after the first audio signal, the ID of the first terminal carried in the first audio signal is shown by display screen Out, and point out second terminal user whether agree to pairing, second terminal user selection agree to, confirm Matched with first terminal.Or, second terminal receives the first audio signal that multiple first terminals send, The title of multiple first terminals is passed through into list display in second terminal, user can choose the name of first terminal Which claim to determine to be matched with first terminal.
Optionally, can also determine whether to be matched by finger print information, be i.e. also be wrapped in the first audio signal Include the first finger print information.
The second terminal determines whether to be matched with the first terminal according to following manner:
The second terminal obtains the second finger print information by Fingerprint Identification Unit;
The second terminal judges whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
I.e. first terminal sends first fingerprint of the user of first terminal to second by the first audio signal Terminal.Second terminal has Fingerprint Identification Unit, because first terminal is close with the distance between second terminal, Therefore, second terminal can directly collect second fingerprint of the user of first terminal.Second terminal will be received To the first finger print information compare with the second finger print information of direct collection, if both similarities are more than Threshold value, such as 80%, then it is assumed that the first fingerprint and the second fingerprint matching, it is determined that allowing to be matched with first terminal; If both similarities are less than or equal to 80%.Do not allow then to be matched with first terminal.Using fingerprint With determining whether to be matched, the selection course of second terminal user is eliminated, only need first for will matching The fingerprint of the user of terminal is input into second terminal, you can confirm matching, convenient and swift, and due to everyone Fingerprint there is uniqueness, therefore this validation testing accuracy is high, not error-prone.
Because the transmission and reception of sound wave are not limited, terminal can receive the various sound in surrounding environment Ripple, if noise is relatively more in environment, can produce influence to transmitting data between first terminal and second terminal, Especially during the more data of transmission information, noise can disturb second terminal to receive the 3rd audio signal, influence The data to be transmitted of the first terminal that second terminal is obtained.Therefore, first terminal 11 is additionally operable to:
According to the frequency range of the ambient noise for detecting, determine between first terminal 11 and second terminal 12 The audio transmitted between the frequency range of the audio signal of transmission, wherein first terminal 11 and second terminal 12 The frequency range of signal is non-intersect with the frequency range of the ambient noise;
The frequency range of the audio signal that will be transmitted between first terminal 11 and second terminal 12, by the 4th Audio signal notifies that second terminal 12, the 4th audio signal include the identification code of first terminal 11;
According to the frequency range of the audio signal transmitted between the first terminal 11 and second terminal 12 for determining, Data to be transmitted is encoded and first terminal 11 identification code, generate the 3rd audio signal.
Second terminal 12 is additionally operable to:
The 4th audio signal that the first terminal 11 for receiving sends is parsed, first terminal 11 is obtained The frequency range and identification code of the audio signal transmitted and second terminal 12 between;
It is determined that identification code mark in identification code in the 4th audio signal and first audio signal After knowledge code is consistent, stores first terminal 11 and state the frequency model of the audio signal transmitted between second terminal 12 Enclose;
According to the frequency range for obtaining, the 3rd audio signal that first terminal 11 sends is received.
Specifically, first terminal can send the audio signal of CF, and second terminal can receive this The audio signal of one CF.Because sound wave includes infrasound, audible ripple, ultrasonic wave or hypersonic sound.Sound Ripple presses frequency categorization, and sound wave of the frequency less than 20Hz is referred to as infrasound;The sound wave of frequency 20Hz~20kHz Referred to as audible ripple;The sound wave of frequency 20kHz~1GHz is referred to as ultrasonic wave;Sound wave of the frequency more than 1GHz Referred to as hypersonic sound or microwave ultrasound.Usually the sound wave in surrounding environment is mostly audible ripple, if first terminal is all The environment for enclosing is quieter, and first terminal detects noiseless around, then first terminal is by the frequency of audio signal Rate range set is audible wave frequency range, as 20Hz~20kHz.If first terminal surrounding environment very noise Miscellaneous, the frequency range that first terminal detects ambient noise is 200Hz~10kHz, then first terminal can be by sound The range set of frequency signal is 10Hz~100Hz.If equipment can be supported, first terminal can also believe audio Number range set for ultrasonic wave frequency range or infrasonic frequency range.
The frequency range of setting is sent to second terminal by first terminal by the 4th audio signal.Second terminal The 4th audio signal is parsed, it is determined that receive the frequency range of setting that first terminal is sent, and by first terminal The frequency range of the audio signal transmitted and second terminal between is stored in second terminal, will receive audio Frequency range is limited to the frequency range.Or, the frequency range that second terminal can also send first terminal Storage is in miscellaneous equipment.Afterwards, first terminal is sent out the 3rd audio letter according to the frequency range of setting Number, second terminal receives the 3rd audio signal according to the frequency range of setting.Thus, ambient noise is reduced Interference, increased transmission data accuracy.
For the security of guarantee information transmission, first terminal 11 is additionally operable to:
Using the key arranged with second terminal 12, the data to be transmitted is encrypted;
Data to be transmitted after encryption is encoded and first terminal 11 identification code, generate the 3rd audio Signal.
Accordingly, second terminal 12 is additionally operable to:
3rd audio signal is decoded;
Using the key arranged with first terminal 11, decoded 3rd audio signal is decrypted, obtained Take the data to be transmitted of first terminal 11.
Specifically, be encrypted for data waiting for transmission by first terminal, and key is sent into second in advance Terminal, or the user of first terminal arranges password with the user of second terminal, is separately input to first terminal In second terminal, first terminal can obtain key using using the password, and encrypt data to be transmitted, Second terminal also obtains key using the password, and data to be transmitted to receiving is decrypted.Wherein, Password can be the combination of the forms such as numeral, letter, punctuate or diversified forms.First terminal and second terminal Encryption and decryption is carried out to data, can be symmetric key encryption, or asymmetric-key encryption.Symmetric key Encryption, i.e., first terminal and second terminal go encrypting and decrypting data using same key.Unsymmetrical key Encryption is, it is necessary to be respectively completed encrypt and decrypt operation using different keys, one publishes, i.e., public Key is opened, another is preserved by user oneself is secret, i.e. private key, first terminal public-key cryptography goes to add It is close, and second terminal then goes decryption with private key.Be encoded into for data to be transmitted after encryption by first terminal 3rd audio signal, is sent to second terminal.After second terminal is by the 3rd audio signal decoding, using key It is decrypted, obtains the data to be transmitted of first terminal.
Optionally, first terminal 11 is additionally operable to:User is slided into warp on the screen of the first terminal 11 The information of the position display crossed is used as the data waiting for transmission;
After user's stopping touching screen is detected, to the data to be transmitted and the first terminal 11 Identification code encoded, generate the 3rd audio signal.
The screen of existing terminal is generally touch-screen, and user directly can be existed with miscellaneous equipments such as finger or styluses Slip is clicked on screen carries out corresponding operating.In the embodiment of the present application, user can be in the enterprising line slip of screen Operation, the information for needing to send is chosen by sliding, and can be a file or multiple files while choosing. First terminal detect carry out touch-control finger or equipment frame out after, the position that will be slid past on screen The information of display is put as data to be transmitted, is encoded, generate the 3rd audio signal.
First terminal 11 is being determined as transmission terminal, and user's length on the screen of the first terminal 11 The duration pressed sends first audio signal more than after first threshold to the second terminal 12.Accordingly , second terminal 12 is being determined as receiving terminal, and user's length on the screen of the second terminal 12 The duration pressed is more than first audio signal for after Second Threshold, receiving the transmission of first terminal 11.
That is, sending the unlatching of terminal and receiving terminal function, two users are needed respectively in two terminals On carry out corresponding operating.The user of first terminal can appoint that both sides are at end with the user of second terminal Length is pressed on the screen at end, and the duration that length is pressed is more than threshold value, now, between first terminal and second terminal Transfer function is opened.If user performs corresponding operating in first terminal, and does not perform corresponding behaviour in second terminal Make, although then first terminal can be sent out the first audio signal, second terminal cannot be received.Conversely, If not performing corresponding operating in first terminal, and corresponding operating is performed in second terminal, then first terminal is not The first audio signal is sent, second terminal cannot also receive the first audio signal.Therefore, first terminal and second The user of terminal is both needed to the operation arranged.
It should be noted that first terminal here also can be used as recipient, second terminal also can be used as transmission Side.First threshold and Second Threshold can be with identical, also can be different.User on first terminal, can with Family operates simultaneously in second terminal, is operated when also can be different.The embodiment of the present application is only for example herein, and Do not limit.Equally, as the length of open function by operation, the embodiment of the present application is also only citing, other behaviour Make, as long as the user of first terminal appoints with the user of second terminal, it is also possible to realize opening two terminals Send the function with receive information.Based on identical technology design, the embodiment of the present application also provides a kind of data Transmitting device, as shown in Fig. 2 including:
Sending module 21, for sending the first audio signal for matching to second terminal, wherein described the One audio signal includes the identification code of the first terminal;
Coding module 22, for being parsed to the second audio signal from the second terminal for receiving, According to analysis result after it is determined that the second terminal allows pairing, to data to be transmitted and the first terminal Identification code encoded, generate the 3rd audio signal;
Sending module 21, is additionally operable to send the 3rd audio signal to the second terminal.
Optionally, also it is used for including determining module 23:
According to the frequency range of the ambient noise for detecting, determine the first terminal and the second terminal it Between transmit audio signal frequency range, wherein between the first terminal and the second terminal transmit The frequency range of audio signal is non-intersect with the frequency range of the ambient noise;
The frequency range of the audio signal that will be transmitted between the first terminal and the second terminal, by the Four audio signals notify that the second terminal, the 4th audio signal include the mark of the first terminal Code;
Coding module 22, is additionally operable to according to transmission between the first terminal and the second terminal for determining The frequency range of audio signal, the identification code of coding and the first terminal, generation are carried out to data to be transmitted 3rd audio signal.
Optionally, coding module 22, are additionally operable to:
Using the key key arranged with the second terminal, the data to be transmitted is encrypted;
The identification code of coding and the first terminal is carried out to the data to be transmitted after encryption, the 3rd audio is generated Signal.
Optionally, coding module 22 is additionally operable to:
The information of the position display that user is slid past on the screen of the first terminal is treated as described The data of transmission;
Detecting after the user stops touching screen, to the data to be transmitted and the first terminal Identification code is encoded, and generates the 3rd audio signal.
Optionally, sending module 21 is additionally operable to:
It is determined that the first terminal is pressed as transmission terminal, and user's length on the screen of the first terminal Duration more than after first threshold, send first audio signal to the second terminal.
Optionally, sending module 21 is additionally operable to:
The first audio signal for matching is sent to multiple second terminals;
The 3rd audio signal is sent to the second terminal of pairing is allowed in the multiple second terminal.
A kind of data transmission device, as shown in figure 3, including:
Receiver module 31, the first audio signal for pairing that first terminal sends is received for holding;
Parsing module 32, for being parsed to first audio signal, obtains first audio signal In identification code;The 3rd audio signal that the first terminal for receiving sends is parsed, acquisition is treated Transmission data and identification code;
Matching module 33, for after it is determined that allowing to be matched with the first terminal, being sent out to the first terminal Send the second audio signal for allowing pairing;
Processing module 34, for it is determined that the identification code in the 3rd audio signal is believed with first audio After identification code in number is consistent, the data to be transmitted is processed.
Optionally, the first finger print information is also included in first audio signal;
Matching module 33 determines whether to be matched with the first terminal according to following manner:
Second finger print information is obtained by Fingerprint Identification Unit;
Judge whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
Optionally, parsing module 32, are additionally operable to:
The 4th audio signal that the first terminal for receiving sends is parsed, described first is obtained eventually The frequency range and identification code of the audio signal transmitted between end and the second terminal;
It is determined that identification code mark in identification code in the 4th audio signal and first audio signal After knowledge code is consistent, the frequency model of the audio signal transmitted between the first terminal and the second terminal is stored Enclose;
Receiver module 31, is additionally operable to:According to the frequency range for obtaining, receive that the first terminal sends the Three audio signals.
Optionally, parsing module 32, are additionally operable to:
3rd audio signal is decoded,
Using the key arranged with the first terminal, decoded 3rd audio signal is decrypted, obtained Take the data to be transmitted of the first terminal.
Optionally, receiver module 31, are additionally operable to:
It is determined that the second terminal is pressed as receiving terminal, and user's length on the screen of the second terminal Duration more than after Second Threshold, receiving first audio signal that the first terminal sends.
Optionally, the data to be transmitted is voice data;
Processing module 34, is additionally operable to for the voice data to be converted into text data.
The data transmission method provided in the embodiment of the present application, from for first terminal side, as shown in figure 4, Can include:
Step 401, first terminal send the first audio signal for matching to second terminal, wherein described First audio signal includes the identification code of the first terminal;
Step 402, the first terminal are carried out to the second audio signal from the second terminal for receiving Parsing, according to analysis result after it is determined that the second terminal allows pairing, to data to be transmitted and described the The identification code of one terminal is encoded, and generates the 3rd audio signal;
Step 403, the first terminal send the 3rd audio signal to the second terminal.
The first terminal according to analysis result it is determined that the second terminal allow pairing after, to be transmitted The identification code of data and the first terminal is encoded, and before the 3rd audio signal of generation, is also included:
The first terminal determines the first terminal and institute according to the frequency range of the ambient noise for detecting The frequency range of the audio signal transmitted between second terminal is stated, wherein the first terminal and described second is eventually The frequency range of the audio signal transmitted between end is non-intersect with the frequency range of the ambient noise;
The frequency of the audio signal that the first terminal will be transmitted between the first terminal and the second terminal Rate scope, notifies that the second terminal, the 4th audio signal include described by the 4th audio signal The identification code of first terminal;
The first terminal carries out the identification code of coding and the first terminal, generation the 3rd to data to be transmitted Audio signal, including:
The first terminal is according to the audio transmitted between the first terminal and the second terminal for determining The frequency range of signal, the identification code of coding and the first terminal, generation the 3rd are carried out to data to be transmitted Audio signal.
The first terminal is encoded to the identification code of data to be transmitted and the first terminal, generation the 3rd Audio signal, including:
The first terminal is added using the key arranged with the second terminal to the data to be transmitted It is close;
The first terminal carries out the identification code of coding and the first terminal to the data to be transmitted after encryption, Generate the 3rd audio signal.
The first terminal is encoded to the identification code of data to be transmitted and the first terminal, generation the 3rd Audio signal, including:
The letter of the position display that the first terminal slides past user on the screen of the first terminal Breath is used as the data waiting for transmission;
The first terminal is being detected after the user stops touching screen, to the data to be transmitted and institute The identification code for stating first terminal is encoded, and generates the 3rd audio signal.
The first terminal sends the first audio signal for matching to second terminal, including:
The first terminal is being determined as transmission terminal, and user's length on the screen of the first terminal is pressed Duration more than after first threshold, send first audio signal to the second terminal.
The first terminal sends the first audio signal for matching to second terminal, including:
The first terminal sends the first audio signal for matching to multiple second terminals;
The first terminal sends the 3rd audio signal to the second terminal, including:
The first terminal is to the second terminal transmission the described 3rd that pairing is allowed in the multiple second terminal Audio signal.
Accordingly, from second terminal side, the data transmission method provided in the embodiment of the present application can be such as Fig. 5 It is shown, including:
Step 501, second terminal receive the first audio signal for pairing that first terminal sends;
Step 502, the second terminal are parsed to first audio signal, obtain first sound Identification code in frequency signal;
Step 503, the second terminal it is determined that allow with the first terminal match after, to described first Terminal sends the second audio signal for allowing pairing;
Step 504, the second terminal are entered to the 3rd audio signal that the first terminal for receiving sends Row parsing, obtains data to be transmitted and identification code;
Step 505, the second terminal are it is determined that identification code and described first in the 3rd audio signal After identification code in audio signal is consistent, the data to be transmitted is processed.
Also include the first finger print information in first audio signal;
The second terminal determines whether to be matched with the first terminal according to following manner:
The second terminal obtains the second finger print information by Fingerprint Identification Unit;
The second terminal judges whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
The second terminal carries out parsing to the 3rd audio signal that the first terminal for receiving sends Before, also include:
The second terminal is parsed to the 4th audio signal that the first terminal for receiving sends, and is obtained Take the frequency range and identification code of the audio signal transmitted between the first terminal and the second terminal;
The second terminal is it is determined that identification code and first audio signal in the 4th audio signal In identification code identification code it is consistent after, store the audio transmitted between the first terminal and the second terminal The frequency range of signal;
The second terminal receives the 3rd audio signal that the first terminal sends, including:
The second terminal receives the 3rd audio letter that the first terminal sends according to the frequency range for obtaining Number.
The second terminal processes the data to be transmitted, including:
The second terminal is decoded to the 3rd audio signal;
The second terminal utilizes the key arranged with the first terminal, to decoded 3rd audio signal It is decrypted, obtains the data to be transmitted of the first terminal.
The second terminal receives the first audio signal for pairing that first terminal sends, including:
The second terminal is being determined as receiving terminal, and user's length on the screen of the second terminal is pressed Duration more than after Second Threshold, receiving first audio signal that the first terminal sends.
The data to be transmitted is voice data;The second terminal processes the data to be transmitted, including: The voice data is converted into text data by the second terminal.
In order to be more clearly understood that the application, said system is described in detail with instantiation below.
A kind of scene of embodiment of the application is transaction exhibition scene, exhibition participant A and exhibition participant The need for member B does not recognize mutually, but A and B are due to business, electronic business card need to be exchanged with each other.A and B Business card exchange can be carried out by the smart mobile phone of the intelligent watch of A and B.Idiographic flow as shown in fig. 6, Including:
Step 601, the loudspeaker of intelligent watch send the audio signal for matching, and audio signal is passed through Sound wave sends, wherein, the IMEI of intelligent watch is carried in audio signal.
Step 602, the microphone of smart mobile phone receive the audio signal that intelligent watch sends.
The audio signal that step 603, smart mobile phone parsing are received, obtains and stores the IMEI of intelligent watch.
The IMEI of intelligent watch is shown on step 604, smart mobile phone, and point out user B choose whether with The intelligent watch is matched.
Step 605, smart mobile phone are it is determined that user's selection "Yes" option, agrees to smart mobile phone and intelligent hand After table pairing, the feedback opinion that will have agreed to is sent to intelligent watch by audio signal, for feedback opinion The IMEI of smart mobile phone is carried in audio signal.
Step 606, intelligent watch receive the feedback opinion of smart mobile phone transmission, know that smart mobile phone is agreed to match somebody with somebody It is right, and store the IMEI of smart mobile phone.
The frequency range of noise, is determined as in step 607, intelligent watch detection surrounding environment 100Hz~15kHz, then intelligent watch by between smart mobile phone transmit audio frequency range be set as 50Hz ~100Hz.
Step 608, intelligent watch setting intelligent watch microphone receive the scope of audio signal, and intelligence The loudspeaker of wrist-watch sends the scope of audio signal, is 50Hz~100Hz, and by the frequency of the transmission audio Scope sends smart mobile phone to by audio signal.
Step 609, smart mobile phone parsing audio signal, obtain the frequency model that audio is transmitted and between intelligent watch Enclose, and set the scope that smart mobile phone microphone receives audio signal, and the loudspeaker of smart mobile phone sends The scope of audio signal, is 50Hz~100Hz.
Step 610, intelligent watch are encoded the business card of A according to frequency range 50Hz~100Hz, With the IMEI of intelligent watch together, audio signal is generated, and the audio signal is sent to smart mobile phone.
Step 611, smart mobile phone are encoded the business card of B according to frequency range 50Hz~100Hz, With the IMEI of intelligent hand level together, audio signal is generated, and the audio signal is sent to intelligent watch.
Step 612, smart mobile phone receive audio signal, and parsing obtains the IMEI of intelligent watch, will parse The intelligent watch IMEI of acquisition compared with the IMEI for storing before, determine it is identical after, obtain and store A Business card.
Step 613, intelligent watch receive audio signal, and parsing obtains the IMEI of smart mobile phone, will parse The smart mobile phone IMEI of acquisition compared with the IMEI for storing before, determine it is identical after, obtain and store B Business card.
Above-mentioned steps 610 can be performed before step 611, and step 610 can also be performed after step 611, Or step 610 is performed with step 611 simultaneously;Step 612 can be performed before step 613, step 612 Also can be performed after step 613, or step 612 is performed simultaneously with step 613, the embodiment of the present application pair This is not limited.
The scene of the application another kind embodiment is sitting in automobile for user C, and user C need to be by destination Positional information sends automatic navigator to from mobile phone.Idiographic flow as shown in fig. 7, comprises:
Step 701, the loudspeaker of mobile phone send the audio signal for matching, and audio signal is passed through into sound wave Send, wherein, the finger print information of the ID and user C of mobile phone is carried in audio signal.
Step 702, the microphone of automatic navigator receive the audio signal that mobile phone sends, and parse audio signal, Obtain the finger print information of the ID and C of mobile phone.
Be input into fingerprint in automatic navigator by step 703, user C, for confirming to match.
The fingerprint similarity that step 704, automatic navigator judge the fingerprint of user C inputs and receive before Whether more than 80%, if so, performing step 706;Otherwise, step 705 is performed.
Step 705, automatic navigator prompting fault alarm, can be pointed out, and be sent alarm to carry with word Show sound.
The ID of step 706, automatic navigator memory mobile phone, and feedback information is sent to by audio signal Mobile phone.
After step 707, mobile phone are connected to feedback information, know that automatic navigator agrees to pairing, by purpose status Confidence is ceased and mobile phone ID is encoded, and generates audio signal, and be sent to automatic navigator.
Step 708, the microphone of automatic navigator receive the audio signal for transmitting.
The audio signal that step 709, automatic navigator parsing are transmitted, if carrying mobile phone in audio signal ID, and mobile phone ID is identical with the mobile phone ID stored in automatic navigator, then perform step 710;Otherwise, Perform step 708.
Step 710, automatic navigator acquisition positional information, and the operation of correlation navigation function is performed, such as will The position is set to destination, carries out path planning and navigates, or shows electronic map around the position etc..
The scene of the application another embodiment is university classmate party, and need to be shared with for some photos by classmate D Classmate E, F and G, D are sent to photo by desktop computer the mobile phone of E, F and G.Idiographic flow As shown in figure 8, including:
Step 801, the loudspeaker of desktop computer send the audio signal for matching, and audio signal is passed through Sound wave sends, wherein, the IMEI of desktop computer is carried in audio signal.
Step 802, the mobile phone of E, F, G receive and parse through the audio signal that desktop computer sends, and obtain simultaneously Store the IMEI of desktop computer.
Step 803, the mobile phone of E, F, G show the title of desktop computer, and display whether and the desktop Brain is matched, what the entitled D of the desktop computer was previously set.
Step 804, E, F and G selection "Yes", agree to and desktop computer pairing.
Step 805, the mobile phone of E, F, G send the feedback opinion of agreement, audio signal by audio signal The middle IMEI for carrying desktop computer.
Step 806, desktop computer receive feedback opinion, know that mobile phone agrees to pairing.
The password 867429 that step 807, desktop computer are arranged according to D and E, F, G, photo is carried out Encryption, and the photo and the IMEI of desktop computer after encryption are carried out into coding generation audio signal, using sound Ripple is transmitted.
After step 808, the mobile phone of E, F, G receive audio signal, parsing audio signal obtains IMEI.
Step 809, the mobile phone of E, F, G will parse the IMEI of the IMEI and desktop computer of storage for obtaining Contrasted, if the IMEI that parsing is obtained is consistent with the IMEI of the desktop computer of storage, performed step 810;Otherwise, step 808 is performed.
Step 810, the mobile phone of E, F, G decrypt the audio signal after parsing according to password 867429, Obtain photo.
In sum, in the embodiment of the present application, two terminals can be matched using audio signal, specially First terminal sends the first audio signal for matching to second terminal, wherein, taken in the first audio signal Identification code with first terminal, second terminal can be according to the identification code of first terminal, it is determined whether with first eventually End is matched, and result is sent into first terminal by the second audio signal.Pairing process, leads to above Cross the identification code that terminal is added in the audio signal of carrying information so that second terminal can determine that the first audio Signal sends for first terminal, and first terminal can determine that the second audio signal for second terminal sends, this phase When in point-to-point communication link is established between first terminal and second terminal, sonic transmissions are overcome not Can determine that the problem of sender and recipient.After first terminal and second terminal successful matching, first terminal will Data to be transmitted is encoded with the identification code of first terminal, generates the 3rd audio signal, and be sent to second Terminal.In whole process, it is not necessary to set in addition bluetooth or it is infrared wait hardware device, only need terminal transmittable Audio signal is received, is with a wide range of applications.Due to audio transmission for broadcast type is transmitted, i.e. First terminal can send audio signal to multiple second terminals, and second terminal can receive multiple first terminal hairs The audio signal sent, therefore one-to-many data transfer can be realized.
The application is produced with reference to the method according to the embodiment of the present application, equipment (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and / or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, appended right will Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this Shen to the application Spirit and scope please.So, if the application these modification and modification belong to the application claim and Within the scope of its equivalent technologies, then the application is also intended to comprising these changes and modification.

Claims (24)

1. a kind of data transmission method, it is characterised in that including:
First terminal sends the first audio signal for matching to second terminal, wherein first audio is believed Number include the identification code of the first terminal;
The first terminal is parsed to the second audio signal from the second terminal for receiving, according to Analysis result it is determined that the second terminal allow pairing after, to data to be transmitted and the mark of the first terminal Know code to be encoded, generate the 3rd audio signal;
The first terminal sends the 3rd audio signal to the second terminal.
2. the method for claim 1, it is characterised in that the first terminal is according to analysis result After it is determined that the second terminal allows pairing, the identification code to data to be transmitted and the first terminal enters Row coding, before the 3rd audio signal of generation, also includes:
The first terminal determines the first terminal and institute according to the frequency range of the ambient noise for detecting The frequency range of the audio signal transmitted between second terminal is stated, wherein the first terminal and described second is eventually The frequency range of the audio signal transmitted between end is non-intersect with the frequency range of the ambient noise;
The frequency of the audio signal that the first terminal will be transmitted between the first terminal and the second terminal Rate scope, notifies that the second terminal, the 4th audio signal include described by the 4th audio signal The identification code of first terminal;
The first terminal carries out the identification code of coding and the first terminal, generation the 3rd to data to be transmitted Audio signal, including:
The first terminal is according to the audio transmitted between the first terminal and the second terminal for determining The frequency range of signal, the identification code of coding and the first terminal, generation the 3rd are carried out to data to be transmitted Audio signal.
3. the method for claim 1, it is characterised in that the first terminal is to data to be transmitted Identification code with the first terminal is encoded, and generates the 3rd audio signal, including:
The first terminal is added using the key arranged with the second terminal to the data to be transmitted It is close;
The first terminal is encoded to the identification code of the data to be transmitted after encryption and the first terminal, Generate the 3rd audio signal.
4. the method for claim 1, it is characterised in that the first terminal is to data to be transmitted Identification code with the first terminal is encoded, and generates the 3rd audio signal, including:
The letter of the position display that the first terminal slides past user on the screen of the first terminal Breath is used as the data waiting for transmission;
The first terminal is being detected after the user stops touching screen, to the data to be transmitted and institute The identification code for stating first terminal is encoded, and generates the 3rd audio signal.
5. the method for claim 1, it is characterised in that the first terminal is sent out to second terminal The first audio signal for matching is sent, including:
The first terminal is being determined as transmission terminal, and user's length on the screen of the first terminal is pressed Duration more than after first threshold, send first audio signal to the second terminal.
6. the method as described in Claims 1 to 5 is any, it is characterised in that the first terminal is to second Terminal sends the first audio signal for matching, including:
The first terminal sends the first audio signal for matching to multiple second terminals;
The first terminal sends the 3rd audio signal to the second terminal, including:
The first terminal is to the second terminal transmission the described 3rd that pairing is allowed in the multiple second terminal Audio signal.
7. a kind of data transmission method, it is characterised in that including:
Second terminal receives the first audio signal for pairing that first terminal sends;
The second terminal is parsed to first audio signal, in acquisition first audio signal Identification code;
The second terminal sends to the first terminal and uses after it is determined that allowing to be matched with the first terminal In the second audio signal for allowing pairing;
The second terminal is parsed to the 3rd audio signal that the first terminal for receiving sends, and is obtained Take data to be transmitted and identification code;
The second terminal is it is determined that identification code and first audio signal in the 3rd audio signal In identification code it is consistent after, process the data to be transmitted.
8. method as claimed in claim 7, it is characterised in that also include in first audio signal First finger print information;
The second terminal determines whether to be matched with the first terminal according to following manner:
The second terminal obtains the second finger print information by Fingerprint Identification Unit;
The second terminal judges whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
9. method as claimed in claim 7, it is characterised in that the second terminal is to the institute that receives State first terminal transmission the 3rd audio signal parsed before, also include:
The second terminal is parsed to the 4th audio signal that the first terminal for receiving sends, and is obtained Take the frequency range and identification code of the audio signal transmitted between the first terminal and the second terminal;
The second terminal is it is determined that identification code and first audio signal in the 4th audio signal In identification code identification code it is consistent after, store the audio transmitted between the first terminal and the second terminal The frequency range of signal;
The second terminal receives the 3rd audio signal that the first terminal sends, including:
The second terminal receives the 3rd audio letter that the first terminal sends according to the frequency range for obtaining Number.
10. method as claimed in claim 7, it is characterised in that the second terminal treatment is described to be passed Transmission of data, including:
The second terminal is decoded to the 3rd audio signal;
The second terminal utilizes the key arranged with the first terminal, to decoded 3rd audio signal It is decrypted, obtains the data to be transmitted of the first terminal.
11. methods as claimed in claim 7, it is characterised in that the second terminal receives first terminal The first audio signal for pairing for sending, including:
The second terminal is being determined as receiving terminal, and user's length on the screen of the second terminal is pressed Duration more than after Second Threshold, receiving first audio signal that the first terminal sends.
12. method as described in claim 7~11 is any, it is characterised in that the data to be transmitted is Voice data;The second terminal processes the data to be transmitted, including:
The voice data is converted into text data by the second terminal.
A kind of 13. data transmission devices, it is characterised in that including:
Sending module, for sending the first audio signal for matching to second terminal, wherein described first Audio signal includes the identification code of the first terminal;
Coding module, for being parsed to the second audio signal from the second terminal for receiving, root According to analysis result after it is determined that the second terminal allows pairing, to data to be transmitted and the first terminal Identification code is encoded, and generates the 3rd audio signal;
The sending module, is additionally operable to send the 3rd audio signal to the second terminal.
14. devices as claimed in claim 13, it is characterised in that also including determining module, be used for:
According to the frequency range of the ambient noise for detecting, determine the first terminal and the second terminal it Between transmit audio signal frequency range, wherein between the first terminal and the second terminal transmit The frequency range of audio signal is non-intersect with the frequency range of the ambient noise;
The frequency range of the audio signal that will be transmitted between the first terminal and the second terminal, by the Four audio signals notify that the second terminal, the 4th audio signal include the mark of the first terminal Code;
The coding module, is additionally operable to be transmitted according between the first terminal and the second terminal for determining Audio signal frequency range, the identification code of coding and the first terminal is carried out to data to be transmitted, it is raw Into the 3rd audio signal.
15. devices as claimed in claim 13, it is characterised in that the coding module, are additionally operable to:
Using the key key arranged with the second terminal, the data to be transmitted is encrypted;
Identification code to the data to be transmitted after encryption and the first terminal is encoded, and generates the 3rd audio Signal.
16. devices as claimed in claim 13, it is characterised in that the coding module is additionally operable to:
The information of the position display that user is slid past on the screen of the first terminal is treated as described The data of transmission;
Detecting after the user stops touching screen, to the data to be transmitted and the first terminal Identification code is encoded, and generates the 3rd audio signal.
17. devices as claimed in claim 13, it is characterised in that the sending module is additionally operable to:
It is determined that the first terminal is pressed as transmission terminal, and user's length on the screen of the first terminal Duration more than after first threshold, send first audio signal to the second terminal.
18. device as described in claim 13~17 is any, it is characterised in that the sending module is also used In:
The first audio signal for matching is sent to multiple second terminals;
The 3rd audio signal is sent to the second terminal of pairing is allowed in the multiple second terminal.
A kind of 19. data transmission devices, it is characterised in that including:
Receiver module, the first audio signal for pairing for receiving first terminal transmission;
Parsing module, for being parsed to first audio signal, in acquisition first audio signal Identification code;The 3rd audio signal that the first terminal for receiving sends is parsed, is obtained to be passed Transmission of data and identification code;
Matching module, for after it is determined that allowing to be matched with the first terminal, being sent to the first terminal The second audio signal for allowing pairing;
Processing module, for it is determined that identification code and first audio signal in the 3rd audio signal In identification code it is consistent after, process the data to be transmitted.
20. devices as claimed in claim 19, it is characterised in that also wrapped in first audio signal Include the first finger print information;
The matching module determines whether to be matched with the first terminal according to following manner:
Second finger print information is obtained by Fingerprint Identification Unit;
Judge whether first finger print information matches with second finger print information;
If it is, determining to allow to be matched with the first terminal;Otherwise, it determines not allowing and described first Terminal is matched.
21. devices as claimed in claim 19, it is characterised in that the parsing module, are additionally operable to:
The 4th audio signal that the first terminal for receiving sends is parsed, described first is obtained eventually The frequency range and identification code of the audio signal transmitted between end and the second terminal;
It is determined that identification code mark in identification code in the 4th audio signal and first audio signal After knowledge code is consistent, the frequency model of the audio signal transmitted between the first terminal and the second terminal is stored Enclose;
The receiver module, is additionally operable to:
According to the frequency range for obtaining, the 3rd audio signal that the first terminal sends is received.
22. devices as claimed in claim 19, it is characterised in that the parsing module is additionally operable to:
3rd audio signal is decoded;
Using the key arranged with the first terminal, decoded 3rd audio signal is decrypted, obtained Take the data to be transmitted of the first terminal.
23. devices as claimed in claim 19, it is characterised in that the receiver module, are additionally operable to:
It is determined that the second terminal is pressed as receiving terminal, and user's length on the screen of the second terminal Duration more than after Second Threshold, receiving first audio signal that the first terminal sends.
24. device as described in claim 19~23 is any, it is characterised in that the data to be transmitted is Voice data;
The processing module, is additionally operable to for the voice data to be converted into text data.
CN201510975097.2A 2015-12-22 2015-12-22 Data transmission method and device Active CN106911633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510975097.2A CN106911633B (en) 2015-12-22 2015-12-22 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510975097.2A CN106911633B (en) 2015-12-22 2015-12-22 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN106911633A true CN106911633A (en) 2017-06-30
CN106911633B CN106911633B (en) 2021-03-23

Family

ID=59200879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510975097.2A Active CN106911633B (en) 2015-12-22 2015-12-22 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN106911633B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249168A (en) * 2017-05-18 2017-10-13 宇龙计算机通信科技(深圳)有限公司 A kind of data directional transmissions and method of reseptance and device
CN107547142A (en) * 2017-08-31 2018-01-05 努比亚技术有限公司 Communication means, device and computer-readable recording medium based on ultrasonic wave
CN108684029A (en) * 2018-08-23 2018-10-19 维沃移动通信有限公司 A kind of Bluetooth pairing connection method and system, bluetooth equipment and terminal
CN113965929A (en) * 2021-10-21 2022-01-21 北京雪扬科技有限公司 Hardware binding method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100110837A1 (en) * 2008-10-31 2010-05-06 Samsung Electronics Co., Ltd. Method and apparatus for wireless communication using an acoustic signal
CN102281261A (en) * 2010-06-10 2011-12-14 杭州华三通信技术有限公司 Data transmission method, system and apparatus
CN102299747A (en) * 2010-06-22 2011-12-28 上海云途信息技术有限公司 Device, system and method for performing safe data communication based on sound waves
CN103095814A (en) * 2012-12-31 2013-05-08 合一网络技术(北京)有限公司 Voice driven close distance sharing method, client-terminal, server and system based on information network
CN103152106A (en) * 2013-03-13 2013-06-12 荆效民 Ultrasonic information pushing method and system based on audio
CN103731827A (en) * 2012-10-12 2014-04-16 北京微智全景信息技术有限公司 Handheld audio communication equipment and method for electronic certificate authentication
CN103795471A (en) * 2013-11-16 2014-05-14 深圳光启创新技术有限公司 Optical or acoustic communication method and system
CN104868955A (en) * 2015-04-09 2015-08-26 北京橙鑫数据科技有限公司 Data transmission method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100110837A1 (en) * 2008-10-31 2010-05-06 Samsung Electronics Co., Ltd. Method and apparatus for wireless communication using an acoustic signal
CN102281261A (en) * 2010-06-10 2011-12-14 杭州华三通信技术有限公司 Data transmission method, system and apparatus
CN102299747A (en) * 2010-06-22 2011-12-28 上海云途信息技术有限公司 Device, system and method for performing safe data communication based on sound waves
CN103731827A (en) * 2012-10-12 2014-04-16 北京微智全景信息技术有限公司 Handheld audio communication equipment and method for electronic certificate authentication
CN103095814A (en) * 2012-12-31 2013-05-08 合一网络技术(北京)有限公司 Voice driven close distance sharing method, client-terminal, server and system based on information network
CN103152106A (en) * 2013-03-13 2013-06-12 荆效民 Ultrasonic information pushing method and system based on audio
CN103795471A (en) * 2013-11-16 2014-05-14 深圳光启创新技术有限公司 Optical or acoustic communication method and system
CN104868955A (en) * 2015-04-09 2015-08-26 北京橙鑫数据科技有限公司 Data transmission method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249168A (en) * 2017-05-18 2017-10-13 宇龙计算机通信科技(深圳)有限公司 A kind of data directional transmissions and method of reseptance and device
CN107547142A (en) * 2017-08-31 2018-01-05 努比亚技术有限公司 Communication means, device and computer-readable recording medium based on ultrasonic wave
CN107547142B (en) * 2017-08-31 2022-01-14 努比亚技术有限公司 Ultrasonic wave-based communication method, device and computer-readable storage medium
CN108684029A (en) * 2018-08-23 2018-10-19 维沃移动通信有限公司 A kind of Bluetooth pairing connection method and system, bluetooth equipment and terminal
CN113965929A (en) * 2021-10-21 2022-01-21 北京雪扬科技有限公司 Hardware binding method

Also Published As

Publication number Publication date
CN106911633B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
JP6592583B1 (en) Method and apparatus for information exchange
CN104660589B (en) Method, system and terminal for encrypting control and information analysis of information
US20130262687A1 (en) Connecting a mobile device as a remote control
CN104270517B (en) Information ciphering method and mobile terminal
CN105260673A (en) Short message reading method and apparatus
KR20130027930A (en) Method of synchronizing data between NFC terminal and NFC terminal
CN105307137A (en) Short message reading method and device
WO2017091451A1 (en) Automated device discovery of pairing-eligible devices for authentication
CN104994098B (en) Document transmission method and relevant apparatus and Transmission system
CN103747012A (en) Security verification method, device and system of network transaction
CN106911633A (en) A kind of data transmission method and device
CN105741116A (en) Fast payment method, apparatus and system
CN107154916A (en) A kind of authentication information acquisition methods, offer method and device
KR20210015570A (en) Techniques for sharing chat room
CN104168117A (en) Voice digital signature method
CN109241423A (en) Information recommendation method, device, electronic equipment and storage medium
CN106685897A (en) Safe input method, device and system
CN104268611A (en) Webpage synchronizing method and device
CN113035246A (en) Audio data synchronous processing method and device, computer equipment and storage medium
CN104836598B (en) Method for processing business, apparatus and system based on near-field communication
CN104796446A (en) Audio technology-based data transmission method, device and system
Bang et al. Data communication method based on inaudible sound at near field
TWI577145B (en) Method for encrypted data transmission of near field communication device and system thereof
CN104917726B (en) The method and apparatus of authentication
WO2016006354A1 (en) Information processing device, and translation-data provision method

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
GR01 Patent grant
GR01 Patent grant