CN105337670B - The method and device thereof of wireless acoustic communication - Google Patents
The method and device thereof of wireless acoustic communication Download PDFInfo
- Publication number
- CN105337670B CN105337670B CN201410399730.3A CN201410399730A CN105337670B CN 105337670 B CN105337670 B CN 105337670B CN 201410399730 A CN201410399730 A CN 201410399730A CN 105337670 B CN105337670 B CN 105337670B
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- symbol
- communication
- value
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
This application discloses the method and device thereof of wireless acoustic communication, wherein, the described method includes: sending terminal obtains the pilot data of the first preset length, the lead data of the second preset length, the synchronous code and load data of third preset length, wherein, the pilot data is the data lower than preset threshold, for indicating the starting of communication data, for determining intersymbol boundary in load data, whether the synchronous code is used to verify the intersymbol boundary determined according to the lead data correct the lead data;The pilot data, lead data, synchronous code and load data are modulated into acoustic signals;The acoustic signals for being loaded with pilot data, lead data, synchronous code and load data respectively are sent to reception terminal.By the above-mentioned means, the application can be improved the validity of the load data of wireless acoustic communication.
Description
Technical field
This application involves wireless communication technology fields, more particularly to the method and device thereof of wireless acoustic communication.
Background technique
The communication generallyd use between mobile terminal such as mobile phone, tablet computer at present has two kinds of bluetooth, WIFI, on
It states both of which needs and separately configures bluetooth module, WIFI module on hardware.Therefore the prior art also provides a kind of side wireless communication
Acoustic communication is carried out by the microphone and loudspeaker of mobile terminal itself likes:.
However, since the frequency range of sound wave is 20Hz~20KHz, wireless acoustic communication narrow bandwidth is easy by the external world
Noise jamming causes the load data of wireless acoustic communication to be easy error.
Summary of the invention
The application can be improved wireless mainly solving the technical problems that provide the method and device thereof of wireless acoustic communication
The validity of the load data of acoustic communication.
In order to solve the above technical problems, the application first aspect provides a kind of method of wireless acoustic communication, comprising: send
Terminal obtain the pilot data of the first preset length, the lead data of the second preset length, the synchronous code of third preset length, with
And load data, wherein the pilot data is the data lower than preset threshold, described for indicating the starting of communication data
For determining intersymbol boundary in load data, the synchronous code is determined for verifying according to the lead data lead data
Intersymbol boundary it is whether correct;The pilot data, lead data, synchronous code and load data are modulated into acoustic signals;
The acoustic signals for being loaded with pilot data, lead data, synchronous code and load data respectively are sent to reception terminal.
Wherein, further includes: the check code of the 4th preset length is generated according to the load data, and by the check code tune
Acoustic signals are made;It is described to send the acoustic signals for being loaded with pilot data, lead data, synchronous code and load data respectively
It include: that will be loaded with pilot data, lead data, synchronous code, load data and check code respectively to the step of receiving terminal
Acoustic signals are sent to reception terminal.
Wherein, further includes: send configuration acoustic signals to the reception terminal, wherein the configuration acoustic signals include
The optimal communication band information for sending terminal, so that the reception terminal configures certainly according to the optimal communication band information
The communications band of body;Receive the sound wave comprising the reception configured communications band information of terminal of the reception terminal feedback
Signal, and optimal communication frequency range is arranged according to the configured communications band of the reception terminal.
Wherein, the communications band for sending terminal and receiving terminal is between 2KHz-6KHz.
In order to solve the above technical problems, the application second aspect provides a kind of method of wireless acoustic communication, comprising: receive
Whether the acoustic signals that end-on receives are demodulated to obtain solution adjusting data, detect default comprising first in the solution adjusting data
Length and be lower than preset threshold pilot data;If comprising, it is determined that from the pilot data originate solution adjusting data be
Communication data, and the lead data of the second preset length is obtained from the communication data, it detects to accord in the lead data
Boundary between number;The synchronous code that third preset length is obtained from the communication data, according to the intersymbol boundary by institute
It states synchronous code and is divided into multiple symbols, whether judge the value of each symbol of synchronous code value of symbol corresponding with pre-determined synchronization code
It is identical;If it is, determining that the intersymbol boundary is the character boundary in load data, and obtained from the communication data
Load data is taken, each symbol in the load data is distinguished according to the character boundary, to realize to the load data
Parsing.
Wherein, the step of intersymbol boundary detected in the lead data includes: to the lead data
Each symbol carries out n times sampling, and the absolute value of the n-th sampled value of each symbol adds up respectively, obtains n-th of He, wherein n
It is followed successively by 1 integer value for arriving N, N is the integer greater than 1, the N number of and middle minimum and corresponding m sampled point conduct acquired
The intersymbol boundary of lead data, the m are 1 to any one integer between M;It is described according to the intersymbol boundary
The synchronous code is divided into multiple symbols, judge the value of each symbol of the synchronous code and pre-determined synchronization code sign value whether phase
Same step includes: to be sampled with the sampling period identical with the lead data to the synchronous code, every the m
Sampled point divides a symbol, according in each symbol near p intermediate sampled value and determine that value of symbol is 0 or 1, and
Judge whether each value of symbol of synchronous code value of symbol corresponding with pre-determined synchronization code is identical, wherein p is less than or equal to m
Integer.
Wherein, further includes: the configuration acoustic signals sent to the transmission terminal are received, according to the optimal communication frequency range
The communications band of information configuration itself, wherein the configuration acoustic signals include the optimal communication frequency range letter for sending terminal
Breath;To it is described transmission terminal feedback include configured communications band information acoustic signals so that the transmission terminal according to
It receives terminal configured communications band and optimal communication frequency range is set.
Wherein, the communications band for sending terminal and receiving terminal is between 2KHz-6KHz.
In order to solve the above technical problems, the application third aspect provides a kind of transmission terminal, including obtain module, modulation mould
Block and sending module;The number of derivatives for obtaining module and being used to obtain the pilot data of the first preset length, the second preset length
According to, the synchronous code of third preset length and load data, and it is sent to the modulation module, wherein the pilot data is
Lower than the data of preset threshold, for indicating the starting of communication data, the lead data is for determining symbol in load data
Between boundary, the synchronous code be used for verify according to the lead data determination intersymbol boundary it is whether correct;The modulation
Module is used to the pilot data, lead data, synchronous code and load data being modulated into acoustic signals, and is sent to the hair
Send module;The sending module is used to be loaded with the sound wave letter of pilot data, lead data, synchronous code and load data respectively
Number it is sent to reception terminal.
In order to solve the above technical problems, the application fourth aspect provides a kind of reception terminal, including demodulation module, the first inspection
Survey module, the second detection module, judgment module and discriminating module;The demodulation module is used to carry out the acoustic signals received
Demodulation obtains solution adjusting data, and the solution adjusting data is sent to the first detection module;The first detection module is used for
Whether include first preset length and lower than preset threshold pilot data, and first is detected if detecting in the solution adjusting data
As a result it is sent to second detection module;Second detection module is used in the solution adjusting data comprising the first default length
When pilot data that is spending and being lower than preset threshold, determine that the solution adjusting data originated from the pilot data is communication data, and
The lead data that the second preset length is obtained from the communication data detects intersymbol boundary in the lead data,
And the intersymbol boundary is sent to the judgment module;The judgment module is for obtaining third from the communication data
The synchronous code is divided into multiple symbols according to the intersymbol boundary, judges the synchronization by the synchronous code of preset length
Whether the value value of symbol corresponding with pre-determined synchronization code of each symbol of code is identical, and the judging result is sent to the differentiation
Module;The discriminating module is used for when the value value of symbol corresponding with pre-determined synchronization code of each symbol of the synchronous code is identical,
It determines that the intersymbol boundary is the character boundary in load data, and obtains load data, root from the communication data
Each symbol in the load data is distinguished according to the character boundary, to realize the parsing to the load data.
It is different from the prior art, the starting that the application is communicated by sending pilot data prompt, and according to the number of derivatives
According to the character boundary for determining load data with synchronous code, the accuracy that the symbol of proof load data is distinguished, and then improve negative
Carry the validity of data.
Detailed description of the invention
Fig. 1 is the flow chart of one embodiment of method of the wireless acoustic communication of the application;
Fig. 2 is the flow chart of another embodiment of method of the wireless acoustic communication of the application;
Fig. 3 is the flow chart of the method a further embodiment of the wireless acoustic communication of the application;
Fig. 4 is the method for the wireless acoustic communication of the application and the flow chart of a further embodiment;
Fig. 5 is the structural schematic diagram that the application sends one embodiment of terminal;
Fig. 6 is the structural schematic diagram that the application receives one embodiment of terminal.
Specific embodiment
It is illustrated with reference to the accompanying drawing with specific embodiment.
Referring to Fig. 1, Fig. 1 is the flow chart of one embodiment of method of the wireless acoustic communication of the application.Present embodiment
In, it sends terminal and receives terminal by wireless acoustic communication, sound wave letter is generated by the loudspeaker of itself for example, sending terminal
Number, it receives terminal and carries out acoustic communication in such a way that microphone receives acoustic signals.Specifically, method includes the following steps:
S101: it is pre- that the terminal acquisition pilot data of the first preset length, the lead data of the second preset length, third are sent
If the synchronous code and load data of length, wherein the pilot data is the data lower than preset threshold, for indicating logical
The starting of letter data, the lead data is for determining intersymbol boundary in load data, and the synchronous code is for verifying root
Whether the intersymbol boundary determined according to the lead data is correct.
The application sends terminal and carries out the data frame of wireless acoustic communication by the pilot tone of the first preset length with receiving terminal
Data, the lead data of the second preset length, the synchronous code of third preset length and load data are constituted.For example, when sending
When terminal needs to carry the load data of information to reception terminal transmission, the pilot number that terminal generates the first preset length is sent
According to, the lead data of the second preset length, the synchronous code of third preset length.Wherein, the pilot data, lead data, same
Walk code, load data is logical data.Generally, the first, second preset length is 8-16 symbol lengths, and preferably 8 accord with
Number length, third preset length is preferably 8 symbol lengths.Certainly, the first, second, third preset length is not limited to above-mentioned
Symbol lengths can be set as needed as other symbol lengths, be not limited thereto in other embodiments.Additionally, it is preferred that
The length on ground, load data may be configured as regular length.
Specifically, the pilot data is as the communication data i.e. starting of the data frame, according to receive the scheduled agreement of terminal,
The amplitude that pilot data is arranged is to detect that first of the data lower than preset threshold preset when receiving terminal lower than preset threshold
When the data of length, it is determined that the data are the starting of data frame, i.e. pilot data.During sonic transmissions, be easy by
To the influence of outside noise, so as to cause the data distortion in data frame, therefore the number of derivatives of the second preset length are arranged in the application
According to determine the character boundary of data frame.Also, for the accurate positionin for guaranteeing character boundary, also set up third preset length
Synchronous code, to examine determining character boundary whether correct.
S102: terminal is sent by the pilot data, lead data, synchronous code and load data and is modulated into acoustic signals.
For example, send after terminal generates pilot data, lead data, synchronous code and load data, to pilot data, leading
Data, synchronous code use but are not limited to phase-shift keying (PSK) (English: Phase-Shift Keying, abbreviation: PSK) or frequency shift keying
(English: Frequency-shift keying, referred to as: FSK) coding mode is modulated, by pilot data, lead data,
Synchronous code and load data are loaded on communication carrier respectively, obtain being loaded with pilot data, lead data, synchronous code and load
The acoustic signals of data.
S103: the acoustic signals that terminal will be loaded with pilot data, lead data, synchronous code and load data respectively are sent
It is sent to reception terminal.
It sends terminal and the acoustic signals for being loaded with pilot data, lead data, synchronous code and load data is passed through into sound
Output module such as loudspeaker is sent to reception terminal, and the voice input module such as microphone for receiving terminal, which receives, sends terminal transmission
Acoustic signals.Wherein, the frequency for the acoustic signals which sends, i.e., communication carrier frequency is preferred but is not limited to 2KHz
~6KHz can effectively receive the acoustic signals of this frequency range to guarantee all terminal devices by voice input module, and
And part noise jamming can be prevented.
It is understood that due to pilot data indicate communication data starting, therefore generally can by pilot data prior to
Lead data, synchronous code and load data are sent.And lead data, synchronous code in the wireless acoustic communication data of the application and negative
Carrying the transmission sequence of data preferably but not limiting is sequentially lead data, synchronous code and load data.In different application, this Shen
Please the transmission sequence of above-mentioned each component part in wireless acoustic communication data can be configured according to actual needs, and send
It terminal and receives terminal and can first pass through communication protocol in advance and reached an agreement on the sequence of each component part, and sent out according to the good sequence of agreement
It send, or receives and parses through to obtain each component part.
The starting that present embodiment is communicated by sending pilot data prompt, and it is true according to the lead data and synchronous code
The character boundary of fixed load data, the accuracy that the symbol of proof load data is distinguished, and then solve wireless sound wave communication band
The problem of width, load data is easy error, the validity of load data is improved, so that communication efficiency is high.
Referring to Fig. 2, Fig. 2 is the flow chart of another embodiment of method of the wireless acoustic communication of the application.This embodiment party
In formula, sends terminal and reception terminal passes through wireless acoustic communication.Specifically, method includes the following steps:
S201: it sends terminal to the reception terminal and sends configuration acoustic signals, wherein the configuration acoustic signals include
The optimal communication band information for sending terminal, so that the reception terminal configures certainly according to the optimal communication band information
The communications band of body.
Terminal is sent in present embodiment and receives terminal and carries out frequency response adaptive process, improves the steady of wireless acoustic communication
It is qualitative.For example, sending terminal when being communicated for the first time with reception terminal and initiating primary communication, wherein transmission terminal initial communication carries
Wave frequency rate is preferred but the unlimited high frequency 2KHz~6KHz for being set as sound wave, passes through microphone with the mobile terminal device for guaranteeing all
The acoustic signals of this frequency range can effectively be received.It sends terminal and initiates the data frame packet of communication containing the best logical of the transmission terminal
This information is sent to reception terminal by sound wave as most preferably sent and received frequency range by letter band information.
S202: it sends terminal and receives believing comprising the configured communications band of the reception terminal for the reception terminal feedback
The acoustic signals of breath, and optimal communication frequency range is arranged according to the configured communications band of the reception terminal.
It receives terminal to receive comprising sending terminal optimal communication band information, if transmission terminal can be matched by receiving terminal
Frequency response, just adjust equipment of itself receptions frequency range meet transmission terminal transmission frequency range, adjust the transmission frequency range of equipment of itself
Meet the reception frequency range for sending terminal.If the frequency response for sending terminal cannot be matched by receiving terminal, initial communication frequency range is kept to match
It sets.Receive the communications band information write-in that after terminal configured and itself send and receive communications band, itself is sent and received
In response message, and acoustic signals are modulated to by initial communication carrier wave frequency range, are sent by sound output module such as loudspeaker
Give transmission terminal.
After transmission terminal receives response message, so that it may the communications band negotiated according to transmission terminal and reception terminal
Optimal communications band is arranged in information, obtains optimal communication effect, and can match different terminal devices to greatest extent.
If for example, receiving the configured communications band of terminal in the optimal communication frequency range for sending terminal, being arranged and receiving terminal
Configure identical communications band.
It is understood that sending terminal and receiving terminal may not limit in the communications band information of adaptive process interaction
Including sending frequency range and receiving frequency range, it is only used as sender sending terminal, receives the embodiment that terminal is only used as recipient
In, the best band information that sends can only be sent to terminal is received by sending terminal, and the reception frequency range for receiving terminal in feedback configuration is believed
It ceases and gives transmission terminal, therefore transmission terminal and reception terminal are not made specifically in the communications band information of adaptive process interaction at this
It limits.
In addition, sending terminal for the anti-interference of raising communication and receiving terminal and itself lead to what adaptive process configured
Believe frequency range preferably in 2KHz~6KHz.
S203: it is pre- that the terminal acquisition pilot data of the first preset length, the lead data of the second preset length, third are sent
If the synchronous code and load data of length, wherein the pilot data is the data lower than preset threshold, for indicating logical
The starting of letter data, the lead data is for determining intersymbol boundary in load data, and the synchronous code is for verifying root
Whether the intersymbol boundary determined according to the lead data is correct.
Wherein, the pilot data, lead data, synchronous code, load data are logical data.Generally, first, second is pre-
If length is 8-16 symbol lengths, and preferably 8 symbol lengths, third preset length are preferably 8 symbol lengths.When
So, the first, second, third preset length is not limited to above-mentioned symbol lengths, in other embodiments, can be set as needed
For other symbol lengths, it is not limited thereto.Furthermore it is preferred that the length of load data may be configured as regular length.
S204: terminal is sent by the pilot data, lead data, synchronous code and load data and is modulated into acoustic signals.
For example, send terminal of pilot data, lead data, synchronous code use but be not limited to PSK or FSK coding mode into
Row modulation, pilot data, lead data, synchronous code and load data are loaded into respectively on communication carrier, are loaded with
Pilot data, lead data, synchronous code and load data acoustic signals.Wherein, the frequency of communication carrier exists in transmission terminal
In the optimal communication frequency range being arranged in above-mentioned steps S202, can effectively it be connect with guaranteeing to receive terminal by voice input module
The acoustic signals for receiving this frequency range obtain optimal communication effect.
S205: the check code that terminal generates the 4th preset length according to the load data is sent.
Present embodiment sends terminal and carries out the data frame of wireless acoustic communication by the first preset length with receiving terminal
Pilot data, the lead data of the second preset length, the synchronous code of third preset length, load data and composition.To guarantee
The integrality of load data sends the check code that terminal generates the 4th preset length according to load data, such as cyclic redundancy check,
Wherein, the 4th preset length is preferred but is not limited to two symbol lengths.
It is understood that in the present embodiment, check code is successively walked with pilot data, lead data, synchronous CDMA
It is rapid to obtain, but be not limited thereto and determine.In other embodiments, check code and pilot data, lead data, synchronous code can be with
It obtains synchronous, alternatively, first obtain verification obtains pilot data, lead data, synchronous code again, therefore transmission terminal is obtained at this
Check code, pilot data, lead data, the sequence of synchronous code are not especially limited.
S206: pilot data, lead data, synchronous code, load data and check code will be loaded with respectively by sending terminal
Acoustic signals are sent to reception terminal.
For example, sending the sound wave that terminal will be loaded with pilot data, lead data, synchronous code, load data and check code
Signal is sent to reception terminal by sound output module such as loudspeaker, and the voice input module such as microphone for receiving terminal receives
Send the acoustic signals that terminal is sent.Wherein, the frequency for the acoustic signals which sends, i.e. communication carrier frequency are preferred
But it is not limited to 2KHz~6KHz, to guarantee that all terminal devices can effectively receive this frequency range by voice input module
Acoustic signals, and part noise jamming can be prevented.
The sound output module of present embodiment using terminal such as loudspeaker generates acoustic signals, voice input terminal such as wheat
The mode that gram wind receives acoustic signals carries out sound wave communication, transmits data between terminal devices, does not need additional radio
Receiver And Transmitter.Meanwhile the present invention designs unique coding mode, the association of data frame institutional framework and communication interaction
It is narrow that quotient's mode solves wireless sound wave communication bandwidth, is easy disturbed, the problem of communication stability difference.
Referring to Fig. 3, Fig. 3 is the flow chart of the method a further embodiment of the wireless acoustic communication of the application.This embodiment party
It in formula, sends terminal and receives terminal by wireless acoustic communication, sound wave is generated by the loudspeaker of itself for example, sending terminal
Signal receives terminal and carries out acoustic communication in such a way that microphone receives acoustic signals.Specifically, this method includes following step
It is rapid:
S301: the acoustic signals that end-on receives are received and are demodulated to obtain solution adjusting data, detect the solution adjusting data
In whether comprising the first preset length and be lower than preset threshold pilot data.
It receives terminal and receives the acoustic signals for sending terminal and sending by voice input module such as microphone, sound wave is believed
It number is demodulated to obtain the digital signal for indicating information and also referred to as solves adjusting data.According to send the scheduled agreement of terminal: pilot tone
Starting of the data as efficient communication data frame, and the amplitude of pilot data is lower than preset threshold.Receive terminal judgement demodulation number
With the presence or absence of the data of the first preset length lower than preset threshold in, if it is, determining that the data are pilot data, i.e.,
For the starting with transmission terminal efficient communication data frame.
Optimally, it is that can prevent part noise jamming, receives the reception frequency range of terminal preferably but be not limited to 2KHz~6KHz.
S302: if comprising, it receives terminal and determines that the solution adjusting data originated from the pilot data is communication data, and
The lead data that the second preset length is obtained from the communication data detects intersymbol boundary in the lead data.
If receiving terminal detects the pilot data comprising the first preset length lower than preset threshold in solution adjusting data,
It determines and is originated from the pilot data, the data demodulated from the acoustic signals that the transmission terminal receives are efficient communication
The data of data frame.Receive terminal according in advance with send the transmissions of the good each data of terminal protocol sequentially, from pilot data it
Lead data, synchronous code and load data are obtained in solution adjusting data afterwards.In order to more preferably illustrate, present embodiment and below implementation
Mode is sequentially that pilot data, lead data, synchronous code, load data are with the transmissions of wireless acoustic communication data sequence
Example, but transmission sequence should not be construed as the restriction to the application.
Therefore it receives terminal and directly acquires demodulating after the pilot data from the acoustic signals that the transmission terminal receives
The data of the second obtained preset length detect the intersymbol boundary in the lead data as lead data.Wherein,
The intersymbol boundary is the intersection between each symbol included in data.For example, in the sampled value of the data
The smallest sampled point of absolute value is that symbol has a common boundary lower than the sampled point of preset value.
S303: the synchronous code that terminal obtains third preset length from the communication data is received, according to the intersymbol
Boundary the synchronous code is divided into multiple symbols, judge that the value of each symbol of the synchronous code is corresponding with pre-determined synchronization code
Whether value of symbol is identical.
It receives terminal and obtains what the demodulation from the acoustic signals that the transmission terminal receives after the lead data obtained
The data of third preset length are as synchronous code.According to the character boundary that S302 is determined, as determined every 5th sampled point in data
For character boundary, terminal is received by the sampled point in synchronous code every 5 same periods and is divided into a symbol, obtains multiple symbols,
And the value for example logic 1 or 0 of each symbol is determined according to the amplitude situation of each symbol.Terminal is received to obtain with sending terminal
The pre-determined synchronization code of the good third preset length of agreement compares the logical value and pre-determined synchronization of each symbol of synchronous code in data
Whether the logical value of the correspondence bit sign of code is all the same.
S304: if it is, receiving terminal determines that the intersymbol boundary is the character boundary in load data, and from
Load data is obtained in the communication data, each symbol in the load data is distinguished according to the character boundary, to realize
Parsing to the load data.
If it is determined that logical value and the logical value of the corresponding symbol of pre-determined synchronization code of each symbol of synchronous code obtained are not
Identical, then the character boundary for determining that S302 is detected is incorrect, and receiving terminal terminates process, and resumes waiting for obtaining and send
The pilot data that terminal is sent.If it is determined that logical value and the corresponding symbol of pre-determined synchronization code of each symbol of synchronous code obtained
Logical value it is all the same, then the character boundary detected S302 is determined as the character boundary in load data.Terminal is received to obtain
Taking the data demodulated from the acoustic signals that the transmission terminal receives after the synchronous code is load data, wherein should
Load data can be in the data or load data of regular length comprising termination of the end mark to determine load data.It connects
After receiving terminal acquisition load data, according to determining character boundary, such as the 5th sampled point every in data is character boundary, is received
Load data is divided into multiple symbols, root in such a way that the sampled point in every 5 same periods is divided into a symbol by terminal
Its logical value 1 or 0 is determined according to the amplitude of each symbol, and then constitutes the logical message of load data, for example 8 symbol lengths
" 10011101 " receive terminal and are parsed according to logical message of the communication protocol to load data to load data, born
Carry information represented by data.
Present embodiment passes through the starting for judging pilot data prompt communication, and true according to the lead data and synchronous code
The character boundary of fixed load data, the accuracy that the symbol of proof load data is distinguished, and then solve wireless sound wave communication band
The problem of width, load data is easy error, the validity of load data is improved, so that communication efficiency is high.
Referring to Fig. 4, Fig. 4 is the method for the wireless acoustic communication of the application and the flow chart of a further embodiment.This implementation
In mode, sends terminal and reception terminal passes through wireless acoustic communication, wherein the transmission sequence of wireless acoustic communication data is sequentially
For pilot data, lead data, synchronous code, load data, specifically, method includes the following steps:
401: receiving terminal and receive the configuration acoustic signals sent to the transmission terminal, according to the optimal communication frequency range
The communications band of information configuration itself, wherein the configuration acoustic signals include the optimal communication frequency range letter for sending terminal
Breath.
Terminal is sent in present embodiment and receives terminal and carries out frequency response adaptive process, improves the steady of wireless acoustic communication
It is qualitative.For example, sending terminal when being communicated for the first time with reception terminal and initiating primary communication, wherein transmission terminal initial communication carries
Wave frequency rate is preferred but the unlimited high frequency 2KHz~6KHz for being set as sound wave, passes through microphone with the mobile terminal device for guaranteeing all
The acoustic signals of this frequency range can effectively be received.It sends terminal and initiates the data frame packet of communication containing the best logical of the transmission terminal
This information is sent to reception terminal by sound wave as most preferably sent and received frequency range by letter band information.
It receives terminal to receive comprising sending terminal optimal communication band information, if transmission terminal can be matched by receiving terminal
Frequency response, just adjust equipment of itself receptions frequency range meet transmission terminal transmission frequency range, adjust the transmission frequency range of equipment of itself
Meet the reception frequency range for sending terminal.If the frequency response for sending terminal cannot be matched by receiving terminal, initial communication frequency range is kept to match
It sets.
S402: receiving terminal to the transmission terminal and feed back the acoustic signals comprising configured communications band information, with
Make the transmission terminal that optimal communication frequency range is set according to terminal configured communications band is received.
Receive the communications band information that after terminal configured and itself send and receive communications band, itself is sent and received
It is written in response message, and acoustic signals is modulated to by initial communication carrier wave frequency range, pass through sound output module such as loudspeaker
It is sent to transmission terminal.After transmission terminal receives response message, so that it may according to transmission terminal and receive what terminal was negotiated
Optimal communications band is arranged in communications band information, obtains optimal communication effect, and can match different ends to greatest extent
End equipment.If being arranged and connecing for example, receiving the configured communications band of terminal in the optimal communication frequency range for sending terminal
It receives terminal and configures identical communications band.
It is understood that sending terminal and receiving terminal may not limit in the communications band information of adaptive process interaction
Including sending frequency range and receiving frequency range, it is only used as sender sending terminal, receives the embodiment that terminal is only used as recipient
In, the best band information that sends can only be sent to terminal is received by sending terminal, and the reception frequency range for receiving terminal in feedback configuration is believed
It ceases and gives transmission terminal, therefore transmission terminal and reception terminal are not made specifically in the communications band information of adaptive process interaction at this
It limits.
In addition, sending terminal for the anti-interference of raising communication and receiving terminal and itself lead to what adaptive process configured
Believe frequency range preferably in 2KHz~6KHz.
S403: the acoustic signals that end-on receives are received and are demodulated to obtain solution adjusting data, detect the solution adjusting data
In whether comprising the first preset length and be lower than preset threshold pilot data.
It receives terminal and receives the acoustic signals for sending terminal and sending by voice input module such as microphone, sound wave is believed
It number is demodulated to obtain solution adjusting data.According to send the scheduled agreement of terminal, receive terminal judge solution adjusting data in whether deposit
In the data of the first preset length lower than preset threshold, if it is, determining that the data are pilot data, as eventually with transmission
Hold the starting of efficient communication data frame.
S404: if comprising, it receives terminal and determines that the solution adjusting data originated from the pilot data is communication data, and
The lead data of the second preset length after the pilot data is obtained, and N is carried out to each symbol of the lead data
The absolute value of the n-th sampled value of each symbol is added up respectively, obtains n-th of He by secondary sampling, and wherein n is followed successively by 1 and arrives N's
Integer value, N are the integer greater than 1, and the N number of and middle minimum and corresponding m sampled point acquired is as the lead data
Intersymbol boundary, the m are 1 to any one integer between M.
If receiving terminal detects the pilot data comprising the first preset length lower than preset threshold in solution adjusting data,
The data of the second preset length after the pilot data are then obtained as lead data.Terminal is received to the lead data
Each symbol carries out n times sampling, and sampling period T, N are the integer greater than 1.Receive 1st sampling of the terminal by each symbol
The absolute value of value is cumulative, obtain the 1st and, the absolute value of the 2nd sampled value of each symbol is added up, obtains the 2nd
With ... until the absolute value of the n-th sampled value of each symbol added up, obtain n-th and.Receive the N that terminal acquires
A and middle minimum and corresponding sampled point, for example m-th of sampled point, i.e., accord with using every m-th of sampled point as the lead data
Boundary between number, wherein the m is 1 to any one integer between M.For example, respectively by the of symbol each in lead data
Same number sampled value is cumulative obtaining and sequentially includes: 5,9,7,0,10, then makees the smallest 0 corresponding every 4th sampled point
For character boundary.
S405: receiving terminal and obtain the synchronous code of the third preset length after the lead data, and with it is described before
Derivative samples the synchronous code according to the identical sampling period, to divide a symbol every the m sampled point, according to
In each symbol near p intermediate sampled value and determine that value of symbol is 0 or 1, and judge each symbol of the synchronous code
Whether identical it is worth value of symbol corresponding with pre-determined synchronization code, wherein p is the integer less than or equal to m.
For example, it is identical with lead data to the synchronous code progress of the third preset length after lead data to receive terminal
The sampling of sampling period T, by synchronous code to divide a symbol, such as every 4th sampled point of above-mentioned determination every m sampled point
It, i.e., will be to divide a symbol every 4 sampled points as character boundary.Since the sampled point in symbol closer to boundary malfunctions
Rate is bigger, it is possible to boundary demarcation is incorrect, actually the sampled value be adjacent-symbol amplitude, therefore receive terminal preferably only
The value of the symbol is determined near intermediate sampled value according to each symbol.For example, receive terminal obtain in each symbol near
The nearly intermediate sum less than or equal to m sampled value, such as sampled value of each symbol are 4,5,6,7, obtain intermediate two i.e.: 5,6
And be 11, acquire the sum average value be 5.5.According to predefined communication protocol, reception terminal determines that sampled value belongs to for 5.5 and patrols
Value 0 or 1 is collected, and using determining logical value as the logical value of the symbol.The logical value of all symbols in obtaining synchronous code
Afterwards, receive terminal judges whether each value of symbol of synchronous code value of symbol corresponding with pre-determined synchronization code is identical.
S406: it if it is, receiving terminal determines that the intersymbol boundary is the character boundary in load data, and obtains
The load data after the synchronous code is taken, each symbol in the load data is distinguished according to the character boundary, to realize
Parsing to the load data.
If it is determined that logical value and the logical value of the corresponding symbol of pre-determined synchronization code of each symbol of synchronous code obtained are not
Identical, then the character boundary for determining that S404 is detected is incorrect, and receiving terminal terminates process, and resumes waiting for obtaining and send
The pilot data that terminal is sent.If it is determined that logical value and the corresponding symbol of pre-determined synchronization code of each symbol of synchronous code obtained
Logical value it is all the same, then the character boundary detected S404 is determined as the character boundary in load data.Terminal is received to obtain
Take the load data after the synchronous code, wherein the load data can for regular length data or load data in wrap
The termination of load data is determined containing end mark.After receiving terminal acquisition load data, according to determining character boundary, it will load
Data are divided into multiple symbols, determine its logical value 1 or 0 according to the amplitude of each symbol, and then constitute the logic of load data
Information receives terminal and is parsed according to logical message of the communication protocol to load data to load data, obtains load data
Represented information.
Optimally, the data frame that present embodiment sends that terminal carries out wireless acoustic communication with reception terminal is preset by first
The pilot data of length, the lead data of the second preset length, the synchronous code of third preset length, load data and composition.
It further include the check code of the 4th preset length, such as cyclic redundancy check after load data for the integrality of proof load data
Deng, wherein the 4th preset length is preferred but is not limited to two symbol lengths.Terminal is received according to the check code to the load
Data are verified, if verification passes through, are parsed according to the character boundary to each symbol in the load data.
If do not passed through, it is determined that the load data is invalid, does not parse to load data, and continues waiting for sending terminal hair next time
The pilot data sent.
The sound output module of present embodiment using terminal such as loudspeaker generates acoustic signals, voice input terminal such as wheat
The mode that gram wind receives acoustic signals carries out sound wave communication, transmits data between terminal devices, does not need additional radio
Receiver And Transmitter.Meanwhile the present invention designs unique coding mode, the association of data frame institutional framework and communication interaction
It is narrow that quotient's mode solves wireless sound wave communication bandwidth, is easy disturbed, the problem of communication stability difference.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram that the application sends terminal.In present embodiment, terminal and reception are sent
Terminal passes through wireless acoustic communication.Specifically, which includes obtaining module 510, modulation module 520 and sending module 530.
Module 510 is obtained for obtaining the pilot data of the first preset length, the lead data of the second preset length, third
The synchronous code and load data of preset length, and be sent to the modulation module 520, wherein the pilot data be lower than
The data of preset threshold, for indicating the starting of communication data, the lead data is intersymbol in load data for determining
Whether boundary, the synchronous code are used to verify the intersymbol boundary determined according to the lead data correct.
The application sends terminal and carries out the data frame of wireless acoustic communication by the pilot tone of the first preset length with receiving terminal
Data, the lead data of the second preset length, the synchronous code of third preset length and load data are constituted.For example, when sending
When terminal needs to carry the load data of information to reception terminal transmission, obtains module 510 and generate leading for the first preset length
Frequency evidence, the lead data of the second preset length, the synchronous code of third preset length.Wherein, the pilot data, the number of derivatives
According to, synchronous code, load data be logical data.Generally, the first, second preset length is 8-16 symbol lengths, and preferably 8
A symbol lengths, third preset length are preferably 8 symbol lengths.Certainly, the first, second, third preset length is not limited to
Above-mentioned symbol lengths can be set as needed as other symbol lengths, be not limited thereto in other embodiments.In addition,
Preferably, the length of load data may be configured as regular length.
Specifically, the pilot data is as the communication data i.e. starting of the data frame, according to receive the scheduled agreement of terminal,
The amplitude that pilot data is arranged is to detect that first of the data lower than preset threshold preset when receiving terminal lower than preset threshold
When the data of length, it is determined that the data are the starting of data frame, i.e. pilot data.During sonic transmissions, be easy by
To the influence of outside noise, so as to cause the data distortion in data frame, therefore the number of derivatives of the second preset length are arranged in the application
According to determine the character boundary of data frame.Also, for the accurate positionin for guaranteeing character boundary, also set up third preset length
Synchronous code, to examine determining character boundary whether correct.
Modulation module 520 is used to for the pilot data, lead data, synchronous code and load data to be modulated into sound wave letter
Number, and it is sent to the sending module 530.
For example, after obtaining the generation of module 510 pilot data, lead data, synchronous code and load data, modulation module 520
Pilot data, lead data, synchronous code are used but is not limited to PSK or FSK coding mode and is modulated, by pilot data,
Lead data, synchronous code and load data are loaded on communication carrier respectively, obtain being loaded with pilot data, lead data, same
Walk the acoustic signals of code and load data.
Sending module 530 is used to be loaded with the sound wave letter of pilot data, lead data, synchronous code and load data respectively
Number it is sent to reception terminal.
The acoustic signals for being loaded with pilot data, lead data, synchronous code and load data are passed through sound by sending module 530
Sound output module such as loudspeaker is sent to reception terminal, and the voice input module such as microphone for receiving terminal, which receives, sends terminal hair
The acoustic signals sent.Wherein, the frequency for the acoustic signals which sends, i.e., communication carrier frequency is preferred but is not limited to
2KHz~6KHz can effectively receive the sound wave letter of this frequency range to guarantee all terminal devices by voice input module
Number, and part noise jamming can be prevented.In other embodiments, which can also include sound output module.
Preferably, terminal is sent in the application and receives terminal can also carry out frequency response adaptive process, improve wireless sound
The stability of wave communication.Specifically, sending terminal further includes receiving module, and sending module is also used to send out to the reception terminal
Acoustic signals are set in delivery, wherein the configuration acoustic signals include the optimal communication band information for sending terminal, so that institute
It states and receives the communications band that terminal configures itself according to the optimal communication band information.
For example, sending module initiates primary communication when communicating for the first time with reception terminal, communicated wherein sending terminal initial
Carrier frequency is preferred but the unlimited high frequency 2KHz~6KHz for being set as sound wave, passes through Mike with the mobile terminal device for guaranteeing all
Wind can effectively receive the acoustic signals of this frequency range.Sending module initiates the data frame packet of communication containing the best of the transmission terminal
This information is sent to reception terminal by sound wave as most preferably sent and received frequency range by communications band information.
Receiving module is used to receive believing comprising the configured communications band of the reception terminal for the reception terminal feedback
The acoustic signals of breath, and optimal communication frequency range is arranged according to the configured communications band of the reception terminal.
For example, the configured communications band information of optimal communication band information that terminal is sent according to terminal is sent is received,
Itself configured communications band information is modulated to acoustic signals, and transmission is sent to by sound output module such as loudspeaker
Terminal.After receiving module receives the acoustic signals, according to the communications band information that transmission terminal and reception terminal were negotiated, if
Optimal communications band is set, obtains optimal communication effect, and different terminal devices can be matched to greatest extent.
Wherein, it is the anti-interference of raising communication, sends terminal and receive terminal and itself lead to what adaptive process configured
Believe frequency range preferably in 2KHz~6KHz.
Preferably, it is the integrality of proof load data, obtains module and be also used to generate the 4th according to the load data
The check code of preset length, wherein the 4th preset length is preferred but is not limited to two symbol lengths.Sending module is also used to sequentially
The acoustic signals for being loaded with pilot data, lead data, synchronous code, load data and check code respectively are sent to reception eventually
End.
The sound output module of present embodiment using terminal such as loudspeaker generates acoustic signals, voice input terminal such as wheat
The mode that gram wind receives acoustic signals carries out sound wave communication, transmits data between terminal devices, does not need additional radio
Receiver And Transmitter.Meanwhile the present invention designs unique coding mode, the association of data frame institutional framework and communication interaction
It is narrow that quotient's mode solves wireless sound wave communication bandwidth, is easy disturbed, the problem of communication stability difference.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram that the application receives one embodiment of terminal.In present embodiment, receive
Terminal includes demodulation module 610, first detection module 620, the second detection module 630, judgment module 640 and discriminating module 650.
Demodulation module 610 is used to be demodulated to obtain to the acoustic signals received solution adjusting data, and by the demodulation number
According to being sent to the first detection module 620.
Demodulation module 610 receives the acoustic signals for sending terminal and sending by voice input module such as microphone, to sound
Wave signal is demodulated to obtain the digital signal for indicating information also referred to as solution adjusting data.It optimally, is that partial noise can be prevented dry
It disturbs, receive the reception frequency range of terminal preferably but is not limited to 2KHz~6KHz.Moreover, in other embodiments, the demodulation module
It can also include voice input module.
First detection module 620 be used to detect in the solution adjusting data whether comprising the first preset length and lower than default
The pilot data of threshold value, and the first testing result is sent to second detection module 630.
According to send the scheduled agreement of terminal: starting of the pilot data as efficient communication data frame, and pilot data
Amplitude be lower than preset threshold.It is pre- with the presence or absence of first lower than preset threshold in the judgement solution adjusting data of first detection module 620
If the data of length, if it is, determining of the data for pilot data, as with transmission terminal efficient communication data frame
Begin.
Second detection module 630 is used for comprising the first preset length and lower than preset threshold in the solution adjusting data
When pilot data, determine that the solution adjusting data originated from the pilot data is communication data, and obtain from the communication data
The lead data of second preset length detects intersymbol boundary in the lead data, and the intersymbol boundary hair
Give the judgment module 640.
For example, the second detection module 630 is in detecting solution adjusting data comprising the first preset length lower than preset threshold
Pilot data when, that is, determine and originated from the pilot data, demodulation is obtained from the acoustic signals that the transmission terminal receives
Data are the data of efficient communication data frame.Being connect from the transmission terminal after the second detection module 630 acquisition pilot data
The data of the second preset length demodulated in the acoustic signals received detect in the lead data as lead data
Intersymbol boundary.Wherein, the intersymbol boundary is the intersection between each symbol included in data.Example
The smallest sampled point of absolute value or the sampled point lower than preset value are that symbol has a common boundary for example in the sampled value of the data.
Judgment module 640 from the communication data for obtaining the synchronous code of third preset length, according to the symbol
Between boundary the synchronous code is divided into multiple symbols, judge that the value of each symbol of the synchronous code is corresponding with pre-determined synchronization code
Value of symbol it is whether identical, and the judging result is sent to the discriminating module 650.
For example, being solved from the acoustic signals that the transmission terminal receives after the acquisition of judgment module 640 lead data
Adjust the data of obtained third preset length as synchronous code.According to the character boundary that the second detection module 630 determines, such as determine
Every 5th sampled point is character boundary in data, and the sampled point in synchronous code every 5 same periods is divided by judgment module 640
One symbol obtains multiple symbols, and the value for example logic 1 or 0 of each symbol is determined according to the amplitude situation of each symbol.
Judgment module 640 obtains the pre-determined synchronization code with sending the good third preset length of terminal protocol, compares the synchronous code in data
Whether the logical value of each symbol and the logical value of the corresponding bit sign of pre-determined synchronization code are all the same.
Discriminating module 650 is used for identical in the value value of symbol corresponding with pre-determined synchronization code of each symbol of the synchronous code
When, determine that the intersymbol boundary is the character boundary in load data, and obtain load data from the communication data,
Each symbol in the load data is distinguished according to the character boundary, to realize the parsing to the load data.
For example, discriminating module 650 is corresponding with pre-determined synchronization code in the logical value for determining each symbol of synchronous code obtained
When the logical value of symbol is not exactly the same, the character boundary for determining that the second detection module 630 detects is incorrect.It is obtained determining
The each symbol of synchronous code logical value and the logical value of the corresponding symbol of pre-determined synchronization code all the same when, by the second detection module
630 character boundaries detected are determined as the character boundary in load data.Discriminating module 650 obtain the synchronous code after from
The data demodulated in the acoustic signals that the transmission terminal receives are load data, and wherein the load data can be fixation
The termination of load data is determined in the data or load data of length comprising end mark.Discriminating module 650 obtains load number
According to rear, according to determining character boundary, such as the 5th sampled point every in data is character boundary, receives terminal with every 5 same weeks
The sampled point of phase is divided into the mode of a symbol, and load data is divided into multiple symbols, according to the amplitude of each symbol
It determines its logical value 1 or 0, and then constitutes the logical message of load data, receive terminal according to communication protocol to load data
Logical message parses load data, obtains information represented by load data.
Preferably, terminal is sent in the application and receives terminal can also carry out frequency response adaptive process, improve wireless sound
The stability of wave communication.Specifically, receiving terminal further includes receiving module and sending module.
Receiving module is used to receive the configuration acoustic signals sent to the transmission terminal, according to the optimal communication frequency range
The communications band of information configuration itself, wherein the configuration acoustic signals include the optimal communication frequency range letter for sending terminal
Breath.
For example, sending terminal when being communicated for the first time with reception terminal and initiating primary communication, wherein transmission terminal initial communication
Carrier frequency is preferred but the unlimited high frequency 2KHz~6KHz for being set as sound wave.It sends terminal and initiates the data frame packet of communication containing the hair
Make arrangements for his funeral end optimal communication band information as most preferably sent and received frequency range, this information is sent to reception terminal by sound wave.
Receive terminal receiving module receive comprising send terminal optimal communication band information, if receive terminal can
The frequency response at end of making arrangements for his funeral is allotted, the reception frequency range for just adjusting equipment of itself meets the transmission frequency range for sending terminal, adjusts equipment of itself
Transmission frequency range meet send terminal reception frequency range.If the frequency response for sending terminal cannot be matched by receiving terminal, keep initial
Communications band configuration.Wherein, in other embodiments, which may include voice input module.
Sending module is used for the acoustic signals of the transmission terminal feedback comprising configured communications band information, so that
Optimal communication frequency range is arranged according to the configured communications band of terminal is received in the transmission terminal.
For example, itself is sent and is connect by the sending module for receiving terminal after configuration itself sends and receives communications band well
In the communications band information write-in response message of receipts, and acoustic signals are modulated to by initial communication carrier wave frequency range, pass through sound
Output module such as loudspeaker is sent to transmission terminal.After transmission terminal receives response message, optimal communications band is set, is obtained
Optimal communication effect is obtained, and different terminal devices can be matched to greatest extent.
Wherein, it is the anti-interference of raising communication, sends terminal and receive terminal and itself lead to what adaptive process configured
Believe frequency range preferably in 2KHz~6KHz.In addition, in other embodiments, which may include sound output mould
Block.
Preferably, the second detection module is also used to carry out n times sampling to each symbol of the lead data, respectively will be every
The absolute value of the n-th sampled value of a symbol is cumulative, obtains n-th of He, and wherein n is followed successively by 1 integer value for arriving N, and N is greater than 1
Integer, the N number of and middle minimum and corresponding m sampled point acquired is as the intersymbol boundary of the lead data, institute
M is stated as 1 to any one integer between M.
For example, the second detection module leading comprising the first preset length lower than preset threshold in detecting solution adjusting data
Frequency according to when, then obtain the data of the second preset length after the pilot data as lead data.Second detection module pair
Each symbol of the lead data carries out n times sampling, and sampling period T, N are the integer greater than 1.Terminal is received by each symbol
Number the 1st sampled value absolute value it is cumulative, obtain the 1st and, the absolute value of the 2nd sampled value of each symbol is added up,
Obtain the 2nd and ... until the absolute value of the n-th sampled value of each symbol is added up, obtain n-th and.Second detection mould
N number of and middle minimum and the corresponding sampled point, for example m-th of sampled point that block acquires, i.e., using every m-th of sampled point as institute
State the intersymbol boundary of lead data, wherein the m is 1 to any one integer between M.
Preferably, judgment module is also used to adopt the synchronous code with the sampling period identical with the lead data
Sample, to divide a symbol every the m sampled point, according in each symbol near p intermediate sampled value and true
Determining value of symbol is 0 or 1, and judges whether each value of symbol of synchronous code value of symbol corresponding with pre-determined synchronization code is identical,
In, p is the integer less than or equal to m.
For example, judgment module is identical with lead data to the synchronous code progress of the third preset length after lead data
The sampling of sampling period T, by synchronous code to divide a symbol, such as every 4th sampled point of above-mentioned determination every m sampled point
It, i.e., will be to divide a symbol every 4 sampled points as character boundary.Since the sampled point in symbol closer to boundary malfunctions
Rate is bigger, it is possible to which boundary demarcation is incorrect, actually the sampled value amplitude that is adjacent-symbol, therefore judgment module is preferably only
The value of the symbol is determined near intermediate sampled value according to each symbol.For example, judgment module obtain in each symbol near
The close intermediate sum less than or equal to m sampled value, according to predefined communication protocol, reception terminal is according to the sampled value of acquisition and true
The logical value of the fixed symbol is 0 or 1.In obtaining synchronous code after the logical value of all symbols, judgment module judges described same
Whether identical walk each value of symbol of code value of symbol corresponding with pre-determined synchronization code.
Preferably, it is the integrality of proof load data, further includes the verification of the 4th preset length after load data
Code, such as cyclic redundancy check, wherein the 4th preset length is preferred but is not limited to two symbol lengths.Discriminating module is also used to basis
The check code verifies the load data, if verification passes through, according to the character boundary to the load number
Each symbol is parsed in.
Through the above scheme, the sound output module of using terminal such as loudspeaker generates acoustic signals, voice input terminal
Mode as microphone receives acoustic signals carries out sound wave communication, transmits data between terminal devices, does not need additional nothing
Line electricity Receiver And Transmitter.Meanwhile the application uses and includes pilot tone, leading and synchronous code unique data frame knot of tissue
Structure solves the problem of wireless sound wave communication bandwidth is narrow, and load data is easy error, improves the validity of load data, make
It is high to obtain communication efficiency.Further, also communications band is arranged in 2KHz-6KHz by the application, improves the anti-interference of communication,
In addition frequency response adaptive process is also set up, communication stability is improved.
In several embodiments provided herein, it should be understood that disclosed system, device and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, the mould
The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple
Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another
Point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or
The indirect coupling or communication connection of unit can be electrical property, mechanical or other forms.
In addition, each functional unit in each embodiment of the application can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk
Etc. the various media that can store program code.
Claims (5)
1. a kind of method of wireless acoustic communication characterized by comprising
The acoustic signals that receive of end-on are received to be demodulated to obtain solution adjusting data, detect in the solution adjusting data whether include
First preset length and be lower than preset threshold pilot data;
If comprising, it is determined that the solution adjusting data originated from the pilot data is communication data, and from the communication data
The lead data for obtaining the second preset length detects intersymbol boundary in the lead data;
The synchronous code that third preset length is obtained from the communication data, according to the intersymbol boundary by the synchronous code
Multiple symbols are divided into, judge whether the value of each symbol of synchronous code value of symbol corresponding with pre-determined synchronization code is identical;
If it is, determining that the intersymbol boundary is the character boundary in load data, and obtained from the communication data
Load data is taken, each symbol in the load data is distinguished according to the character boundary, to realize to the load data
Parsing.
2. the method according to claim 1, wherein described detect intersymbol boundary in the lead data
The step of include:
N times sampling is carried out to each symbol of the lead data, respectively tires out the absolute value of the n-th sampled value of each symbol
Add, obtain n-th of He, wherein n is followed successively by 1 integer value for arriving N, and N is integer greater than 1, acquire it is N number of and middle it is minimum with
For corresponding m sampled point as the intersymbol boundary of the lead data, the m is 1 to any one integer between M;
It is described that the synchronous code is divided by multiple symbols according to the intersymbol boundary, judge each symbol of the synchronous code
The whether identical step of value value of symbol corresponding with pre-determined synchronization code include:
The synchronous code is sampled with the sampling period identical with the lead data, every the m sampling click and sweep
A point symbol, according in each symbol near p intermediate sampled value and determine that value of symbol is 0 or 1, and described in judgement
Whether each value of symbol of synchronous code value of symbol corresponding with pre-determined synchronization code is identical, wherein p is the integer less than or equal to m.
3. the method according to claim 1, wherein further include:
It receives to the configuration acoustic signals for sending terminal transmission, the communications band of itself is configured according to optimal communication band information,
Wherein, the configuration acoustic signals include the optimal communication band information for sending terminal;
To it is described transmission terminal feedback include configured communications band information acoustic signals so that the transmission terminal according to
It receives terminal configured communications band and optimal communication frequency range is set.
4. the method according to claim 1, wherein sending terminal and receiving the communications band of terminal in 2KHz-
Between 6KHz.
5. a kind of reception terminal, which is characterized in that including demodulation module, first detection module, the second detection module, judgment module
And discriminating module;
The demodulation module is used to be demodulated to obtain to the acoustic signals received solution adjusting data, and the solution adjusting data is sent out
Give the first detection module;
The first detection module be used to detect in the solution adjusting data whether comprising the first preset length and lower than default threshold
The pilot data of value, and the first testing result is sent to second detection module;
Second detection module is used in the solution adjusting data comprising the first preset length and leading lower than preset threshold
Frequency according to when, determine that the solution adjusting data that originate from the pilot data is communication data, and obtain from the communication data the
The lead data of two preset lengths detects intersymbol boundary in the lead data, and the intersymbol boundary is sent
To the judgment module;
The judgment module from the communication data for obtaining the synchronous code of third preset length, according to described intersymbol
The synchronous code is divided into multiple symbols by boundary, judges the value of each symbol of synchronous code symbol corresponding with pre-determined synchronization code
Whether number value is identical, and judging result is sent to the discriminating module;
The discriminating module is used for when the value value of symbol corresponding with pre-determined synchronization code of each symbol of the synchronous code is identical, really
The fixed intersymbol boundary is the character boundary in load data, and obtains load data from the communication data, according to
The character boundary distinguishes each symbol in the load data, to realize the parsing to the load data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410399730.3A CN105337670B (en) | 2014-08-13 | 2014-08-13 | The method and device thereof of wireless acoustic communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410399730.3A CN105337670B (en) | 2014-08-13 | 2014-08-13 | The method and device thereof of wireless acoustic communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337670A CN105337670A (en) | 2016-02-17 |
CN105337670B true CN105337670B (en) | 2019-07-12 |
Family
ID=55288002
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410399730.3A Active CN105337670B (en) | 2014-08-13 | 2014-08-13 | The method and device thereof of wireless acoustic communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105337670B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809441B (en) * | 2017-04-28 | 2021-09-21 | 杭州萤石网络股份有限公司 | Sound wave communication method and system |
CN109981184A (en) * | 2018-11-29 | 2019-07-05 | 招商银行股份有限公司 | Red packet receiving/transmission method, device and computer readable storage medium |
CN110784294B (en) * | 2019-09-20 | 2023-01-03 | 浙江大华技术股份有限公司 | Background sound self-adaptive sound wave distribution network method, system, equipment and storage medium |
CN114268379B (en) * | 2020-09-16 | 2023-03-28 | 华为技术有限公司 | Wireless sensing method, terminal and computer storage medium |
CN118432764A (en) * | 2024-05-06 | 2024-08-02 | 中国电子科技集团公司第十五研究所 | Signal transmission processing method and device based on high-frequency sound waves |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008129078A (en) * | 2006-11-16 | 2008-06-05 | Field System Inc | Information providing system |
CN102612817A (en) * | 2010-05-07 | 2012-07-25 | 三星电子株式会社 | Apparatus and method for transmitting data in low-frequency band in human body communication system, and the human body communication system |
CN102611658A (en) * | 2012-03-06 | 2012-07-25 | 杭州锐昂科技有限公司 | Multi-channel sound wave communication system and method |
CN102812651A (en) * | 2010-03-26 | 2012-12-05 | 飞路得新思探有限公司 | Sending device |
CN103856269A (en) * | 2012-12-07 | 2014-06-11 | 国民技术股份有限公司 | Information transmitting and reading method and device based on sound waves |
-
2014
- 2014-08-13 CN CN201410399730.3A patent/CN105337670B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008129078A (en) * | 2006-11-16 | 2008-06-05 | Field System Inc | Information providing system |
CN102812651A (en) * | 2010-03-26 | 2012-12-05 | 飞路得新思探有限公司 | Sending device |
CN102612817A (en) * | 2010-05-07 | 2012-07-25 | 三星电子株式会社 | Apparatus and method for transmitting data in low-frequency band in human body communication system, and the human body communication system |
CN102611658A (en) * | 2012-03-06 | 2012-07-25 | 杭州锐昂科技有限公司 | Multi-channel sound wave communication system and method |
CN103856269A (en) * | 2012-12-07 | 2014-06-11 | 国民技术股份有限公司 | Information transmitting and reading method and device based on sound waves |
Also Published As
Publication number | Publication date |
---|---|
CN105337670A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105337670B (en) | The method and device thereof of wireless acoustic communication | |
US10749991B2 (en) | Emulation-based cross-technology communication | |
JP5254437B2 (en) | Method and apparatus for verifying data packet integrity in a streaming data channel | |
US9240822B2 (en) | Method of handling power reduction at transmitter and related communication device | |
US11316594B2 (en) | Robust ultrasound communication signal format | |
WO2019174512A1 (en) | Method for transmitting phase tracking reference signal (ptrs), terminal and network device | |
CN103944664B (en) | Transmit method, base station and the user equipment of information | |
CN108141420A (en) | For the joint demodulation and the system and method for demapping in GFSK | |
CN108024346A (en) | A kind of resource indicating method, equipment and system | |
CN110324094B (en) | Sound wave communication method and device, storage medium and electronic device | |
US11923887B2 (en) | Emulation-based cross-technology for decoding communications | |
US9197467B2 (en) | Multiple protocol receiver | |
CN109743077A (en) | Anti-interference frequency hopping protocol in hot private communication channel | |
US9479373B2 (en) | Packet processor verification methods and systems | |
CN109150377A (en) | Sending method, method of reseptance, network side equipment and the terminal device of information | |
KR20090008370A (en) | Apparatus and method of low latency multi-hop communication | |
EP3066808B1 (en) | Method and apparatus for improving communication sensitivity | |
CN107277278A (en) | A kind of voice quality method of testing and terminal | |
KR102277413B1 (en) | Computing system with channel quality mechanism and method of operation thereof | |
Klingler et al. | Jamming WLAN data frames and acknowledgments using commodity hardware | |
CN111181628B (en) | Method, terminal and storage medium for transmitting voice data through Beidou short message | |
US9787508B2 (en) | Computing system with communication link mechanism and method of operation thereof | |
CN105337672A (en) | Sound wave transmitting method, receiving method, transmitting device, receiving device, and system | |
EP2845330B1 (en) | Communication system with feedback mechanism and method of operation thereof | |
CN114079539B (en) | Wireless information communication method and wireless communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |