CN109600771B - Cross-protocol communication method and device from WiFi equipment to ZigBee equipment - Google Patents

Cross-protocol communication method and device from WiFi equipment to ZigBee equipment Download PDF

Info

Publication number
CN109600771B
CN109600771B CN201811420188.XA CN201811420188A CN109600771B CN 109600771 B CN109600771 B CN 109600771B CN 201811420188 A CN201811420188 A CN 201811420188A CN 109600771 B CN109600771 B CN 109600771B
Authority
CN
China
Prior art keywords
phase
phase sequence
zigbee
simulation
wifi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811420188.XA
Other languages
Chinese (zh)
Other versions
CN109600771A (en
Inventor
何源
郭秀珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CN201811420188.XA priority Critical patent/CN109600771B/en
Publication of CN109600771A publication Critical patent/CN109600771A/en
Application granted granted Critical
Publication of CN109600771B publication Critical patent/CN109600771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a cross-protocol communication method and device from WiFi equipment to ZigBee equipment, wherein the method comprises the steps of obtaining a target simulation phase sequence meeting the phase deviation requirement of the ZigBee equipment; optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence; and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal. According to the embodiment of the invention, the phase sequence required by decoding of the simulated ZigBee device is obtained, and the simulated phase sequence is optimized to obtain the mapping table between the ZigBee symbol and the simulated phase sequence, so that cross-protocol communication from the WiFi device to the ZigBee device is realized, the communication efficiency from the WiFi device to the ZigBee device is improved, the network throughput is increased, and the cross-protocol communication transmission is more stable.

Description

Cross-protocol communication method and device from WiFi equipment to ZigBee equipment
Technical Field
The embodiment of the invention relates to the technical field of wireless communication, in particular to a cross-protocol communication method and device from WiFi equipment to ZigBee equipment.
Background
The large-scale application of the Internet of things brings about the vigorous development of wireless sensing and control application, the most common wireless network standards at present are WiFi, ZigBee and Bluetooth, and the working frequency bands of the wireless network standards are all in 2.4GHz free frequency bands. In many scenarios, the coexistence of these heterogeneous devices in the physical space inevitably leads to interference of the respective wireless communication systems by each other and mutual channel competition. In order to achieve more efficient data transmission and spectrum use between heterogeneous devices, information needs to be transmitted and exchanged between these heterogeneous devices. Early work primarily achieved data exchange by establishing indirect communication between heterogeneous devices. Such as cloud servers and gateways. However, these methods have high management difficulty, weak service expandability, unpredictable transmission delay, and high hardware equipment cost and maintenance cost.
For the above reasons, direct communication between different technologies has a wider research prospect than indirect communication. Therefore, wireless cross-protocol communication techniques have emerged. The current cross-protocol communication technology can be divided into two types: cross-protocol communication of the data envelope and cross-protocol communication of the physical layer. Cross-protocol communication of the data envelope and cross-protocol communication of the physical layer. The cross-protocol communication of the data cladding realizes information exchange among heterogeneous devices by modulating the signal strength, the packet length, the transmission time and the channel state information of the data packet. For example, WiZig enables direct communication from WiFi to ZigBee on signal strength, with information being transferred by adjusting the transmit power of WiFi devices, with different signal strengths representing different data bits. The Gap Sense realizes data transmission from WiFi to ZigBee by adjusting the packet length of the data packet, and different packet lengths can be modulated into different information. The FreeBee realizes direct communication from WiFi to ZigBee from a time dimension, information is transmitted by changing buoy beacon time of broadcasting signals between heterogeneous devices, and the transmission rate of the FreeBee is limited due to the inherent rate of beacon because the beacon rate of commercial WiFi is 102.4 ms/beacon. The B2W2 realizes data transmission from the bluetooth device to the WiFi device by using changes of WiFi Channel State Information (CSI). However, since the data packets transmitted per second are limited, the throughput of the data packet layer for cross-protocol communication is low.
The cross-protocol communication technology of the physical layer aims to make heterogeneous devices compatible with each other, and can realize cross-protocol communication on signals of the physical layer. For example, the WEBee implements a method for simulating a ZigBee physical layer signal using a payload part of a WiFi packet, so that a ZigBee device can recognize and decode a WiFi signal without modifying hardware devices. BlueBee proposes a method for simulating ZigBee signals by using Bluetooth signals, and realizes cross-protocol communication from Bluetooth to ZigBee in a physical layer. Because the cross-protocol communication technology of the physical layer directly utilizes the signals of the physical layer, the speed and the throughput of cross-protocol communication can be effectively improved.
However, in the prior art, the transmitting end simulates a standard time domain signal of the receiving end to realize cross-protocol communication, and due to the incompatibility of WiFi and ZigBee protocol standards and the hardware limitation of the transmitting end simulated signal, the simulated time domain signal has a larger difference from the standard time domain signal. Because the waveform simulated by the WiFi is not completely matched with the standard time domain waveform required by the receiving end, when the practical application needs higher transmission reliability, the simulated data packet needs to be repeatedly transmitted for many times, so that the cross-protocol communication efficiency and throughput from the WiFi equipment to the ZigBee equipment are reduced, and the communication reliability is poorer.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a cross-protocol communication method and device from a WiFi device to a ZigBee device.
In a first aspect, an embodiment of the present invention provides a method for cross-protocol communication from a WiFi device to a ZigBee device, including:
acquiring a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment;
optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence;
and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
In a second aspect, an embodiment of the present invention provides a cross-protocol communication apparatus from a WiFi device to a ZigBee device, including:
the acquisition module is used for acquiring a target simulation phase sequence meeting the phase deviation requirement of the ZigBee equipment;
the optimization module is used for optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence;
and the analog decoding module is used for performing analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the cross-protocol communication method and device from the WiFi equipment to the ZigBee equipment, the phase sequence required by decoding of the ZigBee equipment is simulated, the simulated phase sequence is optimized, and the mapping table between the ZigBee symbol and the simulated phase sequence is obtained, so that cross-protocol communication from the WiFi equipment to the ZigBee equipment is realized, the communication efficiency from the WiFi equipment to the ZigBee equipment is improved, the network throughput is increased, and the cross-protocol communication transmission is more stable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a digital-to-analog converter according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a cross-protocol communication method from a WiFi device to a ZigBee device according to an embodiment of the present invention;
FIG. 3 is a schematic phase-offset diagram of a square wave as a basic waveform according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a statistical Hamming distance according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating simulation errors caused by cyclic prefixes according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a feedback adjustment algorithm provided in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a cross-protocol communication device from a WiFi device to a ZigBee device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Since the receiving end of the ZigBee device does not rely on the shape of a specific waveform for decoding, but decodes according to the phase difference between sampling points. In the embodiment of the invention, except for the semi-sinusoidal signal of the standard ZigBee time domain, other waveforms can be decoded by the ZigBee device, as long as the waveforms have the same phase offset, and in addition, as long as the bandwidth of the transmitting end is larger than that of the receiving end, the receiving end can be simulated, and the receiving end is decoded according to the phase offset, the cross-protocol communication can be realized by adopting digital simulation. Therefore, the embodiment of the invention carries out digital simulation on the phase deviation without simulating the shape of the labeled time domain waveform of the receiving end. Fig. 1 is a schematic diagram of digital simulation provided in an embodiment of the present invention, and as shown in fig. 1, there are many phase sequences that can satisfy a phase offset relationship, so that a suitable phase sequence needs to be found from many phase sequences to reduce the simulation error of the WiFi device as much as possible, and then the decoding error of the ZigBee device is also reduced after receiving the ZigBee phase offset sequence simulated by the WiFi device, thereby implementing stable and reliable data transmission.
Fig. 2 is a schematic flowchart of a cross-protocol communication method from a WiFi device to a ZigBee device provided in an embodiment of the present invention, and as shown in fig. 2, an embodiment of the present invention provides a cross-protocol communication method from a WiFi device to a ZigBee device, including:
step 201, acquiring a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment;
step 202, optimizing the target simulation phase sequence to obtain a mapping table between a ZigBee symbol and a simulation phase sequence;
and 203, performing analog processing on the phase sequence of the WiFi signal according to the mapping table so that the ZigBee device can decode the WiFi signal.
In the embodiment of the invention, firstly, a target simulation phase sequence meeting the phase deviation requirement of the ZigBee device is obtained through step 201. The WiFi equipment selects a proper phase sequence from a plurality of phase sequences meeting the ZigBee phase deviation change for simulation, each phase sequence corresponds to a waveform, and the WiFi equipment fills different contents in the payload part, so that the phase sequence of the payload can be similar to a standard phase sequence required by the ZigBee equipment as much as possible, and the phase simulation is realized. In the embodiment of the invention, a square wave is selected as a basic waveform unit, so that a series of step-shaped phase sequences are generated, and the phases of the step-shaped phase sequences are stable in one decoding period, so that the phase offset change of the ZigBee signal can be met, and a WiFi device simulates the phase sequences by modifying the content of payload.
Then, through step 202, the target simulation phase sequence is optimized to obtain a mapping table between the ZigBee symbol and the simulation phase sequence, and in the embodiment of the present invention, a simulation phase sequence with a smaller simulation error of the WiFi device is selected as an initial phase sequence from a plurality of simulation phase sequences through a greedy algorithm. In addition, through analyzing the influence of the cyclic prefix on the ZigBee, phase values of some special positions are optimally adjusted. After the cyclic prefix of the initial phase is adjusted, the phase sequence is fed back and adjusted through a feedback adjustment algorithm according to the phase result simulated by the WiFi equipment, and therefore the simulated phase sequence suitable for the simulation of the WiFi equipment is obtained. Because the ZigBee signal has 16 symbols, corresponding to 16 phase offset sequences, 16 suitable phase sequences are required to simulate the phase offset requirements of the 16 symbols, and therefore the WiFi device constructs a mapping table from a symbol to a phase sequence according to a simulated phase sequence with a small simulated error and a decoded phase offset result with higher reliability. And finally, according to the step 203, performing analog processing on the phase sequence of the WiFi signal according to the mapping table, so that the ZigBee device decodes the WiFi signal. When cross-protocol data transmission from the WiFi equipment to the ZigBee equipment is needed, the mapping table is loaded on the WiFi equipment, the WiFi equipment simulates the corresponding phase sequence according to the mapping table, and after the ZigBee equipment receives a digital simulation data packet, the simulated phase sequence is decoded, so that cross-protocol communication is realized.
According to the embodiment of the invention, the phase sequence required by decoding of the simulated ZigBee device is obtained, and the simulated phase sequence is optimized to obtain the mapping table between the ZigBee symbol and the simulated phase sequence, so that cross-protocol communication from the WiFi device to the ZigBee device is realized, the communication efficiency from the WiFi device to the ZigBee device is improved, the network throughput is increased, and the cross-protocol communication transmission is more stable.
On the basis of the above embodiment, the acquiring a target analog phase sequence that meets the phase offset requirement of the ZigBee device includes:
obtaining an analog phase sequence set according to the phase deviation requirement of the ZigBee equipment;
obtaining a Hamming distance average value between a phase deviation sequence corresponding to each group of simulation phase sequences in the simulation phase sequence set and a standard phase deviation sequence;
and judging each group of Hamming distance average values through a greedy algorithm, and if the judgment result meets a preset condition, taking the simulation phase sequence corresponding to the Hamming distance average value meeting the preset condition in the simulation phase sequence set as the target simulation phase sequence.
In the embodiment of the invention, square waves are selected as basic waveforms to generate a step-shaped set of phase sequences, and the phase sequences all meet the phase deviation requirement of the ZigBee device. Specifically, the binary phase offset of one ZigBee symbol requires 32 bits, and the decoding period of each bit is 0.5 us. If the phase change is larger than 0 in one decoding period, the phase offset of the binarization is decoded to be 1, otherwise, the phase offset is decoded to be 0. FIG. 3 is a schematic diagram of the phase deviation of the square wave as the basic waveform provided by the embodiment of the present invention, as shown in FIG. 3, the phases from T1 to T3 change from 0 to
Figure GDA0002473849060000061
The corresponding time domain waveform is shown in fig. 3 (b). Referring to FIG. 3, shown at1And τ2Two sampling moments satisfy T1≤τ1≤T2,T2≤τ2≤T3And τ is210.5us, corresponding to a phase offset of
Figure GDA0002473849060000062
The decoded binary phase is 0, thus resulting in a square wave as the set of phase sequences of the base waveform.
Because the result of the simulation of the WiFi device is not matched with the phase sequence required by the ZigBee device, in the embodiment of the present invention, the simulation error is quantified by counting the hamming distance. Fig. 4 is a schematic diagram of hamming distance statistics provided by an embodiment of the present invention, and as shown in fig. 4, a period of ZigBee decoding is 0.5us, so that starting times of sampling points are different, and obtained phase offset sequences are also different. Let the start time of sampling be τ12…, τ n, which is uniformly distributed within 0.5us, the hamming distance between the phase-offset sequence decoded at different sampling instants and the phase-offset sequence of the ZigBee symbol is H1,H2,…,HnIn an embodiment of the present invention, the statistical hamming distances are defined as the average of these hamming distances:
Figure GDA0002473849060000063
wherein, the larger n is, the more the SHD can describe the error between the simulated phase sequence and the phase sequence required by the ZigBee device. In order to ensure balance between the complexity of calculation and the experimental result, in the embodiment of the present invention, n-5 is selected as a parameter of the SHD, and the error of the WiFi device simulation is estimated.
Then, the analog phase sequence is initialized, and the phase offset sequence of the ZigBee symbol is assumed as follows:
Δφ={Δφ1,Δφ2,…,Δφn},n=1,2,…,32;
the corresponding phase sequence is then:
φ={φ12,…,φn},n=1,2,…,32;
hypothetical phaseInitial phase of bit sequence
Figure GDA0002473849060000071
And a phase offset between two successive phases of
Figure GDA0002473849060000072
The resulting analog phase sequence is then:
Figure GDA0002473849060000073
the corresponding time domain signals are:
x(n)=I(n)+Q(n)=cos(φn)+i*sin(φn),n=1,2,…,32;
it follows that the factor affecting a phase sequence is the initial phase
Figure GDA0002473849060000074
And phase offset between two phases
Figure GDA0002473849060000075
The initial phase is chosen to be any value of [0,2 pi), and the phase offset value between two consecutive phases is chosen to be any value of [0, pi). To simplify the phase selection problem, the initial phase is set
Figure GDA0002473849060000076
And phase offset between two phases
Figure GDA0002473849060000077
The value of (1) is discretized, and the better the phase sequence is, the smaller the statistical Hamming distance SHD simulated by the WiFi equipment is. Thus, to
Figure GDA0002473849060000078
For discrete intervals, the phase selection problem is converted into an optimization problem of SHD minimization:
min SHD;
Figure GDA0002473849060000079
a group is selected according to a greedy algorithm
Figure GDA00024738490600000710
So that the minimum statistical Hamming distance is obtained in the discrete value range of the two parameters, and the minimum statistical Hamming distance is used as the minimum statistical Hamming distance
Figure GDA00024738490600000711
The generated phase sequence is used as an initial phase sequence, namely a target simulation phase sequence.
On the basis of the above embodiment, the optimizing the target simulation phase sequence to obtain a mapping table between a ZigBee symbol and a simulation phase sequence includes:
and adjusting and optimizing the cyclic prefix of the target simulation phase sequence to obtain a second target simulation phase sequence.
In the embodiment of the invention, the cyclic prefix of the WiFi signal is that a part of 0.8us time domain signal is copied to the front of the original 3.2us time domain signal, so that a WiFi symbol forms a 4us time domain signal, and the ZigBee symbol has no such repeated characteristic, so that the error caused by the cyclic prefix exists when the WiFi device is used for simulating ZigBee. Since one ZigBee symbol is 16us, the ZigBee symbol needs to be divided into 4 shares, and each 4us segment is simulated with one WiFi symbol. Fig. 5 is a schematic diagram of an analog error caused by a cyclic prefix according to an embodiment of the present invention, as shown in fig. 5, for segment 1/3, the cyclic prefix directly splices a subsequent time domain signal to a front, so that the front signal is not required by the ZigBee device, and a decoding error occurs. For segment 2/4, the preceding segment is replaced with the following segment before the cyclic prefix is performed, so that after the cyclic prefix, the preceding segment is correct and the error signal is the following segment. Since the ZigBee device does not process the phase offsets of the two ends when decoding, the flip operation method can reduce the influence of the cyclic prefix on ZigBee, so that the error of the cyclic prefix can be divided into the middle and the two ends of a ZigBee symbol, in the embodiment of the present invention, the cyclic prefix of the segment 1/3 is called forward cyclic prefix, and the cyclic prefix of the segment 2/4 is called backward cyclic prefix.
According to the type of the cyclic prefix and the phase deviation delta phi of each ZigBee segment influenced by the cyclic prefix1And delta phi7There are a total of 8 different cases, as shown in table 1:
TABLE 1
Figure GDA0002473849060000081
By adjusting the phase at different positions, the effect of the cyclic prefix can be further reduced.
In the embodiment of the present invention, the specific adjustment method is implemented by using forward cyclic prefix and Δ φ of segment 1/31=Δφ7For example, assume that the binary phase shift sequence is Δ Φ ═ Δ Φ1,Δφ2,…,Δφ7{1010011}, if the first sample point falls at τ1Inner, then the second sample point falls at τ3And the decoding result is 1. However, if the first sample point falls at τ2Inner, then the second sample point falls at τ4In this case, the decoding result is 0, i.e., a decoding error occurs. Due to tau1And τ2With a duration of 0.3us and 0.2us, respectively, the probability of an error due to the cyclic prefix is 0.4. To reduce errors caused by cyclic prefixes, τ4Is required to be greater than tau2Of phase τ of4The phase of (a) is actually the original phi2,τ2Is actually phi8. Therefore, the original phi is increased2So that phi is2Greater than phi8So that the result of the decoding is correct wherever the decoding starts.
On the basis of the foregoing embodiment, after the adjusting and optimizing the cyclic prefix of the target simulation phase sequence to obtain a second target simulation phase sequence, the method includes:
and performing feedback adjustment algorithm processing on the second target simulation phase sequence to obtain a third target simulation phase sequence so as to obtain a mapping table between the ZigBee symbol and the simulation phase sequence.
In the embodiment of the invention, in order to further reduce the simulation error of the WiFi device, the second target simulation phase sequence optimized by the greedy algorithm and the cyclic prefix phase is further optimized by the feedback adjustment algorithm. Fig. 6 is a schematic diagram of a feedback adjustment algorithm according to an embodiment of the present invention, and as shown in fig. 6, the phase sequence simulated by the WiFi device is adjusted in reverse. Specifically, the average value of the simulated phase sequence is used as the new phase value in one decoding period, but in some cases, the phase offset requirement may be opposite to that of the ZigBee itself, as shown in fig. 6, where (T) is3,T4) Average of phase sequences phi simulated by WiFi device3Is less than (T)2,T3) Mean value of (phi)2. However, the phase offset required by the ZigBee device is 1, and in the embodiment of the invention, a delta phi, namely phi ', is added on the basis of the phase of the previous period directly'3=φ2+ delta phi, thereby completing the optimization of the feedback adjustment algorithm, enabling the error of the phase sequence simulated by the WiFi equipment to be smaller, and realizing the cross-protocol communication from the WiFi equipment to the ZigBee equipment. Meanwhile, according to the third target simulation phase sequence optimized by the feedback adjustment algorithm, the WiFi equipment obtains a mapping table between the ZigBee symbol and the simulation phase sequence.
On the basis of the above embodiment, the performing analog processing on the phase sequence of the WiFi signal according to the mapping table for the ZigBee device to decode the WiFi signal includes:
and constructing a payload of the WiFi signal according to the mapping table so that the ZigBee device can decode the ZigBee signal phase sequence simulated by the payload.
On the basis of the above embodiment, since one phase sequence corresponds to one time domain waveform, the time domain waveform is put into an FFT module of the WiFi device to obtain an FFT coefficient. In addition, there are 7 overlapped subcarriers of the WiFi signal and the ZigBee signal, and the 7 overlapped subcarriers are selected to simulate the ZigBee phase sequence. And selecting QAM points closest to FFT coefficients corresponding to 7 subcarriers on a constellation diagram of WiFi64QAM according to a mapping table between the ZigBee symbol and the analog phase sequence to construct payload of the WiFi signal. Since preamble, header and tail of WiFi are the same as the data packet of the normal WiFi signal, the data packet can be received by the WiFi device. After receiving the data packet, the receiving end of the ZigBee ignores the preamble, the header, the tail and other parts of the WiFi, and only decodes the phase sequence simulated by the payload. Therefore, cross-protocol communication from the WiFi equipment to the ZigBee equipment is realized.
On the basis of the above embodiment, the corresponding waveform of the target analog phase sequence is a square wave.
In the embodiment of the invention, in order to ensure that the phase is stable in one decoding period, a square wave is selected as a basic unit, and a phase sequence and a corresponding waveform are generated. It should be noted that although the high frequency component of the square wave is larger than that of the sine wave, the phase sequence can also be simulated by using 7 subcarriers of the WiFi device. This is because the binary phase-offset sequence has some consecutive 0's or 1's, so the resulting phase sequence is staircase-shaped. Since the frequency components of the ladder-shaped sequence are concentrated within 2M, it is reasonable to simulate the ladder-shaped phase sequence by using the 2M bandwidth overlapped by the WiFi signal and the ZigBee signal, and the stability is high.
Fig. 7 is a schematic structural diagram of a cross-protocol communication device from a WiFi device to a ZigBee device provided in an embodiment of the present invention, and as shown in fig. 7, the embodiment of the present invention provides a cross-protocol communication device from a WiFi device to a ZigBee device, including: the device comprises an acquisition module 701, an optimization module 702 and a simulation decoding module 703, wherein the acquisition module 701 is used for acquiring a target simulation phase sequence meeting the phase deviation requirement of the ZigBee device; the optimization module 702 is configured to perform optimization processing on the target simulation phase sequence to obtain a mapping table between a ZigBee symbol and the simulation phase sequence; the analog decoding module 703 is configured to perform analog processing on the phase sequence of the WiFi signal according to the mapping table, so that the ZigBee device decodes the WiFi signal.
According to the cross-protocol communication device from the WiFi equipment to the ZigBee equipment, the phase sequence required by decoding of the ZigBee equipment is simulated, the simulated phase sequence is optimized, and the mapping table between the ZigBee symbol and the simulated phase sequence is obtained, so that cross-protocol communication from the WiFi equipment to the ZigBee equipment is realized, the communication efficiency from the WiFi equipment to the ZigBee equipment is improved, the network throughput is increased, and the cross-protocol communication transmission is more stable.
On the basis of the above embodiment, the obtaining module 701 includes: the device comprises a first processing unit, a second processing unit and a third processing unit, wherein the first processing unit is used for obtaining an analog phase sequence set according to the phase deviation requirement of the ZigBee device; the second processing unit is used for acquiring a Hamming distance average value between a phase deviation sequence corresponding to each group of analog phase sequences in the analog phase sequence set and a standard phase deviation sequence; and the third processing unit is used for judging each group of Hamming distance average values through a greedy algorithm, and if the judgment result meets a preset condition, taking the simulation phase sequence corresponding to the Hamming distance average value meeting the preset condition in the simulation phase sequence set as the target simulation phase sequence.
On the basis of the above embodiment, the optimization module 702 includes: and the first optimization subunit is used for adjusting and optimizing the cyclic prefix of the target simulation phase sequence to obtain a second target simulation phase sequence.
On the basis of the above embodiment, the optimization module 702 further includes: and the second optimization subunit is used for performing feedback adjustment algorithm processing on the second target simulation phase sequence to obtain a third target simulation phase sequence so as to obtain a mapping table between the ZigBee symbol and the simulation phase sequence.
The apparatus provided in the embodiment of the present invention is used for executing the above method embodiments, and for details of the process and the details, reference is made to the above embodiments, which are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a communication bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform the following method: acquiring a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment; optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence; and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: acquiring a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment; optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence; and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores server instructions, and the computer instructions cause a computer to execute the method for cross-protocol communication from a WiFi device to a ZigBee device, provided in the foregoing embodiment, for example, the method includes: acquiring a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment; optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence; and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A cross-protocol communication method from a WiFi device to a ZigBee device is characterized by comprising the following steps:
the method comprises the following steps of obtaining a target simulation phase sequence meeting the phase deviation requirement of ZigBee equipment:
the WiFi equipment acquires corresponding phase sequences from a plurality of phase sequences meeting ZigBee phase deviation change and simulates the phase sequences, wherein each phase sequence corresponds to a waveform; the WiFi equipment fills different contents in the payload part, so that the phase sequence of the payload is similar to the standard phase sequence corresponding to the ZigBee equipment, and the phase simulation is realized;
optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence, and the specific steps are as follows:
selecting a simulation phase sequence with simulation errors meeting preset conditions of the WiFi equipment from the plurality of simulation phase sequences through a greedy algorithm as an initial phase sequence; optimizing and adjusting a phase value of a preset position by analyzing the influence of the cyclic prefix on the ZigBee; after the cyclic prefix of the initial phase is adjusted, feeding back and adjusting a phase sequence according to a phase result simulated by the WiFi equipment through a feedback adjustment algorithm to obtain a simulated phase sequence corresponding to the simulation of the WiFi equipment; acquiring 16 analog phase sequences corresponding to WiFi equipment simulation, and simulating 16 symbols of a ZigBee signal according to the 16 analog phase sequences corresponding to the WiFi equipment simulation so as to construct a mapping table from the symbols to the phase sequences;
and carrying out analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
2. The method of claim 1, wherein the obtaining of the target analog phase sequence satisfying the ZigBee device phase offset requirement comprises:
obtaining an analog phase sequence set according to the phase deviation requirement of the ZigBee equipment;
obtaining a Hamming distance average value between a phase deviation sequence corresponding to each group of simulation phase sequences in the simulation phase sequence set and a standard phase deviation sequence;
and judging each group of Hamming distance average values through a greedy algorithm, and if the judgment result meets a preset condition, taking the simulation phase sequence corresponding to the Hamming distance average value meeting the preset condition in the simulation phase sequence set as the target simulation phase sequence.
3. The method of claim 2, wherein the optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence comprises:
and adjusting and optimizing the cyclic prefix of the target simulation phase sequence to obtain a second target simulation phase sequence.
4. The method according to claim 3, wherein after the adjusting and optimizing the cyclic prefix of the target simulation phase sequence to obtain a second target simulation phase sequence, the method comprises:
and performing feedback adjustment algorithm processing on the second target simulation phase sequence to obtain a third target simulation phase sequence so as to obtain a mapping table between the ZigBee symbol and the simulation phase sequence.
5. The method of claim 4, wherein the analog processing of the phase sequence of the WiFi signal according to the mapping table for the ZigBee device to decode the WiFi signal comprises:
and constructing a payload of the WiFi signal according to the mapping table so that the ZigBee device can decode the ZigBee signal phase sequence simulated by the payload.
6. The method of any one of claims 1 to 5, wherein the corresponding waveform of the target analog phase sequence is a square wave.
7. A cross-protocol communication device from a WiFi device to a ZigBee device is characterized by comprising:
the acquisition module is used for acquiring a target simulation phase sequence meeting the phase deviation requirement of the ZigBee equipment, and comprises the following specific steps:
the WiFi equipment acquires corresponding phase sequences from a plurality of phase sequences meeting ZigBee phase deviation change and simulates the phase sequences, wherein each phase sequence corresponds to a waveform; the WiFi equipment fills different contents in the payload part, so that the phase sequence of the payload is similar to the standard phase sequence corresponding to the ZigBee equipment, and the phase simulation is realized;
the optimization module is used for optimizing the target simulation phase sequence to obtain a mapping table between the ZigBee symbol and the simulation phase sequence, and the specific steps are as follows:
selecting a simulation phase sequence with simulation errors meeting preset conditions of the WiFi equipment from the plurality of simulation phase sequences through a greedy algorithm as an initial phase sequence; optimizing and adjusting a phase value of a preset position by analyzing the influence of the cyclic prefix on the ZigBee; after the cyclic prefix of the initial phase is adjusted, feeding back and adjusting a phase sequence according to a phase result simulated by the WiFi equipment through a feedback adjustment algorithm to obtain a simulated phase sequence corresponding to the simulation of the WiFi equipment; acquiring 16 analog phase sequences corresponding to WiFi equipment simulation, and simulating 16 symbols of a ZigBee signal according to the 16 analog phase sequences corresponding to the WiFi equipment simulation so as to construct a mapping table from the symbols to the phase sequences;
and the analog decoding module is used for performing analog processing on the phase sequence of the WiFi signal according to the mapping table so as to enable the ZigBee device to decode the WiFi signal.
8. The apparatus of claim 7, wherein the obtaining module comprises:
the first processing unit is used for obtaining an analog phase sequence set according to the phase deviation requirement of the ZigBee device;
the second processing unit is used for acquiring a Hamming distance average value between a phase deviation sequence corresponding to each group of analog phase sequences in the analog phase sequence set and a standard phase deviation sequence;
and the third processing unit is used for judging each group of Hamming distance average values through a greedy algorithm, and if the judgment result meets a preset condition, taking the simulation phase sequence corresponding to the Hamming distance average value meeting the preset condition in the simulation phase sequence set as the target simulation phase sequence.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201811420188.XA 2018-11-26 2018-11-26 Cross-protocol communication method and device from WiFi equipment to ZigBee equipment Active CN109600771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811420188.XA CN109600771B (en) 2018-11-26 2018-11-26 Cross-protocol communication method and device from WiFi equipment to ZigBee equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811420188.XA CN109600771B (en) 2018-11-26 2018-11-26 Cross-protocol communication method and device from WiFi equipment to ZigBee equipment

Publications (2)

Publication Number Publication Date
CN109600771A CN109600771A (en) 2019-04-09
CN109600771B true CN109600771B (en) 2020-09-08

Family

ID=65960448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811420188.XA Active CN109600771B (en) 2018-11-26 2018-11-26 Cross-protocol communication method and device from WiFi equipment to ZigBee equipment

Country Status (1)

Country Link
CN (1) CN109600771B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602131B (en) * 2019-09-24 2020-10-16 清华大学 Wi-Fi-to-BLE cross-protocol communication method and device
CN112637091B (en) * 2019-09-24 2022-02-08 清华大学 Link quality estimation method and device for cross-protocol communication
CN110855713B (en) * 2019-11-28 2020-10-30 深圳大学 Cross-protocol communication method and system from WiFi device to ZigBee device
CN111327379B (en) * 2020-02-03 2021-04-23 清华大学 Channel allocation method and device based on cross-protocol signals
CN113630209B (en) * 2020-05-08 2023-11-07 中国科学院大学 WiFi-to-Bluetooth Low Energy (BLE) cross-technology communication method based on narrowband decoding
CN112887944B (en) * 2021-01-07 2024-02-23 澳门科技大学 Physical layer cross-technology communication method and device
CN113630752B (en) * 2021-07-06 2023-09-15 西北工业大学 Bluetooth-ZigBee cross-technology communication method
CN113765929B (en) * 2021-09-13 2022-05-10 西北工业大学 ZigBee-Bluetooth communication implementation method
CN113794668B (en) * 2021-09-15 2023-03-10 西北工业大学 WiFi-ZigBee reliable data transmission method based on symbol-level chip combination mode

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6359937B1 (en) * 2000-03-03 2002-03-19 Lucent Technologies Inc. Method and apparatus for performing analog mode operations when transmitting audio and data in a wireless TDMA system
CN1478330A (en) * 2000-10-20 2004-02-25 诺泰尔网络有限公司 Multi-user detector for direct sequence-code division multiple access (DS/CDMA) channels
US8519847B2 (en) * 2005-11-24 2013-08-27 Nokia Corporation Methodology, module, terminal, and system enabling scheduled operation of a radio frequency identification (RFID) subsystem and a wireless communication subsystem
CN100539457C (en) * 2007-03-23 2009-09-09 清华大学 The double-folding capture searching method of long-period spread spectrum code
US8054779B2 (en) * 2007-05-08 2011-11-08 Microsoft Corporation Simultaneous wireless support in software defined radio
US8050368B2 (en) * 2007-05-29 2011-11-01 Texas Instruments Incorporated Nonlinear adaptive phase domain equalization for multilevel phase coded demodulators
US8489112B2 (en) * 2009-07-29 2013-07-16 Shopkick, Inc. Method and system for location-triggered rewards
JP5325183B2 (en) * 2010-08-31 2013-10-23 アズビル株式会社 Wireless communication system
US9085927B2 (en) * 2012-12-27 2015-07-21 Panasonic Intellectual Property Corporation Of America Information communication method
US9871865B2 (en) * 2013-07-11 2018-01-16 Neura, Inc. Physical environment profiling through internet of things integration platform
US9319862B2 (en) * 2014-03-06 2016-04-19 Qualcomm Incorporated Supplemental cross-technology discovery
CN104363290B (en) * 2014-11-19 2018-06-26 上海龙晶科技有限公司 The method across protocol networking is realized in host computer based on card format
US9632554B2 (en) * 2015-04-10 2017-04-25 Ossia Inc. Calculating power consumption in wireless power delivery systems
CN104918275B (en) * 2015-06-26 2018-07-20 大唐移动通信设备有限公司 A kind of RRU adaptive powers method of adjustment and device
CN106533623B (en) * 2016-11-17 2019-11-22 清华大学 Across protocol communication method and device
CN108347439B (en) * 2018-02-06 2020-07-28 清华大学 Time synchronization method and device from ZigBee device to WiFi device

Also Published As

Publication number Publication date
CN109600771A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN109600771B (en) Cross-protocol communication method and device from WiFi equipment to ZigBee equipment
CN110602131B (en) Wi-Fi-to-BLE cross-protocol communication method and device
US20220353155A1 (en) Personalized tailored air interface
Luvisotto et al. Physical layer design of high-performance wireless transmission for critical control applications
CN102934405B (en) Avoid the spectral line on pilot tones in IEEE 802.11ac by avoiding complete 1 R matrix
CN107534470A (en) Apparatus and method for generating and sending data frame
JP6509333B2 (en) Signal transmission method, signal reception method, and apparatus
CN105052102A (en) Systems and methods for phase rotating duplicate frames in wireless lan transmissions
PH12014502158B1 (en) Frame formats and timing parameters in sub-1 ghz networks
US10397037B2 (en) Information transmission method and apparatus in wireless local area network
US20180337760A1 (en) Pilot signal sending method, channel estimation method, and device
CN106664266B (en) Electronic device and method for low power operation
TW201625054A (en) Systems, methods, and devices for extending range of wireless networks
CN103491036B (en) Apparatus and method for radio base band processing
CN101938447A (en) Apparatus and method for transmitting preamble in a wireless communication system
JP2021530139A (en) Send and receive data symbols
CN113794668B (en) WiFi-ZigBee reliable data transmission method based on symbol-level chip combination mode
EP3437280B1 (en) Multi-modulation transmitter, receiver and methods for handling multi-modulation in wireless communication systems
US20190253226A1 (en) Quick acknowledgement reply method and apparatus
US8630364B2 (en) Termination techniques for multi-index continuous phase encoders for wireless networks
CN105897644A (en) Communication method capable of realizing pulse width and frequency simultaneous modulation
WO2022111220A1 (en) Data transmission method and apparatus, and system
CN111083781A (en) Transmission method and device of PDCCH (physical Downlink control channel) information
WO2023213225A1 (en) Data processing method and device, storage medium, and electronic device
CN114788319B (en) Personalized custom air vent

Legal Events

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