CN112702081B - Frequency hopping audio transmission method, device, equipment and system based on 2.4G - Google Patents
Frequency hopping audio transmission method, device, equipment and system based on 2.4G Download PDFInfo
- Publication number
- CN112702081B CN112702081B CN202011586458.1A CN202011586458A CN112702081B CN 112702081 B CN112702081 B CN 112702081B CN 202011586458 A CN202011586458 A CN 202011586458A CN 112702081 B CN112702081 B CN 112702081B
- Authority
- CN
- China
- Prior art keywords
- data
- signal
- frequency band
- transmission
- condition
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/69—Spread spectrum techniques
- H04B1/713—Spread spectrum techniques using frequency hopping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0289—Congestion control
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Transmitters (AREA)
Abstract
The invention provides a frequency hopping audio transmission method, a device, equipment and a system based on 2.4G, which are characterized in that the signal condition of the full frequency band of 2.4G is detected, and the signal frequency band is selected according to the detection result; the method comprises the steps of communicating a frequency band with external equipment and transmitting data to the external equipment; judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment; and determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition. The invention can solve the problems that the current audio is fixed and is easy to be cut off and blocked or the packet loss is serious and the delay is large so as to influence the user experience when the current audio is transmitted based on 2.4G wireless.
Description
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a 2.4G-based frequency hopping audio transmission method, apparatus, device, and system.
Background
The frequency band of the 2.4G wireless technology is between 2.405GHz and 2.485GHz, so the 2.4G wireless technology is called as 2.4G wireless technology for short, has a theoretical 2M data transmission rate, is doubled compared with the IM theoretical transmission rate of Bluetooth, and 2.4G wireless data transmission is widely applied in a plurality of fields due to the characteristics.
However, most of the existing 2.4G signals are automatically selected to be the best frequency channel, generally on 1, 6 and 11 channels, and the existing 2.4G signals are fixed on the channels after the selection is completed, but because the existing wifi 2.4G signals are very many in wireless data transmission equipment, the communication environment is complex, if the current channels are crowded or greatly interfered, the transmitted data are broken or blocked or are severely lost, the delay is very large, and the user experience is very poor.
Disclosure of Invention
The embodiment of the invention aims to provide a 2.4G-based frequency hopping audio transmission method, device, equipment and system, which are used for solving the problems that current audio is fixed and is easy to cut off and block or serious in packet loss and has large delay so as to influence user experience when the current audio is transmitted based on 2.4G wireless.
In order to achieve the above objective, an embodiment of the present invention provides a 2.4G-based frequency hopping audio transmission method, which includes:
detecting the signal condition of the 2.4G full frequency band, and selecting a signal frequency band according to the detection result;
the method comprises the steps of communicating a frequency band with external equipment and transmitting data to the external equipment;
judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
and determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition.
Optionally, the step of detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result includes:
and detecting the signal condition of the 2.4G full frequency band, and selecting the current optimal signal frequency band according to the detection result.
Optionally, the preset transmission conditions at least include: the method comprises the steps of presetting packet loss times; the step of judging whether the transmission condition of the data meets the preset transmission condition comprises the following steps:
and judging whether the transmission condition of the data meets the preset packet loss times or not.
Optionally, the preset transmission conditions at least include: preset channel congestion degree; the step of judging whether the transmission condition of the data meets the preset transmission condition comprises the following steps:
and judging whether the transmission condition of the data meets the preset channel congestion degree.
Optionally, the step of determining whether to reselect the signal band according to the result of determining whether the transmission condition of the data meets the preset transmission condition includes:
according to the judging result, if the transmission condition of the data is determined to meet the preset transmission condition, the signal frequency band is reselected;
and according to the judging result, if the data transmission condition is determined not to meet the preset transmission condition, continuing to adopt the current signal frequency band.
Optionally, after the step of continuing to adopt the current signal frequency band if the data transmission condition does not meet the preset transmission condition according to the determination result, the method further includes: and continuing to transmit data to the external device.
Optionally, before the step of detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result, the method further includes:
acquiring a UAC data packet, and analyzing PCM data from the UAC data packet;
the PCM data are segmented and packed to form a new data packet;
and adding a custom transmission encryption protocol, and modulating the new data packet to a 2.4G frequency band after converting the new data packet into an electric signal.
In addition, the invention also provides a frequency hopping audio transmission device based on 2.4G, which comprises:
the channel detection selection module is used for detecting the signal condition of the 2.4G full frequency band and selecting the signal frequency band according to the detection result;
the data communication transmission module is used for communicating the frequency band with external equipment and transmitting data to the external equipment;
the transmission condition judging module is used for judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
and the judging result determining module is used for determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition.
The invention also provides a frequency hopping audio transmission device based on 2.4G, which comprises:
a memory, a processor, and a 2.4G-based frequency hopping audio transmission program stored on the memory and executable on the processor;
and when the 2.4G-based frequency hopping audio transmission program is executed by the processor, the step of the 2.4G-based frequency hopping audio transmission method is realized.
The invention also provides a frequency hopping audio transmission system based on 2.4G, which comprises:
the frequency hopping audio transmission equipment based on 2.4G;
and a 2.4G-based frequency hopping audio receiving apparatus;
wherein, the frequency hopping audio receiving equipment based on 2.4G includes: a memory, a processor, and a 2.4G-based frequency-hopping audio reception program stored on the memory and executable on the processor;
when the 2.4G-based frequency hopping audio receiving program is executed by the processor, the following steps are realized:
receiving data from the 2.4G-based frequency hopping audio transmission device, demodulating and ADC (analog to digital converter) converting the data into digital signals;
decrypting the digital signal according to a custom transmission encryption protocol and decompressing a data packet;
and extracting the segmented PCM data in the data packet, and splicing to form complete PCM data for audio equipment to play.
The technical scheme has the following advantages or beneficial effects:
the invention provides a frequency hopping audio transmission method, a device, equipment and a system based on 2.4G, which are characterized in that the signal condition of the full frequency band of 2.4G is detected, and the signal frequency band is selected according to the detection result; the method comprises the steps of communicating a frequency band with external equipment and transmitting data to the external equipment; judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment; and determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition. Specifically, in the process of transmitting data to the external device, if the data transmission condition is detected to meet the preset transmission condition, a new channel is reselected; after finishing channel selection, transmitting data to the external equipment again, detecting the current data transmission condition at the same time, if detecting that the data transmission condition still meets the preset transmission condition, reselecting a new channel, and continuing to transmit data to the external equipment according to the process until detecting that the data transmission condition does not meet the preset transmission condition, until all audio data transmission is completed, thereby solving the problems that when the current audio is transmitted based on 2.4G wireless, the channel is fixed, current interruption and blockage are easy to occur, or packet loss is serious, and the time delay is large, so that the user experience is influenced.
Drawings
FIG. 1 is a schematic diagram of the hardware operation involved in an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of a 2.4G-based frequency hopping audio transmission method according to the present invention;
fig. 3 is a schematic diagram of an application scenario of an embodiment of a 2.4G-based frequency hopping audio transmission method according to the present invention;
fig. 4 is a flowchart of another embodiment of a 2.4G-based frequency hopping audio transmission method according to the present invention;
fig. 5 is a schematic structural diagram of a frequency hopping audio transmission apparatus based on 2.4G according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the 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.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operation environment according to an embodiment of the present invention, which may be a schematic structural diagram of a hardware operation environment of a 2.4G-based frequency hopping audio transmission device.
The 2.4G-based frequency hopping audio transmission device may be a 2.4G-based USB output dongle or other devices having a 2.4G-based data output function.
As shown in fig. 1, the 2.4G-based frequency hopping audio transmission apparatus includes: processor 1001 (e.g. S0C), communication bus 1002, user interface 1003, 2.4G communication interface 1004, memory 1005.
Wherein the communication bus 1002 is used for realizing the connection communication between the other components; the user interface 1003 may include at least one of a USB interface, an I2S interface; the memory 1005 may be a high-speed RAM memory or a stable memory (e.g., a disk memory); the memory 1005 may further be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the 2.4G-based frequency hopping audio transmission device structure shown in fig. 1 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
In the 2.4G-based frequency hopping audio transmission apparatus shown in fig. 1, the user interface 1003 is mainly used to connect other apparatuses to acquire audio data to be transmitted; the 2.4G communication interface 1004 is mainly used for forming communication connection with external equipment to complete external transmission of data, where the external equipment may be a device or equipment with data receiving capability based on 2.4G; the processor 1001 may be configured to call a 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and perform the following operations:
detecting the signal condition of the 2.4G full frequency band, and selecting a signal frequency band according to the detection result;
the method comprises the steps of communicating a frequency band with external equipment and transmitting data to the external equipment;
judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
and determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition.
Further, the processor 1001 may be configured to invoke the 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and further perform the following operations:
and detecting the signal condition of the 2.4G full frequency band, and selecting the current optimal signal frequency band according to the detection result.
Further, the processor 1001 may be configured to invoke the 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and further perform the following operations:
and judging whether the transmission condition of the data meets the preset packet loss times or not.
Further, the processor 1001 may be configured to invoke the 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and further perform the following operations:
and judging whether the transmission condition of the data meets the preset channel congestion degree.
Further, the processor 1001 may be configured to invoke the 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and further perform the following operations:
according to the judging result, if the transmission condition of the data is determined to meet the preset transmission condition, the signal frequency band is reselected;
and according to the judging result, if the data transmission condition is determined not to meet the preset transmission condition, continuing to adopt the current signal frequency band.
Further, the processor 1001 may be configured to invoke a 2.4G-based frequency hopping audio transmission program stored in the memory 1005, and after determining, according to the determination result, that the transmission condition of the data does not meet the preset transmission condition, continue to employ the current signal frequency band, further perform the following operations:
and continuing to transmit data to the external device.
Further, the processor 1001 may be configured to invoke the frequency hopping audio transmission program based on 2.4G stored in the memory 1005, and before the step of detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result, further perform the following operations:
acquiring a UAC data packet, and analyzing PCM data from the UAC data packet;
the PCM data are segmented and packed to form a new data packet;
and adding a custom transmission encryption protocol, and modulating the new data packet to a 2.4G frequency band after converting the new data packet into an electric signal.
Based on the above structure, various embodiments of the method for identifying a potentially risk object of the present invention are presented.
Fig. 2 is a schematic flow chart of a first embodiment of a 2.4G-based frequency hopping audio transmission method according to the present invention.
The embodiments of the present invention provide embodiments of a 2.4G-based frequency hopping audio transmission method, it being noted that although a logical sequence is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than what is shown or described herein.
The 2.4G-based frequency hopping audio transmission method in the embodiment of the present invention is used in the 2.4G-based frequency hopping audio transmission device, and the 2.4G-based frequency hopping audio transmission device in the embodiment of the present invention may be a 2.4G-based USB output dongle or other devices having a 2.4G-based data output function, which is not limited herein.
The frequency hopping audio transmission method based on 2.4G in the embodiment comprises the following steps:
step S100, detecting the signal condition of the 2.4G full frequency band, and selecting the signal frequency band according to the detection result.
When data is to be transmitted to the external device, an audio transmission device (for convenience of description, the following embodiments will use "audio transmission device" as "2.4G-based frequency hopping audio transmission device" in the present invention) will detect the signal condition of the 2.4G full band in the current environment state in real time, and select one of the signal bands as the signal band used for the data transmission to be performed according to the detected result.
The principle that the audio transmission device detects the signal condition of the frequency band and selects the signal frequency band according to the detection result is approximately the same as the principle that a communication device such as a router with the functions of frequency band signal detection and automatic selection operates the functions, specifically as follows:
transmitting a detection request broadcast frame on each channel in turn, and staying for a period of time on each channel to receive and store detection response frames responded by other access point devices;
extracting the intensity information of the wifi same frequency interference signals from the detection response frames received on each channel, and calculating the average intensity of the wifi same frequency interference signals of each channel according to the extracted intensity information of the wifi same frequency interference signals;
and frequency hopping is carried out to a channel with the same-frequency interference signal strength meeting the preset condition as a working channel.
Wherein the channels correspond to the signal frequency bands of the audio transmission device.
Further, step S100 includes:
and detecting the signal condition of the 2.4G full frequency band, and selecting the current optimal signal frequency band according to the detection result.
In the working principle, the method is equivalent to that after the average intensity of wifi co-frequency interference signals of each channel is calculated, the channel with the minimum co-frequency interference signal intensity is used as the working channel.
Step S200, communicating the frequency band with the external equipment and transmitting data to the external equipment.
When the frequency band is matched with the external equipment, the audio transmission equipment is always in a monitoring state, and when the audio transmission equipment is connected with the external equipment and handshakes the connection and the handshake protocol sent by the external equipment, the frequency band is communicated, the audio transmission equipment is matched with the external equipment, and data transmission is started to the audio transmission equipment.
Step S300, determining whether the transmission condition of the data satisfies a preset transmission condition when transmitting the data to the external device.
In the process of transmitting data to the external device, the audio transmission device can detect the data transmission condition between the audio transmission device and the external device in real time, wherein the data transmission condition comprises factors affecting the integrity and the transmission speed of audio data such as whether network packet loss occurs, whether the current channel is overcrowded or not, and correspondingly, the preset transmission condition can also be set as whether network packet loss occurs or whether the current channel is overcrowded or not.
The method for detecting whether network packet loss occurs can be realized by adopting a mode based on calculating the TCP large interval rate, and specifically comprises the following steps:
the method is based on calculating the value of TCP large interval rate=TCP large interval number/TCP total interval number to detect the network packet loss condition, and has the following three conditions:
the TCP packets arrive in sequence, and no network packet loss occurs;
TCP packets arrive out of order, are not retransmitted, and network packet loss does not occur;
TCP packets arrive out of order, and the packets are retransmitted, and network packet loss occurs.
In this way, the audio transmission device can determine whether the transmission condition of the data meets the preset transmission condition by determining whether the network packet loss occurs.
Further, step S300 includes:
and judging whether the transmission condition of the data meets the preset packet loss times or not.
The preset packet loss times can be set to be N times, N is an integer greater than zero, and the specific numerical value can be set according to the requirement of a user.
In particular, in the embodiment, the audio transmission device detects the data transmission condition between the audio transmission device and the external device in real time, and when the number of times of network packet loss is greater than or equal to N, it can be determined that the data transmission condition meets the preset transmission condition.
The detection of whether the current channel is overcrowded or not can be realized by a conventional method for detecting response frames, and specifically comprises the following steps:
the audio transmission equipment sends a probe request broadcast frame on a current channel, stays on the channel for a period of time, and waits for receiving a probe response frame of external equipment, namely a probe response frame;
extracting signal intensity information from the detection response frame;
and calculating the average intensity of wifi co-channel interference signals received by the audio transmission equipment on the current channel.
Through the steps, whether the current channel is overcrowded or not can be determined, whether the signal strength is weak or not is determined, and whether the transmission condition of data meets the preset transmission condition or not is further determined.
Further, step S300 includes:
and judging whether the transmission condition of the data meets the preset channel congestion degree.
The congestion threshold value of the channel congestion degree can be set as Y, and a specific value of the congestion threshold value Y can be set according to the requirement of a user.
In particular, in the embodiment, the audio transmission device detects the data transmission condition between the audio transmission device and the external device in real time, and when the channel congestion degree is greater than or equal to the congestion threshold Y, it may be determined that the data transmission condition meets the preset transmission condition.
Step S400: and determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition.
If it is determined that the data transmission condition does not meet the preset transmission condition (that is, the number of times of network packet loss is less than N and/or when the channel congestion degree is less than the congestion threshold Y), the current signal frequency band is continuously adopted.
After determining to continue to employ the current signal frequency band, the audio transmission device continues to transmit data to the external device.
If it is determined that the data transmission condition meets the preset transmission condition (that is, the number of times of network packet loss is greater than or equal to N and/or when the channel congestion degree is greater than or equal to the congestion threshold Y), the process returns to step S100, and the signal frequency band is re-detected and selected.
Further, in another embodiment, in step S100, before detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result, the method for transmitting frequency hopping audio based on 2.4G according to the present invention further includes:
step S500, a UAC data packet is obtained, and PCM data is analyzed from the UAC data packet.
The audio transmission device is connected with other devices through the user interface, and after obtaining audio data, namely UAC data packets, from the devices, the UAC data packets are decoded, and PCM data in the UAC data packets are extracted.
Step S600, the PCM data segments are packed to form new data packets.
After the audio transmission device decodes the audio data obtained from other devices to extract the PCM data therein, the audio transmission device packs the PCM data segments to form new data packets.
And step S700, adding a custom transmission encryption protocol, and modulating the new data packet to a 2.4G frequency band after converting the new data packet into an electric signal.
After the audio transmission device packs the PCM data segments to form a new data packet, the new data packet is encrypted by adding a custom transmission encryption protocol, and the new data packet is converted into an electric signal after encryption is completed, and finally modulated to a 2.4G frequency band for the audio transmission device to transmit to external devices.
By adding the custom transmission encryption protocol, the privacy of the audio data transmission is better, and the hijacking and cracking risks are smaller.
As shown in fig. 5, the present invention further provides a 2.4G-based frequency hopping audio transmission device, where the 2.4G-based frequency hopping audio transmission device includes:
the channel detection selection module is used for detecting the signal condition of the 2.4G full frequency band and selecting the signal frequency band according to the detection result;
the data communication transmission module is used for communicating the frequency band with external equipment and transmitting data to the external equipment;
the transmission condition judging module is used for judging whether the transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
and the judging result determining module is used for determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition.
Further, the channel detection selection module includes:
the channel detection unit is used for detecting the signal condition of the 2.4G full frequency band;
and the optimal frequency band selection unit is used for selecting the current optimal signal frequency band according to the detection result.
Further, the transmission condition judging module includes:
and the packet loss detection judging unit is used for judging whether the transmission condition of the data meets the preset packet loss times.
Further, the transmission condition judging module includes:
and the channel congestion detection judging unit is used for judging whether the transmission condition of the data meets the preset channel congestion degree.
Further, the judgment result determining module includes:
a first judgment result determining unit, configured to reselect a signal frequency band if it is determined that the transmission condition of the data meets the preset transmission condition according to the judgment result;
and the second judgment result determining unit is used for continuing to adopt the current signal frequency band if the transmission condition of the data is determined to not meet the preset transmission condition according to the judgment result.
Further, the 2.4G-based frequency hopping audio transmission apparatus further includes:
the data acquisition and analysis module is used for acquiring a UAC data packet and analyzing PCM data from the UAC data packet;
the data segment packaging module is used for packaging the PCM data segments to form a new data packet;
and the encryption signal conversion module is used for adding a custom transmission encryption protocol, converting the new data packet into an electric signal and modulating the electric signal to a 2.4G frequency band.
The steps of the frequency hopping audio transmission method based on 2.4G, which are described above, are implemented by each functional module of the frequency hopping audio transmission device based on 2.4G when running, and are not described herein.
The invention also provides a frequency hopping audio transmission system based on 2.4G, which comprises:
the frequency hopping audio transmission equipment based on 2.4G;
and a 2.4G-based frequency hopping audio receiving apparatus;
wherein, the frequency hopping audio receiving equipment based on 2.4G includes: a memory, a processor, and a 2.4G-based frequency-hopping audio reception program stored on the memory and executable on the processor;
when the 2.4G-based frequency hopping audio receiving program is executed by the processor, the following steps are realized:
receiving data from the 2.4G-based frequency hopping audio transmission device, demodulating and ADC (analog to digital converter) converting the data into digital signals;
decrypting the digital signal according to a custom transmission encryption protocol and decompressing a data packet;
and extracting the segmented PCM data in the data packet, and splicing to form complete PCM data for audio equipment to play.
The above-described 2.4G-based frequency hopping audio transmission method, apparatus and system will be described in more detail with reference to the following embodiments.
In this embodiment, the audio transmission device may be understood as a 2.4G USB TX dongle; the external device may be understood as a 2.4G TX receiver (a 2.4G TX receiver may be understood as a 2.4G-based frequency hopping audio receiver as described above); the device to which the 2.4G USB TX dongle is connected through its USB interface can be understood as a device having audio output capability such as a smart tv, a tv box, a PC, etc., and a smart tv will be selected as an example for explanation in the following embodiments.
The user inserts a 2.4G USB TX dongle on the smart television, then selects sound to be emitted from the dongle, and then the sound can be emitted from a cavity (the cavity can be understood as an audio playing device connected with the 2.4G RX receiving end) which is additionally provided with a corresponding 2.4G RX receiving end.
If the scene of playing music by the intelligent television is adopted, other scenes are also the same principle: firstly, 2.4G tx usb dongle is inserted onto the intelligent television; then selecting sound to sound from 2.4G USB TX dongle; 2.4G TXUSB TX dongle and 2.4G RX receiving end pair, after pairing, the smart TV transmits the audio data to 2.4G USB TX dongle,2.4G RX receiving end, and then transmits it to audio playing device to make sound.
In the embodiment, if the mp3 audio file is played, the smart television decodes the mp3 audio file into PCM data through the SOC, then repacks the PCM data into UAC data packets through the codec, transmits the UAC data packets to 2.4G USB TX dongle,2.4G USB TX dongle, repacks the PCM data parsed by the UAC data packets through a custom protocol, compresses the data packets, adds the custom transmission encryption protocol, converts the data into electrical signals, and finally modulates the electrical signals to a 2.4G frequency band for transmission.
The 2.4G RX receiving end receives the data flow and the 2.4G USB TX dongle sending flow, the received data is firstly demodulated and converted into a digital signal by an ADC, the digital signal is decrypted and decompressed by a self-defined transmission encryption protocol, the segmented PCM data is taken out, the segmented PCM data is spliced, one packet of the segmented PCM data is completed, and the segmented PCM data is transmitted to audio playing equipment connected with the 2.4G RX receiving end through an I2S or USB protocol, so that sound can be produced.
In the process that the 2.4G USB TX dongle transmits data to the 2.4G RX receiving end, if the detected packet loss times are greater than or equal to a preset value and/or the channel congestion degree is greater than or equal to a preset congestion threshold value, the 2.4G USB TX dongle reselects a new channel; after the channel selection is completed, data is transmitted to the 2.4G RX receiving end again, the current data transmission condition is detected, and the process is repeated until the packet loss times are detected to be smaller than a preset value and/or the channel congestion degree is detected to be smaller than a preset congestion threshold value, and the 2.4G USB TX dongle continues to transmit the data to the 2.4G RX receiving end until all audio data transmission is completed. Therefore, the problems that when the current audio is transmitted based on 2.4G wireless, the channel is fixed, the current audio is easy to cut off and block, or the packet loss is serious, and the time delay is large, so that the user experience is influenced are solved.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (7)
1. The frequency hopping audio transmission method based on 2.4G is characterized by comprising the following steps of:
detecting the signal condition of the 2.4G full frequency band, and selecting a signal frequency band according to the detection result;
the method comprises the steps of communicating a frequency band with external equipment and transmitting data to the external equipment;
judging whether the real-time transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
according to the judging result, if the transmission condition of the data is determined to meet the preset transmission condition, re-detecting the signal condition of the 2.4G full frequency band, and selecting a signal frequency band according to the detecting result;
according to the judging result, if the data transmission condition is determined not to meet the preset transmission condition, continuing to adopt the current signal frequency band, and continuing to transmit data to the external equipment;
the detecting the signal condition of the 2.4G full frequency band and selecting the signal frequency band according to the detection result comprises:
transmitting a detection request broadcast frame on each channel in turn, and staying for a period of time on each channel to receive and store detection response frames responded by other access point devices;
extracting the intensity information of the wifi same frequency interference signals from the detection response frames received on each channel, and calculating the average intensity of the wifi same frequency interference signals of each channel according to the extracted intensity information of the wifi same frequency interference signals; the frequency hopping is carried out to a channel with the minimum co-frequency interference signal strength as a working channel; wherein the channel corresponds to the signal frequency band of the audio transmission device;
the preset transmission conditions at least comprise: the method comprises the steps of presetting packet loss times;
the step of judging whether the transmission condition of the data meets the preset transmission condition comprises the following steps:
and judging whether the transmission condition of the data meets the preset packet loss times or not.
2. The 2.4G-based frequency hopping audio transmission method as claimed in claim 1, wherein the step of detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result comprises:
and detecting the signal condition of the 2.4G full frequency band, and selecting the current optimal signal frequency band according to the detection result.
3. The 2.4G-based frequency hopping audio transmission method according to claim 1, wherein the preset transmission conditions at least include: preset channel congestion degree;
the step of judging whether the transmission condition of the data meets the preset transmission condition comprises the following steps:
and judging whether the transmission condition of the data meets the preset channel congestion degree.
4. A 2.4G based frequency hopping audio transmission method according to any one of claims 1 to 3, characterized by further comprising, before the step of detecting the signal condition of the 2.4G full band and selecting the signal band according to the detection result:
acquiring a UAC data packet, and analyzing PCM data from the UAC data packet;
the PCM data are segmented and packed to form a new data packet;
and adding a custom transmission encryption protocol, and modulating the new data packet to a 2.4G frequency band after converting the new data packet into an electric signal.
5. A 2.4G-based frequency hopping audio transmission apparatus, comprising:
the channel detection selection module is used for detecting the signal condition of the 2.4G full frequency band, selecting the signal frequency band according to the detection result, specifically, sequentially sending a detection request broadcast frame on each channel, and staying for a period of time on each channel to receive detection response frames responded by other access point equipment and storing the detection response frames; extracting the intensity information of the wifi same frequency interference signals from the detection response frames received on each channel, and calculating the average intensity of the wifi same frequency interference signals of each channel according to the extracted intensity information of the wifi same frequency interference signals; the frequency hopping is carried out to a channel with the minimum co-frequency interference signal strength as a working channel; wherein the channel corresponds to the signal frequency band of the audio transmission device;
the data communication transmission module is used for communicating the frequency band with external equipment and transmitting data to the external equipment;
the transmission condition judging module is used for judging whether the real-time transmission condition of the data meets the preset transmission condition when the data is transmitted to the external equipment;
the judging result determining module is used for determining whether to reselect the signal frequency band according to the judging result of whether the data transmission condition meets the preset transmission condition;
the data acquisition and analysis module is used for acquiring a UAC data packet and analyzing PCM data from the UAC data packet;
the data segment packaging module is used for packaging the PCM data segments to form a new data packet;
the encryption signal conversion module is used for adding a custom transmission encryption protocol, converting the new data packet into an electric signal and modulating the electric signal to a 2.4G frequency band;
the channel detection selection module comprises:
the channel detection unit is used for detecting the signal condition of the 2.4G full frequency band;
the optimal frequency band selection unit is used for selecting the current optimal signal frequency band according to the detection result;
the transmission condition judging module comprises:
the packet loss detection judging unit is used for judging whether the transmission condition of the data meets the preset packet loss times;
the judging result determining module comprises:
the first judgment result determining unit is used for detecting the signal condition of the 2.4G full frequency band again according to the judgment result if the transmission condition of the data meets the preset transmission condition, and selecting the signal frequency band according to the detection result;
and the second judgment result determining unit is used for continuously adopting the current signal frequency band and continuously transmitting data to the external equipment if the transmission condition of the data is determined to not meet the preset transmission condition according to the judgment result.
6. A 2.4G-based frequency hopping audio transmission apparatus, comprising:
a memory, a processor, and a 2.4G-based frequency hopping audio transmission program stored on the memory and executable on the processor;
the 2.4G based frequency hopping audio transmission procedure, when executed by the processor, implements the steps of the 2.4G based frequency hopping audio transmission method as claimed in any one of claims 1 to 4.
7. A 2.4G-based frequency hopping audio transmission system, comprising:
the 2.4G based frequency hopping audio transmission apparatus of claim 6;
and a 2.4G-based frequency hopping audio receiving apparatus;
wherein, the frequency hopping audio receiving equipment based on 2.4G includes: a memory, a processor, and a 2.4G-based frequency-hopping audio reception program stored on the memory and executable on the processor;
when the 2.4G-based frequency hopping audio receiving program is executed by the processor, the following steps are realized:
receiving data from the 2.4G-based frequency hopping audio transmission device, demodulating and ADC (analog to digital converter) converting the data into digital signals;
decrypting the digital signal according to a custom transmission encryption protocol and decompressing a data packet;
and extracting the segmented PCM data in the data packet, and splicing to form complete PCM data for audio equipment to play.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011586458.1A CN112702081B (en) | 2020-12-29 | 2020-12-29 | Frequency hopping audio transmission method, device, equipment and system based on 2.4G |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011586458.1A CN112702081B (en) | 2020-12-29 | 2020-12-29 | Frequency hopping audio transmission method, device, equipment and system based on 2.4G |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112702081A CN112702081A (en) | 2021-04-23 |
CN112702081B true CN112702081B (en) | 2023-05-30 |
Family
ID=75511374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011586458.1A Active CN112702081B (en) | 2020-12-29 | 2020-12-29 | Frequency hopping audio transmission method, device, equipment and system based on 2.4G |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112702081B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744541A (en) * | 2014-12-10 | 2016-07-06 | 乐视致新电子科技(天津)有限公司 | Wireless router channel selection method, wireless router channel selection device and wireless router |
CN108521286A (en) * | 2018-03-13 | 2018-09-11 | 深圳飞思通科技有限公司 | A kind of communication means of the learning-oriented adaptive wireless frequency hopping of 2.4G frequency ranges |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10321244B2 (en) * | 2013-01-10 | 2019-06-11 | Starkey Laboratories, Inc. | Hearing assistance device eavesdropping on a bluetooth data stream |
CN104507113A (en) * | 2015-01-04 | 2015-04-08 | 北京极科极客科技有限公司 | Method for detecting wifi signal quality of all information channels |
CN105281805B (en) * | 2015-10-20 | 2018-03-06 | 广东公信智能会议股份有限公司 | Method and device is jumped in the choosing of FHSS in real-time wireless audio transmission system |
CN106658597B (en) * | 2016-10-12 | 2020-03-20 | 深圳市道通智能航空技术有限公司 | Data transmission method, sending device and receiving device |
CN108419204B (en) * | 2018-01-17 | 2021-02-09 | 西安邮电大学 | Wireless navigation communication mode and device |
-
2020
- 2020-12-29 CN CN202011586458.1A patent/CN112702081B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744541A (en) * | 2014-12-10 | 2016-07-06 | 乐视致新电子科技(天津)有限公司 | Wireless router channel selection method, wireless router channel selection device and wireless router |
CN108521286A (en) * | 2018-03-13 | 2018-09-11 | 深圳飞思通科技有限公司 | A kind of communication means of the learning-oriented adaptive wireless frequency hopping of 2.4G frequency ranges |
Also Published As
Publication number | Publication date |
---|---|
CN112702081A (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101889551B1 (en) | Generalized division free duplexing techniques for decreasing rendevous time | |
US11006224B2 (en) | Hearing device and a method of selecting an optimal transceiver channel in a wireless network | |
US8315573B2 (en) | Externally sourced synchronized beacon | |
CN112312369B (en) | Low-delay wireless audio sending and receiving method and equipment | |
US8169996B2 (en) | Synchronized beacon for network having multiple radios | |
US20100097950A1 (en) | In one or more network coexistable environment, a method for determining whether a specific channel is available or not, a method for receiving a signal for detecting and a method for communicating in coexistence with a different kind of network | |
KR101258588B1 (en) | Method and apparatus for Dynamic Frequency Selection between Basic Service Set in same channel | |
US10405241B2 (en) | Data transmission method and system, and related device | |
US9236961B2 (en) | Broadcast switching device, method and terminal | |
EP3076609B1 (en) | Method and device for transmitting media data | |
CN112105058B (en) | Link connection method and related device | |
CN108712778A (en) | Channel selecting method and Related product | |
US20120263099A1 (en) | Integrated repeater having application to internet network and compression algorithm | |
CN112335328B (en) | Method and system for transmitting audio data and wireless audio system | |
CN112702081B (en) | Frequency hopping audio transmission method, device, equipment and system based on 2.4G | |
WO2002051075A3 (en) | Receiving unit for searching for at least one unused transmission channel in a communications device, and a method for use | |
CN115551116A (en) | Method and system for establishing communication link based on dual-mode self-adaptive frequency band | |
JP2004538740A (en) | Method and equipment for communicating in a wireless communication network | |
US11251828B2 (en) | Network routing device, network data transmission method, and network access device | |
US6978140B1 (en) | Communications system and associated method for improving the service quality thereof | |
CN117896675A (en) | Broadcast audio transmission method, terminal equipment and storage medium | |
CN112910569B (en) | Data transmission method and system | |
CN109688617A (en) | Data transmission system, method and device | |
EP1150534B1 (en) | Method of communication between two multimode radio terminals and corresponding radio terminal | |
CN107925882B (en) | Spatial multiplexing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |