Time slot synchronization method, time slot allocation method, communication method and system thereof

By calculating the time and relative time synchronization of beacons in real time, combining adaptive time slot allocation and channel activity detection, the problems of time synchronization and time slot alignment in low-power communication are solved, and lower node power consumption and higher Communication efficiency.

CN119012336BActive Publication Date: 2025-02-14BEIJING SMARTCHIP SEMICON TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411480890.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-14
Estimated Expiration
2044-10-23

AI Technical Summary

Technical Problem

In the existing low-power communication technology, time synchronization between nodes and gateways is difficult to accurately implement, resulting in packets that may fall outside the node reception time slot, affecting data transmission and reception efficiency. In addition, time synchronization cannot be performed when the node module does not support time configuration. .

Method used

By calculating the time spent on beacon sending and receiving beacons in real time, using relative time to realize the relative time synchronization between the gateway and the node, adopting gateway-led adaptive dynamic allocation of node paging time slots, and performing channel activity detection in the node module to avoid Message conflict.

Benefits of technology

Accurate time and time slot synchronization between gateways and nodes is realized, reducing node wake-up time and power consumption, and improving slot utilization and communication success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012336B_ABST
    Figure CN119012336B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communication technology, and discloses a time slot synchronization method, a time slot allocation method, a communication method and a system thereof. The time slot synchronization method comprises: in a beacon time slot in a current beacon cycle, receiving a beacon frame in the current beacon cycle from a master node device and recording the receiving start time of the beacon frame in the current beacon cycle; obtaining the sending time of the beacon frame in the previous beacon cycle of the current beacon cycle from the beacon frame in the current beacon cycle; determining the starting time of the next beacon cycle of the current beacon cycle according to the sending time of the beacon frame in the current beacon cycle and the previous beacon cycle and the receiving start time of the beacon frame in the current beacon cycle; and performing time slot synchronization on the slave node device according to the starting time of the next beacon cycle of the current beacon cycle. The present invention realizes accurate time slot synchronization alignment and lower power consumption under the condition that the module does not support clock configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a time slot synchronization method, a time slot allocation method, a communication method and a system thereof. Background Art

[0002] The basic idea of ​​low-power communication technology is: when there is a need to send data, wake up the module to complete the sending task; when there is a need to receive data, wake up the module to complete the receiving task; at other times, the modules are in sleep or shutdown state, so as to achieve the purpose of reducing power consumption. In theory, the longer the sleep time per unit time, the lower the power consumption of the module, and the node module cannot send or receive data in sleep state. To realize the communication between the gateway module and the node in low-power working mode, the node needs to wake up the module and open the receiving window within the agreed time slot. For the gateway to send messages accurately within the node receiving window, first of all, it is necessary to achieve time synchronization between the gateway and the node, and secondly, it is necessary to ensure that the gateway and the node send and receive time slots are accurately aligned.

[0003] The network formed by the low-power communication module uses the gateway time as the reference time for the entire network. Figure 1 As shown in the figure, the gateway sends a beacon frame in the beacon slot, carrying the gateway's current time t0. The node receives the gateway's beacon frame and obtains the gateway time t0 carried in the beacon frame. The gateway time t0 plus a certain delay T delay1 It can be regarded as the current time of the network, that is, t1≈t0+T delay1 The node synchronizes its own time to the current network time, thereby achieving synchronization between the node time and the gateway time. The working principle of the existing gateway and node time synchronization is as follows: Figure 1 As shown. However, there is a certain time difference between the sending and receiving of beacon frames between nodes and gateways. Although the existing scheme takes a certain delay into account when synchronizing the node time, the delay of sending and receiving beacon frames cannot be accurately predicted and has large fluctuations due to factors such as the network scale, the number of gateway messages to be sent, and the channel quality. This will cause a large deviation between the synchronized node time and the gateway time, affecting the alignment of the subsequent message sending and receiving time slots, and further causing the message sent by the gateway to fall outside the node receiving time slot. In addition, this must require the node module to support time configuration and have a high clock accuracy. When the node module does not support time configuration, the existing time synchronization scheme will not be able to solve the problem of node and gateway time synchronization, and thus cannot achieve the time slot alignment of data sending and receiving in the node low-power working mode. Summary of the invention

[0004] The purpose of the present invention is to provide a time slot synchronization method, a time slot allocation method, a communication method and a system thereof, which do not require absolute time alignment between nodes and gateways, utilize the relative time from the data transmission and reception time to the reference time, complete the relative time synchronization between the gateway and the node, and fully solve the problem that the node module cannot perform time synchronization when the clock and time configuration are not supported. In addition, all time parameters are obtained through real-time calculation, with a small delay error, and realize accurate synchronization of the relative time and the transmission and reception time slots of the gateway and the node. Accurate time slot synchronization can reduce the node wake-up time and further reduce the node power consumption.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a time slot synchronization method, which is executed by a slave node device, and the time slot synchronization method includes: in a beacon time slot within a current beacon cycle, receiving a beacon frame within the current beacon cycle from a master node device and recording a receiving start time of the beacon frame within the current beacon cycle; obtaining the sending time of the beacon frame within the previous beacon cycle of the current beacon cycle from the beacon frame within the current beacon cycle; determining the start time of the next beacon cycle of the current beacon cycle based on the sending time of the beacon frame within the current beacon cycle and the previous beacon cycle, and the receiving start time of the beacon frame within the current beacon cycle; and performing time slot synchronization on the slave node device based on the start time of the next beacon cycle of the current beacon cycle.

[0006] Through the above technical scheme, the present invention creatively calculates the time taken for beacon sending and beacon receiving in real time without changing the gateway and node time, and takes the gateway beacon cycle start time as a reference to obtain the relative time taken for the start time of the network access confirmation message to the start of the beacon cycle, thereby calculating the precise time for the start of the next beacon cycle, completing the relative synchronization of the gateway and node time, and accurate time slot synchronization can reduce the node wake-up time and further reduce the node power consumption. The time slot synchronization method provided by the present invention can support more types of low-power modules, has a smaller time slot synchronization deviation, and the node has less wireless duty cycle and power consumption.

[0007] A second aspect of the present invention provides a time slot allocation method, which is executed by a slave node device, and the time slot allocation method includes: performing time slot synchronization according to the time slot synchronization method; receiving a beacon frame from a master node device within a beacon slot of a target beacon period, wherein the beacon frame includes a paging slot quantity index and a paging slot period, and the paging slot quantity index is adaptively configured according to network conditions; and determining the time slot number occupied by the slave node device in the target beacon period based on the number of the slave node device, the paging slot quantity index and the paging slot period.

[0008] Through the above technical scheme, the present invention creatively uses the above time slot synchronization method through the node to complete relative time synchronization and beacon time slot alignment with the gateway, and adaptively and dynamically allocates node paging time slots with the gateway as the leader, and transmits the paging time slot quantity index and the paging time slot cycle to the node through the beacon frame. The node can determine the time slot number of the node according to the received paging time slot quantity index and the paging time slot cycle as well as its own number. Compared with the existing strategy of the node leading its own time slot arrangement, the present invention can adjust the time slot allocation in real time according to the node time slot usage, improve the time slot utilization rate, and reduce the power consumption of the node module.

[0009] A third aspect of the present invention provides a communication method, which is executed by a slave node device, and the communication method includes: allocating time slots according to the time slot allocation method; and communicating according to the allocated time slots.

[0010] Through the above technical scheme, the present invention creatively allocates time slots according to the time slot allocation method; and communicates according to the allocated time slots. Since the number of node wake-up times is reduced during communication, the wireless duty cycle of the node is reduced, and the time slot allocation is adjusted in real time according to the node time slot usage, thereby improving the time slot utilization rate and reducing the communication power consumption.

[0011] The fourth aspect of the present invention provides a time slot synchronization system, which is executed by a slave node device, and the time slot synchronization system includes: a receiving device, which is used to receive the beacon frame in the current beacon cycle from the master node device in the beacon time slot in the current beacon cycle and record the reception start time of the beacon frame in the current beacon cycle; an acquisition device, which is used to acquire the sending time of the beacon frame in the previous beacon cycle of the current beacon cycle from the beacon frame in the current beacon cycle; a determination device, which is used to determine the start time of the next beacon cycle of the current beacon cycle based on the sending time of the beacon frame in the current beacon cycle and the previous beacon cycle and the reception start time of the beacon frame in the current beacon cycle; and a synchronization device, which is used to perform time slot synchronization on the slave node device according to the start time of the next beacon cycle of the current beacon cycle.

[0012] For specific details and benefits of the time slot synchronization system provided by the embodiment of the present invention, please refer to the above description of the time slot synchronization method, which will not be repeated here.

[0013] The fifth aspect of the present invention provides a time slot allocation system, which is executed by a slave node device, and the time slot allocation system includes: the time slot synchronization system, which is used to perform time slot synchronization; a receiving device, which is used to receive a beacon frame from a master node device within a beacon slot of a target beacon period, wherein the beacon frame includes a paging slot quantity index and a paging slot period; and a number determination device, which is used to determine the time slot number occupied by the slave node device in the target beacon period based on the number of the slave node device, the paging slot quantity index and the paging slot period.

[0014] For specific details and benefits of the time slot allocation system provided by the embodiment of the present invention, please refer to the above description of the time slot allocation method, which will not be repeated here.

[0015] A sixth aspect of the present invention provides a communication system executed by a slave node device, the communication system comprising: the time slot allocation system described above, for performing time slot allocation; and a communication device, for performing communication according to the allocated time slots.

[0016] For specific details and benefits of the embodiments of the present invention applicable to the communication system, please refer to the above description of the communication method, which will not be repeated here.

[0017] A seventh aspect of the present invention provides a slave node device, which includes an execution device for executing the time slot synchronization method, the time slot allocation method and / or the communication method.

[0018] An eighth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the time slot synchronization method, the time slot allocation method and / or the communication method are implemented.

[0019] A ninth aspect of the present invention provides a chip, comprising: a processor; and a memory for storing a computer program executed by the processor, wherein the processor is used to read the computer program from the memory and execute the computer program to implement the time slot synchronization method, the time slot allocation method and / or the communication method.

[0020] A tenth aspect of the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the time slot synchronization method, the time slot allocation method and / or the communication method.

[0021] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0023] Figure 1 It is a schematic diagram of the existing time slot synchronization principle;

[0024] Figure 2 It is a schematic diagram of the structure of a wireless communication system;

[0025] Figure 3 is a flow chart of a time slot synchronization method provided by an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of beacon sending time provided by an embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of a time slot synchronization principle provided by an embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of a time slot coarse synchronization principle provided by an embodiment of the present invention;

[0029] Figure 7 It is a schematic diagram of the existing node paging time slot division;

[0030] Figure 8 An embodiment of the present invention provides an adaptive dynamic allocation of node paging time slots;

[0031] Fig. 9 It is a schematic diagram of a node broadcast time slot allocation principle provided by an embodiment of the present invention;

[0032] Fig.10 is a schematic diagram of an existing node uplink message sending time slot; and

[0033] Fig.11 It is a schematic diagram of a node uplink transmission time slot provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0035] Before introducing the specific contents of each embodiment of the present invention, a low-power wireless communication system is briefly described.

[0036] The low-power wireless communication system is mainly composed of gateway nodes, relay nodes and terminal nodes, which is a typical star network structure, such as Figure 2As shown. Multiple terminal nodes communicate directly with the gateway node, or the terminal nodes communicate with the gateway node through the relay node. The gateway node is the master node device of the low-power wireless communication system, which has the functions of time slot allocation calculation, control networking and network maintenance management. Its corresponding devices are other communication units, such as 5G, TCP / IP, etc. The relay node is the slave node device of the low-power wireless communication system, which has the function of data forwarding. The terminal node is the slave node device of the low-power wireless communication system, which has the functions of power consumption control calculation, self-organizing network and terminal access. Its corresponding devices are various sensor terminals, water meters, electricity meters, gas meters and other equipment entities.

[0037] It should be noted that the gateway in each embodiment of the present invention refers to a gateway node or a master node device, and the node is a slave node device, which includes a relay node and / or a terminal node.

[0038] Figure 3 FIG. 1 is a flow chart of a time slot synchronization method provided by an embodiment of the present invention. The time slot synchronization method is executed by a slave node device. Figure 3 As shown, the time slot synchronization method includes: step S301, in the beacon time slot of the current beacon cycle, receiving the beacon frame in the current beacon cycle from the master node device and recording the receiving start time of the beacon frame in the current beacon cycle; step S302, obtaining the sending time of the beacon frame in the previous beacon cycle of the current beacon cycle from the beacon frame in the current beacon cycle; step S303, determining the start time of the next beacon cycle of the current beacon cycle according to the sending time of the beacon frame in the current beacon cycle, the previous beacon cycle and the receiving start time of the beacon frame in the current beacon cycle; and step S304, performing time slot synchronization on the slave node device according to the start time of the next beacon cycle of the current beacon cycle.

[0039] The following explains and illustrates each of the above steps.

[0040] Step S301, in a beacon timeslot in a current beacon period, receiving a beacon frame in the current beacon period from a master node device and recording a start time of receiving the beacon frame in the current beacon period.

[0041] The gateway periodically sends beacon frames in the beacon time slot, which carry information such as the beacon sending time related to time slot synchronization. For example, in the current beacon period (whose start time is t n ) sends a beacon frame in the beacon time slot, such as Figure 4 Correspondingly, in the beacon time slot of the current beacon period, the node receives the beacon frame of the current beacon period and records the receiving start time t0 of the beacon frame of the current beacon period, as shown in Figure 5As shown. If the beacon frame reception completion time is t current , and then the beacon frame reception time T can be obtained rx , where T rx =(t current - t0). In actual operation, the beacon frame reception completion time t may be recorded or not recorded. current , because according to the following description, the receiving time t current It will be subtracted, so whether the changed data is recorded does not affect the implementation of the present invention.

[0042] Among them, the gateway is in the current beacon period (whose starting time is t n ) includes the beacon frame of the previous beacon period (whose start time is t (n-2) ) The time taken to send the beacon frame within tx(n-1) The beacon sending time carried in the beacon frame sent by the gateway can be obtained in the following way.

[0043] Specifically, the time taken to send a beacon frame in the last beacon period is determined according to the start time of the last beacon period and the completion time of sending the beacon frame in the last beacon period. (n-2) and beacon sending completion time t (n-1) , and calculate the time T tx(n-1) , where T tx(n-1) =(t (n-1) –t (n-2) ),like Figure 4 Usually, beacon frame packaging and transmission occur before transmission is completed. The current beacon frame carries the beacon transmission time T of the previous beacon slot. tx(n-1) The gateway calculates the time T from the completion of beacon transmission to the start of the beacon cycle in real time in each beacon time slot. txn (i.e., the time taken to send a beacon frame), where n is the number of beacon cycles, n ≥ 2, such as Figure 4 shown.

[0044] Step S302: Obtain, from the beacon frames in the current beacon period, the sending time of the beacon frame in the previous beacon period of the current beacon period.

[0045] According to the description of step S301, the gateway beacon frame carries the transmission time T of the beacon frame of the previous beacon cycle or beacon slot. tx(n-1) , so the node can obtain the sending time T of the beacon frame in the previous beacon period from the beacon frame it receives tx(n-1) .

[0046] Step S303, determining the start time of the next beacon cycle of the current beacon cycle according to the current beacon cycle, the sending time of the beacon frame in the previous beacon cycle, and the receiving start time of the beacon frame in the current beacon cycle.

[0047] The current beacon period is T beacon_period , the time t when the beacon frame reception is completed current (i.e. current time) The time from the start time of the next beacon period is T next_beacon , where T next_beacon = T beacon_period -(T tx(n-1) + T rx ) = T beacon_period -(T tx(n-1) + t current -t0), such as Figure 5 shown.

[0048] Based on the current time of the node, the start time of the next beacon cycle of the node is t beacon_start , where t beacon_start = t current + T next_beacon =T beacon_period -(T tx(n-1) -t0).

[0049] Step S304: performing time slot synchronization on the slave node device according to the start time of the next beacon period of the current beacon period.

[0050] The node is based on the t obtained in step S303. beacon_start , can synchronize itself, thus achieving relative time synchronization between nodes and gateways and precise alignment of beacon time slots.

[0051] The time synchronization scheme proposed in this embodiment does not change the gateway and node time. It calculates the time taken to send and receive beacons in real time, and uses the gateway beacon cycle start time as a reference to obtain the relative time taken from the start time of the network access confirmation message to the start time of the beacon cycle. The precise start time of the next beacon cycle is thus calculated to complete the relative synchronization of the gateway and node time. Figure 5 shown.

[0052] This embodiment does not require absolute time alignment between the node and the gateway, but uses the relative time from the data transmission and reception time to the reference time to complete the relative time synchronization between the gateway and the node, which fully solves the problem that the node module cannot perform time synchronization when the clock and time configuration is not supported. In addition, all time parameters in this embodiment are obtained through real-time calculation, with a small delay error, and the accurate synchronization of the relative time and the transmission and reception time slots of the gateway and the node is achieved, avoiding the problem of large time deviation caused by the estimated delay of the prior art solution. Accurate time slot synchronization can reduce the wake-up time of the node module and further reduce the power consumption of the node module.

[0053] Of course, the above embodiment requires the node to complete the coarse synchronization of the beacon slot with the gateway at the access node to ensure that the node can receive the beacon frame. This is well known to those skilled in the art. However, in actual applications, different methods can be used for coarse synchronization. For example, Figure 1 The method shown, or the improved coarse synchronization method provided by the next embodiment of the present invention.

[0054] In one embodiment, the time slot synchronization method also includes: within a specific beacon period, receiving a network access confirmation message from the master node device and recording the start time of receiving the network access confirmation message, wherein the network access confirmation message includes an initial duration, and the initial duration is the duration from the start time of the specific beacon period to the start time when the master node device replies to the network access confirmation message; obtaining a first duration, wherein the first duration is the delay from the start time when the master node device replies to the network access confirmation message to the recorded start time of receiving the network access confirmation message; preliminarily determining the start time of the next beacon period of the specific beacon period based on the specific beacon period, the initial duration, the first duration and the recorded start time of receiving the network access confirmation message, wherein the next beacon period of the specific beacon period is earlier than or equal to the current beacon period; and performing time slot synchronization on the slave node device based on the start time of the next beacon period of the specific beacon period.

[0055] The next beacon period of the specific beacon period is equal to the current beacon period ( Figure 4 or Figure 5 The starting time is t n The beacon period of the gateway is taken as an example. That is, the gateway sends a beacon signal in the current beacon period ( Figure 4 or Figure 5 The starting time is t n The previous beacon cycle (whose start time is t0), such as Figure 6 As shown, it corresponds to Figure 4 t in (n-2)) sends a network access confirmation message. Accordingly, the node receives the network access confirmation message sent by the gateway in the previous beacon period and records the start time t2 of receiving the message, such as Figure 6 shown.

[0056] First, the node receives a network access confirmation message from the gateway, wherein the network access confirmation message includes the duration T0 from the start time t0 of the previous beacon period to the start time t1 when the master node device replies to the network access confirmation message. T0 carried by the network access message can be obtained in the following manner. Specifically, Figure 6 As shown, the gateway records the start time t0 of the beacon period in real time; after receiving the network access request message, the gateway starts to reply the network access confirmation message to the node, and the time at this time is recorded as t1; the gateway determines T0=(t1-t0) and carries the initial duration T0 in the network access confirmation message.

[0057] Next, the node records the time t2 when the network access confirmation message starts to be received. There is a certain delay between the time t1 when the gateway replies to the network access confirmation message and the time t2 when the node starts to receive the network access confirmation message, such as Figure 6 As shown, it is recorded as the first time length T1, and this time length T1 can be estimated by the existing testing method.

[0058] Then, if the time for the node to receive the network access confirmation message is t3 (this value can be recorded or not, and it can be subtracted according to the following description), then the time taken to receive the network access confirmation message is T2, where T2 = (t3-t2). The node can then calculate the next beacon period of this specific beacon period (i.e., corresponding to Figure 4 or Figure 5 The starting time is t n The start time of the beacon period is t3+T3, where T3= (T beacon_period – T0– T1- T2), such as Figure 6 As shown. Therefore, t3+T3=t3+ (T beacon_period – T0– T1- T2) = T beacon_period – T0– T1+t2.

[0059] Finally, the node can synchronize itself according to t3+T3, thus completing the rough synchronization of the beacon slot and the gateway during the network access phase. To ensure that the node successfully receives the gateway beacon frame, the value of T1 can be appropriately adjusted according to the module's own performance so that the gateway beacon frame falls into the node beacon slot.

[0060] like Figure 6 As shown in the figure, the detailed implementation steps of the time slot synchronization principle during the node access phase are as follows:

[0061] (1) After the node module is initially powered on, it is in sleep mode by default and the node cannot receive the gateway beacon. The gateway records the start time t0 of the beacon cycle in real time.

[0062] (2) The node initiates a network access request to the gateway. After a certain delay, the node module is awakened and put into a receiving state.

[0063] (3) After receiving the network access request message, the gateway starts to reply the network access confirmation message to the node. The time at this time is recorded as t1. Since the gateway replies to the node confirmation message multiplexes the downlink paging time slot or broadcast time slot, the number of times the node module is awakened can be reduced, further reducing the power consumption of the node module.

[0064] (4) The gateway access confirmation message carries time T0, where T0 = (t1-t0).

[0065] (5) The node records the time t2 when the network access confirmation message starts to be received. There is a certain delay between the time t1 when the gateway replies to the network access confirmation message and the time t2 when the node starts to receive the network access confirmation message, recorded as T1. This time is usually obtained through test calculation.

[0066] (6) The time when the node receives the network access confirmation message is t3, so the time taken to receive the network access confirmation message is T2, where T2=(t3-t2). The node can then calculate the start time of the next beacon cycle t3+T3, where T3=(T beacon_period – T0– T1- T2), t3+T3= T beacon_period – T0– T1+t2.

[0067] (7) During the node access phase, the beacon time slot is roughly synchronized with the gateway. To ensure that the node can successfully receive the gateway beacon frame, the value of T1 can be appropriately adjusted according to the module's own performance so that the gateway beacon frame falls into the node beacon time slot.

[0068] The multiplexing network access process of this embodiment realizes the initial synchronization of the node and the gateway beacon time slot, reduces the number of node wake-up times, reduces the wireless duty cycle of the node, and reduces the power consumption of the node module.

[0069] To sum up, the present invention creatively calculates the time taken for beacon sending and beacon receiving in real time without changing the gateway and node time, and uses the start time of the gateway beacon cycle as a reference to obtain the relative time from the start time of the network access confirmation message to the start of the beacon cycle, thereby calculating the precise start time of the next beacon cycle and completing the relative synchronization of the gateway and node time. Accurate time slot synchronization can reduce the node wake-up time and further reduce the node power consumption.

[0070] The node module that supports low power operation is in a dormant state except when actively sending and receiving data. The gateway cannot communicate with the node without knowing the node wake-up time. Usually, in order to meet the communication needs of the gateway and the node, the node will wake up the module for a certain period of time in the agreed receiving time slot to receive gateway data. In the existing technical solution, the node downlink paging time slot (paging time slot, used for communication between the gateway and the node) is arranged using a node autonomous allocation strategy, such as Figure 7 As shown. After the node module completes time synchronization with the gateway (the existing time synchronization technology has been discussed above), the start time of the first paging slot in each beacon cycle is determined by randomly selecting several paging slot lengths, and the number of paging slots and the cycle length are calculated to determine. The node initiates a time slot arrangement application to the gateway to confirm and synchronize the paging slot cycle length and the start time of the first paging slot. After the node receives the gateway confirmation message, the paging slot starts at the next beacon cycle.

[0071] In the above-mentioned prior art solutions, the paging slot scheduling task is dominated by the node. When the communication demand between the gateway and the node is small, the number of node paging slots cannot be reduced in time, which will cause time slot waste and increase the power consumption of the node module.

[0072] In order to overcome the defects of the prior art solutions, the present invention uses the gateway to adaptively and dynamically allocate the paging slots of nodes according to the network conditions. The paging window of this beacon cycle is from the end of the current beacon slot to the beginning of the next beacon slot, which is denoted as T paging (For example, the unit is usually milliseconds), such as Figure 8 shown.

[0073] An embodiment of the present invention provides a time slot allocation method, which is executed by a slave node device, and the time slot allocation method includes: performing time slot synchronization according to the time slot synchronization method; receiving a beacon frame from a master node device within a beacon slot of a target beacon period, wherein the beacon frame includes a paging slot quantity index and a paging slot period, and the paging slot quantity index is adaptively configured according to network conditions; and determining the time slot number occupied by the slave node device in the target beacon period according to the number of the slave node device, the paging slot quantity index and the paging slot period.

[0074] The gateway dynamically and adaptively arranges the paging slots of the nodes in this beacon period according to the network conditions. The paging slots are used for the nodes to receive gateway messages. The broadcast slot is a type of paging slot, which is used for all nodes that support paging slots to receive gateway broadcast messages. For example, the paging slot quantity index is determined according to the total number of paging slots, the broadcast slot quantity index of the target beacon period, the number of slave node devices that support paging slots, and the slot allocation coefficient.

[0075] Specifically, the total number of paging slots follows the rule of 2. n The time slots are allocated according to the principle. n can be set according to the actual situation. The time slots are numbered 0, 1, 2, 3. … N, where N = (2 n -1). The gateway sets the paging time slot period to T slot (For example, the unit is usually milliseconds), then (2 n ×T slot )≤ T paging , where n≤log2(T paging / T slot ), T paging It is the paging window.

[0076] If the number of nodes supporting paging time slots in the network is M, the time slot allocation coefficient is F, where 0<F≤2 n / M, the maximum number of paging slots for a node in a beacon period is S, where S = 2 n / (M×F).

[0077] To facilitate the gateway to arrange the number of paging slots to be transmitted to the node, 2 P Indicates the maximum number of paging slots that can be configured for each node in the target paging cycle (i.e., the maximum number of paging slots), expressed in 2 B represents the maximum number of broadcast time slots of the target beacon period, then 2 P = (2 n -2 B ) / (M×F), P = n / (B×log2(M×F)), where 2 B ≤2 n , 2 P ≤2 n .

[0078] The gateway sets the paging slot number index P and the paging slot period T slot Included in the beacon frame, the paging slot number index P and the paging slot period T are transmitted through the beacon frame. slot When the node receives the gateway beacon frame, it can calculate the maximum number of paging slots of the target beacon period node as 2. P , and obtain the paging time slot cycle T slot .

[0079] Of course, in other embodiments, reasonable variations can be made based on the above formula for determining the paging timing number index, such as multiplying by a proportional coefficient close to 1. The gateway calculates the maximum number of paging time slots and the paging cycle of the scheduled node at the beginning of each beacon period according to the number of nodes supporting paging time slots in the network and the allocation coefficient.

[0080] In one embodiment, determining the time slot number occupied by the slave node device in the target beacon period includes: determining the time slot number occupied by the slave node device in the target beacon period according to the number m of the slave node device, the paging time slot number index P, the paging time slot period T p And the following formula is used to determine the time slot number s(m) occupied by the slave node device in the target beacon period:

[0081] s(m)=(m-1)%T p +s0+p×T p .

[0082] Where m≥1 and m is an integer, p=0,1,2……(2 P -1), s0 is the first time slot number occupied by the slave node device numbered 1 (i.e. the first node). The corresponding maximum number T p +s0+(2 P -1)×T p Cannot be greater than N.

[0083] To avoid message collision, the paging slot of a node occupies a slot number independently. The first paging slot of node 1 uses the first slot number, the first paging slot of node 2 uses the second slot number, the paging slot of node 3 uses the third slot number, and so on.

[0084] like Figure 8 As shown, the paging slot cycle T p 4, s0=1, taking node 1 as an example, the time slots occupied by node 1 in the target beacon period are numbered 1, 1+4, 1+2×4, 1+3×4, 1+4×4, … 1+(2 P -1)×4, where 1+(2 P -1)×4 cannot be greater than N, so P≤log2((N-1) / 4+1); Taking node 2 as an example, the time slots occupied by node 2 in the target beacon period are numbered 1+1, 1+1+4, 1+1+2×4, 1+1+3×4, 1+1+4×4,…1+1+(2 P -1)×4,1+1+(2 P -1)×4 cannot be greater than N, and so on; for node 5, the current paging slot cycle is 4, so the slots occupied by node 5 in the current beacon cycle are numbered 1, 5, 9, 13, 17, 21, 25….

[0085] When the number of nodes supporting paging slots in the network is greater than the paging slot cycle, the first paging slot of the node will use a slot number that is less than the paging slot cycle. For example, if the paging cycle assigned by the gateway is 4, the paging slot used by the fifth node is the same as that of the first node.

[0086] Based on the principle of waking up the node module as few times as possible, according to the above time slot allocation strategy, when the paging time slot and the broadcast time slot overlap, the same time slot number is used, such as the time slot number 21 of node 1.

[0087] In an embodiment, the beacon frame further includes a broadcast time slot quantity exponent, and the time slot allocation method further includes: determining the time slot number occupied by the broadcast time slot with this number according to the total number of paging time slots, the broadcast time slot quantity exponent of the target beacon period, and the number of the broadcast time slot.

[0088] The gateway overall arranges the maximum number of broadcast time slots in the current beacon period. For example, the gateway includes the broadcast time slot quantity exponent B in the beacon frame and transmits the broadcast time slot quantity exponent B to the node through the beacon frame.

[0089] Among them, determining the time slot number occupied by the broadcast time slot with this number includes: according to the total number of paging time slots 2 n , the broadcast time slot quantity exponent B of the target beacon period, the number b of the broadcast time slot, and the following formula, determining the time slot number s(b) occupied by the broadcast time slot with the number b:

[0090] s(b) = (b - 1)×(2 n / 2 B ) + s1.

[0091] Among them, b≥1 and b is an integer, and s1 is the first time slot number occupied by the broadcast time slot numbered 1 (i.e., the first broadcast time slot). The process of broadcast time slot allocation executed by the node may include the following content. The maximum number of broadcast time slots in the current beacon period is 2 B , and the total number of time slots in the current beacon period is 2 n . When B = n, it means that all paging time slots in the current beacon period are broadcast time slots; when B < n, the broadcast time slot period is (2 n / 2 B ), and the broadcast time slot period can be understood as the number of paging time slots occupied.

[0092] As Fig. 9 shown, when the broadcast time slot period is 2 n / 2 B = 7, it is agreed that the first broadcast time slot starts from time slot number 0 (i.e., s0 = 0), the second broadcast time slot starts from the 1×(2 n / 2 B ) time slot, the third broadcast time slot starts from the 2×(2 n / 2 B ) time slot, …… the 2 i th broadcast time slot starts from the (2 i - 1)×(2 n / 2B ) time slot, ... B Broadcast time slots from (2 B -1)×(2 n / 2 B ) time slot starts, where (2 B -1)×(2 n / 2 B ) cannot be greater than N.

[0093] Each embodiment of the present invention performs a time slot allocation process after synchronization based on the time slot synchronization method described above. However, the present invention also includes the process of performing a time slot allocation process based on any existing time slot synchronization method (e.g. Figure 1 After synchronization (as shown in the method), the time slot allocation process is performed.

[0094] Considering that the node downlink paging slot is used for communication between the gateway and the node, and the demand and time for sending data depend on the gateway, the present invention proposes a scheme for adaptively and dynamically allocating node paging slots dominated by the gateway. When the node module supports the paging slot working mode, the gateway carries the sending time information of the next beacon in the network access confirmation message. After the node enters the network, the time synchronization method of the present invention described above is used to complete relative time synchronization and beacon slot alignment with the gateway. The gateway divides the paging slots according to the number of nodes that support the paging slot working mode in the network. On the basis of satisfying the communication between the gateway and the node, each paging slot of each node is arranged to occupy a slot number as much as possible. If there are many nodes and the slot number cannot meet the situation that each node occupies it alone, multiple nodes are arranged to share the same slot number. In addition, the gateway arranges the number of node paging slots as little as possible as a principle, further reducing the wake-up time of the node and reducing the power consumption of the node module.

[0095] In summary, the present invention creatively uses the above-mentioned time slot synchronization method by the node to complete relative time synchronization and beacon time slot alignment with the gateway, and adaptively and dynamically allocates node paging time slots with the gateway as the leader, and transmits the paging time slot quantity index and the paging time slot cycle to the node through the beacon frame. The node can determine the time slot number of the node according to the received paging time slot quantity index and the paging time slot cycle as well as its own number. Compared with the existing strategy of arranging its own time slots by the node, the present invention can adjust the time slot allocation in real time according to the node time slot usage, improve the time slot utilization rate, and reduce the power consumption of the node module.

[0096] An embodiment of the present invention provides a communication method, which is executed by a slave node device. The communication method includes: allocating time slots according to the time slot allocation method; and communicating according to the allocated time slots.

[0097] In addition, because the paging time slots of nodes are not mutually known, this will cause the node's uplink message to collide with the gateway's downlink message, reducing the communication success rate and further increasing the power consumption of the node module. Specifically, when a node has a data transmission requirement, it starts to send data after a random delay. If a receiving time slot is encountered, data is sent after a random delay of a certain time after the receiving time slot. The prior art solution node module uplink data transmission time slot is as follows: Fig.10 As shown. The existing technical solution uses a certain random delay interval to reduce the probability of collision between the transmission of this node and the transmission of other nodes or gateways. When the network scale is small and the message volume is small, the probability of message collision can be reduced to a certain extent. However, when the network scale is large or the message volume is large, it is very easy for different nodes to send messages at the same time in a short period of time only through simple random delay, which will cause serious message collision and reduce the success rate of message sending.

[0098] In order to solve the defects in the above-mentioned prior art, in one embodiment, the communication according to the allocated time slot includes: using a channel activity detection method to detect whether the current channel is occupied; and when the current channel is not occupied, using the allocated time slot to send a message to the master node device.

[0099] When a node arranges to send an uplink message, it actively avoids the broadcast time slot or its own paging time slot to prevent collision with the downlink message sent by the gateway, thereby achieving transmission time slot conflict avoidance.

[0100] Node 1 and node 2 are power-saving modules that support paging time slots, node 3 is an extremely power-saving module that does not support paging time slots, and node 4 is a long-power-supply module.

[0101] by Fig.11 For example, the scenarios involved in the node sending time slots are as follows:

[0102] Node 1 needs to send a message to the gateway node, and turns on CAD (Channel Activity Detection) to detect whether the current channel is occupied. Currently, no other module is sending a message, and node 1 sends a message to the gateway. The gateway node receives the message sent by node 1. Nodes 2 and 3 are in sleep mode and cannot receive messages. Node 4 is in receiving standby mode and receives the message sent by node 1. Because the message is destined for the gateway, node 4 does not process the message.

[0103] The gateway replies a confirmation message to node 1 in time slot number 14 (broadcast time slot). Nodes 1 and 2 are in the broadcast time slot and can receive the gateway broadcast message. Node 4 is in the receiving standby state and can receive the gateway broadcast message.

[0104] After detecting the current channel status, if no other module is sending messages, node 3 randomly sends messages to the gateway node. At this time, node 1 is in the paging time slot and can receive messages, but does not process them. Node 4 is in the receiving standby state and can receive messages, but does not process them. The gateway node receives the message and processes it.

[0105] After checking the current channel status, no other module is currently sending messages, and node 4 sends a message to the gateway node. Except for the gateway node, other nodes are in a dormant state and cannot receive messages. The gateway node processes the message after receiving it.

[0106] In one embodiment, communicating according to the allocated time slot also includes: when the current channel is occupied, entering a sleep state; when the sleep state continues for a preset period of time, re-using the channel activity detection method to detect whether the current channel is occupied; and when the current channel is not occupied, using the allocated time slot to send a message to the master node device.

[0107] like Fig.11 As shown in the figure, node 4 turns on CAD to detect the current channel before sending a message. If the channel is found to be occupied, it enters the dormant state and backs off for a certain period of time (generally the maximum time for receiving a message once). Then, CAD is used again to detect the current channel status. If the channel is not occupied, the message is sent. Except for the gateway node, other nodes are in the dormant state and cannot receive messages. The gateway node processes the message after receiving it.

[0108] In the above embodiment, when a node sends an uplink message and needs a gateway to reply with an acknowledgment message, if the transmission occurs before a paging slot or a broadcast slot, the node does not open an additional receiving slot and reuses the paging or broadcast slot.

[0109] After solving the problem of accurate alignment of the receiving and transmitting time slots between the gateway and the node, the present invention proposes a solution to avoid conflicts in the sending time slots based on the channel activity detection (CAD) technology. On the basis of retaining the existing technical solution of sending messages at random times, before the node module sends a message, CAD is enabled to detect whether the current channel is occupied. If the current channel is occupied, the message will be sent backed off for a period of time (generally the maximum frame length of the message in this network). After the backoff time is reached, according to the application scenario, the message can be sent immediately, or it can continue to detect whether the current channel is occupied and wait for the opportunity to send the message. Using CAD technology to detect the channel status before sending a message can greatly reduce the probability of message collision in the network, reduce the number of retransmissions, increase the sending success rate, and thus reduce the power consumption of the node module.

[0110] In summary, the present invention creatively allocates time slots according to the time slot allocation method; and communicates according to the allocated time slots. Since the number of node wake-up times is reduced during communication, the wireless duty cycle of the node is reduced, and the time slot allocation is adjusted in real time according to the node time slot usage, thereby improving the time slot utilization rate and reducing the communication power consumption.

[0111] In view of the time synchronization problem existing in the prior art solutions, the present invention proposes a solution to use relative time to achieve time and time slot alignment between modules. In view of the problem of high power consumption of node modules in the arrangement of downlink paging time slots existing in the prior art solutions, the present invention proposes a method for adaptively optimizing the arrangement of node downlink paging time slots by gateways. In view of the message collision or overload problem existing in the prior art solutions, the present invention proposes a solution to achieve message sending conflict avoidance by using channel activity detection (CAD, Channel Activity Detection). The solution proposed by the present invention solves the problems existing in the prior art solutions, further reduces the power consumption of node modules, and improves the communication success rate.

[0112] The low-power module cannot send or receive data in sleep mode. Accurate time slot alignment is a necessary condition for realizing data transmission and reception of low-power devices. In order to solve the time slot synchronization and allocation problems in the prior art, further reduce the power consumption of low-power modules, and improve communication performance, the present invention proposes a complete set of implementation solutions for low-power communication modules, including relative time synchronization, synchronization alignment of receiving and transmitting time slots, downlink time slot allocation, and conflict avoidance resolution of uplink transmission time slots. The advantage of the present invention is to achieve accurate time slot synchronization alignment and lower power consumption when the module does not support clock configuration.

[0113] An embodiment of the present invention provides a time slot synchronization system, which is executed by a slave node device, and the time slot synchronization system includes: a receiving device, which is used to receive a beacon frame in the current beacon cycle from a master node device in a beacon time slot in the current beacon cycle and record the receiving start time of the beacon frame in the current beacon cycle; an obtaining device, which is used to obtain the sending time of the beacon frame in the previous beacon cycle of the current beacon cycle from the beacon frame in the current beacon cycle; a determining device, which is used to determine the starting time of the next beacon cycle of the current beacon cycle based on the sending time of the beacon frame in the current beacon cycle, the previous beacon cycle, and the receiving start time of the beacon frame in the current beacon cycle; and a synchronizing device, which is used to perform time slot synchronization on the slave node device according to the starting time of the next beacon cycle of the current beacon cycle.

[0114] For specific details and benefits of the time slot synchronization system provided by the embodiment of the present invention, please refer to the above description of the time slot synchronization method, which will not be repeated here.

[0115] An embodiment of the present invention provides a time slot allocation system, which is executed by a slave node device, and the time slot allocation system includes: the time slot synchronization system, which is used to perform time slot synchronization; a receiving device, which is used to receive a beacon frame from a master node device within a beacon slot of a target beacon period, wherein the beacon frame includes a paging slot quantity index and a paging slot period; and a number determination device, which is used to determine the time slot number occupied by the slave node device in the target beacon period based on the number of the slave node device, the paging slot quantity index and the paging slot period.

[0116] For specific details and benefits of the time slot allocation system provided by the embodiment of the present invention, please refer to the above description of the time slot allocation method, which will not be repeated here.

[0117] An embodiment of the present invention provides a communication system executed by a slave node device, the communication system comprising: the time slot allocation system described above, used for performing time slot allocation; and a communication device, used for performing communication according to the allocated time slots.

[0118] For specific details and benefits of the embodiments of the present invention applicable to the communication system, please refer to the above description of the communication method, which will not be repeated here.

[0119] An embodiment of the present invention provides a slave node device, which includes an execution device for executing the time slot synchronization method, the time slot allocation method and / or the communication method.

[0120] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the time slot synchronization method, the time slot allocation method and / or the communication method are implemented.

[0121] An embodiment of the present invention provides a chip, comprising: a processor; and a memory for storing a computer program executed by the processor, wherein the processor is used to read the computer program from the memory and execute the computer program to implement the time slot synchronization method, the time slot allocation method and / or the communication method.

[0122] An embodiment of the present invention provides a computer program product, including a computer program, which implements the time slot synchronization method, the time slot allocation method and / or the communication method when executed by a processor.

[0123] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.

[0124] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0125] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A time slot synchronization method, characterized in that: Executed by a slave node device, the time slot synchronization method includes: In a beacon timeslot in a current beacon period, receiving a beacon frame in the current beacon period from a master node device and recording a start time of receiving the beacon frame in the current beacon period; Acquire, from the beacon frames in the current beacon period, the time taken to send the beacon frames in the previous beacon period of the current beacon period; Determining a start time of a beacon cycle next to the current beacon cycle according to the current beacon cycle, the time taken to send the beacon frame in the previous beacon cycle, and the start time of receiving the beacon frame in the current beacon cycle; and Performing time slot synchronization on the slave node device according to the start time of the next beacon cycle of the current beacon cycle, Wherein, determining the start time of the next beacon period of the current beacon period includes: According to the current beacon period T beacon_period , the time taken to send the beacon frame in the previous beacon period T tx(n-1) , the reception start time t0 of the beacon frame in the current beacon period and the following formula, determine the start time t of the next beacon period of the current beacon period beacon_start , t beacon_start =T beacon_period -(T tx(n-1) -t0)。 2. The time slot synchronization method according to claim 1, characterized in that: The time taken to send the beacon frame in the previous beacon period is determined according to the start time of the previous beacon period and the time when the sending of the beacon frame in the previous beacon period is completed.

3. The time slot synchronization method according to claim 1, characterized in that: The time slot synchronization method also includes: In a specific beacon period, receiving a network access confirmation message from the master node device and recording a start time of receiving the network access confirmation message, wherein the network access confirmation message includes an initial duration, and the initial duration is a duration from the start time of the specific beacon period to the start time when the master node device replies to the network access confirmation message; Obtaining a first duration, wherein the first duration is a delay from a start time when the master node device replies to the network access confirmation message to a start time when the recorded network access confirmation message is received; Preliminarily determining the start time of the next beacon period of the specific beacon period according to the specific beacon period, the initial duration, the first duration, and the recorded start time of receiving the network access confirmation message, wherein the next beacon period of the specific beacon period is earlier than or equal to the current beacon period; and The slave node device is synchronized with the time slot according to the start time of the next beacon period of the specific beacon period.

4. A time slot allocation method, characterized in that: Executed by a slave node device, the time slot allocation method includes: Performing time slot synchronization according to the time slot synchronization method described in any one of claims 1 to 3; In a beacon time slot of a target beacon period, receiving a beacon frame from a master node device, wherein the beacon frame includes a paging time slot quantity index and a paging time slot period, and the paging time slot quantity index is adaptively configured according to a network condition; and The number of the time slot occupied by the slave node device in the target beacon period is determined according to the number of the slave node device, the paging time slot quantity index and the paging time slot period.

5. The time slot allocation method according to claim 4, characterized in that: The paging time slot quantity index is determined according to the total number of paging time slots, the broadcast time slot quantity index of the target beacon period, the number of slave node devices supporting the paging time slots, and the time slot allocation coefficient.

6. The time slot allocation method according to claim 4, characterized in that: Determining the time slot number occupied by the slave node device in the target beacon period includes: According to the number m of the slave node device, the paging time slot quantity index P, the paging time slot cycle T p And the following formula is used to determine the time slot number s(m) occupied by the slave node device in the target beacon period: s(m)=(m-1)%T p +s0+p×T p , Among them, s0 is the first time slot number occupied by the slave node device numbered 1, and p=0,1,2...(2 P -1).

7. The time slot allocation method according to claim 4, characterized in that: The beacon frame also includes a broadcast time slot number index, The time slot allocation method also includes: According to the total number of paging time slots, the broadcast time slot quantity index of the target beacon period and the number of the broadcast time slot, the time slot number occupied by the broadcast time slot having the number is determined.

8. The time slot allocation method according to claim 7, characterized in that: Determining the time slot number occupied by the broadcast time slot having the number comprises: According to the total number of paging slots 2 n , the broadcast time slot number index B of the target beacon period and the number b of the broadcast time slot and the following formula to determine the time slot number s(b) occupied by the broadcast time slot with the number b: s(b)= (b-1)×(2 n / 2 B ) +s1, Wherein, s1 is the first time slot number occupied by the broadcast time slot numbered 1.

9. A communication method, characterized in that: Executed by a slave node device, the communication method includes: Performing time slot allocation according to the time slot allocation method according to any one of claims 4 to 8; and Communication is performed according to the allocated time slots.

10. The communication method according to claim 9, characterized in that: The communicating according to the allocated time slots comprises: Using a channel activity detection method to detect whether the current channel is occupied; and When the current channel is not occupied, the allocated time slot is used to send a message to the master node device.

11. The communication method according to claim 10, characterized in that: The communicating according to the allocated time slot also includes: When the current channel is occupied, entering a dormant state; When the dormant state lasts for a preset time period, re-adopting the channel activity detection method to detect whether the current channel is occupied; and When the current channel is not occupied, the allocated time slot is used to send a message to the master node device.

12. A time slot synchronization system, characterized in that: Executed by a slave node device, the time slot synchronization system comprises: A receiving device, used to receive a beacon frame in the current beacon period from a master node device in a beacon timeslot in the current beacon period and record a start time of receiving the beacon frame in the current beacon period; An acquisition device, used to acquire, from the beacon frames in the current beacon period, the sending time of the beacon frame in the previous beacon period of the current beacon period; A determination device, configured to determine a start time of a beacon cycle next to the current beacon cycle based on the current beacon cycle, a time taken to send a beacon frame in the previous beacon cycle, and a start time of receiving a beacon frame in the current beacon cycle; and a synchronization device, configured to perform time slot synchronization on the slave node device according to the start time of the next beacon cycle of the current beacon cycle, Wherein, determining the start time of the next beacon period of the current beacon period includes: According to the current beacon period T beacon_period , the time taken to send the beacon frame in the previous beacon period T tx(n-1) , the reception start time t0 of the beacon frame in the current beacon period and the following formula, determine the start time t of the next beacon period of the current beacon period beacon_start , t beacon_start =T beacon_period -(T tx(n-1) -t0)。 13. A time slot allocation system, characterized in that: Executed by a slave node device, the time slot allocation system comprises: The time slot synchronization system of claim 12, used for performing time slot synchronization; A receiving device, configured to receive a beacon frame from a master node device within a beacon slot of a target beacon period, wherein the beacon frame includes a paging slot quantity index and a paging slot period; and The number determination device is used to determine the time slot number occupied by the slave node device in the target beacon period according to the number of the slave node device, the paging time slot quantity index and the paging time slot period.

14. A communication system, characterized in that: Executed by a slave node device, the communication system comprises: The time slot allocation system of claim 13, used for performing time slot allocation; The communication device is used for communicating according to the allocated time slot.

15. A slave node device, characterized in that: The slave node device comprises an execution device for executing the time slot synchronization method described in any one of claims 1-3, the time slot allocation method described in any one of claims 4-8, or the communication method described in any one of claims 9-11.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the time slot synchronization method described in any one of claims 1 to 3, the time slot allocation method described in any one of claims 4 to 8, or the communication method described in any one of claims 9 to 11.

17. A chip, characterized in that: The chip includes: a processor; and a memory for storing a computer program executed by the processor, wherein the processor is used to read the computer program from the memory and execute the computer program to implement the time slot synchronization method described in any one of claims 1-3, the time slot allocation method described in any one of claims 4-8, or the communication method described in any one of claims 9-11.

18. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the time slot synchronization method described in any one of claims 1 to 3, the time slot allocation method described in any one of claims 4 to 8, or the communication method described in any one of claims 9 to 11.

Citation Information

Patent Citations

  • Method and device for receiving beacon frame, electronic equipment and readable storage medium

    CN116249182A

  • Time synchronization of mesh network nodes

    US20220376807A1