A data transmission method, device, and readable storage medium
By identifying Bluetooth signals in the common channel and constructing Wi-Fi packets, the spectrum competition and interference problems of Bluetooth devices and Wi-Fi devices in the unauthorized frequency band are solved, and the efficiency and performance of collaborative transmission are improved.
Patent Information
- Application Number
- CN202110570674.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-25
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-05-25
AI Technical Summary
In the prior art, Bluetooth devices and Wi-Fi devices have spectrum resource competition and interference problems when sharing unauthorized frequency bands, resulting in low collaborative transmission efficiency.
By obtaining the signal to be detected in the common channel, identifying the Bluetooth signal and obtaining the channel number it occupies, determining that the relevant subcarriers in the Wi-Fi channel are reserved subcarriers, constructing Wi-Fi data packets and sending them through the target subcarriers.
It improves the collaborative transmission efficiency and performance of Bluetooth devices and Wi-Fi devices in unauthorized frequency bands, reduces interference and packet loss rates, and extends the service life of Bluetooth devices.
Smart Images

Figure CN113301549B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technologies, and in particular, to a data transmission method, apparatus, and readable storage medium. Background Art
[0002] As wireless communication technologies are applied to various fields such as smart home, smart healthcare, intelligent transportation, and industrial telemetry and remote control, in actual scenarios of daily life (such as Internet of Things application scenarios), there are usually multiple devices supporting different wireless protocols. These devices supporting different wireless protocols (such as low-power Bluetooth protocol and Wi-Fi (often written as "WiFi" or "Wifi" or "WI-FI", also known as mobile hotspot or wireless high-fidelity) protocol) share the unlicensed band of 2.4 GHz, resulting in serious spectrum resource competition and interference problems.
[0003] To achieve cooperative transmission between Bluetooth devices and Wi-Fi devices, in an existing transmission scheme, a Bluetooth device divides an 80-MHz unlicensed band into 40 parts, and then randomly selects channels for frequency hopping transmission, that is, actively avoids channels with the same frequency as Wi-Fi signals through frequency hopping, so as to achieve cooperative transmission. This frequency hopping transmission scheme is applicable to scenarios where Wi-Fi devices are sparsely deployed. However, in scenarios where Wi-Fi devices are densely deployed, such as office scenarios, the entire 80-MHz unlicensed band will be occupied by Wi-Fi channels, and the effect of Bluetooth frequency hopping transmission will be weakened, resulting in greater interference conflicts and packet loss rates. It can be seen that in the existing technical solutions, the efficiency of cooperative transmission between Bluetooth devices and Wi-Fi devices is relatively low. Summary of the Invention
[0004] Embodiments of this application provide a data transmission method, apparatus, and readable storage medium, which can improve the efficiency of cooperative transmission between Bluetooth devices and Wi-Fi devices.
[0005] On the one hand, an embodiment of this application provides a data transmission method, including:
[0006] Obtain a signal to be detected in a common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel;
[0007] Identify the Bluetooth signal in the signal to be detected, obtain the channel number of the Bluetooth channel occupied by the Bluetooth signal, and determine the subcarriers associated with the channel number in the Wi-Fi channel as reserved subcarriers;
[0008] Construct a Wi-Fi data packet according to the channel number, and send the Wi-Fi data packet through a target subcarrier; the target subcarrier refers to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0009] One aspect of the embodiments of the present application provides a data transmission method, including:
[0010] Receiving a Wi-Fi data packet sent by a Wi-Fi sender;
[0011] Parsing the packet header in the Wi-Fi data packet to obtain a reserved channel number, and acquiring the center frequency of the Bluetooth channel corresponding to the reserved channel number;
[0012] Determining reserved subcarriers according to the center frequency, and demodulating the Wi-Fi data packet on the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0013] One aspect of the embodiments of the present application provides a data transmission device, including:
[0014] A signal acquisition module, configured to acquire a signal to be detected in a common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel;
[0015] A signal identification module, configured to identify a Bluetooth signal in the signal to be detected, acquire the channel number of the Bluetooth channel occupied by the Bluetooth signal, and determine the subcarriers associated with the channel number in the Wi-Fi channel as reserved subcarriers;
[0016] A data sending module, configured to construct a Wi-Fi data packet according to the channel number and send the Wi-Fi data packet through the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0017] Wherein, the above-mentioned signal acquisition module is specifically configured to collect the signal intensities corresponding to L signal sampling points in the common channel based on the sampling frequency, store the L signal intensities in the original signal array, and obtain the signal to be detected; L is an integer greater than 1.
[0018] Wherein, the number of the above-mentioned Bluetooth channels is h, and h is an integer greater than 1; the h Bluetooth channels include Bluetooth channel H i , where i is a positive integer less than or equal to h; one Bluetooth channel corresponds to one center frequency;
[0019] The above-mentioned signal identification module includes:
[0020] An extraction unit, configured to obtain the center frequency B corresponding to Bluetooth channel H i , and extract the signal with the carrier frequency being the center frequency B from the original signal array i , to obtain a first signal array; i The signal obtained;
[0021] A generation unit, configured to obtain N Bluetooth modulation frequencies, and generate candidate signals based on the N Bluetooth modulation frequencies and the first signal array; N is an integer greater than 1;
[0022] An identification unit, configured to identify that there is a Bluetooth signal in Bluetooth channel H if the signal strength of a candidate signal is greater than or equal to a strength threshold, and store the channel number of Bluetooth channel H into a channel array; i in which there is a Bluetooth signal, and store the channel number of Bluetooth channel H i into the channel array;
[0023] A reservation unit, configured to, when the Bluetooth signal identification is completed for h Bluetooth channels, determine subcarriers in the Wi-Fi channel that match the center frequencies corresponding to the channel numbers included in the channel array as reserved subcarriers.
[0024] Wherein, the above-mentioned generation unit includes:
[0025] A frequency mapping sub-unit, configured to obtain N Bluetooth modulation frequencies, perform frequency mapping on a first signal array based on the N Bluetooth modulation frequencies to obtain a second signal array; the signal frequencies corresponding to the second signal array are different from the signal frequencies corresponding to the first signal array;
[0026] A signal enhancement sub-unit, configured to obtain a target signal located in a target frequency range from the second signal array, and perform signal enhancement on the target signal to obtain a candidate signal.
[0027] Wherein, the above-mentioned N Bluetooth modulation frequencies include Bluetooth modulation frequency M j and Bluetooth modulation frequency M j+1 , where j is a positive integer less than N;
[0028] The above-mentioned frequency mapping sub-unit is specifically configured to generate a frequency conversion signal array with a signal frequency of frequency F j according to Bluetooth modulation frequency M j+1 and Bluetooth modulation frequency M j ; frequency F j is equal to M j +(M j+1 -M j ) / 2; multiply the first signal array by the frequency conversion signal array to obtain a second signal array.
[0029] Wherein, the above-mentioned signal enhancement sub-unit is specifically configured to perform low-pass filtering on the second signal array to obtain a third signal array located in the target frequency range; input the third signal array into a stochastic resonance system, enhance the signal strength corresponding to the target frequency through the stochastic resonance system, and determine the signal after signal enhancement as the candidate signal; the target frequency belongs to the target frequency range.
[0030] Wherein, the above-mentioned signal enhancement sub-unit is specifically configured to make the signal frequency in the second signal array greater than (M j+1 -M j) Filter the signal of ) / 2 to obtain a third signal array within the target frequency range; (M j+1 -M j ) / 2 is equal to the target frequency.
[0031] Among them, the above data sending module is specifically configured to add the channel numbers included in the channel array to the header of the initial Wi-Fi data packet to obtain a Wi-Fi data packet; modulate the information included in the Wi-Fi data packet onto the target subcarriers to obtain a Wi-Fi signal, and send the Wi-Fi signal to the Wi-Fi receiving end through the Wi-Fi channel.
[0032] On the one hand, an embodiment of the present application provides a data transmission device, including:
[0033] A receiving module, configured to receive a Wi-Fi data packet sent by a Wi-Fi sending end;
[0034] An analysis module, configured to analyze the header in the Wi-Fi data packet to obtain a reserved channel number, and acquire the center frequency of the Bluetooth channel corresponding to the reserved channel number;
[0035] A demodulation module, configured to determine a reserved subcarrier according to the center frequency, and demodulate the Wi-Fi data packet on the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0036] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;
[0037] The above processor is connected to the above memory and the above network interface. Among them, the above network interface is used to provide a data communication function, the above memory is used to store a computer program, and the above processor is used to call the above computer program to execute the method in the embodiment of the present application.
[0038] On the one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is suitable for being loaded and executed by a processor to execute the method in the embodiment of the present application.
[0039] On the one hand, an embodiment of the present application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.
[0040] The embodiments of the present application provide an efficient weak signal detection technology. By acquiring the signal to be detected in the common channels including Bluetooth channels and Wi-Fi channels, the Bluetooth signal in the signal to be detected can be identified, and thus the channel number of the Bluetooth channel occupied by the Bluetooth signal can be obtained. Moreover, the subcarriers associated with the above channel number in the Wi-Fi channel can be determined as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the above channel number, so that when data is transmitted, the reserved subcarriers can be avoided, and the Wi-Fi data packet can be sent out through the target subcarriers. It can be seen that in the process of collaborative transmission between Bluetooth devices and Wi-Fi devices, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission between Bluetooth devices and Wi-Fi devices in the unlicensed frequency band. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0042] Figure 1 It is a schematic diagram of a network architecture provided by the embodiments of the present application;
[0043] Figures 2a - 2b It is a schematic diagram of a data transmission scenario provided by the embodiments of the present application;
[0044] Figure 3 It is a schematic diagram of a common channel provided by the embodiments of the present application;
[0045] Figure 4 It is a schematic flowchart of a data transmission method provided by the embodiments of the present application;
[0046] Figure 5 It is a schematic flowchart of a data transmission method provided by the embodiments of the present application;
[0047] Figure 6 It is a schematic flowchart of a data transmission method provided by the embodiments of the present application;
[0048] Figure 7 It is a schematic flowchart of a data transmission method provided by the embodiments of the present application;
[0049] Figure 8 It is a schematic flowchart of a data transmission method provided by the embodiments of the present application;
[0050] Figure 9 It is a schematic structural diagram of a data transmission device provided by an embodiment of the present application;
[0051] Figure 10 It is a schematic structural diagram of a data transmission device provided by an embodiment of the present application;
[0052] Figure 11 It is a schematic structural diagram of a computer device provided by an embodiment of the present application;
[0053] Figure 12 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0054] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0055] Modulation is a process of processing the information of the signal source and adding it to the carrier to make it into a form suitable for channel transmission. It is a technology that makes the carrier change with the signal source. Generally speaking, the information of the signal source (also called the information source) contains a DC component and frequency components with relatively low frequencies, which is called the baseband signal. However, the baseband signal often cannot be used as the transmission signal. Therefore, the baseband signal must be converted into a signal with a very high frequency relative to the baseband frequency to be suitable for channel transmission. This transmitted signal is called the modulated signal, and the baseband signal is called the modulating signal. Modulation is achieved by changing the amplitude, phase or frequency of the high-frequency carrier (i.e., the carrier signal of the message), so that it changes with the change of the amplitude of the baseband signal. There are many types of modulation and inconsistent classification methods. For example, according to the form of the modulating signal, it can be divided into analog modulation and digital modulation; according to the type of the modulated signal, it can be divided into pulse modulation, sine wave modulation and intensity modulation (such as non-coherent optical modulation), etc. The carriers of modulation are pulses, sine waves and light waves, etc. Different modulation methods have different characteristics and performances.
[0056] Demodulation is a process of extracting the baseband signal from the carrier for the intended receiver (also called the destination) to process and understand. Different modulation methods have different demodulation methods.
[0057] GFSK (Gaussian Frequency-Shift Keying) is a digital modulation method in which the input data is pre-modulated and filtered by a Gaussian low-pass filter and then FSK modulation (Frequency-Shift Keying, also known as digital frequency modulation, is a modulation form that uses a baseband digital signal to control the change of the carrier frequency to transmit digital information) is performed. While maintaining a constant amplitude, it can control the spectrum of the modulated signal by changing the 3 dB bandwidth of the Gaussian low-pass filter, and has characteristics desired by wireless communication systems such as a constant amplitude envelope, concentrated power spectrum, and narrow spectrum.
[0058] A carrier wave (carrier wave, carrier signal or carrier) is an electromagnetic wave generated by an oscillator and transmitted on a communication channel. After being modulated, it can be used to transmit voice, data, images or other information. The carrier frequency is usually higher than the frequency of the modulation signal and belongs to a high-frequency signal. Modulating the modulation signal onto a high-frequency carrier is like riding on a high-speed train or an airplane and then being transmitted and received. The carrier wave can be a sine wave or a non-sine wave (such as a periodic pulse sequence). After being modulated, the carrier wave is called a modulated signal, which contains the full-wave characteristics of the modulation signal.
[0059] Frequency-Hopping Spread Spectrum (FHSS) is a method in which a pseudo-random code sequence is used for frequency-shift keying to continuously change the carrier frequency and expand the spectrum. Since the mobile communication channel environment is harsh and various interferences will occur, in order to resist the interference of certain frequencies, using frequency-hopping technology is one of the effective methods. For example, Bluetooth devices use frequency-hopping technology for communication.
[0060] Stochastic resonance (SR) is used to describe a phenomenon in which the presence of internal noise or external noise in a nonlinear system can increase the response of the system output. From the perspective of signal processing, in a nonlinear system, when an input noisy signal is present, using appropriate physical quantities to measure the system characteristics, such as signal-to-noise ratio, dwell time, etc., by adjusting the input noise intensity or system parameters to make the system characteristics reach a maximum value. At this time, we call the cooperative phenomenon generated by the signal, noise, and nonlinear random system stochastic resonance.
[0061] Please refer to Figure 1 , which is a schematic diagram of a network architecture provided by an embodiment of this application. As Figure 1As shown, the network architecture may include at least four devices and at least two protocols. The at least four devices may include at least a pair of Wi-Fi transceiver devices and a pair of Bluetooth transceiver devices, namely, a Wi-Fi transmitter device 100a, a Wi-Fi receiver device 100b, a Bluetooth transmitter device 200a, and a Bluetooth receiver device 200b. Among them, there is a communication connection between the Wi-Fi transceiver devices, and there is also a communication connection between the Bluetooth transceiver devices. The above communication connection does not limit the specific connection method. For example, it can be directly or indirectly connected through a wireless communication method, or through other methods, which are not limited in this application. It can be understood that in actual application scenarios, the number of Wi-Fi transceiver devices and the number of Bluetooth transceiver devices can be more, which are not limited in this application. In addition, in the embodiments of this application, the main communication protocols included are the Bluetooth Low Energy (BLE, also known as Bluetooth low energy consumption) protocol and the Wi-Fi protocol (belonging to the IEEE802.11 protocol). Of course, in actual application scenarios, there may also be other communication protocols such as the Zigbee protocol (also known as the Purple Bee protocol), the 2.4G radio frequency protocol, etc., which are not elaborated in the embodiments of this application.
[0062] In Figure 1 In the network architecture shown, the transmission link is marked as a solid line, and the interference link is marked as a dotted line. Data can be transmitted between the Wi-Fi transmitter device 100a and the Wi-Fi receiver device 100b based on the Wi-Fi protocol, and data can be transmitted between the Bluetooth transmitter device 200a and the Bluetooth receiver device 200b based on the Bluetooth Low Energy protocol. At the same time, since the Wi-Fi transceiver devices and the Bluetooth transceiver devices share the unlicensed 2.4GHz band (also known as the unlicensed band), the two devices are likely to interfere with each other. For example, the transmission power of the Wi-Fi transmitter device 100a is relatively large (generally greater than 15dBm), while the transmission power of the Bluetooth transmitter device 200a is relatively small (generally less than 0dBm). At this time, it is very likely that the Wi-Fi transmitter device 100a will in turn interfere with the Bluetooth transmitter device 200a and the Bluetooth receiver device 200b, resulting in a large packet loss rate during the communication process ((Loss Tolerance or Packet Loss Rate, which refers to the ratio of the number of lost data packets to the number of transmitted data groups in the test. The packet loss rate is related to the data packet length and the packet transmission frequency). That is to say, even if the Bluetooth transceiver devices are far from the Wi-Fi transceiver devices, the Bluetooth signal observed by the Wi-Fi transceiver devices may be weak (i.e., the received signal strength of the detected Bluetooth signal is small), but due to the large transmission power between the Wi-Fi transceiver devices, it may still interfere with the Bluetooth transceiver devices. To solve this problem, the embodiments of this application provide a data transmission method, which can be generally divided into 3 steps:
[0063] (1) The Wi-Fi transmitter device 100a collects and records the signals in the common channel (corresponding to the above unlicensed band) for later analysis. It can be understood that there may be Bluetooth signals and Wi-Fi signals in the common channel at the same time;
[0064] (2) Through signal analysis technology, the Wi-Fi transmitter device 100a first separates the Bluetooth signal from other interfering signals (such as Wi-Fi signals), and then uses the stochastic resonance technology to enhance the weak Bluetooth signal, so as to detect the subcarriers occupied by the Bluetooth signal (referred to as reserved subcarriers). After determining the reserved subcarriers, the Wi-Fi transmitter device 100a can further modify the valid data content in the Wi-Fi data packet to be sent. Specifically, the content at the position corresponding to the reserved subcarrier can be filled with special characters different from the original characters (such as filling with multiple "0" characters) to indicate that the subcarrier corresponding to this position is occupied by the Bluetooth signal. At the same time, the header content in the Wi-Fi data packet can be modified according to the detected reserved subcarriers. Specifically, the channel number of the Bluetooth channel corresponding to the reserved subcarrier can be added to the header;
[0065] (3) The Wi-Fi transmitter device 100a can send the newly constructed Wi-Fi data packet to the Wi-Fi receiver device 100b through the subcarriers other than the reserved subcarriers. At the same time, the Bluetooth transmitter device 200a and the Bluetooth receiver device 200b can perform normal data transmission on the frequency band occupied by the Bluetooth signal.
[0066] It can be understood that the method provided in the embodiments of the present application can be executed by a Wi-Fi device (which can also be referred to as a mobile hotspot device). The Wi-Fi device includes, but is not limited to, a device that can acquire a physical layer signal and modify a modulation method, such as a software-defined radio device USRP N210. Among them, USRP (Universal Software Radio Peripheral) aims to enable ordinary computer devices to work like high-bandwidth software radio devices. Essentially, it acts as the digital baseband and intermediate frequency parts of a radio communication system. The USRP N series is the second-generation mature series of products of USRP1. The Bluetooth device can be a smartphone, a Bluetooth headset, a Bluetooth keyboard, a Bluetooth mouse, a game console supporting Bluetooth, a tablet computer, a laptop computer, a personal digital assistant, a desktop computer, a mobile internet device (MID), a wearable device (such as a smart watch, a smart bracelet, etc.), a smart computer, a smart vehicle, a smart meter in a smart home, a wireless portable medical device, a locator, and other devices configured with a low-power Bluetooth module. Among them, Bluetooth devices such as smartphones and Bluetooth headsets are mainly powered by batteries. Therefore, how to improve the transmission efficiency of such low-power devices in the unlicensed frequency band and extend the service life is very important.
[0067] It should be noted that it can be understood that the method provided in the present application only needs to modify the protocol related to the Wi-Fi device, and does not need to make any modifications to the Bluetooth device, which helps to achieve efficient cooperative transmission between the Bluetooth device and the Wi-Fi device.
[0068] The method provided in the present application can be naturally applied to any scenario where a cooperative transmission scheme is designed for Bluetooth devices and Wi-Fi devices. For the sake of easy understanding, the following takes the Wi-Fi transmitting device 100a, the Wi-Fi receiving device 100b, the Bluetooth transmitting device 200a, and the Bluetooth receiving device 200b as examples for specific description.
[0069] Please refer to Figures 2a - 2b , which is a schematic diagram of a data transmission scenario provided by the embodiments of the present application. This data transmission scenario may include multiple Bluetooth devices and multiple Wi-Fi devices, which are not limited here. The embodiments of the present application only take 4 devices as examples for illustration. As Figure 2aAs shown, the Wi-Fi transmitting device 100a transmits a Wi-Fi signal to the Wi-Fi receiving device 100b through the Wi-Fi channel S1, and at the same time, the Bluetooth transmitting device 200a transmits a Bluetooth signal to the Bluetooth receiving device 200b through the Bluetooth channel S2. Among them, the Wi-Fi channel S1 and the Bluetooth channel S2 both belong to the public channel S, and the number of channels included in the Wi-Fi channel S1 and the number of channels included in the Bluetooth channel S2 can both be multiple. It should be noted that the public channel S can specifically be an unlicensed spectrum resource, which has the characteristic of sharing without permission. At present, the global unlicensed spectrum resources are mainly distributed in the 2.4GHz, 5GHz, 6GHz and 60GHz frequency bands. The regulations of different frequency bands in different regions are slightly different, especially for the 2.4GHz ISM frequency band (Industrial Scientific Medical Band, which is mainly open to three major institutions for industry, science and medicine). Wireless networks such as wireless LAN, Bluetooth, ZigBee can all work on this frequency band, but this frequency band has only 83.5MHz spectrum bandwidth, resulting in very crowded frequency resources. It should be noted that each of the above unlicensed frequency bands can be divided into different carriers or channels, and different wireless communication technologies (Radio Access Technology, RAT) will use one or more carriers. Among them, the channel is also called a channel, which is a data signal transmission channel using wireless signals (electromagnetic waves) as the transmission carrier.
[0070] It is understandable that unlicensed bands provide best-effort services in the form of competitive spectrum and are used in accordance with the principles of channel access fairness and multi-RAT coexistence. Any RAT technology in the unlicensed band needs to meet the requirements of power and power spectrum density level, maximum channel occupancy time, channel occupied bandwidth, channel monitoring mechanism, etc., and reasonably occupy and release channels without causing interference to other RAT systems in the same frequency band. In other words, various wireless network devices (such as Bluetooth devices, Wi-Fi devices, etc.) within the coverage range of the wireless signal should try to use different channels to avoid interference between signals.
[0071] The present application embodiment is described only by taking the 2.4 GHz unlicensed frequency band as an example. Figure 3 , is a schematic diagram of a public channel provided in an embodiment of the present application. Figure 3 As shown, the frequency range of the common channel S in the embodiment of the present application can be specifically 2.400 GHz-2.4835 GHz. Figure 2a, according to the Wi-Fi protocol (such as IEEE 802.11b), the common channel S can be divided into 14 parts, thus obtaining the Wi-Fi channel S1, as Figure 3 shown. The Wi-Fi channel S1 can specifically include: Wi-Fi channel 1, Wi-Fi channel 2, Wi-Fi channel 3, ……, Wi-Fi channel 13, Wi-Fi channel 14. However, Wi-Fi channel 14 is generally not used. Among them, the effective width of each Wi-Fi channel is 20 MHz, and there is also a 2-MHz mandatory isolation frequency band. Moreover, the center frequencies corresponding to each Wi-Fi channel are different. For example, for Wi-Fi channel 1 with a center frequency of 2412 MHz, its frequency range is 2401 MHz to 2423 MHz. It should be noted that during the data transmission process of Wi-Fi transceiver devices, each Wi-Fi channel can be modulated independently for the carrier. That is to say, multiple subcarriers can be distributed on each Wi-Fi channel according to relevant protocols (information such as the number of subcarriers, their respective subcarrier numbers, and center positions are specified in the Wi-Fi protocol). The modulation signals of each subcarrier will finally be superimposed and transmitted together. By transmitting data through multiple subcarriers simultaneously, the overall transmission efficiency can be improved. Among them, subcarriers are a very important way to achieve Frequency Division Multiplexing (FDM) and improve bandwidth efficiency.
[0072] Similarly, combining the above Figure 2a , according to the low-power Bluetooth protocol, 80 MHz of spectrum resources in the common channel S can be divided into 40 parts, each part occupying a bandwidth of 2 MHz, thus obtaining the Bluetooth channel S2, as Figure 3 shown. The Bluetooth channel S2 can specifically include: Bluetooth channel CH0, Bluetooth channel CH1, Bluetooth channel CH2, Bluetooth channel CH3, ……, Bluetooth channel CH38, Bluetooth channel CH39. Among them, Bluetooth channel CH37, Bluetooth channel CH38, and Bluetooth channel CH39 can be broadcast channels. There is at least a 24-MHz difference between two broadcast channels. Each time a broadcast is made, the broadcast data will be sent once on these 3 channels, which can effectively avoid interference. Even if there is interference in one broadcast channel, the other broadcast channels can still work well, and the situation where these three broadcast channels are simultaneously interfered is extremely rare. The remaining 37 Bluetooth channels are data channels. Bluetooth devices can use Adaptive Frequency Hopping (AFH) technology to randomly select one or more channels from these data channels for data transmission. As Figure 3 can be seen, multiple subcarriers corresponding to one Wi-Fi channel will overlap with multiple Bluetooth channels.
[0073] Next, the process of data transmission through the Wi-Fi channel S1 and the Bluetooth channel S2 will be introduced. Please refer to Figure 2b again, as Figure 2b shown, the Wi-Fi transmitter device 100a can first obtain the signal to be detected from the common channel S (including the Wi-Fi channel S1 and the Bluetooth channel S2). It can be understood that at this time, the signal to be detected may include Bluetooth signals and Wi-Fi signals. Further, the Wi-Fi transmitter device 100a can identify whether there is a Bluetooth signal in the signal to be detected. If there is a Bluetooth signal, it can obtain the channel number of the Bluetooth channel occupied by the Bluetooth signal and record it. At the same time, it can mark one or more subcarriers in the Wi-Fi channel S1 associated with the recorded channel number as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the recorded channel number, and then the Wi-Fi data packet can be sent to the Wi-Fi receiver device 100b through the target subcarriers. Subsequently, after the Wi-Fi receiver device 100b receives the Wi-Fi data packet, it will also skip the reserved subcarriers to demodulate the Wi-Fi data packet. Among them, the target subcarriers refer to the subcarriers in the Wi-Fi channel S1 except for the reserved subcarriers. At the same time, the Bluetooth transmitter device 200a can use the GFSK modulation method to send Bluetooth data packets to the Bluetooth receiver device 200b through the Bluetooth channel it occupies. It should be noted that in the embodiments of the present application, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, rather than reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced.
[0074] As Figure 3 shown, assuming that in the spectrum resources, the Wi-Fi channel 1 overlaps with the Bluetooth channel CH0, and 64 subcarriers are used for modulation in the Wi-Fi channel 1, including subcarrier 1, subcarrier 2, subcarrier 3,..., subcarrier 63, subcarrier 64. If the Wi-Fi transmitter device 100a detects that the Bluetooth signal occupies the Bluetooth channel CH0, it can first obtain the center frequency B corresponding to the Bluetooth channel CH0 (which can also be understood as the carrier frequency corresponding to the Bluetooth channel CH0). Then, it can detect that there are 4 subcarriers in the Wi-Fi channel 1 corresponding to the center frequency B, which are subcarrier 8, subcarrier 9, subcarrier 10, and subcarrier 11. These 4 subcarriers can be reserved. Therefore, after determining the reserved subcarriers, the Wi-Fi transmitter device 100a will only use the 60 unmarked subcarriers (subcarriers other than subcarrier 8, subcarrier 9, subcarrier 10, and subcarrier 11, that is, the target subcarriers) for modulation.
[0075] As described above, the embodiments of the present application can support Wi-Fi devices to actively detect weak Bluetooth signals transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission between Bluetooth devices and Wi-Fi devices in the unlicensed band. In addition, it can also reduce the time spent by Bluetooth devices in transmitting data packets in the unlicensed band and extend the service life of Bluetooth devices.
[0076] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a data transmission method provided by the embodiments of the present application. This data transmission method can be executed by a Wi-Fi sender (such as the Wi-Fi sender device 100a described above Figure 1 ). As Figure 4 shown, this data transmission method can at least include the following steps S101 to S103:
[0077] Step S101: Obtain the signal to be detected in the common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel;
[0078] Since both Bluetooth devices and Wi-Fi devices transmit data through the common channel, there may be both Bluetooth signals and Wi-Fi signals in the common channel at the same time. For the convenience of subsequent signal detection, it is first necessary to sample the continuous signal. Specifically, the Wi-Fi sender can periodically collect the signal intensities (i.e., amplitudes) corresponding to L signal sampling points in the common channel based on the sampling frequency, and store these L signal intensities in the original signal array. In addition, the carrier frequency corresponding to each signal intensity can also be associated and recorded, so as to obtain the signal to be detected, where L is an integer greater than 1, and the specific value can be determined according to the actual situation, and the present application does not limit this. It can be understood that the sampling period is the time spent in collecting L signal sampling points. Among them, the common channel can include multiple Bluetooth channels and multiple Wi-Fi channels, and the specific number is determined by the Bluetooth protocol and the Wi-Fi protocol.
[0079] Step S102: Identify the Bluetooth signal in the signal to be detected, obtain the channel number of the Bluetooth channel occupied by the Bluetooth signal, and determine the subcarriers associated with the channel number in the Wi-Fi channel as the reserved subcarriers;
[0080] Specifically, assume that the number of Bluetooth channels is h, where h is an integer greater than 1. Among them, the h Bluetooth channels include Bluetooth channel H i , where i is a positive integer less than or equal to h, and one Bluetooth channel corresponds to a center frequency. For example, the center frequency corresponding to the Bluetooth channel CH37 shown above Figure 3 is 2402 MHz, and the center frequency corresponding to the Bluetooth channel CH0 is 2404 MHz. In the embodiments of the present application, Bluetooth channel Hi For example, the Wi-Fi transmitter can first obtain the Bluetooth channel H i and the corresponding center frequency B i , and then extract the signal with the carrier frequency of the center frequency B from the original signal array described in the above step S101 i to obtain the first signal array with a length of L.
[0081] Furthermore, by querying the Bluetooth-related protocol (such as the Bluetooth Low Energy protocol), the Wi-Fi transmitter can obtain N Bluetooth modulation frequencies, and then generate candidate signals based on these N Bluetooth modulation frequencies and the first signal array. Here, N is an integer greater than 1. Among them, the Bluetooth modulation frequencies are used for GFSK modulation, and different Bluetooth modulation frequencies can be mapped to different data contents. For example, in a feasible implementation, the Bluetooth modulation frequency A can correspond to the digital sequence "010". It should be noted that in a Bluetooth Low Energy protocol, N is equal to 4, that is, all the data to be transmitted can be mapped with 4 Bluetooth modulation frequencies.
[0082] It should be noted that the candidate signals obtained above may be signals mapped from Bluetooth signals or may be noise. Therefore, the Wi-Fi transmitter also needs to identify the candidate signals. Specifically, if the signal strength of the candidate signal is greater than or equal to the strength threshold, it can be identified that the candidate signal is a signal mapped from a Bluetooth signal, that is, the above Bluetooth channel H i contains a Bluetooth signal, and then the channel number of the Bluetooth channel H i can be stored in the channel array. On the contrary, if the signal strength of the candidate signal is less than the strength threshold, it is necessary to continue to traverse the next Bluetooth modulation frequency until it is identified that the candidate signal is a signal mapped from a Bluetooth signal or all the Bluetooth modulation frequencies have been traversed. That is to say, only by extracting enough candidate signals that conform to the Bluetooth signal pattern through the above steps can their signal strength reach the strength threshold to determine that there is a Bluetooth signal in the channel. Among them, the strength threshold is an empirical value and can be adjusted according to the actual situation. This application does not limit this.
[0083] In the embodiments of the present application, it is necessary to traverse one or more Bluetooth modulation frequencies until it is recognized that the candidate signal is a signal obtained by mapping a Bluetooth signal (hereinafter simply referred to as the target signal), or until N / 2 Bluetooth modulation frequencies are traversed to finally determine that the candidate signal is not a Bluetooth signal. The traversal step size is 2. It can be understood that when N = 4, at most N / 2 = 2 Bluetooth modulation frequencies need to be traversed. For example, for the convenience of explanation, the 4 Bluetooth modulation frequencies can be divided into Bluetooth modulation frequency 1, Bluetooth modulation frequency 2, Bluetooth modulation frequency 3, and Bluetooth modulation frequency 4. Then, when initially traversing to Bluetooth modulation frequency 1, candidate signal A1 can be generated. Assuming that it is recognized that candidate signal A1 is not the target signal, then further traverse to Bluetooth modulation frequency 3. At this time, candidate signal A2 can be generated. If it is recognized that candidate signal A2 is the target signal, then it can be determined that there is a Bluetooth signal in the current Bluetooth channel H i ; if it is recognized that candidate signal A2 is not the target signal, then it can be determined that there is no Bluetooth signal in the current Bluetooth channel H i and the traversal process for Bluetooth channel H i ends. Among them, the specific process of generating the candidate signal can refer to steps S202 - S203 in the corresponding embodiments described later Figure 5 .
[0084] It should be noted that the Wi-Fi transmitter will traverse all Bluetooth channels (i.e., Bluetooth channels H1 to Bluetooth channel H h , such as Bluetooth channels CH0 to CH39 shown above Figure 3 ). The processing process for other Bluetooth channels is the same as that for Bluetooth channel H i and will not be elaborated here. In a low-power Bluetooth protocol, h is equal to 40
[0085] When the Bluetooth signal recognition for all the above h Bluetooth channels is completed, the Wi-Fi transmitter can determine one or more subcarriers in the Wi-Fi channel that match the center frequencies corresponding to the channel numbers included in the channel array as reserved subcarriers. For example, assuming that it is recognized that there is a Bluetooth signal in Bluetooth channel H2, and the center frequency B2 corresponding to Bluetooth channel H2 is 2404 MHz, and the subcarriers in the Wi-Fi channel that match the 2404 MHz frequency include subcarrier 11, subcarrier 12, and subcarrier 13, then subcarrier 11, subcarrier 12, and subcarrier 13 can all be marked as reserved subcarriers. Among them, for the convenience of recording, the channel number can be represented by the channel index i, which corresponds to the information of Bluetooth channel H i specified in the Bluetooth protocol
[0086] Optionally, in special cases, if it is detected that all Bluetooth channels are occupied, in order to ensure that Wi-Fi devices can still cooperate in transmission, embodiments of the present application may select subcarriers corresponding to Bluetooth channels with relatively weak Bluetooth signal strength for transmitting Wi-Fi signals. For example, before marking reserved subcarriers, the relationship between the number of subcarriers occupied by the current Bluetooth signal and the total number of subcarriers may be determined first. If the number of occupied subcarriers is less than the total number of subcarriers, all the above-mentioned detected subcarriers (referred to as reserved subcarriers) may be reserved for the Bluetooth signal; if the number of occupied subcarriers is equal to the total number of subcarriers, it means that the Bluetooth signal occupies all subcarriers. At this time, in order to retain the data transmission ability of the Wi-Fi transmitter, one or more subcarriers with relatively weak Bluetooth signal strength may be selected from the above-mentioned occupied subcarriers for transmitting Wi-Fi signals, and the remaining ones are used as reserved subcarriers.
[0087] Step S103: Construct a Wi-Fi data packet according to the channel number and send the Wi-Fi data packet through the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0088] Specifically, the Wi-Fi transmitter may add the channel numbers included in the channel array to the header of the initial Wi-Fi data packet, and fill the content at the positions corresponding to the reserved subcarriers in the Wi-Fi data packet with special characters to indicate that the subcarriers corresponding to these positions are occupied by the Bluetooth signal, so as to obtain a Wi-Fi data packet. Subsequently, the information included in the Wi-Fi data packet (including the header and the valid data content) may be modulated onto the target subcarriers to obtain a Wi-Fi signal (i.e., the mobile hotspot signal). Finally, the information may be sent to the Wi-Fi receiver in the form of a Wi-Fi signal through the Wi-Fi channel. It can be understood that the Wi-Fi transmitter will indicate in the header which positions of the data have been modified, so the header can play an indicative role, indicating to the Wi-Fi receiver which characters need to be deleted at which positions to restore the correct Wi-Fi data packet. It can be understood that the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0089] An embodiment of the present application provides an efficient weak signal detection technology. By acquiring the signal to be detected in the common channels including Bluetooth channels and Wi-Fi channels, the Bluetooth signal in the signal to be detected can be identified, and thus the channel number of the Bluetooth channel occupied by the Bluetooth signal can be obtained. And the subcarriers associated with the above channel number in the Wi-Fi channel can be determined as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the above channel number, so that when data is transmitted, the reserved subcarriers can be avoided, and the Wi-Fi data packet can be sent out through the target subcarriers. It can be seen that in the process of collaborative transmission of Bluetooth devices and Wi-Fi devices, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission of Bluetooth devices and Wi-Fi devices in the unlicensed frequency band. And in the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, instead of reserving the entire Wi-Fi channel for the Bluetooth device, so the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided by the embodiment of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed frequency band, and improve the service life of the Bluetooth device.
[0090] Further, please refer to Figure 5 , Figure 5 which is a schematic flowchart of a data transmission method provided by an embodiment of the present application. As Figure 5 shown, the process of the data transmission method includes the following steps S201 - step S205, and steps S201 - step S205 are Figure 4 a specific embodiment of step S102 in the corresponding embodiment, and the data transmission process includes the following steps:
[0091] Step S201, obtain the central frequency B i corresponding to the Bluetooth channel H i , and extract the signal with the carrier frequency being the central frequency B i from the original signal array to obtain the first signal array;
[0092] Specifically, in combination with the above Figure 4 corresponding embodiment, the Wi-Fi transmitter can first obtain the central frequency B i corresponding to the Bluetooth channel H i , and then can extract the signal with the carrier frequency being the central frequency B i from the original signal array to obtain the first signal array with a length of L.
[0093] Step S202, obtaining N Bluetooth modulation frequencies, and frequency mapping the first signal array based on the N Bluetooth modulation frequencies to obtain a second signal array; the signal frequency corresponding to the second signal array is different from the signal frequency corresponding to the first signal array; N is an integer greater than 1;
[0094] Specifically, the Wi-Fi transmitter may query the Bluetooth-related protocol to obtain N Bluetooth modulation frequencies, and then frequency map the first signal array based on the N Bluetooth modulation frequencies. Assume that the N Bluetooth modulation frequencies include Bluetooth modulation frequency M j and Bluetooth modulation frequency M j+1 , j is a positive integer less than N, then the Wi-Fi transmitter can modulate the Bluetooth frequency M j and Bluetooth modulation frequency M j+1 The generated signal frequency is frequency F j The frequency conversion signal array, where the frequency F j Equal to M j +(M j+1 -M j ) / 2, the length of the frequency conversion signal array is L, and the embodiment of the present application does not limit the signal strength in the frequency conversion signal array. Further, by multiplying the first signal array and the frequency conversion signal array (here "multiplication" is a dot product operation), it is possible to obtain a signal array containing a frequency of (M j +F j ) and (M j -F j ), it can be understood that at this time, the signal frequency corresponding to the second signal array is different from the signal frequency corresponding to the first signal array. For example, assuming that the first signal array can be represented by a sine wave signal A1sin(ω1t+α1), and the frequency conversion signal array can be represented by a sine wave signal A2sin(ω2t+α2), the product and difference formula of trigonometric functions is used to perform a multiplication operation on the first signal array and the frequency conversion signal array, that is, A1sin(ω1t+α1)×A2sin(ω2t+α2), the result is: (A1A2 / 2){cos[(ω1-ω2)t+(α1-α2)]-cos[(ω1+ω2)t+(α1+α2)]}, that is, the expression of the second signal array obtained, where ω1=2πM j ,ω2=2πF j , A1, A2 represent amplitude (i.e. signal strength), ω1, ω2 represent angular frequency, α1, α2 represent initial phase, and M j and F j Substituting into the above expression, we can see that the frequency in the second signal array is (M j +F j ) and (M j -F j) signal.
[0095] Step S203: Obtain the target signal within the target frequency range from the second signal array, and perform signal enhancement on the target signal to obtain a candidate signal;
[0096] Specifically, since there are signals of multiple frequencies in the second signal array, the Wi-Fi transmitter can first perform low-pass filtering on the second signal array to obtain a third signal array within the target frequency range. It should be noted that the target frequency range can specifically be the interval from 0 to (M j+1 -M j ) / 2. The specific process of low-pass filtering means filtering out the signals in the second signal array whose signal frequencies are greater than (M j+1 -M j ) / 2. Among them, the length of the third signal array is L. Further, the third signal array can be input into the stochastic resonance system. Through the stochastic resonance system, the signal intensity corresponding to the target frequency can be enhanced. Finally, the signal obtained after signal enhancement can be determined as the candidate signal. Among them, the target frequency belongs to the target frequency range, and the target frequency is equal to (M j+1 -M j ) / 2. It can be understood that generally, noise will be mixed in the collected signal, resulting in a decrease in the signal-to-noise ratio, which will affect the extraction of useful information. The stochastic resonance system is a non-linear system. In this specific system, when stochastic resonance occurs, the energy of part of the noise will be converted into the energy of the target frequency signal, thereby greatly increasing the signal-to-noise ratio of the system output. That is to say, the existence of noise can enhance the detection ability of weak signals (such as the Bluetooth signal in the embodiments of the present application). In practical applications, the system parameters can be determined by empirical tuning to make the stochastic resonance system achieve the optimal detection performance.
[0097] It can be understood that the purpose of this step is to improve the accuracy of weak Bluetooth signal detection and obtain a more accurate recognition result by mapping the possible Bluetooth signal based on frequency modulation in the second signal array into a fixed-frequency signal and enhancing this fixed-frequency signal.
[0098] Step S204: If the signal intensity of the candidate signal is greater than or equal to the intensity threshold, it is recognized that there is a Bluetooth signal in the Bluetooth channel H i , and the channel number of the Bluetooth channel H i is stored in the channel array;
[0099] Specifically, if the signal intensity of the candidate signal is greater than or equal to the intensity threshold, it can be recognized that the candidate signal is a signal obtained by mapping the Bluetooth signal, that is, there is a Bluetooth signal in the above-mentioned Bluetooth channel H i , and then the Bluetooth channel H iThe channel number is stored in the channel array. At this time, for the Bluetooth channel H i The traversal process ends, and then the above steps can be repeated to traverse to the next Bluetooth channel.
[0100] Conversely, if the signal strength of the candidate signal is less than the strength threshold, it is necessary to continue traversing the next Bluetooth modulation frequency. Taking the Bluetooth modulation frequency M j+2 as an example, that is, a frequency conversion signal array with a signal frequency of frequency F j+2 can be generated according to the Bluetooth modulation frequency M j+3 and the Bluetooth modulation frequency M j+2 where the frequency F j+2 is equal to M j+2 +(M j+3 -M j+2 ) / 2. Correspondingly, the target frequency range is updated to 0 to (M j+3 -M j+2 ) / 2, and the target frequency is updated to (M j+3 -M j+2 ) / 2. After completing frequency mapping and signal enhancement, a new candidate signal can be obtained. Subsequently, it can be identified whether the candidate signal is a signal obtained by mapping the Bluetooth signal. The specific execution process is the same as the relevant description of the Bluetooth modulation frequency M j and will not be elaborated here. It should be noted that in the embodiments of the present application, at most N / 2 Bluetooth modulation frequencies need to be traversed, and the traversal step size is 2. For example, for the 4 Bluetooth modulation frequencies of Bluetooth modulation frequency M1, Bluetooth modulation frequency M2, Bluetooth modulation frequency M3, and Bluetooth modulation frequency M4, at most only Bluetooth modulation frequency M1 and Bluetooth modulation frequency M3 need to be traversed to end the identification process for the current Bluetooth channel.
[0101] Step S205, when the Bluetooth signal identification for h Bluetooth channels is completed, the subcarriers in the Wi-Fi channel that match the center frequencies corresponding to the channel numbers included in the channel array are determined as reserved subcarriers.
[0102] Specifically, when the Bluetooth signal identification for h Bluetooth channels is completed, the Wi-Fi transmitter can determine one or more subcarriers in the Wi-Fi channel that match the center frequencies corresponding to the channel numbers recorded in the channel array as reserved subcarriers.
[0103] It should be noted that in special cases (such as scenarios with multiple Bluetooth devices), the number of reserved subcarriers will be equal to the total number of subcarriers. That is to say, the Bluetooth signal occupies all the spectrum resources in the common channel. Therefore, before marking the reserved subcarriers, the Wi-Fi transmitter can first determine whether the number of detected subcarriers (i.e., the subcarriers associated with the Bluetooth channels occupied by the Bluetooth signal) is equal to the total number of subcarriers. If they are not equal, all the detected subcarriers can be marked as reserved subcarriers; if they are equal, a part of the detected subcarriers can be reserved for the Wi-Fi transmitter. For example, the signal strength of the Bluetooth signal in each Bluetooth channel can be obtained, and the subcarriers corresponding to the Bluetooth channels with signal strength less than the target threshold (the target threshold is greater than the above-mentioned strength threshold) can be left for the Wi-Fi transmitter, and the other subcarriers are marked as reserved subcarriers. Or, the signal strength of the Bluetooth signal in each Bluetooth channel can be sorted, and then the subcarriers corresponding to the Bluetooth channel with the weakest signal strength can be left for the Wi-Fi transmitter, and the other subcarriers are marked as reserved subcarriers.
[0104] It can be understood that the numbers shown in the embodiments of this application are all fictitious numbers. In actual applications, the actual numbers should be used as the standard.
[0105] The embodiments of this application provide a Bluetooth device and Wi-Fi device cooperative transmission technology based on weak signal perception. By acquiring the signals to be detected in the common channel including Bluetooth channels and Wi-Fi channels, the Bluetooth signals in the signals to be detected can be identified, and thus the channel numbers of the Bluetooth channels occupied by the Bluetooth signals can be obtained, and the subcarriers associated with the above channel numbers in the Wi-Fi channel can be determined as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the above channel numbers, so that the reserved subcarriers can be avoided during data transmission, and the Wi-Fi data packet can be sent out through the target subcarriers. It can be seen that during the cooperative transmission of the Bluetooth device and the Wi-Fi device, the Wi-Fi device can actively detect the weak Bluetooth signals transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the cooperative transmission of the Bluetooth device and the Wi-Fi device in the unlicensed band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, without reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided by the embodiments of this application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed band, and extend the service life of the Bluetooth device.
[0106] Please refer to Figure 6 , Figure 6It is a schematic flowchart of a data transmission method provided by an embodiment of the present application. This data transmission method can be executed by a Wi-Fi sender (such as the Wi-Fi sender device 100a described above). As Figure 1 described, the Wi-Fi sender device 100a). As Figure 6 shown, this data transmission method may include the following steps:
[0107] Step S301, the Wi-Fi sender periodically collects signals in the common channel and stores them in the original signal array S[L], where L represents the number of sampling points, and L is an integer greater than 1. The sampling period is the time spent on collecting L signal sampling points. For example, given a sampling frequency of 1 MHz, it takes 1 second to collect 10 6 samples, that is, the sampling period is 1 second;
[0108] Step S302, the Wi-Fi sender determines whether all h Bluetooth channels have been traversed. Here, h is an integer greater than 1; in the Bluetooth Low Energy protocol, h is equal to 40, that is, it is determined whether the channel index i > 40 holds, where i is a positive integer less than or equal to h, and initially i is equal to 1; if not all have been traversed, step S3021 is executed; if all have been traversed, step S303 is executed;
[0109] Step S3021, the Wi-Fi sender extracts the signal corresponding to the Bluetooth channel H i from the original signal array S[L] to obtain the first signal array S_C[L], where the frequency B i has the unit of MHz; i ;
[0110] Step S3022, the Wi-Fi sender determines whether all N / 2 Bluetooth modulation frequencies have been traversed. Here, N is an integer greater than 1; in the Bluetooth Low Energy protocol, N is equal to 4, that is, it is determined whether the Bluetooth modulation frequency index j > 3 holds, where j is a positive integer less than N, and initially j is equal to 1; if not all have been traversed, step S30221 is executed; if all have been traversed, step S3023 is executed;
[0111] Step S30221, given the current Bluetooth modulation frequency M j , the Wi-Fi sender can multiply the first signal array S_C[L] by the frequency conversion signal array S_Fj[L] with the frequency F j to obtain a signal array containing frequencies of (M j +F j ) and (M j -F jThe second signal array T_Fj[L] of (), where the multiplication of the two arrays is a dot product operation, such as S_C[1] × S_Fj[1], S_C[2] × S_Fj[2], etc. Among them, the frequencies F j , M j are both in MHz; among them, the frequency F j can be specifically calculated as:
[0112] F j = M j +(M j+1 - M j ) / 2 (1)
[0113] Step S30222, the Wi-Fi transmitter performs low-pass filtering on the second signal array T_Fj[L] to filter out all signals greater than the frequency (M j+1 - M j ) / 2 (i.e., the target frequency), and obtains the filtered signal array, that is, the third signal array R_Fj[L];
[0114] Step S30223, the Wi-Fi transmitter inputs the third signal array R_Fj[L] into the stochastic resonance system to enhance the signal strength of the target frequency (M j+1 - M j ) / 2. If the signal strength of this frequency signal (i.e., the candidate signal) is greater than or equal to the strength threshold t, it indicates that the Bluetooth channel H i contains Bluetooth traffic (i.e., Bluetooth signal), so the channel index i can be used as the channel number and recorded in the channel array C, and then it can jump to step S3023; if the signal strength of this frequency signal is less than the strength threshold t, it jumps to step S30224;
[0115] Step S30224, after the Wi-Fi transmitter increases the Bluetooth modulation frequency index j by 2, it jumps to step S3022;
[0116] Step S3023, after the Wi-Fi transmitter increases the Bluetooth channel index i by 1, it jumps to step S302;
[0117] Step S303, the Wi-Fi transmitter adds the channel number recorded in the channel array C containing Bluetooth traffic to the packet header of the Wi-Fi packet;
[0118] Step S304, the Wi-Fi transmitter reserves the Wi-Fi subcarriers corresponding to the center frequencies of the Bluetooth channels recorded in the channel array C; optionally, if it is detected that all Bluetooth channels are occupied, in order to ensure that the Wi-Fi device can still perform collaborative transmission, Wi-Fi subcarriers corresponding to Bluetooth channels with weaker Bluetooth signal strength can be selected for transmitting Wi-Fi signals. The specific selection method can refer to the relevant description of step S205 in the corresponding embodiment above Figure 5 corresponding to the relevant description of step S205 in the corresponding embodiment;
[0119] Step S305, the Wi-Fi transmitter skips the reserved subcarriers to send Wi-Fi data packets. It should be noted that the method provided in the embodiment of the present application does not need to reserve the entire Wi-Fi channel for the Bluetooth device, but only needs to reserve a small number of subcarriers therein. Therefore, in comparison, the method provided in the embodiment of the present application can also reduce the impact on the throughput of the Wi-Fi device.
[0120] It can be understood that generally speaking, the purpose of the above step S3022 (including steps S30221 - S30224) is to multiply the first signal array S_C[L] by a specific signal, so that the possible Bluetooth signals therein can be mapped to signals within the target frequency range (with smaller frequencies), and the non-Bluetooth signals will be mapped to signals outside the target frequency range (with larger frequencies). Therefore, by filtering out these signals outside the target frequency range, only the signals within the target frequency range are retained, and the retained signals are subjected to signal enhancement and detection, so as to determine whether there are Bluetooth signals in the first signal array S_C[L].
[0121] It can be understood that the above step S3022 involves two dimensions of signals, namely frequency and signal strength (also called amplitude). On the one hand, the embodiment of the present application filters the signal array from the frequency dimension to extract the possible Bluetooth signals therein; on the other hand, the embodiment of the present application determines whether the extracted signals are Bluetooth signals from the signal strength dimension. This method can improve the accuracy of weak signal detection and has high efficiency.
[0122] The embodiments of the present application provide an efficient weak signal detection technology. By acquiring the signal to be detected in the common channels including Bluetooth channels and Wi-Fi channels, the Bluetooth signal in the signal to be detected can be identified, and thus the channel number of the Bluetooth channel occupied by the Bluetooth signal can be obtained. Moreover, the subcarriers associated with the above channel number in the Wi-Fi channel can be determined as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the above channel number, so that when data is transmitted, the reserved subcarriers can be avoided, and the Wi-Fi data packet can be sent out through the target subcarriers. It can be seen that during the collaborative transmission of Bluetooth devices and Wi-Fi devices, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission of Bluetooth devices and Wi-Fi devices in the unlicensed band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, rather than reserving the entire Wi-Fi channel for the Bluetooth device, so the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided by the embodiments of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed band, and improve the service life of the Bluetooth device.
[0123] Please refer to Figure 7 , Figure 7 which is a schematic flowchart of a data transmission method provided by the embodiments of the present application. This data transmission method can be executed by a Wi-Fi receiving end (such as the Wi-Fi receiving end device 100b described above Figure 1 . As Figure 7 shown, this data transmission method can at least include the following steps S401 - step S403:
[0124] Step S401: Receive the Wi-Fi data packet sent by the Wi-Fi sending end;
[0125] Specifically, the Wi-Fi receiving end can receive the Wi-Fi data packet sent by the Wi-Fi sending end through the Wi-Fi channel. At this time, the Wi-Fi data packet is transmitted in the Wi-Fi channel in the form of a Wi-Fi signal. Combining with step S103 in the corresponding embodiment above, this Wi-Fi data packet is constructed according to the channel number of the Bluetooth channel occupied by the Bluetooth signal. Figure 4 The Wi-Fi data packet is constructed according to the channel number of the Bluetooth channel occupied by the Bluetooth signal.
[0126] Step S402: Parse the packet header in the Wi-Fi data packet to obtain the reserved channel number, and acquire the center frequency of the Bluetooth channel corresponding to the reserved channel number;
[0127] Specifically, the Wi-Fi receiver may first parse the packet header in the Wi-Fi data packet, so as to parse out the reserved channel number, and then obtain the center frequency of the Bluetooth channel corresponding to the reserved channel number. The reserved channel number refers to the channel numbers corresponding to one or more Bluetooth channels where Bluetooth signals exist.
[0128] Step S403: Determine the reserved subcarriers according to the center frequency, and demodulate the Wi-Fi data packet on the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0129] Specifically, the Wi-Fi receiver may determine the reserved subcarriers according to the parsed center frequency of the Bluetooth channel, and then determine the subcarriers in the Wi-Fi channel except for the reserved subcarriers as the target subcarriers. Subsequently, the Wi-Fi data packet on the target subcarriers may be demodulated (i.e., the received Wi-Fi signal is demodulated). During this process, special characters at the positions corresponding to the reserved subcarriers in the Wi-Fi data packet need to be deleted, and finally the valid information is extracted.
[0130] In the embodiment of the present application, by receiving the Wi-Fi data packet constructed and sent by the Wi-Fi sender and parsing the content of the packet header therein, the reserved channel number can be obtained. Then, according to the center frequency of the Bluetooth channel corresponding to the reserved channel number, the reserved subcarriers can be determined. Further, the Wi-Fi data packet can be demodulated by skipping the reserved subcarriers. It can be seen that during the collaborative transmission of Bluetooth devices and Wi-Fi devices, the Wi-Fi device can actively detect weak Bluetooth signals transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission of Bluetooth devices and Wi-Fi devices in the unlicensed band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, rather than reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided in the embodiment of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed band, thereby extending the service life of the Bluetooth device.
[0131] Further, please refer to Figure 8 , Figure 8 which is a schematic flowchart of a data transmission method provided in the embodiment of the present application. This data transmission method can be executed by a Wi-Fi receiver (such as the Wi-Fi receiver device 100b described above Figure 1 ). As Figure 8 shown, this data transmission method may at least include the following steps:
[0132] Step S501, the Wi-Fi receiver receives the Wi-Fi data packet sent by the Wi-Fi transmitter;
[0133] Step S502, the Wi-Fi receiver can parse out the channel number of the reserved Bluetooth channel (i.e., the reserved channel number) according to the content of the packet header of the Wi-Fi data packet, and obtain the center frequency corresponding to the reserved Bluetooth channel;
[0134] Step S503, the Wi-Fi receiver can obtain the corresponding Wi-Fi subcarrier according to the center frequency corresponding to the reserved Bluetooth channel, that is, the reserved subcarrier;
[0135] Step S504, the Wi-Fi receiver can skip the Wi-Fi subcarriers marked as reserved and demodulate the Wi-Fi data packet.
[0136] In the embodiment of the present application, by receiving the Wi-Fi data packet constructed and sent by the Wi-Fi transmitter and parsing the content of the packet header therein, the reserved channel number can be obtained. Furthermore, according to the center frequency of the Bluetooth channel corresponding to the reserved channel number, the reserved subcarrier can be determined. Further, the Wi-Fi data packet can be demodulated by skipping the reserved subcarriers. It can be seen that in the process of cooperative transmission between the Bluetooth device and the Wi-Fi device, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the cooperative transmission between the Bluetooth device and the Wi-Fi device in the unlicensed band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, rather than reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided by the embodiment of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed band, and improve the service life of the Bluetooth device.
[0137] Please refer to Figure 9 , which is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. The data transmission device can be a computer program (including program code) running on a computer device. For example, the data transmission device is an application software; the device can be used to execute the corresponding steps in the data transmission method provided by the embodiment of the present application. As Figure 9 shown, the data transmission device 1 may include: a signal acquisition module 11, a signal identification module 12, and a data transmission module 13;
[0138] The signal acquisition module 11 is used to acquire the signal to be detected in the common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel;
[0139] The above signal acquisition module 11 is specifically configured to collect signal strengths corresponding to L signal sampling points in a common channel based on a sampling frequency, store the L signal strengths in an original signal array to obtain a signal to be detected; L is an integer greater than 1;
[0140] A signal identification module 12 is configured to identify a Bluetooth signal in the signal to be detected, obtain a channel number of a Bluetooth channel occupied by the Bluetooth signal, and determine a subcarrier associated with the channel number in a Wi-Fi channel as a reserved subcarrier;
[0141] A data sending module 13 is configured to construct a Wi-Fi data packet according to the channel number and send the Wi-Fi data packet through a target subcarrier; the target subcarrier refers to a subcarrier in the Wi-Fi channel other than the reserved subcarrier;
[0142] The above data sending module 13 is specifically configured to add the channel numbers included in the channel array to a packet header of an initial Wi-Fi data packet to obtain a Wi-Fi data packet; modulate the information included in the Wi-Fi data packet onto the target subcarrier to obtain a Wi-Fi signal, and send the Wi-Fi signal to a Wi-Fi receiving end through the Wi-Fi channel.
[0143] Among them, the specific functional implementation manner of the signal acquisition module 11 can refer to step S101 in the corresponding embodiment above, the specific functional implementation manner of the signal identification module 12 can refer to step S102 in the corresponding embodiment above, and the specific functional implementation manner of the data sending module 13 can refer to step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 4 The specific functional implementation manner of the signal identification module 12 can refer to step S102 in the corresponding embodiment above, and the specific functional implementation manner of the data sending module 13 can refer to step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 4 The specific functional implementation manner of the data sending module 13 can refer to step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 4 which will not be elaborated here.
[0144] In an implementation manner, the number of the above Bluetooth channels is h, where h is an integer greater than 1; the h Bluetooth channels include Bluetooth channel H i where i is a positive integer less than or equal to h; one Bluetooth channel corresponds to one center frequency;
[0145] Please refer to Figure 9 The above signal identification module 12 may include: an extraction unit 121, a generation unit 122, an identification unit 123, and a reservation unit 124;
[0146] The extraction unit 121 is configured to obtain a center frequency B corresponding to the Bluetooth channel H i and extract a signal with a carrier frequency of the center frequency B from the original signal array to obtain a first signal array; i to obtain a first signal array; i from the original signal array to obtain a first signal array;
[0147] A generating unit 122, configured to obtain N Bluetooth modulation frequencies and generate a candidate signal based on the N Bluetooth modulation frequencies and a first signal array; N is an integer greater than 1;
[0148] An identifying unit 123, configured to, if the signal strength of the candidate signal is greater than or equal to a strength threshold, identify that there is a Bluetooth signal in a Bluetooth channel H, and store the channel number of the Bluetooth channel H into a channel array; i in i the Bluetooth channel H;
[0149] A reserving unit 124, configured to, when the Bluetooth signal identification is completed for h Bluetooth channels, determine subcarriers in a Wi-Fi channel that match the central frequencies corresponding to the channel numbers included in the channel array as reserved subcarriers.
[0150] Among them, the specific implementation manner of the extraction unit 121 can refer to step S201 in the corresponding embodiment above. The specific implementation manner of the generating unit 122 can refer to steps S202 - S203 in the corresponding embodiment above. The specific implementation manner of the identifying unit 123 can refer to step S204 in the corresponding embodiment above. The specific implementation manner of the reserving unit 124 can refer to step S205 in the corresponding embodiment above, and details are not described herein again. Figure 5 For the generating unit 122, it can include: a frequency mapping sub-unit 1221 and a signal enhancing sub-unit 1222. Figure 5 Figure 5 Figure 5 The frequency mapping sub-unit 1221 is configured to obtain N Bluetooth modulation frequencies and perform frequency mapping on the first signal array based on the N Bluetooth modulation frequencies to obtain a second signal array; the signal frequencies corresponding to the second signal array are different from the signal frequencies corresponding to the first signal array.
[0151] Figure 9 Please also refer to
[0152] In one implementation, the above N Bluetooth modulation frequencies include Bluetooth modulation frequency M
[0153] and Bluetooth modulation frequency M
[0154] where j is a positive integer less than N. j and Bluetooth modulation frequency M j+1 where j is a positive integer less than N;
[0154] Specifically, the frequency mapping sub-unit 1221 is configured to generate a frequency conversion signal array with a signal frequency of frequency F j and Bluetooth modulation frequency M j+1 based on Bluetooth modulation frequency M j ; the frequency F j is equal to M j +(M j+1 -M j) / 2; Multiply the first signal array and the frequency conversion signal array to obtain a second signal array;
[0155] The signal enhancer unit 1222 is configured to obtain a target signal within the target frequency range from the second signal array, perform signal enhancement on the target signal to obtain a candidate signal;
[0156] The above-mentioned signal enhancer unit 1222 is specifically configured to perform low-pass filtering on the second signal array to obtain a third signal array within the target frequency range; input the third signal array into a stochastic resonance system, enhance the signal intensity corresponding to the target frequency through the stochastic resonance system, and determine the signal after signal enhancement as the candidate signal; the target frequency belongs to the target frequency range;
[0157] The above-mentioned signal enhancer unit 1222 is specifically configured to filter out the signals in the second signal array whose signal frequencies are greater than (M j+1 -M j ) / 2 to obtain a third signal array within the target frequency range; (M j+1 -M j ) / 2 is equal to the target frequency.
[0158] Among them, the specific functional implementation manner of the frequency mapping subunit 1221 can refer to step S202 in the corresponding embodiment above, and the specific functional implementation manner of the signal enhancer unit 1222 can refer to step S203 in the corresponding embodiment above, which will not be elaborated here. Figure 5 The specific functional implementation manner of the signal enhancer unit 1222 can refer to step S203 in the corresponding embodiment above, which will not be elaborated here. Figure 5 The corresponding embodiment above, and will not be elaborated here.
[0159] In the embodiments of the present application, by obtaining the signal to be detected in the common channels including Bluetooth channels and Wi-Fi channels, the Bluetooth signal in the signal to be detected can be identified, and thus the channel number of the Bluetooth channel occupied by the Bluetooth signal can be obtained. Moreover, the subcarriers associated with the above channel number in the Wi-Fi channel can be determined as reserved subcarriers. Further, a Wi-Fi data packet can be constructed according to the above channel number, so that when data is transmitted, the reserved subcarriers can be avoided, and the Wi-Fi data packet is sent out through the target subcarriers. It can be seen that in the process of collaborative transmission between Bluetooth devices and Wi-Fi devices, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission between Bluetooth devices and Wi-Fi devices in the unlicensed band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, rather than reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided by the embodiments of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed band, and improve the service life of the Bluetooth device.
[0160] Please refer to Figure 10 , which is a schematic structural diagram of a data transmission device provided by the embodiments of the present application. The data transmission device may be a computer program (including program code) running on a computer device. For example, the data transmission device is an application software. The device can be used to execute the corresponding steps in the data transmission method provided by the embodiments of the present application. As Figure 10 shown, the data transmission device 2 may include: a receiving module 21, a parsing module 22, and a demodulating module 23;
[0161] The receiving module 21 is configured to receive the Wi-Fi data packet sent by the Wi-Fi sending end;
[0162] The parsing module 22 is configured to parse the packet header in the Wi-Fi data packet to obtain the reserved channel number, and obtain the center frequency of the Bluetooth channel corresponding to the reserved channel number;
[0163] The demodulating module 23 is configured to determine the reserved subcarriers according to the center frequency and demodulate the Wi-Fi data packet on the target subcarriers. The target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0164] Among them, the specific functional implementation manner of the receiving module 21 can refer to step S401 in the corresponding embodiment described above, and the specific functional implementation manner of the parsing module 22 can refer to the above Figure 7 The specific functional implementation manner of the parsing module 22 can refer to the above Figure 7For step S402 in the corresponding embodiment, the specific implementation manner of the demodulation module 23 can be referred to the above Figure 7 For step S403 in the corresponding embodiment, details are not described herein again.
[0165] In the embodiment of the present application, by receiving the Wi-Fi data packet constructed and sent by the Wi-Fi sender and parsing the content of the packet header, the reserved channel number can be obtained. Furthermore, according to the center frequency of the Bluetooth channel corresponding to the reserved channel number, the reserved subcarriers can be determined. Further, the Wi-Fi data packet can be demodulated by skipping the reserved subcarriers. It can be seen that during the collaborative transmission between the Bluetooth device and the Wi-Fi device, the Wi-Fi device can actively detect the weak Bluetooth signal transmitted in the common channel and reserve the transmission spectrum for the Bluetooth channel, thereby improving the efficiency and performance of the collaborative transmission between the Bluetooth device and the Wi-Fi device in the unlicensed frequency band. And during the transmission process, only a small number of subcarriers need to be reserved by the Wi-Fi device for the Bluetooth device to transmit, instead of reserving the entire Wi-Fi channel for the Bluetooth device. Therefore, the impact on the throughput of the Wi-Fi device can be reduced. In addition, the method provided in the embodiment of the present application can also improve the packet reception rate of the Bluetooth device, reduce the transmission overhead, and reduce the time spent by the Bluetooth device in transmitting data packets in the unlicensed frequency band, and improve the service life of the Bluetooth device.
[0166] Please refer to Figure 11 , which is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 11 shown, the computer device 1000 may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the computer device 1000 may further include: a user interface 1003 and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 1005 may optionally be at least one storage device located far from the aforementioned processor 1001. As Figure 11 shown, the memory 1005, as a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0167] In as Figure 11In the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for users to input; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0168] Obtain the signal to be detected in the common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel;
[0169] Identify the Bluetooth signal in the signal to be detected, obtain the channel number of the Bluetooth channel occupied by the Bluetooth signal, and determine the subcarriers associated with the channel number in the Wi-Fi channel as reserved subcarriers;
[0170] Construct a Wi-Fi data packet according to the channel number and send the Wi-Fi data packet through the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0171] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the data transmission method in any of the foregoing Figure 4 , Figure 5 , Figure 6 corresponding embodiments, and can also execute the description of the data transmission device 1 in the foregoing Figure 9 corresponding embodiments, which will not be elaborated herein. In addition, the description of the beneficial effects of adopting the same method will not be elaborated either.
[0172] Please refer to Figure 12 , which is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 12 shown, the computer device 2000 may include: a processor 2001, a network interface 2004, and a memory 2005. In addition, the computer device 2000 may further include: a user interface 2003, and at least one communication bus 2002. Among them, the communication bus 2002 is used to realize the connection and communication between these components. Among them, the user interface 2003 may include a display screen (Display), a keyboard (Keyboard), and optionally, the user interface 2003 may further include a standard wired interface and a wireless interface. The network interface 2004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 2004 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 2005 may optionally be at least one storage device located far from the foregoing processor 2001. As Figure 12 shown, the memory 2005, as a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0173] In the computer device 2000 as shown in Figure 12 , the network interface 2004 can provide network communication functions; the user interface 2003 is mainly used to provide an interface for users to input; and the processor 2001 can be used to call the device control application program stored in the memory 2005 to achieve:
[0174] Receiving Wi-Fi data packets sent by a Wi-Fi transmitter;
[0175] Parsing the packet header in the Wi-Fi data packet to obtain a reserved channel number, and obtaining the center frequency of the Bluetooth channel corresponding to the reserved channel number;
[0176] Determining reserved subcarriers according to the center frequency, and demodulating the Wi-Fi data packet on the target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel except for the reserved subcarriers.
[0177] It should be understood that the computer device 2000 described in the embodiments of the present application can execute the description of the data transmission method in the corresponding embodiments mentioned above Figure 7 、 Figure 8 , and can also execute the description of the data transmission device 2 in the corresponding embodiments mentioned above Figure 10 , which will not be elaborated here. In addition, the description of the beneficial effects of using the same method will not be elaborated either.
[0178] In addition, it should be pointed out here that: the embodiments of the present application also provide a computer-readable storage medium, and the computer program executed by the data transmission device 1 and the data transmission device 2 mentioned above is stored in the computer-readable storage medium, and the computer program includes program instructions. When the processor executes the program instructions, it can execute any one of the descriptions of the data transmission method in the corresponding embodiments mentioned above Figure 4 、 Figure 5 、 Figure 6 、 Figure 7 、 Figure 8 . Specifically, reference can be made to the implementation manners provided in each step in Figure 4 、 Figure 5 、 Figure 6 、 Figure 7 and Figure 8 , which will not be elaborated here. In addition, the description of the beneficial effects of using the same method will not be elaborated either. For the technical details not disclosed in the embodiments of the computer-readable storage medium involved in the present application, please refer to the description of the method embodiments of the present application.
[0179] The above computer-readable storage medium may be the data transmission device provided in any of the foregoing embodiments or the internal storage unit of the above computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0180] In addition, it should be noted here that: The embodiments of the present application also provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in any of the foregoing Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 corresponding embodiments.
[0181] The terms "first", "second", etc. in the description, claims and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or modules, but may optionally further include steps or modules not listed, or may optionally further include other step units inherent to these processes, methods, devices, products or equipment.
[0182] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0183] The methods and related devices provided by the embodiments of this application are described with reference to the method flowcharts and / or structural schematic diagrams provided by the embodiments of this application. Specifically, each process and / or block in the method flowchart and / or structural schematic diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Therefore, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic one block or multiple blocks.
[0184] The foregoing disclosures are only preferred embodiments of this application. Of course, the scope of rights of this application cannot be limited thereby. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.
Claims
1. A data transmission method, characterized in that, Including: Obtaining a signal to be detected in a common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel; Identifying a Bluetooth signal in the signal to be detected, obtaining a channel number of the Bluetooth channel occupied by the Bluetooth signal, and determining a subcarrier associated with the channel number in the Wi-Fi channel as a reserved subcarrier; the channel number of the Bluetooth channel is stored in a channel array; Adding the channel numbers included in the channel array to a header of an initial Wi-Fi data packet to obtain a Wi-Fi data packet; Modulating the information included in the Wi-Fi data packet onto a target subcarrier to obtain a Wi-Fi signal, and sending the Wi-Fi signal to a Wi-Fi receiver through the Wi-Fi channel; the target subcarrier refers to a subcarrier other than the reserved subcarrier in the Wi-Fi channel.
2. The method according to claim 1, wherein The obtaining a signal to be detected in a common channel includes: Collecting signal strengths respectively corresponding to L signal sampling points in a common channel based on a sampling frequency, storing the L signal strengths in an original signal array to obtain a signal to be detected; L is an integer greater than 1.
3. The method according to claim 2, wherein The number of the Bluetooth channels is h, where h is an integer greater than 1; the h Bluetooth channels include Bluetooth channel H i , where i is a positive integer less than or equal to h; one Bluetooth channel corresponds to one center frequency; The identifying a Bluetooth signal in the signal to be detected, obtaining a channel number of the Bluetooth channel occupied by the Bluetooth signal, and determining a subcarrier associated with the channel number in the Wi-Fi channel as a reserved subcarrier includes: Obtain the Bluetooth channel H i The corresponding center frequency B i , extract the signal with the carrier frequency being the center frequency B from the original signal array i to obtain the first signal array; Obtaining N Bluetooth modulation frequencies, and generating a candidate signal based on the N Bluetooth modulation frequencies and the first signal array; N is an integer greater than 1; If the signal strength of the candidate signal is greater than or equal to the strength threshold, it is recognized that there is a Bluetooth signal in the Bluetooth channel H i and the channel number of the Bluetooth channel H i is stored in the channel array; When the identification of Bluetooth signals is completed for all h Bluetooth channels, determining a subcarrier in the Wi-Fi channel that matches the center frequency corresponding to the channel number included in the channel array as a reserved subcarrier.
4. The method according to claim 3, wherein The obtaining N Bluetooth modulation frequencies, and generating a candidate signal based on the N Bluetooth modulation frequencies and the first signal array includes: Obtaining N Bluetooth modulation frequencies, and performing frequency mapping on the first signal array based on the N Bluetooth modulation frequencies to obtain a second signal array; the signal frequency corresponding to the second signal array is different from the signal frequency corresponding to the first signal array; Obtaining a target signal within a target frequency range from the second signal array, and performing signal enhancement on the target signal to obtain a candidate signal.
5. The method according to claim 4, wherein The N Bluetooth modulation frequencies include Bluetooth modulation frequency M j and Bluetooth modulation frequency M j+1 , where j is a positive integer less than N; The performing frequency mapping on the first signal array based on the N Bluetooth modulation frequencies to obtain a second signal array includes: According to the Bluetooth modulation frequency M j and the Bluetooth modulation frequency M j+1 generate a frequency conversion signal array with a signal frequency of frequency F j ; the frequency F j is equal to M j +(M j+1 -M j ) / 2; Multiplying the first signal array and the frequency conversion signal array to obtain a second signal array.
6. The method according to claim 5, characterized in that, The obtaining a target signal within a target frequency range from the second signal array, and performing signal enhancement on the target signal to obtain a candidate signal includes: Performing low-pass filtering on the second signal array to obtain a third signal array within the target frequency range; Inputting the third signal array into a stochastic resonance system, enhancing the signal strength corresponding to the target frequency through the stochastic resonance system, and determining the signal after signal enhancement as a candidate signal; the target frequency belongs to the target frequency range.
7. The method according to claim 6, characterized in that Performing low-pass filtering on the second signal array to obtain a third signal array within a target frequency range, including: Filter out the signals in the second signal array whose signal frequencies are greater than (M j+1 -M j ) / 2 to obtain a third signal array within the target frequency range; (M j+1 -M j ) / 2 is equal to the target frequency.
8. A data transmission method, characterized in that, Including: Receiving a Wi-Fi data packet sent by a Wi-Fi transmitter; Parsing the packet header in the Wi-Fi data packet to obtain a reserved channel number, and acquiring the center frequency of the Bluetooth channel corresponding to the reserved channel number; Determining reserved subcarriers according to the center frequency, and demodulating the Wi-Fi data packet on target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel other than the reserved subcarriers.
9. A data transmission device, characterized in that, Including: A signal acquisition module, configured to acquire a signal to be detected in a common channel; the common channel includes a Bluetooth channel and a Wi-Fi channel; A signal identification module, configured to identify a Bluetooth signal in the signal to be detected, acquire the channel number of the Bluetooth channel occupied by the Bluetooth signal, and determine the subcarriers associated with the channel number in the Wi-Fi channel as reserved subcarriers; the channel numbers of the Bluetooth channels are stored in a channel array; A data sending module, configured to add the channel numbers included in the channel array to the packet header of an initial Wi-Fi data packet to obtain a Wi-Fi data packet, modulate the information included in the Wi-Fi data packet onto target subcarriers to obtain a Wi-Fi signal, and send the Wi-Fi signal to a Wi-Fi receiver through the Wi-Fi channel; the target subcarriers refer to the subcarriers in the Wi-Fi channel other than the reserved subcarriers.
10. A data transmission device, characterized in that, Including: A receiving module, configured to receive a Wi-Fi data packet sent by a Wi-Fi transmitter; A parsing module, configured to parse the packet header in the Wi-Fi data packet to obtain a reserved channel number, and acquire the center frequency of the Bluetooth channel corresponding to the reserved channel number; A demodulating module, configured to determine reserved subcarriers according to the center frequency, and demodulate the Wi-Fi data packet on target subcarriers; the target subcarriers refer to the subcarriers in the Wi-Fi channel other than the reserved subcarriers.
11. A computer device, characterized in that, Including: A processor, a memory, and a network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1-8.
12. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, and the computer program is suitable for being loaded and executed by a processor to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Apparatus and method for avoiding interference between zigbee channel and wi-fi channel in a single device or a single system
KR1020130009489A