Communication time slice allocation method, device and system, electronic equipment and computer readable storage medium
By dynamically configuring the communication time slices of slave nodes, the inefficiency and stability problems caused by fixed communication cycles in wireless communication systems are solved, and communication efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202411305488.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-18
AI Technical Summary
In the existing wireless communication system, the communication cycle of the slave node is fixed, resulting in low time utilization and reduced detection efficiency. When the communication quality is poor, communication failure may be caused, reducing system stability.
Using the communication time slice configuration method, when the master node establishes wireless communication with the slave node, the communication cycle is dynamically adjusted according to the number of successful communication times. If successful, the remaining time slice will be converted into a backup. If failed, the backup time slice will be arranged to continue communication until successful. Or reach the number of spare time slices.
It improves communication efficiency and quality, shortens communication time, and improves resource utilization and communication success rate.
Smart Images

Figure CN119212092A_ABST
Abstract
Description
Background Art
[0002] With the vigorous development of the new energy industry, the cascade application of battery packs is becoming more and more important, which can improve the recycling efficiency of battery packs, optimize the cost of batteries and reduce the environmental pollution caused by the disassembly of battery packs. For example, there will be multiple battery packs in series and parallel in the battery PACK carried by new energy vehicles to meet the voltage and power requirements of new energy vehicles.
[0003] In order to realize the cascade utilization of battery packs, the integrated battery pack design using wireless communication has gradually become a technical direction for the development of the industry. The commonly used method is: set the detection device end as the master node, set a slave node for each battery in the battery pack, and the slave node has a fixed communication cycle. During this cycle, the slave node can communicate with the master node multiple times, so that the detection device end of the master node can determine the status of the battery pack of the slave node through communication information; after completing a slave node, the status of the next slave node is detected in the next communication cycle.
[0004] However, the commonly used methods currently have the following technical problems: the communication cycle of the slave node is fixed. When the communication quality is good, the slave node only needs one time to complete the communication with the master node. It is necessary to wait for the current fixed communication cycle to end before detecting the next slave node. The time utilization rate is low and the detection time is long, which reduces the detection efficiency; when the communication quality is poor, the slave node may not be able to communicate with the master node during the entire communication cycle, resulting in the failure of the communication between the slave node and the master node, reducing the stability of the entire communication system. Summary of the invention
[0005] The present invention proposes a method, device, electronic device and computer-readable storage medium for allocating communication time slices, and the method can solve one or more of the above-mentioned technical problems.
[0006] A first aspect of an embodiment of the present invention provides a method for allocating communication time slices, which is used for allocating time slices in a multi-node wireless communication system. The method involves a master node and N slave nodes that are mutually communicatively connected in the wireless communication system. The master node can respectively perform wireless communication with the N slave nodes. In each communication time period, the master node completes wireless communication once with each slave node. Each slave node is provided with M communication time slices. The method comprises:
[0007] Control the master node to establish wireless communication with any one of the slave nodes;
[0008] Counting the number of communications of the slave node that is establishing communication with the master node, and stopping counting when the slave node successfully communicates with the master node, or stopping counting when the counted number of communications reaches M;
[0009] If the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, the remaining communication time slice of the slave node is calculated according to the number of communications, the remaining communication time slice is converted into a standby time slice, and the master node is triggered to wirelessly communicate with another slave node;
[0010] If the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully, determine whether the backup time slice exists. If the backup time slice does not exist, the master node confirms that the communication with the slave node has failed. If the backup time slice exists, the backup time slice is allocated for the slave node to communicate with the master node until the master node and the slave node communicate successfully, or the number of times the backup time slice is allocated for the master node and the slave node to communicate is equal to the total number of backup time slices and the master node and the slave node still fail to successfully establish communication, the master node confirms that the communication with the slave node has failed.
[0011] In a possible implementation manner of the first aspect, calculating the remaining communication time slice of the slave node according to the number of communications includes:
[0012] Calculate the difference between M and the number of communications;
[0013] The communication time slices of the current slave nodes are counted according to the difference to obtain the remaining communication time slices.
[0014] In a possible implementation manner of the first aspect, the controlling the master node to establish wireless communication with any one of the slave nodes includes:
[0015] Control the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice;
[0016] If it is determined that the master node receives the feedback information of the slave node within the preset time interval, it is determined that the master node communicates successfully with the slave node;
[0017] If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
[0018] In a possible implementation of the first aspect, the method further provides K scheduling time slices;
[0019] After the master node confirms that the slave node fails to communicate, the method further includes:
[0020] The K scheduling time slices are allocated for the slave node that is establishing communication to communicate with the master node until the master node successfully communicates with the slave node that is establishing communication.
[0021] A second aspect of an embodiment of the present invention provides a communication time slice allocation device, which is used for time slice allocation of a multi-node wireless communication system. The device involves a master node and N slave nodes that are mutually communicatively connected in the wireless communication system. In each communication time period, the master node completes wireless communication once with each of the slave nodes. Each of the slave nodes is provided with M communication time slices. The device includes:
[0022] Determine a communication module, used to control the master node to establish wireless communication with any one of the slave nodes;
[0023] A communication times counting module is used to count the communication times of the slave node that is establishing communication with the master node, and stop counting when the slave node successfully communicates with the master node, or when the counted communication times reaches M;
[0024] A time slice accumulation module, configured to calculate the remaining communication time slice of the slave node according to the number of communications if the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, convert the remaining communication time slice into a standby time slice, and trigger the master node to perform wireless communication with another slave node;
[0025] A time slice allocation module is used to determine whether the backup time slice exists if the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully. If the backup time slice does not exist, the master node confirms that the communication with the slave node has failed. If the backup time slice exists, the backup time slice is allocated for the slave node to communicate with the master node until the master node and the slave node communicate successfully. Or, if the number of communications between the master node and the slave node using the backup time slice is equal to the total number of backup time slices and the master node and the slave node still fail to successfully establish communication, the master node confirms that the communication with the slave node has failed.
[0026] In a possible implementation manner of the second aspect, the calculating, according to the number of communications, a remaining communication time slice of the slave node includes:
[0027] Calculate the difference between M and the number of communications;
[0028] The communication time slices of the current slave nodes are counted according to the difference to obtain the remaining communication time slices.
[0029] In a possible implementation manner of the second aspect, the controlling the master node to establish wireless communication with any one of the slave nodes includes:
[0030] Control the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice;
[0031] If it is determined that the master node receives the feedback information of the slave node within the preset time interval, it is determined that the master node communicates successfully with the slave node;
[0032] If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
[0033] In a possible implementation of the second aspect, the device is further provided with K scheduling time slices;
[0034] The device also includes:
[0035] The time slice allocation module is used to allocate the K scheduling time slices for the slave node that is establishing communication to communicate with the master node after the master node confirms that the slave node communication has failed, until the master node successfully communicates with the slave node that is establishing communication.
[0036] A third aspect of an embodiment of the present invention provides a communication time slice allocation system, the system is applied to the communication time slice allocation method as described above, the system includes: a master node and N slave nodes;
[0037] The master node communicates wirelessly with the N slave nodes respectively, each of the slave nodes is provided with M communication time slices, and the time intervals between two adjacent communication time slices are the same.
[0038] Compared with the prior art, the method, device, electronic device and computer-readable storage medium for allocating a communication time slice provided by the embodiment of the present invention have the beneficial effect that: the present invention can dynamically adjust the duration of a communication cycle of a slave node, and when the master node and the slave node establish wireless communication, determine whether the master node and the slave node communicate successfully; if the master node and the slave node communicate successfully, then the number of communications of the slave node is counted; if the value of the number of communications is less than the number of communication time slices of the slave node, the communication time slice of the slave node can be allocated to the next slave node according to the number of communications, and the master node is triggered to wirelessly communicate with the next slave node; once the communication is successful, the master node can be immediately triggered to communicate with the next slave node without waiting for a complete communication cycle, which can shorten the communication time and improve the communication efficiency; and when the master-slave node communicates successfully, the remaining communication time slice of the current slave node can be allocated to the next slave node, so that the slave node with poor subsequent communication quality can have multiple communication time slices for wireless communication, and the probability of successful communication between the slave node with poor communication quality and the master node is increased. The present application can make more reasonable use of time resources and improve the utilization rate of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of a method for allocating communication time slices provided by one embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of a wireless communication network between a master node and a plurality of slave nodes provided by an embodiment of the present invention;
[0041] Figure 3 It is a schematic diagram of the communication time slice of each slave node in the wireless communication network provided by an embodiment of the present invention;
[0042] Figure 4 It is a schematic diagram of communication time slice scheduling of slave nodes of a wireless communication network provided by an embodiment of the present invention;
[0043] Figure 5 It is an operation flow chart of a method for allocating communication time slices provided by one embodiment of the present invention;
[0044] Figure 6 It is a structural schematic diagram of a communication time slice allocation device provided by an embodiment of the present invention;
[0045] Figure 7 It is a structural diagram of a communication time slice allocation system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In order to solve the above problems, a communication time slice allocation method, device, electronic device and computer-readable storage medium provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.
[0048] Reference Figure 1 , showing a flow chart of a method for allocating communication time slices provided by an embodiment of the present invention.
[0049] In one embodiment, the method is used for time slice allocation of a multi-node wireless communication system. The method involves a master node and N slave nodes that are communicatively connected to each other in the wireless communication system. The master node can respectively perform wireless communication with the N slave nodes. In each communication time period, the master node completes one wireless communication with each of the slave nodes. Each of the slave nodes is provided with M communication time slices.
[0050] Reference Figure 2-3 , respectively showing a schematic diagram of a wireless communication network between a master node and a plurality of slave nodes provided in an embodiment of the present invention and a schematic diagram of a communication time slice of each slave node in the wireless communication network provided in an embodiment of the present invention.
[0051] Figure 2 and Figure 3 The slave node is the slave node of each battery in the battery pack, also known as the slave node.
[0052] The wireless communication network may include a master node and N slave nodes, where N is at least 2. The N slave nodes complete wireless communication with the wireless communication master node, and the above communication process is repeated periodically, thereby completing the communication of the entire wireless communication network.
[0053] In one implementation, each slave node may communicate with the master node one by one in a pre-determined order, and each slave node has its own communication cycle.
[0054] like Figure 3 As shown, each slave node can be allocated 2, 3 or 10 communication time slices, and the communication time slice is configurable based on the maximum resources that can be allocated by the system.
[0055] Assume that there are 3 slave nodes, and the communication time between the master node and the 3 slave nodes is 100ms. Then the communication time of each slave node is 100 / 3≈33ms, and the time allocated to each slave node is 33ms. Assume that the communication time between each slave node is 10ms, and the number of communication time slices of each slave node is 33ms / 10ms≈3. For the convenience of description, the present invention is described as allocating 3 communication time slices to each slave node.
[0056] Wherein, as an example, the method for allocating the communication time slice may include:
[0057] S11, controlling the master node to establish wireless communication with any one of the slave nodes.
[0058] In one embodiment, N slave nodes are arranged in sequence, and the master node can establish wireless communication with each slave node one by one according to the arrangement order of the N slave nodes. Specifically, the master node can first wirelessly communicate with the first slave node. Since each slave node is provided with 3 communication time slices, the master node can wirelessly communicate with the first slave node three times, and each communication is 10ms. If the first time is successful, the master node will wirelessly communicate with the second slave node. If the first time is unsuccessful, the master node will wirelessly communicate with the first slave node for the second time. Similarly, if the second wireless communication is successful, the master node will wirelessly communicate with the second slave node. On the contrary, if the second time is unsuccessful, the master node will wirelessly communicate with the first slave node for the third time. Similarly, if the third wireless communication is successful, the master node will wirelessly communicate with the second slave node. If the third time is also unsuccessful, since the number of communications is equal to the number of communication time slices, wireless communication can no longer be performed, and the master node will directly wirelessly communicate with the second slave node. The communication of the next slave node is the same as the above method until the master node completes with the N slave nodes.
[0059] Wherein, as an example, controlling the master node to establish wireless communication with N slave nodes in sequence may include the following sub-steps:
[0060] S111, controlling the master node to send a communication heartbeat packet to any one of the slave nodes according to the communication time slice.
[0061] S112: If it is determined that the master node receives the feedback information of the slave node within a preset time interval, it is determined that the master node communicates successfully with the slave node.
[0062] S113: If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
[0063] In one embodiment, whether the master node and the slave node have successfully communicated can be determined by a conventional heartbeat packet detection method.
[0064] Specifically, the master node can be controlled to send a communication heartbeat packet to the slave node currently performing wireless communication according to the time of the communication time slice, and the time of each communication time slice can be used for wireless communication with the slave node. Then, it is detected whether the master node receives the feedback information sent by the current slave node within a preset time interval. If it is determined that the master node receives the feedback information of the current slave node within the preset time interval, it can be determined that the master node and the current slave node have successfully communicated. On the contrary, if it is determined that the master node does not receive the feedback information of the current slave node within the preset time interval, it can be determined that the master node and the current slave node have failed to communicate.
[0065] S12, counting the number of communications of the slave node that is establishing communication with the master node, and stopping counting when the slave node successfully communicates with the master node, or stopping counting when the counted number of communications reaches M.
[0066] According to the above analysis, assuming that there are 3 communication time slices, the master node can communicate with the slave node three times. If the communication quality is good, it may be successful using one communication time slice. If the communication quality is poor, it may take two or three communication time slices to succeed.
[0067] The number of communications using the communication time slice can be counted. If the communication is successful, the counting is stopped; if the number of communications using the time slice is equal to the number of communication time slices, the counting is also stopped.
[0068] Referring to the above example, assuming that there are 3 communication time slices, if the master node and the slave node succeed in the first communication, the number of communications is 1, and then the statistics are stopped. If the master node and the slave node succeed in the second communication, the number of communications is 2, and then the statistics are stopped. If the master node and the slave node communicate for the third time, regardless of success or failure, the number of communications is 3, which is equal to the number of communication time slices, and the statistics are also stopped.
[0069] S13. If the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, the remaining communication time slice of the slave node is calculated according to the number of communications, the remaining communication time slice is converted into a backup time slice, and the master node is triggered to communicate wirelessly with another slave node.
[0070] In one embodiment, when it is determined that the master node successfully communicates with the slave node that is establishing communication with the master node, the number of communications between the master node and the current slave node can be counted. If the number of communications is less than M, it means that the slave node has several communication time slices that have not been used. Assuming that there are 3 communication time slices, it means that the master node can communicate with the slave node three times. If the communication quality is good, the communication may be successful once, and the number of communications is one, which is less than 3. The slave node has 2 unused communication time slices. In order to reuse unused communication time slices to improve resource utilization, the remaining communication time slices of the current slave node can be calculated based on the number of communications, and then the remaining communication time slices of the current slave node can be converted into spare time slices.
[0071] The spare time slice can be used subsequently for the next slave node with poor communication quality to perform wireless communication.
[0072] Reference Figure 4 , showing a schematic diagram of communication time slice scheduling of slave nodes in a wireless communication network provided by an embodiment of the present invention.
[0073] In one embodiment, the calculating the remaining communication time slice of the slave node according to the number of communications may include the following sub-steps:
[0074] S131, calculate the difference between M and the number of communications.
[0075] S132. Count the communication time slices of the slave nodes according to the difference to obtain remaining communication time slices.
[0076] Specifically, the difference between M and the number of communications may be calculated first, and then the remaining communication time slices of the current slave node may be allocated to the next slave node according to the number corresponding to the calculated difference.
[0077] Reference Figure 4 , assuming that there are 3 communication time slices, the master node can communicate with each slave node three times. Assuming that the master node successfully communicates with the second slave node for the second time, there is one communication time slice left. After calculating the difference between M and the number of communications, a remaining communication time slice is obtained. This communication time slice can be converted into a backup time slice and then frequency-adjusted to the third slave node. At the same time, the master node can be triggered to communicate wirelessly with the third slave node.
[0078] The third slave node can also communicate in the above manner. If there is communication time slice remaining, it will be converted into a backup time slice and moved to the next slave node for use by subsequent slave nodes.
[0079] S14. If the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully, determine whether the backup time slice exists; if the backup time slice does not exist, the master node confirms that the communication with the slave node has failed; if the backup time slice exists, allocate the backup time slice for the slave node to communicate with the master node until the master node and the slave node communicate successfully; or if the number of communications when the backup time slice is allocated for the master node and the slave node is equal to the total number of the backup time slices and the master node and the slave node have failed to establish communication successfully, the master node confirms that the communication with the slave node has failed.
[0080] If the number of communications between the master node and the slave node reaches M and the master node and the slave node still fail to communicate successfully, it can be determined whether the previous slave node has remaining communication time slices as backup time slices. If there are no backup time slices, the master node confirms that the communication with the slave node has failed.
[0081] On the contrary, if it is determined that the previous slave node has remaining communication time slices as spare time slices, the spare time slices can be allocated for the current slave node to communicate with the master node until the master node successfully communicates with the current slave node.
[0082] Take the above example for illustration, Figure 4 , assuming that there are 3 communication time slices, the master node can communicate with each slave node three times. Assuming that the master node and the second slave node successfully communicate for the second time, there is one communication time slice left. After calculating the difference between M and the number of communications, a remaining communication time slice can be converted to a backup time slice. At this time, the master node can be triggered to communicate wirelessly with the third slave node. If the number of communications between the master node and the third slave node reaches 3 times and the master node and the third slave node still fail to communicate successfully, the remaining backup time slice can be called to allow the master node to communicate with the third slave node again.
[0083] At this time, after allocating the spare time slice for the master node to communicate with the current slave node, the number of communications is counted. If the number of communications between the master node and the current slave node using the spare time slice is also equal to the total number of spare time slices and the master node and the slave node have not successfully established communication, the master node confirms that the communication with the slave node has failed.
[0084] Similarly, if the value of the number of communications is equal to the total number of spare time slices, at this time, there is no spare communication time slice for the slave node to use, so the master node directly establishes wireless communication with the next battery slave node.
[0085] In yet another optional embodiment, the communication between the master node and the slave node may be affected by different factors, and different factors may cause the master node and the slave node to fail in communication. In order to further provide an opportunity for the master node and the slave node to communicate.
[0086] In one embodiment, the method further provides K scheduling time slices. The number of K can be adjusted in advance according to actual needs.
[0087] Wherein, as an example, after the master node confirms that the slave node communication fails, the method further includes:
[0088] The K scheduling time slices are allocated for the slave node that is establishing communication to communicate with the master node until the master node successfully communicates with the slave node that is establishing communication.
[0089] Assume that there are 3 scheduling time slices, and the master node can communicate with each slave node three times. Referring to the above example, if the master node and the third slave node still fail to communicate using 2 backup time slices, 3 scheduling time slices can be called to let the master node communicate with the third slave node again, until the master node and the third slave node, any subsequent communication is successful, then let the master node communicate with the fourth slave node. If the communication fails three times, the master node is also directly let the fourth slave node.
[0090] Reference Figure 5 , shows an operation flow chart of a method for allocating communication time slices provided by an embodiment of the present invention.
[0091] Specifically, the operation of the communication time slice allocation method may include the following steps:
[0092] In the first step, the master node communicates with the slave node. The wireless communication system includes a master node and n slave nodes (n≥2).
[0093] In the second step, within the cycle time, each slave node is allocated three time slices by default (depending on the system, the number of time slices is at least 2) to communicate with the master node.
[0094] In the third step, when the communication quality of a slave node in the wireless communication system is poor, the master node can complete the communication with the slave node with poor communication quality by scheduling the time slices of other slave nodes with better communication quality.
[0095] The fourth step is that there are n slave nodes in the wireless communication system, and each slave node is allocated k time slices. However, some slave nodes have better communication quality and will not use all k time slices. Some slave nodes have poor communication quality and k time slices are not enough to support the communication between the master and slave nodes. Therefore, the master node can be used to schedule the time slice of a slave node with better communication quality to be allocated to a slave node with poor communication quality, thereby completing the wireless communication of the entire master-slave node.
[0096] In this embodiment, the embodiment of the present invention provides a method for allocating communication time slices, and its beneficial effects are: the present invention can determine whether the master node and the battery slave node communicate successfully when the master node and the battery slave node establish wireless communication; if the master node and the battery slave node communicate successfully, the number of communications of the battery slave node is counted; if the value of the number of communications is less than the number of communication time slices of the battery slave node, the communication time slice of the battery slave node can be allocated to the next battery slave node according to the number of communications, and the master node can be triggered to perform wireless communication with the next battery slave node; once the communication is successful, the master node can be immediately triggered to communicate with the next battery slave node without waiting for a complete communication cycle, which can shorten the communication time and improve the communication efficiency; and when the master-slave node communicates successfully, the remaining communication time slice of the current slave node can be allocated to the next slave node, so that the slave nodes with poor subsequent communication quality can have multiple communication time slices for wireless communication, thereby improving the communication success rate of the slave nodes with poor communication quality, so as to reasonably use time resources and improve resource utilization.
[0097] The embodiment of the present invention also provides a communication time slice allocation device, see Figure 6 , showing a schematic structural diagram of a communication time slice allocation device provided by an embodiment of the present invention.
[0098] The device is used for time slice allocation of a multi-node wireless communication system. The device involves a master node and N slave nodes that are interconnected in the wireless communication system. The master node can perform wireless communication with the N slave nodes respectively. In each communication time period, the master node completes one wireless communication with each slave node. Each slave node is provided with M communication time slices.
[0099] Wherein, as an example, the communication time slice allocation device may include:
[0100] Determine a communication module 601, which is used to control the master node to establish wireless communication with any one of the slave nodes;
[0101] A communication times counting module 602 is used to count the communication times of the slave node that is establishing communication with the master node, and stop counting when the slave node successfully communicates with the master node, or when the counted communication times reaches M;
[0102] The time slice accumulation module 603 is used for calculating the remaining communication time slice of the slave node that is establishing communication with the master node in a communication time period according to the communication number if the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, converting the remaining communication time slice into a standby time slice, and triggering the master node to perform wireless communication with another slave node;
[0103] The time slice allocation module 604 is used to determine whether the backup time slice exists if the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully. If the backup time slice does not exist, the master node confirms that the communication with the slave node has failed. If the backup time slice exists, the backup time slice is allocated for the slave node to communicate with the master node until the master node and the slave node communicate successfully, or the number of communications when the backup time slice is allocated for the master node to communicate with the slave node is equal to the total number of the backup time slices and the master node and the slave node have not successfully established communication, the master node confirms that the communication with the slave node has failed.
[0104] Optionally, the calculating, according to the number of communications, a remaining communication time slice of the slave node that is establishing communication with the master node in a communication time period includes:
[0105] Calculate the difference between M and the number of communications;
[0106] The communication time slices of the slave node in a communication time period are counted according to the difference to obtain the remaining communication time slices.
[0107] Optionally, controlling the master node to establish wireless communication with any slave node includes:
[0108] Control the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice;
[0109] If it is determined that the master node receives the feedback information of the slave node within the preset time interval, it is determined that the master node communicates successfully with the slave node;
[0110] If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
[0111] Optionally, the device is further provided with K scheduling time slices;
[0112] The device also includes:
[0113] The time slice allocation module is used to allocate the K scheduling time slices for the slave node that is establishing communication to communicate with the master node after the master node confirms that the slave node communication has failed, until the master node successfully communicates with the slave node that is establishing communication.
[0114] The embodiment of the present invention also provides a communication time slice allocation system, see Figure 7 , showing a structural diagram of a communication time slice allocation system provided by an embodiment of the present invention.
[0115] The system is applied to the method for allocating communication time slices as described above, wherein, as an example, the system for allocating communication time slices may include: a master node and N slave nodes;
[0116] The master node communicates wirelessly with the N slave nodes respectively. In each communication time period, each slave node is provided with M communication time slices, and the time intervals between two adjacent communication time slices are the same.
[0117] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0118] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for allocating communication time slices as described in the above embodiment is implemented.
[0119] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the method for allocating communication time slices as described in the above embodiment.
[0120] It should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. When an element such as a layer, region or substrate is referred to as being "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as being "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as being "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0121] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.
[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), apparatuses, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0125] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for allocating communication time slices, used for allocating time slices in a multi-node wireless communication system, the method involving a master node and N slave nodes in a wireless communication system that are mutually communicatively connected, characterized in that: In each communication time period, the master node completes wireless communication with each slave node once, each slave node is allocated M communication time slices, and the method includes: Control the master node to establish wireless communication with any one of the slave nodes; Counting the number of communications of the slave node that is establishing communication with the master node, and stopping counting when the slave node successfully communicates with the master node, or stopping counting when the counted number of communications reaches M; If the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, the remaining communication time slice of the slave node is calculated according to the number of communications, the remaining communication time slice is converted into a standby time slice, and the master node is triggered to perform wireless communication with another slave node; If the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully, determine whether the backup time slice exists; if the backup time slice does not exist, the master node confirms that the communication with the slave node has failed; if the backup time slice exists, the backup time slice is allocated for the slave node to communicate with the master node until the master node and the slave node communicate successfully; or if the number of times the backup time slice is allocated for the master node and the slave node to communicate is equal to the total number of backup time slices and the master node and the slave node still fail to successfully establish communication, the master node confirms that the communication with the slave node has failed.
2. The method for allocating communication time slices according to claim 1, characterized in that: The calculating the remaining communication time slice of the slave node according to the number of communications includes: Calculate the difference between M and the number of communications; The communication time slices of the current slave nodes are counted according to the difference to obtain the remaining communication time slices.
3. The method for allocating communication time slices according to claim 1, characterized in that: The controlling the master node to establish wireless communication with any one of the slave nodes comprises: Control the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice; If it is determined that the master node receives the feedback information of the slave node within the preset time interval, it is determined that the master node communicates successfully with the slave node; If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
4. The method for allocating communication time slices according to any one of claims 1 to 3, characterized in that: The method is also provided with K scheduling time slices; After the master node confirms that the slave node fails to communicate, the method further includes: The K scheduling time slices are allocated for the slave node that is establishing communication to communicate with the master node until the master node successfully communicates with the slave node that is establishing communication or the scheduling time slice is exhausted.
5. A communication time slice allocation device, used for time slice allocation of a multi-node wireless communication system, the device involves a master node and N slave nodes that are mutually communicatively connected in the wireless communication system, characterized in that: In each communication time period, the master node completes wireless communication with each slave node once, each slave node is provided with M communication time slices, and the device comprises: Determine a communication module, used to control the master node to establish wireless communication with any one of the slave nodes; A communication times counting module is used to count the communication times of the slave node that is establishing communication with the master node, and stop counting when the slave node successfully communicates with the master node, or when the counted communication times reaches M; A time slice accumulation module, configured to calculate the remaining communication time slice of the slave node according to the number of communications if the master node successfully communicates with the slave node that is establishing communication with the master node and the number of communications is less than M, convert the remaining communication time slice into a standby time slice, and trigger the master node to perform wireless communication with another slave node; A time slice allocation module is used to determine whether the backup time slice exists if the number of communications between the master node and the slave node that is establishing communication with the master node reaches M and the master node and the slave node still fail to communicate successfully. If the backup time slice does not exist, the master node confirms that the communication with the slave node has failed. If the backup time slice exists, the backup time slice is allocated for the slave node to communicate with the master node until the master node and the slave node communicate successfully. Or, if the number of communications between the master node and the slave node using the backup time slice is equal to the total number of backup time slices and the master node and the slave node still fail to successfully establish communication, the master node confirms that the communication with the slave node has failed.
6. The communication time slice allocation device according to claim 5, characterized in that: The controlling the master node to establish wireless communication with any one of the slave nodes comprises: Control the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice; If it is determined that the master node receives the feedback information of the slave node within the preset time interval, it is determined that the master node communicates successfully with the slave node; If it is determined that the master node does not receive the feedback information of the slave node within the preset time interval, it is determined that the communication between the master node and the slave node fails.
7. The communication time slice allocation device according to any one of claims 5 to 6, characterized in that: The device is also provided with K scheduling time slices; The device also includes: The time slice allocation module is used to allocate the K scheduling time slices for the slave node that is establishing communication to communicate with the master node after the master node confirms that the slave node communication has failed, until the master node successfully communicates with the slave node that is establishing communication.
8. A communication time slice allocation system, characterized in that: The system is applied to the method for allocating communication time slices as claimed in any one of claims 1 to 4, and the system comprises: a master node and N slave nodes; The master node communicates wirelessly with the N slave nodes respectively. In each communication time period, each slave node is provided with M communication time slices, and the time intervals between two adjacent communication time slices are the same.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the communication time slice allocation method as described in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the communication time slice allocation method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Data transmission method, device and system based on Internet
CN106130858A
Time slot allocation method and system for ring network nodes
CN112564975A
Method for realizing dynamic time slot networking based on time division multiple access technology
CN112584442A
Self-organizing time slot uniform distribution method
CN114007270A
Internet of things ultra-low power consumption ad hoc network communication method
CN114585063A
Cited By
Communication time slice allocation method, apparatus and system, electronic device, and computer-readable storage medium
WO2026061085A1