Cross-Protocol Communication Method, Apparatus, Computer Device, and Storage Medium

By acquiring and adapting wireless channels, and encoding and sending data packets, the spectrum competition and interference problems between IoT terminals are solved, and the efficiency of cross-protocol communication is improved.

CN112087286BActive Publication Date: 2025-06-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010986817.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2025-06-20
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

In complex IoT application scenarios, there are spectral resource competition and interference problems between terminals that support different wireless protocols, resulting in low cross-protocol communication efficiency.

Method used

By acquiring the wireless channel of the second protocol terminal, determining the target wireless channel adapted to the first protocol, and encoding information based on the communication data to be sent, the packet transmission method of the first protocol data packet is obtained. Then, the first protocol data packet is sent through the target wireless channel, so that the second terminal can determine the packet transmission method and decode the communication data.

Benefits of technology

Cross-protocol communication from the first terminal to at least one second terminal is realized, communication efficiency of cross-protocol communication is improved, and spectrum resource competition and interference problems are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112087286B_ABST
    Figure CN112087286B_ABST
Patent Text Reader

Abstract

The present application relates to a cross - protocol communication method, apparatus, computer device, and storage medium. The method includes: a first terminal of a first protocol acquires respective wireless channels of at least one second terminal of a second protocol; the wireless channels transmit second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner; determine a target wireless channel adapted to the first protocol within the wireless - channel coverage range of the second terminal; perform information encoding on communication data to be sent corresponding to the second terminal to obtain a packet - sending manner of a first - protocol data packet; the packet - sending manner carries the communication data; send the first - protocol data packet according to the packet - sending manner and through the target wireless channel, so that the second terminal determines the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet, and decodes the communication data according to the packet - sending manner of the first - protocol data packet. Using this method can improve the communication efficiency of cross - protocol communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technologies, and particularly to a cross-protocol communication method, apparatus, computer device, and storage medium. Background Art

[0002] With the development of Internet of Things technologies, wireless communication technologies are applied to various fields such as smart home, smart healthcare, smart transportation, RFID, and industrial telemetry and remote control. In some complex Internet of Things application scenarios, terminals supporting different wireless protocols are usually deployed. These terminals supporting different wireless protocols share the 2.4 GHz development frequency band, resulting in serious spectrum resource competition and interference problems.

[0003] To solve the spectrum resource competition and interference problems between terminals supporting different wireless protocols, cross-protocol communication technology (CTC) can be used to enable communication between terminals of different wireless protocols, such as cross-protocol communication from a ZigBee terminal to a WiFi terminal.

[0004] However, cross-protocol communication between terminals of different wireless protocols can only be one-to-one single-end communication, and the communication capabilities of the two terminals in cross-protocol communication are asymmetric, resulting in low communication efficiency of cross-protocol communication between terminals of different wireless protocols. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a cross-protocol communication method, apparatus, computer device, and storage medium that can improve the communication efficiency of cross-protocol communication.

[0006] A cross-protocol communication method is executed on a first terminal of a first protocol. The method includes:

[0007] Obtain the respective wireless channels of at least one second terminal of a second protocol; the wireless channels transmit second protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner;

[0008] Determine a target wireless channel adapted to the first protocol within the wireless channel coverage range of the second terminal;

[0009] Perform information encoding based on the communication data to be sent corresponding to the second terminal to obtain a packet sending manner of the first protocol data packet; the packet sending manner carries the communication data;

[0010] Send the first protocol data packet according to the packet sending manner and through the target wireless channel, so that the second terminal determines the packet sending manner of the first protocol data packet based on the received second protocol data packet, and decodes the communication data according to the packet sending manner of the first protocol data packet.

[0011] A cross - protocol communication device, the device comprising:

[0012] A wireless channel acquisition module, configured to acquire the respective wireless channels of at least one second terminal of a second protocol; the wireless channels transmit second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed transmission manner;

[0013] A target wireless channel determination module, configured to determine a target wireless channel adapted to a first protocol within the wireless channel coverage range of the second terminal;

[0014] An information encoding module, configured to perform information encoding on communication data to be sent corresponding to the second terminal to obtain a packet - sending manner of a first - protocol data packet; the packet - sending manner carries the communication data;

[0015] A data - packet sending module, configured to send the first - protocol data packet according to the packet - sending manner and through the target wireless channel, so that the second terminal determines the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet, and decodes the communication data according to the packet - sending manner of the first - protocol data packet.

[0016] A computer device, comprising a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the steps of the above - mentioned cross - protocol communication method are implemented.

[0017] A computer - readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above - mentioned cross - protocol communication method are implemented.

[0018] In the above - mentioned cross - protocol communication method, device, computer device, and storage medium, after a first terminal of a first protocol acquires the respective wireless channels of at least one second terminal of a second protocol, it determines a target wireless channel adapted to the first protocol within the wireless channel coverage range of the second terminal, where the wireless channels transmit second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed transmission manner, performs information encoding on communication data to be sent corresponding to the second terminal to obtain a packet - sending manner of a first - protocol data packet, the packet - sending manner carries the communication data, sends the first - protocol data packet according to the packet - sending manner and through the target wireless channel, the sending of the first - protocol data packet affects the channel state of the wireless channel corresponding to the target wireless channel, specifically, it causes the second - protocol data packets sent in the same period as the first - protocol data packet to change, so that the second terminal can determine the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet, and decodes the communication data according to the packet - sending manner of the first - protocol data packet, realizing cross - protocol communication from the first terminal to at least one second terminal, and improving the communication efficiency of cross - protocol communication.

[0019] A cross - protocol communication method, which is executed on a second terminal adopting a second protocol. The method includes:

[0020] Receiving, through the wireless channel of the second terminal, a second - protocol data packet sent by an auxiliary terminal of the second protocol in a fixed sending manner;

[0021] When a first terminal of a first protocol passes through a target wireless channel adapted to the first protocol and sends a first - protocol data packet in a packet - sending manner carrying the communication data corresponding to the second terminal, determining the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet; the target wireless channel is within the coverage range of the wireless channel of the second terminal;

[0022] Decoding the communication data according to the packet - sending manner of the first - protocol data packet.

[0023] A cross - protocol communication device, the device includes:

[0024] A data - packet receiving module, configured to receive, through the wireless channel of the second terminal, a second - protocol data packet sent by an auxiliary terminal of the second protocol in a fixed sending manner;

[0025] A packet - sending manner determining module, configured to, when a first terminal of a first protocol passes through a target wireless channel adapted to the first protocol and sends a first - protocol data packet in a packet - sending manner carrying the communication data corresponding to the second terminal, determine the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet; the target wireless channel is within the coverage range of the wireless channel of the second terminal;

[0026] A communication - data decoding module, configured to decode the communication data according to the packet - sending manner of the first - protocol data packet.

[0027] A computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above - mentioned cross - protocol communication method are implemented.

[0028] A computer - readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above - mentioned cross - protocol communication method are implemented.

[0029] In the above cross - protocol communication method, apparatus, computer device, and storage medium, the second terminal of the second protocol receives second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed transmission manner through the corresponding wireless channel; the target wireless channel is within the wireless channel coverage range of the second terminal. Therefore, sending the first - protocol data packets through the target wireless channel will affect the channel state of the wireless channel corresponding to the target wireless channel. When the first terminal of the first protocol sends the first - protocol data packets through the target wireless channel adapted to the first protocol and in the packet - sending manner carrying the communication data corresponding to the second terminal, the second - protocol data packets sent in the same period as the first - protocol data packets change. As a result, the second terminal can determine the packet - sending manner of the first - protocol data packets based on the received second - protocol data packets and decode the communication data according to the packet - sending manner of the first - protocol data packets, achieving cross - protocol communication from the first terminal to the second terminal and improving the communication efficiency of cross - protocol communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a diagram of the application environment of the cross - protocol communication method in an embodiment;

[0031] Figure 2 It is a schematic flowchart of the cross - protocol communication method in an embodiment;

[0032] Figure 3 It is a schematic diagram of a WiFi wireless channel in an embodiment;

[0033] Figure 4 It is a schematic diagram of the arrangement of second - protocol data packets in an embodiment;

[0034] Figure 5A It is a schematic diagram of a WiFi channel and a ZigBee channel in an embodiment;

[0035] Figure 5B It is a schematic diagram of a WiFi channel and a ZigBee channel in another embodiment;

[0036] Figure 6A It is a schematic diagram of a packet - sending manner in an embodiment;

[0037] Figure 6B It is a schematic diagram of a packet - sending manner in another embodiment;

[0038] Figure 7 It is a schematic diagram of channel state characteristics in an embodiment;

[0039] Figure 8 It is a schematic flowchart of the cross - protocol communication method in another embodiment;

[0040] Figure 9 It is a schematic flowchart of the cross - protocol communication method in another embodiment;

[0041] Figure 10 It is a schematic flowchart of a cross - protocol communication method in another embodiment;

[0042] Figure 11 It is a schematic diagram of CSI sequence framing in one embodiment;

[0043] Figure 12 It is a schematic diagram of an experimental environment in one embodiment;

[0044] Figure 13A It is a schematic diagram of the experimental results of bit error rate in one embodiment;

[0045] Figure 13B It is a schematic diagram of the experimental results of throughput in one embodiment;

[0046] Figure 14 It is a schematic diagram of the experimental results of the accuracy of parameter estimation in one embodiment;

[0047] Figure 15A It is a schematic diagram of CSI chirp in one embodiment;

[0048] Figure 15B It is a schematic diagram of the extracted CSI sequence in one embodiment;

[0049] Figure 15C It is a schematic diagram of the experimental results of bit error rate and throughput in one embodiment;

[0050] Figure 15D It is a schematic diagram of the experimental results of bit error rate and throughput in another embodiment;

[0051] Figure 16 It is a structural block diagram of a cross - protocol communication device in one embodiment;

[0052] Figure 17 It is a structural block diagram of a cross - protocol communication device in another embodiment;

[0053] Figure 18 It is an internal structure diagram of a computer device in one embodiment. Detailed implementation manners

[0054] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] The Internet of Things (abbreviated as IoT) refers to the use of various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners, and other devices and technologies to collect in real time any objects or processes that need to be monitored, connected, or interacted with. It collects various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, and location. Through various possible network accesses, it realizes the ubiquitous connection between things and things, and between things and people, and achieves the intelligent perception, identification, and management of items and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It enables all ordinary physical objects that can be independently addressed to form an interconnected network.

[0056] Cloud IoT aims to connect the information sensed by sensing devices and the received instructions in traditional IoT to the Internet, truly realizing networking, and achieving massive data storage and computing through cloud computing technology. Due to the characteristic of IoT that things are connected to each other and can sense the current operating status of each "object" in real time, a large amount of data information will be generated in this process. How to summarize this information and how to screen useful information from the massive information for decision-making support in subsequent development have become key issues affecting the development of IoT. Therefore, the IoT cloud based on cloud computing and cloud storage technologies has also become a powerful support for IoT technologies and applications.

[0057] The cross-protocol communication method provided by this application can be applied to, for example Figure 1In the application environment shown. Among them, the first terminal 102 supports the first protocol, the second terminal 104 supports the second protocol, and the auxiliary terminal 106 supports the second protocol. The target wireless channel of the first terminal 102 is under the wireless channel coverage of the second terminal 104, that is, there is an overlapping channel between the first terminal 102 and the second terminal 104. The second terminal 104 and the auxiliary terminal 106 communicate based on the wireless network of the second protocol. The first terminal 102 realizes communication with the second terminal 104 based on the auxiliary terminal 106. The number of the second terminals 104 is at least one, and the first terminal 104 can concurrently communicate with at least one second terminal 104. The cross-protocol communication method provided by the embodiments of the present application can be executed through the interaction of the first terminal 102, the second terminal 104, and the auxiliary terminal 106. Specifically, in one embodiment, the first terminal 102 of the first protocol obtains the respective wireless channels of at least one second terminal 104 of the second protocol; the wireless channels transmit the second protocol data packets sent by the auxiliary terminal of the second protocol in a fixed sending manner; determine the target wireless channel adapted to the first protocol under the wireless channel coverage of the second terminal 104; perform information encoding based on the communication data to be sent corresponding to the second terminal 104 to obtain the packet sending manner of the first protocol data packet; the packet sending manner carries the communication data; send the first protocol data packet according to the packet sending manner and through the target wireless channel, so that the second terminal 104 determines the packet sending manner of the first protocol data packet based on the received second protocol data packet, and decodes the communication data according to the packet sending manner of the first protocol data packet, thereby realizing communication between the first terminal 102 and the second terminal 104 that support different protocols. Among them, the first terminal 102, the second terminal 104, and the auxiliary terminal 106 can be but are not limited to various personal computers, laptop computers, smart phones, tablet computers, portable wearable devices, and other Internet of Things devices.

[0058] In one embodiment, as Figure 2 shown, a cross-protocol communication method is provided. Taking the first terminal in Figure 1 as an example, the method includes the following steps:

[0059] S202, obtain the respective wireless channels of at least one second terminal of the second protocol; the wireless channels transmit the second protocol data packets sent by the auxiliary terminal of the second protocol in a fixed sending manner.

[0060] Among them, the first protocol and the second protocol are different communication protocols, and direct communication between the first protocol and the second protocol is not possible. That is to say, a first terminal based on the first protocol and a second terminal based on the second protocol cannot communicate directly. The first protocol and the second protocol can be wireless communication protocols. For example, the first protocol is the ZigBee protocol, the second protocol is the WiFi protocol, the first terminal is a ZigBee terminal supporting the ZigBee protocol, and the second terminal is a WiFi terminal supporting the WiFi protocol. The auxiliary terminal is a terminal based on the second protocol. If the second terminal is a WiFi terminal, then the auxiliary terminal is a WiFi auxiliary terminal.

[0061] A wireless channel is an image metaphor for the path between the sender and the receiver in wireless communication. For radio waves, it is transmitted from the sender to the receiver, and there is no physical connection between them. Its propagation path may also not be unique. In order to vividly describe the operation between the sender and the receiver, we can imagine that there is an invisible path connection between the two, and this connection path is called a channel. In the embodiments of the present application, there is an overlapping part between the wireless channel of the second protocol and the wireless channel of the first protocol. The second protocol takes several non-overlapping wireless channels in its wireless channel as candidate wireless channels, and the second terminal takes one of the candidate wireless channels as its working wireless channel. As Figure 3 shown, the second protocol is the WiFi protocol, corresponding to 13 WiFi wireless channels. Select three non-overlapping WiFi wireless channels (WiFi channel 1, WiFi channel 6, and WiFi channel 11) as candidate wireless channels. Correspondingly, the wireless channel on which any WiFi terminal works can be any one of WiFi channel 1, WiFi channel 6, and WiFi channel 11.

[0062] The second protocol data packet is a data packet constructed by the auxiliary terminal based on the second protocol. The second protocol data packets sent by the auxiliary terminal can be the same, that is, the packet length, transmission power, etc. of each second protocol data packet are the same. If the auxiliary terminal is a WiFi auxiliary terminal, then the second protocol data packet is a WiFi protocol data packet, also called a WiFi data packet.

[0063] The sending mode refers to the sending mode of the data packet presented when the second protocol data packet is transmitted on the wireless channel. Refer to Figure 4 , Figure 4 which is the sending mode of the second protocol data packet sent by the auxiliary terminal in an embodiment. d represents the time interval between two adjacent second protocol data packets, called the packet interval.

[0064] In one embodiment, the first terminal may pre-store the wireless channels of at least one second terminal respectively. When the first terminal needs to send communication data to the second terminal, the first terminal directly obtains the wireless channels of each second terminal from the storage space.

[0065] In one embodiment, the second terminal may also pre-send data to the first terminal based on the cross-protocol communication method from the second terminal to the first terminal. The first terminal obtains the corresponding wireless channel of the second terminal based on the received data or the wireless channel of the first protocol used when receiving the data, and stores the wireless channel of the second terminal, so that when it is necessary to send communication data to the second terminal, the first terminal obtains the wireless channel of the second terminal.

[0066] Among them, the cross-protocol communication method from the second terminal to the first terminal may be different from the cross-protocol communication method from the first terminal to the second terminal in the embodiments of the present application. For example, if the first terminal is a ZigBee terminal and the second terminal is a WiFi terminal, the communication from the WiFi terminal to the ZigBee terminal may use a cross-protocol communication method based on RSSI (Received Signal Strength Indication).

[0067] S204. Determine a target wireless channel that adapts to the first protocol within the wireless channel coverage range of the second terminal.

[0068] Among them, there is an overlapping part between the wireless channels of the first protocol and the wireless channels of the second protocol, and the wireless channel of the second terminal covers at least one wireless channel of the first protocol. The target wireless channel is the wireless channel selected by the first terminal for realizing the communication from the first terminal to the second terminal.

[0069] In one embodiment, after obtaining the wireless channel of the second terminal, the first terminal determines all the wireless channels that adapt to the first protocol within the wireless channel coverage range of the second terminal based on the wireless channel of the second terminal, and selects at least one wireless channel from all the determined wireless channels of the first protocol as the target wireless channel.

[0070] Illustrate by way of example, such as Figure 5A shown, the first protocol is the ZigBee protocol and the second protocol is the WiFi protocol. Figure 5A shows the overlapping distribution of 16 ZigBee channels of the ZigBee protocol and 13 WiFi channels of the WiFi protocol, that is, 13 WiFi channels of the WiFi protocol cover 16 ZigBee channels (channel numbers 11 to 26) of the ZigBee protocol. Among them, refer to Figure 5B, WiFi channel 1 covers the ZigBee channels with channel numbers 11 to 14, WiFi channel 6 covers the ZigBee channels with channel numbers 16 to 19, and WiFi channel 11 covers the ZigBee channels with channel numbers 21 to 24. When the wireless channel of the WiFi terminal obtained by the ZigBee terminal is WiFi channel 1, the ZigBee terminal can determine at least one ZigBee channel among channel numbers 11 to 14 as the target wireless channel; when the wireless channel of the WiFi terminal obtained by the ZigBee terminal is WiFi channel 6, the ZigBee terminal can determine at least one ZigBee channel among channel numbers 16 to 19 as the target wireless channel; when the wireless channel of the WiFi terminal obtained by the ZigBee terminal is WiFi channel 11, the ZigBee terminal can determine at least one ZigBee channel among channel numbers 21 to 24 as the target wireless channel.

[0071] S206, perform information encoding based on the communication data to be sent corresponding to the second terminal to obtain the packet sending mode of the first protocol data packet; the packet sending mode carries the communication data.

[0072] Among them, the first protocol data packet is a data packet constructed by the first terminal based on the first protocol, and each first protocol data packet can be the same, that is, the packet length and transmission power of each first protocol data packet are the same. If the first terminal is a ZigBee terminal, the first protocol data packet is a ZigBee protocol data packet, also known as a ZigBee data packet.

[0073] When sending the first protocol data packet through the target wireless channel, the first protocol data packet will affect the channel state (Channel State Information, CSI) of the wireless channel corresponding to the target wireless channel. Specifically, it will cause the second protocol data packet sent in the same period as the first protocol data packet to change. As a result, the second terminal determines the change situation of the channel state based on the change of the received second protocol data packet, and then determines the sending situation of the first protocol data packet according to the change situation of the channel state. Therefore, by controlling the sending situation of the first protocol data packet on the target wireless channel (that is, determining the packet sending mode of the first protocol data packet), the communication data can be transmitted from the first terminal to the second terminal, realizing the communication from the first terminal to the second terminal.

[0074] In one embodiment, the packet sending manner of the first protocol packet is related to the information encoding performed on the communication data to be sent. The first terminal encodes the communication data to be sent based on the adopted transmission manner to obtain the packet sending manner of the first protocol packet. Among them, the adopted transmission manner includes fixed-frequency transmission or frequency-hopping transmission. If the communication data to be sent is encoded by using the fixed-frequency transmission manner, the information encoding of the communication data to be sent is realized based on a target wireless channel corresponding to the second terminal by means of the presence or absence of the first protocol packet, and the packet sending manner of the first protocol packet is obtained. If the communication data to be sent is encoded by using the frequency-hopping transmission manner, the information encoding of the communication data to be sent is realized based on at least two target wireless channels corresponding to the second terminal by means of the relative sending order of the first packet corresponding to each target wireless channel, and the packet sending manner of the first protocol packet is obtained. Thus, the packet sending manner of the first protocol packet carries the corresponding communication data to be sent.

[0075] S208. Send the first protocol packet according to the packet sending manner and through the target wireless channel, so that the second terminal determines the packet sending manner of the first protocol packet based on the received second protocol packet and decodes the communication data according to the packet sending manner of the first protocol packet.

[0076] In one embodiment, after the first terminal determines the packet sending manner of the first protocol packet corresponding to the communication data to be sent, it sends the first protocol packet according to the determined packet sending manner and through the target wireless channel, so that the second terminal determines the packet sending manner of the first protocol packet based on the change situation of the received second protocol packet and decodes the communication data according to the packet sending manner of the first protocol packet.

[0077] In the application scenario of fixed-frequency transmission, the first terminal can encode the communication data to be sent based on "symbol 1" and "symbol 0", such as Figure 6A FIG. shows the packet sending manners corresponding to the first terminal (sender), the auxiliary terminal (sender), and the second terminal (receiver) in one embodiment. Among them, the presence or absence of the first protocol packet in the packet sending manner corresponding to the first terminal respectively corresponds to the symbols "symbol 1" and "symbol 0". When the first protocol packet is transmitted through the target wireless channel, the first protocol packet will affect the second protocol packet sent by the auxiliary terminal transmitted on the target wireless channel in the same period. The second terminal obtains the sequence of "symbol 1" and "symbol 0" based on whether the received second protocol packet changes. The second terminal decodes the obtained sequence of "symbol 1" and "symbol 0" to obtain the communication data.

[0078] In the application scenario of frequency hopping transmission, the first terminal can perform information encoding on the communication data to be sent based on a number of symbols. For example, the communication data to be sent is encoded with four symbols: "symbol 0", "symbol 1", "symbol 2", and "symbol 3". As Figure 6B shows the packet sending method of the first protocol data packet corresponding to "symbol 0" in an embodiment, where the packet sending method corresponds to four target radio channels covered by the radio channel of a second terminal. Figure 6B The vertical axis in it represents the target radio channels, such as C0, C1, C2, and C3 shown in the figure, and the horizontal axis represents time, which characterizes the order of sending the first protocol data packet in different target radio channels. The initial channel corresponding to "symbol 0" is C0. When the first terminal sends "symbol 0", the first protocol data packet is sent on C0, C1, C2, and C3 in sequence according to this packet sending method. The first protocol data packets sent on C0, C1, C2, and C3 will affect the second protocol data packets sent by the replicated segments transmitted in the target radio channels during the same period. The second terminal obtains the "symbol 0" based on whether the second protocol data packet received through the subcarrier of the second terminal corresponding to the target radio channel changes. Similarly, when the first terminal sends "symbol 1", the first protocol data packet is sent on the corresponding target channels in sequence according to the packet sending method corresponding to "symbol 1". When the first terminal sends "symbol 2", the first protocol data packet is sent on the corresponding target channels in sequence according to the packet sending method corresponding to "symbol 2". When the first terminal sends "symbol 3", the first protocol data packet is sent on the corresponding target channels in sequence according to the packet sending method corresponding to "symbol 3". The second terminal obtains the packet sending method of the first protocol data packet based on whether the second protocol data packet received through the subcarrier of the second terminal corresponding to the target radio channel changes, so as to obtain the sequence of "symbol 0", "symbol 1", "symbol 2", and "symbol 3". The second terminal decodes the obtained "symbol 0", "symbol 1", "symbol 2", and "symbol 3" to obtain the communication data.

[0079] In the above embodiments, after the first terminal of the first protocol acquires the respective wireless channels of at least one second terminal of the second protocol, it determines a target wireless channel adapted to the first protocol under the wireless channel coverage of the second terminal. The wireless channel transmits second protocol data packets sent by an auxiliary terminal of the second protocol in a fixed transmission manner. Information encoding is performed based on the communication data to be sent corresponding to the second terminal to obtain a packet transmission manner of the first protocol data packet. The packet transmission manner carries the communication data. According to the packet transmission manner, the first protocol data packet is sent through the target wireless channel. The transmission of the first protocol data packet affects the channel state of the wireless channel corresponding to the target wireless channel. Specifically, it causes the second protocol data packets sent in the same period as the first protocol data packet to change. Thus, the second terminal can determine the packet transmission manner of the first protocol data packet based on the received second protocol data packet and decode the communication data according to the packet transmission manner of the first protocol data packet, realizing cross-protocol communication from the first terminal to at least one second terminal and improving the communication efficiency of cross-protocol communication.

[0080] In one embodiment, when there are more than one second terminal, after the first terminal acquires the respective wireless channels of the second terminals, based on the wireless channels of the second terminals, the second terminals are grouped to obtain at least one second terminal group, and the second terminal groups are sorted to obtain a grouping order. Based on the grouping order, the first protocol data packet is sent through the target wireless channel in sequence according to the packet transmission manner corresponding to each second terminal group.

[0081] Among them, the wireless channels of the second terminals in each second terminal group do not cover each other, and there are second terminals with the same wireless channel in different second terminal groups.

[0082] For example, if the second terminal 1 and the second terminal 2 correspond to the wireless channel 1, the second terminal 3 and the second terminal 4 correspond to the wireless channel 2, and the second terminal 5 and the second terminal 6 correspond to the wireless channel 3, then the second terminal 1, the second terminal 3, and the second terminal 5 can be divided into the second terminal group A, and the second terminal 2, the second terminal 4, and the second terminal 6 can be divided into the second terminal group B to obtain the second terminal group A and the first terminal group B, and the second terminal group A and the first terminal group B are sorted.

[0083] In one embodiment, the first terminal sequentially sends the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to each second terminal group based on the packet sequence. Specifically, it may be based on the packet sequence, adopting a polling mechanism, and polling to send the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to each second terminal group. Among them, the process of polling to send the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to each second terminal group is: polling to send the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to the symbol currently to be sent by each second terminal group, so as to realize the transmission of the corresponding symbol.

[0084] For example, the packet sequence of the second terminal group A and the first terminal group B is "second terminal group A, second terminal group B". Based on the packet sequence, the first terminal sends the first protocol data packet through the target wireless channel according to the corresponding packet sending manner of the second terminal group A, and completes the sending of the first symbol corresponding to each communication data in the second terminal group A. Then, it sends the first protocol data packet through the target wireless channel according to the corresponding packet sending manner of the second terminal group B, and completes the sending of the first symbol corresponding to each communication data in the second terminal group B. Then, it sends the first protocol data packet through the target wireless channel according to the corresponding packet sending manner of the second terminal group A, and completes the sending of the second symbol corresponding to each communication data in the second terminal group A. Then, it sends the first protocol data packet through the target wireless channel according to the corresponding packet sending manner of the second terminal group B, and completes the sending of the second symbol corresponding to each communication data in the second terminal group B, and so on, until the sending of the symbols corresponding to each communication data in the second terminal group A and the second terminal group B is completed.

[0085] In the above embodiment, the first terminal groups the second terminals based on the wireless channels of the second terminals to obtain at least one second terminal group, and the wireless channels of the second terminals in each second terminal group do not overlap with each other. Sort the second terminal groups, and based on the packet sequence, sequentially send the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to each second terminal group, so that a first terminal can communicate with multiple second terminals at the same time, improving the communication efficiency of cross-protocol communication.

[0086] In one embodiment, when the first terminal groups the second terminals based on the wireless channels of the second terminals to obtain at least one second terminal group, where there may be partial overlap in the wireless channels of the second terminals within the same group. For this grouping method, the communication data corresponding to the second terminals in this group needs to meet the information volume requirement, so as to ensure that the second terminals receive more affected second protocol data packets to correctly decode the communication data.

[0087] In one embodiment, for each second terminal group, based on the communication data to be sent corresponding to the second terminals in the second terminal group, a channel state feature segment corresponding to the target wireless channel is constructed, and based on the channel state features corresponding to each second terminal in the channel state feature segment, the packet sending mode of the first protocol data packet corresponding to the second terminal group is determined. Wherein, the channel state feature segment is composed of the channel state features corresponding to the respective second terminals in the second terminal group, and the channel state feature corresponding to the second terminal is the chip position distribution corresponding to each symbol in the encoded sequence obtained after the first terminal encodes the data to be sent, specifically, the distribution of the chips relative to the target wireless channel.

[0088] In the embodiments of the present application, each chip corresponds to a first protocol data packet respectively. Therefore, after constructing the channel state feature segment corresponding to the target wireless channel, based on the channel state features corresponding to each second terminal in the channel state feature segment, the packet sending mode of the first protocol data packet corresponding to the second terminal group can be determined, that is, the distribution of the chips in each channel state feature is consistent with the packet sending mode of the first protocol data packet.

[0089] In one embodiment, when the communication data to be sent is encoded by using a frequency hopping transmission method, the channel state feature corresponding to the second terminal may be a chirp channel state feature (CSI chirp), and correspondingly, the channel state feature segment constructed by the chirp channel state feature is a chirp channel state feature segment (CSI chirp segment). Wherein, the chirp channel state feature has the following characteristics: corresponding to the target wireless channel, each chip is linearly distributed.

[0090] Combined with the application scenario of ZigBee terminal to WiFi terminal communication, the chirp channel state feature is described. The WiFi terminal group includes WiFi terminal 1, WiFi terminal 2, and WiFi terminal 3. Among them, WiFi terminal 1 corresponds to Figure 5B the shown WiFi channel 1, WiFi terminal 2 corresponds to Figure 5B the shown WiFi channel 6, WiFi terminal 3 corresponds to Figure 5B the shown WiFi channel 6, as Figure 7As shown, the first terminal can construct different channel state characteristics on the ZigBee channels corresponding to channel numbers 11 to 14 of WiFi channel 1 (corresponding to channels C0 to C3 in the figure). Different channel state characteristics correspond to different symbols. For example, "symbol 0", "symbol 1", "symbol 2", and "symbol 3" respectively correspond to different channel state characteristics. Among them, the initial channel corresponding to symbol 0 is C0, and the distribution order of chips is C0, C1, C2, and C3; the initial channel corresponding to symbol 1 is C1, and the distribution order of chips is C1, C2, C3, and C0; the initial channel corresponding to symbol 2 is C2, and the distribution order of chips is C2, C3, C0, and C1; the initial channel corresponding to symbol 3 is C3, and the distribution order of chips is C3, C0, C1, and C2. For the above four channel state characteristics, the distribution of chips on the target wireless channel is linear. The channel state characteristics with this property can be called CSI chirp.

[0091] Although Figure 7 only shows the construction of different CSI chirps on the ZigBee channels corresponding to channel numbers 11 to 14 of WiFi channel 1, it can be understood that the first terminal can adopt a similar Figure 7 shown method to construct different CSI chirps on the ZigBee channels corresponding to channel numbers 16 to 19 of WiFi channel 6, and construct different CSI chirps on the ZigBee channels corresponding to channel numbers 22 to 24 of WiFi channel 11, and arrange the channel state characteristics of each constructed WiFi terminal in a certain order to obtain a chirped channel state characteristic segment, that is, a CSI chirp segment. For each CSI chirp segment, the sorting of the CSI chirps it contains is the same. For example, each CSI chirp in each CSI chirp segment is arranged in the order of "CSI chirp1 (corresponding to WiFi terminal 1), CSI chirp2 (corresponding to WiFi terminal 2), and CSI chirp3 (corresponding to WiFi terminal 3)".

[0092] In one embodiment, for each second terminal in the same second terminal group, the first terminal constructs a channel state feature segment corresponding to the target wireless channel based on the communication data to be sent corresponding to the second terminal, and after obtaining the packet sending mode of the first protocol packet corresponding to the second terminal group, the first protocol packet is sent through the target wireless channel according to this packet sending mode. The specific process includes: based on the arrangement order of the channel state features corresponding to the second terminal in the corresponding channel state feature segment, the first protocol packet is sent through the target wireless channel in sequence according to the packet sending mode corresponding to the channel state feature, so as to realize the sending of the symbols corresponding to the channel state features in the channel state feature segment. The arrangement order of the channel state features corresponding to the second terminal in the corresponding channel state feature segment is the arrangement order of this second terminal in its second terminal group.

[0093] In the above embodiment, for each second terminal group, the first terminal constructs a channel state feature segment corresponding to the target wireless channel based on the communication data to be sent corresponding to the second terminal in the second terminal group, determines the packet sending mode of the first protocol packet corresponding to the second terminal group based on the channel state features corresponding to each second terminal in the channel state feature segment, and sends the first protocol packet through the target wireless channel according to this packet sending mode, realizing the communication between one first terminal and multiple second terminals with different wireless channels at the same time, and improving the communication efficiency of cross-protocol communication. At the same time, when using chirp channel state features, the communication quality between the first terminal and the second terminal can be further improved, and the communication distance between the first terminal and the second terminal can be increased.

[0094] In one embodiment, the second terminal determines the packet sending mode of the first protocol packet based on the received second protocol packet and decodes the communication data according to the packet sending mode of the first protocol packet, including: the second terminal determines the channel state measurement value of the target wireless channel, which can also be called the CSI measurement sequence, based on the received second protocol packet, determines the packet sending mode of the first protocol packet according to the channel state measurement value, obtains the corresponding channel state feature according to the packet sending mode, and decodes the communication data according to the obtained channel state feature. Among them, the channel state measurement value is the channel state (CSI) of the target wireless channel collected by the second terminal based on the second protocol packet when receiving the second protocol packet.

[0095] In one embodiment, each target wireless channel corresponds to multiple subcarriers of the wireless channel of the second terminal. The second terminal determines the channel state measurement values corresponding to the subcarriers based on the second protocol data packets received on the subcarriers corresponding to the target wireless channel, determines the packet sending manner of the first protocol data packet according to the channel state measurement values, obtains the corresponding channel state characteristics according to the packet sending manner, determines the symbols corresponding to the channel state characteristics, obtains a symbol sequence, and decodes the communication data from the symbol sequence.

[0096] In the above embodiment, after the first terminal sends the first protocol data packet through the target wireless channel according to the packet sending manner of the first protocol data packet, the second terminal determines the channel state measurement value of the target wireless channel based on the received second protocol data packet, determines the packet sending manner of the first protocol data packet according to the channel state measurement value, obtains the corresponding channel state characteristics according to the packet sending manner, and decodes the communication data according to the obtained channel state characteristics, thereby realizing communication between the first terminal and the second terminal.

[0097] In one embodiment, after the first terminal sequentially sends the first protocol data packet through the target wireless channel according to the packet sending manner corresponding to each second terminal group based on the packet sequence, it can also determine the listening sequence of each target wireless channel based on the packet sequence and the distribution sequence (i.e., the arrangement sequence) of the channel state characteristics in the channel state characteristic segment, and based on the listening sequence, sequentially listen on the target wireless channel for a preset duration to receive the response information returned by the corresponding second terminal. Among them, the response message (ACK) is a signal transmitted during the communication process and is used to identify the receipt of the confirmation message.

[0098] Specifically, for different second terminal groups, the first terminal sequentially listens on the target wireless channel for the response information returned by different second terminal groups based on the packet sequence of the second terminal group. For the second terminal in the second terminal group, the first terminal sequentially listens on the target wireless channel corresponding to each second terminal for the response information returned by the second terminal based on the arrangement sequence of the channel state characteristics corresponding to the second terminal in the channel state characteristic segment. Among them, the listening duration is related to the transmission time of the symbol corresponding to the channel state characteristic and the transmission time of the response information.

[0099] In each embodiment of the present application, the second terminal can return a response message to the first terminal based on a cross - protocol communication method of RSSI (Received Signal Strength Indication).

[0100] In one embodiment, the second terminal may return a second protocol response data packet based on the second protocol to the first terminal, and use the presence or absence of the second protocol response data packet to represent "symbol 1" and "symbol 0". The first terminal measures the second protocol response data packet through RSSI, thereby obtaining "symbol 1" and "symbol 0", that is, obtaining the response message returned by the second terminal.

[0101] Specifically, the first terminal obtains an RSSI measurement value through RSSI measurement. The RSSI measurement value may be one of an average value, a peak value, and a peak-to-average ratio. When the RSSI measurement value is greater than a preset measurement threshold, the first terminal determines that a second protocol response data packet is detected, that is, the first terminal has received the response message returned by the second terminal.

[0102] In the above embodiment, the first terminal determines the listening order of each target wireless channel according to the packet order and the distribution order of each channel state feature in the channel state feature segment. Based on the listening order, it listens on the target wireless channels in sequence for a preset duration to receive the corresponding response information returned by the second terminal, ensuring that after the first terminal concurrently transmits communication data to multiple second terminals, it can receive the response information returned by each second terminal, thereby ensuring the reliability of the concurrent communication between the first terminal and multiple second terminals.

[0103] In one embodiment, before the first terminal transmits communication data to multiple second terminals, it performs information encoding based on the previous sequence of the communication data to be sent, obtains the packet sending method of the first protocol previous packet. The packet sending method of the first protocol previous packet carries the previous sequence. According to the packet sending method of the first protocol previous packet, the first protocol previous packet is sent through the target wireless channel, so that the second terminal determines the packet sending method of the first protocol previous packet based on the received second protocol data packet, and decodes the previous sequence according to the packet sending method of the first protocol previous packet.

[0104] Among them, the previous sequence may be a group of symbol sequences, such as "0000", "1111", etc. The first protocol previous packet may be the same as the first protocol data packet. The previous sequence is used to instruct the second terminal to decode the communication data based on the received second protocol data packet, and to instruct the second terminal to return response information.

[0105] Specifically, the packet sending mode of the first protocol preamble data packet is related to the preamble sequence of the communication data to be sent. For each symbol in the preamble sequence, the first terminal determines the packet sending mode of the first protocol preamble data packet corresponding to the symbol, so as to obtain the packet sending mode of the first protocol preamble data packet corresponding to the preamble sequence. The first terminal sends the first protocol preamble data packet according to the packet sending mode of the first protocol preamble data packet and through the target wireless channel. The second terminal determines the packet sending mode of the first protocol preamble data packet based on the received second protocol data packet sent contemporaneously with the first protocol preamble data packet, and decodes the preamble sequence according to the packet sending mode of the first protocol preamble data packet. After obtaining the preamble sequence, the second terminal can determine the reception time interval based on the time interval between each symbol in the received preamble sequence, and based on the reception time interval, receive the second protocol data packet carrying the communication data, where the second protocol data packet carrying the communication data refers to the second protocol data packet sent contemporaneously with the first protocol data packet sent according to the packet sending mode carrying the communication data.

[0106] In one embodiment, after the second terminal determines the reception time interval based on the preamble sequence, it determines the response time interval for returning the response message based on the reception time interval, so that after receiving the first protocol data packet sent by the first terminal through the target wireless channel adapted to the first protocol and according to the packet sending mode carrying the communication data corresponding to the second terminal, it returns a response message to the first terminal according to the response time interval.

[0107] In one embodiment, before the first terminal transmits communication data to multiple second terminals, it can also send a probe packet to the second terminal, so that the second terminal can achieve synchronization with the first terminal based on the received probe packet, and the second terminal determines the reception time interval based on the received probe packet.

[0108] In the above embodiment, before the first terminal transmits communication data to multiple second terminals, it encodes information based on the preamble sequence of the communication data to be sent, obtains the packet sending mode of the first protocol preamble data packet, and the packet sending mode of the first protocol preamble data packet carries the preamble sequence. It sends the first protocol preamble data packet according to the packet sending mode of the first protocol preamble data packet and through the target wireless channel, so that the second terminal determines the packet sending mode of the first protocol preamble data packet based on the received second protocol data packet, and decodes the preamble sequence according to the packet sending mode of the first protocol preamble data packet. Thus, the second terminal can correctly decode the second protocol data packet carrying the communication data received after the preamble sequence based on the preamble sequence, obtain the communication data transmitted by the first terminal, and return a response message, ensuring the reliability of the communication from the first terminal to at least one second terminal and improving the reliability of cross-protocol communication.

[0109] In one embodiment, the first terminal encodes information for the communication data to be sent corresponding to the second terminal, and based on this information encoding, obtaining the packet sending method of the first protocol data packet includes: obtaining the communication distance between the second terminal and the first terminal; when the communication distance is greater than the distance threshold, based on the communication data to be sent corresponding to the second terminal, using the frequency hopping transmission method to perform information encoding to obtain the packet sending method of the first protocol data packet; when the communication distance is less than or equal to the distance threshold, based on the communication data to be sent corresponding to the second terminal, using the fixed frequency transmission method to perform information encoding to obtain the packet sending method of the first protocol data packet. Wherein, the communication distance refers to the distance between the first terminal and the second terminal.

[0110] In the above embodiment, the first terminal determines the information encoding of the communication data to be sent based on the communication distance between the second terminal and the first terminal, so as to use a suitable transmission method to realize the communication from the first terminal to the second terminal. When the communication distance is greater than the distance threshold, using the frequency hopping transmission method to perform information encoding can realize the communication from the first terminal to the second terminal at a long distance. When the communication distance is less than the threshold, using the fixed frequency transmission can improve the encoding rate from the first terminal to the second terminal, reasonably utilize the channel resources, and improve the communication efficiency of cross-protocol communication from the first terminal to the second terminal.

[0111] In one embodiment, as Figure 8 shown, a cross-protocol communication method is further provided. Taking the first terminal in Figure 1 as an example for illustration, the method includes the following steps:

[0112] S802, obtain the respective wireless channels of at least one second terminal of the second protocol; the second protocol data packets sent by the auxiliary terminals of the second protocol are transmitted on the wireless channels according to a fixed sending method.

[0113] S804, group the second terminals based on the wireless channels of the second terminals to obtain at least one second terminal group, and the wireless channels of the second terminals in each second terminal group do not overlap with each other.

[0114] S806, sort the second terminal groups to obtain a grouping order.

[0115] S808, determine the target wireless channel adapted to the first protocol under the coverage range of the wireless channel of the second terminal.

[0116] S810. For each second terminal group, perform information encoding based on the previous item sequence of the communication data to be sent corresponding to the second terminals in the second terminal group, and obtain the packet sending method of the first protocol previous item data packet corresponding to the second terminal group; the packet sending method of the first protocol previous item data packet carries the previous item sequence; the previous item sequence is used to instruct the second terminal to decode the communication data based on the received second protocol data packet, and to instruct the second terminal to return an acknowledgment message.

[0117] S812. For each second terminal group, construct a channel state feature segment corresponding to the target radio channel based on the communication data to be sent corresponding to the second terminals in the second terminal group.

[0118] S814. Based on the channel state features corresponding to each second terminal in the channel state feature segment, determine the packet sending method of the first protocol data packet corresponding to the second terminal group.

[0119] S816. Based on the packet sequence, successively send the first protocol previous item data packets according to the packet sending methods of the first protocol previous item data packets corresponding to each second terminal group through the target radio channel, so that the second terminal determines the packet sending method of the first protocol previous item data packet based on the received second protocol data packet, and decodes the previous item sequence according to the packet sending method of the first protocol previous item data packet.

[0120] S818. Based on the packet sequence, successively send the first protocol data packets according to the packet sending methods corresponding to each second terminal group through the target radio channel, so that the second terminal determines the channel state measurement value of the target radio channel based on the received second protocol data packet; determine the packet sending method of the first protocol data packet according to the channel state measurement value, obtain the corresponding channel state feature according to the packet sending method, and decode the communication data according to the obtained channel state feature.

[0121] S820. According to the packet sequence and the distribution sequence of the channel state features in the channel state feature segment, determine the listening sequence of each target radio channel.

[0122] S822. Based on the listening sequence, successively listen on the target radio channels for a preset duration to receive the acknowledgment messages returned by the corresponding second terminals.

[0123] In one embodiment, as Figure 9 shown, there is also provided a cross-protocol communication method. Taking the method applied to the second terminal in Figure 1 as an example, the method includes the following steps:

[0124] S902. Receive the second protocol data packets sent by the auxiliary terminals of the second protocol in a fixed sending manner through the radio channel of the second terminal.

[0125] S904. After the first terminal of the first protocol transmits the first protocol data packet by adapting to the target radio channel of the first protocol and in accordance with the packet transmission mode carrying the communication data corresponding to the second terminal, determine the packet transmission mode of the first protocol data packet based on the received second protocol data packet; the target radio channel is within the radio channel coverage range of the second terminal.

[0126] Among them, the second protocol data packet used to determine the packet transmission mode of the first protocol data packet is the second protocol data packet transmitted during the same period as the first protocol data packet transmitted in accordance with the packet transmission mode of the communication data.

[0127] In one embodiment, the second terminal detects the channel state information (CSI) based on the received second protocol data packet, obtains the channel state measurement value of the radio channel, which can also be referred to as the CSI measurement sequence, and determines the packet transmission mode of the first protocol data packet based on the channel state measurement value.

[0128] Specifically, the packet header of the second protocol data packet contains a long training symbol (LTF). When the second protocol data packet is transmitted over the radio channel, if it is affected by the first protocol data packet, the long training symbol in the packet header of the first protocol data packet will change. The second terminal detects the channel state information based on the long training symbol in the received second protocol data packet header and obtains the channel state measurement value of the radio channel.

[0129] In one embodiment, the second terminal determines the channel state measurement value of the radio channel according to the second protocol data packet, obtains the channel state template value of the radio channel when only the second protocol data packet is transmitted, calculates the difference between the channel state measurement value corresponding to each second protocol data packet and the channel state template value, and determines the packet transmission mode of the first protocol data packet according to the differences corresponding to each second protocol data packet. Among them, the difference between the channel state measurement value and the channel state template value is also referred to as the channel state change amount, and the channel state template value is the channel state measurement value pre-stored by the second terminal corresponding to when only the second protocol data packet is transmitted, which can specifically be the average value of the channel state measurement values corresponding to when only the second protocol data packet is transmitted.

[0130] In one embodiment, the second terminal receives the second protocol data packet when only the second protocol data packet is transmitted over the radio channel, determines the channel state measurement value of the radio channel based on the received second protocol data packet, which can also be referred to as the CSI measurement sequence, and determines the average value of the obtained channel state quantity values as the channel state template value of the radio channel.

[0131] In one embodiment, after obtaining the difference (i.e., the channel state change amount) between the channel state measurement value and the channel state template value corresponding to the second protocol data packet, for each second protocol data packet, the second terminal respectively determines the change amount peak value and the change amount average value of the corresponding channel state change amount. When the change amount average value is greater than the average value threshold and the change amount peak value is greater than the peak value threshold, it is determined that there is a first protocol data packet at the position corresponding to the second protocol data packet; otherwise, it is determined that the second protocol data packet corresponding to the channel state change amount is not affected by the first protocol data packet, that is, it is determined that there is no first protocol data packet at the position corresponding to the second protocol data packet, so as to determine the packet sending mode of the first protocol data packet based on the differences corresponding to each second protocol data packet.

[0132] S906, decode the communication data according to the packet sending mode of the first protocol data packet.

[0133] Specifically, after obtaining the packet sending mode of the first protocol data packet, the second terminal determines the obtained symbol sequence according to the packet sending mode, and decodes the communication data based on the obtained symbol sequence.

[0134] In one embodiment, after obtaining the packet sending mode of the first protocol data packet, the second terminal determines the decoding mode according to the packet sending mode. If the packet sending mode of the first protocol data packet corresponds to a target wireless channel, that is, fixed-frequency transmission, the second terminal obtains the symbol sequence transmitted by the first terminal based on the presence or absence of the first protocol data packet. For example, a symbol sequence including "symbol 1" and "symbol 0" is obtained, and the symbol sequence is decoded to obtain the communication data transmitted by the first terminal.

[0135] In one embodiment, after obtaining the packet sending mode of the first protocol data packet, the second terminal determines the decoding mode according to the packet sending mode. If the packet sending mode of the first protocol data packet corresponds to at least two target wireless channels, that is, frequency hopping transmission, the second terminal obtains the symbol sequence transmitted by the first terminal based on the packet sending mode of the first protocol data packet, and decodes the obtained symbol sequence to obtain the communication data transmitted by the first terminal.

[0136] In the above embodiments, each second terminal of the second protocol receives, through its respective wireless channel, the second protocol data packets sent by the auxiliary terminal of the second protocol in a fixed sending manner; the target wireless channel is within the wireless channel coverage range of the second terminal. Therefore, sending the first protocol data packets through the target wireless channel will affect the channel state of the wireless channel corresponding to the target wireless channel. After the first terminal of the first protocol adapts to the target wireless channel of the first protocol and sends the first protocol data packets in the packet sending manner carrying the communication data corresponding to the second terminal, the second protocol data packets sent in the same period as the first protocol data packets change. As a result, the second terminal can determine the packet sending manner of the first protocol data packets based on the received second protocol data packets, and decode the communication data according to the packet sending manner of the first protocol data packets, realizing cross-protocol communication from the first terminal to the second terminal and improving the communication efficiency of cross-protocol communication.

[0137] In one embodiment, the second protocol data packets for determining the packet sending manner of the first protocol data packets include multiple sub-second protocol data packets. The sub-second protocol data packets are respectively transmitted through multiple subcarriers of the wireless channel and received by the second terminal. The multiple subcarriers correspond to the target wireless channel, that is, the sub-second protocol data packets are the second protocol data packets transmitted through the subcarriers. The second terminal determines the channel state measurement value of the wireless channel according to the second protocol data packets, including: respectively determining the sub-channel state measurement values of the corresponding subcarriers according to the sub-second protocol data packets, and obtaining the weights corresponding to each subcarrier. According to the weights corresponding to each subcarrier and the sub-channel state measurement values, the channel state measurement value of the wireless channel is determined. Among them, each target wireless channel of the first terminal corresponds to multiple subcarriers among the wireless channels of multiple second terminals. The second protocol data packets received by the second terminal through the subcarriers are denoted as sub-second protocol data packets, that is, the second protocol data packets received by the wireless channel of the second terminal include multiple sub-second protocol data packets.

[0138] Specifically, the second terminal respectively receives each sub-second protocol data packet through each subcarrier corresponding to the target wireless channel, and respectively determines the sub-channel state measurement values of the corresponding subcarriers according to the sub-second protocol data packets. Since the influence degree of the first protocol data packets on the second protocol data packets transmitted by the corresponding subcarriers is different when the first protocol data packets are transmitted on the target wireless channel, that is, each subcarrier has a different weight relative to the target wireless channel. After the second terminal obtains the sub-channel state measurement values of each subcarrier, it respectively obtains the weights of each subcarrier, and performs weighted averaging on the sub-channel state measurement values based on the weights of each subcarrier, and takes the result of the weighted averaging as the channel state measurement value of the wireless channel corresponding to the second terminal of the target wireless channel.

[0139] In one embodiment, when the second terminal receives the sub-second protocol data packet only on the subcarriers corresponding to the target wireless channel, it determines the sub-channel state measurement values of each subcarrier based on the received sub-second protocol data packet, which can also be referred to as the sub-CSI measurement sequence. It determines the subcarrier state template value of the subcarrier by taking the average of the obtained subcarrier state measurement values of each subcarrier, and performs weighted averaging on the subcarrier state template value based on the weights of each subcarrier, and takes the result of the weighted averaging as the channel state template value of the wireless channel of the second terminal corresponding to the target wireless channel.

[0140] In one embodiment, after the second terminal obtains the sub-channel state measurement value of the subcarrier and the subcarrier state template value of the subcarrier, it can also calculate the sub-difference between the sub-channel state measurement value and the subcarrier state template value corresponding to each subcarrier, and perform weighted averaging on the sub-difference based on the weights of each subcarrier, and take the result of the weighted averaging as the difference between the channel state measurement value and the channel state template value of the wireless channel of the second terminal, and determine the packet sending method of the first protocol data packet according to the difference corresponding to each second protocol data packet.

[0141] In the above embodiment, the second terminal determines the sub-channel state measurement value of the subcarrier through the sub-second protocol data packet corresponding to the subcarrier of the target wireless channel, and determines the channel state measurement value of the wireless channel based on the weights corresponding to each subcarrier and the sub-channel state measurement value. Thus, according to the wireless channel state measurement value, the packet sending method of the first protocol data packet is determined, and then the communication data transmitted by the first terminal is decoded, realizing cross-protocol communication from the first terminal to the second terminal and improving the communication efficiency of cross-protocol communication.

[0142] In one embodiment, the second terminal decodes the communication data according to the packet sending method of the first protocol data packet, including: determining the corresponding channel state feature according to the packet sending method of the first protocol data packet, and decoding the communication data according to the channel state feature. The channel state feature is the chip position distribution corresponding to each symbol in the coding sequence obtained after the first terminal encodes the data to be sent, specifically, the distribution of the chips relative to the target wireless channel.

[0143] Specifically, each first protocol data packet in the packet sending method of the first protocol data packet corresponds to a chip of the channel state feature. After the second terminal determines the packet sending method of the first protocol data packet, it extracts the channel state feature based on the symbol length and the packet sending method of the first protocol data packet, and determines the symbol corresponding to each channel state feature to obtain a symbol sequence, and decodes the obtained symbol sequence to obtain the communication data. The symbol length is the transmission time corresponding to one symbol, and the transmission time of one symbol is the accumulation of the first transmission time of the first protocol data packet corresponding to the symbol. For example Figure 8As shown, the transmission time T of symbol 0 S is the accumulation of the transmission times of four chips, that is, the transmission time T of this symbol 0 S is the sum of the first transmission times of four first protocol data packets.

[0144] In the above embodiment, after the second terminal determines the packet sending manner of the first protocol data packet based on the received second protocol data packet, it determines the corresponding channel state feature according to the packet sending manner of the first protocol data packet, and decodes the communication data according to the channel state feature, thereby realizing the communication between the first terminal and the second terminal.

[0145] In one embodiment, the above cross-protocol communication method further includes: when the first terminal of the first protocol adapts to the target radio channel of the first protocol and sends the first protocol previous packet according to the packet sending manner of the previous sequence carrying the communication data, the second terminal determines the packet sending manner of the first protocol previous packet based on the received second protocol data packet, decodes the previous sequence according to the packet sending manner of the first protocol previous packet, and determines whether the received second protocol data packet corresponds to the packet sending manner of the first protocol data packet carrying the communication data according to the previous sequence. If the received second protocol data packet corresponds to the packet sending manner of the first protocol data packet carrying the communication data, then execute the step of determining the packet sending manner of the first protocol data packet based on the received second protocol data packet.

[0146] Specifically, after receiving the previous sequence, the second terminal can determine whether the received previous sequence is consistent with the pre-stored previous sequence. If they are consistent, it is confirmed that the second protocol data packet received after the previous sequence corresponds to the packet sending manner of the first protocol data packet carrying the communication data, that is, it is confirmed that the communication data is received, and the packet sending manner of the first protocol data packet is determined based on the second protocol data packet received after the previous sequence, and the communication data is decoded according to the packet sending manner of the first protocol data packet.

[0147] In the above embodiment, after receiving the previous sequence of the communication data sent by the first terminal, the second terminal determines whether the communication data sent by the first terminal is received based on this previous sequence. Thus, after determining that the communication data sent by the first terminal is received, the packet sending manner of the first protocol data packet is determined based on the received second protocol data packet, and the communication data is decoded according to the packet sending manner, thereby ensuring the reliability of the communication from the first terminal to the second terminal and improving the reliability of cross-protocol communication.

[0148] In one embodiment, when the first terminal concurrently transmits communication data to multiple second terminals, for any one of the second terminals, after receiving the previous sequence of the communication data transmitted by the first terminal, it may further determine the reception time interval according to the previous sequence, obtain the first transmission time of the first protocol data packet and the second transmission time of the response message, determine the number of second terminals corresponding to the first terminal according to the first transmission time and the reception time interval, calculate the corresponding waiting duration based on the number of second terminals and the second transmission time, determine the response time interval of the response message based on the reception time interval and the waiting duration, and after receiving the first protocol data packet sent by the first terminal based on the first protocol through the target radio channel adapted to the first protocol and in the packet sending manner carrying the communication data corresponding to the second terminal, return the response message to the first terminal according to the response time interval.

[0149] Wherein, the reception time interval is the time interval between two adjacent symbols received by the second terminal. When the second terminal receives the previous sequence, it respectively records the reception time of each symbol in the received previous sequence, so as to determine the reception time interval based on the reception times of two adjacent symbols in the previous sequence.

[0150] Based on the fact that the first terminal sends symbols to each second terminal sequentially, therefore, the reception time interval T1 of the second terminal satisfies the following formula:

[0151] T1 = T S ×W N

[0152] Wherein, T1 is the reception time interval, T s is the transmission time of one symbol, and W N is the number of second terminals corresponding to the first terminal.

[0153] After the second terminal obtains the second transmission time T a of the response message, the following formula is used to calculate the waiting duration T2 required for all terminals to transmit a response message at least once:

[0154] T2 = T a ×W N

[0155] Wherein, T2 is the waiting duration, T a is the transmission time of one response message, and W N is the number of second terminals corresponding to the first terminal.

[0156] After the second terminal obtains the waiting duration T2, according to the obtained waiting duration T2 and the reception time interval T1, specifically, the larger value of the waiting duration T2 and the reception time interval T1 can be determined as the response time interval T W, correspondingly, the listening duration T of the first terminal on the wireless channels of each second terminal Z is the transmission time T of the symbol S and the larger value of the transmission time of the response message, as shown in the following formula:

[0157] T W = max(T2, T1)

[0158] T Z = max(T a , T S )

[0159] In the above embodiment, the second terminal determines the response time interval of the response message based on the reception time interval, the first transmission time of the first protocol data packet, and the second transmission time of the response message. After the second terminal receives the first protocol data packet sent by the first terminal based on the first protocol through the target wireless channel adapted to the first protocol and in the packet sending manner carrying the communication data corresponding to the second terminal, the second terminal returns a response message to the first terminal according to the response time interval. Thus, the first terminal can listen for the corresponding response message on the wireless channels corresponding to each second terminal based on the response time interval and the listening order, ensuring the reliability of the concurrent communication between the first terminal and multiple second terminals.

[0160] In one embodiment, as Figure 10 shown, a cross - protocol communication method is further provided. Taking the method applied to the second terminal in Figure 1 as an example, the method includes the following steps:

[0161] S1002, receive the sub - second - protocol data packet sent by the auxiliary terminal of the second protocol in a fixed sending manner through each sub - carrier of the wireless channel of the second terminal.

[0162] S1004, when the first terminal of the first protocol sends the first - protocol previous - item data packet through the target wireless channel adapted to the first protocol and in the packet sending manner carrying the previous - item sequence of the communication data, determine the packet sending manner of the first - protocol previous - item data packet based on the received sub - second - protocol data packet.

[0163] S1006, decode the previous - item sequence according to the packet sending manner of the first - protocol previous - item data packet.

[0164] S1008, determine whether the received sub - second - protocol data packet corresponds to the packet sending manner of the first - protocol data packet carrying the communication data according to the previous - item sequence.

[0165] S1010, if the received sub-second protocol data packet corresponds to the packet sending mode of the first protocol data packet carrying communication data, then after the first terminal of the first protocol adapts to the target radio channel of the first protocol and sends the first protocol data packet according to the packet sending mode of the communication data corresponding to the second terminal, based on the channel state measurement value of the radio channel determined according to the sub-second protocol data packet; the target radio channel is under the radio channel coverage range of the second terminal.

[0166] S1012, obtain the sub-channel state template value when the radio channel only transmits the sub-second protocol data packet.

[0167] S1014, calculate the sub-difference between the sub-channel state measurement value corresponding to each sub-second protocol data packet and the sub-channel state template value.

[0168] S1016, perform weighted averaging on the sub-differences based on the weights of each sub-carrier, and use the result of the weighted averaging as the difference between the channel state measurement value and the channel state template value of the radio channel of the second terminal.

[0169] S1018, determine the packet sending mode of the first protocol data packet according to the difference.

[0170] S1020, determine the corresponding channel state feature according to the packet sending mode of the first protocol data packet, and decode the communication data according to the channel state feature.

[0171] S1022, determine the reception time interval according to the previous item sequence.

[0172] S1024, obtain the first transmission time of the first protocol data packet and the second transmission time of the response message.

[0173] S1026, determine the number of second terminals corresponding to the first terminal according to the first transmission time and the reception time interval.

[0174] S1028, calculate the corresponding waiting duration based on the number of second terminals and the second transmission time.

[0175] S1030, determine the response time interval of the response message based on the reception time interval and the waiting duration.

[0176] S1032, return the response message to the first terminal according to the response time interval.

[0177] This application also provides an application scenario, which applies the above cross-protocol communication method. Specifically, the application of the cross-protocol communication method in this application scenario is as follows:

[0178] This application scenario includes a ZigBee terminal (the first terminal), multiple WiFi terminals (the second terminals), and at least one WiFi assist terminal.

[0179] Step (1), the Zigbee terminal obtains the wireless channels on which multiple WiFi terminals are respectively operating. The multiple WiFi terminals are respectively operating on Figure 5B the shown WiFi Channel 1, WiFi Channel 6, and WiFi Channel 11. Each WiFi channel includes multiple WiFi subcarriers. Based on each pair of wireless channels, the multiple WiFi terminals are divided into several groups. The wireless channels of the WiFi terminals within each WiFi terminal group do not overlap with each other, and the WiFi terminal groups are sorted to obtain a grouping order; WiFi data packets sent by the WiFi assist terminal in a fixed sending manner are transmitted on the subcarriers of each wireless channel.

[0180] Step (2), after the ZigBee terminal groups the WiFi terminals, the ZigBee terminal respectively determines the target ZigBee channels that adapt to the ZigBee protocol under the coverage ranges of the respective wireless channels. Referring to Figure 5B , the ZigBee channels numbered 11 to 14 are the target ZigBee channels corresponding to WiFi Channel 1, the ZigBee channels numbered 16 to 19 are the target ZigBee channels corresponding to WiFi Channel 2, and the ZigBee channels numbered 21 to 24 are the target ZigBee channels corresponding to WiFi Channel 3; among them, each target ZigBee channel corresponds to multiple WiFi subcarriers.

[0181] Step (3), for each WiFi terminal group, based on the preamble sequence of the communication data to be sent corresponding to the WiFi terminals in the WiFi terminal group, information is encoded on the four target ZigBee channels corresponding to the respective WiFi channels, and a CSI chirp segment is constructed. Each CSI chirp segment respectively includes three CSI chirps. Each CSI chirp corresponds to a symbol to be sent in the preamble sequence of a WiFi terminal. Based on the constructed CSI chirp segment, the transmission method (i.e., the packet sending method) of the ZigBee data packet corresponding to the target ZigBee channel of the WiFi terminal group is determined.

[0182] Step (4), for each WiFi terminal group, based on the communication data to be sent corresponding to the WiFi terminals in the WiFi terminal group, information is encoded on the four target ZigBee channels corresponding to each WiFi channel, and a CSI chirp segment is constructed. Each CSI chirp segment contains three CSI chirps, and each CSI chirp corresponds to the symbol to be sent of the communication data of one WiFi terminal. Based on the constructed CSI chirp segment, the transmission mode (i.e., packet sending mode) of the ZigBee data packet corresponding to the target ZigBee channel of the WiFi terminal group is determined.

[0183] Step (5), the ZigBee terminal, based on the grouping order, in a polling manner, successively sends the ZigBee data packets through the target ZigBee channels corresponding to each WiFi terminal according to the transmission mode of the ZigBee data packet corresponding to the previous item of each WiFi terminal group.

[0184] Step (6), each WiFi terminal determines the transmission mode of the ZigBee data packet based on the received WiFi data packet, obtains the corresponding CSI chirp based on the transmission mode of the ZigBee data packet, and decodes the previous item sequence according to the CSI chirp.

[0185] Step (7), the ZigBee terminal, based on the grouping order, in a polling manner, successively sends the ZigBee data packets through the target ZigBee channels corresponding to each WiFi terminal according to the transmission mode of the ZigBee data packet corresponding to the communication data of each WiFi terminal group.

[0186] Step (8), each WiFi terminal determines the transmission mode of the ZigBee data packet based on the received WiFi data packet, obtains the corresponding CSI chirp based on the transmission mode of the ZigBee data packet, and decodes the communication data according to the CSI chirp.

[0187] Specifically, for any one WiFi terminal, as Figure 11 shown, each target ZigBee channel corresponds to multiple subcarriers, then the 4 target ZigBee channels (i.e., Figure 11In the above, C0, C1, C2 and C3) correspond to M WiFi subcarriers in total, wherein the j-th target ZigBee channel corresponds to c subcarriers. The WiFi terminal determines the receiving time interval based on the previous sequence, and based on the determined receiving time interval, receives the WiFi data packet through each subcarrier corresponding to each target ZigBee channel, thereby obtaining the CSI sampling value (i.e., the sub-CSI measurement value), obtains the CSI template value corresponding to each subcarrier (the average of the CSI measurement values ​​not affected by the ZigBee data packet), calculates the difference between the CSI sampling value and the CSI template value for each subcarrier, and obtains the sub-CSI variation. The sub-CSI variation corresponding to the k-th WiFi data packet (corresponding to the k-th chip window) received through the m-th subcarrier is expressed as ΔCSI m,k , then the CSI change V corresponding to the kth WiFi data packet corresponding to the jth target ZigBee channel j,k for:

[0188]

[0189] Where m1~mc represent the c subcarriers corresponding to the jth target ZigBee channel, α i is the weight of the mi-th subcarrier among the mi-th subcarriers.

[0190] Through the above process, the second terminal obtains the CSI changes corresponding to the four target ZigBee channels, and obtains the CSI change matrix V 4×K , K is the number of chip windows corresponding to each target ZigBee channel in the matrix. Calculate the CSI change V corresponding to each chip window respectively j,k The peak value of CSI change P j,k and the average CSI change E j,k , if the average CSI change E j,k Greater than the mean threshold E t , and the CSI change peak value P j,k Greater than the peak threshold P t , then the chip value is set to "1", otherwise it is set to "0", so as to obtain the symbol matrix S 4×K (i.e., the packet transmission method of ZigBee data packets), based on the symbol matrix S 4×K Get the initial channel and decode to get the communication data.

[0191] Step (9): Each WiFi terminal obtains the transmission time of a symbol and the transmission time of the response message, determines the number of WiFi terminals that concurrently transmit with the ZigBee terminal according to the transmission time of the symbol and the reception time interval, calculates the corresponding waiting duration based on the number of WiFi terminals and the transmission time of the response message, determines the response time interval of the response message as the larger value between the reception time interval and the waiting duration, and returns the response message to the ZigBee terminal according to the response time interval.

[0192] Step (10): The ZigBee terminal determines the listening order of each target ZigBee channel according to the grouping order and the distribution order of each CSI chirp in the CSI chirp segment, and sequentially listens on the target ZigBee channel for a preset duration based on the listening order to receive the response information returned by the corresponding WiFi terminal. The listening duration is the larger value between the transmission time of a symbol and the transmission time of the response message.

[0193] In this application, relevant experiments are also conducted on the beneficial effects generated by the above cross - protocol communication method, and the experimental process and results are briefly described below.

[0194] Experimental equipment description:

[0195] As Figure 12 shown, in the experiment, the ZigBee device TelosB (ZigBee terminal) and a computer equipped with an Intel 5300 NIC are used as the sender (WiFi - assisted terminal) and the receiver (WiFi terminal) respectively. Install the Linux802.11n CSI Tool at the sender, which can collect CSI values at a sampling rate of 2KHz at the receiver. This experiment evaluates the above cross - protocol transmission method based on CSI chirp (c - Chirp).

[0196] c - Chirp symbol error rate (SER) and throughput (goodput):

[0197] Adopt Figure 12 the experimental environment shown. The distance between the ZigBee sender and the WiFi receiver is 5m, which remains unchanged during the experiment, and only the distance between the WiFi receiver and the ZigBee sender is changed. Figure 13A The experimental results of the shown symbol error rate indicate that the cross - protocol transmission method in this application has a lower symbol error rate compared to the traditional cross - protocol transmission method. When the distance is 60m, the SER corresponding to our scheme is 0.148, while the SER of ZigFi is too high to work. In fact, if the required SER is less than 0.2, ZigFi cannot work properly when the distance is greater than 10m. Figure 13BThe experimental results of the shown throughput indicate that when the distance is less than 20m, the throughput of c-Chirp is lower than that of the traditional cross-protocol transmission method because c-Chirp sacrifices throughput to improve reliability. However, when the distance is greater than 30m, the throughput of c-Chirp will become better than that of the traditional cross-protocol transmission method. This is because the traditional cross-protocol transmission method has too many symbol errors caused by the unstable influence in a single channel. Therefore, compared with the existing technologies, our scheme can achieve a longer communication distance and more reliable data transmission.

[0198] Parameter estimation for concurrent transmission:

[0199] In this experiment, a preamble is used to estimate the time interval between receiving two symbols and to achieve synchronization between the ZigBee transmitter and the WiFi receiver. Therefore, the accuracy of parameter estimation is highly correlated with the overall performance. By changing the length of the preamble, the influence of preambles of different lengths on the accuracy of parameter estimation is studied. Figure 14 The shown experimental results indicate that when the length of the preamble is increased, the amount of information of CSI variation also increases, so the accuracy of parameter estimation will be higher. When the length of the preamble increases to 8, the accuracy of parameter estimation converges to greater than 0.98.

[0200] Goodput and Symbol Error Rate (SER) of concurrent transmission:

[0201] This experiment evaluated the system performance of three concurrent WiFi receivers. The distance between the ZigBee transmitter and the WiFi transmitter was set to 10m, the transmission power of ZigBee was set to -5dBm, and the channels of the three WiFi receivers were set to channels 1, 6, and 11 respectively. The ZigBee transmitter concurrently sent data to the three WiFi receivers. The ZigBee transmitter sequentially sent data packets on ZigBee channels overlapping with three different WiFi channels to construct CSI chirps. Four ZigBee channels were used to construct different CSI chirps corresponding to different symbol encodings, as Figure 15A shown. The three WiFi receivers performed CSI sampling at a sampling rate of 2MHz and extracted the legal CSI sequences according to the estimated parameter values. Figure 15B Corresponding to the legal CSI sequences extracted by the three WiFi receivers, Figure 15BThe part of the middle rectangular box represents the perturbation of the ZigBee data packet to the WiFi CSI. Based on these perturbations, the WiFi receiver can correctly decode. When the ZigBee transmitter sends data to the WiFi receivers on channels 1, 6, and 11 respectively, the bit error rates and throughputs (goodput) of different WiFi receivers are as Figure 15C shown. The average bit error rates of the WiFi receivers on channels 1, 6, and 11 are 0.0198, 0.0253, and 0.0293 respectively, and the throughputs are 33.46 bps, 33.27 bps, and 33.13 bps respectively. Figure 15D It shows that the total throughput of the 3 WiFi receivers is 99.90 bps, the bit error rate is 0.0244, and it is compared with the throughput and bit error rate of one-to-one transmission between the ZigBee and the WiFi receiver. Among them, SF (spreading factor) = 2, which means the ZigBee transmitter constructs CSI chirps on 4 ZigBee channels in sequence. 4 channels are used to construct 4 different chirps to encode 4 symbols. SF = 4 means the ZigBee transmitter constructs CSI chirps on 16 ZigBee channels in sequence. 16 channels are used to construct 16 different chirps to encode 4 symbols, and different starting channels correspond to different symbols. The experimental results show that the total throughput of the 3 WiFi receivers is very close to the throughput of 101.12 bps when SF = 2, and it is about 1.96 times the throughput of 50.82 when SF = 4. Since in concurrent transmission, a preamble sequence is also needed to estimate the time interval between receiving two symbols to achieve the coordination and synchronization between the ZigBee transmitter and the WiFi receiver, the accuracy of the time interval estimation will affect the bit error rate to a certain extent. Therefore, the bit error rate of concurrent transmission 0.0244 is higher than that of one-to-one transmission 0.0125 (SF = 2), 0.0074 (SF = 4).

[0202] It should be understood that although Figure 2 、 8 、9 and 10 in the flowcharts of each step are shown in sequence according to the arrow indication, but these steps are not necessarily executed in sequence according to the arrow indication. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 2 、 8 、9 and at least a part of the steps in 10 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of the steps or stages in other steps or other steps.

[0203] In one embodiment, as Figure 16 shown, a cross - protocol communication device is provided. This device can be a software module, a hardware module, or a combination of both to form part of a computer device. Specifically, the device includes: a wireless channel acquisition module 1602, a target wireless channel determination module 1604, an information encoding module 1606, and a data packet sending module 1608, where:

[0204] The wireless channel acquisition module 1602 is used to acquire the respective wireless channels of at least one second terminal of the second protocol; the wireless channel transmits second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner;

[0205] The target wireless channel determination module 1604 is used to determine a target wireless channel adapted to the first protocol under the wireless channel coverage of the second terminal;

[0206] The information encoding module 1606 is used to perform information encoding based on the communication data to be sent corresponding to the second terminal to obtain the packet - sending manner of the first - protocol data packet; the packet - sending manner carries the communication data;

[0207] The data packet sending module 1608 is used to send the first - protocol data packet according to the packet - sending manner and through the target wireless channel, so that the second terminal can determine the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet, and decode the communication data according to the packet - sending manner of the first - protocol data packet.

[0208] In the above - mentioned embodiment, after the first terminal of the first protocol acquires the respective wireless channels of at least one second terminal of the second protocol, it determines a target wireless channel adapted to the first protocol under the wireless channel coverage of the second terminal, where the wireless channel transmits second - protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner, performs information encoding based on the communication data to be sent corresponding to the second terminal to obtain the packet - sending manner of the first - protocol data packet, and this packet - sending manner carries the communication data. Then, it sends the first - protocol data packet according to the packet - sending manner and through the target wireless channel. The sending of the first - protocol data packet affects the channel state of the wireless channel corresponding to the target wireless channel. Specifically, it causes the second - protocol data packets sent in the same period as the first - protocol data packet to change. Thus, the second terminal can determine the packet - sending manner of the first - protocol data packet based on the received second - protocol data packet, and decode the communication data according to the packet - sending manner of the first - protocol data packet, realizing cross - protocol communication from the first terminal to at least one second terminal and improving the communication efficiency of cross - protocol communication.

[0209] In one embodiment, the device further includes: a terminal grouping module and a sorting module, where:

[0210] A terminal grouping module, configured to group the second terminals based on the wireless channels of the second terminals, to obtain at least one second terminal group, where the wireless channels of the second terminals in each second terminal group do not overlap with each other;

[0211] A sorting module, configured to sort the second terminal groups to obtain a grouping order;

[0212] The data packet sending module 1608 is further configured to:

[0213] Based on the grouping order, sequentially send the first protocol data packets through the target wireless channel according to the packet sending modes corresponding to the second terminal groups.

[0214] In the above embodiment, the first terminal groups the second terminals based on the wireless channels of the second terminals, to obtain at least one second terminal group, where the wireless channels of the second terminals in each second terminal group do not overlap with each other. Sort the second terminal groups, and based on the grouping order, sequentially send the first protocol data packets through the target wireless channel according to the packet sending modes corresponding to the second terminal groups, so that one first terminal can communicate with multiple second terminals simultaneously, improving the communication efficiency of cross-protocol communication.

[0215] In one embodiment, the information encoding module 1606 is further configured to

[0216] For each second terminal group, construct a channel state feature segment corresponding to the target wireless channel based on the communication data to be sent corresponding to the second terminals in the second terminal group;

[0217] Based on the channel state features corresponding to each second terminal in the channel state feature segment, determine the packet sending mode of the first protocol data packet corresponding to the second terminal group.

[0218] In the above embodiment, for each second terminal group, the first terminal constructs a channel state feature segment corresponding to the target wireless channel based on the communication data to be sent corresponding to the second terminals in the second terminal group, determines the packet sending mode of the first protocol data packet corresponding to the second terminal group based on the channel state features corresponding to each second terminal in the channel state feature segment, and sends the first protocol data packet through the target wireless channel according to the packet sending mode, realizing that one first terminal communicates with multiple second terminals with different wireless channels simultaneously, improving the communication efficiency of cross-protocol communication. At the same time, when using chirp channel state features, the communication quality between the first terminal and the second terminal can be further improved, and the communication distance between the first terminal and the second terminal can be increased.

[0219] In one embodiment, the device further includes a decoding module:

[0220] The second terminal determines the channel state measurement value of the target wireless channel based on the received second protocol data packet through a decoding module; determines the packet sending mode of the first protocol data packet according to the channel state measurement value, obtains the corresponding channel state feature according to the packet sending mode, and decodes the communication data according to the obtained channel state feature.

[0221] In the above embodiment, after the first terminal sends the first protocol data packet according to the packet sending mode of the first protocol data packet and through the target wireless channel, the second terminal determines the channel state measurement value of the target wireless channel based on the received second protocol data packet, determines the packet sending mode of the first protocol data packet according to the channel state measurement value, obtains the corresponding channel state feature according to the packet sending mode, and decodes the communication data according to the obtained channel state feature, thereby realizing communication between the first terminal and the second terminal.

[0222] In one embodiment, the device further includes:

[0223] A listening order determination module, configured to determine the listening order of each target wireless channel according to the packet order and the distribution order of each channel state feature in the channel state feature segment;

[0224] An information receiving module, configured to sequentially listen on the target wireless channels for a preset duration based on the listening order to receive the response information returned by the corresponding second terminal.

[0225] In the above embodiment, the first terminal determines the listening order of each target wireless channel according to the packet order and the distribution order of each channel state feature in the channel state feature segment, and sequentially listens on the target wireless channels for a preset duration based on the listening order to receive the response information returned by the corresponding second terminal, ensuring that after the first terminal concurrently transmits communication data to multiple second terminals, it can receive the response information returned by each second terminal, thereby ensuring the reliability of the concurrent communication between the first terminal and multiple second terminals.

[0226] In one embodiment, the information encoding module 1606 is further configured to perform information encoding based on the previous sequence of the communication data to be sent to obtain the packet sending mode of the first protocol previous data packet; the packet sending mode of the first protocol previous data packet carries the previous sequence; the previous sequence is used to instruct the second terminal to decode the communication data based on the received second protocol data packet and to instruct the second terminal to return response information;

[0227] The data packet sending module 1608 is further configured to send the first protocol previous data packet according to the packet sending mode of the first protocol previous data packet and through the target wireless channel, so that the second terminal determines the packet sending mode of the first protocol previous data packet based on the received second protocol data packet and decodes the previous sequence according to the packet sending mode of the first protocol previous data packet.

[0228] In the above embodiments, before the first terminal transmits communication data to multiple second terminals, information encoding is performed based on the previous sequence of the communication data to be sent, and the packet sending mode of the first protocol previous packet is obtained. The packet sending mode of the first protocol previous packet carries the previous sequence. According to the packet sending mode of the first protocol previous packet, the first protocol previous packet is sent through the target wireless channel, so that the second terminal determines the packet sending mode of the first protocol previous packet based on the received second protocol packet, and decodes the previous sequence according to the packet sending mode of the first protocol previous packet. Thus, the second terminal can correctly decode the second protocol packet carrying the communication data received after the previous sequence, obtain the communication data transmitted by the first terminal, and return an acknowledgment message, ensuring the reliability of the communication from the first terminal to at least one second terminal and improving the reliability of cross-protocol communication.

[0229] In one embodiment, the information encoding module 1606 is further configured to:

[0230] Obtain the communication distance between the second terminal and the first terminal;

[0231] When the communication distance is greater than the distance threshold, information encoding is performed in a frequency hopping transmission manner based on the communication data to be sent corresponding to the second terminal, and the packet sending mode of the first protocol packet is obtained;

[0232] When the communication distance is less than or equal to the distance threshold, information encoding is performed in a fixed-frequency transmission manner based on the communication data to be sent corresponding to the second terminal, and the packet sending mode of the first protocol packet is obtained.

[0233] In the above embodiments, the first terminal determines the information encoding of the communication data to be sent based on the communication distance between the second terminal and the first terminal, so as to implement the communication from the first terminal to the second terminal by using a suitable transmission method. When the communication distance is greater than the distance threshold, information encoding in a frequency hopping transmission manner can implement the communication from the first terminal to the second terminal at a long distance. When the communication distance is less than the threshold, fixed-frequency transmission can improve the coding rate from the first terminal to the second terminal, reasonably utilize the channel resources, and improve the communication efficiency of cross-protocol communication from the first terminal to the second terminal.

[0234] In one embodiment, as Figure 17 shown, there is also provided a cross-protocol communication device. This device can be a software module or a hardware module, or a combination of both to form a part of a computer device. Specifically, the device includes: a data packet receiving module 1702, a packet sending mode determining module 1704, and a communication data decoding module 1706, where:

[0235] A data packet receiving module 1702, configured to receive second-protocol data packets sent by an auxiliary terminal of a second protocol in a fixed sending manner through a wireless channel of a second terminal;

[0236] A packet sending mode determining module 1704, configured to, after a first terminal of a first protocol sends a first-protocol data packet through a target wireless channel adapted to the first protocol and in a packet sending mode carrying communication data corresponding to the second terminal, determine the packet sending mode of the first-protocol data packet based on the received second-protocol data packets; the target wireless channel is within the coverage range of the wireless channel of the second terminal;

[0237] A communication data decoding module 1706, configured to decode communication data according to the packet sending mode of the first-protocol data packet.

[0238] In one embodiment, the packet sending mode determining module 1704 is further configured to:

[0239] Determine a channel state measurement value of the wireless channel according to the second-protocol data packets;

[0240] Obtain a channel state template value of the wireless channel when only the second-protocol data packets are transmitted;

[0241] Calculate the difference between the channel state measurement value corresponding to each second-protocol data packet and the channel state template value;

[0242] Determine the packet sending mode of the first-protocol data packet according to the differences corresponding to the second-protocol data packets.

[0243] In the above embodiment, each second terminal of the second protocol receives second-protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner through its respective wireless channel; the second terminal of the second protocol receives second-protocol data packets sent by an auxiliary terminal of the second protocol in a fixed sending manner through the corresponding wireless channel; the target wireless channel is within the coverage range of the wireless channel of the second terminal. Therefore, sending the first-protocol data packet through the target wireless channel will affect the channel state of the wireless channel corresponding to the target wireless channel. When the first terminal of the first protocol sends the first-protocol data packet through the target wireless channel adapted to the first protocol and in the packet sending mode carrying the communication data corresponding to the second terminal, the second-protocol data packets sent in the same period as the first-protocol data packet change. As a result, the second terminal can determine the packet sending mode of the first-protocol data packet based on the received second-protocol data packets and decode the communication data according to the packet sending mode of the first-protocol data packet, realizing cross-protocol communication from the first terminal to the second terminal and improving the communication efficiency of cross-protocol communication.

[0244] In one embodiment, the second protocol data packet includes a plurality of sub-second protocol data packets, and the sub-second protocol data packets are respectively transmitted through a plurality of sub-carriers of a wireless channel and received by a second terminal. The plurality of sub-carriers correspond to a target wireless channel. The packet transmission mode determination module 1704 is further configured to:

[0245] Determine the sub-channel state measurement values of the corresponding sub-carriers according to the sub-second protocol data packets respectively;

[0246] Obtain the weights corresponding to the respective sub-carriers;

[0247] Determine the channel state measurement value of the wireless channel according to the weights corresponding to the respective sub-carriers and the sub-channel state measurement values.

[0248] In the above embodiment, the second terminal determines the sub-channel state measurement values of the sub-carriers according to the sub-second protocol data packets corresponding to the sub-carriers of the target wireless channel, and determines the channel state measurement value of the wireless channel based on the weights corresponding to the respective sub-carriers and the sub-channel state measurement values, so as to determine the packet transmission mode of the first protocol data packet according to the wireless channel state measurement value, and further decode the communication data transmitted by the first terminal, realizing cross-protocol communication from the first terminal to the second terminal and improving the communication efficiency of cross-protocol communication.

[0249] In one embodiment, the communication data decoding module 1706 is further configured to:

[0250] Determine the corresponding channel state characteristics according to the packet transmission mode of the first protocol data packet, and decode the communication data according to the channel state characteristics.

[0251] In the above embodiment, after the second terminal determines the packet transmission mode of the first protocol data packet based on the received second protocol data packet, it determines the corresponding channel state characteristics according to the packet transmission mode of the first protocol data packet, and decodes the communication data according to the channel state characteristics, thereby realizing communication between the first terminal and the second terminal.

[0252] In one embodiment, the device further includes:

[0253] The packet transmission mode determination module 1704 is further configured to, when the first terminal of the first protocol passes through the target wireless channel adapted to the first protocol and sends the first protocol previous packet according to the packet transmission mode of the previous item sequence carrying the communication data, determine the packet transmission mode of the first protocol previous packet based on the received second protocol data packet;

[0254] The communication data decoding module 1706 is further configured to decode the previous item sequence according to the packet transmission mode of the first protocol previous packet;

[0255] A judgment module, configured to judge whether the received second protocol data packet corresponds to the packet sending mode of the first protocol data packet carrying communication data according to the previous item sequence;

[0256] If the received second protocol data packet corresponds to the packet sending mode of the first protocol data packet carrying communication data, the packet sending mode determination module 1704 is used to execute the step of determining the packet sending mode of the first protocol data packet based on the received second protocol data packet.

[0257] In the above embodiment, after the second terminal receives the previous item sequence of the communication data sent by the first terminal, it determines whether the communication data sent by the first terminal is received based on the previous item sequence. After determining that the communication data sent by the first terminal is received, it determines the packet sending mode of the first protocol data packet based on the received second protocol data packet, and decodes the communication data according to the packet sending mode, thereby ensuring the reliability of the communication from the first terminal to the second terminal and improving the reliability of cross-protocol communication.

[0258] In one embodiment, the device further includes:

[0259] A reception time interval determination module, configured to determine a reception time interval according to the previous item sequence;

[0260] A transmission time acquisition module, configured to acquire a first transmission time of the first protocol data packet and a second transmission time of the response message;

[0261] A quantity determination module, configured to determine the quantity of the second terminal corresponding to the first terminal according to the first transmission time and the reception time interval;

[0262] A waiting duration calculation module, configured to calculate a corresponding waiting duration based on the quantity of the second terminal and the second transmission time;

[0263] A response time interval determination module, based on the reception time interval and the waiting duration, determines a response time interval of the response message;

[0264] A response message sending module, configured to, after receiving that the first terminal based on the first protocol adapts to the target radio channel of the first protocol and sends the first protocol data packet according to the packet sending mode carrying the communication data corresponding to the second terminal, return a response message to the first terminal according to the response time interval.

[0265] In the above embodiments, the second terminal determines the response time interval of the response message based on the reception time interval, the first transmission time of the first protocol data packet, and the second transmission time of the response message. After receiving the first protocol data packet sent by the first terminal based on the first protocol through the target wireless channel adapted to the first protocol and in the packet sending manner carrying the communication data corresponding to the second terminal, the second terminal returns a response message to the first terminal according to the response time interval. Thus, the first terminal can listen for the corresponding response message on the wireless channels corresponding to each second terminal based on the response time interval and the listening order, ensuring the reliability of the concurrent communication between the first terminal and multiple second terminals.

[0266] For the specific limitations of the cross-protocol communication device, reference can be made to the limitations on the cross-protocol communication method in the above text, which will not be elaborated here. Each module in the above cross-protocol communication device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0267] In one embodiment, a computer device is provided. The computer device can be a terminal, specifically a first terminal, a second terminal, or an auxiliary terminal. Its internal structure diagram can be as Figure 18 shown. The computer device includes a processor, a memory, and a communication interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be achieved through WIFI, operator network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a cross-protocol communication method.

[0268] Those skilled in the art can understand that Figure 18 the structure shown in

[0269] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0270] In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps in the above method embodiments.

[0271] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the above method embodiments.

[0272] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it may include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application may include at least one of non-volatile and volatile memories. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0273] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0274] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A cross - protocol communication method, characterized in that, Executed on a first terminal adopting a first protocol, the method includes: Obtain the respective wireless channels of at least one second terminal adopting a second protocol; the wireless channels transmit second protocol data packets sent by auxiliary terminals adopting the second protocol in a fixed transmission manner; Determine at least two target wireless channels adapted to the first protocol within the coverage range of the wireless channels of the second terminal; Based on the at least two target wireless channels corresponding to the second terminal, implement information encoding of the communication data to be sent according to the relative transmission order of the first protocol data packets corresponding to the at least two target wireless channels, and obtain the packet transmission manner of the first protocol data packets; the packet transmission manner carries the communication data; According to the packet transmission manner, and send the first protocol data packets through the at least two target wireless channels, so that the second terminal determines the packet transmission manner of the first protocol data packets based on the received second protocol data packets, and decodes the communication data according to the packet transmission manner of the first protocol data packets.

2. The method according to claim 1, characterized in that, The method further includes: Based on the wireless channels of each of the second terminals, group the second terminals to obtain at least one second terminal group, and the wireless channels of the second terminals in each second terminal group do not cover each other; Sort the second terminal groups to obtain a grouping order; The step of sending the first protocol data packets according to the packet transmission manner and through the target wireless channels includes: Based on the grouping order, sequentially send the first protocol data packets through the target wireless channels according to the packet transmission manner corresponding to each second terminal group.

3. The method according to claim 2, characterized in that, The step of implementing information encoding of the communication data to be sent according to the relative transmission order of the first protocol data packets corresponding to the at least two target wireless channels based on the at least two target wireless channels corresponding to the second terminal, and obtaining the packet transmission manner of the first protocol data packets includes: For each second terminal group, construct a channel state feature segment corresponding to the target wireless channels based on the communication data to be sent corresponding to the second terminals in the second terminal group; Based on the channel state features corresponding to each second terminal in the channel state feature segment, determine the packet transmission manner of the first protocol data packets corresponding to the second terminal group.

4. The method according to claim 3, characterized in that, The step that the second terminal determines the packet transmission manner of the first protocol data packets based on the received second protocol data packets, and decodes the communication data according to the packet transmission manner of the first protocol data packets includes: The second terminal determines the channel state measurement value of the target wireless channels based on the received second protocol data packets; determines the packet transmission manner of the first protocol data packets according to the channel state measurement value, obtains the corresponding channel state features according to the packet transmission manner, and decodes the communication data according to the obtained channel state features.

5. The method according to claim 3, characterized in that, After the step of sequentially sending the first protocol data packets through the target wireless channels according to the packet transmission manner corresponding to each second terminal group based on the grouping order, the method further includes: Determine the listening order of each target wireless channel according to the grouping order and the distribution order of each channel state feature in the channel state feature segment; Based on the listening order, listen on the target wireless channels in sequence for a preset duration to receive the corresponding response information returned by the second terminal.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Perform information encoding based on the previous item sequence of the communication data to be sent to obtain the packet sending mode of the first protocol previous item data packet; the packet sending mode of the first protocol previous item data packet carries the previous item sequence; the previous item sequence is used to instruct the second terminal to decode the communication data based on the received second protocol data packet and to instruct the second terminal to return response information; Send the first protocol previous item data packet according to the packet sending mode of the first protocol previous item data packet and through the target wireless channel, so that the second terminal determines the packet sending mode of the first protocol previous item data packet based on the received second protocol data packet and decodes the previous item sequence according to the packet sending mode of the first protocol previous item data packet.

7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Obtain the communication distance between the second terminal and the first terminal; When the communication distance is greater than the distance threshold, perform information encoding in a frequency hopping transmission manner based on the communication data to be sent corresponding to the second terminal to obtain the packet sending mode of the first protocol data packet.

8. The method according to any one of claims 1 to 5, characterized in that, The first protocol is the ZigBee protocol and the second protocol is the WiFi protocol.

9. A cross - protocol communication method, characterized in that, Executed on a second terminal using the second protocol, the method includes: Receive, through the wireless channel of the second terminal, a second protocol data packet sent by an auxiliary terminal of the second protocol in a fixed sending mode; When a first terminal of the first protocol sends a first protocol data packet through at least two target wireless channels adapted to the first protocol and according to the packet sending mode carrying the communication data corresponding to the second terminal, determine the packet sending mode of the first protocol data packet based on the received second protocol data packet; the at least two target wireless channels are within the wireless channel coverage range of the second terminal; Decode the communication data according to the packet sending mode of the first protocol data packet; Wherein, the packet sending mode of the first protocol data packet is obtained by the first terminal performing information encoding on the communication data to be sent based on at least two target wireless channels corresponding to the second terminal and according to the relative sending order of the first protocol data packet corresponding to the at least two target wireless channels.

10. The method according to claim 9, wherein The determining the packet sending mode of the first protocol data packet based on the received second protocol data packet includes: Determine the channel state measurement value of the wireless channel according to the second protocol data packet; Obtain the channel state template value of the wireless channel when only the second protocol data packet is transmitted; Calculate the difference between the channel state measurement value corresponding to each second protocol data packet and the channel state template value; Determine the packet sending mode of the first protocol data packet according to the differences corresponding to each second protocol data packet.

11. The method according to claim 10, wherein The second protocol data packet includes a plurality of sub-second protocol data packets, and the sub-second protocol data packets are respectively transmitted through a plurality of sub-carriers of the wireless channel and received by the second terminal. The plurality of sub-carriers correspond to the target wireless channel. Determining a channel state measurement value of the wireless channel according to the second protocol data packet includes: Determining sub-channel state measurement values of corresponding sub-carriers according to the sub-second protocol data packets respectively; Obtaining weights corresponding to the sub-carriers; Determining a channel state measurement value of the wireless channel according to the weights corresponding to the sub-carriers and the sub-channel state measurement values.

12. The method according to any one of claims 9 to 11, wherein Decoding the communication data according to the packet sending mode of the first protocol data packet includes: Determining a corresponding channel state feature according to the packet sending mode of the first protocol data packet, and decoding the communication data according to the channel state feature.

13. The method according to any one of claims 9 to 11, wherein The method further includes: After a first terminal of a first protocol adapts to a target wireless channel of the first protocol and sends a first protocol previous packet according to the packet sending mode of the previous item sequence carrying the communication data, determining the packet sending mode of the first protocol previous packet based on the received second protocol data packet; Decoding the previous item sequence according to the packet sending mode of the first protocol previous packet; Judging whether the received second protocol data packet corresponds to the packet sending mode of the first protocol data packet carrying the communication data according to the previous item sequence; If the received second protocol data packet corresponds to the packet sending mode of the first protocol data packet carrying the communication data, then execute the step of determining the packet sending mode of the first protocol data packet based on the received second protocol data packet.

14. The method according to claim 13, wherein The method further includes: Determining a reception time interval according to the previous item sequence; Obtaining a first transmission time of the first protocol data packet and a second transmission time of the response message; Determining the number of second terminals corresponding to the first terminal according to the first transmission time and the reception time interval; Calculating a corresponding waiting duration based on the number of second terminals and the second transmission time; Determining a response time interval of the response message based on the reception time interval and the waiting duration; After receiving that a first terminal based on a first protocol adapts to a target wireless channel of the first protocol and sends a first protocol data packet according to the packet sending mode of the communication data corresponding to the second terminal, returning the response message to the first terminal according to the response time interval.

15. A cross - protocol communication device, wherein Executed on a first terminal adopting a first protocol, the device includes: A wireless channel acquisition module, configured to acquire the wireless channels of at least one second terminal of a second protocol; the wireless channels transmit second protocol data packets sent by an auxiliary terminal of the second protocol according to a fixed sending mode; A target wireless channel determination module, configured to determine at least two target wireless channels adapted to the first protocol under the wireless channel coverage range of the second terminal; An information encoding module, configured to perform information encoding on communication data to be sent based on at least two target wireless channels corresponding to the second terminal, and implement the information encoding of the communication data to be sent according to the relative transmission order of the first protocol data packet corresponding to the at least two target wireless channels, so as to obtain a packet sending mode of the first protocol data packet; the packet sending mode carries the communication data; A data packet sending module, configured to send the first protocol data packet according to the packet sending mode and through the at least two target wireless channels, so that the second terminal determines the packet sending mode of the first protocol data packet based on the received second protocol data packet, and decodes the communication data according to the packet sending mode of the first protocol data packet.

16. The device according to claim 15, wherein The device further includes: A terminal grouping module, configured to group the second terminals based on the wireless channels of each of the second terminals, so as to obtain at least one second terminal group, and the wireless channels of the second terminals in each second terminal group do not overlap with each other; A sorting module, configured to sort the second terminal groups to obtain a grouping order; The data packet sending module is further configured to: Based on the grouping order, sequentially send the first protocol data packet through the target wireless channels according to the packet sending mode corresponding to each second terminal group.

17. The device according to claim 16, wherein, The information encoding module is further configured to: For each second terminal group, construct a channel state feature segment corresponding to the target wireless channel based on the communication data to be sent corresponding to the second terminal in the second terminal group; Based on the channel state features corresponding to each second terminal in the channel state feature segment, determine the packet sending mode of the first protocol data packet corresponding to the second terminal group.

18. The device according to claim 17, wherein, The device further includes a decoding module, configured to: The second terminal determines a channel state measurement value of the target wireless channel based on the received second protocol data packet; determines the packet sending mode of the first protocol data packet according to the channel state measurement value, obtains the corresponding channel state feature according to the packet sending mode, and decodes the communication data according to the obtained channel state feature.

19. The device according to claim 17, wherein, The device further includes: A listening order determining module, configured to determine the listening order of each target wireless channel according to the grouping order and the distribution order of each channel state feature in the channel state feature segment; An information receiving module, configured to sequentially listen on the target wireless channels for a preset duration based on the listening order, so as to receive the corresponding response information returned by the second terminal.

20. The device according to any one of claims 15 to 19, wherein, The information encoding module is further configured to: Perform information encoding based on the previous item sequence of the communication data to be sent, and obtain a packet sending mode of the first protocol previous item data packet; the packet sending mode of the first protocol previous item data packet carries the previous item sequence; the previous item sequence is used to instruct the second terminal to decode the communication data based on the received second protocol data packet, and to instruct the second terminal to return response information; The data packet sending module is further configured to: send the first protocol previous packet according to the packet sending manner of the first protocol previous packet and through the target wireless channel, so that the second terminal determines the packet sending manner of the first protocol previous packet based on the received second protocol data packet, and decodes the previous sequence according to the packet sending manner of the first protocol previous packet.

21. The device according to any one of claims 15 to 19, wherein, The information encoding module is further configured to: Obtain the communication distance between the second terminal and the first terminal; When the communication distance is greater than the distance threshold, perform information encoding on the communication data to be sent corresponding to the second terminal by using a frequency hopping transmission method to obtain the packet sending manner of the first protocol data packet.

22. The device according to any one of claims 15 to 19, wherein, The first protocol is the ZigBee protocol, and the second protocol is the WiFi protocol.

23. A cross - protocol communication device, wherein, Executed on a second terminal adopting the second protocol, the device includes: A data packet receiving module, configured to receive, through the wireless channel of the second terminal, a second protocol data packet sent by an auxiliary terminal of the second protocol in a fixed sending manner; A packet sending manner determining module, configured to determine the packet sending manner of the first protocol data packet based on the received second protocol data packet after the first terminal of the first protocol sends the first protocol data packet through at least two target wireless channels adapted to the first protocol and according to the packet sending manner carrying the communication data corresponding to the second terminal; the at least two target wireless channels are within the wireless channel coverage range of the second terminal; A communication data decoding module, configured to decode the communication data according to the packet sending manner of the first protocol data packet; Wherein, the packet sending manner of the first protocol data packet is obtained by the first terminal performing information encoding on the communication data to be sent based on at least two target wireless channels corresponding to the second terminal in the relative sending order of the first protocol data packet corresponding to the at least two target wireless channels.

24. The device according to claim 23, wherein, The packet sending manner determining module is further configured to: Determine the channel state measurement value of the wireless channel according to the second protocol data packet; Obtain the channel state template value of the wireless channel when only the second protocol data packet is transmitted; Calculate the difference between the channel state measurement value corresponding to each second protocol data packet and the channel state template value; Determine the packet sending manner of the first protocol data packet according to the differences corresponding to the second protocol data packets.

25. The device according to claim 24, wherein, The second protocol data packet includes a plurality of sub-second protocol data packets, and the sub-second protocol data packets are respectively transmitted through a plurality of sub-carriers of the wireless channel and received by the second terminal. The packet sending manner determining module is further configured to: Respectively determine the sub-channel state measurement values of the corresponding sub-carriers according to the sub-second protocol data packets; Obtain the weights corresponding to the sub-carriers; Determine the channel state measurement value of the wireless channel according to the weights corresponding to the sub-carriers and the sub-channel state measurement values.

26. The device according to any one of claims 23 to 25, characterized in that The communication data decoding module is further configured to: Determine the corresponding channel state feature according to the packet sending manner of the first protocol data packet, and decode the communication data according to the channel state feature.

27. The device according to any one of claims 23 to 25, characterized in that The packet sending mode determination module is further configured to: After the first terminal of the first protocol adapts to the target radio channel of the first protocol and sends the first protocol previous packet according to the packet sending mode of the previous sequence carrying the communication data, determine the packet sending mode of the first protocol previous packet based on the received second protocol packet; The communication data decoding module is further configured to decode the previous sequence according to the packet sending mode of the first protocol previous packet; The judgment module is configured to judge whether the received second protocol packet corresponds to the packet sending mode of the first protocol packet carrying the communication data according to the previous sequence; If the received second protocol packet corresponds to the packet sending mode of the first protocol packet carrying the communication data, the step of determining the packet sending mode of the first protocol packet based on the received second protocol packet is executed by the packet sending mode determination module.

28. The device according to claim 27, characterized in that The device further includes: The reception time interval determination module is configured to determine the reception time interval according to the previous sequence; The transmission time acquisition module is configured to acquire the first transmission time of the first protocol packet and the second transmission time of the response message; The quantity determination module is configured to determine the quantity of the second terminal corresponding to the first terminal according to the first transmission time and the reception time interval; The waiting duration calculation module is configured to calculate the corresponding waiting duration based on the quantity of the second terminal and the second transmission time; The response time interval determination module is configured to determine the response time interval of the response message based on the reception time interval and the waiting duration; The response message sending module is configured to, after receiving that the first terminal based on the first protocol adapts to the target radio channel of the first protocol and sends the first protocol packet according to the packet sending mode of the communication data corresponding to the second terminal, return the response message to the first terminal according to the response time interval.

29. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 14 are implemented.

30. A computer-readable storage medium storing a computer program, characterized in that When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 14 are implemented.

Citation Information

Patent Citations

  • Method for communication from ZigBee to WiFi and device

    CN107682830A