A high-performance concurrent communication method from Wi-Fi to ZigBee

By optimizing the physical layer CTC technology, selecting non-interference frames and building a parallel communication protocol, the problems of low throughput and insufficient reliability in Wi-Fi to ZigBee communication are solved, achieving concurrent transmission with high signal-to-noise ratio and improving system throughput. promote.

CN115022923BActive Publication Date: 2024-09-17HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210467159.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-17
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

The existing physical layer CTC technology from Wi-Fi to ZigBee has problems such as low throughput, insufficient reliability, severe demodulation distortion and limited application range, and cannot effectively improve the throughput of the entire system.

Method used

By selecting the existing physical layer CTC, determining the maximum distortion of the simulation frame and setting the threshold, pruning the candidate set, optimizing frame combination to reduce boundary, cyclic prefix and quantization distortion, using the new physical layer CTC algorithm to build a parallel communication protocol, selecting non-interference frames to achieve concurrent transmission with high signal-to-noise ratio.

Benefits of technology

It improves the reliability and concurrency of Wi-Fi to ZigBee communication, enhances the total throughput of the system, reduces demodulation distortion, and achieves concurrent transmission with high signal-to-noise ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022923B
    Figure CN115022923B
Patent Text Reader

Abstract

The present invention is a high-performance concurrent communication method from Wi-Fi to ZigBee. The present invention relates to the field of wireless communication technology. The present invention designs a parallel communication protocol from WiFi to ZigBee by establishing available simulation frames from a WiFi transmitter to different ZigBee receivers, which not only achieves higher communication reliability, but also greatly improves the concurrency of transmission. The present invention proposes two advanced physical layer CTCs to improve the existing demodulation quality and select candidate simulation frames from WiFi to ZigBee. Then, an algorithm for selecting non-interference frames from candidate simulation frames is proposed so that the new protocol can use such codes for parallel communication. Using PCTC from WiFi to ZigBee, a WiFi transmitter can transmit multiple signals to different ZigBee devices at the same time and achieve a high signal-to-noise ratio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the fields of wireless communication, Wi-Fi, ZigBee, cross-technology communication and concurrent technology, and is a high-performance concurrent communication method from Wi-Fi to ZigBee. Background Art

[0002] With the development of hardware and embedded systems, various IoT (Internet of Things) devices have emerged and been widely used, bringing great convenience to the perception and observation of the physical world through IoT systems. However, these devices may adopt different protocols according to the scenarios they are involved in or the applications they serve. Since many wireless devices are crowded in the ISM band, including WiFi, Bluetooth, and ZigBee, they may cause serious interference. In order to improve the communication efficiency between heterogeneous IoT devices, a series of cross-technology communication (CTC) technologies are proposed.

[0003] The initial implementation of CTC technology only uses data packets as carriers, such as received signal strength indicators, frame length, or transmission time. However, the above CTC technology can only use a few simple beacons, resulting in low throughput. In order to improve the throughput between two heterogeneous IoT devices, scholars proposed a physical layer CTC technology based on signal simulation. Unlike the existing packet-level CTC technology, the new technology allows the WiFi sender to simulate ZigBee frames. This allows the WiFi sender to communicate directly with the ZigBee receiver, greatly improving the throughput from WiFi to ZigBee. Although the communication quality and throughput between two heterogeneous IoT devices have been improved by physical layer CTC technology, it has its shortcomings. First, due to the unreliable direct signal simulation, the reliability of some physical layer CTC cannot be guaranteed. In order to overcome this shortcoming, scholars have proposed some new physical layer CTC technologies. However, the new physical layer CTC cannot significantly improve the throughput. Secondly, due to the many limitations of different protocols, it is difficult for devices with high sampling rates to simulate other signals, which limits the application scope of current physical layer CTC technology. Third, existing physical layer CTC focuses on the simulation of received signals, but protocol differences and hardware limitations lead to incomplete simulation to avoid distortion and errors in the demodulation process. Finally, existing physical layer CTC techniques only consider the communication between two IoT devices. They do aggravate wireless interference but cannot improve the throughput of the entire system.

[0004] Since PCTC is built according to the physical layer CTC, we will introduce the PHY layer protocols of 802.15.4 and 802.11n and the principles of physical layer CTC as background information to improve the readability of the paper. 802.15.4 and 802.11n are the classic protocols adopted by ZigBee and WiFi respectively.

[0005] Based on the 802.15.4 protocol, ZigBee uses OQPSK modulation, that is, a ZigBee frame contains 4 bits of data information, and is expanded into 32 bits of chips using direct sequence spreading, with c0, c1, c2...c31 representing the spectrum (DSSS), where 8 bits of chips represent one bit of data information. Figure 2 As shown, the above 32-bit chips are divided into two groups: the even-numbered chips are modulated onto the in-phase (I) carrier, and the odd-numbered chips are modulated onto the quadrature-phase (Q) carrier. The duration of a ZigBee frame is 16 μs. Figure 2 The demodulation process of a ZigBee node is briefly shown. The radio signal is received by the antenna and down-converted to baseband. It will then be sampled by the analog-to-digital converter (ADC) as an in-phase / quadrature (I / Q) signal. After that, the ZigBee demodulator outputs the signal as a chip "1" or chip "0" based on the phase difference between two consecutive signal samples and a threshold. After collecting 32 chips, the ZigBee receiver maps these chips into 4 bits (i.e., ZigBee symbols) according to the predefined symbols in the chip table.

[0006] According to 802.11n, WiFi signals are modulated using OFDM, that is, each WiFi frame has a maximum of 64 subcarriers, and each subcarrier is modulated using quadrature amplitude modulation (QAM). Therefore, each subcarrier is associated with a constellation, such as Figure 3 As shown in Figure 2. The total duration of a WiFi frame is 4μs, including all subcarriers and an additional cyclic prefix. Since each frame has many independent subcarriers to operate, this gives the WiFi transmitter a strong ability to emulate other signals, such as ZigBee signals.

[0007] Generally speaking, the modulation process of a WiFi transmitter sending a frame includes: Figure 3 The five steps shown are (i) channel coding, (ii) QAM modulation (iii) OFDM and pilot insertion, (iv) inverse Fourier transform, and (v) cyclic prefix addition. Since the duration of a WiFi frame is 4μs and the duration of a ZigBee frame is 16μs, we can use 4 WiFi frames to simulate a ZigBee frame and reverse the above steps during the simulation. Physical layer CTC is based on such simulation.

[0008] Physical layer CTC uses signal emulation to directly support the communication of heterogeneous devices. Specifically, to construct a ZigBee frame through four WiFi frames, the WiFi payload is carefully designed and selected according to the following steps.

[0009] (1) Given a required ZigBee signal, which will last for 16 μs, first divide it into four parts in the time domain.

[0010] (2) Remove the cyclic prefix of each part and perform FFT on the remaining 3.2μs signal to obtain the corresponding frequency domain signal. The frequency of this signal is 312.5KHz, which completely matches the frequency interval of the WiFi subcarrier.

[0011] (3) Using the nearest constellation point mapping and channel reverse coding, four WiFi payloads are obtained and returned to the transmitter, encapsulated into four WiFi frames for transmission.

[0012] If the WiFi transmitter sends the above WiFi frames continuously, they will be successfully decoded by the ZigBee receiver.

[0013] Introduction to the inevitable inherent errors of physical layer CTC

[0014] Although the information sent by the WiFi transmitter can be received and decoded by the ZigBee node after designing the WiFi payload, there are still some limitations in the physical layer CTC process, which may amplify the transmission error or cause the transmission failure when heterogeneous devices communicate.

[0015] Limitation 1. Discontinuous boundary distortion. According to the above discussion, the four constructed WiFi frames should be sent continuously to enable the ZigBee node to decode successfully. If the above conditions cannot be guaranteed, transmission failure will occur.

[0016] Limitation 2. Cyclic prefix distortion. Because for commercial WiFi devices, each WiFi frame requires a cyclic prefix with a duration of about 0.8μs. Therefore, Figure 4 As shown, we need to cut out a 3.2μs signal from each ZigBee part, and its duration is actually 4μs, which will lose some information.

[0017] Limitation 3. Quantization distortion. Physical layer CTC is mainly based on QAM simulation. Therefore, each part of a given ZigBee signal is first converted to a frequency domain signal through FFT, and then the constellation points and subcarriers are determined. Since the constellation points and subcarriers are discrete, and the given ZigBee signal is continuous, quantization distortion is inevitable in the transformation process.

[0018] Figure 4 The examples given in further verify the above limitations. Figure 4 Limitation 1: discontinuous distortion is shown. ZigBee frames are 16μs continuous signals, and four WiFi frames with a length of 4μs are spliced ​​into one ZigBee signal. During the splicing process, the three boundary points are likely to be discontinuous, which will cause signal jumps, resulting in phase noise and frequency noise. Figure 4 Limitation 2: Cyclic prefix distortion is shown. Each 4μs WiFi signal simulates a 1 / 4 ZigBee signal, but the WiFi signal is only independent for 3.2μs, and the rest is filled with cyclic prefix, resulting in partial CP simulation errors. Figure 4 Limitation 3: quantization distortion is shown. The ZigBee signal is mapped to points on the constellation diagram through FFT, such as Figure 4 As shown, WiFi cannot transmit QAM signals with arbitrary amplitude and phase modulation. Therefore, it can only find the nearest point and send it as a frequency domain signal. The quantization error of the frequency domain signal brings inaccuracy to the time domain signal. Summary of the invention

[0019] In order to overcome the deficiencies of the prior art, the present invention provides a high-performance concurrent communication method from Wi-Fi to ZigBee. The present invention provides the following technical solutions:

[0020] A high-performance concurrent communication method from Wi-Fi to ZigBee, the method comprising the following steps:

[0021] Step 1: Select an existing physical layer CTC, obtain the adopted simulation frame, determine the maximum distortion of the simulation frame, and set the threshold θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of loops to simplify the search process;

[0022] Step 2: For each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained;

[0023] Step 3: Let C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined. When it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z (f2)≥θ, (f1,f2) will also be pruned from C2;

[0024] Step 4: Let C w2z=C2×C2, for each ((f1,f2),(f3,f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, trim ((f1,f2),(f3,f4)) from C3; and the inherent deformation [f1,f2,f3,f4] of the combined frame should also satisfy Otherwise it will be pruned;

[0025] Step 5: Return to C w2z and its corresponding ZigBee digital frame C z .

[0026] Preferably, the step 1 is specifically:

[0027] Step 1.1: The receiver calculates the phase difference, θ, between two adjacent signal waveforms as follows:

[0028] θ=∠(s(n)×s * (n-1))=±π / 4+σ (1)

[0029] Where the ideal value of θ is equal to π4, and σ represents the error caused by interference and noise. Therefore, σ determines the demodulation confidence of the receiver;

[0030] Step 1.2: Use QAM distortion, cyclic distortion and boundary failure to evaluate the quality of the frame respectively; s(t) = acos(ωt+φ) + bsin(ωt+φ) represents the signal of a single subcarrier of WiFi, where each frame of WiFi has 48 controllable data subcarriers, each subcarrier is modulated by 64-QAM, a and b are IQ values ​​on the constellation, ω is the angular frequency of the signal, and φ is the initial phase;

[0031] Step 1.3: The bandwidth of ZigBee is only 2MHz, and the WiFi subcarrier spacing is 312.5KHz. The combination symbol used for ZigBee simulation satisfies:

[0032]

[0033] For any t∈[0, 3.2μs] in each cycle;

[0034] WiFi uses OFDM technology. The frequency of each subcarrier is 312.5KHz. The duration of the combined symbol is equal to 3.2μs (=1 / 312.5KHz); the duration of each WiFi frame is 4μs, so the duration of the cyclic prefix is ​​0.8μs. Let c(t) represent the cyclic prefix in the frame, then c(t)=s(t-3.2)

[0035] For any t∈(3.2μs, 4μs];

[0036] The signal in the frame represented by f(t) can be determined by the following formula:

[0037]

[0038] Preferably, the step 2 is specifically:

[0039] Given a frame f and two time slots, t q1 and t q2 , let s be the symbolic part of f, from t q1 to q2 The QAM distortion of f is calculated as:

[0040]

[0041] where 0≤t q1 ≤t q2 ≤3.2μs and

[0042] θ w2z (t) = ∠(s(t) × s * (t-1)) (5)

[0043] Considering that a ZigBee symbol with a length of 16 μs will be demodulated into 32 chips, the width of each chip is equal to 0.5 μs; the time slots used are generally {0 μs, 0.5 μs, 1 μs, ..., 3 μs}; for any frame f, Since when θ w2z(t) When it is close to ±π / 4, ZigBee demodulates the signal more accurately and easily, so the frame with the smallest QAM distortion is the best choice for building PCTC.

[0044] Preferably, the step 3 is specifically:

[0045] Cyclic prefix distortion, let f be the given frame and For two time slots with a cyclic prefix, f is arrive The cyclic prefix distortion of

[0046]

[0047] where 3.2<t q1 ≤t q2 ≤4μs and

[0048] θ w2z (t) = ∠(c(t) × c * (t-1))=±π / 4+σ (6)

[0049] The width of each chip in a frame is equal to 0.5μs, and the discrete time slots used are {3.5μs, 4μs} of the cyclic prefix. For any t∈(3.2μs, 4μs], c(t)=s(t-3.2), we have:

[0050]

[0051] Discontinuity distortion will be considered, and boundary failures will be accounted for by abrupt changes in the boundaries.

[0052] Boundary Failure Given two adjacent frames f1 and f2, a threshold θ, let and are the end and start time slots of f1 and f2 respectively, if and only if When , f1 and f2 experience boundary failure; where f1 and f2 can be determined by formula (3).

[0053] Preferably, the step 4 is specifically:

[0054] Determine candidate frames And the cross-correlation threshold l, l-non-interference frame:

[0055] l-Do not interfere with frame are two frames in the set CZ, then f Z (i) and f Z (j) is called an l-non-interference frame if and only if in Represents a discrete signal f Z (i) and f Z (j) The cross-correlation satisfies the following equation (9) and 1 is f Z (i) Length:

[0056]

[0057] WiFi frames have 8 bits, and f Z (i) For any f Z (i) ∈C Z Each contains 4 WiFi frames, so in our case, l = 32;

[0058] There is a definition of l-non-interfering subsets:

[0059] l-non-interfering subsets for any subset If and only if f Z (j) ∈S, when f Z(i) and f Z (j) It is called the l-non-interfering subset;

[0060] The problem of retrieving the largest l-non-interfering subset is defined as follows:

[0061] Input: returned candidate box set C Z , and the cross-correlation threshold l

[0062] Output: Frameset for parallel communication, in PF Z Indicates that

[0063] And PF Z is the l-non-interfering subset;

[0064] For any S that satisfies the definition, there is |PF Z |≥|S|.

[0065] Preferably, when f Z (i) and f Z (j) If the cross-correlation of is greater than a given threshold l, then f is retained. Z (i) and f Z (j) The edges between them will be deleted.

[0066] The above construction is completed in polynomial time. The problem of retrieving the largest l-non-interfering subset is equal to the problem of finding the largest independent set. The problem of the largest independent set is NP-complete, and the problem of retrieving the largest l-non-interfering subset is also NP-complete.

[0067] Preferably, a call is made to retrieve the candidate frameset C z to process;

[0068] For C z 、f Z (i) and f Z (j) For each pair of frames, calculate R(f Z (i) ,f Z (j) );

[0069] When Cz is not empty, perform the following operations;

[0070] From C z Select a frame f Z (i) , which has the smallest When multiple frames meet the above conditions, the frame with the smallest Hamming distance to its ideal digital frame is selected;

[0071] Let PF z =PF∪{f Z (j)}

[0072] From C z Delete

[0073] Finally, return to PF z For the final available orthogonal frames, deploying the orthogonal frames on the ZigBee frame mapping table can demodulate the concurrent signals of WiFi, thereby realizing concurrent communication.

[0074] A high performance concurrent communication system from Wi-Fi to ZigBee, the system comprising:

[0075] A physical layer establishment module, wherein the physical layer establishment module selects an existing physical layer CTC, obtains an adopted simulation frame, determines a maximum distortion of the simulation frame, and sets a threshold value θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of cycles to simplify the search process;

[0076] The candidate set module, for each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained;

[0077] Boundary module, the boundary module lets C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined, and when it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z (f2)≥θ, (f1,f2) will also be pruned from C2;

[0078] The pruning module allows C w2z =C2×C2, for each ((f1,f2),(f3,f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, trim ((f1,f2),(f3,f4)) from C3; and the inherent deformation [f1,f2,f3,f4] of the combined frame should also satisfy Otherwise it will be pruned;

[0079] Return module, the return module returns C w2z and its corresponding ZigBee digital frame Cz .

[0080] A computer-readable storage medium stores a computer program, which is executed by a processor to implement a high-performance concurrent communication method from Wi-Fi to ZigBee.

[0081] A computer device includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes a high-performance concurrent communication method from Wi-Fi to ZigBee.

[0082] The present invention has the following beneficial effects:

[0083] In order to overcome the above problems and improve the communication quality of the entire Internet of Things system, the present invention studies parallel cross-technology communication (PCTC). By establishing available simulation frames from the WiFi transmitter to different ZigBee receivers, a parallel communication protocol from WiFi to ZigBee is designed, which not only achieves higher communication reliability, but also greatly improves the concurrency of transmission. Existing physical layer CTCs cannot be directly utilized because their simulation frames are not sufficient to support parallel communication and their demodulation distortion is not optimal. Therefore, in our invention, we first propose two advanced physical layer CTCs to improve the existing demodulation quality and select candidate simulation frames from WiFi to ZigBee. Then, an algorithm for selecting non-interfering frames from candidate simulation frames is proposed so that the new protocol can use such codes for parallel communication. Using our PCTC from WiFi to ZigBee, the WiFi transmitter can transmit multiple signals to different ZigBee devices at the same time and achieve a high signal-to-noise ratio (SNR).

[0084] In order to improve the communication quality and retrieve the candidate simulation frames of PCTC, the present invention proposes two new advanced physical layer CTCs, which can avoid demodulation distortion as much as possible.

[0085] Compared with the traditional CTC technology, the PCTC of the present invention can achieve higher confidence transmission and concurrent transmission, thereby increasing the total throughput of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 This is the PCTC structure diagram;

[0087] Figure 2 For ZigBee receiver and zigbee signal;

[0088] Figure 3 For wifi transmitter and wifi signal;

[0089] Figure 4It is a physical layer limitation;

[0090] Figure 5 It is a PCTC framework structure;

[0091] Figure 6 To realize the principle diagram;

[0092] Figure 7 Schematic diagram of cyclic prefix error;

[0093] Figure 8 It is Algorithm 1;

[0094] Fig. 9 This is a schematic diagram of Algorithm 2;

[0095] Fig.10 For Algorithm 2;

[0096] Fig.11 Comparison chart of the results of traditional simulation signal and our simulation signal; (1) is the traditional result and (2) is our result DETAILED DESCRIPTION

[0097] The present invention is described in detail below in conjunction with specific embodiments. Specific embodiment one:

[0099] according to Figures 1 to 11 As shown, the specific optimization technical solution adopted by the present invention to solve the above technical problems is: the present invention relates to a high-performance concurrent communication method from Wi-Fi to ZigBee.

[0100] A high-performance concurrent communication method from Wi-Fi to ZigBee, the method comprising the following steps:

[0101] Step 1: Select an existing physical layer CTC, obtain the adopted simulation frame, determine the maximum distortion of the simulation frame, and set the threshold θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of loops to simplify the search process;

[0102] Step 2: For each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained;

[0103] Step 3: Let C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined. When it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z(f2)≥θ, (f1,f2) will also be pruned from C2;

[0104] Step 4: Let C w2z =C2×C2, for each ((f1,f2),(f3,f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, trim ((f1,f2),(f3,f4)) from C3; and the inherent deformation [f1,f2,f3,f4] of the combined frame should also satisfy Otherwise it will be pruned;

[0105] Step 5: Return to C w2z and its corresponding ZigBee digital frame C z .

[0106] Feasibility analysis: WiFi will add a certain amount of redundancy during transmission to improve the reliability of transmission. In the 802.11n protocol, this value is at least 1 / 6. WiFi has 48 data carriers, corresponding to a 288-bit payload. Therefore, it can only fully independently control WiFi's 240-bit payload at most, and then control 40 independent subcarriers. But in this article, we only need 7 data subcarriers to fully independently control, and there is no influence of channel coding. Specific embodiment 2:

[0108] The difference between the second embodiment of the present application and the first embodiment is that:

[0109] Due to the limitations of existing physical layer CTC, it is difficult to use them to build concurrent communications in heterogeneous wireless systems. Therefore, to achieve PCTC (concurrent cross-technology communication) and improve the reliability and concurrency of heterogeneous systems, the following two ideas need to be followed:

[0110] (1) Build the best mapping table from WiFi frames to ZigBee symbols based on the ZigBee decoding process to reconstruct the WiFi payload

[0111] (2) Obtain as many orthogonal codes as possible to construct a mapping table that can be transmitted concurrently to achieve concurrent transmission.

[0112] In order to realize the above two ideas, the construction framework of PCTC mainly consists of two parts as shown in Figure PCTC framework.

[0113] The first part is: the construction of a new physical layer, which is divided into two parts: distortion error analysis and a new cross-technology communication physical layer construction algorithm. In the distortion error analysis part, we analyze the distortion of the classic physical layer CTC in detail, including the distortion caused by QAM, OFDM, Cyclic Prefix (cyclic prefix) and quantization distortion, and model these distortions from the perspective of the receiver. This allows the errors caused by different factors to be uniformly processed in the subsequent algorithms. In the algorithm part, we propose a method for finding the optimal frame set C based on the distortion model. w2Z The wifi frames in this set can be accepted and recognized as ZigBee candidate frame set C by the ZigBee receiver with high reliability and low transmission error. z ,

[0114] The second part is: concurrent transmission. We present an algorithm for retrieving the l-non-interference frame set. In this algorithm, we combine the error caused by the previously introduced distortion with the cross-correlation error. The algorithm finally obtains the available orthogonal frame set PF while ensuring the transmission quality. W2Z The following is a detailed introduction to these two parts.

[0115] The step 1 is specifically as follows:

[0116] Step 1.1: The receiver calculates the phase difference, θ, between two adjacent signal waveforms as follows:

[0117] θ=∠(s(n)×s * (n-1))=±π / 4+σ (1)

[0118] Where the ideal value of θ is equal to π4, and σ represents the error caused by interference and noise. Therefore, σ determines the demodulation confidence of the receiver;

[0119] Step 1.2: Use QAM distortion, cyclic distortion and boundary failure to evaluate the quality of the frame respectively;

[0120] s(t)=acos(ωt+φ)+bsin(ωt+φ) represents the signal of a single subcarrier of WiFi, where each frame of WiFi has 48 controllable data subcarriers, each subcarrier is modulated by 64-QAM, a and b are IQ values ​​on the constellation, ω is the angular frequency of the signal, and φ is the initial phase;

[0121] Step 1.3: The bandwidth of ZigBee is only 2MHz, and the WiFi subcarrier spacing is 312.5KHz. The combination symbol used for ZigBee simulation satisfies:

[0122]

[0123] For any t∈[0,3.2μs] in each cycle;

[0124] WiFi uses OFDM technology. The frequency of each subcarrier is 312.5KHz. The duration of the combined symbol is equal to 3.2μs (=1 / 312.5KHz); the duration of each WiFi frame is 4μs, so the duration of the cyclic prefix is ​​0.8μs. Let c(t) represent the cyclic prefix in the frame, then c(t)=s(t-3.2)

[0125] For any t∈(3.2μs,4μs];

[0126] The signal in the frame represented by f(t) can be determined by the following formula:

[0127]

[0128] The above demodulation mechanism shows that the closest point in the constellation diagram is not necessarily the best demodulation point. Fig.11 As shown in (1)(2), the signals farther away in the constellation have better confidence. Therefore, the most "similar" signal obtained by WiFi simulation is not necessarily the best from the demodulation perspective. The right figure shows the ZigBee demodulation results of WiFi simulation and WiFi available frames, with 8 and 3 error points respectively. WiFi simulation is not the best way to generate frames used by Physical-CTC. However, how to find the optimal frame is still a problem worth studying. Specific embodiment three:

[0130] The difference between the third embodiment of the present application and the second embodiment is that:

[0131] The step 2 is specifically as follows:

[0132] Given a frame f and two time slots, and Let s be the symbolic part of f, from arrive The QAM distortion of f is calculated as:

[0133]

[0134] where 0≤t q1 ≤t q2 ≤32μs and

[0135] θ w2z (t) = ∠(s(t) × s * (t-1)) (5)

[0136] Considering that a ZigBee symbol with a length of 16μs will be demodulated into 32 chips, the width of each chip is equal to 0.5μs; the time slots used are generally {0μs, 0.5μs, 1μs, ..., 3μs}; for any frame f, Since when θ w2z(t) When it is close to ±π / 4, ZigBee demodulates the signal more accurately and easily, so the frame with the smallest QAM distortion is the best choice for building PCTC. Specific embodiment four:

[0138] The difference between the fourth embodiment of the present application and the third embodiment is that:

[0139] The step 3 is specifically as follows:

[0140] Cyclic prefix distortion, let f be the given frame and For two time slots with a cyclic prefix, f is arrive The cyclic prefix distortion of

[0141]

[0142] where 3.2<t q1 ≤t q2 ≤4μs and

[0143] θ w2z (t) = ∠(c(t) × c * (t1))=±π / 4+σ (6)

[0144] The width of each chip in a frame is equal to 0.5μs, and the discrete time slots used are {3.5μs, 4μs} of the cyclic prefix. For any t∈(3.2μs, 4μs], c(t)=s(t-3.2), we have:

[0145]

[0146] Discontinuity distortion will be considered, and boundary failures will be accounted for by abrupt changes in the boundaries.

[0147] Boundary Failure Given two adjacent frames f1 and f2, a threshold θ, let and are the end and start time slots of f1 and f2 respectively, if and only if When , f1 and f2 have boundary failure; wherein f1 and f2 can be determined by formula (3). Specific embodiment 5:

[0148] The difference between the fifth embodiment of the present application and the fourth embodiment is that:

[0149] ZigBee's direct sequence spread spectrum (DSSS) makes its signal communication capacity highly redundant. After changing its mapping table, the communication capacity can be improved in a high signal-to-noise ratio environment. If the transmission frames are orthogonal to each other, they can be sent simultaneously to achieve concurrent communication with higher communication capacity. Using the candidate set returned by Algorithm 1, denoted as Ideally, an orthogonal sequence is selected. Since the cross-correlation function of an orthogonal sequence is zero, the corresponding address code is used at the receiving end to eliminate the interference of other sequences and achieve parallel communication. Z The subset may be very small. Even for two orthogonal frames, their interference cannot be completely avoided in practice. Therefore, we will use l-non-interfering frames instead of a completely orthogonal scheme.

[0150] Frames for parallel communication, where l is a parameter given by the user, will be discussed later. Therefore, building PCTC requires solving two problems.

[0151] (1) How to get from C Z Retrieve as many l-non-interfering frames as possible?

[0152] (2) How to use the selected l-non-interference frames to adjust the ZigBee mapping strategy and construct a parallel physical layer CTC?

[0153] The step 4 is specifically as follows:

[0154] Determine candidate frames And the cross-correlation threshold l, l-non-interference frame:

[0155] l-Do not interfere with frame are two frames in the set CZ, then fZ(i) and fZ(j) are called l-non-interfering frames if and only if in Represents a discrete signal f Z (i) and f Z (j) The cross-correlation satisfies the following equation (9) and l is f Z (i) Length:

[0156]

[0157] WiFi frames have 8 bits, and f Z (i) For any f Z (i) ∈C Z Each contains 4 WiFi frames, so in our case, l = 32;

[0158] There is a definition of l-non-interfering subsets:

[0159] l-non-interfering subsets for any subset If and only if f Z (j) ∈S, when f Z (i) and f Z (j) It is called the l-non-interfering subset;

[0160] The problem of retrieving the largest l-non-interfering subset is defined as follows:

[0161] Input: returned candidate box set C Z , and the cross-correlation threshold l

[0162] Output: Frameset for parallel communication, in PF Z Indicates that

[0163] And PF Z is the l-non-interfering subset;

[0164] For any S that satisfies the definition, there is |PF Z |≥|S|.

[0165] Deployment of Zigbee frame mapping table

[0166] In the work, the Zigbee frame mapping table was changed to achieve better transmission and parallel communication. For this deployment, we considered two cases:

[0167] (1) Case 1: The number of ZigBee devices is known, and the ZigBee frame mapping table can be deployed in advance.

[0168] (2) Case 2: The number of ZigBee devices is unknown, or the ZigBee devices cannot deploy the ZigBee frame mapping table in advance.

[0169] For case 1, we can calculate and deploy our mapping table in advance. For case 2, we propose a strategy: First, we find the number of ZigBee devices and the address of each ZigBee device. Then the WiFi transmitter sends its address and the corresponding symbol-to-chip table to all ZigBee devices by broadcasting. After all ZigBee devices detect their own addresses, they will record the subsequent Zigbee frame mapping table and change their own mapping table. At the same time, checksums can be added to the transmitted frames to prevent errors in the mapping table, and WiFi should also be sent multiple times to improve reliability. Specific embodiment six:

[0171] The difference between the sixth embodiment of the present application and the fifth embodiment is that:

[0172] When f Z (i) and f Z (j) If the cross-correlation of is greater than a given threshold l, then f is retained. Z (i) and f Z (j) The edges between them will be deleted.

[0173] The above construction is completed in polynomial time. The problem of retrieving the largest l-non-interfering subset is equal to the problem of finding the largest independent set. The problem of the largest independent set is NP-complete, and the problem of retrieving the largest l-non-interfering subset is also NP-complete. Specific embodiment seven:

[0175] The difference between the seventh embodiment of the present application and the sixth embodiment is that:

[0176] Called to retrieve candidate frameset C z to process;

[0177] For C z 、f Z (i) and f Z (j) For each pair of frames, calculate R(f Z (i) ,f Z (j) );

[0178] When Cz is not empty, perform the following operations;

[0179] From C z Select a frame f Z (i) , which has the smallest When multiple frames meet the above conditions, the frame with the smallest Hamming distance to its ideal digital frame is selected;

[0180] Let PF z =PF∪{f Z (j)}

[0181] From C z Delete

[0182] Finally, return to PF z For the final available orthogonal frames, deploying the orthogonal frames on the ZigBee frame mapping table can demodulate the concurrent signals of WiFi, thereby realizing concurrent communication. Specific embodiment eight:

[0184] The difference between the eighth embodiment of the present application and the seventh embodiment is only that:

[0185] A high performance concurrent communication system from Wi-Fi to ZigBee, the system comprising:

[0186] A physical layer establishment module, wherein the physical layer establishment module selects an existing physical layer CTC, obtains an adopted simulation frame, determines a maximum distortion of the simulation frame, and sets a threshold value θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of cycles to simplify the search process;

[0187] The candidate set module, for each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained;

[0188] Boundary module, the boundary module lets C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined, and when it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z (f2)≥θ, (f1,f2) will also be pruned from C2;

[0189] The pruning module allows C w2z =C2×C2, for each ((f1,f2),(f3,f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, trim ((f1,f2),(F3,F4)) from C3; and the inherent deformation [f1,F2,F3,f4] of the combined frame should also satisfy Otherwise it will be pruned;

[0190] Return module, the return module returns C w2z and its corresponding ZigBee digital frame C z . Specific embodiment nine:

[0192] The difference between the ninth embodiment of the present application and the eighth embodiment is that:

[0193] The present invention provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement a navigation satellite constellation positioning accuracy analysis and simulation method. Specific embodiment ten:

[0195] The difference between the tenth embodiment of the present application and the ninth embodiment is that:

[0196] The present invention provides a computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes a navigation satellite constellation positioning accuracy analysis and simulation method. Specific embodiment eleven:

[0198] The difference between the eleventh embodiment of the present application and the tenth embodiment is that:

[0199] ZigBee's direct sequence spread spectrum (DSSS) makes its signal communication capacity highly redundant. After changing its mapping table, the communication capacity can be improved in a high signal-to-noise ratio environment. If the transmission frames are orthogonal to each other, they can be sent simultaneously to achieve concurrent communication with higher communication capacity. Using the candidate set returned by Algorithm 1, denoted as Ideally, an orthogonal sequence is selected. Since the cross-correlation function of an orthogonal sequence is zero, the corresponding address code is used at the receiving end to eliminate the interference of other sequences and achieve parallel communication. Z The subset may be very small. Even for two orthogonal frames, their interference cannot be completely avoided in practice. Therefore, we will use l-non-interfering frames instead of a completely orthogonal scheme.

[0200] Frames for parallel communication, where l is a parameter given by the user, will be discussed later. Therefore, building PCTC requires solving two problems.

[0201] (1) How to get from C Z Retrieve as many l-non-interfering frames as possible.

[0202] (2) How to use the selected l-non-interference frames to adjust the ZigBee mapping strategy and construct a parallel physical layer CTC.

[0203] The following will solve the above two problems

[0204] Given the candidate frame set returned by Algorithm 1 and the cross-correlation threshold l, the formal definition of l-non-interference frame is as follows:

[0205] (l-non-interference frame) It is a set C Z In the two frames, then f Z (i) and f Z (j) is called an l-non-interference frame if and only if in Represents a discrete signal f Z (i) and f Z (j)The cross-correlation satisfies the following equation (9) and l is f Z (i) Length:

[0206]

[0207] Since WiFi frames have 8 bits, and f Z (i) For any f Z (i) ∈C Z Each contains 4 WiFi frames, so in our case, l=32.

[0208] We have the definition of the l-non-interfering subset:

[0209] (l-non-interfering subset) For any subset If and only if f Z (j) ∈S, when f Z (i) and f Z (j) It is called the l-non-interfering subset

[0210] According to the above definition, the problem of retrieving the largest l-non-interfering subset is defined as follows:

[0211] Input: Candidate box set C returned by Algorithm 1 Z , and the cross-correlation threshold l

[0212] Output: Frameset for parallel communication, in PF Z Indicates that

[0213] (1) And PF Z is the l-non-interfering subset;

[0214] (2) For any S satisfying Definition 5.2, we have |PF Z |≥|S|.

[0215] The following theorem shows that the above problem is NP-complete.

[0216] The problem of retrieving the largest l-non-interfering subset is NP-complete.

[0217] We pass C Z Each frame in is mapped to a node to construct a graph, and the cross-correlation of each pair of frames is calculated according to formula (9). Z (i) and f Z (j) If the cross-correlation of is greater than a given threshold l, then f is retained. Z(i) and f Z (j) Otherwise, such edges will be deleted. Finally, we will get Fig.11 -(2) shown in the figure.

[0218] The above construction can be completed in polynomial time. The problem of retrieving the largest l-noninterfering subset is equivalent to the problem of finding the largest independent set. The problem of the largest independent set is NP-complete, so our problem of retrieving the largest l-noninterfering subset is also NP-complete.

[0219] Since the problem of retrieving the largest l-non-interfering subset is NP-complete, the next section introduces an approximate algorithm to solve it.

[0220] Based on the discussion in the previous section, the algorithm for retrieving the largest l-non-interfering subset consists of the following three steps:

[0221] Step 1. Call Algorithm 1 to retrieve the candidate frame set C z to be processed.

[0222] Step 2. For C z 、f Z (i) and f Z (j) For each pair of frames, calculate R(f Z (i) ,f Z (j) ).

[0223] Step 3 When C Z When not empty, perform the following operations.

[0224] (1) From C z Select a frame f Z (i) , which has the smallest If multiple frames meet the above conditions, the frame with the smallest Hamming distance to its ideal digital frame is selected.

[0225] (2) Let PF z =PF∪{f Z (j)}

[0226] (3) From C z Delete Finally, return to PF z For the final available orthogonal frames, deploying the orthogonal frames on the ZigBee frame mapping table can demodulate the concurrent signals of WiFi, thereby realizing concurrent communication.

[0227] The detailed algorithm is shown in Algorithm 2. The input parameter l can also be adjusted according to the concurrency requirements of the system. If there are fewer devices that need to transmit in parallel, l can be appropriately reduced to ensure a high signal-to-noise ratio. Otherwise, l should be set to a suitable value so that the system has both high concurrency and high confidence.

[0228] The above is only a preferred implementation of a high-performance concurrent communication method from Wi-Fi to ZigBee. The protection scope of a high-performance concurrent communication method from Wi-Fi to ZigBee is not limited to the above embodiments. All technical solutions under this idea belong to the protection scope of the present invention. It should be pointed out that for those skilled in the art, several improvements and changes without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A high performance concurrent communication method from Wi-Fi to ZigBee, characterized by: The method comprises the following steps: Step 1: Select an existing physical layer CTC, obtain the adopted simulation frame, determine the maximum distortion of the simulation frame, and set the threshold θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of loops to simplify the search process; Step 2: For each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained; Step 3: Let C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined, and when it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z (f2)≥θ, (f1, f2) will also be pruned from C2; Step 4: Let C w2z =C2×C2, for each ((f1, f2), (f3, f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, prune ((f1, f2), (f3, f4)) from C3; and the inherent deformation [f1, f2, f3, f4] of the combined frame should also satisfy Otherwise it will be pruned; Step 5: Return to C w2z and its corresponding ZigBee digital frame C z .

2. A high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 1, characterized in that: The step 1 is specifically as follows: Step 1.1: The receiver calculates the phase difference, θ, between two adjacent signal waveforms as follows: θ=∠(s(n)×S*(n-1))=±π / 4+σ (1) Where the ideal value of θ is equal to π4, and σ represents the error caused by interference and noise. Therefore, σ determines the demodulation confidence of the receiver; Step 1.2: Use QAM distortion, cyclic distortion and boundary failure to evaluate the quality of the frame respectively; s(t)=acos(ωt+φ)+bsin(ωt+φ) represents the signal of a single subcarrier of WiFi, where each frame of WiFi has 48 controllable data subcarriers, each subcarrier is modulated by 64-QAM, a and b are IQ values ​​on the constellation, ω is the angular frequency of the signal, and φ is the initial phase; Step 1.3: The bandwidth of ZigBee is only 2MHz, and the WiFi subcarrier spacing is 312.5KHz. The combination symbol used for ZigBee simulation satisfies: For any t∈[0, 3.2μs] in each cycle; WiFi uses OFDM technology. The frequency of each subcarrier is 312.5KHz. The duration of the combined symbol is equal to 3.2μs (=1 / 312.5KHz); the duration of each WiFi frame is 4μs, so the duration of the cyclic prefix is ​​0.8μs. Let c(t) represent the cyclic prefix in the frame, then c(t)=s(t-3.2) For any t∈(3.2μs, 4μs]; The signal in the frame represented by f(t) can be determined by the following formula:

3. A high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 2, characterized in that: The step 2 is specifically as follows: Given a frame f and two time slots, t q1 and t q2 , let s be the symbolic part of f, from t q1 to q2 The QAM distortion of f is calculated as: where 0≤t q1 ≤t q2 ≤3.2μs and θ w2z (t)=z(s(t)×s * (t-1)) (5) Considering that a ZigBee symbol with a length of 16 μs will be demodulated into 32 chips, the width of each chip is equal to 0.5 μs; the time slots used are generally {0 μs, 0.5 μs, 1 μs, ..., 3 μs}; for any frame f, Since when θ w2z When (t) is close to ±π / 4, ZigBee demodulates the signal more accurately and easily, so the frame with the smallest QAM distortion is the best choice for building PCTC.

4. The high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 3, characterized in that: The step 3 is specifically as follows: Cyclic prefix distortion, let f be the given frame and For two time slots with a cyclic prefix, f is arrive The cyclic prefix distortion of where 3.2<t q1 ≤t q2 ≤4μs and i w2z (t)=∠(c(t)×c * (t-1))=±π / 4+σ (6) The width of each chip in a frame is equal to 0.5μs, and the discrete time slots used are {3.5μs, 4μs} of the cyclic prefix. For any t∈(3.2μs, 4μs], c(t)=s(t-3.2), we have: Discontinuity distortion will be considered, and boundary failures will be accounted for by abrupt changes in the boundaries. Boundary Failure Given two adjacent frames f1 and f2, a threshold θ, let and are the end and start time slots of f1 and f2 respectively, if and only if When , f1 and f2 experience boundary failure; where f1 and f2 can be determined by formula (3).

5. A high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 4, characterized in that: The step 4 is specifically as follows: Determine candidate frames And the cross-correlation threshold l, l-non-interference frame: l-Do not interfere with frame are two frames in the set CZ, then fZ(i) and fZ(j) are called l-non-interfering frames if and only if in Represents a discrete signal f Z (i) and f Z (j) The cross-correlation satisfies the following equation (9) and l is f Z (i) Length: WiFi frames have 8 bits, and f Z (i) For any f Z (i) ∈C Z Each contains 4 WiFi frames, so in our case, l = 32; There is a definition of l-non-interfering subsets: l-non-interfering subsets for any subset If and only if fz (j) ∈S, when f Z (i) and f Z (j) It is called the l-non-interfering subset; The problem of retrieving the largest l-non-interfering subset is defined as follows: Input: returned candidate box set C Z , and the cross-correlation threshold l Output: Frameset for parallel communication, in PF Z Indicates that And PF Z is the l-non-interfering subset; For any S that satisfies the definition, there is |PF Z |≥|S|.

6. A high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 5, characterized in that: When f Z (i) and f Z (j) If the cross-correlation of is greater than a given threshold l, then f is retained. Z (i) and f Z (j) The edge between them; when f is not satisfied Z (i) and f Z (j) If the cross-correlation of is greater than a given threshold l, then f Z (i) and f Z (j) The edges between will be deleted; The above Z (i) and f Z (j) The edges between them are completed in polynomial time. The problem of retrieving the largest l-non-interfering subset is equal to the problem of finding the largest independent set. The problem of the largest independent set is NP-complete, and the problem of retrieving the largest l-non-interfering subset is also NP-complete.

7. A high-performance concurrent communication method from Wi-Fi to ZigBee according to claim 6, characterized in that: Called to retrieve candidate frameset C z to process; For C z 、f Z (i) and f Z (j) For each pair of frames, calculate R(f Z (i) , f Z (j) ); When Cz is not empty, perform the following operations; From C z Select a frame f Z (i) , which has the smallest When multiple frames meet the minimum Then the frame with the smallest Hamming distance to its ideal digital frame is selected; Let's PF z =PF∪{f Z (j) } From C z Delete Finally, return to PF z For the final available orthogonal frames, deploying the orthogonal frames on the ZigBee frame mapping table can demodulate the concurrent signals of WiFi, thereby realizing concurrent communication.

8. A high performance concurrent communication system from Wi-Fi to ZigBee, characterized by: The system comprises: A physical layer establishment module, wherein the physical layer establishment module selects an existing physical layer CTC, obtains an adopted simulation frame, determines a maximum distortion of the simulation frame, and sets a threshold value θ equal to the distortion; the reason for selecting the worst distortion is to avoid the candidate set being empty and to reduce the number of cycles to simplify the search process; The candidate set module, for each frame f, when the inherent distortion satisfies E I w2z (f) ≥ θ, will be pruned and the first candidate set will be obtained; Boundary module, the boundary module lets C2 = C1 × C1; for each pair (f1, f2) ∈ C2, determine when boundary failure occurs when f1 and f2 are combined, and when it occurs, prune (f1, f2) from C2; and the inherent distortion of (f1, f2) satisfies E I w2z (f1)+E I w2z (f2)≥θ, (f1, f2) will also be pruned from C2; The pruning module allows C w2z =C2×C2, for each ((f1, f2), (f3, f4))∈C3, determine when boundary failure occurs when f2 and f3 are combined. When it occurs, prune ((f1, f2), (f3, f4)) from C3; and the inherent deformation [f1, f2, f3, f4] of the combined frame should also satisfy Otherwise it will be pruned; Return module, the return module returns C w2z and its corresponding ZigBee digital frame C z .

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the high-performance concurrent communication method from Wi-Fi to ZigBee as claimed in claims 1 to 7.

10. A computer device, characterized in that: It includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the high-performance concurrent communication method from Wi-Fi to ZigBee according to 1-7.