WO2016023516A1 - Sound wave sending method, receiving method, sending device and receiving device and system - Google Patents
Sound wave sending method, receiving method, sending device and receiving device and system Download PDFInfo
- Publication number
- WO2016023516A1 WO2016023516A1 PCT/CN2015/086976 CN2015086976W WO2016023516A1 WO 2016023516 A1 WO2016023516 A1 WO 2016023516A1 CN 2015086976 W CN2015086976 W CN 2015086976W WO 2016023516 A1 WO2016023516 A1 WO 2016023516A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frequency
- sound wave
- channels
- access information
- communication access
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000004891 communication Methods 0.000 claims abstract description 232
- 230000004044 response Effects 0.000 claims abstract description 43
- 230000005540 biological transmission Effects 0.000 claims description 88
- 238000013507 mapping Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B11/00—Transmission systems employing sonic, ultrasonic or infrasonic waves
Definitions
- the invention belongs to the technical field of acoustic wave communication, and particularly relates to a sound wave transmitting method, a receiving method, a transmitting device, a receiving device and a system.
- the sound wave is transmitted by the party (ie, the sender) that initiates the sound wave communication, and the sound wave is received by the party (ie, the receiver) that responds to the sound wave communication, thereby establishing a sound wave communication mechanism.
- the initiator and responder of the sonic communication may be any terminal having a sound wave transmitting and receiving function, including: a smartphone, a notebook computer, a portable communication device, a PDA (Personal Digital Assistant, a personal digital assistant or a tablet), and Audio access control device, audio recognition and transaction payment terminal Key.
- a party that initiates voice communication is referred to as a "mobile terminal”
- a party that responds to voice communication is referred to as a "sound wave device.”
- the mobile terminal and the acoustic wave device must transmit and receive sound waves at corresponding fixed and known acoustic wave frequencies to establish a communication mechanism, that is, the fixed frequency at which the mobile terminal transmits the acoustic wave and the fixed frequency at which the acoustic wave device receives the acoustic wave.
- a communication mechanism that is, the fixed frequency at which the mobile terminal transmits the acoustic wave and the fixed frequency at which the acoustic wave device receives the acoustic wave.
- the fixed frequency of the sound wave transmitted by the sound wave device matches the fixed frequency of the sound wave received by the mobile terminal, and the two can establish a sound wave communication mechanism.
- There is a lack of autonomous adaptation mechanism between the mobile terminal and the acoustic wave device resulting in poor compatibility between them and a low success rate of data transmission.
- An object of the embodiments of the present invention is to provide a method for transmitting sound waves, which can perform autonomous adaptation of sound waves between a mobile terminal and an acoustic wave device, improve compatibility between communication terminals, and success rate of data transmission.
- the sound wave sending method includes:
- a plurality of channels of the mobile terminal respectively select a set of sound wave frequencies as the transmission frequency
- the plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
- the plurality of channels respectively detect whether the acoustic communication response information is received
- the sending of the sonic communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the following group of transmission frequencies continues to transmit the sonic communication access information;
- the several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
- Another object of the present invention is to provide an acoustic wave receiving method, which is intended to solve the problem that when a sound wave device communicates with a mobile terminal, it cannot guarantee that data communication is performed only with one mobile terminal at the same time, resulting in a communication conflict in the process of data communication. And the frequency of communicating with the mobile terminal using the frequency of its own channel, resulting in a problem of low stability of data communication.
- the sound wave receiving method includes:
- the plurality of channels of the acoustic wave device receive the acoustic wave communication access information in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- the plurality of channels transmit sound wave communication response information by using a configured transmission frequency
- the processing thread of the sound wave communication access information is turned off to shield the sound wave communication access information.
- Another object of the embodiments of the present invention is to provide a method for transmitting sound waves, including:
- a plurality of channels of the mobile terminal respectively select a transmission frequency by means of random frequency modulation
- the plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
- the plurality of channels respectively detect whether the acoustic communication response information is received
- the sending of the sound wave communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the sound wave communication access information is continuously sent;
- the several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
- Another object of the embodiments of the present invention is to provide an acoustic wave receiving apparatus, including:
- the frequency receiving unit is configured to receive the acoustic wave communication access information in a fixed frequency modulation manner, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- a first channel establishing unit configured to establish, after receiving the sound wave communication access information, a connection between the plurality of channels and the plurality of channels of the mobile terminal;
- a first preferred frequency configuration unit configured to extract the plurality of preferred frequencies, and configure the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
- the sound wave communication response information sending unit is configured to send the sound wave communication response information by using the configured transmission frequency of the plurality of channels;
- the sound wave communication access information shielding unit is configured to close the processing thread of the sound wave communication access information to shield the sound wave communication access information.
- Another object of the embodiments of the present invention is to provide an acoustic wave transmitting apparatus, including:
- a transmission frequency selection unit configured to select a transmission frequency by using a random frequency modulation method for each of the plurality of channels
- the sound wave communication access information sending unit is configured to send the sound wave communication access information by using the selected sending frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- the sound wave communication response information detecting unit is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;
- a second channel establishing unit configured to stop transmitting the sound wave communication access information, and establish a connection between the plurality of channels and the sound wave device, and if not, continue to send the sound wave communication access information
- the second preferred frequency configuration unit is configured to separately configure a plurality of preferred frequencies supported by the transmission frequency and the reception frequency of the several channels.
- Another object of an embodiment of the present invention is to provide an acoustic wave system including the above-described acoustic wave receiving device and the above-described acoustic wave transmitting device.
- the plurality of preferred frequencies are extracted, and the plurality of preferred frequencies are configured as the transmission frequency and the receiving frequency of the several channels to prevent other mobile terminals from joining during the data transmission of the acoustic system.
- Frequency interference closing the processing thread of the sound wave communication access information, preventing interference of the sound wave communication access information of other mobile terminals in the communication gap to the sound wave system, thereby ensuring data communication between only two devices in one sound wave system, and Improve the stability of data communication.
- FIG. 1 is a flowchart of a communication method according to Embodiment 1 of the present invention.
- FIG. 2 is a flowchart of a communication method according to Embodiment 2 of the present invention.
- FIG. 3 is a schematic block diagram of a communication system in accordance with a preferred embodiment of the present invention.
- FIG. 4 is a diagram showing a preferred example of an acoustic wave system in which communication conflicts exist
- FIG. 5 is a flowchart of implementing an acoustic wave receiving method according to an embodiment of the present invention.
- FIG. 6 is a flow chart showing a preferred implementation of the acoustic wave receiving method according to an embodiment of the present invention.
- FIG. 7 is a flowchart of implementing an acoustic wave sending method according to an embodiment of the present invention.
- FIG. 8 is a flow chart showing a preferred implementation of the method for transmitting sound waves according to an embodiment of the present invention.
- FIG. 9 is a structural diagram of an acoustic wave receiving apparatus according to an embodiment of the present invention.
- FIG. 10 is a structural diagram of an acoustic wave transmitting apparatus according to an embodiment of the present invention.
- FIG. 11 is a flow chart showing a better information interaction between the acoustic wave receiving device and the acoustic wave transmitting device in the acoustic wave system according to the embodiment of the present invention.
- mobile terminal and “sound wave device” appearing in the embodiments of the present invention are only used to distinguish between the party that initiates the communication in the voice communication and the party that receives the communication, and are not the type of the terminal (or device) that initiates or receives the communication. limit.
- Both the "mobile terminal” and the “sound wave device” may be a smart phone, a notebook computer, a portable communication device, a PDA (Personal Digital Assistant, a personal digital assistant or a tablet), an audio access control device, an audio recognition and transaction payment terminal Key, and the like. Based on this, the acoustic wave communication method related to the present invention can be applied to access control card swiping, face-to-face transaction payment, identity authentication, and the like.
- the communication method in this embodiment includes the following steps: Step S11: The mobile terminal transmits information about a preferred frequency of the receivable sound wave, and the modulation is applied to the first group of sound waves having at least two frequency segments.
- the frequency of the first group of sound waves of at least two frequency frequencies is the transmission frequency of the mobile terminal.
- the modulated preferred frequency information is embodied as a set of coded modulated data, so the set of coded modulated data must be digital-to-analog converted to obtain corresponding analog information, and then the analog information is loaded onto the first set of sound waves, which are of course issued. It is also possible to emit the first set of sound waves simultaneously.
- the first group of acoustic waves have three segments of acoustic frequencies and are non-second harmonic frequencies.
- those skilled in the art may also set the frequency of the first group of sound waves to have other numbers of segments. The rate is not limited by the present invention.
- the mobile terminal After the first set of sound waves is emitted, the mobile terminal turns on its own recording device, such as a microphone, to prepare to receive information that the acoustic wave device feeds back in the form of sound waves.
- its own recording device such as a microphone
- Step S12 The acoustic wave device takes the first set of sound waves emitted by the mobile terminal, and demodulates the first group of sound waves by using a preset receiving frequency.
- the sound wave device sequentially records the first group of sound waves emitted by the mobile terminal through its own recording device, such as a microphone, and then performs analog-to-digital conversion on the received first group of sound waves, and then demodulates the first group of sound waves after the analog-to-digital conversion. decoding.
- Demodulation is the reverse process of modulation, that is, information obtained from a first set of sound waves having three different frequencies (high frequencies) without distortion is obtained, and the demodulation frequency must be selected during demodulation.
- Step S13 It is judged whether the sound wave device demodulates the information of the preferred frequency.
- step S14 If the sound wave device does not demodulate the information of the preferred frequency, indicating that the sound wave device cannot demodulate the first group of sound waves by using the receiving frequency, that is, the sound wave device cannot communicate with the mobile terminal at the receiving frequency, step S14 is performed. Conversely, if the acoustic wave device demodulates the information of the preferred frequency, indicating that the acoustic wave device can demodulate the first set of acoustic waves by using the receiving frequency, that is, the acoustic wave device can communicate with the mobile terminal at the receiving frequency, step S15 is performed.
- Step S14 The mobile terminal applies information modulation of the preferred frequency to the second group of sound waves.
- the second group of sound waves have at least two stages of sound wave frequencies different from the first group of sound waves, and the second group of sound waves have the same number of sound wave frequencies as the first group of sound waves, or may be different.
- the second group of sound waves in this embodiment is an upper level having at least two stages of sound wave frequencies different from the first group of sound waves, that is, as long as the sound wave device cannot obtain the information of the preferred frequency by the receiving frequency demodulation, step S11 is repeated.
- the mobile terminal loads the information of the preferred frequency into the sound waves of the other segment frequencies and issues it until step S13 is not performed after step S13, but performs step S15.
- Step S15 The mobile terminal and the acoustic wave device communicate by the preferred frequency and the receiving frequency.
- the present embodiment transmits sound waves having different frequencies one or more times between the mobile terminal as the sender and the sound wave device as the receiver until the acoustic wave device can adopt the advance
- the specified receiving frequency demodulates the first group of sound waves sent by the mobile terminal to obtain information about the preferred frequency of the receivable sound wave of the first group of sound wave loaded mobile terminals, and the receiving frequency and the preferred frequency are used as communication between the two parties.
- the sonic frequency enables self-adaptation of the acoustic frequency between communication terminals, improves compatibility between communication terminals, and improves the success rate of data transmission between communication terminals.
- the communication method of this embodiment includes the following steps:
- Step S21 The mobile terminal applies modulation of the first model of its own and the preferred frequency of the receivable acoustic wave to the first group of sound waves having at least two frequency frequencies.
- Step S22 The acoustic wave device takes the first set of sound waves emitted by the mobile terminal, and demodulates the first group of sound waves by using a preset receiving frequency.
- the mobile terminal detects whether it has been adapted with other terminals (devices) before the current communication, that is, whether the mobile terminal detects whether the first model of the mobile terminal and the model of the other terminal and the frequency of the sound wave receivable by the mobile terminal are Other acoustic frequencies have a mapping relationship. If there is a mapping relationship, it means that the mobile terminal has been adapted before. At this time, it is preferable to select the adapted sound wave frequency as the demodulation frequency, that is, the receiving frequency demodulates the first group of sound waves sent by the mobile terminal.
- Step S23 determining whether the sound wave device demodulates information of the first model and the preferred frequency.
- step S24 is performed. Conversely, if the acoustic wave device demodulates the information of the first model and the preferred frequency, indicating that the acoustic wave device can demodulate the first group of sound waves by using the receiving frequency, that is, the acoustic wave device can communicate with the mobile terminal at the receiving frequency, then the steps are performed. S25.
- Step S24 The mobile terminal applies information modulation of the first model and the preferred frequency to the second group of sound waves.
- Step S25 The acoustic wave device applies modulation of its own second model and receiving frequency to the sound wave having the preferred frequency.
- Step S26 The mobile terminal and the acoustic wave device communicate by the preferred frequency and the receiving frequency.
- the mapping relationship between the second model and the first model and the receiving frequency and the preferred frequency is further recorded, so that the mobile terminal and the acoustic wave device directly perform the adaptation of the acoustic wave frequency according to the mapping relationship in the subsequent communication.
- the mobile terminal and the acoustic wave device both record the mapping relationship.
- the communication system of this embodiment includes a mobile terminal 10 and a sound wave device 20.
- the mobile terminal 10 includes a first microphone 11, a first digital/analog conversion module 12, a first modem module 13, and a first
- the horn 14 and the first matching module 15 include a second microphone 21, a second digital/analog conversion module 22, a second modem module 23, a second horn 24, and a second matching module 25.
- this embodiment :
- the first digital/analog conversion module 12 is configured to perform digital-to-analog conversion of information of a preferred frequency of the receivable sound wave of the mobile terminal 10.
- the first modem module 13 is configured to apply information modulation of a preferred frequency onto a first set of sound waves having at least two frequency segments.
- the first horn 14 is used to emit a first set of sound waves. among them,
- the first group of sound waves has three different frequencies
- the first modem module 13 of the mobile terminal 10 is configured to apply information modulation of the preferred frequency to the first group of sound waves having three different frequencies
- the first speaker 14 is used for A first group of sound waves having three different frequencies is sequentially emitted.
- the second microphone 21 of the acoustic wave device 20 is used to capture the first set of sound waves emitted by the first speaker 14 of the mobile terminal 10.
- the second digital/analog conversion module 22 is configured to perform analog-to-digital conversion on the first set of sound waves recorded by the second microphone 21.
- the second modem module 23 is configured to demodulate the first group of sound waves that are taken by the second microphone 21 and that are analog-to-digital converted by the second digital-to-analog conversion module 22, with a predetermined frequency of reception.
- the first modem module 13 of the mobile terminal 10 is further configured to apply the information modulation of the preferred frequency to the second group of sound waves, wherein the second The group of acoustic waves has at least two frequency frequencies that are different from the first set of acoustic waves.
- the mobile terminal 10 and the acoustic wave device 20 communicate by the preferred frequency and the receiving frequency.
- the first modem module 13 of the mobile terminal 10 can also be used to connect the mobile terminal 10
- the information of the first model and the preferred frequency is modulated and applied to a first group of sound waves having three different frequencies, and the first speaker 14 is used to sequentially emit the first group of sound waves having three different frequencies.
- the first modem module 13 of the mobile terminal 10 is further configured to apply the information modulation of the preferred frequency to the second group of sound waves. .
- the mobile terminal 10 and the acoustic device 20 communicate by the preferred frequency and the receiving frequency.
- the second matching module 25 is configured to record the mapping relationship between the first model, the second model, and the preferred frequency and the receiving frequency, so that the mobile terminal 10 and the acoustic wave device 20 directly perform the acoustic wave frequency according to the mapping relationship in later communication. Adaptation. further,
- the second modem module 23 is configured to modulate information of the second model of the acoustic wave device 20 and the received frequency onto sound waves having a preferred frequency.
- the second horn 24 is for emitting sound waves having a preferred frequency.
- the first microphone 11 of the mobile terminal 10 is used to capture sound waves having a preferred frequency from the second horn 24 of the acoustic wave device 20.
- the first modem module 13 is further configured to demodulate the sound wave with a preferred frequency to obtain information of the second model and the receiving frequency.
- the first matching module 15 is configured to record a mapping relationship between the first model, the second model, and the preferred frequency and the receiving frequency, so that the mobile terminal 10 and the acoustic wave device 20 directly perform the sound wave frequency according to the mapping relationship in later communication. Match.
- Each module of the communication system of this embodiment corresponds to the steps described in the foregoing embodiment of the communication method, and thus has the same advantageous effects.
- the implementation of the communication system described above is merely illustrative, and the division of the described modules is only a logical function division, and may be further divided in actual implementation, such as the mobile terminal 10 and
- the sound wave device 20 can respectively set the first and second determining modules to determine whether the second modem module 23 demodulates the information of the first model and the preferred frequency, or sets the first and second processing modules for Control each module to perform corresponding operations, or multiple modules can be combined or integrated into another system, or These features can be ignored or not executed.
- the coupling or communication connection of the modules to each other may be through some interfaces, or may be electrical or other forms.
- FIG. 4 is a diagram of a preferred example of an acoustic wave system in which communication conflicts exist.
- the mobile terminal 1 establishes a connection with the sound wave device, and the sound wave device continues to receive the sound wave communication access information sent by the mobile terminal 2 in the gap of the communication, and cannot guarantee data communication with only one mobile terminal at the same time, and the mobile terminal 2 sends the data.
- the sound wave communication access information causes a communication conflict between the sound wave device and the data transmission of the mobile terminal.
- the acoustic wave device communicates with the mobile terminal by using the frequency of its own channel. Since the frequency of the own channel is often different from the several preferred frequencies supported by the mobile terminal, the stability of data communication is low.
- the present invention provides the following embodiments.
- FIG. 5 is a flowchart of implementing an acoustic wave receiving method according to an embodiment of the present invention, which is described in detail as follows:
- step S201 the plurality of channels of the acoustic wave device respectively receive the acoustic wave communication access information in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal.
- the number of the channels is not limited herein, and may be one channel or two channels or multiple channels.
- the format of the voice communication access information may be set by the user or may be the system default.
- the format of the acoustic communication access information is “0x00, 0x13, 0x00, 0x00, 0x01, X1, X2, X3...”, where X1, X2, X3...XN are several preferred frequencies, and the number of preferred frequencies is based on the number of channels. N depends.
- the acoustic wave device is a device that can receive a mobile communication based on audio communication, for example, a sound wave KEY.
- the method of fixed frequency modulation is to sequentially poll the frequency points in the frequency table, and several channels respectively select the frequency communication corresponding to the frequency points according to the frequency points to receive the sound wave communication access information.
- Each channel is frequency modulated according to the frequency of the fixed frequency modulation to obtain the corresponding frequency.
- the three-channel number is taken as an example.
- Table 1 is a three-channel FM meter for acoustic equipment.
- the acoustic wave device waits for receiving by cyclically waiting for reception, and the three-channel frequency modulation picture starts from high frequency: 16KHZ-15KHZ-14KHZ, 13KHZ-12KHZ-11KHZ, 10KHZ-9KHZ-8KHZ, 7KHZ-6KHZ-5KHZ cycle.
- the frequency of channel 1 is 16KHZ
- the frequency of channel 2 is 15KHZ
- the frequency of channel 3 is 14KHZ.
- the polling frequency is 2
- Channel 1 frequency modulation gets the corresponding frequency to be 13KHZ
- channel 2 frequency modulation to get the corresponding frequency is 12KHZ
- channel 3 frequency modulation to get the corresponding frequency is 11KHZ.
- the three-channel cyclic frequency modulation method traverses the entire frequency band, which can effectively reduce the time for device access.
- step S202 after receiving the sound wave communication access information, establishing a connection between the plurality of channels and the plurality of channels of the mobile terminal respectively;
- the frequency obtained by fixed frequency modulation of several channels of the acoustic wave device at this time establishes a connection between several channels and several channels of the mobile terminal.
- step S203 the plurality of preferred frequencies are extracted, and the plurality of preferred frequencies are configured as a transmission frequency and a reception frequency of the several channels; wherein the plurality of preferred frequencies are configured as the plurality of channels
- the implementation frequency of the transmission frequency and reception frequency is as follows:
- X1, X2, X3...XN are several preferred frequencies, which are respectively configured as channel 1, channel 2, channel 3, ... The frequency of channel N.
- the three-channel number is taken as an example.
- the channel 1 frequency modulation obtains the corresponding frequency is 16KHZ
- the channel 2 frequency modulation obtains the corresponding frequency is 15KHZ
- the channel 3 When the frequency is 14KHZ, if several received frequencies are 9KHZ, 12KHZ, 8KHZ, 9KHZ is the transmission frequency and receiving frequency of channel 1, and 12KHZ is configured as the transmission frequency and receiving frequency of channel 2.
- Configure 8KHZ as the transmission frequency and reception frequency of channel 3.
- the preferred frequency is the preferred frequency of the mobile terminal in one channel. There may be several channels in the mobile terminal. The mobile terminal may have multiple frequencies in one channel.
- the mobile terminal may have channel A, channel B, and channel C.
- channel A there are three frequencies A1, A2, and A3.
- the preferred frequency is the A2 frequency
- the A2 frequency is the preferred frequency of the A channel
- the channel B has three frequencies B1, B2, B3, and B4. If the preferred frequency is the B2 frequency, then the B2 frequency is the B channel.
- the frequency C has three frequencies C1, C2, C3, and C4. If the preferred frequency is the C2 frequency, then the C2 frequency is the preferred frequency of the C channel.
- the plurality of preferred frequencies are configured as the transmission frequency and the receiving frequency of the plurality of channels, so that the frequency of the acoustic wave device is communicated with the mobile terminal by using the frequency of the channel, and the frequency of the channel itself is often supported by the mobile terminal.
- the preferred frequencies are different, resulting in a problem of low stability of data transmission, which improves the stability of the system.
- step S204 the plurality of channels send the acoustic wave communication response information by using the configured transmission frequency
- the plurality of channels send the voice communication response information by using the configured sending frequency, specifically:
- Each of the plurality of channels transmits acoustic wave communication response information at a preferred one of the plurality of preferred frequencies configured;
- Each of the plurality of channels transmits acoustic wave communication response information at the configured preferred frequency.
- step S205 the processing thread of the sound wave communication access information is turned off to shield the sound wave communication access information.
- the processing thread of the acoustic communication access information is closed, and the response to the acoustic communication access information is turned off until the communication of the currently connected device ends.
- This embodiment describes an implementation process of unmasking the acoustic wave communication access information after the processing thread that closes the sound wave communication access information is closed to shield the sound wave communication access information, as follows:
- the processing thread of the acoustic communication access information is restored to cancel the shielding of the acoustic communication access information.
- the acoustic wave device detects whether the connection is disconnected, and after the connection is disconnected, the processing thread of the acoustic wave communication access information is restored to cancel the shielding of the acoustic wave communication access information.
- the sound wave device can be connected to other mobile terminals in response to the sound wave communication access information.
- FIG. 6 is a flowchart of a preferred implementation of the acoustic wave receiving method according to an embodiment of the present invention, which is described in detail as follows:
- the sound wave device configures a frequency of the receiving channel
- step S302 whether there is mobile terminal access, if yes, step S304 is performed, otherwise step S303 is performed;
- the frequency of the channel is set to a preferred communication frequency of the mobile terminal, and the processing thread of the acoustic communication access information is closed;
- FIG. 7 is a flowchart of implementing an acoustic wave sending method according to an embodiment of the present invention, which is described in detail as follows:
- step S401 a plurality of channels of the mobile terminal respectively select a transmission frequency by means of random frequency modulation
- the plurality of channels of the mobile terminal respectively select a transmission frequency by using a random frequency modulation method, specifically:
- Each of the channels of the mobile terminal acquires a random number in a pre-stored random number table
- a frequency corresponding to the frequency point is selected as a transmission frequency of each of the channels
- the frequency table includes the frequency point and a frequency corresponding to the frequency point.
- the signal is transmitted by using a random frequency modulation method, and the transmission frequency is frequency-modulated according to a random number table built in each mobile device.
- the random number is subjected to modulo operation of the number of frequency points to obtain a modulus value.
- the three-channel number is taken as an example.
- Table 2 is a mobile terminal three-channel FM table.
- the frequencies corresponding to the three channels are 9KHZ, 12KHZ, and 8KHZ.
- the length of the random number table is an integer multiple of 3 to ensure each frequency modulation. You can get the correct frequency.
- the random frequency modulation method since the random frequency modulation method is adopted, several channels use random frequencies, so the probability that several channels are simultaneously the same as the frequency used for the sound wave device transaction transmission is very small, thereby greatly reducing other mobile terminals in the transmission process. Access interference generated during access. If the channel is the same, the transaction communication fails, and the retransmission is used to ensure the correctness and integrity of the transmission.
- the plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
- the selected transmission frequency broadcasts the acoustic wave communication access information.
- step S403 the plurality of channels respectively detect whether the acoustic communication response information is received
- step S404 if yes, stop transmitting the sonic communication access information, respectively establishing a connection between the plurality of channels and a plurality of channels of the acoustic wave device, and if not, continuing to transmit the sonic communication access information;
- the supported preferred frequencies are respectively configured as the transmission frequency and the reception frequency of the several channels.
- the plurality of preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the plurality of channels, so that the communication link stability between the mobile terminal and the acoustic wave device is established after the mobile terminal establishes a connection with the acoustic wave device. high.
- FIG. 8 is a flow chart of a preferred implementation of the method for transmitting sound waves according to an embodiment of the present invention, which is described in detail as follows:
- step S504 whether there is a response, and if so, step S506 is performed, and if not, step S505 is performed;
- S506 configured as a preferred frequency band, and transacts the communication.
- FIG. 9 is a structural diagram of an acoustic wave receiving apparatus according to an embodiment of the present invention.
- the apparatus may be operated in an acoustic wave device, and the acoustic wave device includes but is not limited to an acoustic key.
- the acoustic wave device includes but is not limited to an acoustic key.
- the parts related to the present embodiment are shown.
- the sound wave receiving device comprises:
- the frequency receiving unit 61 is configured to receive the acoustic wave communication access information in a fixed frequency modulation manner, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- a first channel establishing unit 62 configured to establish, after receiving the sound wave communication access information, a connection between the plurality of channels and the plurality of channels of the mobile terminal;
- a first preferred frequency configuration unit 63 configured to extract the plurality of preferred frequencies, and configure the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
- the sound wave communication response information transmitting unit 64 is configured to send the sound wave communication response information by using the configured transmission frequency of the plurality of channels;
- the sound wave communication access information shielding unit 65 is configured to close the processing thread of the sound wave communication access information to shield the sound wave communication access information.
- the method further includes:
- the acoustic wave communication response information detecting unit detects whether the connection is disconnected
- a recovery unit that detects a processing thread that restores the sound wave communication access information after the connection is disconnected to unmask the sound wave communication access information.
- the preferred frequency configuration unit specifically for each of the plurality of channels, transmits sound wave communication response information at a preferred frequency among the plurality of configured preferred frequencies;
- Each of the plurality of channels transmits acoustic wave communication response information at the configured preferred frequency.
- FIG. 10 is a structural diagram of an acoustic wave transmitting apparatus according to an embodiment of the present invention, which may be operated in a mobile terminal. For the convenience of explanation, only the parts related to the present embodiment are shown.
- the sound wave transmitting device includes:
- the transmission frequency selection unit 71 is configured to select a transmission frequency in a random frequency modulation manner by using a plurality of channels respectively;
- the sound wave communication access information transmitting unit 72 is configured to send the sound wave communication access information by using the selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- the sound wave communication response information detecting unit 73 is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;
- the second channel establishing unit 74 is configured to: if yes, stop sending the sound wave communication access information, respectively establish a connection between the plurality of channels and the plurality of channels of the sound wave device, and if not, continue to send the sound wave communication access information;
- a second preferred frequency configuration unit 75 configured to respectively configure a plurality of supported frequencies as described The transmission frequency and reception frequency of several channels.
- the sending frequency selecting unit specifically includes:
- a random number obtaining subunit for each of the channels obtaining a random number in a pre-stored random number table
- a frequency point selection subunit configured to select a frequency point according to the obtained random number
- a frequency selection subunit configured to select a frequency corresponding to the frequency point as a transmission frequency of each of the channels in a pre-stored frequency table
- the frequency table includes the frequency point and a frequency corresponding to the frequency point.
- FIG. 11 is a flow chart of better information interaction between the acoustic wave receiving device and the acoustic wave transmitting device in the acoustic wave system according to the embodiment of the present invention.
- the sound wave receiving device is built in the sound wave device, and the sound wave transmitting device is built in the mobile terminal. Therefore, it can be understood that the execution body of the method corresponding to the sound wave receiving device is the sound wave device, and the execution body of the method corresponding to the sound wave transmitting device is the mobile terminal.
- the working principle of the acoustic wave system is as follows:
- the plurality of channels respectively use the selected transmission frequency to transmit the acoustic communication access information to the acoustic wave device, and the acoustic communication access information includes several channels supported by the mobile terminal. a number of preferred frequencies;
- the plurality of channels respectively detect whether the acoustic wave communication response information sent by the acoustic wave device is received;
- the plurality of channels respectively receive the sound wave communication access information sent by the mobile terminal in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
- acoustic wave device configuring a plurality of preferred frequencies supported by the mobile terminal as the transmission frequency and the receiving frequency of the plurality of channels of the mobile device, and transmitting the acoustic communication response information to the mobile terminal by using the configured transmission frequency;
- the plurality of preferred frequencies supported by the mobile terminal are respectively configured as the transmission frequency and the reception frequency of the several channels.
- the sound wave device and the mobile terminal After the sound wave device establishes a connection with the mobile terminal, the sound wave device and the mobile terminal set the respective channels of the sound wave system to the preferred frequency of the mobile terminal by handshaking, and the data communication between the sound wave device and the mobile terminal uses the preferred frequency for data transmission.
- the interference of communication conflicts when other devices are accessed during the transmission process is greatly reduced, and the correctness of the audio system communication is ensured by the retransmission mechanism.
- the acoustic device After the acoustic system handshake is successful, the acoustic device enters the connected state to shield the acoustic communication access information until the transaction ends, to eliminate the interference of other devices transmitting the access command during the communication gap.
- the mobile device 1 and the sound wave device are successfully connected, the fixed frequency is used for transaction communication, and if the mobile device 2 sends an access signal during the communication, because of the three The channels use random frequencies. Therefore, the probability that the three channels are the same as the frequency used for the transmission of the sonic equipment is very small. If the channel is the same, the transaction communication fails, and the sound wave device uses the retransmission method to ensure the correctness and integrity of the transmission. If the mobile device 2 transmits an access signal during the communication gap, since the acoustic wave device has turned off the response to the access command, the acoustic device communication is not affected.
- the present invention can be implemented by means of software plus necessary general hardware.
- the program may be stored in a readable storage medium such as a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register, or the like.
- the storage medium is located in a memory, the processor reads information in the memory, and in conjunction with its hardware, performs the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention is applied to the technical field of sound wave communications. Provided are a sound wave sending method, receiving method, sending device and receiving device and system. The sound wave receiving method comprises: receiving, by several channels of a sound wave apparatus, sound wave communication access information in a fixed frequency modulation manner, the sound wave communication access information comprising several preferred frequencies supported by several channels of a mobile terminal; after the sound wave communication access information is received, respectively establishing connections for the several channels and the several channels of the mobile terminal; extracting the several preferred frequencies, and respectively configuring the several preferred frequencies as sending frequencies and receiving frequencies of the several channels; sending, by the several channels, sound wave communication response information at the configured several preferred frequencies; and closing a processing thread of the sound wave communication access information, so as to shield the sound wave communication access information. The present invention also improves the stability of data communication while guaranteeing that the data communication is conducted between only two apparatuses in a sound wave system.
Description
本发明属于声波通信技术领域,尤其涉及声波发送方法、接收方法、发送装置、接收装置及系统。The invention belongs to the technical field of acoustic wave communication, and particularly relates to a sound wave transmitting method, a receiving method, a transmitting device, a receiving device and a system.
当前生活中,将声波应用于终端之间的数据传输技术相比较于传统的近场通讯技术,因其具有可靠性高、安全性强、数据传输速度快、成本低等特点,已普遍应用于商业通讯领域。In the current life, the data transmission technology that applies sound waves between terminals is compared with the traditional near-field communication technology. Because of its high reliability, strong security, fast data transmission speed and low cost, it has been widely used. Business communication field.
在进行基于声波的数据传输即进行声波通信时,首先由发起声波通信的一方(即发送方)发送声波,由响应声波通信的一方(即接收方)接收声波,从而建立声波通信机制。这里,声波通信的发起方和响应方,可以是具有声波发送和接收功能的任何终端,均包括:智能手机、笔记本电脑、便携式通信装置、PDA(Personal Digital Assistant,个人数字助理或平板电脑)以及音频门禁装置、音频识别与交易支付终端Key等。为了便于区分,以下,将发起声波通信的一方称为“移动终端”,将响应声波通信的一方称为“声波设备”。When performing sound wave-based data transmission, that is, acoustic wave communication, first, the sound wave is transmitted by the party (ie, the sender) that initiates the sound wave communication, and the sound wave is received by the party (ie, the receiver) that responds to the sound wave communication, thereby establishing a sound wave communication mechanism. Here, the initiator and responder of the sonic communication may be any terminal having a sound wave transmitting and receiving function, including: a smartphone, a notebook computer, a portable communication device, a PDA (Personal Digital Assistant, a personal digital assistant or a tablet), and Audio access control device, audio recognition and transaction payment terminal Key. In order to facilitate the distinction, in the following, a party that initiates voice communication is referred to as a "mobile terminal", and a party that responds to voice communication is referred to as a "sound wave device."
现有技术中,移动终端和声波设备必须以相对应的固定且已知的声波频率的发送和接收声波,才能建立通信机制,即移动终端发送声波的固定频率与声波设备接收声波的固定频率相匹配,声波设备发送声波的固定频率与移动终端接收声波的固定频率相匹配,二者才能建立声波通信机制。移动终端和声波设备之间缺少自主适配机制,从而导致它们之间的兼容性较差,并且数据传输的成功率较低。
In the prior art, the mobile terminal and the acoustic wave device must transmit and receive sound waves at corresponding fixed and known acoustic wave frequencies to establish a communication mechanism, that is, the fixed frequency at which the mobile terminal transmits the acoustic wave and the fixed frequency at which the acoustic wave device receives the acoustic wave. Matching, the fixed frequency of the sound wave transmitted by the sound wave device matches the fixed frequency of the sound wave received by the mobile terminal, and the two can establish a sound wave communication mechanism. There is a lack of autonomous adaptation mechanism between the mobile terminal and the acoustic wave device, resulting in poor compatibility between them and a low success rate of data transmission.
发明内容Summary of the invention
本发明实施例的一个目的在于提供一种声波发送方法,能够进行移动终端和声波设备之间声波频率的自主适配,提高通讯终端之间的兼容性以及数据传输的成功率。该声波发送方法,包括:An object of the embodiments of the present invention is to provide a method for transmitting sound waves, which can perform autonomous adaptation of sound waves between a mobile terminal and an acoustic wave device, improve compatibility between communication terminals, and success rate of data transmission. The sound wave sending method includes:
移动终端若干个通道分别选择一组声波频率作为发送频率;A plurality of channels of the mobile terminal respectively select a set of sound wave frequencies as the transmission frequency;
所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
所述若干个通道分别检测是否接收到声波通信应答信息;The plurality of channels respectively detect whether the acoustic communication response information is received;
若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,以下一组发送频率继续发送所述声波通信接入信息;If yes, the sending of the sonic communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the following group of transmission frequencies continues to transmit the sonic communication access information;
分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
本发明实施例的另一目的在于提供一种声波接收方法,旨在解决声波设备与移动终端通信时,无法保证同一时间仅与一台移动终端进行数据通信,导致数据通信的过程存在通信冲突,以及采用自身通道的频率与移动终端通信,导致数据通信的稳定性低的问题。所述声波接收方法,包括:Another object of the present invention is to provide an acoustic wave receiving method, which is intended to solve the problem that when a sound wave device communicates with a mobile terminal, it cannot guarantee that data communication is performed only with one mobile terminal at the same time, resulting in a communication conflict in the process of data communication. And the frequency of communicating with the mobile terminal using the frequency of its own channel, resulting in a problem of low stability of data communication. The sound wave receiving method includes:
声波设备若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels of the acoustic wave device receive the acoustic wave communication access information in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;After receiving the acoustic communication access information, establishing a connection between the plurality of channels and the plurality of channels of the mobile terminal respectively;
提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;Extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
所述若干个通道采用配置的发送频率发送声波通信应答信息;The plurality of channels transmit sound wave communication response information by using a configured transmission frequency;
关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。The processing thread of the sound wave communication access information is turned off to shield the sound wave communication access information.
本发明实施例的另一目的在于提供一种声波发送方法,包括:
Another object of the embodiments of the present invention is to provide a method for transmitting sound waves, including:
移动终端若干个通道分别以随机调频的方式选择发送频率;A plurality of channels of the mobile terminal respectively select a transmission frequency by means of random frequency modulation;
所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
所述若干个通道分别检测是否接收到声波通信应答信息;The plurality of channels respectively detect whether the acoustic communication response information is received;
若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;If yes, the sending of the sound wave communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the sound wave communication access information is continuously sent;
分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
本发明实施例的另一目的在于提供一种声波接收装置,包括:Another object of the embodiments of the present invention is to provide an acoustic wave receiving apparatus, including:
优选频率接收单元,用于若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;Preferably, the frequency receiving unit is configured to receive the acoustic wave communication access information in a fixed frequency modulation manner, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
第一通道建立单元,用于在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;a first channel establishing unit, configured to establish, after receiving the sound wave communication access information, a connection between the plurality of channels and the plurality of channels of the mobile terminal;
第一优选频率配置单元,用于提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;a first preferred frequency configuration unit, configured to extract the plurality of preferred frequencies, and configure the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
声波通信应答信息发送单元,用于所述若干个通道采用配置的发送频率发送声波通信应答信息;The sound wave communication response information sending unit is configured to send the sound wave communication response information by using the configured transmission frequency of the plurality of channels;
声波通信接入信息屏蔽单元,用于关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。The sound wave communication access information shielding unit is configured to close the processing thread of the sound wave communication access information to shield the sound wave communication access information.
本发明实施例的另一目的在于提供一种声波发送装置,包括:Another object of the embodiments of the present invention is to provide an acoustic wave transmitting apparatus, including:
发送频率选择单元,用于若干个通道分别以随机调频的方式选择发送频率;a transmission frequency selection unit, configured to select a transmission frequency by using a random frequency modulation method for each of the plurality of channels;
声波通信接入信息发送单元,用于所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;
The sound wave communication access information sending unit is configured to send the sound wave communication access information by using the selected sending frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
声波通信应答信息检测单元,用于所述若干个通道分别检测是否接收到声波通信应答信息;The sound wave communication response information detecting unit is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;
第二通道建立单元,用于若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;a second channel establishing unit, configured to stop transmitting the sound wave communication access information, and establish a connection between the plurality of channels and the sound wave device, and if not, continue to send the sound wave communication access information;
第二优选频率配置单元,用于分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The second preferred frequency configuration unit is configured to separately configure a plurality of preferred frequencies supported by the transmission frequency and the reception frequency of the several channels.
本发明实施例的另一目的在于提供一种声波系统,包括上述的声波接收装置以及上述的声波发送装置。Another object of an embodiment of the present invention is to provide an acoustic wave system including the above-described acoustic wave receiving device and the above-described acoustic wave transmitting device.
在本发明实施例中,提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率,防止在声波系统数据传输期间其他移动终端加入产生的同频干扰,关闭所述声波通信接入信息的处理线程,防止通信间隙其他移动终端的声波通信接入信息对声波系统的干扰,从而保证一个声波系统中仅两台设备之间进行数据通信,并提高了数据通信的稳定性。In the embodiment of the present invention, the plurality of preferred frequencies are extracted, and the plurality of preferred frequencies are configured as the transmission frequency and the receiving frequency of the several channels to prevent other mobile terminals from joining during the data transmission of the acoustic system. Frequency interference, closing the processing thread of the sound wave communication access information, preventing interference of the sound wave communication access information of other mobile terminals in the communication gap to the sound wave system, thereby ensuring data communication between only two devices in one sound wave system, and Improve the stability of data communication.
图1是本发明实施例一的通讯方法的流程图;1 is a flowchart of a communication method according to Embodiment 1 of the present invention;
图2是本发明实施例二的通讯方法的流程图;2 is a flowchart of a communication method according to Embodiment 2 of the present invention;
图3是本发明优选实施例的通讯系统的原理框图;3 is a schematic block diagram of a communication system in accordance with a preferred embodiment of the present invention;
图4是存在通信冲突的声波系统的较佳样例图;4 is a diagram showing a preferred example of an acoustic wave system in which communication conflicts exist;
图5是本发明实施例提供的声波接收方法的实现流程图;FIG. 5 is a flowchart of implementing an acoustic wave receiving method according to an embodiment of the present invention;
图6是本发明实施例提供的声波接收方法在实际应用中较佳的实现流程图;FIG. 6 is a flow chart showing a preferred implementation of the acoustic wave receiving method according to an embodiment of the present invention;
图7是本发明实施例提供的声波发送方法的实现流程图;7 is a flowchart of implementing an acoustic wave sending method according to an embodiment of the present invention;
图8是本发明实施例提供的声波发送方法在实际应用中较佳的实现流程图;
FIG. 8 is a flow chart showing a preferred implementation of the method for transmitting sound waves according to an embodiment of the present invention;
图9是本发明实施例提供的声波接收装置的结构图;FIG. 9 is a structural diagram of an acoustic wave receiving apparatus according to an embodiment of the present invention; FIG.
图10是本发明实施例提供的声波发送装置的结构图;FIG. 10 is a structural diagram of an acoustic wave transmitting apparatus according to an embodiment of the present invention; FIG.
图11是本发明实施例提供的声波系统中声波接收装置和声波发送装置之间较佳的信息交互流程图。FIG. 11 is a flow chart showing a better information interaction between the acoustic wave receiving device and the acoustic wave transmitting device in the acoustic wave system according to the embodiment of the present invention.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例中出现的术语“移动终端”和“声波设备”,仅仅用以区分声波通信中发起通信的一方和接收通信的一方,并非对发起或接收通信任何一方终端(或设备)类型的限制。“移动终端”和“声波设备”都可以是智能手机、笔记本电脑、便携式通信装置、PDA(Personal Digital Assistant,个人数字助理或平板电脑)以及音频门禁装置、音频识别与交易支付终端Key等。基于此,本发明涉及的声波通讯方法可适用于门禁刷卡、当面交易支付、身份识别认证等。The terms "mobile terminal" and "sound wave device" appearing in the embodiments of the present invention are only used to distinguish between the party that initiates the communication in the voice communication and the party that receives the communication, and are not the type of the terminal (or device) that initiates or receives the communication. limit. Both the "mobile terminal" and the "sound wave device" may be a smart phone, a notebook computer, a portable communication device, a PDA (Personal Digital Assistant, a personal digital assistant or a tablet), an audio access control device, an audio recognition and transaction payment terminal Key, and the like. Based on this, the acoustic wave communication method related to the present invention can be applied to access control card swiping, face-to-face transaction payment, identity authentication, and the like.
实施例一Embodiment 1
参阅图1所示,本实施例中的通讯方法包括以下步骤:步骤S11:移动终端将可接收声波的优选频率的信息,调制加载于具有至少两段频率的第一组声波上发出。这里,至少两段频率的第一组声波的频率为移动终端的发送频率。Referring to FIG. 1, the communication method in this embodiment includes the following steps: Step S11: The mobile terminal transmits information about a preferred frequency of the receivable sound wave, and the modulation is applied to the first group of sound waves having at least two frequency segments. Here, the frequency of the first group of sound waves of at least two frequency frequencies is the transmission frequency of the mobile terminal.
需要指出的是,在对优选频率的信息进行调制前,还需要进行数据编码。调制后的优选频率的信息具体表现为一组编码调制数据,因此必须将该组编码调制数据进行数模转换以获取对应的模拟信息,然后将模拟信息加载于第一组声波上依次发出,当然也可以将第一组声波同时发出。It should be noted that data encoding is also required before modulating the information of the preferred frequency. The modulated preferred frequency information is embodied as a set of coded modulated data, so the set of coded modulated data must be digital-to-analog converted to obtain corresponding analog information, and then the analog information is loaded onto the first set of sound waves, which are of course issued. It is also possible to emit the first set of sound waves simultaneously.
本实施例优选第一组声波具有三段声波频率,且为非二次谐波频率。当然,在其它实施例中,本领域技术人员还可以设置第一组声波具有其它数量段的频
率,本发明对此并不予以限制。In this embodiment, it is preferred that the first group of acoustic waves have three segments of acoustic frequencies and are non-second harmonic frequencies. Of course, in other embodiments, those skilled in the art may also set the frequency of the first group of sound waves to have other numbers of segments.
The rate is not limited by the present invention.
将第一组声波发出后,移动终端打开自身的录音设备,例如麦克风,准备接收声波设备以声波形式反馈的信息。After the first set of sound waves is emitted, the mobile terminal turns on its own recording device, such as a microphone, to prepare to receive information that the acoustic wave device feeds back in the form of sound waves.
步骤S12:声波设备录取移动终端发出的第一组声波,并采用预先指定的接收频率对第一组声波进行解调。Step S12: The acoustic wave device takes the first set of sound waves emitted by the mobile terminal, and demodulates the first group of sound waves by using a preset receiving frequency.
声波设备通过自身的录音设备,例如麦克风,依次录取移动终端发出的第一组声波,然后对接收到的第一组声波进行模数转换,再对模数转换后的第一组声波进行解调解码。The sound wave device sequentially records the first group of sound waves emitted by the mobile terminal through its own recording device, such as a microphone, and then performs analog-to-digital conversion on the received first group of sound waves, and then demodulates the first group of sound waves after the analog-to-digital conversion. decoding.
解调是调制的相反过程,即是从具有三段不同频率(高频)的第一组声波中不失真地获取加载的优选频率的信息,解调时必须选取解调频率。Demodulation is the reverse process of modulation, that is, information obtained from a first set of sound waves having three different frequencies (high frequencies) without distortion is obtained, and the demodulation frequency must be selected during demodulation.
步骤S13:判断声波设备是否解调得到优选频率的信息。Step S13: It is judged whether the sound wave device demodulates the information of the preferred frequency.
其中,若声波设备未解调得到优选频率的信息,表示声波设备采用接收频率无法对第一组声波进行解调,即声波设备无法以接收频率与移动终端进行通信,则执行步骤S14。相反地,若声波设备解调得到优选频率的信息,表示声波设备采用接收频率可以对第一组声波进行解调,即声波设备能够以接收频率与移动终端进行通信,则执行步骤S15。If the sound wave device does not demodulate the information of the preferred frequency, indicating that the sound wave device cannot demodulate the first group of sound waves by using the receiving frequency, that is, the sound wave device cannot communicate with the mobile terminal at the receiving frequency, step S14 is performed. Conversely, if the acoustic wave device demodulates the information of the preferred frequency, indicating that the acoustic wave device can demodulate the first set of acoustic waves by using the receiving frequency, that is, the acoustic wave device can communicate with the mobile terminal at the receiving frequency, step S15 is performed.
步骤S14:移动终端将优选频率的信息调制加载于第二组声波上发出。Step S14: The mobile terminal applies information modulation of the preferred frequency to the second group of sound waves.
其中,第二组声波具有与第一组声波不相同的至少两段声波频率,并且第二组声波具有的声波频率的段数与第一组声波的可以相同,也可以不相同。本实施例的第二组声波是对具有与第一组声波不相同的至少两段声波频率的上位,也就是说,只要声波设备无法通过接收频率解调得到优选频率的信息,则重复步骤S11移动终端将优选频率的信息加载于其他段频率的声波并发出,直至步骤S13之后不再执行步骤S14,而是执行步骤S15。Wherein, the second group of sound waves have at least two stages of sound wave frequencies different from the first group of sound waves, and the second group of sound waves have the same number of sound wave frequencies as the first group of sound waves, or may be different. The second group of sound waves in this embodiment is an upper level having at least two stages of sound wave frequencies different from the first group of sound waves, that is, as long as the sound wave device cannot obtain the information of the preferred frequency by the receiving frequency demodulation, step S11 is repeated. The mobile terminal loads the information of the preferred frequency into the sound waves of the other segment frequencies and issues it until step S13 is not performed after step S13, but performs step S15.
步骤S15:移动终端和声波设备之间通过优选频率和接收频率进行通信。Step S15: The mobile terminal and the acoustic wave device communicate by the preferred frequency and the receiving frequency.
基于上述,可知本实施例通过作为发送方的移动终端与作为接收方的声波设备之间的一次或多次具有不同频率的声波通信,直至声波设备能够采用预先
指定的接收频率对移动终端发出的第一组声波进行解调,得到该第一组声波加载的移动终端的可接收声波的优选频率的信息,则将接收频率和优选频率作为双方之间通信的声波频率,从而能够进行通讯终端之间声波频率的自主适配,提高通讯终端之间的兼容性,进而提高通讯终端之间数据传输的成功率。Based on the above, it can be seen that the present embodiment transmits sound waves having different frequencies one or more times between the mobile terminal as the sender and the sound wave device as the receiver until the acoustic wave device can adopt the advance
The specified receiving frequency demodulates the first group of sound waves sent by the mobile terminal to obtain information about the preferred frequency of the receivable sound wave of the first group of sound wave loaded mobile terminals, and the receiving frequency and the preferred frequency are used as communication between the two parties. The sonic frequency enables self-adaptation of the acoustic frequency between communication terminals, improves compatibility between communication terminals, and improves the success rate of data transmission between communication terminals.
实施例二Embodiment 2
参阅图2所示,在第一实施例所描述的基础上,本实施例的通讯方法包括以下步骤:Referring to FIG. 2, based on the description of the first embodiment, the communication method of this embodiment includes the following steps:
步骤S21:移动终端将自身的第一型号和可接收声波的优选频率的信息,调制加载于具有至少两段频率的第一组声波上发出。Step S21: The mobile terminal applies modulation of the first model of its own and the preferred frequency of the receivable acoustic wave to the first group of sound waves having at least two frequency frequencies.
步骤S22:声波设备录取移动终端发出的第一组声波,并采用预先指定的接收频率对第一组声波进行解调。Step S22: The acoustic wave device takes the first set of sound waves emitted by the mobile terminal, and demodulates the first group of sound waves by using a preset receiving frequency.
本实施例优选移动终端检测其在本次通信之前是否与其它终端(设备)进行过适配,即移动终端检测自身的第一型号是否与其它终端的型号、移动终端可接收声波的频率是否与其它声波频率具有映射关系。若具有映射关系,则表示移动终端之前进行过适配,此时优选选取适配的声波频率作为解调频率,即接收频率对移动终端发出的第一组声波进行解调。In this embodiment, it is preferred that the mobile terminal detects whether it has been adapted with other terminals (devices) before the current communication, that is, whether the mobile terminal detects whether the first model of the mobile terminal and the model of the other terminal and the frequency of the sound wave receivable by the mobile terminal are Other acoustic frequencies have a mapping relationship. If there is a mapping relationship, it means that the mobile terminal has been adapted before. At this time, it is preferable to select the adapted sound wave frequency as the demodulation frequency, that is, the receiving frequency demodulates the first group of sound waves sent by the mobile terminal.
步骤S23:判断声波设备是否解调得到第一型号和优选频率的信息。Step S23: determining whether the sound wave device demodulates information of the first model and the preferred frequency.
若声波设备未解调得到第一型号和优选频率的信息,表示声波设备采用接收频率无法对第一组声波进行解调,即声波设备无法以接收频率与移动终端进行通信,则执行步骤S24。相反地,若声波设备解调得到第一型号和优选频率的信息,表示声波设备采用接收频率可以对第一组声波进行解调,即声波设备能够以接收频率与移动终端进行通信,则执行步骤S25。If the sound wave device does not demodulate the information of the first model and the preferred frequency, indicating that the sound wave device cannot demodulate the first group of sound waves by using the receiving frequency, that is, the sound wave device cannot communicate with the mobile terminal at the receiving frequency, step S24 is performed. Conversely, if the acoustic wave device demodulates the information of the first model and the preferred frequency, indicating that the acoustic wave device can demodulate the first group of sound waves by using the receiving frequency, that is, the acoustic wave device can communicate with the mobile terminal at the receiving frequency, then the steps are performed. S25.
步骤S24:移动终端将第一型号和优选频率的信息调制加载于第二组声波上发出。Step S24: The mobile terminal applies information modulation of the first model and the preferred frequency to the second group of sound waves.
步骤S25:声波设备将自身的第二型号和接收频率的信息,调制加载于具有优选频率的声波上发出。
Step S25: The acoustic wave device applies modulation of its own second model and receiving frequency to the sound wave having the preferred frequency.
步骤S26:移动终端和声波设备之间通过优选频率和接收频率进行通信。Step S26: The mobile terminal and the acoustic wave device communicate by the preferred frequency and the receiving frequency.
本步骤进一步记录第二型号、第一型号与接收频率、优选频率之间的映射关系,以便于移动终端和声波设备在以后的通信时根据映射关系直接进行声波频率的适配。基于该目的,本实施例优选移动终端和声波设备均记录有该映射关系。In this step, the mapping relationship between the second model and the first model and the receiving frequency and the preferred frequency is further recorded, so that the mobile terminal and the acoustic wave device directly perform the adaptation of the acoustic wave frequency according to the mapping relationship in the subsequent communication. For this purpose, in this embodiment, it is preferred that the mobile terminal and the acoustic wave device both record the mapping relationship.
图3是本发明的通讯系统的优选实施例的原理框图。请参阅图3所示,本实施例的通讯系统包括移动终端10和声波设备20,移动终端10包括第一麦克风11、第一数/模转换模块12、第一调制解调模块13、第一喇叭14以及第一匹配模块15,声波设备20包括第二麦克风21、第二数/模转换模块22、第二调制解调模块23、第二喇叭24以及第二匹配模块25。在本实施例中:3 is a schematic block diagram of a preferred embodiment of a communication system of the present invention. Referring to FIG. 3, the communication system of this embodiment includes a mobile terminal 10 and a sound wave device 20. The mobile terminal 10 includes a first microphone 11, a first digital/analog conversion module 12, a first modem module 13, and a first The horn 14 and the first matching module 15 include a second microphone 21, a second digital/analog conversion module 22, a second modem module 23, a second horn 24, and a second matching module 25. In this embodiment:
第一数/模转换模块12用于对移动终端10的可接收声波的优选频率的信息进行数模转换。第一调制解调模块13用于将优选频率的信息调制加载于具有至少两段频率的第一组声波上。第一喇叭14用于将第一组声波发出。其中,The first digital/analog conversion module 12 is configured to perform digital-to-analog conversion of information of a preferred frequency of the receivable sound wave of the mobile terminal 10. The first modem module 13 is configured to apply information modulation of a preferred frequency onto a first set of sound waves having at least two frequency segments. The first horn 14 is used to emit a first set of sound waves. among them,
第一组声波具有三段不同的频率,移动终端10的第一调制解调模块13用于将优选频率的信息调制加载于具有三段不同频率的第一组声波上,第一喇叭14用于将具有三段不同频率的第一组声波依次发出。The first group of sound waves has three different frequencies, and the first modem module 13 of the mobile terminal 10 is configured to apply information modulation of the preferred frequency to the first group of sound waves having three different frequencies, and the first speaker 14 is used for A first group of sound waves having three different frequencies is sequentially emitted.
声波设备20的第二麦克风21用于录取移动终端10的第一喇叭14发出的第一组声波。第二数/模转换模块22用于对第二麦克风21录取的第一组声波进行模数转换。第二调制解调模块23用于采用预先指定的接收频率对第二麦克风21录取的且经过第二数/模转换模块22模数转换后的第一组声波进行解调。The second microphone 21 of the acoustic wave device 20 is used to capture the first set of sound waves emitted by the first speaker 14 of the mobile terminal 10. The second digital/analog conversion module 22 is configured to perform analog-to-digital conversion on the first set of sound waves recorded by the second microphone 21. The second modem module 23 is configured to demodulate the first group of sound waves that are taken by the second microphone 21 and that are analog-to-digital converted by the second digital-to-analog conversion module 22, with a predetermined frequency of reception.
若第二调制解调模块23未解调得到优选频率的信息,则移动终端10的第一调制解调模块13进一步用于将优选频率的信息调制加载于第二组声波上发出,其中第二组声波具有与第一组声波不相同的至少两段频率。If the second modem module 23 does not demodulate the information of the preferred frequency, the first modem module 13 of the mobile terminal 10 is further configured to apply the information modulation of the preferred frequency to the second group of sound waves, wherein the second The group of acoustic waves has at least two frequency frequencies that are different from the first set of acoustic waves.
若第二调制解调模块23解调得到优选频率的信息,则移动终端10和声波设备20之间通过优选频率和接收频率进行通信。If the second modem module 23 demodulates the information of the preferred frequency, the mobile terminal 10 and the acoustic wave device 20 communicate by the preferred frequency and the receiving frequency.
进一步地,移动终端10的第一调制解调模块13还可用于将移动终端10
的第一型号和优选频率的信息调制加载于具有三段不同频率的第一组声波上,第一喇叭14用于将具有三段不同频率的第一组声波依次发出。Further, the first modem module 13 of the mobile terminal 10 can also be used to connect the mobile terminal 10
The information of the first model and the preferred frequency is modulated and applied to a first group of sound waves having three different frequencies, and the first speaker 14 is used to sequentially emit the first group of sound waves having three different frequencies.
若第二调制解调模块23未解调得到第一型号和优选频率的信息,则移动终端10的第一调制解调模块13进一步用于将优选频率的信息调制加载于第二组声波上发出。If the second modem module 23 does not demodulate the information of the first model and the preferred frequency, the first modem module 13 of the mobile terminal 10 is further configured to apply the information modulation of the preferred frequency to the second group of sound waves. .
若第二调制解调模块23解调得到第一型号和优选频率的信息,则移动终端10和声波设备20之间通过优选频率和接收频率进行通信。If the second modem module 23 demodulates the information of the first model and the preferred frequency, the mobile terminal 10 and the acoustic device 20 communicate by the preferred frequency and the receiving frequency.
而后,第二匹配模块25用于记录第一型号、第二型号与优选频率、接收频率之间的映射关系,以便于移动终端10和声波设备20在以后的通信时根据映射关系直接进行声波频率的适配。进一步地,Then, the second matching module 25 is configured to record the mapping relationship between the first model, the second model, and the preferred frequency and the receiving frequency, so that the mobile terminal 10 and the acoustic wave device 20 directly perform the acoustic wave frequency according to the mapping relationship in later communication. Adaptation. further,
第二调制解调模块23用于将声波设备20的第二型号和接收频率的信息调制加载于具有优选频率的声波上。第二喇叭24用于将具有优选频率的声波发出。The second modem module 23 is configured to modulate information of the second model of the acoustic wave device 20 and the received frequency onto sound waves having a preferred frequency. The second horn 24 is for emitting sound waves having a preferred frequency.
移动终端10的第一麦克风11用于录取声波设备20的第二喇叭24发出的具有优选频率的声波。第一调制解调模块13进一步用于采用优选频率对声波进行解调,得到第二型号和接收频率的信息。The first microphone 11 of the mobile terminal 10 is used to capture sound waves having a preferred frequency from the second horn 24 of the acoustic wave device 20. The first modem module 13 is further configured to demodulate the sound wave with a preferred frequency to obtain information of the second model and the receiving frequency.
第一匹配模块15用于记录第一型号、第二型号与优选频率、接收频率之间的映射关系,以便于移动终端10和声波设备20在以后的通信时根据映射关系直接进行声波频率的适配。The first matching module 15 is configured to record a mapping relationship between the first model, the second model, and the preferred frequency and the receiving frequency, so that the mobile terminal 10 and the acoustic wave device 20 directly perform the sound wave frequency according to the mapping relationship in later communication. Match.
本实施例的通讯系统的各个模块对应执行上述通讯方法实施例所描述的步骤,因此具有相同的有益效果。另外,应该理解到,以上所描述的通讯系统的实施方式仅仅是示意性的,所描述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如移动终端10和声波设备20可以分别对应设置第一和第二判断模块,用以判断第二调制解调模块23是否解调得到第一型号和优选频率的信息,或者设置第一和第二处理模块,用以控制各个模块进行对应的操作,又或者多个模块可以结合或者可以集成到另一个系统中,或一
些特征可以忽略,或不执行。另外,模块相互之间的耦合或通信连接可以是通过一些接口,也可以是电性或其它的形式。Each module of the communication system of this embodiment corresponds to the steps described in the foregoing embodiment of the communication method, and thus has the same advantageous effects. In addition, it should be understood that the implementation of the communication system described above is merely illustrative, and the division of the described modules is only a logical function division, and may be further divided in actual implementation, such as the mobile terminal 10 and The sound wave device 20 can respectively set the first and second determining modules to determine whether the second modem module 23 demodulates the information of the first model and the preferred frequency, or sets the first and second processing modules for Control each module to perform corresponding operations, or multiple modules can be combined or integrated into another system, or
These features can be ignored or not executed. In addition, the coupling or communication connection of the modules to each other may be through some interfaces, or may be electrical or other forms.
另一方面,在声波系统中,声波设备与移动终端通信时,无法保证同一时间仅与一台移动终端进行数据通信,数据通信的过程存在通信冲突。On the other hand, in the acoustic wave system, when the acoustic wave device communicates with the mobile terminal, it cannot guarantee that only one mobile terminal performs data communication at the same time, and there is a communication conflict in the process of data communication.
为便于说明,参考图4,图4是存在通信冲突的声波系统的较佳样例图。For convenience of explanation, reference is made to FIG. 4, which is a diagram of a preferred example of an acoustic wave system in which communication conflicts exist.
其中,移动终端1与声波设备建立连接,声波设备在通信的间隙中继续接收移动终端2发送的声波通信接入信息,无法保证同一时间仅与一台移动终端进行数据通信,移动终端2发送的声波通信接入信息,会对声波设备与该移动终端的数据传输产生通信冲突。The mobile terminal 1 establishes a connection with the sound wave device, and the sound wave device continues to receive the sound wave communication access information sent by the mobile terminal 2 in the gap of the communication, and cannot guarantee data communication with only one mobile terminal at the same time, and the mobile terminal 2 sends the data. The sound wave communication access information causes a communication conflict between the sound wave device and the data transmission of the mobile terminal.
此外,声波设备采用自身通道的频率与移动终端通信,由于自身通道的频率往往与移动终端支持的若干个优选频率不同,数据通信的稳定性低。In addition, the acoustic wave device communicates with the mobile terminal by using the frequency of its own channel. Since the frequency of the own channel is often different from the several preferred frequencies supported by the mobile terminal, the stability of data communication is low.
为解决这些问题,本发明提供以下实施例。To solve these problems, the present invention provides the following embodiments.
实施例三Embodiment 3
参考图5,图5是本发明实施例提供的声波接收方法的实现流程图,详述如下:Referring to FIG. 5, FIG. 5 is a flowchart of implementing an acoustic wave receiving method according to an embodiment of the present invention, which is described in detail as follows:
在步骤S201中,声波设备若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率。In step S201, the plurality of channels of the acoustic wave device respectively receive the acoustic wave communication access information in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal.
其中,若干个通道的数量在此不做限制,可以为一个通道,也可以为两个通道或者多个通道。The number of the channels is not limited herein, and may be one channel or two channels or multiple channels.
其中,声波通信接入信息的格式,可以为用户自设,也可以为系统默认。例如,声波通信接入信息的格式为“0x00,0x13,0x00,0x00,0x01,X1,X2,X3…”,其中X1,X2,X3…XN为若干个优选频率,优选频率个数根据通道数N而定。The format of the voice communication access information may be set by the user or may be the system default. For example, the format of the acoustic communication access information is “0x00, 0x13, 0x00, 0x00, 0x01, X1, X2, X3...”, where X1, X2, X3...XN are several preferred frequencies, and the number of preferred frequencies is based on the number of channels. N depends.
其中,声波设备为可以接收基于音频通信的移动终端的设备,例如,声波KEY。
Wherein, the acoustic wave device is a device that can receive a mobile communication based on audio communication, for example, a sound wave KEY.
其中,固定调频的方式为在频率表中依次轮询频点,若干个通道分别根据频点,选择与频点相对应的频率接收声波通信接入信息。The method of fixed frequency modulation is to sequentially poll the frequency points in the frequency table, and several channels respectively select the frequency communication corresponding to the frequency points according to the frequency points to receive the sound wave communication access information.
每个通道根据固定调频的频率,调频得到相应的频率。Each channel is frequency modulated according to the frequency of the fixed frequency modulation to obtain the corresponding frequency.
为便于说明,以三通道数为例。For convenience of explanation, the three-channel number is taken as an example.
参考表1,表1是声波设备三通道调频表。Referring to Table 1, Table 1 is a three-channel FM meter for acoustic equipment.
表一Table I
频段Frequency band | 通道1Channel 1 | 通道2Channel 2 | 通道3Channel 3 |
11 | 16KHZ16KHZ | 15KHZ15KHZ | 14KHZ14KHZ |
22 | 13KHZ13KHZ | 12KHZ12KHZ | 11KHZ11KHZ |
33 | 10KHZ10KHZ | 9KHZ9KHZ | 8KHZ8KHZ |
44 | 7KHZ7KHZ | 6KHZ6KHZ | 5KHZ5KHZ |
其中,声波设备在等待接收时通过定时进行循环调频等待,从高频开始三个通道调频图为:16KHZ-15KHZ-14KHZ,13KHZ-12KHZ-11KHZ,10KHZ-9KHZ-8KHZ,7KHZ-6KHZ-5KHZ依次循环。Among them, the acoustic wave device waits for receiving by cyclically waiting for reception, and the three-channel frequency modulation picture starts from high frequency: 16KHZ-15KHZ-14KHZ, 13KHZ-12KHZ-11KHZ, 10KHZ-9KHZ-8KHZ, 7KHZ-6KHZ-5KHZ cycle.
例如,当调轮询频点为1,通道1调频得到相应的频率为16KHZ、通道2调频得到相应的频率为15KHZ、通道3调频得到相应的频率为14KHZ,当调轮询频点为2,通道1调频得到相应的频率为13KHZ、通道2调频得到相应的频率为12KHZ、通道3调频得到相应的频率为11KHZ。三个通道循环调频的方式遍历整个频段,可以有效的减少设备接入的时间。For example, when the polling frequency is 1, the frequency of channel 1 is 16KHZ, the frequency of channel 2 is 15KHZ, and the frequency of channel 3 is 14KHZ. When the polling frequency is 2, Channel 1 frequency modulation gets the corresponding frequency to be 13KHZ, channel 2 frequency modulation to get the corresponding frequency is 12KHZ, channel 3 frequency modulation to get the corresponding frequency is 11KHZ. The three-channel cyclic frequency modulation method traverses the entire frequency band, which can effectively reduce the time for device access.
在步骤S202中,在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;In step S202, after receiving the sound wave communication access information, establishing a connection between the plurality of channels and the plurality of channels of the mobile terminal respectively;
其中,当接收到声波通信接入信息时,通过此时声波设备若干个通道固定调频得到的频率,分别建立若干个通道与所述移动终端若干个通道的连接。When the acoustic communication access information is received, the frequency obtained by fixed frequency modulation of several channels of the acoustic wave device at this time establishes a connection between several channels and several channels of the mobile terminal.
在步骤S203中,提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;其中,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率的实施过程如下:In step S203, the plurality of preferred frequencies are extracted, and the plurality of preferred frequencies are configured as a transmission frequency and a reception frequency of the several channels; wherein the plurality of preferred frequencies are configured as the plurality of channels The implementation frequency of the transmission frequency and reception frequency is as follows:
X1,X2,X3…XN为若干个优选频率,分别配置为通道1、通道2、通道3、…
通道N的频率。X1, X2, X3...XN are several preferred frequencies, which are respectively configured as channel 1, channel 2, channel 3, ...
The frequency of channel N.
为便于说明,以三通道数为例。For convenience of explanation, the three-channel number is taken as an example.
例如,当声波设备通道1、通道2、通道3,以固定调频的方式,当调轮询频点为1,通道1调频得到相应的频率为16KHZ、通道2调频得到相应的频率为15KHZ、通道3调频得到相应的频率为14KHZ时,若接收到的若干个优选频率分别为9KHZ,12KHZ,8KHZ,配置9KHZ为通道1的发送频率以及接收频率,配置12KHZ为通道2的发送频率以及接收频率,配置8KHZ为通道3的发送频率以及接收频率。需要进行说明的是,优选频率是移动终端在一个通道中优选的频率。移动终端可以存在若干个通道,移动终端在一个通道中可以存在多个频率,例如,移动终端可以存在通道A、通道B、通道C,通道A中有A1、A2、A3这三个频率,如果优选的频率是A2频率,那么这个A2频率就是A通道的优选频率,通道B中有B1、B2、B3、B4这三个频率,如果优选的频率是B2频率,那么这个B2频率就是B通道的优选频率,通道C中有C1、C2、C3、C4这三个频率,如果优选的频率是C2频率,那么这个C2频率就是C通道的优选频率。For example, when the acoustic wave device channel 1, channel 2, channel 3, in a fixed frequency modulation mode, when the polling frequency is 1, the channel 1 frequency modulation obtains the corresponding frequency is 16KHZ, the channel 2 frequency modulation obtains the corresponding frequency is 15KHZ, the channel 3 When the frequency is 14KHZ, if several received frequencies are 9KHZ, 12KHZ, 8KHZ, 9KHZ is the transmission frequency and receiving frequency of channel 1, and 12KHZ is configured as the transmission frequency and receiving frequency of channel 2. Configure 8KHZ as the transmission frequency and reception frequency of channel 3. It should be noted that the preferred frequency is the preferred frequency of the mobile terminal in one channel. There may be several channels in the mobile terminal. The mobile terminal may have multiple frequencies in one channel. For example, the mobile terminal may have channel A, channel B, and channel C. In channel A, there are three frequencies A1, A2, and A3. The preferred frequency is the A2 frequency, then the A2 frequency is the preferred frequency of the A channel, and the channel B has three frequencies B1, B2, B3, and B4. If the preferred frequency is the B2 frequency, then the B2 frequency is the B channel. Preferably, the frequency C has three frequencies C1, C2, C3, and C4. If the preferred frequency is the C2 frequency, then the C2 frequency is the preferred frequency of the C channel.
其中,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率,避免了出现声波设备采用自身通道的频率与移动终端通信,由于自身通道的频率往往与移动终端支持的若干个优选频率不同,导致数据传输的稳定性低的问题,提高了系统的稳定性。The plurality of preferred frequencies are configured as the transmission frequency and the receiving frequency of the plurality of channels, so that the frequency of the acoustic wave device is communicated with the mobile terminal by using the frequency of the channel, and the frequency of the channel itself is often supported by the mobile terminal. The preferred frequencies are different, resulting in a problem of low stability of data transmission, which improves the stability of the system.
在步骤S204中,所述若干个通道采用配置的发送频率发送声波通信应答信息;In step S204, the plurality of channels send the acoustic wave communication response information by using the configured transmission frequency;
其中,所述若干个通道采用配置的发送频率发送声波通信应答信息,具体为:The plurality of channels send the voice communication response information by using the configured sending frequency, specifically:
所述若干个通道中每个通道均以配置的所述若干个优选频率中的优选频率,发送声波通信应答信息;或者,Each of the plurality of channels transmits acoustic wave communication response information at a preferred one of the plurality of preferred frequencies configured; or
所述若干个通道中每个通道以配置的所述优选频率,发送声波通信应答信息。
Each of the plurality of channels transmits acoustic wave communication response information at the configured preferred frequency.
在步骤S205中,关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。In step S205, the processing thread of the sound wave communication access information is turned off to shield the sound wave communication access information.
其中,连接成功后,关闭所述声波通信接入信息的处理线程,关闭对声波通信接入信息的响应,直到当前连接设备通信结束。After the connection is successful, the processing thread of the acoustic communication access information is closed, and the response to the acoustic communication access information is turned off until the communication of the currently connected device ends.
在本实施例中,通过关闭声波通信接入信息的处理线程,保证了同一时间仅与一台移动终端进行数据通信,解决了数据通信的过程存在通信冲突,大大降低了在传输过程中其他设备接入时通信冲突的干扰。In this embodiment, by closing the processing thread of the acoustic wave communication access information, it is ensured that only one mobile terminal performs data communication at the same time, which solves the communication conflict in the process of data communication, and greatly reduces other devices in the transmission process. Interference in communication conflicts during access.
实施例四Embodiment 4
本实施例描述了在关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息之后,取消屏蔽声波通信接入信息的实施过程,详述如下:This embodiment describes an implementation process of unmasking the acoustic wave communication access information after the processing thread that closes the sound wave communication access information is closed to shield the sound wave communication access information, as follows:
检测所述连接是否断开;Detecting whether the connection is disconnected;
当所述连接断开后,恢复所述声波通信接入信息的处理线程,以取消屏蔽声波通信接入信息。After the connection is disconnected, the processing thread of the acoustic communication access information is restored to cancel the shielding of the acoustic communication access information.
在本实施例中,声波设备检测连接是否断开,连接断开后,恢复声波通信接入信息的处理线程,以取消屏蔽声波通信接入信息。使得声波设备可以响应声波通信接入信息,进而可以接入其它的移动终端。In this embodiment, the acoustic wave device detects whether the connection is disconnected, and after the connection is disconnected, the processing thread of the acoustic wave communication access information is restored to cancel the shielding of the acoustic wave communication access information. The sound wave device can be connected to other mobile terminals in response to the sound wave communication access information.
实施例五Embodiment 5
参考图6,图6是本发明实施例提供的声波接收方法在实际应用中较佳的实现流程图,详述如下:Referring to FIG. 6, FIG. 6 is a flowchart of a preferred implementation of the acoustic wave receiving method according to an embodiment of the present invention, which is described in detail as follows:
S301,声波设备配置接收通道的频率;S301. The sound wave device configures a frequency of the receiving channel;
S302,是否有移动终端接入,是则执行步骤S304,否则执行步骤S303;S302, whether there is mobile terminal access, if yes, step S304 is performed, otherwise step S303 is performed;
S303,声波设备跳到下一个频点;S303, the sound wave device jumps to the next frequency point;
S304,通道的频率设置为移动终端的优选通信频率,并关闭声波通信接入信息的处理线程;
S304, the frequency of the channel is set to a preferred communication frequency of the mobile terminal, and the processing thread of the acoustic communication access information is closed;
S305,交易通信。S305, transaction communication.
实施例六Embodiment 6
参考图7,图7是本发明实施例提供的声波发送方法的实现流程图,详述如下:Referring to FIG. 7, FIG. 7 is a flowchart of implementing an acoustic wave sending method according to an embodiment of the present invention, which is described in detail as follows:
在步骤S401中,移动终端若干个通道分别以随机调频的方式选择发送频率;In step S401, a plurality of channels of the mobile terminal respectively select a transmission frequency by means of random frequency modulation;
其中,所述移动终端若干个通道分别以随机调频的方式选择发送频率,具体为:The plurality of channels of the mobile terminal respectively select a transmission frequency by using a random frequency modulation method, specifically:
移动终端每个所述通道,在预存的随机数表中获取随机数;Each of the channels of the mobile terminal acquires a random number in a pre-stored random number table;
根据获取到的随机数,选择频点;Select a frequency point according to the obtained random number;
在预存的频率表中,选择与所述频点对应的频率作为每个所述通道的发送频率;In the pre-stored frequency table, a frequency corresponding to the frequency point is selected as a transmission frequency of each of the channels;
其中,频率表中包括所述频点以及与所述频点对应的频率。The frequency table includes the frequency point and a frequency corresponding to the frequency point.
移动设备在寻找接入时,采用随机调频方式进行信号传输,传输频率根据每个移动设备内置的随机数表进行调频。When the mobile device is looking for access, the signal is transmitted by using a random frequency modulation method, and the transmission frequency is frequency-modulated according to a random number table built in each mobile device.
根据获取到的随机数,将随机数进行频点数量的取模运算,得到模值。例如,若传输频段为5KHZ~16KHZ,则取随机数X进行12的取模运算的到模值M=X%12,根据模值查表得到当前通道的发送频率。According to the obtained random number, the random number is subjected to modulo operation of the number of frequency points to obtain a modulus value. For example, if the transmission frequency band is 5KHZ to 16KHZ, the random number X is used to perform the modulo operation of the modulo value M=X% 12, and the transmission frequency of the current channel is obtained according to the modulo value table.
为便于说明,以三通道数为例。For convenience of explanation, the three-channel number is taken as an example.
参考表2,表2是移动终端三通道调频表。Referring to Table 2, Table 2 is a mobile terminal three-channel FM table.
表2Table 2
例如,若通道1,2,3对应的随机数分别为0x34,0x67,0x5a,则三个通道对应的频率9KHZ,12KHZ,8KHZ.随机数表的长度为3的整数倍,以保证每次调频可以得到正确的频率。当随机数表遍历完成时,由移动设备选择退出或者继续从第一个数开始进行新一轮的寻声波key。For example, if the random numbers corresponding to channels 1, 2, and 3 are 0x34, 0x67, and 0x5a, respectively, the frequencies corresponding to the three channels are 9KHZ, 12KHZ, and 8KHZ. The length of the random number table is an integer multiple of 3 to ensure each frequency modulation. You can get the correct frequency. When the random number table traversal is completed, the mobile device chooses to exit or continue to start a new round of vocalization key from the first number.
在本实施例中,由于采用随机调频方式,若干个通道均使用随机的频率,因此若干个通道同时与声波设备交易传输所用频率相同的概率非常小,因此大大降低了在传输过程中其他移动终端接入时产生的接入干扰。如果有通道相同导致交易通信失败,马上采用重传的方式保证传输的正确性及完整性。In this embodiment, since the random frequency modulation method is adopted, several channels use random frequencies, so the probability that several channels are simultaneously the same as the frequency used for the sound wave device transaction transmission is very small, thereby greatly reducing other mobile terminals in the transmission process. Access interference generated during access. If the channel is the same, the transaction communication fails, and the retransmission is used to ensure the correctness and integrity of the transmission.
在步骤S402中,所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;In step S402, the plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
其中,选择的发送频率广播声波通信接入信息。Wherein, the selected transmission frequency broadcasts the acoustic wave communication access information.
在步骤S403中,所述若干个通道分别检测是否接收到声波通信应答信息;In step S403, the plurality of channels respectively detect whether the acoustic communication response information is received;
在步骤S404中,若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;In step S404, if yes, stop transmitting the sonic communication access information, respectively establishing a connection between the plurality of channels and a plurality of channels of the acoustic wave device, and if not, continuing to transmit the sonic communication access information;
在步骤S405中,分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。In step S405, the supported preferred frequencies are respectively configured as the transmission frequency and the reception frequency of the several channels.
在本实施例中,分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率,使得移动终端与声波设备建立连接后,移动终端与声波设备之间的通信链路稳定性高。In this embodiment, the plurality of preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the plurality of channels, so that the communication link stability between the mobile terminal and the acoustic wave device is established after the mobile terminal establishes a connection with the acoustic wave device. high.
实施例七Example 7
参考图8,图8是本发明实施例提供的声波发送方法在实际应用中较佳的实现流程图,详述如下:Referring to FIG. 8, FIG. 8 is a flow chart of a preferred implementation of the method for transmitting sound waves according to an embodiment of the present invention, which is described in detail as follows:
S501,获得随机数表;S501, obtaining a random number table;
S502,取随机数,并根据随机数进行通道频率配置;S502, taking a random number, and performing channel frequency configuration according to the random number;
S503,发送声波通信接入信息;S503. Send sound wave communication access information.
S504,是否有应答,若是,执行步骤S506,若否,执行步骤S505;S504, whether there is a response, and if so, step S506 is performed, and if not, step S505 is performed;
S505,取下一组随机数,跳到下一组频点;S505, taking a set of random numbers and jumping to the next set of frequency points;
S506,配置为优选频段,交易通信。S506, configured as a preferred frequency band, and transacts the communication.
实施例八Example eight
参考图9,图9是本发明实施例提供的声波接收装置的结构图,该装置可以运行于声波设备中,声波设备包括但不限于声波key。为了便于说明,仅示出了与本实施例相关的部分。Referring to FIG. 9, FIG. 9 is a structural diagram of an acoustic wave receiving apparatus according to an embodiment of the present invention. The apparatus may be operated in an acoustic wave device, and the acoustic wave device includes but is not limited to an acoustic key. For the convenience of explanation, only the parts related to the present embodiment are shown.
该声波接收装置,包括:The sound wave receiving device comprises:
优选频率接收单元61,用于若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;Preferably, the frequency receiving unit 61 is configured to receive the acoustic wave communication access information in a fixed frequency modulation manner, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
第一通道建立单元62,用于在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;a first channel establishing unit 62, configured to establish, after receiving the sound wave communication access information, a connection between the plurality of channels and the plurality of channels of the mobile terminal;
第一优选频率配置单元63,用于提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;a first preferred frequency configuration unit 63, configured to extract the plurality of preferred frequencies, and configure the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
声波通信应答信息发送单元64,用于所述若干个通道采用配置的发送频率发送声波通信应答信息;The sound wave communication response information transmitting unit 64 is configured to send the sound wave communication response information by using the configured transmission frequency of the plurality of channels;
声波通信接入信息屏蔽单元65,用于关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。The sound wave communication access information shielding unit 65 is configured to close the processing thread of the sound wave communication access information to shield the sound wave communication access information.
进一步地,在该声波接收装置中,还包括:
Further, in the sound wave receiving device, the method further includes:
声波通信应答信息检测单元,检测所述连接是否断开;The acoustic wave communication response information detecting unit detects whether the connection is disconnected;
恢复单元,检测当所述连接断开后,恢复所述声波通信接入信息的处理线程,以取消屏蔽所述声波通信接入信息。And a recovery unit that detects a processing thread that restores the sound wave communication access information after the connection is disconnected to unmask the sound wave communication access information.
进一步地,在该声波接收装置中,所述优选频率配置单元,具体用于所述若干个通道中每个通道均以配置的所述若干个优选频率中的优选频率,发送声波通信应答信息;或者,Further, in the sound wave receiving device, the preferred frequency configuration unit, specifically for each of the plurality of channels, transmits sound wave communication response information at a preferred frequency among the plurality of configured preferred frequencies; or,
所述若干个通道中每个通道以配置的所述优选频率,发送声波通信应答信息。Each of the plurality of channels transmits acoustic wave communication response information at the configured preferred frequency.
本发明实施例提供的装置可以应用在前述对应的方法实施例中,详情参见上述实施例的描述,在此不再赘述。The device provided by the embodiment of the present invention may be applied to the foregoing corresponding method embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
实施例九Example nine
参考图10,图10是本发明实施例提供的声波发送装置的结构图,该装置可以运行于移动终端中。为了便于说明,仅示出了与本实施例相关的部分。Referring to FIG. 10, FIG. 10 is a structural diagram of an acoustic wave transmitting apparatus according to an embodiment of the present invention, which may be operated in a mobile terminal. For the convenience of explanation, only the parts related to the present embodiment are shown.
该声波发送装置,包括:The sound wave transmitting device includes:
发送频率选择单元71,用于若干个通道分别以随机调频的方式选择发送频率;The transmission frequency selection unit 71 is configured to select a transmission frequency in a random frequency modulation manner by using a plurality of channels respectively;
声波通信接入信息发送单元72,用于所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The sound wave communication access information transmitting unit 72 is configured to send the sound wave communication access information by using the selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
声波通信应答信息检测单元73,用于所述若干个通道分别检测是否接收到声波通信应答信息;The sound wave communication response information detecting unit 73 is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;
第二通道建立单元74,用于若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;The second channel establishing unit 74 is configured to: if yes, stop sending the sound wave communication access information, respectively establish a connection between the plurality of channels and the plurality of channels of the sound wave device, and if not, continue to send the sound wave communication access information;
第二优选频率配置单元75,用于分别配置支持的若干个优选频率为所述
若干个通道的发送频率以及接收频率。a second preferred frequency configuration unit 75, configured to respectively configure a plurality of supported frequencies as described
The transmission frequency and reception frequency of several channels.
进一步地,在该声波发送装置中,所述发送频率选择单元,具体包括:Further, in the sound wave transmitting device, the sending frequency selecting unit specifically includes:
随机数获取子单元,用于每个所述通道,在预存的随机数表中获取随机数;a random number obtaining subunit for each of the channels, obtaining a random number in a pre-stored random number table;
频点选择子单元,用于根据获取到的随机数,选择频点;a frequency point selection subunit, configured to select a frequency point according to the obtained random number;
频率选择子单元,用于在预存的频率表中,选择与所述频点对应的频率作为每个所述通道的发送频率;a frequency selection subunit, configured to select a frequency corresponding to the frequency point as a transmission frequency of each of the channels in a pre-stored frequency table;
其中,频率表中包括所述频点以及与所述频点对应的频率。The frequency table includes the frequency point and a frequency corresponding to the frequency point.
本发明实施例提供的装置可以应用在前述对应的方法实施例中,详情参见上述实施例的描述,在此不再赘述。The device provided by the embodiment of the present invention may be applied to the foregoing corresponding method embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
实施例十Example ten
参考图11,图11是本发明实施例提供的声波系统中声波接收装置和声波发送装置之间较佳的信息交互流程图。Referring to FIG. 11, FIG. 11 is a flow chart of better information interaction between the acoustic wave receiving device and the acoustic wave transmitting device in the acoustic wave system according to the embodiment of the present invention.
其中,声波接收装置内置于声波设备中,声波发送装置内置于移动终端中,因此可以理解声波接收装置对应的方法的执行主体为声波设备,声波发送装置对应的方法的执行主体为移动终端。The sound wave receiving device is built in the sound wave device, and the sound wave transmitting device is built in the mobile terminal. Therefore, it can be understood that the execution body of the method corresponding to the sound wave receiving device is the sound wave device, and the execution body of the method corresponding to the sound wave transmitting device is the mobile terminal.
其中,声波系统的工作原理如下:Among them, the working principle of the acoustic wave system is as follows:
1、在移动终端中,若干个通道分别以随机调频的方式选择发送频率;1. In the mobile terminal, several channels respectively select a transmission frequency by means of random frequency modulation;
2、在移动终端中,在选择发送频率后,所述若干个通道分别采用选择的发送频率,向声波设备发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;2. In the mobile terminal, after selecting the transmission frequency, the plurality of channels respectively use the selected transmission frequency to transmit the acoustic communication access information to the acoustic wave device, and the acoustic communication access information includes several channels supported by the mobile terminal. a number of preferred frequencies;
3、在移动终端中,所述若干个通道分别检测是否接收到声波设备发送的声波通信应答信息;3. In the mobile terminal, the plurality of channels respectively detect whether the acoustic wave communication response information sent by the acoustic wave device is received;
4、在声波设备中,若干个通道分别以固定调频的方式,接收移动终端发送的声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;
4. In the acoustic wave device, the plurality of channels respectively receive the sound wave communication access information sent by the mobile terminal in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
5、在声波设备中,在接收到所述声波通信接入信息后,建立所述若干个通道与所述移动终端的若干个通道的连接;5. In the acoustic device, after receiving the acoustic communication access information, establishing a connection between the plurality of channels and the plurality of channels of the mobile terminal;
6、在声波设备中,提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;6. In the acoustic wave device, extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;
7、在声波设备中,配置移动终端支持的若干个优选频率为自身的若干个通道的发送频率以及接收频率,并采用配置的发送频率向移动终端发送声波通信应答信息;7. In the acoustic wave device, configuring a plurality of preferred frequencies supported by the mobile terminal as the transmission frequency and the receiving frequency of the plurality of channels of the mobile device, and transmitting the acoustic communication response information to the mobile terminal by using the configured transmission frequency;
8、当移动终端接收到声波通信应答信息后,分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。8. After the mobile terminal receives the acoustic communication response information, the plurality of preferred frequencies supported by the mobile terminal are respectively configured as the transmission frequency and the reception frequency of the several channels.
其中,在声波设备与移动终端建立连接后,声波设备与移动终端通过握手设置声波系统的各个通道设置为移动终端的优选频率,声波设备与移动终端之后的数据通信均采用优选频率进行数据传输,大大降低了在传输过程中其他设备接入时通信冲突的干扰,且通过重传机制保证音频系统通信的正确性。After the sound wave device establishes a connection with the mobile terminal, the sound wave device and the mobile terminal set the respective channels of the sound wave system to the preferred frequency of the mobile terminal by handshaking, and the data communication between the sound wave device and the mobile terminal uses the preferred frequency for data transmission. The interference of communication conflicts when other devices are accessed during the transmission process is greatly reduced, and the correctness of the audio system communication is ensured by the retransmission mechanism.
声波系统握手成功后,声波设备进入已连接状态将屏蔽声波通信接入信息,直到交易结束,以消除在通信间隙其他设备发送接入命令的干扰。After the acoustic system handshake is successful, the acoustic device enters the connected state to shield the acoustic communication access information until the transaction ends, to eliminate the interference of other devices transmitting the access command during the communication gap.
其中,采用上述方法,在图1所示的系统中,当移动设备1与声波设备连接成功后,将采用固定频率进行交易通信,若在通信过程中移动设备2发出接入信号,因其三个通道均使用随机的频率所以三个通道同时与声波设备交易传输所用频率相同的概率非常小,如果有通道相同导致交易通信失败,声波设备采用重传的方式保证传输正确性及完整性。如果在通讯间隙移动设备2发送接入信号,因声波设备已将对接入命令的响应关闭,故不会影响声波设备通信。Wherein, using the above method, in the system shown in FIG. 1, when the mobile device 1 and the sound wave device are successfully connected, the fixed frequency is used for transaction communication, and if the mobile device 2 sends an access signal during the communication, because of the three The channels use random frequencies. Therefore, the probability that the three channels are the same as the frequency used for the transmission of the sonic equipment is very small. If the channel is the same, the transaction communication fails, and the sound wave device uses the retransmission method to ensure the correctness and integrity of the transmission. If the mobile device 2 transmits an access signal during the communication gap, since the acoustic wave device has turned off the response to the access command, the acoustic device communication is not affected.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现。所述的程序可以存储于可读取存储介质中,所述的存储介质,如随机存储器、闪存、只读存储器、可编程只读存储器、电可擦写可编程存储器、寄存器等。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件执行本发明各个实施例所述的方法。
Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware. The program may be stored in a readable storage medium such as a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register, or the like. The storage medium is located in a memory, the processor reads information in the memory, and in conjunction with its hardware, performs the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。
The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims (14)
- 一种声波接收方法,其特征在于,包括:A method for receiving sound waves, comprising:声波设备若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels of the acoustic wave device receive the acoustic wave communication access information in a fixed frequency modulation manner, and the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;After receiving the acoustic communication access information, establishing a connection between the plurality of channels and the plurality of channels of the mobile terminal respectively;提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;Extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;所述若干个通道采用配置的发送频率发送声波通信应答信息;The plurality of channels transmit sound wave communication response information by using a configured transmission frequency;关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。The processing thread of the sound wave communication access information is turned off to shield the sound wave communication access information.
- 根据权利要求1所述的方法,其特征在于,在关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息之后,还包括:The method according to claim 1, wherein after the processing thread of the sound wave communication access information is closed to shield the sound wave communication access information, the method further comprises:检测所述连接是否断开;Detecting whether the connection is disconnected;当所述连接断开后,恢复所述声波通信接入信息的处理线程,以取消屏蔽所述声波通信接入信息。After the connection is disconnected, the processing thread of the sonic communication access information is restored to unmask the sonic communication access information.
- 根据权利要求1所述的方法,其特征在于,所述若干个通道采用配置的发送频率发送声波通信应答信息,具体为:The method according to claim 1, wherein the plurality of channels transmit sound wave communication response information by using a configured transmission frequency, specifically:所述若干个通道中的每个通道均采用配置的发送频率发送声波通信应答信息;或者,Each of the plurality of channels transmits sound wave communication response information using a configured transmission frequency; or所述若干个通道中预设的通道采用配置的发送频率发送声波通信应答信息。The preset channel of the plurality of channels transmits the acoustic wave communication response information by using the configured transmission frequency.
- 根据权利要求1所述的方法,其特征在于,所述声波通信接入信息还包括:移动终端的型号信息;The method according to claim 1, wherein the sound wave communication access information further comprises: model information of the mobile terminal;在接收到所述声波通信接入信息后,记录移动终端的型号信息、声波设备自身型号信息与所述若干个优选频率之间的映射关系。 After receiving the acoustic communication access information, the mapping relationship between the model information of the mobile terminal, the model information of the acoustic wave device, and the plurality of preferred frequencies is recorded.
- 一种声波发送方法,其特征在于,包括:A method for transmitting sound waves, comprising:移动终端若干个通道分别选择一组声波频率作为发送频率;A plurality of channels of the mobile terminal respectively select a set of sound wave frequencies as the transmission frequency;所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;所述若干个通道分别检测是否接收到声波通信应答信息;The plurality of channels respectively detect whether the acoustic communication response information is received;若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,以下一组发送频率继续发送所述声波通信接入信息;If yes, the sending of the sonic communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the following group of transmission frequencies continues to transmit the sonic communication access information;分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
- 根据权利要求5所述的方法,其特征在于,包括:The method of claim 5, comprising:移动终端若干个通道分别以随机调频的方式选择发送频率;A plurality of channels of the mobile terminal respectively select a transmission frequency by means of random frequency modulation;所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The plurality of channels respectively transmit sound wave communication access information by using a selected transmission frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;所述若干个通道分别检测是否接收到声波通信应答信息;The plurality of channels respectively detect whether the acoustic communication response information is received;若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;If yes, the sending of the sound wave communication access information is stopped, and the connection between the plurality of channels and the sound wave device is respectively established, and if not, the sound wave communication access information is continuously sent;分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The several preferred frequencies supported by the respective configurations are the transmission frequencies and the reception frequencies of the several channels.
- 根据权利要求6所述的方法,其特征在于,所述移动终端若干个通道分别以随机调频的方式选择发送频率,具体为:The method according to claim 6, wherein the plurality of channels of the mobile terminal respectively select a transmission frequency in a random frequency modulation manner, specifically:移动终端每个所述通道,在预存的随机数表中获取随机数;Each of the channels of the mobile terminal acquires a random number in a pre-stored random number table;根据获取到的随机数,选择频点;Select a frequency point according to the obtained random number;在预存的频率表中,选择与所述频点对应的频率作为每个所述通道的发送频率;In the pre-stored frequency table, a frequency corresponding to the frequency point is selected as a transmission frequency of each of the channels;其中,频率表中包括所述频点以及与所述频点对应的频率。 The frequency table includes the frequency point and a frequency corresponding to the frequency point.
- 根据权利要求5所述的方法,其特征在于,所述声波通信应答信息还包括:声波设备的型号信息;则The method according to claim 5, wherein the sound wave communication response information further comprises: model information of the sound wave device;在接收到所述声波通信应答信息后,记录声波设备的型号信息、移动终端自身型号信息与所述若干个优选频率之间的映射关系。After receiving the acoustic wave communication response information, the mapping relationship between the model information of the acoustic wave device, the model information of the mobile terminal itself, and the plurality of preferred frequencies is recorded.
- 一种声波接收装置,其特征在于,包括:An acoustic wave receiving device, comprising:优选频率接收单元,用于若干个通道分别以固定调频的方式,接收声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;Preferably, the frequency receiving unit is configured to receive the acoustic wave communication access information in a fixed frequency modulation manner, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;第一通道建立单元,用于在接收到所述声波通信接入信息后,分别建立所述若干个通道与所述移动终端若干个通道的连接;a first channel establishing unit, configured to establish, after receiving the sound wave communication access information, a connection between the plurality of channels and the plurality of channels of the mobile terminal;第一优选频率配置单元,用于提取所述若干个优选频率,将所述若干个优选频率配置为所述若干个通道的发送频率以及接收频率;a first preferred frequency configuration unit, configured to extract the plurality of preferred frequencies, and configure the plurality of preferred frequencies as a transmission frequency and a receiving frequency of the several channels;声波通信应答信息发送单元,用于所述若干个通道采用配置的发送频率发送声波通信应答信息;The sound wave communication response information sending unit is configured to send the sound wave communication response information by using the configured transmission frequency of the plurality of channels;声波通信接入信息屏蔽单元,用于关闭所述声波通信接入信息的处理线程,以屏蔽所述声波通信接入信息。The sound wave communication access information shielding unit is configured to close the processing thread of the sound wave communication access information to shield the sound wave communication access information.
- 根据权利要求9所述的声波接收装置,其特征在于,所述优选频率配置单元,具体用于所述若干个通道中每个通道均以配置的所述若干个优选频率中的优选频率,发送声波通信应答信息;或者,The acoustic wave receiving device according to claim 9, wherein the preferred frequency configuration unit is configured to transmit, in each of the plurality of channels, a preferred frequency of the plurality of preferred frequencies configured Acoustic communication response information; or,用于所述若干个通道中每个通道以配置的所述优选频率,发送声波通信应答信息。Acoustic communication response information is transmitted for each of the plurality of channels at the preferred frequency configured.
- 一种声波发送装置,其特征在于,包括:An acoustic wave transmitting device, comprising:发送频率选择单元,用于若干个通道分别选择一组声波频率作为发送频率;a transmission frequency selection unit for selecting a set of sound wave frequencies as the transmission frequency for each of the plurality of channels;声波通信接入信息发送单元,用于所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支 持的若干个优选频率;The sound wave communication access information sending unit is configured to send the sound wave communication access information by using the selected transmission frequency, where the sound wave communication access information includes several channel branches of the mobile terminal a number of preferred frequencies held;声波通信应答信息检测单元,用于所述若干个通道分别检测是否接收到声波通信应答信息;The sound wave communication response information detecting unit is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;第二通道建立单元,用于若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,以下一组发送频率继续发送所述声波通信接入信息;a second channel establishing unit, configured to stop transmitting the sound wave communication access information, and establish a connection between the plurality of channels and a plurality of channels of the sound wave device respectively, and if not, the following group of transmitting frequencies continue to send the sound wave communication Access information第二优选频率配置单元,用于分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The second preferred frequency configuration unit is configured to separately configure a plurality of preferred frequencies supported by the transmission frequency and the reception frequency of the several channels.
- 根据权利要求11所述的声波发送装置,其特征在于,包括:The sound wave transmitting device according to claim 11, comprising:发送频率选择单元,用于若干个通道分别以随机调频的方式选择发送频率;a transmission frequency selection unit, configured to select a transmission frequency by using a random frequency modulation method for each of the plurality of channels;声波通信接入信息发送单元,用于所述若干个通道分别采用选择的发送频率发送声波通信接入信息,所述声波通信接入信息包括移动终端若干个通道支持的若干个优选频率;The sound wave communication access information sending unit is configured to send the sound wave communication access information by using the selected sending frequency, where the sound wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;声波通信应答信息检测单元,用于所述若干个通道分别检测是否接收到声波通信应答信息;The sound wave communication response information detecting unit is configured to detect whether the sound wave communication response information is received by the plurality of channels respectively;第二通道建立单元,用于若是,停止发送所述声波通信接入信息,分别建立所述若干个通道与声波设备若干个通道的连接,若否,继续发送所述声波通信接入信息;a second channel establishing unit, configured to stop transmitting the sound wave communication access information, and establish a connection between the plurality of channels and the sound wave device, and if not, continue to send the sound wave communication access information;第二优选频率配置单元,用于分别配置支持的若干个优选频率为所述若干个通道的发送频率以及接收频率。The second preferred frequency configuration unit is configured to separately configure a plurality of preferred frequencies supported by the transmission frequency and the reception frequency of the several channels.
- 根据权利要求12所述的声波发送装置,其特征在于,所述发送频率选择单元,具体包括:The sound wave transmitting device according to claim 12, wherein the sending frequency selecting unit specifically comprises:随机数获取子单元,用于每个所述通道,在预存的随机数表中获取随机数;a random number obtaining subunit for each of the channels, obtaining a random number in a pre-stored random number table;频点选择子单元,用于根据获取到的随机数,选择频点;a frequency point selection subunit, configured to select a frequency point according to the obtained random number;频率选择子单元,用于在预存的频率表中,选择与所述频点对应的频率作 为每个所述通道的发送频率;a frequency selection subunit, configured to select a frequency corresponding to the frequency point in a pre-stored frequency table The transmission frequency for each of the channels;其中,频率表中包括所述频点以及与所述频点对应的频率。The frequency table includes the frequency point and a frequency corresponding to the frequency point.
- 一种声波系统,其特征在于,包括权利要求9至10任意一项权利要求所述的声波接收装置以及权利要求11至13任意一项权利要求所述的声波发送装置。 An acoustic wave system comprising the acoustic wave receiving device according to any one of claims 9 to 10 and the acoustic wave transmitting device according to any one of claims 11 to 13.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410403877.5 | 2014-08-15 | ||
CN201410404383.9A CN105337672B (en) | 2014-08-15 | 2014-08-15 | Sound wave transmitting method, sound wave receiving method, sound wave transmitting device, sound wave receiving device and sound wave receiving system |
CN201410403877.5A CN105337671B (en) | 2014-08-15 | 2014-08-15 | The means of communication and system of terminal are sent and received based on sound wave |
CN201410404383.9 | 2014-08-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016023516A1 true WO2016023516A1 (en) | 2016-02-18 |
Family
ID=55303887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/086976 WO2016023516A1 (en) | 2014-08-15 | 2015-08-14 | Sound wave sending method, receiving method, sending device and receiving device and system |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2016023516A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118432764A (en) * | 2024-05-06 | 2024-08-02 | 中国电子科技集团公司第十五研究所 | A signal transmission processing method and device based on high-frequency sound waves |
WO2024221971A1 (en) * | 2023-04-25 | 2024-10-31 | 华为技术有限公司 | Ultrasonic wave-based device connecting method and related apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110237951A1 (en) * | 2009-10-27 | 2011-09-29 | Innurvation, Inc. | Data Transmission Via Wide Band Acoustic Channels |
CN102611658A (en) * | 2012-03-06 | 2012-07-25 | 杭州锐昂科技有限公司 | Multi-channel sound wave communication system and method |
CN103825661A (en) * | 2014-03-13 | 2014-05-28 | 珠海市魅族科技有限公司 | Method and terminal for establishing connection relationship |
CN103856270A (en) * | 2014-03-13 | 2014-06-11 | 珠海市魅族科技有限公司 | Data receiving method and terminal |
-
2015
- 2015-08-14 WO PCT/CN2015/086976 patent/WO2016023516A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110237951A1 (en) * | 2009-10-27 | 2011-09-29 | Innurvation, Inc. | Data Transmission Via Wide Band Acoustic Channels |
CN102611658A (en) * | 2012-03-06 | 2012-07-25 | 杭州锐昂科技有限公司 | Multi-channel sound wave communication system and method |
CN103825661A (en) * | 2014-03-13 | 2014-05-28 | 珠海市魅族科技有限公司 | Method and terminal for establishing connection relationship |
CN103856270A (en) * | 2014-03-13 | 2014-06-11 | 珠海市魅族科技有限公司 | Data receiving method and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024221971A1 (en) * | 2023-04-25 | 2024-10-31 | 华为技术有限公司 | Ultrasonic wave-based device connecting method and related apparatus |
CN118432764A (en) * | 2024-05-06 | 2024-08-02 | 中国电子科技集团公司第十五研究所 | A signal transmission processing method and device based on high-frequency sound waves |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102031598B1 (en) | Signal transmission method and apparatus | |
US20150310868A1 (en) | Data transfer using mobile devices | |
CN104378838B (en) | A kind of method and device for establishing wireless connection | |
JP6987232B2 (en) | Short-distance payment system using sonic communication | |
US20120059496A1 (en) | Method and device for transmitting audio data over universal serial bus by a wireless data terminal | |
CN103117836A (en) | Device association | |
CN103955822A (en) | Method for mobile payment by transmitting data through variable frequency sound waves | |
CN104769965A (en) | Method for the transmission of data between devices over sound waves | |
US20140349576A1 (en) | Bluetooth data/control message transmission module, interaction system and method thereof | |
CN104581986A (en) | Wireless connection method and equipment | |
WO2017028651A1 (en) | Method, apparatus and system for performing configuration setting between devices | |
US20130268277A1 (en) | Wireless transaction communication apparatus and method | |
CN103957220A (en) | Data transmission method and system based on frequency conversion sound waves | |
CN103200325A (en) | Peripheral device for mobile terminal and communication method for mobile terminal and peripheral device | |
WO2016023516A1 (en) | Sound wave sending method, receiving method, sending device and receiving device and system | |
CN105681256B (en) | Audio communication method and voice communication application apparatus | |
CN108831471B (en) | A voice security protection method, device and routing terminal | |
CN105337672B (en) | Sound wave transmitting method, sound wave receiving method, sound wave transmitting device, sound wave receiving device and sound wave receiving system | |
CN104883535A (en) | Monitoring system and operation method thereof | |
CN103136856A (en) | Payment device based on audio interface | |
CN103138809B (en) | The communication means communicated between electronic devices and corresponding equipment | |
CN202750089U (en) | Bluetooth device and integrated peripheral devices | |
CN105243036B (en) | A kind of chromacoder and method | |
TW201328226A (en) | Method and device for information transmission | |
CN105337671A (en) | Communication method and system based on sound wave transmitting and receiving terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15832607 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.07.2017) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15832607 Country of ref document: EP Kind code of ref document: A1 |