Network communication time slot allocation method, device and system

By dynamically allocating static or dynamic time slots in the ad hoc network system and periodically recovering, the problem of low slot allocation efficiency in the prior art is solved, and the efficiency and resource utilization of network communication are improved.

CN114222370BActive Publication Date: 2024-11-12CHENGDU AEROSPACE COMM EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111538669.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-11-12
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

The existing ad hoc networking system is inefficient in time slot allocation, resulting in insufficient resource utilization, especially when the number of members is small, time slot resource waste is severe, priority allocation is redundant and low efficiency.

Method used

By sending a synchronization signal to the second node when receiving a communication instruction, detecting its time slot allocation request, and dynamically allocating static or dynamic time slots according to the data volume, periodically recovering the dynamic time slot until the communication is completed, improving the flexible allocation of time slots and utilization.

Benefits of technology

It improves the efficiency of network communication, avoids wasting time slot resources, and improves the transmission bandwidth and communication efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222370B_ABST
    Figure CN114222370B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and system for allocating network communication time slots. The method includes sending a synchronization signal to at least one second node when receiving a communication instruction, allocating a corresponding static time slot to the second node if a first time slot allocation request sent by the second node is detected, allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, and recovering the dynamic time slot after a preset time after the dynamic time slot allocation, waiting for reallocation until the communication data transmission is completed. The present invention applies for a static time slot from the first node through the second node to access the network, and applies for a dynamic time slot according to the amount of data of the communication data, and periodically recovers the dynamic time slot, waiting for reallocation until the communication is completed. Through the application and allocation of time slots, the flexible allocation of network communication time slots is improved, so as to improve the efficiency of network communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Self-organizing networks have the characteristics of dynamically establishing new connections to other nodes, and can realize functions such as self-repair, multi-hop cascading, and node self-management, which can greatly reduce the cost and complexity of network deployment.

[0003] However, current ad hoc network systems usually use fixed time slot allocation or priority allocation. Among them, fixed time slot allocation will result in low time slot resource utilization, which will further affect the transmission bandwidth of the entire system, especially when the number of members in the network is too small, part of the fixed time slot will be wasted; priority allocation is allocated according to the priority of the nodes in the network, and all time slots need to be fully allocated each time, which is relatively redundant. Therefore, how to optimize the time slot allocation scheme of networking communication to improve the communication efficiency of the networking communication system is a technical problem that needs to be solved urgently.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for allocating network communication time slots, aiming to solve the technical problem of low efficiency of current network communication time slot allocation.

[0006] To achieve the above object, the present invention provides a method for allocating network communication time slots, which is used for a first node, wherein the first node is in communication connection with at least one second node, and the method comprises the following steps:

[0007] Upon receiving the communication instruction, sending a synchronization signal to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization signal;

[0008] If a first time slot allocation request sent by a second node is detected, the second node is added to the network, and a corresponding static time slot is allocated to the second node, so that the second node sends communication data to the first node in the static time slot;

[0009] If a second time slot allocation request sent by a second node is detected, a corresponding number of dynamic time slots are allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot;

[0010] When the time for the second node to send communication data in the dynamic time slot exceeds a preset time, clearing the dynamic time slot allocated by the first node to the second node, and detecting whether the communication data is transmitted;

[0011] If not, return to the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected until the communication data transmission is completed.

[0012] Optionally, if a second time slot allocation request sent by the second node is detected, the step of allocating a corresponding number of dynamic time slots to the second node so that the second node sends communication data to the first node within the dynamic time slot specifically includes:

[0013] If a second time slot allocation request sent by the second node is detected, extracting the data amount of the communication data in the second time slot allocation request;

[0014] Based on the data volume of the communication data, the number of dynamic time slots allocated to the second node is determined to be selected so that the second node sends the communication data to the first node within the dynamic time slot.

[0015] Optionally, the dynamic time slot has a plurality of different time slot lengths; if a second time slot allocation request sent by a second node is detected, a corresponding number of dynamic time slots are allocated to the second node so that the second node sends communication data to the first node within the dynamic time slot, the step specifically includes:

[0016] If a second time slot allocation request sent by the second node is detected, extracting the data amount of the communication data in the second time slot allocation request;

[0017] Based on the data volume of the communication data, the length of the dynamic time slot allocated to the second node is determined to be selected so that the second node sends the communication data to the first node within the dynamic time slot.

[0018] Optionally, before the step of allocating a corresponding number of dynamic time slots to the second node, the method further includes:

[0019] Determine whether the remaining dynamic time slots meet the second time slot allocation request, and if so, execute the step of allocating a corresponding number of dynamic time slots to the second node;

[0020] Otherwise, the dynamic time slots occupied by the first node are cleared, and according to the cleared dynamic time slots and the remaining dynamic time slots, a step of allocating a corresponding number of dynamic time slots to the second node is performed.

[0021] In addition, in order to achieve the above object, the present invention also provides a method for allocating network communication time slots, which is used for a second node, at least one of which is in communication connection with a first node, and the method comprises the following steps:

[0022] When receiving a synchronization signal sent by a first node, completing time synchronization with the first node according to the synchronization signal;

[0023] If it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, a first time slot allocation request is sent to the first node, and communication data is sent to the first node in a static time slot allocated by the first node according to the first time slot allocation request;

[0024] otherwise, sending a second time slot allocation request to the first node, and sending communication data to the first node in a dynamic time slot allocated by the first node according to the second time slot allocation request;

[0025] When it is detected that the first node clears the dynamic time slot, the step of returning to the step of sending a second time slot allocation request to the first node is executed until the communication data transmission is completed.

[0026] Optionally, the second time slot allocation request includes the data volume of the communication data, and the time slot length of the dynamic time slot corresponds to the data volume.

[0027] In addition, in order to achieve the above-mentioned object, the present invention further provides a networking communication time slot allocation device, which is used for a first node, and the networking communication time slot allocation device includes:

[0028] A synchronization signal sending module, configured to send a synchronization signal to at least one second node upon receiving a communication instruction, so that the second node completes time synchronization with the first node according to the synchronization signal;

[0029] A static time slot allocation module, configured to, if a first time slot allocation request sent by a second node is detected, add the second node to the network, and allocate a corresponding static time slot to the second node, so that the second node sends communication data to the first node within the static time slot;

[0030] A dynamic time slot allocation module, configured to allocate a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, so that the second node sends communication data to the first node within the dynamic time slot;

[0031] A dynamic time slot clearing module, configured to clear the dynamic time slot allocated by the first node to the second node when the time for the second node to send communication data in the dynamic time slot exceeds a preset time, and detect whether the communication data has been transmitted;

[0032] The time slot re-allocation module is used to, if not, return to execute the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, until the communication data transmission is completed.

[0033] In addition, in order to achieve the above-mentioned object, the present invention further provides a networking communication time slot allocation device, which is used for a second node, and the networking communication time slot allocation device includes:

[0034] A synchronization signal receiving module, configured to complete time synchronization with the first node according to the synchronization signal when receiving the synchronization signal sent by the first node;

[0035] a static time slot sending module, configured to send a first time slot allocation request to the first node if it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, and send communication data to the first node in a static time slot allocated by the first node according to the first time slot allocation request;

[0036] A dynamic time slot sending module, configured to otherwise send a second time slot allocation request to the first node, and send communication data to the first node in a dynamic time slot allocated by the first node according to the second time slot allocation request;

[0037] The data repetition sending module, when detecting that the first node clears the dynamic time slot, returns to execute the step of sending a second time slot allocation request to the first node until the communication data transmission is completed.

[0038] In addition, in order to achieve the above-mentioned object, the present invention further provides a networking communication time slot allocation system, the networking communication time slot allocation system comprising a first node and at least one second node, the first node being communicatively connected with the at least one second node, wherein:

[0039] The first node comprises: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor, wherein the networking communication time slot allocation program implements the steps of the networking communication time slot allocation method for the first node as described above when executed by the processor;

[0040] The second node includes: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor. When the networking communication time slot allocation program is executed by the processor, the steps of the networking communication time slot allocation method for the second node as described above are implemented.

[0041] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a networking communication time slot allocation program is stored, and when the networking communication time slot allocation program is executed by a processor, the steps of the networking communication time slot allocation method as described above are implemented.

[0042] The embodiment of the present invention proposes a method, device and system for allocating network communication time slots. The method includes sending a synchronization signal to at least one second node when receiving a communication instruction. If a first time slot allocation request sent by the second node is detected, a corresponding static time slot is allocated to the second node. If a second time slot allocation request sent by the second node is detected, a corresponding number of dynamic time slots are allocated to the second node. After a preset time after the dynamic time slot allocation, the dynamic time slot is recovered and waits for reallocation until the communication data transmission is completed. The present invention applies for a static time slot from the first node through the second node to access the network, and applies for a dynamic time slot according to the amount of communication data, and periodically recovers the dynamic time slot, waits for reallocation until the communication is completed. Through the application and allocation of time slots, the flexible allocation of network communication time slots is improved, so as to improve the efficiency of network communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the structure of a network communication time slot allocation system according to an embodiment of the present invention;

[0044] Figure 2 A schematic diagram of the structure of a first node and a second node in an embodiment of the present invention;

[0045] Figure 3 A schematic diagram of a flow chart of a first embodiment of a method for allocating network communication time slots according to the present invention;

[0046] Figure 4 A schematic diagram of a flow chart of a second embodiment of a method for allocating network communication time slots according to the present invention;

[0047] Figure 5 It is a structural block diagram of a first embodiment of a network communication time slot allocation device in an embodiment of the present invention;

[0048] Figure 6 It is a structural block diagram of the second embodiment of the network communication time slot allocation device in the embodiment of the present invention.

[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0051] Self-organizing networks have the characteristics of dynamically establishing new connections to other nodes, and can realize functions such as self-repair, multi-hop cascading, and node self-management, which can greatly reduce the cost and complexity of network deployment.

[0052] However, current ad hoc network systems usually use fixed time slot allocation or priority allocation. Among them, fixed time slot allocation will result in low time slot resource utilization, which will further affect the transmission bandwidth of the entire system, especially when the number of members in the network is too small, part of the fixed time slot will be wasted; priority allocation is allocated according to the priority of the nodes in the network, and all time slots need to be fully allocated each time, which is relatively redundant. Therefore, how to optimize the time slot allocation scheme of networking communication to improve the communication efficiency of the networking communication system is a technical problem that needs to be solved urgently.

[0053] In order to solve this problem, various embodiments of the network communication time slot allocation method of the present invention are proposed. The network communication time slot allocation method provided by the present invention applies for a static time slot from the first node to access the network through the second node, and applies for a dynamic time slot according to the amount of communication data, and periodically recycles the dynamic time slot and waits for reallocation until the communication is completed. Through the application and allocation of time slots, the flexible allocation of network communication time slots is improved, so as to improve the efficiency of network communication.

[0054] Reference Figure 1 , Figure 1 It is a structural diagram of a network communication time slot allocation system in an embodiment of the present invention.

[0055] In this embodiment, the networking communication time slot allocation system includes a first node 100 and at least one second node 200, wherein the first node 100 is communicatively connected with the at least one second node 200, wherein:

[0056] The first node 100 includes: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor, wherein the networking communication time slot allocation program implements the steps of the networking communication time slot allocation method for the first node 100 when executed by the processor;

[0057] The second node 200 includes: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor. When the networking communication time slot allocation program is executed by the processor, the steps of the networking communication time slot allocation method for the second node 200 are implemented.

[0058] Reference Figure 2 , Figure 2 Schematic diagram of the structure of the first node and the second node in an embodiment of the present invention.

[0059] The first node and the second node may be user equipment (UE) such as a mobile phone, a smart phone, a laptop, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a mobile station (MS), etc. The first node and the second node may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.

[0060] Typically, the first node and the second node include: at least one processor 301, a memory 302, and a networking communication time slot allocation program stored in the memory and executable on the processor, wherein the networking communication time slot allocation program is configured to implement the steps of the networking communication time slot allocation method as described above.

[0061] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process the network communication time slot allocation operation, so that the network communication time slot allocation model can be trained and learned autonomously to improve efficiency and accuracy.

[0062] The memory 302 may include one or more computer-readable storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the networking communication time slot allocation method provided in the method embodiment of the present application.

[0063] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.

[0064] The communication interface 303 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. The communication interface 303 is used to receive the movement trajectories and other data of multiple mobile terminals uploaded by users through the peripheral device. In some embodiments, the processor 301, the memory 302 and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0065] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals, so as to obtain the movement trajectory and other data of multiple mobile terminals. The radio frequency circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0066] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in some further embodiments, the display screen 305 can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0067] The power supply 306 is used to power various components in the electronic device. The power supply 306 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0068] Those skilled in the art will understand that Figure 2 The structure shown in the figure does not constitute a limitation on the first node and the second node, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0069] The embodiment of the present invention provides a method for allocating network communication time slots, referring to Figure 3 , Figure 3 The figure is a flow chart of the first embodiment of the method for allocating network communication time slots according to the present invention.

[0070] In this embodiment, the networking communication time slot allocation method is used for the first node, and the networking communication time slot allocation method includes the following steps:

[0071] Step S100, when receiving a communication instruction, sending a synchronization signal to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization signal.

[0072] Specifically, in a networking communication system, if the first node sends a synchronization signal to the second node after the system is powered on and initialized to achieve time synchronization between the second node and the first node, at the same time, the first node waits for the second node to send service information and allocates time slots according to the service information.

[0073] Among them, the first node is usually the master node, and the second node is usually the slave node. After the first node is powered on and initialized, the internal time slot table of the first node is first configured, and synchronization information is cyclically sent to each second node, and service information is sent and received to the second node.

[0074] Step S200: If a first time slot allocation request sent by a second node is detected, the second node is added to the network, and a corresponding static time slot is allocated to the second node, so that the second node sends communication data to the first node in the static time slot.

[0075] Specifically, when the first node detects the first time slot allocation request sent by the second node, a corresponding static time slot is allocated to the second node, and the second node can send communication data of a corresponding data volume in the static time slot.

[0076] In practical applications, there are two situations in which the second node sends the first time slot allocation request:

[0077] When the second node is an isolated node, if it sends a first time slot allocation request, ie, a network access request, to the first node, the first node adds the second node to the networking communication and allocates the time slot in combination with the current static time slot allocation.

[0078] When the second node is a networking node, if it sends a first time slot allocation request, ie, a communication data sending request with a small amount of data, to the first node, the first node allocates a corresponding static time slot to the second node.

[0079] It should be noted that the first node can also monitor the number of nodes in the network. If the total number of node members in the networking system is full, the second node will be denied access to the network. If it is not full, a time slot application response will be fed back to the second node, and the time slot table will be updated for the allocation of static time slots.

[0080] Step S300: If a second time slot allocation request sent by a second node is detected, a corresponding number of dynamic time slots are allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot.

[0081] Specifically, when the first node detects the second time slot allocation request sent by the second node, a corresponding number of dynamic time slots are allocated to the second node, and the second node can send communication data of a corresponding data volume in the dynamic time slots.

[0082] In actual applications, if a second time slot allocation request sent by a second node is detected, the data volume of the communication data in the second time slot allocation request is extracted; based on the data volume of the communication data, the number of dynamic time slots allocated to the second node is determined so that the second node can send communication data to the first node within the dynamic time slot.

[0083] It is easy to understand that when the second node sends a large amount of communication data, the second node sends a second time slot allocation request to the first node, and the first node allocates a corresponding number of selected dynamic time slots to the second node based on the amount of communication data.

[0084] In this embodiment, the relationship between the number of dynamic time slots required for applying for the second dynamic time slot and the amount of data can be determined according to ms_Len, where ms_Len represents the number of millisecond pulse bytes corresponding to different code rates. For example, if the amount of data is greater than 200×ms_Len, one dynamic time slot is applied, and if the amount of data is greater than 400×ms_Len, two dynamic time slots are applied, and so on, and the corresponding number of selected dynamic time slots are allocated to the second node according to ms_Len.

[0085] Furthermore, the dynamic time slot has a variety of different time slot lengths. Therefore, a corresponding number of dynamic time slots are allocated to the second node. If a second time slot allocation request sent by the second node is detected, the amount of communication data in the second time slot allocation request can be extracted; based on the amount of communication data, the length of the dynamic time slot allocated to the second node is determined to enable the second node to send communication data to the first node within the dynamic time slot.

[0086] It is easy to understand that when the second node sends a large amount of data, the second node sends a second time slot allocation request to the first node, and the first node allocates a dynamic time slot of corresponding length to the second node based on the amount of communication data.

[0087] In this embodiment, the dynamic time slot selection required to apply for the second dynamic time slot is related to the data volume, that is, each dynamic time slot can be set to a different length. When the first node allocates a dynamic time slot to the second node, the corresponding dynamic time slot can be selected according to the data volume to save time slot resources for network communication.

[0088] In another embodiment, before allocating a corresponding number of dynamic time slots to the second node, it is necessary to determine whether the remaining dynamic time slots meet the second time slot allocation request. If so, the step of allocating a corresponding number of dynamic time slots to the second node is executed; otherwise, the dynamic time slots occupied by the first node are cleared, and based on the cleared dynamic time slots and the remaining dynamic time slots, the step of allocating a corresponding number of dynamic time slots to the second node is executed.

[0089] It is easy to understand that before allocating dynamic time slots, first determine whether the remaining dynamic time slots meet the application requirements. If they do, allocate and respond. If not, determine whether the first node is using the dynamic time slots. If the first node is not using the dynamic time slots, all idle dynamic time slots will be allocated. If the first node is using the dynamic time slots, the dynamic time slots occupied by the first node will be reclaimed, and the time slot table will be updated. The remaining dynamic time slots and the application requirements will then be determined and an allocation response will be made.

[0090] In another embodiment, whether the second node sends the first time slot allocation request or the second time slot allocation request to the first node is determined by whether the second node is an isolated node and the amount of communication data.

[0091] Specifically, if the second node is an isolated node, a first time slot allocation request is sent to the first node, requesting to join the network and allocate a static time slot; if the second node is a networking node, it is determined whether the amount of communication data exceeds a preset value. If not, a first time slot allocation request is sent to the first node, requesting to allocate a static time slot. If it exceeds, a second time slot allocation request is sent to the first node, requesting to allocate a dynamic time slot.

[0092] In this embodiment, the number of millisecond pulse bytes corresponding to the used bit rate is determined, and the size of the current general type data volume is calculated. If the data volume is less than 5×ms_Len, the static time slot is directly used. If it is greater than 5×ms_Len, a dynamic time slot is prepared to be applied for. In addition, the current video or picture type data volume is calculated, and it is determined whether there is data in the current video / image type data cache. If there is data, 4 dynamic time slots are prepared to be applied. If there is no data in the cache, the time slot application preparation is exited, and the prepared application demand is sent to the first node.

[0093] Step S400: when the time for the second node to send communication data in the dynamic time slot exceeds a preset time, clear the dynamic time slot allocated by the first node to the second node, and detect whether the communication data is transmitted.

[0094] Specifically, in order to flexibly allocate dynamic time slots, the first node may periodically recycle the dynamic time slots.

[0095] In this embodiment, the use period of the dynamic time slot allocated to each second node is 1 minute. When the second node sends communication data in the dynamic time slot for more than 1 minute, the first node will reclaim the dynamic time slot, and the second node will stop sending communication data and detect whether the communication data has been transmitted. Through short-term flexible allocation and recovery, the waste of dynamic time slot resources is avoided and the efficiency of network communication is improved.

[0096] Step S500: If not, return to the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, until the communication data transmission is completed.

[0097] Specifically, when it is determined that the communication data of the second node has not been transmitted, it is necessary to reallocate the dynamic time slot for the second node. At this time, the process returns to execute the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected until the communication data transmission is completed.

[0098] The networking communication time slot allocation method provided in this embodiment applies for a static time slot from the first node for network access through the second node, and applies for a dynamic time slot according to the amount of communication data, and periodically recycles the dynamic time slot and waits for reallocation until the communication is completed. The flexible allocation of networking communication time slots is improved through the application and allocation of time slots, thereby improving the efficiency of networking communications.

[0099] For easier understanding, see Figure 4 , Figure 4 It is a flow chart of the second embodiment of the method for allocating network communication time slots of the present invention.

[0100] Based on Figure 3 The first embodiment of the networking communication time slot allocation method shown in the figure, in this embodiment, the networking communication time slot allocation method is used for the second node, and the networking communication time slot allocation method includes the following steps:

[0101] Step S600: When a synchronization signal sent by a first node is received, time synchronization with the first node is completed according to the synchronization signal.

[0102] Specifically, in a networking communication system, if the first node sends a synchronization signal to the second node after the system is powered on and initialized to achieve time synchronization between the second node and the first node, at the same time, the first node waits for the second node to send service information and allocates time slots according to the service information.

[0103] Among them, the first node is usually the master node, and the second node is usually the slave node. After the first node is powered on and initialized, the internal time slot table of the first node is first configured, and synchronization information is cyclically sent to each second node, and service information is sent and received to the second node.

[0104] Step S700: If it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, a first time slot allocation request is sent to the first node, and communication data is sent to the first node in a static time slot allocated by the first node according to the first time slot allocation request.

[0105] Step S800: otherwise, send a second time slot allocation request to the first node, and send communication data to the first node in the dynamic time slot allocated by the first node according to the second time slot allocation request.

[0106] Step S900, when it is detected that the first node clears the dynamic time slot, the process returns to the step of sending a second time slot allocation request to the first node until the communication data transmission is completed.

[0107] Specifically, whether the second node sends the first time slot allocation request or the second time slot allocation request to the first node is determined by whether the second node is an isolated node and the amount of communication data.

[0108] Specifically, if the second node is an isolated node, a first time slot allocation request is sent to the first node, requesting to join the network and allocate a static time slot; if the second node is a networking node, it is determined whether the amount of communication data exceeds a preset value. If not, a first time slot allocation request is sent to the first node, requesting to allocate a static time slot. If it exceeds, a second time slot allocation request is sent to the first node, requesting to allocate a dynamic time slot.

[0109] In this embodiment, the number of millisecond pulse bytes corresponding to the used bit rate is determined, and the size of the current general type data volume is calculated. If the data volume is less than 5×ms_Len, the static time slot is directly used. If it is greater than 5×ms_Len, a dynamic time slot is prepared to be applied for. In addition, the current video or picture type data volume is calculated, and it is determined whether there is data in the current video / image type data cache. If there is data, 4 dynamic time slots are prepared to be applied. If there is no data in the cache, the time slot application preparation is exited, and the prepared application demand is sent to the first node.

[0110] In addition, the first node will periodically recycle the dynamic time slot. In this embodiment, the use period of the dynamic time slot allocated to each second node is 1 minute. When the second node sends communication data in the dynamic time slot for more than 1 minute, the first node will reclaim the dynamic time slot, and the second node will stop sending communication data and detect whether the communication data has been transmitted. Through short-term flexible allocation and recovery, the waste of dynamic time slot resources is avoided and the efficiency of network communication is improved.

[0111] Therefore, if it is detected that the first node clears the dynamic time slot, the process returns to the step of sending a second time slot allocation request to the first node until the communication data transmission is completed.

[0112] The networking communication time slot allocation method provided in this embodiment chooses to send a first time slot allocation request or a second time slot allocation request to the first node by judging whether the second node is an isolated node or whether the amount of communication data is less than a preset value, and then obtains a static time slot or a dynamic time slot to meet the flexible allocation of time slots when the second node is in different states or sends communication data of different data amounts.

[0113] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the network communication time slot allocation device of the present invention.

[0114] like Figure 5 As shown, the networking communication time slot allocation device proposed in the embodiment of the present invention includes:

[0115] A synchronization signal sending module 10, configured to send a synchronization signal to at least one second node upon receiving a communication instruction, so that the second node completes time synchronization with the first node according to the synchronization signal;

[0116] The static time slot allocation module 20 is used to add the second node to the network and allocate a corresponding static time slot to the second node if a first time slot allocation request sent by the second node is detected, so that the second node sends communication data to the first node in the static time slot;

[0117] The dynamic time slot allocation module 30 is used to allocate a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, so that the second node sends communication data to the first node within the dynamic time slot;

[0118] A dynamic time slot clearing module 40, configured to clear the dynamic time slot allocated by the first node to the second node when the time for the second node to send communication data in the dynamic time slot exceeds a preset time, and detect whether the communication data is transmitted;

[0119] The time slot re-allocation module 50 is used to, if not, return to execute the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, until the communication data transmission is completed.

[0120] As an embodiment, the dynamic time slot allocation module 30 is also used to extract the data volume of the communication data in the second time slot allocation request if a second time slot allocation request sent by the second node is detected; based on the data volume of the communication data, determine the number of dynamic time slots allocated to the second node so that the second node sends communication data to the first node within the dynamic time slot.

[0121] As an embodiment, the dynamic time slot has a plurality of different time slot lengths, and the dynamic time slot allocation module 30 is also used to extract the data volume of the communication data in the second time slot allocation request if a second time slot allocation request sent by the second node is detected; based on the data volume of the communication data, determine the length of the dynamic time slot allocated to the second node so that the second node sends communication data to the first node within the dynamic time slot.

[0122] As an implementation mode, the time slot re-allocation module 50 is also used to determine whether the remaining dynamic time slots meet the second time slot allocation request. If so, the step of allocating a corresponding number of dynamic time slots to the second node is executed; otherwise, the dynamic time slots occupied by the first node are cleared, and based on the cleared dynamic time slots and the remaining dynamic time slots, the step of allocating a corresponding number of dynamic time slots to the second node is executed.

[0123] The networking communication time slot allocation device provided in this embodiment applies for a static time slot from the first node to access the network through the second node, and applies for a dynamic time slot according to the amount of communication data, and periodically recycles the dynamic time slot and waits for reallocation until the communication is completed. Through the application and allocation of time slots, the flexible allocation of networking communication time slots is improved, thereby improving the efficiency of networking communication.

[0124] Reference Figure 6 , Figure 6This is a structural block diagram of the second embodiment of the network communication time slot allocation device of the present invention.

[0125] Based on Figure 5 The first embodiment of the network communication time slot allocation device shown in the figure, the network communication time slot allocation device proposed in the embodiment of the present invention includes:

[0126] A synchronization signal receiving module 60, configured to complete time synchronization with the first node according to the synchronization signal when receiving the synchronization signal sent by the first node;

[0127] The static time slot sending module 70 is used to send a first time slot allocation request to the first node if it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, and send communication data to the first node in the static time slot allocated by the first node according to the first time slot allocation request;

[0128] A dynamic time slot sending module 80, configured to send a second time slot allocation request to the first node otherwise, and send communication data to the first node in a dynamic time slot allocated by the first node according to the second time slot allocation request;

[0129] The data retransmission module 90, when detecting that the first node clears the dynamic time slot, returns to execute the step of sending a second time slot allocation request to the first node until the communication data transmission is completed.

[0130] As an implementation manner, in the dynamic time slot sending module 80, the second time slot allocation request includes the data volume of the communication data, and the time slot length of the dynamic time slot corresponds to the data volume.

[0131] The networking communication time slot allocation device provided in this embodiment chooses to send a first time slot allocation request or a second time slot allocation request to the first node by judging whether the second node is an isolated node or whether the amount of communication data is less than a preset value, thereby obtaining a static time slot or a dynamic time slot to meet the flexible allocation of time slots when the second node is in different states or sends communication data of different data amounts.

[0132] Other embodiments or specific implementations of the networking communication time slot allocation device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.

[0133] In addition, an embodiment of the present invention further proposes a storage medium, on which a networking communication time slot allocation program is stored, and when the networking communication time slot allocation program is executed by a processor, the steps of the networking communication time slot allocation method described above are implemented. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application. Determined as an example, the program instructions can be deployed to be executed on a computing device, or on multiple computing devices located at one location, or, on multiple computing devices distributed at multiple locations and interconnected by a communication network.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0135] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work.

[0136] Through the description of the above implementation mode, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present invention, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

Claims

1. A method for allocating network communication time slots, characterized in that: For a first node, the first node being communicatively connected to at least one second node, the method comprising the following steps: Upon receiving the communication instruction, sending a synchronization signal to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization signal; By determining whether the second node is an isolated node or whether the amount of communication data is less than a preset value, selecting whether to send a first time slot allocation request or a second time slot allocation request to the first node, thereby obtaining a static time slot or a dynamic time slot; If a first time slot allocation request sent by a second node is detected, the second node is added to the network, and a corresponding static time slot is allocated to the second node, so that the second node sends communication data to the first node in the static time slot; If a second time slot allocation request sent by a second node is detected, a corresponding number of dynamic time slots are allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot; When the time for the second node to send communication data in the dynamic time slot exceeds a preset time, clearing the dynamic time slot allocated by the first node to the second node, and detecting whether the communication data is transmitted; If not, return to the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected until the communication data transmission is completed.

2. The method for allocating network communication time slots according to claim 1, characterized in that: If a second time slot allocation request sent by the second node is detected, the step of allocating a corresponding number of dynamic time slots to the second node so that the second node sends communication data to the first node within the dynamic time slot specifically includes: If a second time slot allocation request sent by the second node is detected, extracting the data amount of the communication data in the second time slot allocation request; Based on the data volume of the communication data, the number of dynamic time slots allocated to the second node is determined to be selected so that the second node sends the communication data to the first node within the dynamic time slot.

3. The method for allocating network communication time slots according to claim 1, wherein: The dynamic time slot has a plurality of different time slot lengths; if a second time slot allocation request sent by a second node is detected, a corresponding number of dynamic time slots are allocated to the second node so that the second node sends communication data to the first node within the dynamic time slot, specifically comprising: If a second time slot allocation request sent by the second node is detected, extracting the data amount of the communication data in the second time slot allocation request; Based on the data volume of the communication data, the length of the dynamic time slot allocated to the second node is determined to be selected so that the second node sends the communication data to the first node within the dynamic time slot.

4. The method for allocating network communication time slots according to claim 2, wherein: Before the step of allocating a corresponding number of dynamic time slots to the second node, the method further includes: Determine whether the remaining dynamic time slots meet the second time slot allocation request, and if so, execute the step of allocating a corresponding number of dynamic time slots to the second node; Otherwise, the dynamic time slots occupied by the first node are cleared, and according to the cleared dynamic time slots and the remaining dynamic time slots, a step of allocating a corresponding number of dynamic time slots to the second node is performed.

5. A method for allocating network communication time slots, characterized in that: For a second node, at least one of the second nodes is communicatively connected to the first node, the method comprising the following steps: When receiving a synchronization signal sent by a first node, completing time synchronization with the first node according to the synchronization signal; Apply for a static time slot from the first node through the second node to access the network, and apply for a dynamic time slot according to the amount of communication data, and periodically recycle the dynamic time slot and wait for reallocation until the communication is completed; If it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, a first time slot allocation request is sent to the first node, and communication data is sent to the first node in a static time slot allocated by the first node according to the first time slot allocation request; otherwise, sending a second time slot allocation request to the first node, and sending communication data to the first node in a dynamic time slot allocated by the first node according to the second time slot allocation request; When it is detected that the first node clears the dynamic time slot, the step of returning to the step of sending a second time slot allocation request to the first node is executed until the communication data transmission is completed.

6. The method for allocating network communication time slots according to claim 5, characterized in that: The second time slot allocation request includes the data amount of the communication data, and the time slot length of the dynamic time slot corresponds to the data amount.

7. A network communication time slot allocation device, characterized in that: For the first node, the networking communication time slot allocation device includes: A synchronization signal sending module, configured to send a synchronization signal to at least one second node upon receiving a communication instruction, so that the second node completes time synchronization with the first node according to the synchronization signal; By determining whether the second node is an isolated node or whether the amount of communication data is less than a preset value, selecting whether to send a first time slot allocation request or a second time slot allocation request to the first node, thereby obtaining a static time slot or a dynamic time slot; A static time slot allocation module, configured to, if a first time slot allocation request sent by a second node is detected, add the second node to the network, and allocate a corresponding static time slot to the second node, so that the second node sends communication data to the first node within the static time slot; A dynamic time slot allocation module, configured to allocate a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, so that the second node sends communication data to the first node within the dynamic time slot; A dynamic time slot clearing module, configured to clear the dynamic time slot allocated by the first node to the second node when the time for the second node to send communication data in the dynamic time slot exceeds a preset time, and detect whether the communication data has been transmitted; The time slot re-allocation module is used to, if not, return to execute the step of allocating a corresponding number of dynamic time slots to the second node if a second time slot allocation request sent by the second node is detected, until the communication data transmission is completed.

8. A network communication time slot allocation device, characterized in that: For the second node, the networking communication time slot allocation device includes: A synchronization signal receiving module, configured to complete time synchronization with the first node according to the synchronization signal when receiving the synchronization signal sent by the first node; Apply for a static time slot from the first node through the second node to access the network, and apply for a dynamic time slot according to the amount of communication data, and periodically recycle the dynamic time slot and wait for reallocation until the communication is completed; a static time slot sending module, configured to send a first time slot allocation request to the first node if it is detected that the second node is an isolated node or the amount of the communication data is less than a preset value, and send communication data to the first node in a static time slot allocated by the first node according to the first time slot allocation request; A dynamic time slot sending module, configured to otherwise send a second time slot allocation request to the first node, and send communication data to the first node in a dynamic time slot allocated by the first node according to the second time slot allocation request; The data repetition sending module, when detecting that the first node clears the dynamic time slot, returns to execute the step of sending a second time slot allocation request to the first node until the communication data transmission is completed.

9. A network communication time slot allocation system, characterized in that: The networking communication time slot allocation system comprises a first node and at least one second node, wherein the first node is communicatively connected with the at least one second node, wherein: The first node comprises: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor, wherein the networking communication time slot allocation program, when executed by the processor, implements the steps of the networking communication time slot allocation method according to any one of claims 1 to 4; The second node includes: a memory, a processor, and a networking communication time slot allocation program stored in the memory and executable on the processor, wherein the networking communication time slot allocation program, when executed by the processor, implements the steps of the networking communication time slot allocation method as described in any one of claims 5 to 6.

10. A storage medium, characterized in that: The storage medium stores a networking communication time slot allocation program, which, when executed by a processor, implements the steps of the networking communication time slot allocation method according to any one of claims 1 to 7.