Dynamic time slot allocation method, device, computer equipment and readable storage medium

Through the dynamic time slot allocation method, the time slot allocation table is updated according to changes in network capacity and topology, which solves the problem of unstable time slot allocation in the existing technology, ensures that each node can obtain time slots in a timely manner in the TDMA network, and improves efficiency. Network service quality.

CN113473620BActive Publication Date: 2024-09-17BEIJING ONE SPACE ELECTRONICS CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110664755.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-09-17
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

The existing TDMA network lacks the best performance guarantee when updating the time slot allocation table. As a result, some nodes cannot compete for time slots when the topology changes. This is especially true when there are many competing nodes, which affects the quality of network service.

Method used

Using the dynamic time slot allocation method, the central node establishes a time slot allocation table according to the network capacity, obtains the current network topology through the network management time slot, dynamically updates the time slot allocation table, and processes network exit or network entry applications in the sending and receiving time slot frames to ensure Time slot allocation for each node improves network service quality.

Benefits of technology

By dynamically updating the time slot allocation table, it effectively ensures the time slot allocation of each network node, improves the service quality guarantee of the network, ensures that each node can obtain time slots in the network in a timely manner, avoids competition losses, and improves the overall performance of the network .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113473620B
    Figure CN113473620B
Patent Text Reader

Abstract

The present invention provides a dynamic time slot allocation method, device, computer equipment and readable storage medium, the method comprising: the central node establishes a time slot allocation table according to the network capacity; the central node obtains the networking status of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all sub-nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all sub-nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame; the present invention timely updates the time slot allocation table according to the changes in the network structure, effectively guarantees the time slot allocation of each network access node, and improves the service quality guarantee of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless networking technology, and in particular to a dynamic time slot allocation method, device, computer equipment and readable storage medium. Background Art

[0002] In the TDMA system, time is divided into non-overlapping time frames, and time frames are divided into non-overlapping time slots. Each node in the network performs corresponding operations in each time slot. Currently, there are three time slot allocation algorithms in TDMA networks: fixed allocation, dynamic allocation, and a hybrid time slot allocation algorithm that combines fixed and dynamic. The dynamic allocation algorithm is based on a certain topological structure, so when the topological structure changes, the time slot allocation table must be updated in time, otherwise conflicts will occur. The existing method of updating the time slot allocation table when the topological structure changes does not guarantee the worst performance. When there are many competing nodes, there is a problem that some nodes cannot compete for time slots. Summary of the invention

[0003] In view of the deficiencies in the prior art, the dynamic time slot allocation method, device, computer equipment and readable storage medium provided by the present invention solve the problem that the time slot allocation method in the prior art does not have the worst performance guarantee, so that some nodes cannot compete for time slots. The time slot allocation table is updated in time according to the changes in the network structure, effectively guaranteeing the time slot allocation of each node connected to the network, and improving the service quality guarantee of the network.

[0004] In a first aspect, the present invention provides a dynamic time slot allocation method, which is applied to a dynamic time slot allocation network, wherein the dynamic time slot allocation network includes a central node and several child nodes, and the method includes: the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes several transceiver time slot frames, each transceiver time slot frame includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each child node to send data; the central node obtains the networking status of all child nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all child nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0005] Optionally, the time slot allocation table further includes: a synchronous broadcast frame, the synchronous broadcast frame includes a clock synchronization time slot, an instruction time frame and a broadcast time slot, and the instruction time frame includes a plurality of instruction time slots.

[0006] Optionally, the method also includes: the central node broadcasts a clock synchronization frame in the clock synchronization time slot, so that all sub-nodes in the current network perform clock calibration according to the clock synchronization frame; the central node broadcasts multiple remote control instructions in the several instruction time slots, so that all sub-nodes in the current network obtain matching data according to the multiple remote control instructions; the central node broadcasts an initialized data time frame in the broadcast time slot, so that all sub-nodes in the current network send data in the corresponding data time slot according to the initialized data time frame.

[0007] Optionally, obtaining the networking status of all sub-nodes in the current network includes: obtaining a network exit request and a network access request in the current network; obtaining the number of sub-nodes in the current network according to the network exit request in the current network; judging whether the number of sub-nodes is less than the network capacity; when the number of sub-nodes is less than the network capacity, obtaining the networking status of all sub-nodes in the current network according to the network access request and the sub-nodes currently in the network, the networking status including the sub-node numbers and the connection relationships between the sub-nodes.

[0008] Optionally, the central node generates an updated data time frame according to the networking status of all child nodes, including: obtaining the number of times each child node sends data and the order in which each child node sends data according to the connection relationship between the child nodes in the networking status; the central node allocates a corresponding data time slot to each child node according to the number of times each child node sends data and the order in which each child node sends data; and all data time slots are combined into an updated data time frame.

[0009] Optionally, the central node broadcasts the updated data time frame in the broadcast time slot of the current transceiver time slot frame, including: the central node adds a check code to the updated data time frame and then broadcasts it in the broadcast time slot, so that all child nodes in the current network enter the next transceiver time slot frame according to the check code.

[0010] Optionally, each time slot in the time slot allocation table includes a data time period for sending data and a protection time period for not sending data.

[0011] In a second aspect, the present invention provides a dynamic time slot allocation device, which is applied to a dynamic time slot allocation network, wherein the dynamic time slot allocation network includes a central node and a plurality of sub-nodes, and the device includes: a time slot allocation table establishment module, which is used by the central node to establish a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each transceiver time slot frame includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each sub-node to send data; a networking status acquisition module, which is used by the central node to obtain the networking status of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame; a data time frame update module, which is used by the central node to generate an updated data time frame according to the networking status of all sub-nodes; a data time frame broadcast module, which is used by the central node to broadcast the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all sub-nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0012] In a third aspect, the present invention provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table comprises a plurality of transceiver time slot frames, each transceiver time slot frame comprises a network management time slot, a data time frame and a broadcast time slot, and the data time frame comprises a data time slot for each child node to send data; the central node obtains the networking status of all child nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all child nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0013] In a fourth aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor: the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each transceiver time slot frame includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each child node to send data; the central node obtains the networking status of all child nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all child nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0014] Compared with the prior art, the present invention has the following beneficial effects:

[0015] The central node of the present invention establishes a time slot allocation table according to the network capacity, obtains the current network topology according to the network management time slot in the time slot allocation table, and then dynamically updates the time slot allocation table according to the change of the current network topology, and applies for network exit or network access in the current transceiver time slot frame. The updated data time slot is reflected in the next transceiver time slot frame. The time slot allocation table can be updated in time according to the change of the network structure, effectively ensuring the time slot allocation of each network access node, and improving the service quality guarantee of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 FIG. 1 is a flow chart of a dynamic time slot allocation method provided by an embodiment of the present invention;

[0017] Figure 2 FIG. 1 is a schematic diagram showing the structure of a time slot allocation table provided in an embodiment of the present invention;

[0018] Figure 3 FIG. 1 is a schematic diagram of a time slot structure provided by an embodiment of the present invention;

[0019] Figure 4 The figure is a schematic diagram of a process of dynamically allocating time slots by a central node provided by an embodiment of the present invention;

[0020] Figure 5 The figure shows a schematic diagram of a sub-node network access process provided by an embodiment of the present invention;

[0021] Figure 6 Shown is a structural diagram of a dynamic time slot allocation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 making creative work are within the scope of protection of this application.

[0023] Figure 1 FIG. 4 is a flow chart of a dynamic time slot allocation method provided by an embodiment of the present invention; Figure 1 As shown, it is applied to a dynamic time slot allocation network, the dynamic time slot allocation network includes a central node and a plurality of sub-nodes, and the dynamic time slot allocation method specifically includes the following steps:

[0024] Step S101, the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each of which includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each child node to send data.

[0025] In this embodiment, the time slot allocation table further includes: a synchronous broadcast frame, the synchronous broadcast frame includes a clock synchronization time slot, an instruction time frame and a broadcast time slot, and the instruction time frame includes a plurality of instruction time slots.

[0026] It should be noted that the network capacity is the maximum number of sub-nodes that the dynamic time slot allocation network can accommodate. The dynamic time slot allocation network includes a central node and several sub-nodes. The central node and other sub-nodes are all within one hop range, so that the sub-nodes can apply for time slots to ensure that they can obtain time slots in the next time frame to transmit data, and the sub-nodes in the network can frequently enter and exit the network, and the load of each sub-node is balanced.

[0027] In this embodiment, the central node broadcasts a clock synchronization frame in the clock synchronization time slot, so that all sub-nodes in the current network perform clock calibration according to the clock synchronization frame; the central node broadcasts multiple remote control instructions in the several instruction time slots, so that all sub-nodes in the current network obtain matching data according to the multiple remote control instructions; the central node broadcasts an initialized data time frame in the broadcast time slot, so that all sub-nodes in the current network send data in the corresponding data time slot according to the initialized data time frame.

[0028] Figure 2 FIG. 1 is a schematic diagram showing the structure of a time slot allocation table provided in an embodiment of the present invention. Figure 2 As shown, the first row of the time slot allocation table is a synchronous broadcast frame, and the second row and subsequent rows are transceiver time slot frames. The child node sends data in the transceiver time slot frame, wherein the synchronous broadcast frame includes a clock synchronization time slot Sp, instruction time slots TP1-TPN and a broadcast time slot Cp; in order to keep the central node and the child nodes in the network in time synchronization, the network uses the clock of the central node as the reference clock of the entire network, broadcasts the clock synchronization frame in the clock synchronization time slot Sp, and allows all child nodes in the network to perform clock calibration according to the clock synchronization frame.

[0029] Furthermore, the central node broadcasts multiple remote control instructions in the instruction time slots TP1-TPN, so that each child node in the current network parses the multiple remote control instructions, obtains the remote control instructions corresponding to its own node from the multiple remote control instructions, and obtains corresponding telemetry data according to the remote control instructions. The remote control instructions include a node number, a transmission data type, and a target node to which the data is transmitted. Furthermore, the central node generates an initialization data time frame according to the current node data, the network capacity, and the target node to which each node transmits data, and broadcasts it in the broadcast time slot in the synchronous broadcast frame, so that all child nodes in the current network transmit data in the first transceiver time slot frame in the corresponding data time slot according to the initialized data time frame.

[0030] Step S102: the central node obtains the networking status of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame.

[0031] In this embodiment, the networking status of all sub-nodes in the current network is obtained, including: obtaining a network exit request and a network access request in the current network; obtaining the number of sub-nodes in the current network according to the network exit request in the current network; judging whether the number of sub-nodes is less than the network capacity; when the number of sub-nodes is less than the network capacity, obtaining the networking status of all sub-nodes in the current network according to the network access request and the sub-nodes currently in the network, the networking status including the sub-node numbers and the connection relationship between the sub-nodes.

[0032] It should be noted that in the network management time slot of each receiving and transmitting time slot frame, each child node can apply for network access or network exit in this network management time slot. Therefore, the central node obtains the number of child nodes in the current network based on the network exit request, and then compares the number of child nodes with the network capacity. When the number of child nodes is less than the network capacity, the nodes are allowed to access the network according to the order of network access request reception time. If the number of child nodes is equal to the network capacity, subsequent network access requests are rejected. After the network exit request and network access request are processed, the networking status of all child nodes in the current network is counted.

[0033] Step S103: the central node generates an updated data time frame according to the networking status of all the child nodes.

[0034] In this embodiment, the central node allocates data time slots alternately in sequence according to the number of child nodes. For example, if there is only one child node in the network, all data time slots in the data time frame are allocated only to this one child node; if there are three child nodes in the network, the data time slots in the data time frame are alternately allocated to child node 1, child node 2 and child node 3, and so on. If there are N child nodes in the network, the N data time slots in the data time frame are allocated to the N child nodes in sequence, thereby ensuring that each child node can be allocated a corresponding data time slot.

[0035] Furthermore, the central node generates an updated data time frame according to the networking status of all child nodes, and also includes: obtaining the number of times each child node sends data and the order in which each child node sends data within a preset time length according to the connection relationship between the child nodes in the networking status; the central node allocates a corresponding data time slot to each child node according to the number of times each child node sends data and the order in which each child node sends data; and all data time slots are combined into an updated data time frame.

[0036] It should be noted that in order to improve the data transmission efficiency of child nodes, in the present embodiment, the central node allocates corresponding data time slots to each child node according to the number of times each child node sends data in a round of data transmission, so that within a data time frame, child nodes with more data transmission times are allocated more data time slots, and child nodes with fewer data transmission times are allocated fewer data time slots. In addition, time slots are allocated according to the order of data transmission, thereby avoiding delays in data transmission caused by child nodes waiting for data time slots, thereby further improving the data transmission efficiency of child nodes.

[0037] Step S104, the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0038] In this embodiment, the central node broadcasts the updated data time frame in the broadcast time slot of the current transceiver time slot frame, including: the central node adds a check code to the updated data time frame and then broadcasts it in the broadcast time slot, so that all child nodes in the current network enter the next transceiver time slot frame according to the check code.

[0039] It should be noted that in the time slot allocation table provided in this embodiment, the child node applies for network exit or network access in the network management time slot in the current transceiver time slot frame, and the central node broadcasts the broadcast time slot in the current transceiver time slot frame to reallocate the data time slot according to the changes in the network structure. The data time slot for the child node to send data in the current network is the data time slot parsed according to the data time frame broadcast by the central node in the broadcast time slot in the previous transceiver time slot frame; therefore, the network exit or network access application is made in the current transceiver time slot frame, and the updated data time slot is reflected in the next transceiver time slot frame. The time slot allocation table can be updated in time according to the changes in the network structure, and the time slot allocation of each network access node can be effectively guaranteed.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The central node of the present invention establishes a time slot allocation table according to the network capacity, obtains the current network topology according to the network management time slot in the time slot allocation table, and then dynamically updates the time slot allocation table according to the change of the current network topology, and applies for network exit or network access in the current transceiver time slot frame. The updated data time slot is reflected in the next transceiver time slot frame. The time slot allocation table can be updated in time according to the change of the network structure, effectively ensuring the time slot allocation of each network access node, and improving the service quality guarantee of the network.

[0042] In another real-time example of the present invention, each time slot in the time slot allocation table includes a data time period for sending data and a protection time period for not sending data.

[0043] Figure 3 FIG. 1 is a schematic diagram of a time slot structure provided by an embodiment of the present invention. Figure 3 As shown in the figure, the time slot consists of a data segment and a transmission protection segment. The data segment is used to transmit data symbol information. Due to the time synchronization accuracy deviation, the processing delay of receiving and sending, and the propagation delay between different nodes will cause the misalignment of adjacent time slots. Therefore, by adding a certain length of protection time between time slots, the time slot misalignment problem can be solved; according to the time slot structure design, the data segment value is 4ms, the protection segment value is 1ms, and the total time slot length is 5ms.

[0044] like Figure 2 As shown, the time slot allocation table provided in this embodiment consists of (N+2)×(N+2) time slots, where N is the network capacity, that is, N is not less than the number of nodes in the network. N is the data time slot; C0-C N For broadcast time slots, S0-S N It is the network management time slot corresponding to the receiving and sending time slot frames, which is used for network entry and exit applications, accurate time synchronization and other functions; the first row in the time slot allocation table is the synchronous broadcast frame, among which the S0 network management time slot in the synchronous broadcast frame is used for initial time synchronization, networking information sharing and other functions.

[0045] Among them, T1-T N To form a fixed data time frame, use R Tn Indicates; C0-C N To form a fixed broadcast time frame, use R Cn T Indicates; S0-S N Form a fixed network management time frame, using R Sn T Therefore, the transmit and receive time slot frame R can be expressed as:

[0046]

[0047] n = N + 2;

[0048] TDMA conflict-free time slot allocation algorithm Based on the service quality requirements and network capacity, the central node establishes N data time frames RTn, which are:

[0049] There is 1 slave node in the network, R Tn =[T1,T1…], each of the N time slots in the data frame is allocated to only one slave node;

[0050] There are 2 slave nodes in the network, R Tn =[T1, T2, T1, T2…], the data time frame N time slots are alternately allocated to 1 and 2 slave nodes;

[0051] There are 3 slave nodes in the network, R Tn =[T1, T2, T3, T1, T2, T3…], the data time frame N time slots are alternately allocated to 1, 2, 3 slave nodes;

[0052] By analogy, there are N nodes in the network, R Tn =[T1, T2, T3…TN], the N time slots of the data frame are respectively allocated to N slave nodes.

[0053] Figure 4 FIG. 1 is a schematic diagram of a process of dynamically allocating time slots by a central node according to an embodiment of the present invention; Figure 4 As shown in the figure, the network center node determines the current network topology according to the S1-SN network access time slot request. If the number of slave nodes in the current network is less than the network capacity N, the node is allowed to access the network, and then the corresponding data time frame is reselected to form the current optimal time slot allocation table. Otherwise, the node is not allowed to access the network; the center node broadcasts the current time slot allocation strategy in the network management time frame S0. At the same time, the network uses the clock of the center node as the reference clock of the entire network. The center node broadcasts the synchronization frame in the network management time frame S0 to keep the slave nodes and the center node synchronized. Finally, the center node broadcasts the synchronization frame in the R Tn Receive telemetry data from the node in R Cn T Send remote control data. The specific workflow of dynamic allocation of central node time slots is as follows Figure 4 shown.

[0054] Figure 5 FIG. 1 is a schematic diagram of a sub-node network access process provided by an embodiment of the present invention; Figure 5 As shown in FIG. 1 , when a node wants to join the network, S0 receives the time slot allocation strategy information broadcast by the central node. If the current number of slave nodes n (N ≥ n > 0) is known from the time slot allocation strategy information, R is selected. Sn T The nth time slot sends a network access request, where n is the number of the network slave node. Sn TThe nth time slot slave node obtains accurate synchronization time. The specific workflow of slave node access to the network is as follows: Figure 5 shown.

[0055] Figure 6 FIG. 4 is a structural block diagram of a dynamic time slot allocation device provided by an embodiment of the present invention; Figure 6 As shown, it is applied to a dynamic time slot allocation network, the dynamic time slot allocation network includes a central node and a plurality of sub-nodes, and the dynamic time slot allocation device includes:

[0056] A time slot allocation table establishment module 110 is used for the central node to establish a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each of which includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each sub-node to send data;

[0057] The networking state acquisition module 120 is used for the central node to obtain the networking state of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame;

[0058] The data time frame updating module 130 is used for the central node to generate an updated data time frame according to the networking status of all sub-nodes;

[0059] The data time frame broadcast module 140 is used for the central node to broadcast the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0060] In one embodiment of the present invention, the present invention provides a computer device, including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each transceiver time slot frame includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each child node to send data; the central node obtains the networking status of all child nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all child nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0061] In one embodiment of the present invention, the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor: the central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each transceiver time slot frame includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each child node to send data; the central node obtains the networking status of all child nodes in the current network in the network management time slot in the current transceiver time slot frame; the central node generates an updated data time frame according to the networking status of all child nodes; the central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame.

[0062] The present invention can dynamically update the time slot allocation table according to the change of the topological structure, and can effectively reuse the time slots; and adopts non-conflicting time slot allocation, the central node polls other nodes in the network according to the principle of equality, all nodes have no competition, and have good QoS guarantee.

[0063] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0064] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A dynamic time slot allocation method, It is characterized in that Applied to a dynamic time slot allocation network, the dynamic time slot allocation network includes a central node and a plurality of sub-nodes, the method includes: The central node establishes a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each of which includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each sub-node to send data; The central node obtains the networking status of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame; The central node generates an updated data time frame according to the networking status of all sub-nodes; The central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all child nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame; The obtaining of the networking status of all sub-nodes in the current network includes: Get the network exit request and network entry request in the current network; According to the network exit request in the current network, obtain the number of child nodes in the current network; Determining whether the number of child nodes is less than the network capacity; When the number of the sub-nodes is less than the network capacity, the networking status of all the sub-nodes in the current network is obtained according to the network access request and the sub-nodes currently in the network, wherein the networking status includes the sub-node numbers and the connection relationship between the sub-nodes; The central node generates an updated data time frame according to the networking status of all sub-nodes, including: According to the connection relationship between the sub-nodes in the networking state, the number of times each sub-node sends data and the order in which each sub-node sends data are obtained; According to the number of times each sub-node sends data and the order in which each sub-node sends data, the central node allocates a corresponding data time slot to each sub-node; All data time slots are combined into an updated data time frame.

2. The dynamic time slot allocation method as claimed in claim 1, It is characterized in that The time slot allocation table also includes: a synchronous broadcast frame, which includes a clock synchronization time slot, an instruction time frame and a broadcast time slot, and the instruction time frame includes a plurality of instruction time slots.

3. The dynamic time slot allocation method as claimed in claim 2, It is characterized in that The method further comprises: The central node broadcasts a clock synchronization frame in the clock synchronization time slot, so that all sub-nodes in the current network perform clock calibration according to the clock synchronization frame; The central node broadcasts a plurality of remote control commands within the plurality of command time slots, so that all sub-nodes in the current network obtain matching data according to the plurality of remote control commands; The central node broadcasts the initialized data time frame in the broadcast time slot, so that all sub-nodes in the current network send data in the corresponding data time slot according to the initialized data time frame.

4. The dynamic time slot allocation method as claimed in claim 1, It is characterized in that The central node broadcasts the updated data time frame in the broadcast time slot in the current transceiver time slot frame, including: The central node adds a check code to the updated data time frame and then broadcasts it in the broadcast time slot, so that all sub-nodes in the current network enter the next transceiver time slot frame according to the check code.

5. The dynamic time slot allocation method according to any one of claims 1 to 4, It is characterized in that Each time slot in the time slot allocation table includes a data time period for transmitting data and a guard time period for not transmitting data.

6. A dynamic time slot allocation device, It is characterized in that Applied to a dynamic time slot allocation network, the dynamic time slot allocation network includes a central node and a plurality of sub-nodes, and the device includes: A time slot allocation table establishment module, used for the central node to establish a time slot allocation table according to the network capacity, wherein the time slot allocation table includes a plurality of transceiver time slot frames, each of which includes a network management time slot, a data time frame and a broadcast time slot, and the data time frame includes a data time slot for each sub-node to send data; A networking status acquisition module, used for the central node to obtain the networking status of all sub-nodes in the current network in the network management time slot in the current transceiver time slot frame; A data time frame updating module, used for the central node to generate an updated data time frame according to the networking status of all sub-nodes; A data time frame broadcast module, used for the central node to broadcast the updated data time frame in the broadcast time slot in the current transceiver time slot frame, so that all sub-nodes in the current network send data according to the updated data time frame in the next transceiver time slot frame; The obtaining of the networking status of all sub-nodes in the current network includes: Get the network exit request and network entry request in the current network; According to the network exit request in the current network, obtain the number of child nodes in the current network; Determining whether the number of child nodes is less than the network capacity; When the number of the sub-nodes is less than the network capacity, the networking status of all the sub-nodes in the current network is obtained according to the network access request and the sub-nodes currently in the network, wherein the networking status includes the sub-node numbers and the connection relationship between the sub-nodes; The central node generates an updated data time frame according to the networking status of all sub-nodes, including: According to the connection relationship between the sub-nodes in the networking state, the number of times each sub-node sends data and the order in which each sub-node sends data are obtained; According to the number of times each sub-node sends data and the order in which each sub-node sends data, the central node allocates a corresponding data time slot to each sub-node; All data time slots are combined into an updated data time frame.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.