A data transmission control method, IoT device and storage medium

By arbitrating transmission priorities at the link layer level of IoT devices, the problem of data transmission control under the coexistence of multiple wireless communication protocols is solved, the data transmission performance of IoT devices is improved, and data transmission under the coexistence of multiple wireless communication protocols is realized. Tuning.

CN115297449BActive Publication Date: 2024-10-18ZHEJIANG MAOJING ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210765376.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-10-18
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

In IoT devices, when multiple wireless communication protocols coexist, the lack of a universal data transmission control scheme results in low data transmission performance and requires a large amount of adaptation and parameter adjustment, resulting in uneven device performance.

Method used

By arbitrating the transmission priority at the link layer level, the wireless communication protocol, transmission type and transmission channel based on the atomic frame determine the degree of transmission time determination, and determine the transmission priority based on this degree, thereby achieving data transmission control.

Benefits of technology

It provides a universal and standardized data transmission control scheme under the coexistence of multiple wireless communication protocols, which improves the data transmission performance of IoT devices, simplifies the adaptation process, and improves the performance of devices in different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115297449B_ABST
    Figure CN115297449B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data transmission control method, IoT device and storage medium, wherein the method includes: determining multiple atomic frames to be currently transmitted at the link layer, wherein the link layer supports multiple wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocol; determining the degree of transmission time determination of each atomic frame, wherein the degree of transmission time determination of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame; determining the transmission priority of each atomic frame according to the degree of transmission time determination of each atomic frame, wherein the degree of transmission time determination of the atomic frame is positively correlated with the transmission priority of the atomic frame; transmitting the multiple atomic frames according to the transmission priority of each atomic frame. The embodiment of the present application can solve the data transmission control problem under the coexistence of multiple wireless communication protocols, and improve the data transmission performance of IoT devices under the coexistence of multiple wireless communication protocols.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a data transmission control method, an IoT device, and a storage medium. Background Art

[0002] With the widespread application of IoT (Internet of Things) technology in smart home, smart office and other intelligent interconnected scenarios, device manufacturers and users have increasingly complex functional requirements and higher stability requirements for IoT devices. IoT devices generally use multiple wireless communication protocols to transmit data; that is, IoT devices coexist with multiple wireless communication protocols, and send and receive data in a radio frequency manner through these multiple wireless communication protocols.

[0003] When IoT devices coexist with multiple wireless communication protocols, how to achieve data transmission control has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a data transmission control method, an IoT device and a storage medium to achieve data transmission control and improve data transmission performance when multiple wireless communication protocols coexist in IoT devices.

[0005] To achieve the above objectives, the embodiments of the present application provide the following technical solutions.

[0006] In a first aspect, an embodiment of the present application provides a data transmission control method, including:

[0007] Determine a plurality of atomic frames to be currently transmitted at a link layer, wherein the link layer supports a plurality of wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocol;

[0008] Determining a transmission time certainty of each atomic frame, wherein the transmission time certainty of the atomic frame is associated with a wireless communication protocol, a transmission type, and a transmission channel of the atomic frame;

[0009] Determining the transmission priority of each atomic frame according to the transmission time certainty of each atomic frame, wherein the transmission time certainty of the atomic frame is positively correlated with the transmission priority of the atomic frame;

[0010] The multiple atomic frames are transmitted according to the transmission priority of each atomic frame.

[0011] In a second aspect, an embodiment of the present application provides an IoT device, comprising at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the data transmission control method as described in the first aspect above.

[0012] In a third aspect, an embodiment of the present application provides a storage medium, which stores one or more computer-executable instructions. When the one or more computer-executable instructions are executed, the data transmission control method described in the first aspect above is implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer program, which, when executed, implements the data transmission control method as described in the first aspect above.

[0014] The data transmission control method provided in the embodiment of the present application can arbitrate the transmission priority of multiple atomic frames currently to be transmitted at the link layer of the IoT device. Based on the coexistence of multiple wireless communication protocols in the IoT device, the link layer of the IoT device can support multiple wireless communication protocols, and the atomic frames are packaged at the link layer based on the wireless communication protocol; when arbitrating the transmission priority of multiple atomic frames, the embodiment of the present application can determine the degree of certainty of the transmission time of each atomic frame, wherein the degree of certainty of the transmission time of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame; thereby determining the transmission priority of each atomic frame according to the degree of certainty of the transmission time of each atomic frame, wherein the degree of certainty of the transmission time of the atomic frame is positively correlated with the transmission priority of the atomic frame; and after determining the transmission priority of each atomic frame, the embodiment of the present application can transmit multiple atomic frames according to the transmission priority of each atomic frame.

[0015] It can be seen that in the case where multiple wireless communication protocols coexist in the IoT device, the embodiment of the present application can determine the degree of transmission time certainty of each atomic frame based on the wireless communication protocol, transmission type and transmission channel of each atomic frame for multiple atomic frames currently to be transmitted at the link layer; thereby determining the transmission priority of each atomic frame based on the degree of transmission time certainty of each atomic frame as a reference, so that when multiple wireless communication protocols coexist, the IoT device can provide a general and standardized data transmission control scheme for atomic frames using different communication protocols through the degree of transmission time certainty of the atomic frames to be transmitted at the link layer; thereby realizing data transmission optimization under the coexistence of multiple wireless communication protocols, solving the data transmission control problem under the coexistence of multiple wireless communication protocols, and improving the data transmission performance of IoT devices under the coexistence of multiple wireless communication protocols, so that the performance of IoT devices can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0017] Figure 1 This is an example diagram of an IoT device.

[0018] Figure 2 A flowchart of a data transmission control method provided in an embodiment of the present application.

[0019] Figure 3 Another flow chart of the data transmission control method provided in an embodiment of the present application.

[0020] Figure 4A This is an example diagram of WiFi transmission mode.

[0021] Figure 4B The following is an example diagram of the transmission mode of the Bluetooth data channel.

[0022] Figure 5 A flow chart of a method for determining a second transmission priority provided in an embodiment of the present application.

[0023] Figure 6 A flow chart of a method for allocating duty cycles provided in an embodiment of the present application.

[0024] Figure 7 A block diagram of a data transmission control device provided in an embodiment of the present application.

[0025] Figure 8 This is a structural block diagram of the IoT device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] IoT devices can be electronic devices with IoT functions, which are widely used in scenarios of intelligent interconnection of devices such as smart homes and smart offices. In one example, IoT devices can be node devices in a Bluetooth Mesh (wireless mesh) network. IoT devices can use wireless communication protocols to achieve intelligent interconnection between devices. Based on the fact that data can be transmitted between devices through multiple wireless communication protocols, IoT devices can coexist with multiple wireless communication protocols.

[0028] In one example, the multiple wireless communication protocols coexisting with IoT devices may be, for example, WiFi (wireless network communication technology) communication protocol, Bluetooth communication protocol, ZigBee communication protocol, etc. Among them, WiFi is a wireless communication protocol that can work in 2.4G and 5G wireless frequency bands; the WiFi communication protocol can work in the 2.4G wireless frequency band, and its radio frequency channel can be divided into 14 channels with a frequency between 2412MHz and 2484MHz. Bluetooth is a wireless communication protocol that works in the 2.4G wireless frequency band, including two protocols, BLE (Bluetooth Low Energy) and classic Bluetooth; the Bluetooth communication protocol can also work in the 2.4G wireless frequency band, with a frequency range between 2401MHz and 2479MHz, where classic Bluetooth divides the frequency range into 79 wireless channels, and BLE divides the frequency range into 39 wireless channels. ZigBee is a wireless communication protocol with a low data transmission rate over short distances.

[0029] It should be noted that when multiple wireless communication protocols coexisting in IoT devices work in the same wireless frequency band, IoT devices can use multiple antennas or single antennas to use multiple wireless communication protocols for data transmission. For example, when IoT devices coexist with WiFi and Bluetooth communication protocols, both WiFi and Bluetooth communication protocols can use the 2.4G wireless frequency band for data transmission. Therefore, low-cost IoT devices can set up WiFi and Bluetooth communication protocols to share a single antenna. Of course, IoT devices can also set up antennas for WiFi communication protocols and antennas for Bluetooth communication protocols, so that WiFi and Bluetooth communication protocols use their own antennas for data transmission. It is understandable that if IoT devices set up antennas for WiFi and Bluetooth communication protocols respectively, there may be a situation where WiFi and Bluetooth communication protocols interfere with each other in wireless radio frequency; if WiFi and Bluetooth communication protocols share one antenna, the interference in the use of radio frequency resources between WiFi and Bluetooth communication protocols will be more serious, which may cause the upper-layer business functions to be unable to be used normally.

[0030] IoT devices can coexist with multiple wireless communication protocols by setting up chips that allow multiple wireless communication protocols to coexist, and use multiple wireless communication protocols to transmit data based on at least one antenna. Figure 1An example diagram of an IoT device is shown as follows: Figure 1 As shown, the IoT device 100 may include a chip 101 and at least one antenna 102; the chip 101 may coexist with multiple wireless communication protocols such as WiFi and Bluetooth. When the IoT device needs to use multiple wireless communication protocols to transmit data, the chip 101 may call at least one antenna 102 to transmit data of multiple wireless communication protocols in a radio frequency manner. The transmission data referred to in the embodiments of the present application may be sending data and receiving data.

[0031] When multiple wireless communication protocols coexist, IoT devices may have data to transmit under multiple wireless communication protocols. For example, IoT devices currently have data to transmit under the WiFi communication protocol and the Bluetooth communication protocol. At this time, how to control data transmission becomes a problem.

[0032] In the state where multiple wireless communication protocols coexist, there is currently no universal control solution and specification for data transmission control of multiple wireless communication protocols. Therefore, the performance of chips designed by chip manufacturers for coexistence of multiple wireless communication protocols varies. When adapting such chips to IoT devices, a lot of adaptation and parameter adjustments are required to meet the performance requirements of the application scenario. The above adaptation and parameter adjustments are generally fixed in the firmware code of the chip by the chip manufacturer and are not universal. Therefore, for new application scenarios, IoT devices need to be redeveloped, re-adapted and re-adjusted, which leads to the problem of low data transmission performance of IoT devices when multiple wireless communication protocols coexist.

[0033] Based on this, the embodiments of the present application provide an improved data transmission control scheme. When multiple wireless communication protocols coexist in IoT devices, at the link layer level, the transmission priority of multiple data to be transmitted is arbitrated, thereby providing a general and standard data transmission design scheme for the coexistence of multiple wireless communication protocols, so as to standardize the data transmission specifications under the coexistence of multiple wireless communication protocols, realize RF optimization under the coexistence of multiple wireless communication protocols, and achieve the effect of improving the data transmission performance of IoT devices.

[0034] Based on the above ideas, Figure 2 An optional flow chart of a data transmission control method provided in an embodiment of the present application is shown as an example. The method flow can be executed by an IoT device, such as Figure 2 As shown, the method flow may include the following steps.

[0035] In step S210, a plurality of atomic frames to be currently transmitted at a link layer are determined, wherein the link layer supports a plurality of wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocols.

[0036] Based on the idea of ​​arbitrating the transmission priority of multiple data to be transmitted at the link layer level of the embodiment of the present application, the embodiment of the present application can determine multiple atomic frames currently to be transmitted at the link layer. It should be noted that the link layer is an underlying protocol, and the link layer can transmit and process data in units of frames, so the data packets transmitted at the link layer can be called frames (that is, the atomic frames referred to in the embodiments of the present application).

[0037] It should be further explained that the link layer belongs to the underlying protocol of the IoT device and is used to process the packet structure and fields of the data; on the one hand, the link layer receives frames from the network layer and encapsulates frames for the physical layer, and on the other hand, the link layer encapsulates the original data from the physical layer into frames of the network layer. Therefore, in the case where multiple wireless communication protocols coexist in IoT devices, the link layer of the IoT device can support multiple wireless communication protocols, and the atomic frames of the link layer are packaged based on the wireless communication protocols; packaging can be understood as encapsulating data into the form of data packets, thereby forming the atomic frames of the link layer referred to in the embodiments of the present application.

[0038] As an optional implementation, when multiple wireless communication protocols coexist in IoT devices, the IoT devices may have multiple atomic frames to be transmitted at the link layer, and each atomic frame can be packaged based on the corresponding wireless communication protocol. Optionally, an atomic frame can include a frame header, a content part, and a frame trailer; accordingly, the frame header, the content part, and the frame trailer are packaged based on the wireless communication protocol corresponding to the atomic frame to obtain an atomic frame.

[0039] In an implementation example, taking the coexistence of WiFi and Bluetooth communication protocols of IoT devices as an example, the multiple atomic frames currently to be transmitted by the link layer of the IoT device (for example, the multiple atomic frames currently to be sent or received by the link layer of the IoT device) may include the following: management frames based on the WiFi communication protocol (referred to as WiFi management frames), data frames based on the WiFi communication protocol (referred to as WiFi data frames), broadcast frames based on the Bluetooth communication protocol (referred to as Bluetooth broadcast frames), and data frames based on the Bluetooth communication protocol (referred to as Bluetooth data frames).

[0040] In the case where multiple wireless communication protocols coexist in IoT devices, as an optional implementation, the multiple atomic frames currently to be transmitted by the link layer can be packaged based on different wireless communication protocols, that is, the wireless communication protocols used by each atomic frame in the multiple atomic frames are different; in one example, taking the coexistence of WiFi and Bluetooth communication protocols as an example, the multiple atomic frames can be, for example, atomic frames based on WiFi communication protocols (such as WiFi management frames or data frames), and atomic frames based on Bluetooth communication protocols (such as Bluetooth broadcast frames or data frames). In other optional implementations, the multiple atomic frames currently to be transmitted by the link layer can be packaged based on the same wireless communication protocol; in one example, taking the coexistence of WiFi and Bluetooth communication protocols as an example, the multiple atomic frames can be, for example, Bluetooth broadcast frames and data frames, or WiFi management frames or data frames.

[0041] It should be noted that, as the underlying protocol, the link layer's atomic frame transmission is an atomic operation; for example, an atomic frame being sent by the link layer cannot be interrupted, and an atomic frame being received by the link layer cannot be interrupted either.

[0042] In step S211, the transmission time certainty degree of each atomic frame is determined, and the transmission time certainty degree of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame.

[0043] For multiple atomic frames currently to be transmitted at the link layer, the embodiment of the present application can arbitrate transmission priorities for multiple atomic frames, and the scheme for arbitrating the transmission priority of atomic frames provided in the embodiment of the present application is related to the degree of certainty of the transmission time of the atomic frames. Therefore, in order to achieve arbitration of transmission priorities for multiple atomic frames, the embodiment of the present application can determine the degree of certainty of the transmission time of each atomic frame in the multiple atomic frames. In some embodiments, the degree of certainty of the transmission time of the atomic frame can be the degree of time certainty when the atomic frame is transmitted (for example, the degree of time certainty when the atomic frame is sent, the degree of time certainty when the atomic frame is received), which can be understood as whether the transmission of the atomic frame occurs at a certain time.

[0044] In some embodiments, the embodiments of the present application may determine the degree of certainty of the transmission time of the atomic frame based on the wireless communication protocol, transmission type and transmission channel of the atomic frame; that is, the degree of certainty of the transmission time of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame. In an optional implementation, the transmission type of the atomic frame can be divided into sending atomic frames and receiving atomic frames.

[0045] As an optional implementation, for any atomic frame currently to be transmitted at the link layer, the embodiment of the present application can determine the transmission mode of the atomic frame according to the wireless communication protocol, transmission type and transmission channel of the atomic frame; thereby determining the degree of determination of the transmission time of the atomic frame according to the transmission mode of the atomic frame. Optionally, the transmission mode of the atomic frame includes any one of scheduled sending, scheduled receiving, on-demand sending and waiting for receiving when not sending; that is, taking the transmission of atomic frames including sending atomic frames and receiving atomic frames as an example, the transmission mode of the atomic frame can be divided into scheduled sending and on-demand sending when sending atomic frames, and scheduled receiving when receiving atomic frames and waiting for receiving when not sending.

[0046] In a further optional implementation, since scheduled sending and scheduled receiving are the sending and receiving of atomic frames within a determined scheduled time, the transmission mode of scheduled sending and scheduled receiving of atomic frames can have the highest degree of transmission time certainty; and on-demand sending is triggered by a deterministic sending action, and the atomic frame needs to be sent within a certain time limit, so the transmission mode of on-demand sending can have the second highest degree of transmission time certainty; when the IoT device is waiting to receive the atomic frame when not sending, other IoT devices need to send data so that the IoT device can receive the atomic frame, so the reception time of the transmission mode of waiting to receive when not sending is uncertain, and the embodiment of the present application can set the lowest degree of transmission time certainty for the transmission mode of waiting to receive when not sending. In other words, the degree of transmission time certainty of the atomic frame whose transmission mode is scheduled sending and scheduled receiving is higher than that of the atomic frame whose transmission mode is on-demand sending; the degree of transmission time certainty of the atomic frame whose transmission mode is on-demand sending is higher than that of the atomic frame whose transmission mode is waiting to receive when not sending.

[0047] In an implementation example, the embodiment of the present application may set three levels of transmission time certainty, such as the first level of transmission time certainty, the second level of transmission time certainty and the third level of transmission time certainty, wherein the first level of transmission time certainty is higher than the second level of transmission time certainty, and the second level of transmission time certainty is higher than the third level of transmission time certainty. For example, the embodiment of the present application may set the first level of transmission time certainty for atomic frames with a transmission mode of scheduled transmission and atomic frames with scheduled reception; set the second level of transmission time certainty for atomic frames with a transmission mode of on-demand transmission; and set the third level of transmission time certainty for atomic frames with a transmission mode of waiting for reception when non-transmission.

[0048] In step S212, the transmission priority of each atomic frame is determined according to the transmission time certainty of each atomic frame, wherein the transmission time certainty of the atomic frame is positively correlated with the transmission priority of the atomic frame.

[0049] After determining the transmission time certainty of each atomic frame to be currently transmitted by the link layer, the embodiment of the present application can set a transmission priority for each atomic frame based on the transmission time certainty of each atomic frame, and make the transmission time certainty of the atomic frame positively correlated with the transmission priority of the atomic frame. In other words, the higher the transmission time certainty of the atomic frame, the higher the transmission priority of the atomic frame.

[0050] In some embodiments, the embodiments of the present application may set three levels of transmission priority, such as a first transmission priority, a second transmission priority, and a third transmission priority, wherein the first transmission priority is higher than the second transmission priority, and the second transmission priority is higher than the third transmission priority. As an optional implementation, the embodiments of the present application may set a first transmission priority for an atomic frame with a first level of transmission time determination, set a second transmission priority for an atomic frame with a second level of transmission time determination, and set a third level of transmission priority for an atomic frame with a third level of transmission time determination.

[0051] In an implementation example, for atomic frames of four transmission modes, namely, scheduled sending, on-demand sending, scheduled receiving, and waiting for receiving when not sending, the transmission priority of the atomic frames set in the embodiment of the present application may be: the transmission priority of atomic frames of scheduled sending and scheduled receiving is higher than the transmission priority of atomic frames of on-demand sending; and the transmission priority of atomic frames of on-demand sending is higher than the transmission priority of atomic frames of waiting for receiving when not sending. Among them, the transmission priority of atomic frames of scheduled sending may be equal to the transmission priority of atomic frames of scheduled receiving.

[0052] In step S213, the multiple atomic frames are transmitted according to the transmission priority of each atomic frame.

[0053] After determining the transmission priority of each atomic frame to be transmitted at the link layer, the embodiment of the present application may transmit multiple atomic frames to be transmitted based on the transmission priority of each atomic frame. In some embodiments, the embodiment of the present application may first transmit the atomic frame of the first transmission priority, then transmit the atomic frame of the second transmission priority, and finally transmit the atomic frame of the third transmission priority. In an implementation example, the embodiment of the present application may first transmit the atomic frame of scheduled transmission and scheduled reception, then transmit the atomic frame sent on demand, and finally transmit the atomic frame waiting to be received when not transmitting.

[0054] The data transmission control method provided in the embodiment of the present application can arbitrate the transmission priority of multiple atomic frames currently to be transmitted at the link layer of the IoT device. Based on the coexistence of multiple wireless communication protocols in the IoT device, the link layer of the IoT device can support multiple wireless communication protocols, and the atomic frames are packaged at the link layer based on the wireless communication protocol; when arbitrating the transmission priority of multiple atomic frames, the embodiment of the present application can determine the degree of certainty of the transmission time of each atomic frame, wherein the degree of certainty of the transmission time of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame; thereby determining the transmission priority of each atomic frame according to the degree of certainty of the transmission time of each atomic frame, wherein the degree of certainty of the transmission time of the atomic frame is positively correlated with the transmission priority of the atomic frame; and after determining the transmission priority of each atomic frame, the embodiment of the present application can transmit multiple atomic frames according to the transmission priority of each atomic frame.

[0055] It can be seen that in the case where multiple wireless communication protocols coexist in the IoT device, the embodiment of the present application can determine the degree of transmission time certainty of each atomic frame based on the wireless communication protocol, transmission type and transmission channel of each atomic frame for multiple atomic frames currently to be transmitted at the link layer; thereby determining the transmission priority of each atomic frame based on the degree of transmission time certainty of each atomic frame as a reference, so that when multiple wireless communication protocols coexist, the IoT device can provide a general and standardized data transmission control scheme for atomic frames using different communication protocols through the degree of transmission time certainty of the atomic frames to be transmitted at the link layer; thereby realizing data transmission optimization under the coexistence of multiple wireless communication protocols, solving the data transmission control problem under the coexistence of multiple wireless communication protocols, and improving the data transmission performance of IoT devices under the coexistence of multiple wireless communication protocols, so that the performance of IoT devices can be improved.

[0056] It should be noted that, at the link layer level, the embodiment of the present application arbitrates the transmission priority of the atomic frame according to the degree of determination of the transmission time of the atomic frame to be transmitted at the link layer. Therefore, the embodiment of the present application can implement a universal solution at the underlying level of the link layer, and the upper layer of the link layer does not need to understand how multiple wireless communication protocols coexist in IoT devices. In this way, it can provide a universal and standardized data transmission control solution when multiple wireless communication protocols coexist, solve the data transmission control problem under the coexistence of multiple wireless communication protocols, and improve the data transmission performance of IoT devices.

[0057] In some embodiments, the solution provided by the embodiments of the present application can be applied to extremely low-cost, cost-effective IoT devices, single processors, and single antennas in a scenario where multiple wireless communication protocols coexist on radio frequency, thereby improving the data transmission performance of IoT devices.

[0058] As an optional implementation, the embodiment of the present application is based on the two transmission types of sending atomic frames and receiving atomic frames. The transmission mode of the atomic frame can be divided into a transmission mode when sending the atomic frame and a transmission mode when receiving the atomic frame; and the transmission mode when sending the atomic frame is further divided into scheduled sending and on-demand sending, and the transmission mode when receiving the atomic frame is further divided into scheduled receiving and waiting for receiving when not sending. In this case, the embodiment of the present application can set different transmission time determination degrees for atomic frames of different transmission modes, and then determine different transmission priorities. Optionally, Figure 3 Another optional flow chart of the data transmission control method provided in the embodiment of the present application is shown as an example. Figure 3 As shown, the method flow may include the following steps.

[0059] In step S310, a plurality of atomic frames to be currently transmitted at a link layer are determined, wherein the link layer supports a plurality of wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocols.

[0060] The introduction of step S310 can refer to the above step S210, which will not be expanded here.

[0061] In step S311, for any atomic frame, the transmission mode of the atomic frame is determined according to the wireless communication protocol, transmission type and transmission channel of the atomic frame.

[0062] In some embodiments, the transmission mode of the atomic frame may include any one of scheduled transmission, scheduled reception, on-demand transmission, and waiting for reception when not transmitting. As an optional implementation, the transmission type of the atomic frame can be used to determine whether the transmission mode of the atomic frame belongs to the transmission mode when sending the atomic frame (e.g., scheduled transmission and on-demand transmission), or the transmission mode when receiving the atomic frame (e.g., scheduled reception and waiting for reception when not transmitting). As a further optional implementation, the wireless communication protocol and transmission channel of the atomic frame can be used to determine the final transmission mode of the atomic frame from the transmission mode to which the transmission type of the atomic frame belongs; for example, in the case where the transmission type of the atomic frame is to send the atomic frame, the embodiment of the present application can determine the final transmission mode of the atomic frame from the transmission modes of scheduled transmission and on-demand transmission based on the wireless communication protocol and transmission channel of the atomic frame; for another example, in the case where the transmission type of the atomic frame is to receive the atomic frame, the embodiment of the present application can determine the final transmission mode of the atomic frame from the transmission mode of scheduled reception and waiting for reception when not transmitting based on the wireless communication protocol and transmission channel of the atomic frame.

[0063] For ease of understanding, the embodiments of the present application take the coexistence of WiFi and Bluetooth communication protocols of IoT devices as an example to exemplify the different transmission modes of atomic frames. In an implementation example, the transmission mode of atomic frames on WiFi can be on-demand sending and waiting for reception when not sending (that is, the data sending mode of WiFi is on-demand sending, and the data receiving mode is to turn on the receiving mode and wait for data to be received when not sending data); that is to say, the transmission mode when sending atomic frames using the WiFi communication protocol is on-demand sending, and the transmission mode when receiving atomic frames using the WiFi communication protocol is waiting for reception when not sending. Optionally, Figure 4A The example diagram of the WiFi transmission mode is shown as follows: Figure 4A As shown, when the IoT device uses the WiFi communication protocol, it can send data at the times T11, T12, T13, T14 and T15 when data is required to be sent, and turn on the receiving mode at other times to wait for receiving data (that is, during the period when no data is sent, the IoT device turns on the receiving mode to wait for receiving data); it can be seen that under the WiFi communication protocol, the times T11, T12, T13, T14 and T15 when the IoT device sends data are not evenly distributed, but the time distribution of sending data is determined based on the data sending demand; that is to say, the WiFi communication protocol sends data on demand, and the time for sending data is not evenly distributed, and during the period when no data is sent, the receiving mode is turned on to wait for receiving data.

[0064] It should be noted that on-demand transmission can be understood as the IoT device sending data when it has the need and requirement to send data; the time for sending data on demand is not necessarily evenly distributed, but each data transmission needs to be completed within a certain time limit. For example, each time an atomic frame is sent on demand, the link layer needs to complete the transmission of the atomic frame within a certain time limit. Waiting for reception when not sending can be understood as the IoT device turning on the receiving mode and waiting to receive data during the period when it is not sending data, so that the IoT device can receive data sent by other IoT devices during the period when it is not sending data.

[0065] In an implementation example, the Bluetooth communication protocol uses Bluetooth broadcast channels and Bluetooth data channels to transmit data. Therefore, when IoT devices use the Bluetooth communication protocol, they need to distinguish between the data transmission mode in the Bluetooth broadcast channel and the data transmission mode in the Bluetooth data channel. As an optional implementation, the data transmission mode in the Bluetooth broadcast channel can be on-demand sending and waiting to receive when not sending (that is, under the Bluetooth communication protocol, the data sending mode of the Bluetooth broadcast channel is on-demand sending, and the data receiving mode is to turn on the receiving mode and wait to receive data when not sending data); that is to say, the transmission mode when sending atomic frames using the Bluetooth broadcast channel is on-demand sending, and the transmission mode when receiving atomic frames using the Bluetooth data channel is waiting to receive when not sending; the data transmission mode examples in the Bluetooth broadcast channel can be the same as Figure 4A The shown are similar and can be referenced to each other.

[0066] As an optional implementation, the data transmission mode in the Bluetooth data channel can be scheduled sending and scheduled receiving (that is, under the Bluetooth communication protocol, the data transmission mode of the Bluetooth data channel is scheduled sending, and the data receiving mode is scheduled receiving); that is, the transmission mode when using the Bluetooth data channel to send atomic frames is scheduled sending, and the transmission mode when using the Bluetooth data channel to receive atomic frames is scheduled receiving, and the IoT device does not use the Bluetooth data channel to send and receive data at other times, so the rest of the time is in an idle state. Optional, Figure 4B The following is an example diagram showing the transmission mode of a Bluetooth data channel: Figure 4B As shown, the IoT device sends and receives data once at time T21, T22, T23 and T24 respectively, and the time T21 and T22, the time T22 and T23, and the time T23 and T24 are all separated by the same timing time; that is, when using the Bluetooth communication protocol, if the Bluetooth data channel is used to transmit data, data is sent and received once at every timing time, and the time for sending data (as shown in the real-time rectangular box in the figure) and the time for receiving data (as shown in the dotted rectangular box in the figure) can be adjacent, that is, the IoT device uses the Bluetooth data channel to send and receive data at fixed timing intervals, and the time for sending data once and the time for receiving data once are close to each other; therefore, the time for sending data and the time for receiving data on the Bluetooth data channel are evenly distributed.

[0067] It should be noted that in the transmission mode of scheduled sending and receiving, IoT devices can negotiate and align the time of sending data and the time of receiving data, so that the IoT device sending data can send data at a scheduled interval, and the IoT device receiving data can also send data at a scheduled interval, so as to receive data at the negotiated time point. In the transmission mode of scheduled sending and receiving, the scheduled time can be a timeout time at the millisecond level or the second level. The IoT device needs to send successful data within the scheduled timeout time. Otherwise, if the IoT device receiving data does not receive the data within the negotiated time, it will be considered that the data transmission has failed, which will affect the data transmission experience.

[0068] In step S312, if the transmission mode of the atomic frame is scheduled transmission or scheduled reception, a first level of transmission time determination is determined for the atomic frame.

[0069] In step S313, if the transmission mode of the atomic frame is on-demand transmission, a second level of transmission time certainty is determined for the atomic frame.

[0070] In step S314, if the transmission mode of the atomic frame is waiting for reception when not sending, a third level of transmission time certainty is determined for the atomic frame.

[0071] After determining the transmission mode of the atomic frame, the embodiment of the present application can determine the degree of certainty of the transmission time of the atomic frame according to the transmission mode of the atomic frame. In some embodiments, when the transmission mode of the atomic frame includes any one of scheduled transmission, scheduled reception, on-demand transmission, and waiting for reception when not transmitting (that is, the transmission mode when sending the atomic frame may be any one of scheduled transmission and on-demand transmission, and the transmission mode when receiving the atomic frame may be any one of scheduled reception and waiting for reception when not transmitting), the embodiment of the present application can determine different degrees of certainty of the transmission time for the atomic frame based on the different transmission modes of the atomic frame.

[0072] As an optional implementation, for any atomic frame currently to be transmitted by the link layer, if the transmission mode of the atomic frame is timed sending or timed receiving (that is, the transmission mode when sending the atomic frame is timed sending, or, the transmission mode when receiving the atomic frame is timed receiving), the first level of transmission time certainty can be determined for the atomic frame; if the transmission mode of the atomic frame is on-demand sending (that is, the transmission mode when sending the atomic frame is on-demand sending), the second level of transmission time certainty can be determined for the atomic frame; if the transmission mode of the atomic frame is waiting for receiving when not sending (that is, when the transmission mode when receiving the atomic frame is not sending data, the receiving mode is turned on to wait for receiving data), the third level of transmission time certainty can be determined for the atomic frame.

[0073] In an implementation example, taking the coexistence of WiFi and Bluetooth communication protocols of IoT devices as an example, the embodiments of the present application can determine the first level of transmission time certainty for atomic frames sent or received using the Bluetooth data channel (corresponding to the transmission mode of timed sending or timed receiving); determine the second level of transmission time certainty for atomic frames sent using the Bluetooth broadcast channel or atomic frames sent using the WiFi communication protocol (corresponding to the transmission mode of on-demand sending); determine the third level of transmission time certainty for atomic frames received using the Bluetooth broadcast channel or atomic frames received using the WiFi communication protocol (corresponding to the transmission mode of waiting for reception when not sending).

[0074] It should be noted that step S312 to step S314 are parallel situations where atomic frames of different transmission modes correspond to different transmission time certainty levels.

[0075] In step S315, if the atomic frame has a first level of transmission time certainty, a first transmission priority is determined for the atomic frame.

[0076] In step S316, if the atomic frame is at the second level of transmission time certainty, a second transmission priority is determined for the atomic frame.

[0077] In step S317, if the atomic frame is at the third level of transmission time certainty, a third transmission priority is determined for the atomic frame.

[0078] In some embodiments, for any atomic frame currently to be transmitted by the link layer, after determining the degree of transmission time certainty of the atomic frame, the embodiment of the present application may determine the transmission priority of the atomic frame according to the degree of transmission time certainty of the atomic frame. As an optional implementation, the degree of transmission time certainty of the atomic frame may be positively correlated with the transmission priority of the atomic frame, and is divided into a first level of transmission time certainty, a second level of transmission time certainty, and a third level of transmission time certainty based on the degree of transmission time certainty of the atomic frame. The embodiment of the present application may determine different levels of transmission priority for atomic frames with different levels of transmission time certainty. For example, for an atomic frame with a first level of transmission time certainty, a first transmission priority is determined; for an atomic frame with a second level of transmission time certainty, a second transmission priority is determined; for an atomic frame with a third level of transmission time certainty, a third transmission priority is determined.

[0079] In an implementation example, taking the coexistence of WiFi and Bluetooth communication protocols in IoT devices as an example, the embodiment of the present application can determine the first transmission priority for the atomic frame sent or received using the Bluetooth data channel (corresponding to the first level of transmission time determination); determine the second transmission priority for the atomic frame sent using the Bluetooth broadcast channel or the atomic frame sent using the WiFi communication protocol (corresponding to the second level of transmission time determination); determine the third transmission priority for the atomic frame received using the Bluetooth broadcast channel or the atomic frame received using the WiFi communication protocol (corresponding to the third level of transmission time determination). In this example, the transmission priority of the atomic frame can be as follows: (atomic frame sent using the Bluetooth data channel = atomic frame received using the Bluetooth data channel) > (atomic frame sent using the Bluetooth broadcast channel = atomic frame sent using WiFi) > (atomic frame received using the Bluetooth broadcast channel = atomic frame received using WiFi).

[0080] It should be noted that steps S315 to S317 are parallel situations where atomic frames with different transmission time determination degrees correspond to different transmission priorities.

[0081] In step S318, the multiple atomic frames are transmitted according to the transmission priority of each atomic frame.

[0082] After determining the transmission priority of each atomic frame to be transmitted at the link layer based on steps S311 to S317, the embodiment of the present application can transmit multiple atomic frames to be transmitted according to the transmission priority of each atomic frame. As an optional implementation, taking the coexistence of WiFi and Bluetooth communication protocols of IoT devices as an example, the embodiment of the present application can first transmit the atomic frame sent or received using the Bluetooth data channel (corresponding to the first transmission priority), and then transmit the atomic frame sent using the Bluetooth broadcast channel or the atomic frame sent using the WiFi communication protocol (corresponding to the second transmission priority), and then transmit the atomic frame received using the Bluetooth broadcast channel or the atomic frame received using the WiFi communication protocol (corresponding to the third transmission priority).

[0083] In an implementation example, assuming that there are currently three atomic frames to be transmitted in the link layer of the IoT device, one atomic frame is sent using the Bluetooth data channel, another atomic frame is sent using the WiFi communication protocol, and another atomic frame is received using the Bluetooth broadcast channel, then the embodiment of the present application may first send the atomic frame sent using the Bluetooth data channel, then send the atomic frame sent using the WiFi communication protocol, and then receive the atomic frame received using the Bluetooth broadcast channel.

[0084] The embodiments of the present application can determine the transmission time certainty of the atomic frame based on the transmission mode of the atomic frame at the link layer level, thereby determining different levels of transmission priority for atomic frames with different levels of transmission time certainty, and realizing arbitration of transmission priority for atomic frames using multiple wireless communication protocols at the underlying layer of the link layer, so that the upper layer of the link layer does not need to understand how multiple wireless communication protocols coexist in IoT devices, and can provide a general and standardized data transmission control solution when multiple wireless communication protocols coexist, thereby improving the data transmission performance of IoT devices. Furthermore, the embodiments of the present application take the coexistence of WiFi and Bluetooth communication protocols of IoT devices as an example, and define different levels of transmission time certainty and transmission priority for specific atomic frames transmitted using WiFi and Bluetooth communication protocols by way of example, so that IoT devices can provide a general and standardized transmission priority arbitration solution for specific atomic frames using WiFi and Bluetooth communication protocols through the underlying processing of the link layer when WiFi and Bluetooth communication protocols coexist.

[0085] In some further embodiments, there may be multiple different types of atomic frames with a second level of transmission time determination (for example, there may be multiple different types of atomic frames with a transmission mode of on-demand transmission). In one example, taking the atomic frames with a second level of transmission time determination including atomic frames sent using a Bluetooth broadcast channel or atomic frames sent using a WiFi communication protocol as an example, there may be multiple atomic frames for different functions among the atomic frames sent using a Bluetooth broadcast channel or atomic frames sent using a WiFi communication protocol. For example, there are atomic frames for network establishment, atomic frames for network management, atomic frames for network configuration, atomic frames for data carrying (i.e., simply for transmitting data content), and other different types of atomic frames. Based on this, as an optional implementation, when determining the second transmission priority for the atomic frames with a second level of transmission time determination, the embodiment of the present application may further subdivide the second transmission priority according to the function of the atomic frame. Optionally, Figure 5 The flowchart of an optional method for determining the second transmission priority provided by an embodiment of the present application is exemplarily shown. The method flow can be performed after determining the second level transmission time determination degree for the atomic frame, referring to Figure 5 The method flow may include the following steps.

[0086] In step S510, for the atomic frame of the second level transmission time determination level, the function of the atomic frame is determined.

[0087] In step S511, the sub-priority level corresponding to the atomic frame in the second transmission priority level is determined according to the function of the atomic frame; wherein the second transmission priority level includes multiple sub-priorities, and the priority level of the sub-priority level is positively correlated with the functional priority level of the atomic frame.

[0088] In some embodiments, the embodiment of the present application can divide the second transmission priority into multiple sub-priorities, and the priority of the sub-priority is positively correlated with the functional priority of the atomic frame, that is, the higher the functional priority of the atomic frame, the higher the sub-priority corresponding to the atomic frame in the second transmission priority. As an optional implementation, the functional priority of the atomic frame can be defined according to the actual situation, and the embodiment of the present application is not limited; in one example, the network management and configuration function of the atomic frame takes precedence over the data carrying function of the atomic frame. In other words, the priority of network establishment, management, and configuration related functions can be higher than the priority of the simple data carrying function. As an optional implementation, the embodiment of the present application can divide the second transmission priority into a first sub-priority and a second sub-priority (the second transmission priority includes the first sub-priority and the second sub-priority), and the first sub-priority is higher than the second sub-priority; so that for the atomic frame of the second level transmission time determination degree, if the function of the atomic frame is used for network management and configuration, it is determined that the atomic frame corresponds to the first sub-priority in the second transmission priority; if the function of the atomic frame is used for data carrying, it is determined that the atomic frame corresponds to the second sub-priority in the second transmission priority.

[0089] In an implementation example, when using the WiFi communication protocol, network establishment, management, and configuration functions can be implemented by management frames and control frames, and data carrying functions can be implemented by data frames. Therefore, when using the WiFi communication protocol to send atomic frames, the atomic frames belong to the second level of transmission time determination due to on-demand transmission; furthermore, when determining the second transmission priority for the atomic frames sent using the WiFi communication protocol, the embodiment of the present application can set the sub-priority of the management frame and the control frame corresponding to the second transmission priority to be higher than the sub-priority of the data frame corresponding to the second transmission priority. For example, when determining the second transmission priority for the atomic frames sent using the WiFi communication protocol, the embodiment of the present application can determine the management frame and the control frame as the first sub-priority and the data frame as the second sub-priority.

[0090] In another implementation example, when using the Bluetooth communication protocol, the atomic frames sent by the Bluetooth broadcast channel belong to the second level of transmission time determination because they are sent on demand; thus, when determining the second transmission priority for the atomic frames sent using the Bluetooth broadcast channel, the embodiment of the present application may set the sub-priority of the atomic frames used for network configuration to be higher than the sub-priority of the atomic frames used to carry data content. For example, when determining the second transmission priority for the atomic frames sent using the Bluetooth broadcast channel, the embodiment of the present application may determine that the atomic frames used for network configuration are the first sub-priority and the atomic frames used to carry data content are the second sub-priority.

[0091] In an implementation example, taking the coexistence of WiFi and Bluetooth communication protocols in IoT devices as an example, the transmission priority of atomic frames can be as follows: (atomic frames sent using Bluetooth data channel = atomic frames received using Bluetooth data channel) > (management frames and control frames sent using WiFi = atomic frames for network configuration sent using Bluetooth broadcast channels) > (data frames sent using WiFi = atomic frames for carrying data content sent using Bluetooth broadcast channels) > (atomic frames received using Bluetooth broadcast channels = atomic frames received using WiFi).

[0092] Taking the example that the transmission priority is divided into three levels and the second transmission priority is divided into two sub-priorities, the following Table 1 exemplarily shows examples of transmission priorities of various types of atomic frames.

[0093]

[0094] Table 1

[0095] In some further embodiments, since the transmission time of the atomic frame of the third transmission priority is determined to the lowest degree, for example, the transmission mode of the atomic frame of the third transmission priority is to wait for reception when not sending, in order to reasonably allocate resources when receiving the atomic frame of the third transmission priority, the embodiment of the present application can also allocate a duty cycle for the communication protocol used by the atomic frame based on the transmission scenario of the atomic frame for the atomic frame of the third transmission priority. Among them, when multiple wireless communication protocols coexist, the duty cycle refers to the proportion of various wireless communication protocols in unit time (such as the proportion of time); the larger the duty cycle of the communication protocol used by an atomic frame, the more resources and time the communication protocol occupies in unit time. As an optional implementation, Figure 6 The flowchart of the optional method for allocating duty cycle provided in the embodiment of the present application is exemplarily shown. The method flow can be executed for the atomic frame of the third transmission priority after determining the third transmission priority for the atomic frame, referring to Figure 6 The method flow may include the following steps.

[0096] In step S610, for the atomic frame of the third transmission priority, a transmission scenario of the atomic frame is determined.

[0097] In step S611, the duty cycle assigned by the communication protocol used by the atomic frame is determined according to the transmission scenario of the atomic frame; wherein the importance of the transmission scenario of the atomic frame is positively correlated with the duty cycle assigned by the communication protocol used by the atomic frame.

[0098] In an embodiment of the present application, for non-deterministic receiving actions at the bottom layer of the link layer (for example, the case where the link layer receives an atomic frame of the third transmission priority), the embodiment of the present application can determine the duty cycle assigned by the communication protocol used by the atomic frame according to the transmission scenario of the atomic frame received by the link layer, so that the more important the transmission scenario of the atomic frame, the higher the duty cycle assigned by the communication protocol. In other words, the importance of the transmission scenario of the atomic frame is positively correlated with the duty cycle assigned by the communication protocol used by the atomic frame.

[0099] As an optional implementation, the embodiment of the present application can divide the transmission scenarios of atomic frames into network management and configuration scenarios, business data communication scenarios, and low-priority transmission scenarios; wherein, the network management and configuration scenarios can be scenarios related to network establishment, management, and configuration, such as WiFi connection to routers, IoT devices and cloud establishment of remote long links and authentication, Bluetooth Mesh network configuration and other scenarios. The business data communication scenario is mainly used for business control scenarios of IoT devices, such as switch control of IoT devices, device status reporting and other scenarios. In the low-priority transmission scenario, the IoT device transmits a small amount of data or no data. For example, the IoT device is in a low-power sleep state and enters a low-priority transmission scenario.

[0100] Optionally, the network management and configuration scenario may have the highest importance. Therefore, for the atomic frame with the third transmission priority, if the transmission scenario of the atomic frame is the network management and configuration scenario, a first proportion of duty cycle may be allocated to the communication protocol used by the atomic frame; the business data communication scenario may have the second highest importance. Therefore, for the atomic frame with the third transmission priority, if the transmission scenario of the atomic frame is the business data communication scenario, a second proportion of duty cycle may be allocated to the communication protocol used by the atomic frame, wherein the first proportion of duty cycle is greater than the second proportion of duty cycle; the low priority transmission scenario may have the lowest importance. Therefore, for the atomic frame with the third transmission priority, if the transmission scenario of the atomic frame is the low priority transmission scenario, a third proportion of duty cycle may be allocated to the communication protocol used by the atomic frame, wherein the second proportion of duty cycle is greater than the third proportion of duty cycle. In a further optional implementation, the total value of the duty cycle of the first proportion, the duty cycle of the second proportion, and the duty cycle of the third proportion is a set value (e.g., 1), so that the duty cycle of the first proportion, the duty cycle of the second proportion, and the third proportion are distributed within the range of the set value, and the duty cycle of the first proportion is greater than the duty cycle of the second proportion, and the duty cycle of the second proportion is greater than the duty cycle of the third proportion. For example, the duty cycle of the first proportion, the duty cycle of the second proportion, and the duty cycle of the third proportion are distributed within the range of 0 to 1, and the total value is 1, and the duty cycle of the first proportion is greater than the duty cycle of the second proportion, and the duty cycle of the second proportion is greater than the duty cycle of the third proportion.

[0101] It should be noted that the duty cycle is the proportion of the communication protocol used per unit time, so the allocation of the communication protocol per unit time of the duty cycle must be coordinated. Based on this, after determining the duty cycle of the communication protocol used by the atomic frame of the third transmission priority, the embodiment of the present application can further set the scanning window length of the communication protocol used by the atomic frame per unit time based on the duty cycle allocated by the communication protocol used by the atomic frame. As an optional implementation, the scanning window length of the communication protocol used by the atomic frame is less than the product of the duty cycle allocated by the communication protocol and the unit time.

[0102] In an implementation example, for the atomic frame of the third transmission priority, after determining the duty cycle assigned by the communication protocol used by the atomic frame, if the atomic frame uses the Bluetooth communication protocol, the scan window length of the Bluetooth communication protocol must match the unit time, so that this example can set the scan window length of the Bluetooth communication protocol to: 0 < (scan window length of the Bluetooth communication protocol) < (unit time * duty cycle of the Bluetooth communication protocol). For example, taking the batch network configuration of Bluetooth mesh devices as an example, there are a large number of Bluetooth Mesh device broadcast frame interactions during network configuration, and if WiFi has no transmission task executing at this time, the transmission frequency of WiFi data is relatively low, so according to the importance of the network configuration scenario of the Bluetooth Mesh device, the duty cycle within the unit time (100 milliseconds) can be allocated to a duty cycle occupied by Bluetooth that is higher than the duty cycle occupied by WiFi (for example, Bluetooth occupies 80 milliseconds and WiFi occupies 20 milliseconds); further, the embodiment of the present application can reduce the mutual interference between WiFi and Bluetooth, so that the RF coexistence performance of WiFi and Bluetooth is improved, and the success rate of batch network configuration of Bluetooth Mesh devices is improved.

[0103] It should be noted that for the atomic frames of the third transmission priority, the IoT device opens a receiving window when it is not sending to wait for receiving the atomic frames; although the IoT device opens a receiving window to receive the atomic frames that the sender may send at any time, even if the link layer's receiving window is opened, the link layer may not be able to receive the atomic frames; for example, if the sender does not send the atomic frame during the opening period of the receiving window, the IoT device cannot receive the atomic frame during the opening period of the receiving window.

[0104] It should be further explained that, for the three-level transmission priority set in the embodiment of the present application, the atomic frame corresponding to the first transmission priority is processed regularly (for example, regularly sent or regularly received), so the atomic frame corresponding to the first transmission priority can be processed quickly; the atomic frame corresponding to the second transmission priority is processed on demand (for example, sent on demand), so as long as the atomic frame starts to be sent, the processing of the atomic frame can also be completed quickly; and in the case of the third transmission priority, the IoT device opens the receiving window to wait for the reception of the atomic frame, which is parallel to the first transmission priority and the second transmission priority, and the opening of the receiving window is generally longer, so the atomic frame with a higher transmission priority (for example, the atomic frame of the first transmission priority and the second transmission priority) can seize the radio frequency resources at any time. Further, in the case of the third transmission priority, the use of resources of the receiving window under different communication protocols such as WiFi and Bluetooth is determined by adjusting the duty cycle to determine the priority of WiFi using the receiving window and the priority of Bluetooth using the receiving window; that is, the priority of using the receiving window by different communication protocols such as WiFi and Bluetooth is reflected in the allocated duty cycle.

[0105] The solution provided by the embodiment of the present application can arbitrate the transmission priority of the atomic frame based on the transmission time certainty of the atomic frame to be transmitted at the link layer, so that the atomic frame with a higher degree of transmission time certainty has a higher transmission priority; it can provide a general and standardized data transmission control scheme at the bottom layer of the link layer. Further, the embodiment of the present application is for the atomic frame of the third transmission priority (corresponding to the action of receiving the atomic frame at the bottom layer of the link layer, for example, the link layer receives the atomic frame by waiting for reception when not sending), and can allocate a duty cycle for the communication protocol of the atomic frame based on the importance of the transmission scenario of the atomic frame, so that in the case of coexistence of multiple wireless communication protocols, the resource occupancy time of various wireless communication protocols can be further reasonably allocated, and the transmission success rate of the atomic frame of the important transmission scenario can be improved, thereby further improving the performance of the IoT device. The embodiment of the present application can improve the RF performance of the coexistence of multiple wireless communication protocols for extremely low-cost IoT devices in a relatively short time, and improve the performance of IoT devices.

[0106] It should be noted that the coexisting multiple wireless communication protocols referred to in the embodiments of the present application can be extended to the situation where multiple other wireless communication protocols coexist, in addition to the exemplified WiFi and Bluetooth.

[0107] The following is an introduction to the data transmission control device provided in the embodiment of the present application. The device content described below can be considered as the functional modules that the IoT device needs to set up to implement the data transmission control method provided in the embodiment of the present application. The device content described below can be referenced to the method content described above.

[0108] As an optional implementation, Figure 7 An optional block diagram of a data transmission control device provided in an embodiment of the present application is shown exemplarily, and the device can be applied to IoT devices, referring to Figure 7 , the device may include:

[0109] The atomic frame determination module 710 is used to determine a plurality of atomic frames to be currently transmitted at the link layer, wherein the link layer supports a plurality of wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocol;

[0110] A transmission time certainty degree determination module 711, used to determine the transmission time certainty degree of each atomic frame, the transmission time certainty degree of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame;

[0111] A transmission priority determination module 712, configured to determine the transmission priority of each atomic frame according to the transmission time determination degree of each atomic frame, wherein the transmission time determination degree of the atomic frame is positively correlated with the transmission priority of the atomic frame;

[0112] The transmission module 713 is used to transmit the multiple atomic frames according to the transmission priority of each atomic frame.

[0113] In some embodiments, the transmission time certainty determination module 711 is used to determine the transmission time certainty of each atomic frame, including:

[0114] For any atomic frame, determine the transmission mode of the atomic frame according to the wireless communication protocol, transmission type and transmission channel of the atomic frame;

[0115] According to the transmission mode of the atomic frame, the degree of certainty of the transmission time of the atomic frame is determined.

[0116] In some embodiments, the transmission type of the atomic frame includes sending the atomic frame or receiving the atomic frame; the transmission mode of the atomic frame includes any one of scheduled sending, scheduled receiving, on-demand sending and waiting for receiving when not sending.

[0117] In some embodiments, the transmission time certainty of atomic frames whose transmission mode is scheduled sending and scheduled receiving is higher than that of atomic frames whose transmission mode is on-demand sending; the transmission time certainty of atomic frames whose transmission mode is on-demand sending is higher than that of atomic frames waiting to be received when the transmission mode is non-sending.

[0118] In some embodiments, the transmission time certainty determination module 711 is configured to determine the transmission time certainty of the atomic frame according to the transmission mode of the atomic frame, including:

[0119] For any atomic frame, if the transmission mode of the atomic frame is scheduled transmission or scheduled reception, the first level of transmission time certainty is determined for the atomic frame; if the transmission mode of the atomic frame is on-demand transmission, the second level of transmission time certainty is determined for the atomic frame; if the transmission mode of the atomic frame is waiting for reception when not transmitting, the third level of transmission time certainty is determined for the atomic frame;

[0120] Among them, the first level transmission time certainty is higher than the second level transmission time certainty, and the second level transmission time certainty is higher than the third level transmission time certainty.

[0121] In some embodiments, the transmission priority determination module 712 is used to determine the degree according to the transmission time of each atomic frame, and the transmission priority of each atomic frame includes:

[0122] If the atomic frame has a first level of transmission time certainty, a first transmission priority is determined for the atomic frame; if the atomic frame has a second level of transmission time certainty, a second transmission priority is determined for the atomic frame; if the atomic frame has a third level of transmission time certainty, a third transmission priority is determined for the atomic frame;

[0123] Among them, the first transmission priority is higher than the second transmission priority, and the second transmission priority is higher than the third transmission priority.

[0124] In some embodiments, the plurality of wireless communication protocols include WiFi and Bluetooth communication protocols; a transmission time certainty level determination module 711, configured to determine a first level of transmission time certainty level for an atomic frame if the transmission mode of the atomic frame is timed transmission or timed reception, comprises: determining a first level of transmission time certainty level for an atomic frame sent or received using a Bluetooth data channel;

[0125] The transmission time certainty degree determination module 711 is used to determine the second level of transmission time certainty degree for the atomic frame if the transmission mode of the atomic frame is on-demand transmission, including: determining the second level of transmission time certainty degree for the atomic frame sent using the Bluetooth broadcast channel or the atomic frame sent using the WiFi communication protocol;

[0126] The transmission time certainty degree determination module 711 is used to determine the third level of transmission time certainty for the atomic frame if the transmission mode of the atomic frame is waiting for reception when not sending, including: determining the third level of transmission time certainty for the atomic frame received using the Bluetooth broadcast channel or the atomic frame received using the WiFi communication protocol.

[0127] In some embodiments, the transmission priority determination module 712 is used to determine the second transmission priority for the atomic frame if the atomic frame is of the second level transmission time determination degree, including: determining the function of the atomic frame for the atomic frame of the second level transmission time determination degree; determining the sub-priority corresponding to the atomic frame in the second transmission priority according to the function of the atomic frame; wherein the second transmission priority includes multiple sub-priorities, and the priority of the sub-priority is positively correlated with the functional priority of the atomic frame.

[0128] In some embodiments, the multiple sub-priorities include a first sub-priority and a second sub-priority, and the first sub-priority is higher than the second sub-priority; the transmission priority determination module 712 is used to determine, according to the function of the atomic frame, the sub-priority corresponding to the atomic frame in the second transmission priority, including:

[0129] For the atomic frame with the second-level transmission time determination degree, if the function of the atomic frame is to be used for network management and configuration, then the atomic frame is determined to correspond to the first sub-priority in the second transmission priority; if the function of the atomic frame is to be used for data carrying, then the atomic frame is determined to correspond to the second sub-priority in the second transmission priority.

[0130] In some embodiments, the transmission priority determination module 712 is configured to determine that the atomic frame corresponds to the first sub-priority in the second transmission priority if the function of the atomic frame is for network management and configuration, including:

[0131] If the atomic frame is a management frame or a control frame of WiFi, determine that the atomic frame corresponds to a first sub-priority;

[0132] If the atomic frame is an atomic frame that uses the Bluetooth broadcast channel and is used for network configuration, it is determined that the atomic frame corresponds to the first sub-priority.

[0133] In some embodiments, the transmission priority determination module 712 is configured to determine that the atomic frame corresponds to the second sub-priority in the second transmission priority if the function of the atomic frame is to carry data, including:

[0134] If the atomic frame is a WiFi data frame, determine that the atomic frame corresponds to the second sub-priority level;

[0135] If the atomic frame is an atomic frame that uses the Bluetooth broadcast channel and is used to carry data content, it is determined that the atomic frame corresponds to the second sub-priority.

[0136] In some further embodiments, the device can also be used to: determine the transmission scenario of the atomic frame with a third transmission priority; determine the duty cycle assigned by the communication protocol used by the atomic frame according to the transmission scenario of the atomic frame; wherein the importance of the transmission scenario of the atomic frame is positively correlated with the duty cycle assigned by the communication protocol used by the atomic frame.

[0137] In some embodiments, the apparatus is used to determine the duty cycle allocated by the communication protocol used by the atomic frame according to the transmission scenario of the atomic frame, including:

[0138] If the transmission scenario of the atomic frame is a network management and configuration scenario, a first duty cycle is allocated to the communication protocol used by the atomic frame; if the transmission scenario of the atomic frame is a business data communication scenario, a second duty cycle is allocated to the communication protocol used by the atomic frame; if the transmission scenario of the atomic frame is a low priority transmission scenario, a third duty cycle is allocated to the communication protocol used by the atomic frame;

[0139] Among them, the duty cycle of the first proportion is greater than the duty cycle of the second proportion, and the duty cycle of the second proportion is greater than the duty cycle of the third proportion; the total value of the duty cycle of the first proportion, the duty cycle of the second proportion and the duty cycle of the third proportion is the set value.

[0140] In some further embodiments, the device can also be used for:

[0141] Based on the duty cycle assigned by the communication protocol used by the atomic frame, the scanning window length per unit time of the communication protocol used by the atomic frame is set; wherein the scanning window length of the communication protocol used by the atomic frame is less than the product of the duty cycle assigned by the communication protocol and the unit time.

[0142] The present application also provides an IoT device, which can be equipped with the data transmission control device provided in the present application to implement the data transmission control method provided in the present application. As an optional implementation, Figure 8 An exemplary block diagram of an optional structure of an IoT device provided in an embodiment of the present application is shown, Figure 8 As shown, the IoT device may include: at least one processor 81, at least one communication interface 82, at least one memory 83 and at least one communication bus 84.

[0143] In the embodiment of the present application, the number of the processor 81 , the communication interface 82 , the memory 83 , and the communication bus 84 is at least one, and the processor 81 , the communication interface 82 , and the memory 83 communicate with each other through the communication bus 84 .

[0144] Optionally, the communication interface 82 may be an interface of a communication module for performing network communication.

[0145] Optionally, the processor 81 may be a CPU, a GPU (Graphics Processing Unit), an NPU (embedded neural network processor), an FPGA (Field Programmable Gate Array), a TPU (Tensor Processing Unit), an AI chip, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0146] The memory 83 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0147] The memory 83 stores one or more computer executable instructions, and the processor 81 calls the one or more computer executable instructions to execute the data transmission control method provided in the embodiment of the present application.

[0148] An embodiment of the present application also provides a storage medium, which can store one or more computer-executable instructions. When the one or more computer-executable instructions are executed, the data transmission control method provided in the embodiment of the present application is implemented.

[0149] The embodiment of the present application also provides a computer program, which, when executed, implements the data transmission control method provided in the embodiment of the present application.

[0150] The above describes multiple implementation schemes provided by the embodiments of the present application. The various optional methods introduced in each implementation scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present application.

[0151] Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined by the claims.

Claims

1. A data transmission control method, wherein: include: Determine a plurality of atomic frames to be currently transmitted at a link layer, wherein the link layer supports a plurality of wireless communication protocols, wherein the atomic frames are packaged at the link layer based on the wireless communication protocol; Determine the transmission time certainty of each atomic frame, wherein the transmission time certainty of the atomic frame is associated with the wireless communication protocol, transmission type and transmission channel of the atomic frame; wherein the transmission mode of the atomic frame includes any one of scheduled transmission, scheduled reception, on-demand transmission and waiting for reception when not transmitting, and the transmission modes of scheduled transmission and scheduled reception of the atomic frame have the highest transmission time certainty; Determining the transmission priority of each atomic frame according to the transmission time certainty of each atomic frame, wherein the transmission time certainty of the atomic frame is positively correlated with the transmission priority of the atomic frame; The multiple atomic frames are transmitted according to the transmission priority of each atomic frame.

2. The method according to claim 1, wherein: Determining the transmission time certainty of each atomic frame includes: For any atomic frame, determine the transmission mode of the atomic frame according to the wireless communication protocol, transmission type and transmission channel of the atomic frame; According to the transmission mode of the atomic frame, the degree of certainty of the transmission time of the atomic frame is determined.

3. The method according to claim 2, wherein: The transmission type of the atomic frame includes sending the atomic frame or receiving the atomic frame.

4. The method according to claim 3, wherein: Determining the degree of certainty of the transmission time of the atomic frame according to the transmission mode of the atomic frame includes: For any atomic frame, if the transmission mode of the atomic frame is scheduled transmission or scheduled reception, the first level of transmission time certainty is determined for the atomic frame; if the transmission mode of the atomic frame is on-demand transmission, the second level of transmission time certainty is determined for the atomic frame; if the transmission mode of the atomic frame is waiting for reception when not transmitting, the third level of transmission time certainty is determined for the atomic frame; Among them, the first level transmission time certainty is higher than the second level transmission time certainty, and the second level transmission time certainty is higher than the third level transmission time certainty.

5. The method according to claim 4, wherein: The step of determining the transmission priority of each atomic frame according to the transmission time of each atomic frame includes: If the atomic frame has a first level of transmission time certainty, a first transmission priority is determined for the atomic frame; if the atomic frame has a second level of transmission time certainty, a second transmission priority is determined for the atomic frame; if the atomic frame has a third level of transmission time certainty, a third transmission priority is determined for the atomic frame; Among them, the first transmission priority is higher than the second transmission priority, and the second transmission priority is higher than the third transmission priority.

6. The method according to claim 4 or 5, wherein: The multiple wireless communication protocols include WiFi and Bluetooth communication protocols; if the transmission mode of the atomic frame is timed transmission or timed reception, determining the first level of transmission time certainty for the atomic frame includes: determining the first level of transmission time certainty for the atomic frame sent or received using a Bluetooth data channel; If the transmission mode of the atomic frame is on-demand transmission, determining the second level transmission time certainty for the atomic frame includes: determining the second level transmission time certainty for the atomic frame sent using a Bluetooth broadcast channel or an atomic frame sent using a WiFi communication protocol; If the transmission mode of the atomic frame is waiting for reception when not sending, determining the third level transmission time certainty for the atomic frame includes: determining the third level transmission time certainty for the atomic frame received using the Bluetooth broadcast channel or the atomic frame received using the WiFi communication protocol.

7. The method according to claim 5, wherein: If the atomic frame is at the second level of transmission time determination, determining the second transmission priority for the atomic frame includes: For the atomic frame with a second-level transmission time determination degree, the function of the atomic frame is determined; based on the function of the atomic frame, the sub-priority corresponding to the atomic frame in the second transmission priority is determined; wherein the second transmission priority includes multiple sub-priorities, and the priority of the sub-priority is positively correlated with the functional priority of the atomic frame.

8. The method according to claim 7, wherein: The multiple sub-priorities include a first sub-priority and a second sub-priority, the first sub-priority being higher than the second sub-priority; and the determining, according to the function of the atomic frame, the sub-priority corresponding to the atomic frame in the second transmission priority includes: For the atomic frame with the second-level transmission time determination degree, if the function of the atomic frame is to be used for network management and configuration, then the atomic frame is determined to correspond to the first sub-priority in the second transmission priority; if the function of the atomic frame is to be used for data carrying, then the atomic frame is determined to correspond to the second sub-priority in the second transmission priority.

9. The method according to claim 5, wherein: Also includes: For the atomic frame of the third transmission priority, determining a transmission scenario of the atomic frame; According to the transmission scenario of the atomic frame, the duty cycle allocated by the communication protocol used by the atomic frame is determined; wherein the importance of the transmission scenario of the atomic frame is positively correlated with the duty cycle allocated by the communication protocol used by the atomic frame.

10. The method according to claim 9, wherein: Determining the duty cycle allocated by the communication protocol used by the atomic frame according to the transmission scenario of the atomic frame includes: If the transmission scenario of the atomic frame is a network management and configuration scenario, a first duty cycle is allocated to the communication protocol used by the atomic frame; if the transmission scenario of the atomic frame is a business data communication scenario, a second duty cycle is allocated to the communication protocol used by the atomic frame; if the transmission scenario of the atomic frame is a low priority transmission scenario, a third duty cycle is allocated to the communication protocol used by the atomic frame; Among them, the duty cycle of the first proportion is greater than the duty cycle of the second proportion, and the duty cycle of the second proportion is greater than the duty cycle of the third proportion; the total value of the duty cycle of the first proportion, the duty cycle of the second proportion and the duty cycle of the third proportion is the set value.

11. An IoT device, wherein: It comprises at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the data transmission control method according to any one of claims 1 to 10.

12. A storage medium, wherein: The storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the data transmission control method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Graceful coexistence for multiple communication protocols

    CN106068035A

  • Coexistence processing method and system of multiple communication systems for Internet of Things chip

    CN114095589A