CN117789732A - Method for wireless anti-interference audio transmission - Google Patents

Method for wireless anti-interference audio transmission Download PDF

Info

Publication number
CN117789732A
CN117789732A CN202311821980.7A CN202311821980A CN117789732A CN 117789732 A CN117789732 A CN 117789732A CN 202311821980 A CN202311821980 A CN 202311821980A CN 117789732 A CN117789732 A CN 117789732A
Authority
CN
China
Prior art keywords
audio
audio data
receiving end
data packet
frequency point
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.)
Pending
Application number
CN202311821980.7A
Other languages
Chinese (zh)
Inventor
郭晓威
刘涛
尹燕
孙鑫岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Golden Hualu Digital Technology Co ltd
Original Assignee
Dalian Golden Hualu Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Golden Hualu Digital Technology Co ltd filed Critical Dalian Golden Hualu Digital Technology Co ltd
Priority to CN202311821980.7A priority Critical patent/CN117789732A/en
Publication of CN117789732A publication Critical patent/CN117789732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless anti-interference audio transmission method, which comprises the steps of collecting audio data to be transmitted of audio equipment Soundbar through an audio sending end, and encoding the audio data to be transmitted obtained from the audio equipment Soundbar to obtain an audio data packet; after the audio signal to be transmitted is subjected to coding encryption processing, the audio data is transmitted and received wirelessly, so that the stability of the transmitted data is improved and the occurrence of packet loss rate is prevented; according to the communication mechanism, the audio data packet is decoded and played through the audio receiving end, the audio data is integrally transmitted after being packaged, the receiving equipment directly decodes after receiving the data packet, the time for data recombination is reduced, the time delay is effectively reduced, meanwhile, the safety of the data is improved, the interference of external wireless is reduced, and the stability of audio data transmission connection is improved.

Description

Method for wireless anti-interference audio transmission
Technical Field
The invention relates to the technical field of wireless communication of panoramic sound equipment, in particular to a wireless anti-interference audio transmission method.
Background
In modern life pursuing more and more conciseness, wireless transmission of signals such as audio gradually enters life of people, and life convenience of people is greatly improved. Currently, the vast majority of signal encoding and decoding operations of wireless audio transmission devices on the market are Bluetooth SBC technology and MP2 technology. However, the existing wireless audio transmission technology has some disadvantages, such as poor anti-interference capability, poor sound quality, high delay, etc., which are more prominent in high-quality audio transmission and real-time applications.
Therefore, to achieve better wireless audio transmission effect, it is necessary to design and develop an audio coding and decoding method with higher performance suitable for wireless audio transmission, and meanwhile, compared with the traditional wired transmission system, the wireless audio signal transmission system has higher requirements on code rate transmission, time delay and the like.
Disclosure of Invention
The invention provides a wireless anti-interference audio transmission method for overcoming the technical problems.
In order to achieve the above object, the technical scheme of the present invention is as follows:
a method of wireless anti-interference transmission of audio, comprising the steps of:
s1: initializing an audio receiving end and an audio sending end;
s2: based on a first audio data transmission strategy, acquiring audio data to be transmitted of audio equipment Soundbar through an audio sending end, and encoding the audio data to be transmitted acquired from the audio equipment Soundbar to acquire an audio data packet;
s3: constructing a communication mechanism of an audio receiving end and an audio transmitting end; for establishing synchronous communication between the audio receiving end and the audio transmitting end,
s4: and decoding the audio data packet through the audio receiving end according to the communication mechanism based on a second audio data transmission strategy, and playing the decoded audio data packet through audio playing equipment.
Further, the first audio data transmission policy is specifically
Setting an encoding queue address of an audio transmitting end, and reading audio data to be transmitted of audio equipment Soundbar through the audio transmitting end; the audio data to be transmitted is stored into a data buffer register of the audio transmitting end through the set DMA controller;
according to a set first timing interrupt signal, continuously detecting audio data to be transmitted in the data cache register, and after communication is established between an audio receiving end and an audio transmitting end, transmitting the audio data to be transmitted stored in the data cache register to an encoding queue address through a first RF (radio frequency) module of the audio transmitting end;
compression coding is carried out on the audio data to be transmitted in the coding queue address;
setting a working frequency point list and a synchronous channel according to the working frequency of a transmitting end, taking the working frequency point in the working frequency point list as an address head of audio data to be transmitted after compression coding, and acquiring an audio data packet; the DSP tone quality and sound effect processing unit at the audio transmitting end is used for denoising the audio data packet in the coding queue address;
and the audio sending end is used for transmitting the audio data packet to the audio receiving end when the audio receiving end sends the audio receiving application to the audio sending end according to the synchronous channel.
Further, the second audio data transmission policy is specifically
Setting a data buffer area of an audio receiving end, and synchronously communicating the audio transmitting end with the audio receiving end;
identifying an audio data packet sent by an audio sending end through a second RF (radio frequency) module of the audio receiving end, and transmitting the audio data packet to a data buffer area;
decoding the audio data packet in the data buffer area, and storing the decoded audio data packet into a data address of a receiving end;
based on the set second timing interrupt signal, the DMA controller of the audio receiving end transmits the audio data in the data address of the receiving end to the power amplifier AMP, and the audio data processed by the power amplifier AMP is played by the player.
Further, the constructed communication mechanism of the audio receiving end and the audio transmitting end comprises a receiving end communication mechanism and a transmitting end communication mechanism;
the sending end communication mechanism specifically comprises:
setting a first timing interruption of a preset time threshold, and setting a working mode of a first RF module as a transmitting mode in the first timing interruption; and sending an interrupt request of the audio data to the DSP sound quality and sound effect processing unit through the first RF module;
when the DSP tone quality and sound effect processing unit receives the first N interrupt requests, acquiring an audio data packet with the byte length of H according to the address of the coding queue and caching the audio data packet in real time; when the DSP tone quality sound effect processing unit receives the first n+1 interrupt requests, the audio receiving end controls the first RF module to send the real-time cached audio data packet to the audio receiving end;
after the transmission of the audio data cached in real time is completed, setting the working mode of the first RF module as a receiving mode, and monitoring an ACK confirmation signal fed back by an audio receiving end in real time;
if the first RF module receives the ACK confirmation signals in the M first timing interruption, confirming that the audio receiving end and the audio sending end keep communicating, and selecting the next working frequency point according to preset working frequency point information and a synchronization channel index based on a set working frequency point list and a synchronization channel;
if the first RF module does not receive the ACK confirmation signal in the M first timing interrupts, confirming that the audio receiving end and the audio sending end are disconnected in communication; and the working frequency points of the audio receiving end and the audio transmitting end are converted into the first address in the working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end.
Further, the receiving-end communication mechanism is specifically
Setting a second timing interruption of a preset time threshold, setting a working mode of a second RF module as a receiving mode, and sending an RF interruption request of audio data to an audio sending end by the second RF module based on the second timing interruption;
the first N RF interrupt requests are used for receiving the audio data packet with the byte length of H sent by the audio sending end, and when the second RF module sends the Nth RF interrupt request, the audio receiving end confirms whether the audio data packet is successfully received or not;
if the audio data packet received by the audio receiving end is different from the audio data packet sent by the audio sending end, the audio data packet is confirmed to be unsuccessfully received, and the current working frequency point is converted into the next appointed frequency point according to the working frequency point list and the synchronous channel, so that the audio data packet is continuously received;
and when the audio data packet is not successfully received within the preset time period, confirming that the audio receiving end is disconnected with the audio transmitting end, and converting the working frequency points of the audio receiving end and the audio transmitting end into a first address in a working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end;
if the audio data packet received by the audio receiving end is the same as the audio data packet sent by the audio sending end, the audio data packet is confirmed to be successfully received, and an ACK confirmation signal is synchronously acquired; at the moment, setting the working mode of the second RF module as a transmitting mode, and transmitting an ACK confirmation signal to a transmitting end;
after sending the ACK acknowledgement signal, the second RF module converts the working frequency point into the next appointed frequency point according to the working frequency point list, and sets the working mode of the second RF module as a receiving mode to prepare for receiving the audio data packet of the next frame.
Further, the strategy of establishing synchronous communication between the audio receiving end and the audio transmitting end is that the audio transmitting end obtains a plurality of communication signals as working frequency points according to a communication environment, and obtains a working frequency point list according to the intensity of the communication signals based on the working frequency points; storing the working frequency points of the working frequency point list in a set synchronous channel;
the sending end sets the working frequency point with the strongest signal in the selected working frequency point list as the frequency point of the synchronous channel so as to ensure that the audio sending end and the audio receiving end communicate on the same working frequency point;
based on the signal intensity and the signal-to-noise ratio, the audio receiving end scans and confirms the working frequency point value of the audio transmitting end in real time, and establishes communication with the audio transmitting end according to the working frequency point value.
The beneficial effects are that: the invention provides a wireless anti-interference audio transmission method, which comprises the steps of collecting audio data to be transmitted of audio equipment Soundbar through an audio sending end, and encoding the audio data to be transmitted obtained from the audio equipment Soundbar to obtain an audio data packet; after the audio signal to be transmitted is subjected to coding encryption processing, the audio data is transmitted and received wirelessly, so that the stability of the transmitted data is improved and the occurrence of packet loss rate is prevented; according to the communication mechanism, the audio data packet is decoded and played through the audio receiving end, the audio data is integrally transmitted after being packaged, the receiving equipment directly decodes after receiving the data packet, the time for data recombination is reduced, the time delay is effectively reduced, meanwhile, the safety of the data is improved, the interference of external wireless is reduced, and the stability of audio data transmission connection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a method for wireless anti-interference audio transmission according to the present invention;
fig. 2 is a basic block diagram of a wireless anti-interference transmission audio system in the present embodiment;
fig. 3 is a software design flow block diagram of a transmitting end of the sound system in the present embodiment;
FIG. 4 is a block diagram of a design flow of receiving-side software in the present embodiment;
fig. 5 is a flowchart of the frequency hopping technique implemented in the present embodiment;
fig. 6 is a block diagram of a communication response design implemented in the present embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment provides a method for wireless anti-interference audio transmission, as shown in fig. 1, comprising the following steps:
the embodiment also includes a system for wireless anti-interference audio transmission method, as shown in fig. 2, comprising two parts: an audio transmitting end and an audio receiving end; the audio transmitting end has the following functions: and encoding the audio signal input by the Soundbar, compressing the audio signal, and transmitting the compressed encoded data through a radio frequency wireless technology of 5.8G. The audio receiving end receives the functions to be realized: the Subwoofer end receives the data packet from the transmitting end through the radio frequency wireless technology of 5.8G and decodes the received audio signal. Specifically, the audio signal enters into the DSP tone quality sound effect processing unit through the I2S serial interface through the input end of Soundbar, the audio signal is subjected to denoising processing, finally the audio signal is sent out through the control unit MCU control audio sending end based on the I2C interface, the audio receiving end receives the audio signal and then sends the audio signal to the (AMP audio test amplifier) through the I2S serial interface, and finally the audio signal is sent to the loudspeaker to play audio, and the method specifically comprises the following steps:
s1: initializing an audio receiving end and an audio sending end;
specifically, initializing and configuring a DMA controller interrupt; audio data is read from the input port of Soundbar and then transferred to the designated address of the encoding queue through the DMA controller; initializing radio frequency module configuration, configuring timing interruption according to the requirement of a hardware platform so as to trigger interruption according to a certain time interval, realizing cooperative work with the timing interruption processing main function, establishing a communication mechanism, and transmitting encoded audio data to a receiving end; main functions mainly work as follows: continuously checking whether new audio data are input into the coding address queue; if the audio data is received, encoding is carried out, and then the audio data is stored in a queue of the RF transmission audio file;
s2: based on a first audio data transmission strategy, as shown in fig. 3, acquiring audio data to be transmitted of an audio device Soundbar through an audio sending end, and encoding the audio signal to be transmitted acquired from the audio device Soundbar to acquire an audio data packet;
the first audio data transmission strategy is specifically that
Setting an encoding queue address of an audio transmitting end, and reading audio data to be transmitted of audio equipment Soundbar through the audio transmitting end; the audio data to be transmitted is stored into a data buffer register of the audio transmitting end through the set DMA controller;
according to a set first timing interrupt signal, continuously detecting audio data to be transmitted in the data cache register, and after communication is established between an audio receiving end and an audio transmitting end, transmitting the audio data to be transmitted stored in the data cache register to an encoding queue address through a first RF (radio frequency) module of the audio transmitting end;
compression coding is carried out on the audio data to be transmitted in the coding queue address;
setting a working frequency point list and a synchronous channel according to the working frequency of a transmitting end, taking the working frequency point in the working frequency point list as an address head of audio data to be transmitted after compression coding, and acquiring an audio data packet; the DSP tone quality and sound effect processing unit at the audio transmitting end is used for denoising the audio data packet in the coding queue address;
and the audio sending end is used for transmitting the audio data packet to the audio receiving end when the audio receiving end sends the audio receiving application to the audio sending end according to the synchronous channel.
S3: constructing a communication mechanism of an audio receiving end and an audio transmitting end; the audio receiving end is used for establishing synchronous communication with the audio transmitting end;
specifically, as shown in fig. 6, the constructed communication mechanism between the audio receiving end and the audio transmitting end includes a receiving end communication mechanism and a transmitting end communication mechanism;
in a specific embodiment, the sending-end communication mechanism specifically includes:
setting a first timing interruption of a preset time threshold, and setting a working mode of a first RF module as a transmitting mode in the first timing interruption; and sending an interrupt request of the audio data to the DSP sound quality and sound effect processing unit through the first RF module;
when the DSP tone quality and sound effect processing unit receives the first N interrupt requests, acquiring an audio data packet with the byte length of H according to the address of the coding queue and caching the audio data packet in real time; when the DSP tone quality sound effect processing unit receives the first n+1 interrupt requests, the audio receiving end controls the first RF module to send the real-time cached audio data packet to the audio receiving end;
after the transmission of the audio data cached in real time is completed, setting the working mode of the first RF module as a receiving mode, and monitoring an ACK confirmation signal fed back by an audio receiving end in real time;
if the first RF module receives the ACK confirmation signals in the M first timing interruption, confirming that the audio receiving end and the audio sending end keep communicating, and selecting the next working frequency point according to preset working frequency point information and a synchronization channel index based on a set working frequency point list and a synchronization channel;
if the first RF module does not receive the ACK confirmation signal in the M first timing interrupts, confirming that the audio receiving end and the audio sending end are disconnected in communication; and the working frequency points of the audio receiving end and the audio transmitting end are converted into the first address in the working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end.
Specifically, the communication mechanism of the audio transmitting end is as follows:
s100: a 2 millisecond timer interrupt is set.
S101: in the timer interrupt, the first RF radio frequency module is set to a transmission mode.
S102: the first RF module constantly generates an interrupt request to the DSP to transmit data.
S103: the DSP tone quality sound effect processing unit can send data packets with H length according to the requirement in the first N received interrupts, and write 32 bytes of data in each sending.
S104: when the (n+1) th RF interrupt request is received, the DSP tone quality sound effect processing unit controls the first RF module to immediately take action and send out the data packet.
S105: after the data packet is sent, the first RF module is converted into a receiving state, and receives an ACK acknowledgement signal returned from the receiving end.
S106: and after the ACK confirmation signal is successfully received, entering a waiting state, and waiting for 2 ms to be generated.
S107: in the timer interrupt handling function, the first RF radio frequency module is converted into a receive mode.
S108: the device selects the next frequency point according to the pre-collected frequency point information and the channel quality index.
S109: when M consecutive timing interruptions occur, if an ACK acknowledgement signal has not been received at this time, this means that the connection between the two is interrupted.
S110: in this case, we reestablish the corresponding frequency hopping communication by converting the operating frequency point at this time to the first address in the frequency point table. Thereby ensuring stability and security of communication. By jumping to the head address of the frequency bin table, we can reselect a frequency to communicate to avoid possible interference or eavesdropping.
In a specific embodiment, the receiving-side communication mechanism is specifically
Setting a second timing interruption of a preset time threshold, setting a working mode of a second RF module as a receiving mode, and sending an RF interruption request of audio data to an audio sending end by the second RF module based on the second timing interruption;
the first N RF interrupt requests are used for receiving the audio data packet with the byte length of H sent by the audio sending end, and when the second RF module sends the Nth RF interrupt request, the audio receiving end confirms whether the audio data packet is successfully received or not;
if the audio data packet received by the audio receiving end is different from the audio data packet sent by the audio sending end, the audio data packet is confirmed to be unsuccessfully received, and the current working frequency point is converted into the next appointed frequency point according to the working frequency point list and the synchronous channel, so that the audio data packet is continuously received;
and when the audio data packet is not successfully received within the preset time period, confirming that the audio receiving end is disconnected with the audio transmitting end, and converting the working frequency points of the audio receiving end and the audio transmitting end into a first address in a working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end;
if the audio data packet received by the audio receiving end is the same as the audio data packet sent by the audio sending end, the audio data packet is confirmed to be successfully received, and an ACK confirmation signal is synchronously acquired; at the moment, setting the working mode of the second RF module as a transmitting mode, and transmitting an ACK confirmation signal to a transmitting end;
after sending the ACK acknowledgement signal, the second RF module converts the working frequency point into the next appointed frequency point according to the working frequency point list, and sets the working mode of the second RF module as a receiving mode to prepare for receiving the audio data packet of the next frame.
Specifically, the communication mechanism of the audio receiving end is as follows:
s200: during the initialization we set the second RF module to receive mode and will check if the communication times out every 3 milliseconds.
S201: in the normal communication process, the second RF module can periodically perform interrupt request, and perform reassignment operation on the timed interrupt, so that smooth data transmission is ensured, and meanwhile, the factor of possibly causing interference to communication is avoided.
S202: the RF interrupt request is a mechanism for receiving a packet transmitted from a sender. In this mechanism, the first N RF interrupts sent are mainly responsible for receiving packets of length H bytes and reading data of length 32 bytes from these packets at a time.
S203: when the nth RF interrupt request occurs, the interrupt handling function will question whether the data was successfully received and make a corresponding determination. If the receiving is judged to be successful, the interrupt processing function switches the working state of the second RF module, switches the second RF module from the original receiving state to the transmitting state, and transmits an ACK confirmation signal to the transmitting end.
S204: after the ACK acknowledgement signal is sent, the second RF module jumps the working frequency point to the designated next frequency point, switches the working mode to the receiving mode, and prepares to receive the data of the next frame. This procedure is to ensure stable transmission of data and to ensure that the receiving end can accurately receive the data of the next frame.
S205: if the data reception fails, we can make the following connection judgment. First, we need to confirm whether the current channel fails because it cannot correctly receive data. If this is the case, we can take a strategy to continually jump the current operating frequency point to the next designated frequency point to continue to attempt to receive data until successful. Thus, the method can ensure that the required data can be acquired in time.
S206: when the connection disconnection time is too long, the system can automatically switch the working frequency to the first address in the frequency point table at the moment, and reestablish corresponding frequency hopping communication with the transmitting end. This ensures the stability and reliability of the communication. Through frequency hopping communication, the system can avoid safety problems such as frequency interference and eavesdropping, and simultaneously can provide better communication quality and anti-interference capability.
In a specific embodiment, as shown in fig. 5, the policy for establishing synchronous communication between the audio receiving end and the audio transmitting end is specifically: the audio transmitting terminal acquires a plurality of communication signals as working frequency points according to a communication environment, and acquires a working frequency point list according to the intensity of the communication signals based on the working frequency points; storing the working frequency points of the working frequency point list in a set synchronous channel;
the sending end sets the working frequency point with the strongest signal in the selected working frequency point list as the frequency point of the synchronous channel so as to ensure that the audio sending end and the audio receiving end communicate on the same working frequency point;
based on the signal intensity and the signal-to-noise ratio, the audio receiving end scans and confirms the working frequency point value of the audio transmitting end in real time, and establishes communication with the audio transmitting end according to the working frequency point value.
In this embodiment, the communication mechanism is specifically a frequency hopping transmission mechanism, and for the frequency hopping transmission mechanism, the most critical is the communication frequency point. When the audio transmitting end communicates through the specific frequency point, if the ACK confirmation signal returned by the audio receiving end is successfully received, the communication between the audio transmitting end and the audio receiving end is switched to the next frequency channel together, and through the mechanism, the smooth proceeding of the communication can be ensured. Meanwhile, in order to improve the stability and reliability of signals during transmission, the invention designs the frequency hopping communication protocol, thereby not only referencing the special advantages of two communication modes of ACK packet transmission and NOACK packet transmission, but also specially designing a unique communication mode. That is, in the ACK packet transmission mechanism, after the audio transmitting end transmits one audio data packet, the audio transmitting end waits for an ACK acknowledgement signal returned from the audio receiving end to acknowledge. Only after the audio transmitting end receives the ACK acknowledgement signal, the audio transmitting end and the audio receiving end can switch the communication of the audio transmitting end and the audio receiving end to the next channel. Therefore, the transmission of each audio data packet can be ensured to be correctly confirmed, and the reliability of the transmission is improved. In the NOACK packet transmission mechanism, the audio transmitter does not wait for the acknowledgement signal from the receiver. It continuously transmits a plurality of audio data packets, and switches to the next channel for communication in a certain period of time, regardless of whether an acknowledgement signal is received or not. This mechanism increases the efficiency of transmission but may reduce reliability. By comprehensively using two mechanisms of ACK packet transmission and NOACK packet transmission, a proper communication mode can be selected according to specific situations. Under a stable communication environment, a NOACK packet transmission mechanism can be used to improve transmission efficiency; and in an unstable environment, the reliability of transmission can be ensured using an ACK packet transmission mechanism.
S4: based on the second audio data transmission strategy, as shown in fig. 4, the audio data packet is decoded by the audio transmitting end according to the communication mechanism, and the decoded audio data packet is played by the audio playing device.
The second audio data transmission strategy is specifically that
Setting a data buffer area of an audio receiving end, and synchronously communicating the audio transmitting end with the audio receiving end;
identifying an audio data packet sent by an audio sending end through a second RF (radio frequency) module of the audio receiving end, and transmitting the audio data packet to a data buffer area;
decoding the audio data packet in the data buffer area, and storing the decoded audio data packet into a data address of a receiving end;
based on the set second timing interrupt signal, the DMA controller of the audio receiving end transmits the audio data in the data address of the receiving end to the power amplifier AMP, and the audio data processed by the power amplifier AMP is played by the player.
In the embodiment, audio data to be transmitted of audio equipment Soundbar is acquired through an audio receiving end, and audio data packets are acquired by encoding the audio signals to be transmitted acquired from the audio equipment Soundbar; the audio data is transmitted and received wirelessly through the integrated module, and after coding encryption processing, the stability of the transmitted data is improved and the occurrence of packet loss rate is prevented; according to the communication mechanism, the audio data packet is decoded and played through the audio sending end, the audio data is integrally sent after being packaged, the receiving equipment directly decodes after receiving the data packet, the time for data recombination is reduced, the time delay is effectively reduced, meanwhile, the safety of the data is improved, the interference of external wireless is reduced, and the stability of audio data transmission connection is improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (6)

1. A method for wireless anti-interference transmission of audio, comprising the steps of:
s1: initializing an audio receiving end and an audio sending end;
s2: based on a first audio data transmission strategy, acquiring audio data to be transmitted of audio equipment Soundbar through an audio sending end, and encoding the audio data to be transmitted acquired from the audio equipment Soundbar to acquire an audio data packet;
s3: constructing a communication mechanism of the audio receiving end and the audio transmitting end, and enabling the audio receiving end and the audio transmitting end to establish synchronous communication;
s4: and decoding the audio data packet through the audio receiving end according to the communication mechanism based on a second audio data transmission strategy, and playing the decoded audio data packet through audio playing equipment.
2. The method for wireless anti-interference audio transmission according to claim 1, wherein the first audio data transmission policy specifically sets an encoding queue address of an audio transmitting end, and reads audio data to be transmitted of an audio device Soundbar through the audio transmitting end; the audio data to be transmitted is stored into a data buffer register of the audio transmitting end through the set DMA controller;
according to a set first timing interrupt signal, continuously detecting audio data to be transmitted in the data cache register, and after communication is established between an audio receiving end and an audio transmitting end, transmitting the audio data to be transmitted stored in the data cache register to an encoding queue address through a first RF (radio frequency) module of the audio transmitting end;
compression coding is carried out on the audio data to be transmitted in the coding queue address;
setting a working frequency point list and a synchronous channel according to the working frequency of a transmitting end, taking the working frequency point in the working frequency point list as an address head of audio data to be transmitted after compression coding, and acquiring an audio data packet; the DSP tone quality and sound effect processing unit at the audio transmitting end is used for denoising the audio data packet in the coding queue address;
and the audio sending end is used for transmitting the audio data packet to the audio receiving end when the audio receiving end sends the audio receiving application to the audio sending end according to the synchronous channel.
3. The method for wireless anti-interference audio transmission according to claim 1, wherein the second audio data transmission policy specifically comprises setting a data buffer of an audio receiving end, and synchronously communicating an audio transmitting end with the audio receiving end;
identifying an audio data packet sent by an audio sending end through a second RF (radio frequency) module of the audio receiving end, and transmitting the audio data packet to a data buffer area;
decoding the audio data packet in the data buffer area, and storing the decoded audio data packet into a data address of a receiving end;
based on the set second timing interrupt signal, the DMA controller of the audio receiving end transmits the audio data in the data address of the receiving end to the power amplifier AMP, and the audio data processed by the power amplifier AMP is played by the player.
4. The method for wireless anti-interference audio transmission according to claim 1, wherein the constructed communication mechanism between the audio receiving end and the audio transmitting end comprises a receiving end communication mechanism and a transmitting end communication mechanism;
the sending end communication mechanism specifically comprises:
setting a first timing interruption of a preset time threshold, and setting a working mode of a first RF module as a transmitting mode in the first timing interruption; and sending an interrupt request of the audio data to the DSP sound quality and sound effect processing unit through the first RF module;
when the DSP tone quality and sound effect processing unit receives the first N interrupt requests, acquiring an audio data packet with the byte length of H according to the address of the coding queue and caching the audio data packet in real time; when the DSP tone quality sound effect processing unit receives the first n+1 interrupt requests, the audio receiving end controls the first RF module to send the real-time cached audio data packet to the audio receiving end;
after the transmission of the audio data cached in real time is completed, setting the working mode of the first RF module as a receiving mode, and monitoring an ACK confirmation signal fed back by an audio receiving end in real time;
if the first RF module receives the ACK confirmation signals in the M first timing interruption, confirming that the audio receiving end and the audio sending end keep communicating, and selecting the next working frequency point according to preset working frequency point information and a synchronization channel index based on a set working frequency point list and a synchronization channel;
if the first RF module does not receive the ACK confirmation signal in the M first timing interrupts, confirming that the audio receiving end and the audio sending end are disconnected in communication; and the working frequency points of the audio receiving end and the audio transmitting end are converted into the first address in the working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end.
5. The method for wireless anti-interference audio transmission according to claim 4, wherein the receiver communication mechanism is specifically
Setting a second timing interruption of a preset time threshold, setting a working mode of a second RF module as a receiving mode, and sending an RF interruption request of audio data to an audio sending end by the second RF module based on the second timing interruption;
the first N RF interrupt requests are used for receiving the audio data packet with the byte length of H sent by the audio sending end, and when the second RF module sends the Nth RF interrupt request, the audio receiving end confirms whether the audio data packet is successfully received or not;
if the audio data packet received by the audio receiving end is different from the audio data packet sent by the audio sending end, the audio data packet is confirmed to be unsuccessfully received, and the current working frequency point is converted into the next appointed frequency point according to the working frequency point list and the synchronous channel, so that the audio data packet is continuously received;
and when the audio data packet is not successfully received within the preset time period, confirming that the audio receiving end is disconnected with the audio transmitting end, and converting the working frequency points of the audio receiving end and the audio transmitting end into a first address in a working frequency point list to realize frequency point hopping so as to ensure the communication connection between the audio receiving end and the audio transmitting end;
if the audio data packet received by the audio receiving end is the same as the audio data packet sent by the audio sending end, the audio data packet is confirmed to be successfully received, and an ACK confirmation signal is synchronously acquired; at the moment, setting the working mode of the second RF module as a transmitting mode, and transmitting an ACK confirmation signal to a transmitting end;
after sending the ACK acknowledgement signal, the second RF module converts the working frequency point into the next appointed frequency point according to the working frequency point list, and sets the working mode of the second RF module as a receiving mode to prepare for receiving the audio data packet of the next frame.
6. The method for wireless anti-interference audio transmission according to claim 5, wherein the strategy for establishing synchronous communication between the audio receiving end and the audio transmitting end is that the audio transmitting end obtains a plurality of communication signals as working frequency points according to a communication environment, and obtains a working frequency point list according to the intensity of the communication signals based on the working frequency points; storing the working frequency points of the working frequency point list in a set synchronous channel;
the sending end sets the working frequency point with the strongest signal in the selected working frequency point list as the frequency point of the synchronous channel so as to ensure that the audio sending end and the audio receiving end communicate on the same working frequency point;
based on the signal intensity and the signal-to-noise ratio, the audio receiving end scans and confirms the working frequency point value of the audio transmitting end in real time, and establishes communication with the audio transmitting end according to the working frequency point value.
CN202311821980.7A 2023-12-27 2023-12-27 Method for wireless anti-interference audio transmission Pending CN117789732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311821980.7A CN117789732A (en) 2023-12-27 2023-12-27 Method for wireless anti-interference audio transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311821980.7A CN117789732A (en) 2023-12-27 2023-12-27 Method for wireless anti-interference audio transmission

Publications (1)

Publication Number Publication Date
CN117789732A true CN117789732A (en) 2024-03-29

Family

ID=90386744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311821980.7A Pending CN117789732A (en) 2023-12-27 2023-12-27 Method for wireless anti-interference audio transmission

Country Status (1)

Country Link
CN (1) CN117789732A (en)

Similar Documents

Publication Publication Date Title
CN108718467B (en) Voice data transmission method, wireless headset and TWS headset
CN110995326B (en) Communication method of wireless earphone, wireless earphone and wireless earplug
US7966045B2 (en) WLAN communications system
US20190104424A1 (en) Ultra-low latency audio over bluetooth
US20200359134A1 (en) Wireless audio system and method for wirelessly communicating audio information using the same
US10820098B2 (en) Wireless microphone system, control method and audio-video conference system
CN111294783B (en) Audio data transmission method, device, chip and electronic equipment
US11032766B2 (en) Wire-free bluetooth communication system with fast pairing
CN103841002A (en) Method and terminal for voice transmission, voice server and voice transmission system
US20200396680A1 (en) Wire-Free Bluetooth Communication System with RSSI-based Dynamic Switchover
US10827333B1 (en) Wireless communication device and method for balancing power consumption for two bluetooth devices by switching the receiving and relaying of audio streams
US20240267164A1 (en) Wireless Stereo Headset with Bidirectional Diversity
CN110166988B (en) Wireless communication system and method thereof
WO2021223243A1 (en) Audio data transmission method and apparatus, chip, and electronic device
US20230179902A1 (en) Communication method applied to binaural wireless headset, and apparatus
CN110830973B (en) Method for transmitting audio information by using wireless earphone
CN114745705A (en) Communication chip, Bluetooth communication equipment and data transmission method
CN115866803B (en) Method and device for transmitting audio information by using wireless earphone
CN117789732A (en) Method for wireless anti-interference audio transmission
WO2024039545A1 (en) Uplink management for true wireless earbuds
KR20020038943A (en) Synchronization method and apparatus
CN114079898A (en) Audio data communication method, device, equipment and system in dual-transmission mode
CN113207114B (en) Bluetooth audio master device, bluetooth audio slave device, bluetooth communication method and Bluetooth communication system
TWI700953B (en) A wireless transmission system and method
EP1550229B1 (en) Wlan communications system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination