CN107124230A - Sound wave communication method, terminal and server - Google Patents

Sound wave communication method, terminal and server Download PDF

Info

Publication number
CN107124230A
CN107124230A CN201710277405.3A CN201710277405A CN107124230A CN 107124230 A CN107124230 A CN 107124230A CN 201710277405 A CN201710277405 A CN 201710277405A CN 107124230 A CN107124230 A CN 107124230A
Authority
CN
China
Prior art keywords
terminal
frequency group
sent
receiving terminal
transmission
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
CN201710277405.3A
Other languages
Chinese (zh)
Other versions
CN107124230B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710277405.3A priority Critical patent/CN107124230B/en
Publication of CN107124230A publication Critical patent/CN107124230A/en
Application granted granted Critical
Publication of CN107124230B publication Critical patent/CN107124230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B15/00Suppression or limitation of noise or interference

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention is, on a kind of sound wave communication method and device, to belong to wireless communication technology field.Methods described includes:It is determined that sending corresponding first audio frequency characteristics of environment and the first object frequency group that terminal is presently in;First data transmission request is sent to server, first data transmission request includes the first audio frequency characteristics and first object frequency group;It is modulated using first object frequency group to sent data, generates acoustic signals;Send acoustic signals.The present invention is realized to shake hands between transmission terminal and receiving terminal before acoustic communication, to determine currently available optimal frequency group, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.

Description

Sound wave communication method, terminal and server
Technical field
The present invention relates to wireless communication technology field, more particularly to a kind of sound wave communication method, terminal and server.
Background technology
Acoustic communication, refers to the communication mode carried out data transmission using acoustic signals.During communication, data send terminal, Coded modulation is carried out to data using unifrequency voice signal or multi-frequency mixing voice signal, the sound after modulation is then played Message number, and data receiving terminal, are received after voice signal, identify the frequency acoustic signal for being modulated with data, then will adjust The frequency acoustic signal for being formed with data is demodulated, and acoustic signals are reduced into data.
Current acoustic communication, is to enter row data communication by the way of fixed frequency group mostly, that is, sends terminal and connect Receive terminal and the frequency progress data modulation and demodulation made an appointment are respectively adopted, sent and received the sound wave that completes data.
However, because sound wave belongs to mechanical wave, its narrower bandwidth, and commonly send terminal and the treatable sound of receiving terminal Ripple signal bandwidth is even more limited, under limited bandwidth conditions, and the interference source of sound is a lot, and acoustic communication is highly prone to influence.And In different environment, the frequency position that each acoustic signals are disturbed is also different, according to the mode carry out sound of fixed frequency group Wave communication, due to the difference of environment, sound wave is more vulnerable to interference, possibly can not be received which results in receiving terminal correct Data, influence the quality of acoustic communication.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Sound wave communication method proposed by the present invention, terminal and server, send terminal and lead to receiving terminal in progress sound wave Before letter, corresponding first audio frequency characteristics of environment and first object frequency group that terminal determines that it is presently in first are sent, and will Server is sent to including the first audio frequency characteristics and the request of the first data transmission of first object frequency group, then server Corresponding first audio frequency characteristics of terminal will be sent and first object frequency group is sent to receiving terminal, sending terminal afterwards can root It is modulated according to first object frequency group to sent data, generates acoustic signals, then acoustic signals are sent to reception eventually End.Receiving terminal receives acoustic signals, and in the first audio frequency characteristics that server is sent corresponding with the environment residing for it the Three audio frequency characteristics are when the match is successful, you can according to first object frequency group, to solving from sending the acoustic signals that terminal obtains Analysis, so as to complete the transmission of data.Thus, send between terminal and receiving terminal before acoustic communication by way of shaking hands, The available optimal frequency group of current environment is determined, and then recycles the frequency group determined to carry out acoustic communication, sound wave is reduced and leads to Interference noise in letter, improves the quality of acoustic communication.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment;
Fig. 2 is a kind of schematic flow sheet of sound wave communication method according to another exemplary embodiment;
Fig. 2A is a kind of application scenario diagram of sound wave communication method according to an exemplary embodiment;
Fig. 3 is a kind of schematic flow sheet of sound wave communication method according to another exemplary embodiment;
Fig. 3 A are a kind of application scenario diagrams of sound wave communication method according to another exemplary embodiment;
Fig. 4 is a kind of schematic flow sheet of sound wave communication method according to another exemplary embodiment;
Fig. 5 is a kind of schematic flow sheet of sound wave communication method according to another exemplary embodiment;
Fig. 6 is a kind of schematic flow sheet of sound wave communication method according to another exemplary embodiment;
Fig. 7 is a kind of signaling interaction diagram of sound wave communication method according to an exemplary embodiment;
Fig. 8 is a kind of signaling interaction diagram of sound wave communication method according to another exemplary embodiment;
Fig. 9 is a kind of signaling interaction diagram of sound wave communication method according to another exemplary embodiment;
Figure 10 is a kind of signaling interaction diagram of sound wave communication method according to another exemplary embodiment;
Figure 11 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment;
Figure 12 is a kind of structured flowchart of acoustic communication device according to another exemplary embodiment;
Figure 13 is a kind of structured flowchart of acoustic communication device according to another exemplary embodiment;
Figure 14 is a kind of structured flowchart of acoustic communication device according to another exemplary embodiment;
Figure 15 is a kind of structured flowchart of acoustic communication device according to another exemplary embodiment;
Figure 16 is the hardware environment figure of transmission terminal according to an exemplary embodiment, server and receiving terminal.
Pass through above-mentioned accompanying drawing, it has been shown that the present invention clearly embodiment, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope of present inventive concept by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate idea of the invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
Specifically, the present invention is for when carrying out acoustic communication using acoustic communication mode, sound wave is highly prone to interference, causes Receiving terminal possibly can not receive correct data, the problem of influenceing the quality of acoustic communication, propose a kind of acoustic communication side Method.This method is shaken hands by using terminal, server and receiving terminal is sent before acoustic communication, and whole according to sending The environmental sound signal at the place that end and receiving terminal are collected, preferably disturbs less low noise frequency, is used as acoustic communication Frequency is modulated, data to be transmitted is modulated and demodulated, so as to reduce the interference of noise in acoustic communication, sound wave is improved The quality of communication.
It is logical to sound wave provided in an embodiment of the present invention separately below exemplified by sending terminal, server and receiving terminal side Letter method is described in detail.
First exemplified by sending end side, sound wave communication method provided in an embodiment of the present invention is described in detail.
Fig. 1 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In transmission terminal.
As shown in figure 1, the sound wave communication method, comprises the following steps:
Step 101, it is determined that sending corresponding first audio frequency characteristics of environment and the first object frequency group that terminal is presently in.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be sent eventually by provided in an embodiment of the present invention End is performed.Wherein, it can be any terminal to send terminal, such as mobile phone, computer.
Wherein, first object frequency group, refers to and sends in the environment that terminal is presently in, disturb sound wave less low noise The combination of frequency.
It should be noted that in various embodiments of the present invention, the mark and frequency frequency of each frequency can be pre-set Mapping relations, so that the frequency of the frequency can be uniquely determined according to the mark of frequency by sending terminal, server and receiving terminal Rate.Such as, the corresponding 100KHZ of frequency 1, the corresponding 200KHZ of frequency 2, the correspondence of frequency 3 300KHZ, etc. can be set.
Audio frequency characteristics, can include audio-frequency fingerprint, or, audio power smooth value etc..
It is understood that when carrying out acoustic communication, sending terminal and receiving terminal being generally closer to the distance, i.e. send eventually End is generally under same environment with receiving terminal, and any corresponding audio frequency characteristics of varying environment are different, therefore, at this In inventive embodiments, terminal and the corresponding audio frequency characteristics of environment difference residing for receiving terminal are sent, can be sent for judgement Whether terminal is in identical environment with receiving terminal.
When implementing, step 101 can include:
With default sampling length, collection sends the voice signal in the environment that terminal is presently in;
Voice signal is parsed, it is determined that sending corresponding first audio frequency characteristics of environment and first that terminal is presently in Target frequency group.
Wherein, default sampling length, can be set as needed.Such as, can be receivable etc. according to user Treat that the conditions such as time, the conversion speed for sending terminal are configured.When user is badly in need of transmitting data using acoustic communication, It can set with 100ms (millisecond), 500ms etc. shorter sampling length collection is sent in the environment that terminal is presently in Voice signal.Or, when sending the conversion speed of terminal quickly, the longer sampling with 3s, 5s etc. can be set Length collection sends voice signal in the environment that terminal is presently in, etc..
It should be noted that because the voice signal in environment not in the same time is typically different, therefore, of the invention real Apply in example, can periodically gather the voice signal sent in the environment that terminal is presently in.
In addition, in embodiments of the present invention, sending terminal can be clicked in user, be slided etc. after touch control operation, with Default sampling length, collection sends the voice signal in the environment that terminal is presently in.Or, it can also be needed in user When, for example, when user starts the application for needing to be communicated by sound wave, automatic data collection sends the ring that terminal is presently in Voice signal in border, to be parsed to the voice signal collected, it is determined that the environment that transmission terminal is presently in is corresponding First audio frequency characteristics and first object frequency group.
Accordingly, before step 101, it can also include:
Default application is started it is determined that sending in terminal;
Or,
Default process is started it is determined that sending in terminal.
When implementing, can according to application or process type, predefine need carry out acoustic communication application or The corresponding mark of process, so that after it is determined that starting application corresponding with default mark or process in transmission terminal, you can With default sampling length, collection sends the voice signal in the environment that terminal is presently in.With to the voice signal collected Parsed, it is determined that sending corresponding first audio frequency characteristics of environment and the first object frequency group that terminal is presently in.
The specific process for determining to send the corresponding first object frequency group of environment that terminal is presently in, will be in following realities Apply in example and describe in detail, be not illustrated herein.
In addition, determining to send the process for corresponding first audio frequency characteristics of environment that terminal is presently in, it is referred to existing Technology, here is omitted.
Step 102, first data transmission request is sent to server, it is special that first data transmission request includes the first audio Levy and first object frequency group.
Specifically, sending terminal determines corresponding first audio frequency characteristics of the environment being presently in and first object frequency group Afterwards, you can first data transmission request is sent to server, so that server first data transmission is asked to include the One audio frequency characteristics and first object frequency group are sent to receiving terminal.And make receiving terminal according to the first audio frequency characteristics, the first mesh Corresponding 3rd audio frequency characteristics of environment where marking frequency group, and receiving terminal and the 4th target frequency group, carry out information matches, from And when the match is successful for the first audio frequency characteristics and first object frequency group and the 3rd audio frequency characteristics and the 4th target frequency group, to clothes Business device returns to the message for confirming matching.
In a kind of possible way of realization, also include in first data transmission request:Send terminal is currently located the One positional information.So that server determines corresponding receiving terminal first according to first position information.
Step 103, the data transfer enabled instruction that the reception server is issued.
Step 104, it is modulated using first object frequency group to sent data, generates acoustic signals.
Step 105, acoustic signals are sent.
Specifically, receiving terminal determines corresponding first audio of environment that server is sent, transmission terminal is presently in Feature and first object frequency, the 3rd audio frequency characteristics corresponding with the environment that receiving terminal is presently in and the 4th target frequency group During matching, you can send confirmation message to server, so that server is that can determine that can be between transmission terminal and receiving terminal Carry out data transmission, and data transfer enabled instruction is sent to terminal is sent.
Send terminal to receive after the data transfer enabled instruction that server is issued, you can utilize first object frequency group pair Data to be sent are modulated, and generate acoustic signals, and the acoustic signals of generation are sent into receiving terminal by loudspeaker.
The specific process being modulated using first object frequency group to sent data, prior art has been related to And, here is omitted.
Or, send terminal and corresponding first audio frequency characteristics of the environment being presently in and first object frequency group is determined Afterwards, you can first data transmission request is sent into server, so that server is according to the first audio frequency characteristics and first object frequency Point group, judges the first audio frequency characteristics and first object frequency group the 3rd audio frequency characteristics whether corresponding with environment where receiving terminal And the 4th target frequency group matching.If matching, server, which can determine to send between terminal and receiving terminal, can enter line number Data transfer enabled instruction is sent according to transmission, and to terminal is sent.The data biography that server is issued is received so as to send terminal After defeated enabled instruction, you can be modulated using first object frequency group to sent data, acoustic signals are generated, and will be raw Into acoustic signals receiving terminal is sent to by loudspeaker.
It should be noted that in embodiments of the present invention, transmission terminal can also be pre-set and sending the to server After a period of time of one data transfer request, directly it is modulated, is generated to sent data using first object frequency group Acoustic signals, and the acoustic signals of generation are sent to receiving terminal by loudspeaker, without that must be sent out in the reception server The modulation and transmission of acoustic signals are carried out after the data transfer instruction sent again, you can to omit step 104, led to so as to improve sound wave The efficiency of letter.
It should be noted that in embodiments of the present invention, for the privacy of data transfer, before step 104, may be used also To be encrypted to sent data, so as to improve the safety and reliability of data transfer during acoustic communication.
Specifically, the key being encrypted to sent data, can be affiliated respectively by transmission terminal and receiving terminal User input.Wherein, the key of user's input can be determined by user by oral negotiation, or, can also be direct According to default rule, the mark of receiving terminal, id etc. are set to key, the present embodiment is not limited this.
For example, data to be sent are encrypted using the mark of receiving terminal if sending terminal, so that many Individual receiving terminal is received sends after the acoustic signals that terminal is sent, and only legal receiving terminal is using its mark to getting After data are decrypted, accurate data can be obtained;And illegal receiving terminal, it is impossible to obtain accurate using its mark decryption Data, so as to ensure that data are only transmitted that there is provided data transfer sending between terminal and legal receiving terminal Safety and reliability.
It is understood that in a kind of possible way of realization of the embodiment of the present invention, according to the transmission terminal collected Voice signal in the environment being presently in, it is determined that first object frequency group in frequency negligible amounts when, data transfer mistake Cheng Keneng needs more data block.And the increase of data number of blocks can cause the increase of valid data transmission time, reduction transmission Efficiency, therefore, in embodiments of the present invention, before sending first data transmission request to server, can also include:
Whether the frequency sum that judging first object frequency group includes is less than Second Threshold;
If so, then resurveying the voice signal sent in the environment that terminal is presently in, the voice signal is parsed, until It is determined that the frequency quantity that the corresponding first object frequency group of the environment being presently in includes, more than Second Threshold.
Wherein, Second Threshold, can be configured as needed.
Such as, Second Threshold, can be determined according to data volume to be sent.Specifically, due to data volume to be sent compared with When many, if being modulated using less frequency to sent data, the speed sent during transmission data may be caused slower, It therefore, it can to pre-set the corresponding relation of data volume to be sent and Second Threshold, such as, data volume to be sent is worked as in setting When more, Second Threshold is larger value, when data volume to be sent is less, and Second Threshold is less value.So as to basis The data volume to be sent and corresponding relation pre-set, determines Second Threshold.
Or, Second Threshold can also be according to sending in terminal, it is necessary to carry out the application of acoustic communication or process is set Put.Specifically, the mark and the corresponding relation of Second Threshold of application or process can be pre-set, so that it is determined that sending terminal In when starting certain default application or process, using corresponding relation, determine Second Threshold.For example, A applications only need to transmit user A small amount of character such as name and password, then Second Threshold, could be arranged to less numerical value, and such as 2;B application need transmission picture or The information of the big data quantities such as file, then Second Threshold, could be arranged to larger value, and such as 8.Then determine to send in terminal to start When certain applies A, you can according to the mark of application, it is 2 to determine Second Threshold.
Specifically, if the frequency sum that first object frequency group includes is more than Second Threshold, sending terminal can be by First data transmission request is sent to server, if the frequency sum that first object frequency group includes is not more than Second Threshold, Then sending terminal needs to resurvey and parse the voice signal sent in the environment that terminal is presently in, until determining current institute The frequency quantity that the corresponding first object frequency group of environment at place includes, after Second Threshold, then by first data transmission Request is sent to server, so that server carries out subsequent operation.
Sound wave communication method provided in an embodiment of the present invention, it is determined that sending the environment corresponding first that terminal is presently in After audio frequency characteristics and first object frequency group, first data transmission request is sent to server, then the reception server is issued Data transfer enabled instruction, recycles first object frequency group to be modulated to sent data, generates acoustic signals, finally Send acoustic signals.By according to the environment that terminal is presently in is sent, the less low noise frequency of acoustic jamming being determined, to treat Send data to be modulated, and the acoustic signals of generation are sent to receiving terminal, realize transmission terminal and exist with receiving terminal Shaken hands before carrying out acoustic communication, to determine currently available optimal frequency group, reduce the interference noise in acoustic communication, Improve the quality of acoustic communication.
By above-mentioned analysis, acoustic jamming can be determined according to the environment that terminal and receiving terminal are presently in is sent The acoustic signals of generation to be modulated to data to be sent, and are sent to receiving terminal, so by less low noise frequency And, in practice, it is understood that there may be two or more transmission terminals in same environment are needed to receiving terminal The situation of data is sent, with reference to Fig. 2, sound wave communication method provided in an embodiment of the present invention is further described.
Fig. 2 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In transmission terminal.
As shown in Fig. 2 the sound wave communication method, comprises the following steps:
Step 201, default application is started it is determined that sending in terminal.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be sent eventually by provided in an embodiment of the present invention End is performed.Wherein, it can be any terminal to send terminal, such as mobile phone, computer.
Wherein, default application, can refer to can carry out any application of acoustic communication.
Step 202, according to default application, Second Threshold is determined.
Specifically, because the data transmitted when different applications is using acoustic communication may be different, so that the frequency needed Quantity may be also different, therefore, in the embodiment of the present invention, can pre-set different applications and the mapping of Second Threshold is closed System, so that it is determined that after application startup, you can according to the mark of the application of startup, determine corresponding Second Threshold.
Step 203, with default sampling length, collection sends the voice signal in the environment that terminal is presently in.
Step 204, parse, determine each in voice signal to sending the voice signal in the environment that terminal is presently in The corresponding bottom of frequency is made an uproar, and determines corresponding first audio frequency characteristics of current environment.
Step 205, when the bottom of any one frequency in voice signal is made an uproar less than first threshold, bottom is made an uproar less than first threshold Frequency, add first object frequency group.
Wherein, bottom is made an uproar to refer to and sent in the environment that terminal is presently in, the overall noise in addition to useful signal.
First threshold, for characterizing the voice signal in the environment residing for transmission terminal, is produced smaller dry to acoustic communication Maximum noise value when disturbing.
Specifically, the voice signal sent in the environment that terminal is presently in first can be subjected to Fourier transformation, it is determined that The power spectral value p (i) of voice signal, wherein, i is frequency sequence number value, then determines each frequency in voice signal according to frequency spectrum Bottom make an uproar n (i).Wherein it is possible to which using various ways, the bottom for determining each frequency according to frequency spectrum is made an uproar.
Such as, according to n (i)=a* (i)+(1-a) * p (i), determine that the bottom of i-th of frequency is made an uproar value.
Wherein, a is proportionality constant, and environment that can be rule of thumb or residing for first terminal determines that the present embodiment is to this It is not construed as limiting.
Further it will be understood that it is a curve that the bottom of a frequency, which is made an uproar, even if when the virtual value of curve is less than necessarily During value, its fluctuation having still may be larger, now can still be easier to be disturbed, therefore, it is also desirable to judge that it fluctuates model Whether safe enclose.Therefore, in embodiments of the present invention, the difference value that can also be made an uproar the bottom of by, judges the corresponding noise of each frequency Size, so that it is determined that the frequency in first object frequency group.That is, before step 205, it can also include:Determine that bottom is made an uproar to be less than The frequency of first threshold, corresponding bottom is made an uproar difference value.
Specifically, being made an uproar and difference value that bottom is made an uproar, being determined in first object frequency group the bottom of according to by a variety of methods Frequency.
Method one
Bottom is made an uproar and is less than the frequency of the 3rd threshold value less than first threshold and bottom difference value of making an uproar, first object frequency group is added.
Method two
Determine that the bottom of each frequency in voice signal is made an uproar the factor, its midsole bottom that the factor is each frequency of making an uproar is made an uproar and bottom is made an uproar difference value Product;
By bottom make an uproar the factor be less than the 4th threshold value frequency, add first object frequency group.
When implementing, bottom can be made an uproar and be less than the frequency of the 3rd threshold value less than first threshold and bottom difference value of making an uproar, added First object frequency group, or, by bottom make an uproar with bottom make an uproar difference value product be less than the 4th threshold value frequency, add first object frequency Point group.Or, other methods can also be used, first object frequency group is determined, is not restricted herein.
Step 206, whether the frequency sum that judging first object frequency group includes is more than Second Threshold.If so, performing Step 207, otherwise, return and perform step 203.
Step 207, first data transmission request is sent to server, it is special that first data transmission request includes the first audio Levy and first object frequency group.
Step 208, the data transfer enabled instruction that the reception server is issued, wherein, in data transfer enabled instruction, including Second target frequency group.
Wherein, first object frequency group includes the second target frequency group.
Step 209, it is modulated using the second target frequency group to sent data, generates acoustic signals.
Step 210, acoustic signals are sent.
Wherein, step 201-203, step 206-207, step 209-210's implements process and principle, is referred to The detailed description of above-described embodiment one, here is omitted.
It is understood that in practice, it is understood that there may be two or more transmissions in same environment Terminal needs to send the situation of data to receiving terminal, i.e. two send the terminal currently residing corresponding audio of environment of difference Feature and target frequency, audio frequency characteristics and target frequency matching corresponding with the environment that receiving terminal is presently in.Then server Or each frequency in the target frequency group of matching can be divided into two parts by receiving terminal, it is respectively allocated to two and sends eventually End, and data transfer enabled instruction is sent respectively from server to two transmission terminals and receiving terminal, so that two transmissions Terminal is utilized respectively corresponding target frequency group in instruction and entered to sent data after data transfer enabled instruction is received Row modulation, generates acoustic signals, and acoustic signals are sent into receiving terminal by equipment such as loudspeakers.
For example, as shown in Figure 2 A, it is assumed that send terminal A, send the environment pair that terminal B and receiving terminal are currently located The audio frequency characteristics matching answered, corresponding target frequency group includes frequency 1, frequency 2, frequency 3, frequency 4, then receiving terminal is determined Two send after terminal target frequency matching corresponding with the environment residing for receiving terminal currently difference, can be by frequency 1, frequency 2 distribute to transmission terminal A, and frequency 3 and frequency 4 are distributed into transmission terminal B.Terminal A is then sent, terminal B is sent and receives eventually Termination is received after the data transfer enabled instruction of server transmission, sends terminal A i.e. using frequency 1 and frequency 2 to be sent Data be modulated, generate acoustic signals, and acoustic signals be sent to receiving terminal.Meanwhile, sending terminal B can utilize Frequency 3 and frequency 4 are modulated to sent data, generate acoustic signals, and acoustic signals are sent into receiving terminal.
Or, terminal currently the difference residing corresponding audio frequency characteristics of environment and target frequency are sent at two, with reception When the corresponding audio frequency characteristics of environment and target the frequency matching that terminal is presently in, server or receiving terminal can be set respectively Put two and send the time that terminal sends data, and data are sent respectively to two transmission terminals and receiving terminal from server and pass Defeated enabled instruction, so that two send terminal and receive after data transfer enabled instruction, can be treated according to target frequency group The data of transmission are modulated, and generate acoustic signals, and do not sending acoustic signals to receiving terminal in the same time.
That is, in data transfer enabled instruction, it can also include:Time delay.Accordingly, step 210 can specifically include: After time delay terminates, acoustic signals are sent.
As an example it is assumed that sending terminal A, sending the corresponding audio spy of environment that terminal B and receiving terminal are currently located Matching is levied, corresponding target frequency group includes frequency 1, frequency 2, frequency 3, frequency 4, then server or receiving terminal determine two It is individual to send after terminal target frequency matching corresponding with the environment residing for receiving terminal currently difference, transmission terminal A can be set to exist Receive after data transfer enabled instruction, data to be sent be just sent to receiving terminal, send terminal B after 1s, restart by Data to be sent are sent to receiving terminal.Then send the number that terminal A, transmission terminal B and receiving terminal receive server transmission After being instructed according to transmission start, send terminal A and adjusted using frequency 1, frequency 2, frequency 3, frequency 4 to sent data System, generates acoustic signals, and acoustic signals are sent into receiving terminal.Send terminal B and frequency 1, frequency 2, frequency can also be used 3rd, frequency 4 is modulated to sent data, generates acoustic signals, and after 1s, acoustic signals are sent to reception by startup Terminal.
Further, in embodiments of the present invention, it can also include in first data transmission request:Send the mark of terminal Know, so that server or receiving terminal can be according to the marks for sending terminal, it is determined that sending the corresponding target frequency group of terminal Or time delay, it is modulated so as to send terminal using corresponding target frequency group to sent data, and by generation Acoustic signals are sent to receiving terminal, or after time delay terminates, acoustic signals are sent to receiving terminal.
In a kind of preferably way of realization of the application, due to the voice signal of different frequent points, in acoustic communication by dry The probability disturbed is different with degree, therefore, in the embodiment of the present application, can also by analyzing history acoustic communication data, It is determined that preferably acoustic communication frequency pond, so as to when the voice signal in current environment is parsed, only judge frequency pond In each frequency it is whether available, so as to reduce the processing load for sending terminal.
Wherein, preset frequency pond can be shifted to an earlier date by sending in terminal, or, can also be to server real-time query frequency pond; Or, this can also not limited according to current environment feature real-time update, the present embodiment.
And the frequency in frequency pond, can also be adjusted according to different environment.For example, it is assumed that sending terminal generally in horse Road, bus, market, dining room, have in the environment of noisy loud background music etc. and to carry out acoustic communication with receiving terminal, then It can predefine in above-mentioned environment, data to be sent are modulated with which frequency, the acoustic signals of generation can be made It is disturbed degree minimum, communication quality is best, so as to regard these frequencies as each frequency in frequency pond.Further according to frequency pond In the bottom of each frequency make an uproar, determine each frequency, if first object frequency group can be added.
Sound wave communication method provided in an embodiment of the present invention, default application is being started it is determined that sending in terminal, and really Surely after transmission terminal is presently in corresponding first audio frequency characteristics of environment and first object frequency group, however, it is determined that first object frequency The frequency sum that point includes is more than Second Threshold, then sends first data transmission request to server, then the reception server The data transfer enabled instruction issued, recycles the second target frequency group in data transfer enabled instruction to sent data It is modulated, generates acoustic signals, finally send acoustic signals.The ring being presently in by using transmission terminal and receiving terminal Border, determines the less low noise frequency of acoustic jamming, to be modulated to data to be sent, and the acoustic signals of generation is sent to Receiving terminal, realizes and is shaken hands between transmission terminal and receiving terminal before acoustic communication, to determine currently available optimal frequency Point group, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.
Below by taking server side as an example, sound wave communication method provided in an embodiment of the present invention is described in detail.
Fig. 3 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In server.
As shown in figure 3, the sound wave communication method, comprises the following steps:
Step 301, obtain first and send the first data transmission request that terminal is sent, first data transmission request includes Corresponding first audio frequency characteristics of environment and first object frequency group that first transmission terminal is presently in.
Step 302, the matching message of sound wave first is sent to the first receiving terminal, the first matching message includes the first audio Feature and first object frequency.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be by server provided in an embodiment of the present invention Perform.
Wherein, first object frequency group, refers in the environment that the first transmission terminal is presently in, and less to sound wave interference is low The combination of noise frequency.
Audio frequency characteristics, can include audio-frequency fingerprint, or, audio power smooth value etc..
It is understood that when carrying out acoustic communication, sending terminal and receiving terminal being generally closer to the distance, i.e. send eventually End is generally under same environment with receiving terminal, and any corresponding audio frequency characteristics of varying environment are different.Therefore, at this In inventive embodiments, first sends terminal and the corresponding audio frequency characteristics of environment difference residing for the first receiving terminal, can be for Judge whether the first transmission terminal is in identical environment with the first receiving terminal.
Specifically, first sends terminal, it is determined that corresponding first audio of environment that the first transmission terminal is presently in is special After first object frequency group of seeking peace, can be sent to server includes the first number of the first audio frequency characteristics and first object frequency group According to transmission request.Server is after first data transmission request is received, you can sent to the first receiving terminal, including the first sound The matching message of sound wave first of frequency feature and first object frequency, so that the first receiving terminal is received eventually according to first determined Hold the corresponding audio frequency characteristics of environment being presently in, and the sound wave first received from server to match message, carry out information matches, And when the corresponding audio frequency characteristics of environment that the first receiving terminal is presently in are matched with the first audio frequency characteristics, according to first object The acoustic signals got are parsed by frequency group.
Further, since acoustic communication is to the first required distance for sending terminal and the first receiving terminal, therefore, in the present invention In embodiment, server is obtained after first data transmission request, is sent to the first receiving terminal before the matching message of sound wave first, The first receiving terminal can be screened in advance, so as to only send first reception of the terminal in same position eventually to first End sends the matching message of sound wave first, to reduce the transmission of data, improves the efficiency of acoustic communication.That is, in the embodiment of the present invention In, in first data transmission request, the first position information that the first transmission terminal is currently located, accordingly, step can also be included Rapid 302, it can specifically include:
The first position information being currently located according to the first transmission terminal, acquisition connects with the first of first position information matches Receive terminal iidentification;
Identified based on the first receiving terminal to corresponding first receiving terminal and send the matching message of sound wave first.
Specifically, server can utilize GPS location, the mode such as user's input obtains first and sends terminal and many respectively The positional information that individual first receiving terminal is presently in, and determine to send the first position information that terminal is currently located with first The the first receiving terminal mark matched somebody with somebody, so that sound wave first only is matched into message is sent to the first receiving terminal mark corresponding first Receiving terminal, to reduce the transmission of data, improves the efficiency of acoustic communication.
As an example it is assumed that the first position information where the first transmission terminal is " Room of 1 floor of A cells 101 ", first receives Positional information where terminal A is " Room of 1 floor of A cells 101 ", and the positional information where the first receiving terminal B is " 1 layer of A cells Room 102 ", so that server is that can determine that the first receiving terminal mark with the first position information matches where the first transmission terminal Know for A, so that after the first request of data that server receives the transmission of the first transmission terminal, you can to the first receiving terminal A The matching message of sound wave first is sent, to reduce the transmission of data, the efficiency of acoustic communication is improved.
It is understood that in practice, in fact it could happen that utilize GPS location, the mode such as user's input, it is determined that with the After the first receiving terminal mark for the first position information matches that one transmission terminal is presently in, due to the ground residing for current location Manage scope larger, cause the first transmission terminal and the first receiving terminal can not carry out the situation of acoustic communication.For above-mentioned situation, In embodiments of the present invention, the distance between the first transmission terminal and first receiving terminal can also be judged, if less than default Scope, if so, then to the first receiving terminal send sound wave first matching message.
Wherein, default scope, can be set by a variety of methods.For example, can be according to acoustic communication when, choose Sound wave frequency, propagate energy etc. and set, be not restricted herein.
Specifically, if first sends the distance between terminal and first receiving terminal, less than default scope, server is It can determine that the first transmission terminal can be communicated with the first receiving terminal by sound wave, so that sound wave first only is matched into message The first receiving terminal of the first position information matches that positional information is currently located with the first transmission terminal is sent to, to reduce number According to transmission, improve acoustic communication efficiency.
As an example it is assumed that default scope is 8 meters, first sends terminal, the first receiving terminal A, the first receiving terminal B The positional information at place is " Room of 1 floor of A cells 101 ", and the first transmission the distance between terminal and the first receiving terminal A is 10 Rice, first sends the distance between terminal and the first receiving terminal B for 2 meters, so that server is that can determine that the second receiving terminal B Positional information and the first first position information matches for being currently located of transmission terminal, so as to receive the first transmission in server After the first request of data that terminal is sent, you can the matching message of sound wave first is sent to the first receiving terminal B, to reduce data Transmission, improves the efficiency of acoustic communication.
It is understood that in practice, it is understood that there may be two or more transmission terminals are needed to first Receiving terminal sends the situation of data, for above-mentioned situation, in embodiments of the present invention, before step 302, can also include:
Obtain second and send the second data transfer request that terminal is sent.
Wherein, in the second data transfer request, including the second audio frequency characteristics, the 3rd target frequency group.
In addition, if the position of the first transmission terminal and the second transmission terminal is nearer, first, which sends terminal and second, sends When terminal is to the first receiving terminal transmission data, interference is likely to result in, therefore, in embodiments of the present invention, is received to first Terminal is sent before the first matching message, can also be prejudged the first transmission terminal and whether be sent terminal in same with second In environment, i.e. before step 302, it can also include:
Judge whether first position matches with the 3rd position.
Further, in first data transmission request, it can also include:First sends the mark of terminal and the first transmission eventually First position where end;It can also include in second data transfer request:Second sends the mark of terminal and the second transmission eventually The 3rd position where end;It can also include in the matching message of sound wave first:First sends the mark of terminal, the second transmission terminal Mark, the 3rd target frequency group and the second audio frequency characteristics.
Specifically, the 3rd be currently located when the first first position for being currently located of transmission terminal and the second transmission terminal When putting matching, then the first transmission terminal and the second transmission terminal are likely to be under same environment.Then server can be by the first hair Make arrangements for his funeral and hold audio frequency characteristics corresponding with the environment that the second transmission terminal is each presently in and target frequency group to be sent to first and connect Receive terminal so that the first receiving terminal judge respectively the first transmission terminal and second send each self-corresponding audio frequency characteristics of terminal and Target frequency group, if audio frequency characteristics and target frequency matching corresponding with the first receiving terminal.
If the first receiving terminal determines that the first transmission terminal and second sends each self-corresponding audio frequency characteristics of terminal and target Frequency group, audio frequency characteristics and target frequency matching corresponding with the first receiving terminal then first sends terminal, the second transmission eventually End, the first receiving terminal are under same environment, now, if first sends terminal and the second transmission terminal while being received to first Terminal sends data, may result in the first receiving terminal and is unable to properly receive.Therefore, the first receiving terminal can be by matching Each frequency in target frequency group is divided into two parts, is respectively allocated to two transmission terminals, and include second to server return First confirmation message of target frequency group, so that first sends terminal according to the second target frequency group, enters to sent data Row modulation, generates acoustic signals.
Accordingly, in embodiments of the present invention, after step 302, it can also include:
The first confirmation message of the first receiving terminal return is obtained, the first confirmation message includes:First sends terminal Mark, and the corresponding second target frequency group of the first transmission terminal determined according to the first default strategy, wherein, first object Frequency group includes the second target frequency group;
Terminal is sent to first and sends data transfer enabled instruction, and data transfer instruction includes the second target frequency group.
It should be noted that determining that first sends the corresponding second target frequency group of terminal according to the first default strategy Process, will be illustrated in the following embodiments, such as, and first object frequency group can be taken to be detected with the first receiving terminal and determined Target frequency group common factor, be used as the second target frequency group.It is not described herein.
Specifically, the first receiving terminal can send the mark of terminal according to the first mark for sending terminal and second, will The second target frequency component dispensing first that first object frequency group includes a part of frequency sends terminal, by first object frequency The target frequency component dispensing second that point group includes another part frequency sends terminal, and confirms to disappear to server return first Breath, so that server is received after the first confirmation message, you being sent to the first transmission terminal and the first receiving terminal includes the The data transfer enabled instruction of two target frequency groups, being sent to the second transmission terminal and the first receiving terminal includes another target frequency The data transfer enabled instruction of point group, so that two transmission terminals and the first receiving terminal are utilized respectively corresponding target frequency Group, carry out sound wave modulation or demodulation, so as to complete the transmission and reception of sound wave.
Or, the first receiving terminal determine the first transmission terminal and second send each self-corresponding audio frequency characteristics of terminal and Target frequency group, after audio frequency characteristics and target frequency matching corresponding with the first receiving terminal, the first receiving terminal can also divide Not She Zhi two send terminals send data time, and to server return the first confirmation message.
Wherein, the first confirmation message includes:First sends the mark of terminal, and according to the second default strategy determination First sends terminal corresponding time delay.
It should be noted that the first process for sending terminal corresponding time delay is determined according to the second default strategy, It will in the following embodiments illustrate, not be described herein.
Specifically, the first receiving terminal can send the mark of terminal according to the first mark for sending terminal and second, point Not She Zhi two send terminals corresponding time delay, and the first confirmation message is returned to server, so that server is received After first confirmation message, you being sent to the first transmission terminal and the first receiving terminal includes the corresponding delay of the first transmission terminal The data transfer enabled instruction of time, includes the second transmission terminal corresponding to the second transmission terminal and the transmission of the first receiving terminal The data transfer enabled instruction of time delay, so that two send terminal and the first receiving terminal according to corresponding time delay, Carry out the transmission and reception of sound wave.
If it should be noted that having multiple receiving terminals to need reception first to send terminal and second sends what terminal was sent Sound wave, and the frequency that the available second target frequency group that determines respectively of multiple receiving terminals includes is different, i.e. this method, also Including:
The matching message of sound wave first is sent to the second receiving terminal;
The second confirmation message that second receiving terminal is returned is obtained, second confirmation message includes:Described One sends the mark of terminal, and the corresponding 6th target frequency of the first transmission terminal determined according to the first default strategy Group, wherein, the first object frequency group includes the 6th target frequency group;
Judge the second target frequency group and the 6th target frequency group, if matching;
If mismatching, it is determined that the 7th target frequency group, wherein, the 7th target frequency group is the second target frequency group With the common factor of the 6th target frequency group;
It is described to be sent to described first in the data transfer enabled instruction that terminal is sent, including:The 7th target frequency Group.
For example, as shown in Figure 3A, terminal A is sent by first, second send terminal B and the first receiving terminal C and the Two receiving terminal D are in identical environment, and the first transmission terminal A, the second transmission terminal B have initiated number to server simultaneously According to transmission request.If the first object frequency group that the first transmission terminal A is determined includes frequency (1,2,3,4,5,6), the second hair The 3rd target frequency group that the end B that makes arrangements for his funeral is determined includes frequency (2,3,4,5,6), the 4th target that the first receiving terminal C is determined Frequency group include frequency (2,3,4,5,6), the second receiving terminal D determine available targets frequency group include frequency (1,3, 4、5、6)。
The second target frequency group that so the first receiving terminal C is returned to server is (2,3,4), the second receiving terminal The 6th target frequency group that D is returned to server is (3,4,5), then server is receiving the second target frequency group and the 6th mesh Mark after frequency group, you can it is (3,4) to determine the 7th target frequency group, so as to can be (3,4) by the 7th target frequency group, respectively The first transmission terminal A, the first receiving terminal C and the second receiving terminal D are sent to, so that above-mentioned first sends terminal A utilizations The corresponding frequency of 7th target frequency group carries out the modulation and demodulation of data.
It should be noted that second sends the determination process of the corresponding final modulation frequencies of terminal B, with said process phase Together, here is omitted.
Sound wave communication method provided in an embodiment of the present invention, please obtaining the first first data transmission for sending terminal transmission After asking, the matching message of sound wave first is sent to the first receiving terminal.Hereby it is achieved that sending terminal, the first receiving terminal and clothes Business device is shaken hands before acoustic communication, to determine optimal communication frequency, is reduced the interference noise in acoustic communication, is improved The quality of acoustic communication.
Fig. 4 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In server.
As shown in figure 4, the sound wave communication method, comprises the following steps:
Step 401, obtain first and send the first data transmission request that terminal is sent, first data transmission request includes Corresponding first audio frequency characteristics of environment and first object frequency group that first transmission terminal is presently in.
Step 402, the 3rd data transfer request that the first receiving terminal is sent is obtained, the 3rd data transfer request includes Corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group that first receiving terminal is presently in.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be by server provided in an embodiment of the present invention Perform.
Wherein, first object frequency group and the 4th target frequency group, refer to the first transmission terminal or the first receiving terminal respectively In the environment being presently in, the combination of less low noise frequency is disturbed sound wave.
Audio frequency characteristics, can include audio-frequency fingerprint, or, audio power smooth value etc..
, can be respectively to service before the first transmission terminal and the first receiving terminal progress acoustic communication when implementing Device sends first data transmission request and the 3rd data transfer request.
Step 403, it is determined that the first audio frequency characteristics are matched and first object frequency group and the with the 3rd audio frequency characteristics When four target frequency groups are matched, send terminal to first and the first receiving terminal sends data transfer enabled instruction.
It is understood that when carrying out acoustic communication, sending terminal and receiving terminal being generally closer to the distance, i.e. send eventually End is generally under same environment with receiving terminal, and any corresponding audio frequency characteristics of varying environment are different, therefore, at this In inventive embodiments, terminal and the corresponding audio frequency characteristics of environment difference residing for receiving terminal are sent, can be sent for judgement Whether terminal is in identical environment with receiving terminal.
Specifically, server receive the first data transmission that the first transmission terminal and the first receiving terminal send respectively please After the 3rd data transfer request of summing, you can judge whether the first audio frequency characteristics match with the 3rd audio frequency characteristics, so as to judge One sends whether the current residing environment respectively of terminal and the first receiving terminal is same environment.
Below so that audio frequency characteristics are audio-frequency fingerprint as an example, judge that server the first audio frequency characteristics are with the 3rd audio frequency characteristics The process of no matching is illustrated.
Wherein, audio-frequency fingerprint is extracted based on sound spectrum energy (i.e. power spectrum) difference.
Audio-frequency fingerprint is defined as follows:
Wherein, p is calculates obtained each frequency power spectral value after Fourier transformation, and i is frame number value, and j is frequency sequence number Value.F (i, j) represents the audio-frequency fingerprint of j-th of frequency of the i-th frame.
Specifically, server receive the first data transmission that the first transmission terminal and the first receiving terminal send respectively please After the 3rd data transfer request of summing, you can send terminal according to first and the first receiving terminal distinguishes corresponding audio-frequency fingerprint f1 (i, j) and f2(i, j), as follows, carries out audio-frequency fingerprint matching.
Work as db(f1,f2) be less than threshold value T when, then server can determine the first transmission terminal and the first receiving terminal difference Corresponding audio-frequency fingerprint matching, so that it is determined that first to send terminal and the current residing environment respectively of the first receiving terminal be same Environment, wherein, T size can based on experience value or specifically environmental characteristic is determined, does not limit herein.
In addition, in embodiments of the present invention, server obtains first data transmission request and the 3rd data transfer request Afterwards, before judging whether the first audio frequency characteristics match with the 3rd audio frequency characteristics, terminal and first can also be sent to first in advance Whether receiving terminal is in same environment is judged in advance, so as to reduce the workload for judging whether audio frequency characteristics match, is improved The speed of data processing, improves the efficiency of acoustic communication.That is,
The first position where the first transmission terminal can also be included in first data transmission request, the 3rd data transfer please The second place where the first receiving terminal can also be included by asking.
Before step 403, it can also include:
Determine that first position is matched with the second place.
Specifically, first sends terminal and the first receiving terminal and can utilize GPS location, the mode such as user's input, respectively Obtain first and send first position and the second place that terminal and the first receiving terminal are presently in, and by first position and second Position is sent to server, and server is received behind first position and the second place, you can determine first position and the second place Whether same geographical position is in, so as to be carried out in advance to whether the first transmission terminal and the first receiving terminal are in same environment It is pre- to judge, to reduce the workload for judging whether audio frequency characteristics match, the speed of data processing is improved, the effect of acoustic communication is improved Rate.
It is understood that in practice, in fact it could happen that when the geographic range residing for current location is larger, utilize GPS location, the first transmission terminal and the first receiving terminal that the mode such as user's input is determined is matched location respectively, so And, first sends terminal and the first receiving terminal not in same environment, it is impossible to the situation of acoustic communication is carried out, therefore, in this hair In bright embodiment, first position and second place matching are determined, can specifically be included:
Judge the distance between the second place and first position, if less than default scope;
If, it is determined that the second place is matched with first position.
Wherein, default scope, can be set by a variety of methods.For example, can be according to acoustic communication when, choose Sound wave frequency, propagate energy etc. and set, be not restricted herein.
If specifically, first send terminal and the first receiving terminal respectively where first position and the second place between away from From, less than default scope, server be can determine that first position and the second place matching, so that it is determined that first send terminal with First receiving terminal may be in same environment, and then judge the corresponding audio frequency characteristics of the first transmission terminal and the first receiving terminal Whether corresponding audio frequency characteristics match, and improve the speed of data processing, improve the efficiency of acoustic communication.
It is understood that according to the principle of acoustic communication, during communication, first sends terminal, utilizes first object frequency Group carries out coded modulation to data to be sent, then plays to the first receiving terminal, and the first receiving terminal, receives sound letter After number, the frequency acoustic signal for being modulated with data is identified, recycles the 4th target frequency group to be demodulated signal, by sound wave Signals revivification is data.And when being demodulated to the data after modulation, frequency point information when frequency point information must be with modulation is phase With, initial data can be just obtained, therefore, in embodiments of the present invention, if server determines the first transmission terminal and first After the current residing environment respectively of receiving terminal is same environment, in addition it is also necessary to judge first object frequency group and the 4th target frequency Whether group matches.
Accordingly, if the first audio frequency characteristics and the 3rd audio frequency characteristics are mismatched, and server does not receive other the first receptions The audio frequency characteristics that terminal is sent, then failed message can be returned to terminal is sent.
Further, if first object frequency group is matched with the 4th target frequency group, server can be respectively to first Send terminal and the first receiving terminal sends data transfer enabled instruction, so that first sends terminal and the first receiving terminal point Li Yong not first object frequency group, the i.e. modulation and demodulation of the 4th target frequency group progress sound wave, so as to complete the transmission of sound wave.
If it is understood that first sends terminal and the first receiving terminal due to allocation problem, even if may cause place In same position, the target frequency of acquisition is also differed.If now first object frequency group is mismatched with the 4th target frequency group, Then server can choose identical frequency from first object frequency group and the 4th target frequency group, be used as the 5th target frequency Point group, and terminal and the transmission of the first receiving terminal are sent to first, the data transfer enabled instruction of the 5th target frequency group is included, So that the first transmission terminal and the first receiving terminal are utilized respectively the 5th target frequency group, carry out sound wave modulation or demodulation, from And complete the transmission and reception of sound wave.
That is, after step 403, it can also include:
If mismatching, it is determined that the 5th target frequency group, wherein, the 4th target frequency group is distinguished with first object frequency group Include the 5th target frequency group;
Terminal is sent to first and the first receiving terminal is sent, and the data transfer comprising the 5th target frequency group starts and referred to Order.
In practice, it is understood that there may be two or more transmission terminals need to send number to the first receiving terminal According to situation, for above-mentioned situation, in embodiments of the present invention, the sound wave communication method can also include:
Obtain second and send the second data transfer request that terminal is sent.
Wherein, in the second data transfer request, including corresponding second audio of environment that the second transmission terminal is presently in Feature, the 3rd target frequency group.
In addition, if the position of the first transmission terminal and the second transmission terminal is nearer, first, which sends terminal and second, sends When terminal is to the first receiving terminal transmission data, interference is likely to result in, therefore, in embodiments of the present invention, can also be in advance Judge that the first transmission terminal sends whether terminal is in same environment with second, i.e. this method, can also include:
Judge whether first position matches with the 3rd position.
Further, in first data transmission request, the first position where the first transmission terminal can also be included;Second The 3rd position where the second transmission terminal can also be included in data transfer request.
Specifically, the 3rd be currently located when the first first position for being currently located of transmission terminal and the second transmission terminal When putting matching, then the first transmission terminal and the second transmission terminal are likely to be under same environment.Then server may determine that the 3rd Whether audio frequency characteristics, is matched respectively with the first audio frequency characteristics and the second audio frequency characteristics, so as to judge the first receiving terminal and first Send terminal and second and send whether terminal is under same environment.
When server determines the first transmission terminal and second sends terminal, the first receiving terminal under same environment, If first, which sends terminal and second, sends terminal simultaneously to the first receiving terminal transmission data, the first receiving terminal may result in It is unable to properly receive.Then server can determine that the first transmission terminal and second sends terminal to the first reception by the following method Terminal sends the mode of data.
Method one
According to the first default strategy, the corresponding second target frequency group of the first transmission terminal is determined, wherein, first object Frequency group includes the second target frequency group;
Second target frequency group is carried in data transfer enabled instruction, the first transmission terminal and first is sent to and receives Terminal.
If specifically, first sends the corresponding first object frequency group of terminal and corresponding 3rd target of the second transmission terminal Frequency group, the 4th target frequency group matching corresponding with the first receiving terminal respectively, then server can be default according to first Strategy, is divided into two parts by each frequency in first object frequency group, by the second target frequency component comprising a part of frequency Dispensing first sends terminal, the target frequency component dispensing second comprising another part frequency is sent into terminal, and send out to first Make arrangements for his funeral end and the first receiving terminal send include the data transfer enabled instruction of the second target frequency group, to second send terminal with First receiving terminal, which is sent, includes the data transfer enabled instruction of another target frequency group, so that two send terminal and first and connect Receive terminal and be utilized respectively corresponding target frequency group, carry out sound wave modulation or demodulation, so as to complete the transmission and reception of sound wave.
Wherein, the first default strategy, refers to the method for determining to send the corresponding target frequency group of terminal.Specifically, can be with According to a variety of methods, it is determined that sending the corresponding target frequency group of terminal.Such as, can be according to data to be sent in transmission terminal Amount is determined.For example, if first to send data volume to be sent in terminal more, second send data volume to be sent in terminal compared with It is few, then can be by first object frequency group, including the second target frequency component dispensing first of most several frequencies sends end End, sends terminal, so as to ensure the first transmission by another target frequency component dispensing second including remaining a few frequency Terminal and the second transmission terminal can transmit data with most fast speed.
Send in the target frequency group of terminal, do not wrap it should be noted that being respectively allocated to the first transmission terminal and second Include identical frequency.
It is understood that when the frequency negligible amounts in target frequency group, data are carried out using the target frequency group More data block may be needed during transmission, and the increase of data number of blocks can cause the increasing of valid data transmission time Plus, reduce efficiency of transmission, therefore, in embodiments of the present invention, determine the corresponding second target frequency group of the first transmission terminal it Before, it can also include:
The frequency quantity that determining the second target frequency group includes is more than Second Threshold.
Wherein, the setting of Second Threshold, is referred to illustrating for above-described embodiment, here is omitted.Further , in first data transmission request or the 3rd data transfer request, it can also include:First application identities.
Specifically, the corresponding relation of application identities and Second Threshold can be pre-set, so that it is determined that first sends eventually When in end or starting first in the first receiving terminal and applying, using corresponding relation, Second Threshold is determined.
For example, A applications only need to transmit a small amount of character such as username and password, corresponding second threshold of mark of the application Value, could be arranged to less numerical value, and such as 2;B applications need to transmit the information of the big data quantity such as picture or file, the then application The corresponding Second Threshold of mark, could be arranged to larger value, such as 7.Then determine to send in terminal or the first receiving terminal to open When having moved A and applying, you can according to the mark of application, it is 2 to determine Second Threshold.
Method two
According to the second default strategy, the first transmission terminal corresponding time delay is determined;
By time delay, carry in data transfer enabled instruction, be sent to the first transmission terminal and the first receiving terminal.
If specifically, first sends the corresponding first object frequency group of terminal and corresponding 3rd target of the second transmission terminal Frequency group, the 4th target frequency group matching corresponding with the first receiving terminal respectively, then server can be default according to second Strategy, determines that two send the time that terminal sends data respectively, and send terminal and the transmission of the first receiving terminal, bag to first The data transfer enabled instruction of the first transmission terminal corresponding time delay is included, terminal is sent to second and the first receiving terminal is sent out Send, include the data transfer enabled instruction of the second transmission terminal corresponding time delay, so that two send terminals and first and connect Terminal is received respectively according to corresponding time delay, carries out the transmission and reception of sound wave.
Wherein, the second default strategy, refers to the method for determining to send terminal corresponding time delay.Specifically, can root According to a variety of methods, it is determined that sending terminal corresponding time delay.Such as, can be corresponding according to data to be sent in terminal are sent Using determination.For example, if first sends the corresponding application of data to be sent in terminal to pay application, second sends in terminal The corresponding application of data to be sent is that file transmits application, due to may relatively be worried using the user for paying application, is then taken Business device can set the time delay of the first transmission terminal shorter, or not postpone;Determine that the second transmission terminal is sent eventually first It is transmitted after end, so as to ensure that the first transmission terminal and the second transmission terminal with most fast efficiency, can complete the number of transmission According to.
Sound wave communication method provided in an embodiment of the present invention, obtains first and sends the first data transmission that terminal is sent first Request, and the 3rd data transfer request that the first receiving terminal is sent, then it is determined that the first audio frequency characteristics and the 3rd audio are special Levy matching and first object frequency group with the 4th target frequency group when match, to the first transmission terminal and the first receiving terminal hair Send data transfer enabled instruction.Shaken hands hereby it is achieved that sending between terminal and the first receiving terminal before acoustic communication, with true Settled preceding available optimal frequency group, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.
Below by taking receiving terminal side as an example, sound wave communication method provided in an embodiment of the present invention is described in detail.
Fig. 5 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In receiving terminal.
As shown in figure 5, the sound wave communication method, comprises the following steps:
Step 501, obtain and send the acoustic signals that terminal is sent.
Step 502, corresponding 3rd audio frequency characteristics of environment being presently according to the receiving terminal determined, and from service The sound wave matching message that device is received carries out information matches.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be received eventually by provided in an embodiment of the present invention End is performed.Wherein, receiving terminal can be any terminal, such as mobile phone, computer.
Wherein, in sound wave matching message, including corresponding first audio frequency characteristics of environment that are currently located of terminal and the are sent One target frequency group.
When implementing, step 502 can include:
Step 502a, with default sampling length, the voice signal in the environment that collection receiving terminal is presently in.
Step 502b, is parsed to voice signal, determines corresponding 4th target of environment that receiving terminal is presently in Frequency group and the 3rd audio frequency characteristics.
Wherein, the 4th target frequency group, during fingering row acoustic communication, in the environment that receiving terminal is presently in, to sound wave The combination of the less low noise frequency of interference.
Specifically, determining the process for corresponding 3rd audio frequency characteristics of environment that receiving terminal is presently in, it is referred to existing There is technology, here is omitted.
Whether step 502c, the frequency quantity that judging the 4th target frequency group includes is more than Second Threshold.
Step 502d, if it is not, the voice signal in the environment that then repeated acquisition and parsing are presently in, until the 4th target The frequency quantity that frequency group includes is more than Second Threshold.
Wherein, step 501a-501d implements process and principle, is referred to above-described embodiment one and embodiment two Illustrate, here is omitted.
Step 502e, judges whether the first audio frequency characteristics match with the 3rd audio frequency characteristics.
Step 502f, if matching, judges whether the 4th target frequency group matches with first object frequency group.
Specifically, server, which is received, sends corresponding first audio frequency characteristics of the environment being presently in and that terminal is sent After one target frequency group, you can will be sent to and connect including the first audio frequency characteristics and the sound wave of first object frequency group matching message Terminal is received, so that receiving terminal is corresponding first audio frequency characteristics of environment where can determine whether to send terminal, with receiving terminal place Whether corresponding 3rd audio frequency characteristics of environment match, and then judge to send the current residing environment respectively of terminal and receiving terminal and be No is same environment.
Specifically judge whether the first audio frequency characteristics match with the 3rd audio frequency characteristics, and the 4th target frequency group and the first mesh The process whether mark frequency group matches, is referred to the description of above-described embodiment four, here is omitted.
It is understood that when receiving terminal determines the first audio frequency characteristics and the 3rd audio frequency characteristics mismatch, representing to send The current residing environment respectively of terminal and receiving terminal is not same environment, is matched so that receiving terminal can be returned to server Failure.
Step 503, it is right according to first object frequency group when the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics Acoustic signals are parsed.
Sent specifically, receiving terminal is got by equipment such as microphones after the acoustic signals that terminal is sent, if the 3rd The match is successful for audio frequency characteristics and the first audio frequency characteristics, then receiving terminal can according to matching message in first object frequency group, To in acoustic signals, frequency corresponding with each frequency in first object frequency group is demodulated, to restore initial data.
The specific process being demodulated using first object frequency group to acoustic signals, prior art is involved in, this Place is repeated no more.
In addition, in a kind of possible way of realization of the present invention, receiving terminal can also be first whole according to the reception determined Hold corresponding 3rd audio frequency characteristics of environment being presently in, and the sound wave received from server to match message, carry out information matches, When the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics, confirmation message is returned to server, server hair is being received After the data transfer enabled instruction sent, then the acoustic signals for sending terminal transmission are received, and according to first object frequency group, to sound Ripple signal is parsed.
It should be noted that in embodiments of the present invention, for the privacy of data transfer, sending terminal can also treat The data of transmission are encrypted, so as to improve the safety and reliability of data transfer during acoustic communication.Accordingly, After the step 503, it can also include processing is decrypted to the data that parsing is obtained.
Specifically, receiving terminal is used for the key that data are decrypted, can be by the use belonging to receiving terminal difference Family input, or can also be determined according to preset rule.Such as, if key for decryption, passed through by user What oral negotiation was determined, then just decruption key can be inputted by user;Or, if sending terminal is advised using preset encryption Then data are encrypted, then receiving terminal then can directly be solved according to the key in preset rule to data It is close, such as data are decrypted using the mark of receiving terminal, id etc..In the present embodiment, enter again after data are encrypted Row sonic transmissions, it is ensured that data are transmitted between transmission terminal and legal receiving terminal, it is ensured that data transfer Safety and reliability.
It is understood that if first object frequency group and the 4th target frequency group are mismatched, receiving terminal is according to the Four target frequency groups, it is impossible to restore initial data.In embodiments of the present invention, receiving terminal can be from first object frequency group In the 4th target frequency group, identical frequency is chosen, is returned as the 5th target frequency group, and to server comprising the 5th mesh Mark the confirmation message of frequency group.Server is received after confirmation message, you can send number respectively to transmission terminal and receiving terminal Instructed according to transmission start, wherein, the 5th target frequency group is included in data transfer enabled instruction, can profit so that sending terminal With the 5th target frequency group, data to be sent are modulated, acoustic signals are generated, and reception is sent to through equipment such as loudspeakers Terminal.Receiving terminal is received by equipment such as microphones to be sent after the acoustic signals that terminal is sent, you can according to the 5th target Frequency group, in acoustic signals, frequency corresponding with each frequency in the 5th target frequency group is demodulated, to restore original number According to.
In practice, it is understood that there may be two or more terminals that send need to send data to receiving terminal Situation, sends terminal and second with first below and sends terminal, send data instance to receiving terminal, the embodiment of the present invention is carried The sound wave communication method of confession is illustrated.
It is understood that first sends terminal and second and sends terminal before data are sent to receiving terminal, can be with Data transfer request first is sent to server respectively, wherein, include first in data transfer request respectively and send the current institute of terminal Corresponding first audio frequency characteristics of environment and first object frequency group at place, and the environment that the second transmission terminal is presently in are corresponding Second audio frequency characteristics and the 3rd target frequency group.Server is received after data transfer request, you can to receiving terminal transmission sound Ripple matches message, wherein, it can include in sound wave matching message:Corresponding first sound of environment that first transmission terminal is presently in Corresponding second audio frequency characteristics of environment and the 3rd target that frequency feature and first object frequency group, the second transmission terminal are presently in Frequency group, first send the mark of terminal, the mark of the second transmission terminal.
Receiving terminal is received after sound wave matching message, you can judge the environment the corresponding 3rd that receiving terminal is presently in Whether audio frequency characteristics, is matched respectively with the first audio frequency characteristics and the second audio frequency characteristics, so as to judge that receiving terminal is sent with first Terminal and second sends terminal whether under same environment, and judges corresponding 4th mesh of environment that receiving terminal is presently in Mark frequency group, if matched respectively with first object frequency group and the 3rd target frequency group.
When receiving terminal determines the first transmission terminal and second sends terminal, receiving terminal under same environment, and 4th target frequency group, when being matched respectively with first object frequency group and the 3rd target frequency group, if first sends terminal and the Two send terminal sends data to receiving terminal simultaneously, may result in receiving terminal and is unable to properly receive.Then receiving terminal can By the following method, to determine that the first transmission terminal and second sends terminal to the mode that receiving terminal sends data.
Method one
According to the first default strategy, the corresponding second target frequency group of the first transmission terminal is determined, wherein, first object Frequency group includes the second target frequency group;
The confirmation message for the mark for including the second target frequency group and the first transmission terminal is returned to server.
If specifically, first sends the corresponding first object frequency group of terminal and corresponding 3rd target of the second transmission terminal Frequency group, the 4th target frequency group matching corresponding with receiving terminal respectively, then receiving terminal can be according to the first default plan Slightly, each frequency in first object frequency group (i.e. the 3rd target frequency group, the 4th target frequency group) is divided into two parts, will be wrapped The second target frequency component dispensing first containing a part of frequency sends terminal, by the target frequency group comprising another part frequency Distribute to the second transmission terminal.And the second target frequency group for including a part of frequency and the first transmission terminal are returned to server Mark confirmation message, and the confirmation of mark including the target frequency group of another part frequency and the second transmission terminal disappears Breath.So that server sends terminal to two and receiving terminal sends data transfer enabled instruction respectively, so that first sends eventually End and the second transmission terminal can be utilized respectively the second target frequency group and another target frequency group, and data to be sent are adjusted System, and send the acoustic signals of generation.Receiving terminal is after data transfer enabled instruction is received, you can obtain two hairs respectively Make arrangements for his funeral the acoustic signals that send respectively of end, and be utilized respectively the second target frequency group and another target frequency group is demodulated, obtain The initial data sent respectively to the first transmission terminal and the second transmission terminal.
Concrete implementation process and principle, are referred to illustrating for above-described embodiment, here is omitted.Method two
According to the second default strategy, the first transmission terminal corresponding time delay is determined;
The confirmation message for the mark for including time delay and the first transmission terminal is returned to server.
If specifically, first sends the corresponding first object frequency group of terminal and corresponding 3rd target of the second transmission terminal Frequency group, the 4th target frequency group matching corresponding with receiving terminal respectively, then receiving terminal can be according to the second default plan Slightly, determine that two send the time that terminal sends data respectively, and include time delay and the first transmission eventually to server return The mark at end, and second send terminal and the confirmation message of corresponding time delay so that server to two send terminals and Receiving terminal sends data transfer enabled instruction respectively, so that the first transmission terminal and the second transmission terminal can be respectively in correspondences Time delay after, send generation acoustic signals, receiving terminal is after data transfer enabled instruction is received, you can respectively After corresponding time delay, two are obtained respectively and sends the acoustic signals that terminal is sent, and utilizes first object frequency group It is demodulated, obtains the initial data that the first transmission terminal and the second transmission terminal are sent respectively.
Concrete implementation process and principle, are referred to illustrating for above-described embodiment, here is omitted.The present invention The sound wave communication method that embodiment is provided, obtains send the acoustic signals that terminal is sent first, then according to the reception determined Corresponding 3rd audio frequency characteristics of environment that terminal is presently in, and the sound wave matching message received from server enter row information Match somebody with somebody, then when the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics, according to first object frequency group, acoustic signals are carried out Parsing.Thus, by get send terminal send acoustic signals after, using according to send terminal and receiving terminal it is current Residing environment, it is determined that the less low noise frequency of acoustic jamming, the acoustic signals received are parsed, transmission is realized Shaken hands between terminal and receiving terminal before acoustic communication, to determine currently available optimal frequency group, reduce acoustic communication In interference noise, improve the quality of acoustic communication.
Below by taking receiving terminal side as an example, sound wave communication method provided in an embodiment of the present invention is described in detail.
Fig. 6 is a kind of schematic flow sheet of sound wave communication method according to an exemplary embodiment, this method application In receiving terminal.
As shown in fig. 6, the sound wave communication method, comprises the following steps:
Step 601, the 3rd data transfer request is sent to server, the 3rd data transfer request includes receiving terminal and worked as Preceding residing corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group.
Specifically, sound wave communication method provided in an embodiment of the present invention, can be received eventually by provided in an embodiment of the present invention End is performed.Wherein, receiving terminal can be any terminal, such as mobile phone, computer.
Wherein, the 4th target frequency group, during fingering row acoustic communication, in the environment that receiving terminal is presently in, to sound wave The combination of the less low noise frequency of interference.
Audio frequency characteristics, can include audio-frequency fingerprint, or, audio power smooth value etc..
The specific corresponding 4th target frequency group of environment that receiving terminal is presently in and the 3rd audio frequency characteristics of determining Process, is referred to illustrating for above-described embodiment one and embodiment two, here is omitted.
Step 602, the data transfer enabled instruction that the reception server is sent.
When implementing, receiving terminal is sent after the 3rd request of data to server, and server is that can determine whether the 3rd data The 3rd audio frequency characteristics and the 4th target frequency group in request, with sending the first audio frequency characteristics and first object frequency that terminal is sent Point group, if matching, if matching, can send data transfer enabled instruction respectively to receiving terminal and transmission terminal, so that Terminal is sent i.e. using first object frequency group, data to be sent are modulated, acoustic signals are generated, and by acoustic signals It is sent to receiving terminal.
Step 603, obtain and send the acoustic signals that terminal is sent.
Step 604, according to the 4th target frequency group, acoustic signals are parsed.
Sent specifically, receiving terminal is got by equipment such as microphones after the acoustic signals that terminal is sent, you can root According to the 4th target frequency group, in acoustic signals, frequency corresponding with each frequency in the 4th target frequency group is demodulated, with also Original goes out initial data.
The specific process being demodulated using the 4th target frequency group to acoustic signals, prior art is involved in, this Place is repeated no more.
Can be when sending one section of first data transmission request to server further it will be understood that sending terminal Between after, be directly modulated to sent data, and send modulation after acoustic signals.In embodiments of the present invention, also may be used Acoustic signals can be received while terminal transmission acoustic signals are sent to pre-set receiving terminal, and according to the 4th target Acoustic signals are parsed by frequency group, and data transfer enabled instruction is issued without waiting for server, that is, omit step 602, So as to improve the efficiency of acoustic communication.
In practice, it is understood that there may be two or more transmission terminals of same environment are needed to receiving terminal Send the situation of data, i.e. first, which sends terminal and second, sends the terminal currently residing corresponding audio frequency characteristics of environment of difference And target frequency audio frequency characteristics corresponding with the environment that receiving terminal is presently in and the matching of target frequency.Then server can be by Each frequency in the target frequency group of matching is divided into two parts, is respectively allocated to two transmission terminals, and send terminals to two Send data transfer enabled instruction respectively with receiving terminal, wherein, first sends the data transfer that terminal and receiving terminal are received Instruction includes the second target frequency group.So that two send terminal and receive after data transfer enabled instruction, finger is utilized respectively Corresponding target frequency group is modulated to sent data in order, generates acoustic signals, and acoustic signals are sent to connect Receive terminal.Receiving terminal is after acoustic signals are received, you can the second target frequency group is utilized, in voice signal, with second The corresponding frequency of each frequency is parsed in target frequency group, restores initial data, completes acoustic communication.
Or, send terminal and second first and send terminal currently the difference residing corresponding audio frequency characteristics of environment and mesh Frequency is marked, during audio frequency characteristics and target frequency matching corresponding with the environment that receiving terminal is presently in, server can be distinguished Set two to send the time that terminal sends data, and data transfer is sent respectively to two transmission terminals and receiving terminal and start Instruction so that two send terminals receive after data transfer enabled instruction, can according to target frequency group to sent Data are modulated, and generate acoustic signals, and do not sending acoustic signals to receiving terminal in the same time.Receiving terminal is connecing respectively Receive two to send after the acoustic signals that terminal is sent, can be parsed using target frequency group, restore initial data, completed Acoustic communication.
That is, in data transfer enabled instruction, it can also include:Time delay.Accordingly, step 603 can specifically include: After time delay terminates, obtain and send the acoustic signals that terminal is sent.
Sound wave communication method provided in an embodiment of the present invention, sends the 3rd data transfer request to server first and then connects The data transfer enabled instruction that server is sent is received, after the acoustic signals for sending terminal transmission are obtained, according to the 4th target frequency Acoustic signals are parsed by point group.Thus, by after the acoustic signals for sending terminal transmission are got, using according to hair Make arrangements for his funeral end and the environment that is presently in of receiving terminal, it is determined that the less low noise frequency of acoustic jamming, the sound wave received is believed Number parsed, realize and shaken hands between transmission terminal and receiving terminal before acoustic communication, it is currently available optimal to determine Frequency group, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.
Fig. 7 is a kind of signaling interaction diagram of sound wave communication method according to an exemplary embodiment.
As shown in fig. 7, the sound wave communication method includes:
Step 701, corresponding first audio frequency characteristics of environment and first object frequency group that terminal determines to be presently in are sent.
Step 702, receiving terminal determines corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group being presently in.
Step 703, send terminal to server and send first data transmission request.
Wherein, first data transmission request includes the first audio frequency characteristics and first object frequency group.
Step 704, server sends sound wave matching message to receiving terminal.
Wherein, matching message includes the first audio frequency characteristics and first object frequency.
Step 705, receiving terminal judges whether the first audio frequency characteristics match with the 3rd audio frequency characteristics.
Step 706, if matching, receiving terminal judges whether the 4th target frequency group matches with first object frequency group.
Step 707, if matching, receiving terminal returns to confirmation message to server.
Step 708, server sends terminal to first and receiving terminal sends data transfer enabled instruction.
Step 709, send terminal to be modulated to sent data using first object frequency group, generation sound wave letter Number.
Step 710, send terminal to receiving terminal and send acoustic signals.
Step 711, receiving terminal is parsed according to first object frequency group to acoustic signals.
Said process, by according to the environment that terminal and receiving terminal are presently in is sent, determining less low of acoustic jamming The acoustic signals of generation to be modulated to data to be sent, and are sent to receiving terminal by noise frequency, so that receiving eventually Hold and the acoustic signals received are demodulated, restore initial data, realize the sound sent between terminal and receiving terminal Wave communication, reduces the interference of noise in acoustic communication, improves the quality of acoustic communication.
Fig. 8 is a kind of signaling interaction diagram of sound wave communication method according to an exemplary embodiment.
As shown in figure 8, the sound wave communication method includes:
Step 801, corresponding first audio frequency characteristics of environment and first object frequency group that terminal determines to be presently in are sent.
Step 802, send terminal to server and send first data transmission request.
Wherein, first data transmission request includes the first audio frequency characteristics and first object frequency group.
Step 803, receiving terminal determines corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group being presently in.
Step 804, receiving terminal sends the 3rd data transfer request to server.
Wherein, the 3rd data transfer request include corresponding 3rd audio frequency characteristics of environment that receiving terminal is presently in and 4th target frequency group.
Step 805, server judges whether the first audio frequency characteristics match with the 3rd audio frequency characteristics.
Step 806, if matching, server judges whether first object frequency group matches with the 4th target frequency group.
Step 807, if matching, server sends terminal to first and receiving terminal sends data transfer enabled instruction.
Step 808, send terminal to be modulated to sent data using first object frequency group, generation sound wave letter Number.
Step 809, send terminal to receiving terminal and send acoustic signals.
Step 810, receiving terminal is parsed according to the 4th target frequency group to acoustic signals.
Said process, by according to the environment that terminal and receiving terminal are presently in is sent, determining less low of acoustic jamming The acoustic signals of generation to be modulated to data to be sent, and are sent to receiving terminal by noise frequency, so that receiving eventually Hold and the acoustic signals received are demodulated, restore initial data, realize the sound sent between terminal and receiving terminal Wave communication, reduces the interference of noise in acoustic communication, improves the quality of acoustic communication.
Fig. 9 is a kind of signaling interaction diagram of sound wave communication method according to an exemplary embodiment.
As shown in figure 9, the sound wave communication method includes:
Step 901, the first transmission terminal determines corresponding first audio frequency characteristics of environment being presently in and first object frequency Point group.
Step 902, first server transmission first data transmission request is sent terminal to.
Wherein, first data transmission request includes the first audio frequency characteristics, first object frequency group, the first transmission terminal Position where mark and the first transmission terminal.
Step 903, the second transmission terminal determines corresponding second audio frequency characteristics of environment being presently in and the 3rd target frequency Point group.
Step 904, second server the second data transfer request of transmission is sent terminal to.
Wherein, the second data transfer request includes the second audio frequency characteristics, the 3rd target frequency group, second sends terminal The 3rd position where mark and the second transmission terminal.
Step 905, receiving terminal determines corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group being presently in.
Step 906, server judges whether first position matches with the 3rd position.
Step 907, if matching, server sends sound wave matching message to receiving terminal.
Wherein, matching message includes the first audio frequency characteristics, first object frequency, the mark of the first transmission terminal, second Send mark, the 3rd target frequency group and the second audio frequency characteristics of terminal.
Step 908, receiving terminal judges the 3rd audio frequency characteristics, if respectively with the second audio frequency characteristics and the first audio frequency characteristics Matching.
Step 909, if matching, receiving terminal judges the 4th target frequency group, if respectively with first object frequency group And the 3rd target frequency group matching.
Step 910, if matching, receiving terminal determines the first transmission terminal corresponding the according to the first default strategy Two target frequency groups.
Wherein, first object frequency group includes the second target frequency group.
Step 911, receiving terminal includes the mark of the second target frequency group and the first transmission terminal to server return Confirmation message.
Step 912, server sends terminal to first and receiving terminal sends data transfer enabled instruction.
Wherein, transmission instruction includes the second target frequency group.
Step 913, the first transmission terminal is modulated using the second target frequency group to sent data, generates sound wave Signal.
Step 914, first receiving terminal transmission acoustic signals are sent terminal to.
Step 915, receiving terminal is parsed according to the second target frequency group to acoustic signals.
It should be noted that server is received after the confirmation message of receiving terminal transmission, it can also be sent eventually to second End sends data transfer enabled instruction, so that second sends terminal using corresponding target frequency group to sent data progress Modulation, generate acoustic signals so that second send terminal can to receiving terminal send acoustic signals so that receiving terminal according to Acoustic signals are parsed by corresponding target frequency group, not shown above-mentioned steps eventually of the embodiment of the present invention.
Said process, by according to the environment that terminal and receiving terminal are presently in is sent, determining less low of acoustic jamming The acoustic signals of generation to be modulated to data to be sent, and are sent to receiving terminal by noise frequency, so that receiving eventually Hold and the acoustic signals received are demodulated, restore initial data, realize the sound sent between terminal and receiving terminal Wave communication, reduces the interference of noise in acoustic communication, improves the quality of acoustic communication.
Figure 10 is a kind of signaling interaction diagram of sound wave communication method according to an exemplary embodiment.
As shown in Figure 10, the sound wave communication method includes:
Step 1001, the first transmission terminal determines corresponding first audio frequency characteristics of environment being presently in and first object frequency Point group.
Step 1002, first server transmission first data transmission request is sent terminal to.
Wherein, first data transmission request includes the first audio frequency characteristics, first object frequency group, the first transmission terminal Position where mark and the first transmission terminal.
Step 1003, the second transmission terminal determines corresponding second audio frequency characteristics of environment being presently in and the 3rd target frequency Point group.
Step 1004, second server the second data transfer request of transmission is sent terminal to.
Wherein, the second data transfer request includes the second audio frequency characteristics, the 3rd target frequency group, second sends terminal Position where mark and the second transmission terminal.
Step 1005, receiving terminal determines corresponding 3rd audio frequency characteristics of environment and the 4th target frequency being presently in Group.
Step 1006, receiving terminal sends the 3rd data transfer request to server.
Wherein, the 3rd data transfer request includes the 3rd audio frequency characteristics and the 4th target frequency group.
Step 1007, server judges whether first position matches with the 3rd position.
Step 1008, if matching, whether server judges the 3rd audio frequency characteristics, respectively with the first audio frequency characteristics and second Audio frequency characteristics are matched.
Step 1009, if matching, server determines the first transmission terminal corresponding second according to the first default strategy Target frequency group.
Wherein, first object frequency group includes the second target frequency group.
Step 1010, server carries the second target frequency group in data transfer enabled instruction, is sent to the first hair Make arrangements for his funeral and hold and receiving terminal.
Step 1011, the first transmission terminal is modulated using the second target frequency group to sent data, generation sound Ripple signal.
Step 1012, first receiving terminal transmission acoustic signals are sent terminal to.
Step 1013, receiving terminal is parsed according to the second target frequency group to acoustic signals.
Said process, by according to the environment that terminal and receiving terminal are presently in is sent, determining less low of acoustic jamming The acoustic signals of generation to be modulated to data to be sent, and are sent to receiving terminal by noise frequency, so that receiving eventually Hold and the acoustic signals received are demodulated, restore initial data, realize the sound sent between terminal and receiving terminal Wave communication, reduces the interference of noise in acoustic communication, improves the quality of acoustic communication.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.It is real for apparatus of the present invention The details not disclosed in example is applied, the inventive method embodiment is refer to.
Figure 11 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment.The acoustic communication is filled 1100 are put, the device can be applied to send terminal, can include:
First determining module 1101, for determining corresponding first audio frequency characteristics of environment that the transmission terminal is presently in And first object frequency group;
First sending module 1102, for sending first data transmission request to server, the first data transmission please Asking includes first audio frequency characteristics and first object frequency group;
First processing module 1103, it is raw for being modulated using the first object frequency group to sent data Into acoustic signals;
Second sending module 1104, for sending the acoustic signals.
Specifically, acoustic communication device provided in an embodiment of the present invention, can be provided in an embodiment of the present invention for performing Sound wave communication method, wherein, the device can be configured in any terminal, such as mobile phone, computer.
Wherein, audio frequency characteristics, including audio-frequency fingerprint, or, audio power smooth value.
Alternatively, the first determining module 1101, specifically for:
Voice signal in the environment being presently in the transmission terminal is parsed, and is determined each in the voice signal Make an uproar at the corresponding bottom of frequency;
When the bottom of any one frequency in the voice signal is made an uproar less than first threshold, bottom is made an uproar less than the frequency of first threshold Point, adds first object frequency group.
Further, the first determining module 1101, is additionally operable to:
Determine that bottom is made an uproar less than the frequency of first threshold, corresponding bottom is made an uproar difference value;
The bottom is made an uproar and is less than the frequency of the 3rd threshold value less than first threshold and bottom difference value of making an uproar, first object frequency is added Point group;
Or,
Determine that the bottom of each frequency in the voice signal is made an uproar the factor, the factor is made an uproar and bottom for the bottom of each frequency wherein the bottom is made an uproar Make an uproar the product of difference value;
By the bottom make an uproar the factor be less than the 4th threshold value frequency, add first object frequency group.
Alternatively, the device, in addition to:
Second processing module, for when frequency that the first object frequency group includes sum is less than Second Threshold, The voice signal in the environment that the transmission terminal is presently in is resurveyed, the voice signal is parsed, until determining current The frequency quantity that the corresponding first object frequency group of residing environment includes, more than the Second Threshold.
Alternatively, the device, in addition to:
First receiving module, for receiving the data transfer enabled instruction that the server is issued, the data transfer is opened In dynamic instruction, including:Second target frequency group, wherein, the first object frequency group includes the second target frequency group.
Accordingly, first processing module 1103, specifically for:
It is modulated using the second target frequency group to sent data, generates acoustic signals.
Alternatively, in data transfer enabled instruction, it can also include:Time delay.
Accordingly, the second sending module 1104, specifically for:
After the time delay terminates, the acoustic signals are sent.
Alternatively, it can also include in first data transmission request:
It is described to send the first position information that terminal is currently located.
Alternatively, the device, can also include:
The data to be sent are encrypted by the 3rd processing module.
It should be noted that the foregoing explanation to sound wave communication method embodiment is also applied for the sound wave of the embodiment Communicator, here is omitted.
Acoustic communication device provided in an embodiment of the present invention, it is determined that sending the environment corresponding first that terminal is presently in After audio frequency characteristics and first object frequency group, first data transmission request is sent to server, then the reception server is issued Data transfer enabled instruction, recycles first object frequency group to be modulated to sent data, generates acoustic signals, finally Send acoustic signals.By according to the environment that terminal is presently in is sent, the less low noise frequency of acoustic jamming being determined, to treat Send data to be modulated, and the acoustic signals of generation are sent to receiving terminal, realize transmission terminal and exist with receiving terminal Shaken hands before carrying out acoustic communication, to determine currently available optimal frequency group, reduce the interference noise in acoustic communication, Improve the quality of acoustic communication.
Figure 12 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment.The acoustic communication is filled 1200 are put, the device can be applied in server, can included:
First acquisition module 1201, the first data transmission request that terminal is sent, described first are sent for obtaining first Data transfer request includes corresponding first audio frequency characteristics of environment and first object that the first transmission terminal is presently in Frequency group;
3rd sending module 1202, for sending the matching message of sound wave first, first matching to the first receiving terminal Message includes first audio frequency characteristics and first object frequency;
Specifically, acoustic communication device provided in an embodiment of the present invention, can be provided in an embodiment of the present invention for performing Sound wave communication method, wherein, the device can be configured in any server.
Wherein, audio frequency characteristics, including audio-frequency fingerprint, or, audio power smooth value.
Alternatively, the first position that the described first transmission terminal is currently located also is included in the first data transmission request Information.
Above-mentioned 3rd sending module 1202, specifically for:
The first position information being currently located according to the described first transmission terminal, is obtained and the first position information matches The first receiving terminal mark;
Identified based on first receiving terminal to corresponding first receiving terminal and send the matching message of sound wave first.
Alternatively, in first data transmission request, it can also include:Described first sends the mark of terminal.
Accordingly, the device, can also include:
Second acquisition module, the second data transfer request that terminal is sent, second data are sent for obtaining second Transmission request includes the second audio frequency characteristics, the 3rd target frequency group, the mark of the second transmission terminal and second transmission eventually The 3rd position where end.
First judge module, for judging whether the first position matches with the 3rd position.
Accordingly, if first position and the 3rd location matches, also include in the matching of sound wave first message:First hair Make arrangements for his funeral mark, the second transmission the identifying of terminal, the 3rd target frequency group and second audio frequency characteristics at end.
3rd acquisition module, for obtaining the first confirmation message that first receiving terminal is returned, described first confirms Message includes:Described first sends the mark of terminal, and the first transmission terminal determined according to the first default strategy Corresponding second target frequency group, wherein, the first object frequency group includes the second target frequency group.
4th sending module, data transfer enabled instruction, the data transfer are sent for sending terminal to described first Enabled instruction includes:The second target frequency group.
Optionally, the device, can also include:5th sending module, for sending sound wave first to the second receiving terminal Match message.
4th acquisition module, for obtaining the second confirmation message that second receiving terminal is returned, described second confirms Message includes:Described first sends the mark of terminal, and the first transmission terminal determined according to the first default strategy Corresponding 6th target frequency group, wherein, the first object frequency group includes the 6th target frequency group.
Second judge module, for judging the second target frequency group and the 6th target frequency group, if matching.
Second determining module, when being mismatched for the second target frequency group and the 6th target frequency group, determines the 7th Target frequency group, wherein, the 7th target frequency group is the common factor of the second target frequency group and the 6th target frequency group.
Accordingly, it is described to be sent to described first in the data transfer enabled instruction that terminal is sent, including:7th mesh Mark frequency group.
It should be noted that the foregoing explanation to sound wave communication method embodiment is also applied for the sound wave of the embodiment Communicator, here is omitted.
Acoustic communication device provided in an embodiment of the present invention, please obtaining the first first data transmission for sending terminal transmission After asking, the matching message of sound wave first is sent to the first receiving terminal.Hereby it is achieved that sending terminal, the first receiving terminal and clothes Business device is shaken hands before acoustic communication, to determine optimal communication frequency, is reduced the interference noise in acoustic communication, is improved The quality of acoustic communication.
Figure 13 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment.The acoustic communication is filled 1300 are put, be can be applied in server, can be included:
5th acquisition module 1301, the first data transmission request that terminal is sent, described first are sent for obtaining first Data transfer request includes corresponding first audio frequency characteristics of environment and first object that the first transmission terminal is presently in Frequency group;
6th acquisition module 1302, for obtaining the 3rd data transfer request that the first receiving terminal is sent, the described 3rd Data transfer request includes corresponding 3rd audio frequency characteristics of environment and the 4th target that first receiving terminal is presently in Frequency group;
6th sending module 1303, for it is determined that first audio frequency characteristics matched with the 3rd audio frequency characteristics and When first object frequency group is matched with the 4th target frequency group, terminal and first receiving terminal are sent to described first Send data transfer enabled instruction.
Specifically, acoustic communication device provided in an embodiment of the present invention, can be provided in an embodiment of the present invention for performing Sound wave communication method, wherein, the device can be configured in any server.
Wherein, audio frequency characteristics, including audio-frequency fingerprint, or, audio power smooth value.
Alternatively, the device, in addition to:
3rd determining module, for it is determined that the first audio frequency characteristics are matched and first object with the 3rd audio frequency characteristics When frequency group is mismatched with the 4th target frequency group, the 5th target frequency group is determined, wherein, the 4th target frequency group The 5th target frequency group is included respectively with the first object frequency group;
6th sending module 1303, is additionally operable to send terminal to described first and first receiving terminal is sent, comprising The data transfer enabled instruction of the 5th target frequency group.
In a kind of possible way of realization, first data transmission request includes the where the first transmission terminal One position, the 3rd data transfer request includes the second place where first receiving terminal.
Further, the device, in addition to:
4th determining module, for determining that the second place is matched with the first position.
In alternatively possible way of realization, also include in first data transmission request:Described first sends terminal Mark.
Further, the device, in addition to:
7th acquisition module, the second data transfer request that terminal is sent, second data are sent for obtaining second Transmission request includes corresponding second audio frequency characteristics of environment, the 3rd target frequency that the second transmission terminal is presently in Group, the mark of the second transmission terminal and described second send the 3rd position where terminal.
5th determining module, for it is determined that the first position and the 3rd location matches and the 3rd audio Feature, when being matched respectively with first audio frequency characteristics and second audio frequency characteristics, according to the first default strategy, determines institute The corresponding second target frequency group of the first transmission terminal is stated, wherein, the first object frequency group includes second target frequency Point group.
6th sending module 1303, is additionally operable to:
The second target frequency group is carried in the data transfer enabled instruction, described first is sent to and sends eventually End and first receiving terminal.
In a kind of possible way of realization, the 5th determining module is additionally operable to:According to the second default strategy, institute is determined State the first transmission terminal corresponding time delay;
Further, the 6th sending module 1303, is additionally operable to:
The time delay is carried in the data transfer enabled instruction, be sent to described first send terminal and First receiving terminal.
It should be noted that the foregoing explanation to sound wave communication method embodiment is also applied for the sound wave of the embodiment Communicator, here is omitted.
Acoustic communication device provided in an embodiment of the present invention, obtains first and sends the first data transmission that terminal is sent first Request, and the 3rd data transfer request that the first receiving terminal is sent, then it is determined that the first audio frequency characteristics and the 3rd audio are special Levy matching and first object frequency group with the 4th target frequency group when match, to the first transmission terminal and the first receiving terminal hair Send data transfer enabled instruction.Held hereby it is achieved that sending terminal, the first receiving terminal and server before acoustic communication Hand, to determine optimal communication frequency, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.
Figure 14 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment.The acoustic communication is filled 1400 are put, the device can be applied in receiving terminal, can included:
8th acquisition module 1401, the acoustic signals that terminal is sent are sent for obtaining;
Fourth processing module 1402, for the environment the corresponding 3rd being presently according to the receiving terminal determined Audio frequency characteristics, and the sound wave matching message received from server carry out information matches;
5th processing module 1403, for when the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics, according to The first object frequency group, to being parsed from the acoustic signals for sending terminal acquisition.
Specifically, acoustic communication device provided in an embodiment of the present invention, can be provided in an embodiment of the present invention for performing Sound wave communication method, wherein, the device can be configured in any terminal, such as mobile phone, computer.
Wherein, audio frequency characteristics, including audio-frequency fingerprint, or, audio power smooth value.
Alternatively, the device, in addition to:
6th determining module, for determining the corresponding 4th target frequency group of environment that the receiving terminal is presently in.
7th determining module, if being mismatched for the 4th target frequency group and the first object frequency group, really Fixed 5th target frequency group, wherein, the 4th target frequency group includes the 5th mesh with the first object frequency group Mark frequency group.
7th sending module, for returning to the confirmation message for including the 5th target frequency group to the server.
In a kind of possible way of realization, also include in sound wave matching message:First sends the mark of terminal, the second hair The corresponding 3rd target frequency group of environment and the second audio frequency characteristics that the mark at end, the second transmission terminal of making arrangements for his funeral are presently in.
Further, device, in addition to:
8th determining module, for determining the 3rd audio frequency characteristics, respectively with second audio frequency characteristics and the first sound Frequency characteristic matching and the 4th target frequency group, respectively with the first object frequency group and the 3rd target frequency group During matching, according to the first default strategy, determine that described first sends the corresponding second target frequency group of terminal, wherein, it is described First object frequency group includes the second target frequency group.
Further, the 7th sending module, be additionally operable to the server return include the second target frequency group and Described first sends the confirmation message of the mark of terminal.
In a kind of possible way of realization, the 8th determining module is additionally operable to according to the second default strategy, it is determined that described First sends terminal corresponding time delay;
Accordingly, the 7th sending module, is additionally operable to:
The confirmation message for the mark for including the time delay and the first transmission terminal is returned to the server.
In alternatively possible way of realization, the device also includes:
6th processing module, for processing to be decrypted to the data that parsing is obtained.
It should be noted that the foregoing explanation to sound wave communication method embodiment is also applied for the sound wave of the embodiment Communicator, here is omitted.
Acoustic communication device provided in an embodiment of the present invention, obtains send the acoustic signals that terminal is sent first, Ran Hougen Corresponding 3rd audio frequency characteristics of environment being presently according to the receiving terminal determined, and the sound wave matching received from server disappear Breath carries out information matches, then when the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics, it is right according to first object frequency group Acoustic signals are parsed.Thus, by get send terminal send acoustic signals after, using according to send terminal and The environment that receiving terminal is presently in, it is determined that the less low noise frequency of acoustic jamming, the acoustic signals received are solved Analysis, realizes and is shaken hands between transmission terminal and receiving terminal before acoustic communication, to determine currently available optimal frequency group, subtracted Lack the interference noise in acoustic communication, improve the quality of acoustic communication.
Figure 15 is a kind of structured flowchart of acoustic communication device according to an exemplary embodiment.The acoustic communication is filled 1500 are put, the device can apply in receiving terminal, can included:
8th sending module 1501, for sending the 3rd data transfer request to server, the 3rd data transfer please Seek corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group for including that the receiving terminal is presently in;
9th acquisition module 1502, the acoustic signals that terminal is sent are sent for obtaining;
7th processing module 1503, for according to the 4th target frequency group, being parsed to the acoustic signals.
Specifically, acoustic communication device provided in an embodiment of the present invention, can be provided in an embodiment of the present invention for performing Sound wave communication method, wherein, the device can be configured in any terminal, such as mobile phone, computer.
Wherein, audio frequency characteristics, including audio-frequency fingerprint, or, audio power smooth value.
Alternatively, the device, in addition to:
Second receiving module, for receiving the data transfer enabled instruction that the server is sent, the data transfer is opened Dynamic instruction includes:Second target frequency group;
Accordingly, above-mentioned 7th processing module 1503, specifically for:
According to the second target frequency group, the acoustic signals are parsed;
Or, the data transfer enabled instruction includes:Time delay;
7th processing module 1503, specifically for:
After the time delay terminates, the acoustic signals for sending terminal transmission are obtained.
It should be noted that the foregoing explanation to sound wave communication method embodiment is also applied for the sound wave of the embodiment Communicator, here is omitted.
Acoustic communication device provided in an embodiment of the present invention, sends the 3rd data transfer request to server first and then connects The data transfer enabled instruction that server is sent is received, after the acoustic signals for sending terminal transmission are obtained, according to the 4th target frequency Acoustic signals are parsed by point group.Thus, by after the acoustic signals for sending terminal transmission are got, using according to hair Make arrangements for his funeral end and the environment that is presently in of receiving terminal, it is determined that the less low noise frequency of acoustic jamming, the sound wave received is believed Number parsed, realize and shaken hands between transmission terminal and receiving terminal before acoustic communication, it is currently available optimal to determine Frequency group, reduces the interference noise in acoustic communication, improves the quality of acoustic communication.
Figure 16 is the hardware environment figure of transmission terminal according to an exemplary embodiment, server and receiving terminal.
As shown in figure 16, send terminal 1601, server 1602 and receiving terminal 1603 includes processor and storage respectively Device, wherein, be stored with the computer program that can be run on a processor in memory.In addition, sending terminal 1601 also includes raising Sound device and microphone, receiving terminal 1603 also include microphone.
When implementing, send the microphone in terminal 1601 gather first its voice signal in the environment;Then Processor is parsed to voice signal, it is determined that corresponding first audio frequency characteristics of the environment being presently in and first object frequency Group, then sends first data transmission request to server again, wherein, first data transmission request includes the first audio frequency characteristics And first object frequency group.
Server 1602 is after first data transmission request is got, you can sends sound wave matching to receiving terminal 1603 and disappears Breath, wherein, matching message includes the first audio frequency characteristics and first object frequency group.
Receiving terminal 1603 is received after sound wave matching message, it is possible to use microphone gather its sound in the environment Signal, and voice signal is parsed using processor, it is determined that corresponding 3rd audio frequency characteristics of the environment being presently in and Four target frequency groups, and then according to the 3rd audio frequency characteristics, the 4th target frequency group and the first audio frequency characteristics and first object frequency Group, carries out information matches.
It should be noted that server sends the process that sound wave matches message to receiving terminal, and receiving terminal collection is worked as Voice signal in preceding residing environment, and the process of the 3rd audio frequency characteristics and the 4th target frequency group is determined, can also be simultaneously Carry out, or first carry out step 5, then perform step 4, be not restricted herein.
, can be to server 1602 when receiving terminal 1603 determines the 3rd audio frequency characteristics and the first audio frequency characteristics the match is successful Confirmation message is returned to, server 1602 is received can send number after confirmation message to transmission terminal 1601 and receiving terminal 1603 Instructed (not shown in Figure 11) according to transmission start.
Terminal 1601 is sent to receive after data transfer enabled instruction, can be by using first object frequency group to pending The data sent are modulated, and generate acoustic signals, and the acoustic signals after modulation are sent into receiving terminal by loudspeaker.
Receiving terminal 1603 is received by microphone to be sent after the acoustic signals that terminal is sent, you can according to first object Acoustic signals are parsed by frequency group.
In the exemplary embodiment, a kind of transmission terminal is additionally provided, including:
On a memory and the computer program that can run on a processor, processor is held for memory, processor and storage The sound wave communication method as described in above-mentioned embodiment one and embodiment two is realized during row described program.
In the exemplary embodiment, a kind of server is additionally provided, including:
On a memory and the computer program that can run on a processor, processor is held for memory, processor and storage The sound wave communication method as described in above-mentioned embodiment three and example IV is realized during row described program.
In the exemplary embodiment, a kind of receiving terminal is additionally provided, including:
On a memory and the computer program that can run on a processor, processor is held for memory, processor and storage The sound wave communication method as described in above-mentioned embodiment five and embodiment six is realized during row described program.
In the exemplary embodiment, a kind of computer-readable recording medium is additionally provided, computer program is stored thereon with, The sound wave communication method as described in embodiment one and embodiment two is realized when the program is executed by processor.
In the exemplary embodiment, a kind of computer-readable recording medium is additionally provided, computer program is stored thereon with, The sound wave communication method as described in embodiment three and example IV is realized when the program is executed by processor.
In the exemplary embodiment, a kind of computer-readable recording medium is additionally provided, computer program is stored thereon with, The sound wave communication method as described in embodiment five and embodiment six is realized when the program is executed by processor.
In the exemplary embodiment, a kind of computer program product is additionally provided, when in the computer program product When instruction processing unit is performed, the sound wave communication method as described in embodiment one and embodiment two is performed.
In the exemplary embodiment, a kind of computer program product is additionally provided, when in the computer program product When instruction processing unit is performed, the sound wave communication method as described in embodiment three and example IV is performed.
In the exemplary embodiment, a kind of computer program product is additionally provided, when in the computer program product When instruction processing unit is performed, the sound wave communication method as described in embodiment five and embodiment six is performed.
Those skilled in the art will readily occur to its of the present invention after the invention that specification and practice are invented here is considered Its embodiment.It is contemplated that cover the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and the common knowledge in the art do not invented including the present invention Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (27)

1. a kind of sound wave communication method, applied to transmission terminal, it is characterised in that methods described includes:
Determine corresponding first audio frequency characteristics of environment that are presently in of transmission terminal and first object frequency group;
Send first data transmission request to server, first data transmission request include first audio frequency characteristics and First object frequency group;
It is modulated using the first object frequency group to sent data, generates acoustic signals;
Send the acoustic signals.
2. according to the method described in claim 1, it is characterised in that described to determine the environment pair that the transmission terminal is presently in The first object frequency group answered, including:
Voice signal in the environment being presently in the transmission terminal is parsed, and determines each frequency in the voice signal Make an uproar at corresponding bottom;
When the bottom of any one frequency in the voice signal is made an uproar less than first threshold, bottom is made an uproar less than the frequency of first threshold, Add first object frequency group.
3. according to the method described in claim 1, it is characterised in that described to ask it to server transmission first data transmission Before, in addition to:
When the frequency sum that the first object frequency group includes is less than Second Threshold, resurveys the transmission terminal and work as Voice signal in preceding residing environment, parses the voice signal, until determining corresponding first mesh of environment being presently in The frequency quantity that mark frequency group includes, more than the Second Threshold.
4. method according to claim 2, it is characterised in that described that bottom is made an uproar less than the frequency of first threshold, the is added Before one target frequency group, in addition to:
Determine that bottom is made an uproar less than the frequency of first threshold, corresponding bottom is made an uproar difference value;
It is described that bottom is made an uproar less than the frequency of first threshold, first object frequency group is added, including:
The bottom is made an uproar and is less than the frequency of the 3rd threshold value less than first threshold and bottom difference value of making an uproar, first object frequency group is added;
Or,
Determine that the bottom of each frequency in the voice signal is made an uproar the factor, the factor is made an uproar for the bottom of each frequency wherein the bottom is made an uproar and bottom is made an uproar difference The product of score value;
By the bottom make an uproar the factor be less than the 4th threshold value frequency, add first object frequency group.
5. according to any described methods of claim 1-4, it is characterised in that also include:
The data transfer enabled instruction that the server is issued is received, in the data transfer enabled instruction, including:Second target Frequency group, wherein, the first object frequency group includes the second target frequency group;
It is described to be modulated using the first object frequency group to sent data, acoustic signals are generated, including:
It is modulated using the second target frequency group to sent data, generates acoustic signals.
6. according to any described methods of claim 1-4, it is characterised in that in the data transfer enabled instruction, including:Prolong The slow time;
The transmission acoustic signals, including:
After the time delay terminates, the acoustic signals are sent.
7. according to any described methods of claim 1-4, it is characterised in that also include in the first data transmission request:
It is described to send the first position information that terminal is currently located.
8. according to any described methods of claim 1-4, it is characterised in that described to be treated using the first object frequency group The data of transmission are modulated, before generation acoustic signals, in addition to:
The data to be sent are encrypted.
9. a kind of sound wave communication method, applied to server, it is characterised in that methods described includes:
Obtain first and send the first data transmission request that terminal is sent, the first data transmission request includes described first Send corresponding first audio frequency characteristics of environment and first object frequency group that terminal is presently in;
The matching message of sound wave first is sent to the first receiving terminal, the first matching message includes first audio frequency characteristics And first object frequency.
10. method according to claim 9, it is characterised in that also include described the in the first data transmission request The first position information that one transmission terminal is currently located;
It is described to include to the first receiving terminal transmission matching of sound wave first message:
According to the described first first position information for being currently located of transmission terminal, the with the first position information matches is obtained One receiving terminal is identified;
Identified based on first receiving terminal to corresponding first receiving terminal and send the matching message of sound wave first.
11. method according to claim 10, it is characterised in that in the first data transmission request, in addition to:It is described First sends the mark of terminal;
Methods described, in addition to:
Obtain second and send the second data transfer request that terminal is sent, second data transfer request includes the second audio Feature, the 3rd target frequency group, the mark of the second transmission terminal and described second send the 3rd position where terminal;
Before the transmission matching message of sound wave first to the first receiving terminal, in addition to:
Judge whether the first position matches with the 3rd position;
If matching, also include in the matching of sound wave first message:First sends the mark of terminal, the mark of the second transmission terminal Knowledge, the 3rd target frequency group and second audio frequency characteristics;
Methods described also includes:
The first confirmation message that first receiving terminal is returned is obtained, first confirmation message includes:First hair Make arrangements for his funeral the mark at end, and described first the corresponding second target frequency group of terminal sent according to what the first default strategy was determined, Wherein, the first object frequency group includes the second target frequency group;
Terminal is sent to described first and sends data transfer enabled instruction, and the data transfer enabled instruction includes:Described Two target frequency groups.
12. method according to claim 11, it is characterised in that also include:
The matching message of sound wave first is sent to the second receiving terminal;
The second confirmation message that second receiving terminal is returned is obtained, second confirmation message includes:First hair Make arrangements for his funeral the mark at end, and described first the corresponding 6th target frequency group of terminal sent according to what the first default strategy was determined, Wherein, the first object frequency group includes the 6th target frequency group;
Judge the second target frequency group and the 6th target frequency group, if matching;
If mismatching, it is determined that the 7th target frequency group, wherein, the 7th target frequency group is the second target frequency group and the The common factor of six target frequency groups;
It is described to be sent to described first in the data transfer enabled instruction that terminal is sent, including:The 7th target frequency group.
13. a kind of sound wave communication method, applied to server, it is characterised in that methods described includes:
Obtain first and send the first data transmission request that terminal is sent, the first data transmission request includes described first Send corresponding first audio frequency characteristics of environment and first object frequency group that terminal is presently in;
The 3rd data transfer request of the first receiving terminal transmission is obtained, the 3rd data transfer request includes described first Corresponding 3rd audio frequency characteristics of environment and the 4th target frequency group that receiving terminal is presently in;
It is determined that first audio frequency characteristics are matched and first object frequency group and the 4th mesh with the 3rd audio frequency characteristics When marking the matching of frequency group, send terminal to described first and first receiving terminal sends data transfer enabled instruction.
14. method according to claim 13, it is characterised in that also include:
It is determined that the first audio frequency characteristics are matched and first object frequency group and the 4th target frequency with the 3rd audio frequency characteristics When point group is mismatched, the 5th target frequency group is determined, wherein, the 4th target frequency group and the first object frequency component Bao Han not the 5th target frequency group;
Terminal is sent to described first and first receiving terminal is sent, and includes the data transfer of the 5th target frequency group Enabled instruction.
15. the method according to claim 13 or 14, it is characterised in that the first data transmission request includes described First sends the first position where terminal, and the 3rd data transfer request includes the where first receiving terminal Two positions;
Before determination first audio frequency characteristics are matched with the 3rd audio frequency characteristics, in addition to:
Determine that the second place is matched with the first position.
16. method according to claim 15, it is characterised in that also include in the first data transmission request:It is described First sends the mark of terminal;
Methods described, in addition to:
Obtain second and send the second data transfer request that terminal is sent, second data transfer request includes described second Send corresponding second audio frequency characteristics of environment, the 3rd target frequency group, the mark of the second transmission terminal that terminal is presently in The 3rd position where knowledge and the second transmission terminal;
It is determined that the first position and the 3rd location matches and the 3rd audio frequency characteristics, respectively with first sound When frequency feature and second audio frequency characteristics matching, according to the first default strategy, determine that the first transmission terminal is corresponding Second target frequency group, wherein, the first object frequency group includes the second target frequency group;
It is described to send terminal and first receiving terminal transmission data transfer enabled instruction to described first, including:
By the second target frequency group carry in the data transfer enabled instruction, be sent to it is described first send terminal and First receiving terminal.
17. method according to claim 16, it is characterised in that described it is determined that the first position and described 3rd Matching and the 3rd audio frequency characteristics are put, after being matched respectively with first audio frequency characteristics and second audio frequency characteristics, also Including:
According to the second default strategy, determine that described first sends terminal corresponding time delay;
It is described to send terminal and first receiving terminal transmission data transfer enabled instruction to described first, including:
The time delay is carried in the data transfer enabled instruction, be sent to described first and send terminal and described First receiving terminal.
18. a kind of sound wave communication method, applied to receiving terminal, it is characterised in that methods described includes:
Obtain and send the acoustic signals that terminal is sent;
Corresponding 3rd audio frequency characteristics of environment that the receiving terminal according to determining is presently in, and received from server Sound wave matching message carries out information matches;
When the match is successful for the 3rd audio frequency characteristics and the first audio frequency characteristics, according to the first object frequency group, to described Acoustic signals are parsed.
19. method according to claim 18, it is characterised in that methods described also includes:
Determine the corresponding 4th target frequency group of environment that the receiving terminal is presently in;
If the 4th target frequency group is mismatched with the first object frequency group, it is determined that the 5th target frequency group, wherein, The 4th target frequency group includes the 5th target frequency group with the first object frequency group;
The confirmation message for including the 5th target frequency group is returned to the server.
20. method according to claim 18, it is characterised in that the sound wave matching message includes:First sends eventually The mark at end, the mark of the second transmission terminal, the second corresponding 3rd target frequency group of environment for being presently in of transmission terminal and Second audio frequency characteristics;
Methods described, in addition to:
The 3rd audio frequency characteristics are determined, are matched respectively with second audio frequency characteristics and the first audio frequency characteristics and the described 4th Target frequency group, it is default according to first when being matched respectively with the first object frequency group and the 3rd target frequency group Strategy, determines that described first sends the corresponding second target frequency group of terminal, wherein, the first object frequency group includes described Second target frequency group;
The confirmation message for the mark for including the second target frequency group and the first transmission terminal is returned to the server.
21. method according to claim 20, it is characterised in that determination the 3rd audio frequency characteristics, respectively with institute The second audio frequency characteristics and the matching of the first audio frequency characteristics and the 4th target frequency group are stated, respectively with the first object frequency After group and the 3rd target frequency group matching, in addition to:
According to the second default strategy, determine that described first sends terminal corresponding time delay;
It is described to return to confirmation message to the server, including:
The confirmation message for the mark for including the time delay and the first transmission terminal is returned to the server.
22. according to any described methods of claim 18-21, it is characterised in that described according to the first object frequency group, After being parsed to the acoustic signals, in addition to:
Processing is decrypted to the data that parsing is obtained.
23. a kind of sound wave communication method, applied to receiving terminal, it is characterised in that methods described includes:
The 3rd data transfer request is sent to server, the 3rd data transfer request includes the current institute of the receiving terminal Corresponding 3rd audio frequency characteristics of environment at place and the 4th target frequency group;
Obtain and send the acoustic signals that terminal is sent;
According to the 4th target frequency group, the acoustic signals are parsed.
24. method according to claim 23, it is characterised in that the acquisition send acoustic signals that terminal sends it Before, in addition to:
The data transfer enabled instruction that the server is sent is received, the data transfer enabled instruction includes:Second target Frequency group;
It is described that the acoustic signals are parsed, including:
According to the second target frequency group, the acoustic signals are parsed;
Or, the data transfer enabled instruction includes:Time delay;
Described obtain sends the acoustic signals that terminal is sent, including:
After the time delay terminates, the acoustic signals for sending terminal transmission are obtained.
25. one kind sends terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realize that the sound wave as described in claim 1-8 is any leads to when the computing device described program Letter method.
26. a kind of server, including memory, processor and storage are on a memory and the computer that can run on a processor Program, it is characterised in that realize that the sound wave as described in claim 9-17 is any leads to when the computing device described program Letter method.
27. a kind of receiving terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that the sound wave as described in claim 18-24 is any is realized when the computing device described program Communication means.
CN201710277405.3A 2017-04-25 2017-04-25 Sound wave communication method, terminal and server Active CN107124230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710277405.3A CN107124230B (en) 2017-04-25 2017-04-25 Sound wave communication method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710277405.3A CN107124230B (en) 2017-04-25 2017-04-25 Sound wave communication method, terminal and server

Publications (2)

Publication Number Publication Date
CN107124230A true CN107124230A (en) 2017-09-01
CN107124230B CN107124230B (en) 2018-09-04

Family

ID=59726455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710277405.3A Active CN107124230B (en) 2017-04-25 2017-04-25 Sound wave communication method, terminal and server

Country Status (1)

Country Link
CN (1) CN107124230B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592164A (en) * 2017-09-26 2018-01-16 深圳市亿联智能有限公司 A kind of low-frequency range acoustic communication data transfer anti-interference coding algorithm
CN109981721A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Information-pushing method, device and computer readable storage medium
CN110168636A (en) * 2017-12-08 2019-08-23 谷歌有限责任公司 Detection to duplicate transmission of packetized data
CN110784294A (en) * 2019-09-20 2020-02-11 浙江大华技术股份有限公司 Background sound self-adaptive sound wave distribution network method, system, equipment and storage medium
CN110958484A (en) * 2019-12-13 2020-04-03 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN112087265A (en) * 2019-06-12 2020-12-15 腾讯科技(深圳)有限公司 Acoustic wave communication method and apparatus
CN115996242A (en) * 2023-03-23 2023-04-21 东北大学秦皇岛分校 Acoustic wave layered pushing and identifying device and acoustic wave management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101700A (en) * 2006-07-06 2008-01-09 中国船舶重工集团公司第七一五研究所 Underwater sound communications and alarming method and device
WO2011078458A1 (en) * 2009-12-21 2011-06-30 에스케이 텔레콤주식회사 Data receiving error reduction system and method in audio frequency band sound communication, and device applied thereto
CN102812651A (en) * 2010-03-26 2012-12-05 飞路得新思探有限公司 Sending device
CN204009060U (en) * 2014-01-28 2014-12-10 北京印声科技有限公司 A kind of ultrasonic positioner
CN104868956A (en) * 2015-04-14 2015-08-26 陈景竑 Sound wave channel based data communication method
CN105187133A (en) * 2015-09-30 2015-12-23 常州机电职业技术学院 Carrier frequency self-adaptive underwater communication method and device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101700A (en) * 2006-07-06 2008-01-09 中国船舶重工集团公司第七一五研究所 Underwater sound communications and alarming method and device
WO2011078458A1 (en) * 2009-12-21 2011-06-30 에스케이 텔레콤주식회사 Data receiving error reduction system and method in audio frequency band sound communication, and device applied thereto
CN102812651A (en) * 2010-03-26 2012-12-05 飞路得新思探有限公司 Sending device
CN204009060U (en) * 2014-01-28 2014-12-10 北京印声科技有限公司 A kind of ultrasonic positioner
CN104868956A (en) * 2015-04-14 2015-08-26 陈景竑 Sound wave channel based data communication method
CN105187133A (en) * 2015-09-30 2015-12-23 常州机电职业技术学院 Carrier frequency self-adaptive underwater communication method and device thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592164A (en) * 2017-09-26 2018-01-16 深圳市亿联智能有限公司 A kind of low-frequency range acoustic communication data transfer anti-interference coding algorithm
CN107592164B (en) * 2017-09-26 2021-05-18 深圳市亿联智能有限公司 Anti-interference encoding method for low-frequency-band sound wave communication data transmission
CN110168636A (en) * 2017-12-08 2019-08-23 谷歌有限责任公司 Detection to duplicate transmission of packetized data
US11798555B2 (en) 2017-12-08 2023-10-24 Google Llc Detection of duplicate packetized data for selective transmission into one of a plurality of a user's devices
CN110168636B (en) * 2017-12-08 2023-08-01 谷歌有限责任公司 Detection of duplicate packetized data transmissions
CN109981721A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Information-pushing method, device and computer readable storage medium
CN112087265B (en) * 2019-06-12 2022-07-19 腾讯科技(深圳)有限公司 Sound wave communication method, sound wave communication apparatus, electronic device and computer program medium
CN112087265A (en) * 2019-06-12 2020-12-15 腾讯科技(深圳)有限公司 Acoustic wave communication method and apparatus
CN110784294A (en) * 2019-09-20 2020-02-11 浙江大华技术股份有限公司 Background sound self-adaptive sound wave distribution network method, system, equipment and storage medium
CN110784294B (en) * 2019-09-20 2023-01-03 浙江大华技术股份有限公司 Background sound self-adaptive sound wave distribution network method, system, equipment and storage medium
CN110958484B (en) * 2019-12-13 2021-12-07 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN110958484A (en) * 2019-12-13 2020-04-03 深圳市爱图仕影像器材有限公司 Audio data transmitting and receiving method and device, audio data transmission system and storage medium
CN115996242A (en) * 2023-03-23 2023-04-21 东北大学秦皇岛分校 Acoustic wave layered pushing and identifying device and acoustic wave management method
CN115996242B (en) * 2023-03-23 2023-08-29 东北大学秦皇岛分校 Acoustic wave layered pushing and identifying device and acoustic wave management method

Also Published As

Publication number Publication date
CN107124230B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN107124230B (en) Sound wave communication method, terminal and server
CN110288997A (en) Equipment awakening method and system for acoustics networking
CN109378006B (en) Cross-device voiceprint recognition method and system
CN110178179A (en) Voice signature for being authenticated to electronic device user
WO2007019446A2 (en) Secure telerehabilitation system and method
CN110782962A (en) Hearing language rehabilitation device, method, electronic equipment and storage medium
JP2019536070A (en) User positioning method, information push method, and related apparatus
CN108766438A (en) Man-machine interaction method, device, storage medium and intelligent terminal
CN106463120B (en) Method and device for identifying or authenticating people and/or objects through dynamic acoustic safety information
CN110213612A (en) Living broadcast interactive method, apparatus and storage medium
CN110941415B (en) Audio file processing method and device, electronic equipment and storage medium
CN107665703A (en) The audio synthetic method and system and remote server of a kind of multi-user
CN108495248A (en) Localization method, device, audio-frequence player device and storage medium
CN111931835A (en) Image identification method, device and system
CN108512986A (en) Auth method, electronic device and computer readable storage medium
CN111356117A (en) Voice interaction method and Bluetooth device
CN107911424A (en) A kind of read-on-command function interacted with client realizes system, method and intelligent watch
CN102508475A (en) Remote control method and remote control system
JP2001337923A (en) Personal identification information communication method, storage medium, program processor, portable radio system, reception side communication device, and communication system
CN106384586A (en) Method and device for reading text information
CN108513249A (en) Localization method, device, audio-frequence player device and storage medium
US11069363B2 (en) Methods, systems and apparatus for managing voice-based commands
CN107566884A (en) A kind of connection method, service end and terminal
CN107704230A (en) A kind of wheat sequence controlling method and control device
CN109167749A (en) A kind of identity identifying method and device

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