CN105337672B - Sound wave transmitting method, sound wave receiving method, sound wave transmitting device, sound wave receiving device and sound wave receiving system - Google Patents
Sound wave transmitting method, sound wave receiving method, sound wave transmitting device, sound wave receiving device and sound wave receiving system Download PDFInfo
- Publication number
- CN105337672B CN105337672B CN201410404383.9A CN201410404383A CN105337672B CN 105337672 B CN105337672 B CN 105337672B CN 201410404383 A CN201410404383 A CN 201410404383A CN 105337672 B CN105337672 B CN 105337672B
- Authority
- CN
- China
- Prior art keywords
- frequency
- channels
- sound wave
- wave communication
- access information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention is suitable for the technical field of sound wave communication, and provides a sound wave sending method, a sound wave receiving method, a sending device, a receiving device and a system, wherein the sound wave receiving method comprises the following steps: the method comprises the steps that a plurality of channels of the sound wave equipment receive sound wave communication access information in a fixed frequency modulation mode respectively, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal; after receiving the sound wave communication access information, respectively establishing connection between a plurality of channels and a plurality of channels of the mobile terminal; extracting a plurality of preferred frequencies, and respectively configuring the preferred frequencies as the transmitting frequencies and the receiving frequencies of a plurality of channels; the channels transmit acoustic wave communication response information at a plurality of configured preferred frequencies; and closing the processing thread of the sound wave communication access information to shield the sound wave communication access information. The invention ensures that only two devices in an acoustic wave system carry out data communication, and simultaneously improves the stability of data communication.
Description
Technical Field
The invention belongs to the technical field of sound wave communication, and particularly relates to a sound wave sending method, a sound wave receiving method, a sending device, a receiving device and a system.
Background
The transmission mode based on the audio channel is more and more widely used, and the third-party payment system disputes to release the payment application based on the audio communication. Generally, in an acoustic wave system, an acoustic wave device receives acoustic wave communication access information transmitted from a mobile terminal based on audio communication, and communicates with the mobile terminal to receive payment information.
However, in the acoustic wave system, when the acoustic wave device communicates with the mobile terminal, it cannot be guaranteed that data communication is performed with only one mobile terminal at the same time, and communication conflicts exist in the data communication process.
For ease of explanation, referring to fig. 1, fig. 1 is a preferred sample diagram of an acoustic wave system in which communication collisions exist.
The mobile terminal 1 is connected with the acoustic wave device, the acoustic wave device continues to receive acoustic wave communication access information sent by the mobile terminal 2 in a communication gap, and it cannot be guaranteed that data communication is only performed with one mobile terminal at the same time, and the acoustic wave communication access information sent by the mobile terminal 2 can generate communication conflict for data transmission between the acoustic wave device and the mobile terminal.
In addition, the acoustic wave device communicates with the mobile terminal by using the frequency of the own channel, and the stability of data communication is low because the frequency of the own channel is often different from a plurality of preferred frequencies supported by the mobile terminal.
Disclosure of Invention
The embodiment of the invention aims to provide an acoustic wave receiving method, which aims to solve the problems that when an acoustic wave device communicates with a mobile terminal, data communication with only one mobile terminal at the same time cannot be guaranteed, so that communication conflict exists in the data communication process, and the stability of data communication is low due to the fact that the frequency of a channel of the acoustic wave device is adopted to communicate with the mobile terminal.
The embodiment of the invention is realized in such a way that an acoustic wave receiving method comprises the following steps:
the method comprises the steps that a plurality of channels of the sound wave equipment receive sound wave communication access information in a fixed frequency modulation mode respectively, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
after the sound wave communication access information is received, respectively establishing connection between the plurality of channels and the plurality of channels of the mobile terminal;
extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as the transmitting frequency and the receiving frequency of the plurality of channels;
the channels transmit acoustic wave communication response information by adopting configured transmitting frequency;
and closing the processing thread of the sound wave communication access information to shield the sound wave communication access information.
Another object of an embodiment of the present invention is to provide a method for transmitting sound waves, including:
a plurality of channels of the mobile terminal select the sending frequency in a random frequency modulation mode respectively;
the channels respectively adopt the selected sending frequency to send sound wave communication access information, and the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the channels respectively detect whether sound wave communication response information is received or not;
if so, stopping sending the sound wave communication access information, respectively establishing the connection between the plurality of channels and the plurality of channels of the sound wave equipment, and if not, continuing sending the sound wave communication access information;
and respectively configuring the supported preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels.
Another object of an embodiment of the present invention is to provide an acoustic wave receiving apparatus, including:
the preferred frequency receiving unit is used for receiving sound wave communication access information by a plurality of channels in a fixed frequency modulation mode, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the first channel establishing unit is used for respectively establishing the connection between the plurality of channels and the plurality of channels of the mobile terminal after receiving the sound wave communication access information;
a first preferred frequency configuration unit, configured to extract the preferred frequencies and configure the preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels;
the acoustic wave communication response information sending unit is used for sending acoustic wave communication response information by the channels by adopting the configured sending frequency;
and the sound wave communication access information shielding unit is used for closing the processing thread of the sound wave communication access information so as to shield the sound wave communication access information.
Another object of an embodiment of the present invention is to provide an acoustic wave transmission device, including:
the transmitting frequency selection unit is used for selecting transmitting frequencies by a plurality of channels in a random frequency modulation mode;
the sound wave communication access information sending unit is used for sending sound wave communication access information by the channels respectively by adopting the selected sending frequency, and the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the acoustic wave communication response information detection unit is used for respectively detecting whether acoustic wave communication response information is received by the channels;
a second channel establishing unit, configured to stop sending the acoustic wave communication access information if the acoustic wave communication access information is received, respectively establish connection between the plurality of channels and the plurality of channels of the acoustic wave device, and continue sending the acoustic wave communication access information if the acoustic wave communication access information is not received;
and the second preferred frequency configuration unit is used for respectively configuring the supported preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels.
Another objective of an embodiment of the present invention is to provide an acoustic wave system, which includes the above-mentioned acoustic wave receiving apparatus and the above-mentioned acoustic wave transmitting apparatus.
In the embodiment of the invention, the plurality of preferred frequencies are extracted, the plurality of preferred frequencies are configured to be the sending frequencies and the receiving frequencies of the plurality of channels, so that co-frequency interference generated by other mobile terminals during data transmission of the sound wave system is prevented, the processing thread of the sound wave communication access information is closed, and the interference of the sound wave communication access information of other mobile terminals in a communication gap to the sound wave system is prevented, so that data communication is ensured to be carried out between only two devices in one sound wave system, and the stability of data communication is improved.
Drawings
FIG. 1 is a diagram of a preferred sample of an acoustic wave system in which communication collisions exist;
fig. 2 is a flowchart of an implementation of an acoustic wave receiving method according to an embodiment of the present invention;
fig. 3 is a flowchart of a preferred implementation of the sound wave receiving method according to the embodiment of the present invention in practical application;
fig. 4 is a flowchart of an implementation of a method for transmitting sound waves according to an embodiment of the present invention;
fig. 5 is a flowchart of a preferred implementation of the acoustic wave transmitting method according to the embodiment of the present invention in practical application;
fig. 6 is a structural diagram of an acoustic wave receiving apparatus provided in an embodiment of the present invention;
fig. 7 is a structural view of an acoustic wave transmitting apparatus provided in an embodiment of the present invention;
fig. 8 is a flow chart of preferred 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.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 2, fig. 2 is a flowchart of an implementation of an acoustic wave receiving method according to an embodiment of the present invention, which is detailed as follows:
in step S201, the plurality of channels of the acoustic wave device respectively receive acoustic wave communication access information in a fixed frequency modulation manner, where the acoustic wave communication access information includes a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal.
The number of the plurality of channels is not limited herein, and may be one channel, or may be two channels or a plurality of channels.
The format of the sound wave communication access information can be set by the user or default by the system. For example, the format of the sound wave communication access information is "0X 00,0X13,0X00,0X00,0X01, X1, X2, X3 …", where X1, X2, and X3 … XN are several preferred frequencies, and the number of preferred frequencies depends on the number of channels N.
The sound wave device is a device of the mobile terminal that can receive audio-based communication, for example, a sound wave KEY.
The fixed frequency modulation mode is to poll frequency points in a frequency table in sequence, and the channels select the frequency corresponding to the frequency points to receive the sound wave communication access information according to the frequency points.
And each channel is subjected to frequency modulation according to the frequency of the fixed frequency modulation to obtain the corresponding frequency.
For convenience of explanation, the number of three channels is taken as an example.
Referring to table 1, table 1 is a three-channel fm table for an acoustic wave device.
Frequency band | Channel 1 | Channel 2 | Channel 3 |
1 | 16KHZ | 15KHZ | 14KHZ |
2 | 13KHZ | 12KHZ | 11KHZ |
3 | 10KHZ | 9KHZ | 8KHZ |
4 | 7KHZ | 6KHZ | 5KHZ |
The sound wave equipment carries out cyclic frequency modulation waiting by timing when waiting for receiving, and the frequency modulation graphs of three channels from high frequency are as follows: 16KHZ-15KHZ-14KHZ, 13KHZ-12KHZ-11KHZ, 10KHZ-9KHZ-8KHZ, 7KHZ-6KHZ-5 KHZ.
For example, when the polling frequency point is 1, the frequency modulation of the channel 1 obtains the corresponding frequency of 16KHZ, the frequency modulation of the channel 2 obtains the corresponding frequency of 15KHZ, the frequency modulation of the channel 3 obtains the corresponding frequency of 14KHZ, when the polling frequency point is 2, the frequency modulation of the channel 1 obtains the corresponding frequency of 13KHZ, the frequency modulation of the channel 2 obtains the corresponding frequency of 12KHZ, and the frequency modulation of the channel 3 obtains the corresponding frequency of 11 KHZ. The whole frequency band is traversed by the three-channel cyclic frequency modulation mode, so that the access time of the equipment can be effectively reduced.
In step S202, after receiving the acoustic wave communication access information, respectively establishing connections between the plurality of channels and the plurality of channels of the mobile terminal;
when the sound wave communication access information is received, the connection between the channels and the channels of the mobile terminal is respectively established through the frequency obtained by fixing frequency modulation of the channels of the sound wave equipment.
In step S203, extracting the preferred frequencies, and configuring the preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels; the implementation process of configuring the preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels is as follows:
x1, X2, and X3 … XN are several preferred frequencies, and are respectively configured as the frequencies of channel 1, channel 2, channel 3, and channel N.
For convenience of explanation, the number of three channels is taken as an example.
For example, when the acoustic wave device channel 1, channel 2, and channel 3 are in a fixed frequency modulation manner, when the tuning polling frequency point is 1, the frequency modulation of channel 1 obtains a corresponding frequency of 16KHZ, the frequency modulation of channel 2 obtains a corresponding frequency of 15KHZ, and the frequency modulation of channel 3 obtains a corresponding frequency of 14KHZ, if a plurality of received preferred frequencies are 9KHZ, 12KHZ, and 8KHZ, the 9KHZ is configured as the transmission frequency and the reception frequency of channel 1, the 12KHZ is configured as the transmission frequency and the reception frequency of channel 2, and the 8KHZ is configured as the transmission frequency and the reception frequency of channel 3. It should be noted that the preferred frequency is a frequency preferred by the mobile terminal in one channel. The mobile terminal may have several channels, and the mobile terminal may have multiple frequencies in one channel, for example, the mobile terminal may have a channel a, a channel B, and a channel C, where the channel a has three frequencies of a1, a2, and A3, if the preferred frequency is a2 frequency, the a2 frequency is the preferred frequency of the a channel, the channel B has three frequencies of B1, B2, B3, and B4, if the preferred frequency is B2 frequency, the B2 frequency is the preferred frequency of the B channel, the channel C has three frequencies of C1, C2, C3, and C4, and if the preferred frequency is C2 frequency, the C2 frequency is the preferred frequency of the C channel.
The preferred frequencies are configured to be the sending frequencies and the receiving frequencies of the channels, so that the problem that the stability of data transmission is low due to the fact that the frequency of the channel is often different from the preferred frequencies supported by the mobile terminal when the sound wave equipment adopts the frequency of the channel to communicate with the mobile terminal is solved, and the stability of the system is improved.
In step S204, the channels transmit acoustic wave communication response information with the configured transmission frequency;
the plurality of channels transmit acoustic wave communication response information by adopting configured transmission frequency, and specifically comprise:
each channel in the plurality of channels sends acoustic wave communication response information at a preferred frequency in the plurality of configured preferred frequencies; alternatively, the first and second electrodes may be,
and a preset channel in the plurality of channels sends acoustic wave communication response information at the configured preferred frequency.
In step S205, the processing thread of the acoustic wave communication access information is turned off to shield the acoustic wave communication access information.
And after the connection is successful, closing the processing thread of the sound wave communication access information, and closing the response to the sound wave communication access information until the communication of the current connection equipment is finished.
In the embodiment, by closing the processing thread of the sound wave communication access information, the data communication with only one mobile terminal at the same time is ensured, the communication conflict in the data communication process is solved, and the interference of the communication conflict when other equipment is accessed in the transmission process is greatly reduced.
Example two
The embodiment describes an implementation process of canceling shielding the acoustic wave communication access information after the processing thread of the acoustic wave communication access information is closed to shield the acoustic wave communication access information, and details are as follows:
detecting whether the connection is disconnected;
and when the connection is disconnected, recovering the processing thread of the sound wave communication access information to cancel shielding the sound wave 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 recovered to cancel shielding the acoustic wave communication access information. So that the sound wave equipment can respond to the sound wave communication to access information, and further can access other mobile terminals.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flowchart of a preferred implementation of the sound wave receiving method according to the embodiment of the present invention in practical application, which is detailed as follows:
s301, configuring the frequency of a receiving channel by the sound wave equipment;
s302, if a mobile terminal is accessed, executing a step S304, otherwise executing a step S303;
s303, jumping to the next frequency point by the sound wave equipment;
s304, setting the frequency of the channel as the preferred communication frequency of the mobile terminal, and closing the processing thread of the sound wave communication access information;
s305, transaction communication.
Example four
Referring to fig. 4, fig. 4 is a flowchart of an implementation of a method for sending a sound wave according to an embodiment of the present invention, which is detailed as follows:
in step S401, a plurality of channels of the mobile terminal select a transmission frequency in a random frequency modulation manner, respectively;
the mobile terminal comprises a plurality of channels, wherein the channels of the mobile terminal respectively select a sending frequency in a random frequency modulation mode, and the method specifically comprises the following steps:
each channel of the mobile terminal acquires a random number from a pre-stored random number table;
selecting a frequency point according to the acquired random number;
selecting the frequency corresponding to the frequency point as the sending frequency of each channel in a pre-stored frequency table;
and the frequency table comprises the frequency points and the frequencies corresponding to the frequency points.
When the mobile equipment searches for access, signal transmission is carried out in a random frequency modulation mode, and the transmission frequency is modulated according to a random number table built in each mobile equipment.
And performing modulus operation on the random number according to the acquired random number to obtain a modulus value. For example, if the transmission band is 5KHZ to 16KHZ, the modulo value M obtained by modulo 12 by taking the random number X is X% 12, and the transmission frequency of the current channel is obtained from the table lookup of the modulo values.
For convenience of explanation, the number of three channels is taken as an example.
Referring to table 2, table 2 is a mobile terminal three-channel fm table.
For example, if the random numbers corresponding to the channels 1,2, and 3 are 0x34,0x67, and 0x5a, respectively, the lengths of the random number tables corresponding to the three channels are integer multiples of 3, so as to ensure that the correct frequency can be obtained for each frequency modulation. When the traversal of the random number table is completed, the mobile device chooses to exit or continue to perform a new round of sound wave key from the first number.
In this embodiment, because a random frequency modulation mode is adopted, and random frequencies are used for a plurality of channels, the probability that the frequency used by the plurality of channels is the same as the frequency used by the acoustic wave device for transaction transmission at the same time is very small, and therefore access interference generated when other mobile terminals are accessed in the transmission process is greatly reduced. If the transaction communication fails due to the same channels, the correctness and the integrity of the transmission are ensured by adopting a retransmission mode immediately.
In step S402, the channels respectively transmit acoustic communication access information using the selected transmission frequency, where the acoustic communication access information includes a plurality of preferred frequencies supported by the channels of the mobile terminal;
wherein the selected transmission frequency broadcasts acoustic communications access information.
In step S403, the channels respectively detect whether acoustic wave communication response information is received;
in step S404, if yes, stopping sending the acoustic wave communication access information, and respectively establishing connections between the plurality of channels and the plurality of channels of the acoustic wave device, and if not, continuing sending the acoustic wave communication access information;
in step S405, the supported preferred frequencies are configured as the transmission frequency and the reception frequency of the channels, respectively.
In this embodiment, the supported preferred frequencies are respectively configured as the transmitting frequency and the receiving frequency of the channels, so that after the mobile terminal is connected with the acoustic wave device, the stability of a communication link between the mobile terminal and the acoustic wave device is high.
EXAMPLE five
Referring to fig. 5, fig. 5 is a flowchart of a preferred implementation of the acoustic wave transmitting method according to the embodiment of the present invention in practical application, which is detailed as follows:
s501, obtaining a random number table;
s502, taking a random number, and configuring channel frequency according to the random number;
s503, sending sound wave communication access information;
s504, whether there is a response, if yes, go to step S506, if no, go to step S505;
s505, taking down a group of random numbers and jumping to a next group of frequency points;
s506, configuring the frequency band to be the preferred frequency band, and performing transaction communication.
EXAMPLE six
Referring to fig. 6, fig. 6 is a structural diagram of an acoustic wave receiving apparatus provided in an embodiment of the present invention, where the apparatus may operate in an acoustic wave device, including but not limited to an acoustic wave key. For convenience of explanation, only the portions related to the present embodiment are shown.
The acoustic wave receiving apparatus includes:
the preferred frequency receiving unit 61 is used for receiving sound wave communication access information by a plurality of channels in a fixed frequency modulation mode, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by a plurality of channels of the mobile terminal;
a first channel establishing unit 62, configured to respectively establish connections between the channels and the channels of the mobile terminal after receiving the acoustic wave communication access information;
a first preferred frequency configuration unit 63, configured to extract the preferred frequencies and configure the preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels;
a sound wave communication response information sending unit 64, configured to send sound wave communication response information by using the configured sending frequency for the plurality of channels;
and the acoustic wave communication access information shielding unit 65 is configured to close the processing thread of the acoustic wave communication access information to shield the acoustic wave communication access information.
Further, in the acoustic wave receiving apparatus, it further includes:
a sound wave communication response information detection unit that detects whether the connection is disconnected;
and the restoring unit is used for restoring the processing thread of the sound wave communication access information after the connection is disconnected so as to cancel the shielding of the sound wave communication access information.
Further, in the acoustic wave receiving apparatus, the preferred frequency configuration unit is specifically configured to send acoustic wave communication response information at a preferred frequency of the configured preferred frequencies for each of the channels; alternatively, the first and second electrodes may be,
and sending acoustic wave communication response information at the configured preferred frequency for the preset channel in the plurality of channels.
The apparatus provided in the embodiment of the present invention may be applied to the corresponding method embodiments, and for details, reference is made to the description of the embodiments above, and details are not repeated here.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a block diagram of an acoustic wave transmitting apparatus according to an embodiment of the present invention, which may be operated in a mobile terminal. For convenience of explanation, only the portions related to the present embodiment are shown.
The acoustic wave transmitting apparatus includes:
a transmission frequency selecting unit 71, configured to select transmission frequencies in a random frequency modulation manner for the channels;
the acoustic wave communication access information sending unit 72 is configured to send acoustic wave communication access information by using the selected sending frequencies respectively for the channels, where the acoustic wave communication access information includes a plurality of preferred frequencies supported by the channels of the mobile terminal;
an acoustic wave communication response information detection unit 73 for detecting whether or not acoustic wave communication response information is received, respectively, by the plurality of channels;
a second channel establishing unit 74, configured to stop sending the acoustic wave communication access information if the acoustic wave communication access information is received, respectively establish connection between the plurality of channels and the plurality of channels of the acoustic wave device, and continue sending the acoustic wave communication access information if the acoustic wave communication access information is not received;
a second preferred frequency configuring unit 75, configured to configure the supported several preferred frequencies as the transmitting frequency and the receiving frequency of the several channels, respectively.
Further, in the acoustic wave transmitting apparatus, the transmission frequency selecting unit specifically includes:
a random number obtaining subunit, configured to obtain, for each of the channels, a random number in a pre-stored random number table;
the frequency point selection subunit is used for selecting a frequency point according to the acquired random number;
the frequency selection subunit is used for selecting the frequency corresponding to the frequency point from a pre-stored frequency table as the sending frequency of each channel;
and the frequency table comprises the frequency points and the frequencies corresponding to the frequency points.
The apparatus provided in the embodiment of the present invention may be applied to the corresponding method embodiments, and for details, reference is made to the description of the embodiments above, and details are not repeated here.
Example eight
Referring to fig. 8, fig. 8 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 equipment, and the sound wave transmitting device is built in the mobile terminal, so that the execution subject of the method corresponding to the sound wave receiving device is understood to be the sound wave equipment, and the execution subject of the method corresponding to the sound wave transmitting device is understood to be the mobile terminal.
The working principle of the sound wave system is as follows:
1. in the mobile terminal, a plurality of channels respectively select the sending frequency in a random frequency modulation mode;
2. in the mobile terminal, after the sending frequency is selected, the channels respectively adopt the selected sending frequency to send sound wave communication access information to the sound wave equipment, and the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
3. in the mobile terminal, the channels respectively detect whether sound wave communication response information sent by sound wave equipment is received or not;
4. in the acoustic wave equipment, a plurality of channels respectively receive acoustic wave communication access information sent by a mobile terminal in a fixed frequency modulation mode, wherein the acoustic wave communication access information comprises a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
5. in the sound wave equipment, after receiving the sound wave communication access information, establishing connection between the plurality of channels and the plurality of channels of the mobile terminal;
6. in the acoustic wave device, extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as the transmitting frequency and the receiving frequency of the plurality of channels;
7. in the acoustic wave equipment, configuring a plurality of preferred frequencies supported by the mobile terminal as the transmitting frequency and the receiving frequency of a plurality of channels of the mobile terminal, and transmitting acoustic wave communication response information to the mobile terminal by adopting the configured transmitting frequency;
8. and after the mobile terminal receives the acoustic wave communication response information, respectively configuring the supported preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels.
After the sound wave equipment is connected with the mobile terminal, the sound wave equipment and the mobile terminal are set to be the preferred frequency of the mobile terminal through the channels of the sound wave system which is set through handshaking, data communication between the sound wave equipment and the mobile terminal is carried out by adopting the preferred frequency, interference of communication conflict when other equipment is accessed in the transmission process is greatly reduced, and the correctness of audio system communication is ensured through a retransmission mechanism.
After the sound wave system is successfully handshake, the sound wave equipment enters a connected state to shield sound wave communication access information until the transaction is finished, so that interference of other equipment sending access commands in a communication gap is eliminated.
In the system shown in fig. 1, after the mobile device 1 and the acoustic wave device are successfully connected, transaction communication is performed at a fixed frequency, if the mobile device 2 sends an access signal in a communication process, the probability that the frequency used by the three channels is the same as the frequency used by the acoustic wave device for transaction transmission at the same time is very small because the three channels all use random frequencies, and if the transaction communication fails due to the fact that the channels are the same, the acoustic wave device ensures transmission correctness and integrity in a retransmission mode. If the mobile device 2 transmits an access signal during the communication gap, the acoustic wave device will not affect the acoustic wave device communication because the response to the access command has been turned off.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by 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, and the like. The storage medium is located in a memory, and a processor reads information in the memory and performs the method according to the embodiments of the present invention in combination with hardware thereof.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A sound wave receiving method, characterized by comprising:
the method comprises the steps that a plurality of channels of the sound wave equipment receive sound wave communication access information in a fixed frequency modulation mode respectively, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by the plurality of channels of the mobile terminal;
after the sound wave communication access information is received, respectively establishing connection between the plurality of channels and the plurality of channels of the mobile terminal;
extracting the plurality of preferred frequencies, and configuring the plurality of preferred frequencies as the transmitting frequency and the receiving frequency of the plurality of channels;
the channels transmit acoustic wave communication response information by adopting configured transmitting frequency;
and closing the processing thread of the sound wave communication access information to shield the sound wave communication access information.
2. The method of claim 1, after shutting down the processing thread of the sonic communication access information to shield the sonic communication access information, further comprising:
detecting whether the connection is disconnected;
and when the connection is disconnected, recovering the processing thread of the sound wave communication access information to cancel shielding of the sound wave communication access information.
3. The method according to claim 1, wherein the plurality of channels transmit the acoustic communication response messages using the configured transmit frequency, specifically:
each channel of the plurality of channels adopts the configured sending frequency to send sound wave communication response information; alternatively, the first and second electrodes may be,
and a preset channel in the plurality of channels transmits sound wave communication response information by adopting the configured transmitting frequency.
4. A method of transmitting sound waves, comprising:
a plurality of channels of the mobile terminal select the sending frequency in a random frequency modulation mode respectively;
the channels respectively adopt the selected sending frequency to send sound wave communication access information, and the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the channels respectively detect whether sound wave communication response information is received or not;
if so, stopping sending the sound wave communication access information, respectively establishing the connection between the plurality of channels and the plurality of channels of the sound wave equipment, and if not, continuing sending the sound wave communication access information;
and respectively configuring the supported preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels.
5. The method according to claim 4, wherein the plurality of channels of the mobile terminal respectively select the transmission frequency in a random frequency modulation manner, specifically:
each channel of the mobile terminal acquires a random number from a pre-stored random number table;
selecting a frequency point according to the acquired random number;
selecting the frequency corresponding to the frequency point as the sending frequency of each channel in a pre-stored frequency table;
and the frequency table comprises the frequency points and the frequencies corresponding to the frequency points.
6. An acoustic wave receiving apparatus, comprising:
the preferred frequency receiving unit is used for receiving sound wave communication access information by a plurality of channels in a fixed frequency modulation mode, wherein the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the first channel establishing unit is used for respectively establishing the connection between the plurality of channels and the plurality of channels of the mobile terminal after receiving the sound wave communication access information;
a first preferred frequency configuration unit, configured to extract the preferred frequencies and configure the preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels;
the acoustic wave communication response information sending unit is used for sending acoustic wave communication response information by the channels by adopting the configured sending frequency;
and the sound wave communication access information shielding unit is used for closing the processing thread of the sound wave communication access information so as to shield the sound wave communication access information.
7. The acoustic wave receiving device according to claim 6, wherein the preferred frequency configuration unit is specifically configured to transmit the acoustic wave communication response information at a preferred frequency of the configured preferred frequencies for each of the channels; alternatively, the first and second electrodes may be,
and sending acoustic wave communication response information at the configured preferred frequency for the preset channel in the plurality of channels.
8. An acoustic wave transmission device, comprising:
the transmitting frequency selection unit is used for selecting transmitting frequencies by a plurality of channels in a random frequency modulation mode;
the sound wave communication access information sending unit is used for sending sound wave communication access information by the channels respectively by adopting the selected sending frequency, and the sound wave communication access information comprises a plurality of preferred frequencies supported by the channels of the mobile terminal;
the acoustic wave communication response information detection unit is used for respectively detecting whether acoustic wave communication response information is received by the channels;
a second channel establishing unit, configured to stop sending the acoustic wave communication access information if the acoustic wave communication access information is received, respectively establish connection between the plurality of channels and the plurality of channels of the acoustic wave device, and continue sending the acoustic wave communication access information if the acoustic wave communication access information is not received;
and the second preferred frequency configuration unit is used for respectively configuring the supported preferred frequencies as the transmitting frequencies and the receiving frequencies of the channels.
9. The acoustic wave transmitting device according to claim 8, wherein the transmission frequency selecting unit specifically includes:
a random number obtaining subunit, configured to obtain, for each of the channels, a random number in a pre-stored random number table;
the frequency point selection subunit is used for selecting a frequency point according to the acquired random number;
the frequency selection subunit is used for selecting the frequency corresponding to the frequency point from a pre-stored frequency table as the sending frequency of each channel;
and the frequency table comprises the frequency points and the frequencies corresponding to the frequency points.
10. An acoustic wave system comprising the acoustic wave receiving apparatus according to any one of claims 6 to 7 and the acoustic wave transmitting apparatus according to any one of claims 8 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
PCT/CN2015/086976 WO2016023516A1 (en) | 2014-08-15 | 2015-08-14 | Sound wave sending method, receiving method, sending device and receiving device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337672A CN105337672A (en) | 2016-02-17 |
CN105337672B true CN105337672B (en) | 2020-07-10 |
Family
ID=55288004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410404383.9A Active 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 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105337672B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107543569B (en) * | 2016-06-29 | 2020-04-28 | 财团法人工业技术研究院 | Space disturbance detection method and device based on frequency modulation sound waves |
CN108880696B (en) * | 2017-05-12 | 2022-04-15 | 中兴通讯股份有限公司 | Frequency configuration handshaking method and system, terminal and computer readable storage medium |
CN108037500B (en) * | 2017-11-30 | 2024-04-12 | 安徽四创电子股份有限公司 | Tracking type monitoring radar |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9192353B2 (en) * | 2009-10-27 | 2015-11-24 | Innurvation, Inc. | Data transmission via wide band acoustic channels |
-
2014
- 2014-08-15 CN CN201410404383.9A patent/CN105337672B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105337672A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112217831B (en) | Information interaction method, device and equipment for Internet of things equipment | |
US9860772B2 (en) | Method and apparatus for determining connection relationship between an antenna feeding port of base station and an antenna port | |
CN105577293B (en) | A kind of test method of bluetooth equipment, apparatus and system | |
CN110381490B (en) | Communication method for wireless earphone, wireless earphone and wireless equipment | |
US8588091B2 (en) | Device, system and method of wireless communication over a combined channel | |
CN104796888A (en) | Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same | |
US11323154B2 (en) | Data transmission method and system, mobile terminal, and data device | |
CN104602364A (en) | Method for connecting wireless device to wireless access point and wireless device, intelligent terminal | |
CN105337672B (en) | Sound wave transmitting method, sound wave receiving method, sound wave transmitting device, sound wave receiving device and sound wave receiving system | |
US11838881B2 (en) | Method and device for transmitting synchronization signal block based on added time window, and storage medium | |
WO2017028651A1 (en) | Method, apparatus and system for performing configuration setting between devices | |
CN104581986A (en) | Wireless connection method and equipment | |
US20150235061A1 (en) | Tag reading apparatus and method, tag identification system | |
US20240056754A1 (en) | Channel-based control of audio transmissions | |
US20240121566A1 (en) | Channel-based control of audio transmissions | |
CN109756878A (en) | A kind of Bluetooth pairing methods and equipment | |
CN108702606A (en) | A kind of handshake method and equipment of wireless communication | |
KR20220020871A (en) | Terminal, system for transmitting data and method applied to the same | |
US9467222B1 (en) | Systems and methods for parallel communication with multiple bluetooth devices | |
CN105392083B (en) | A kind of MPP speakers switching method and access controller | |
JP6264937B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
CN107689854A (en) | Acquisition methods, sending method, terminal and the network transmitting-receiving node of system information | |
CN111315026A (en) | Channel selection method, device, gateway and computer readable storage medium | |
US20170111937A1 (en) | Pairing connection method for devices | |
WO2016023516A1 (en) | Sound wave sending method, receiving method, sending device and receiving device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |