Communication time slice allocation method, apparatus and system, electronic device, and computer-readable storage medium

By dynamically adjusting the communication cycle of slave nodes and making reasonable use of remaining communication time slices, the problem of fixed communication cycles of slave nodes in existing technologies is solved, communication efficiency and stability are improved, and resource utilization is optimized.

WO2026061085A1PCT designated stage Publication Date: 2026-03-26SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

In existing technologies, the fixed communication cycle of slave nodes results in low time utilization when communication quality is good and communication failure when communication quality is poor, which reduces detection efficiency and system stability.

Method used

By dynamically adjusting the communication cycle of slave nodes, counting the number of communications, making reasonable use of remaining communication time slices, and dynamically allocating allocated time slices, the communication success rate can be improved and resource utilization optimized.

Benefits of technology

This improves the communication efficiency and quality between slave and master nodes, makes better use of time resources, and enhances the stability and resource utilization of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025106324_26032026_PF_FP_ABST
    Figure CN2025106324_26032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a communication time slice allocation method and apparatus, an electronic device, and a computer-readable storage medium. The method relates to a master node and N slave nodes, the master node performing wireless communication with the N slave nodes, separately. Within each communication time period, the master node completes one wireless communication with each slave node, and the slave node is provided with M communication time slices. The method comprises: the master node establishing wireless communication with any one of the slave nodes; when the number of communications between the master node and the slave node that is establishing communication with the master node is less than M, converting the remaining communication time slices of the slave node into backup time slices; and when the master node fails to perform M communications with another slave node, calling the backup time slices for the master node to communicate with a next slave node until the communication succeeds. The present application can shorten the communication duration, and can reasonably allocate the remaining communication time slices, thereby improving the utilization rate of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, system and electronic equipment for allocating communication time slices, and computer-readable storage medium

[0001] Cross-reference to Related Applications

[0002] This application claims priority to Chinese Patent Application No. 202411305488.9, filed September 18, 2024, the contents of which are incorporated herein by reference. TECHNICAL FIELD

[0003] The present application relates to the technical field of battery time slices, and in particular to a method, device, electronic equipment and computer-readable storage medium for allocating communication time slices. BACKGROUND

[0004] With the vigorous development of the new energy industry, the step-by-step application of battery packs is becoming increasingly important, as it can improve the recycling efficiency of battery packs, optimize the cost conversion of batteries, and reduce environmental pollution caused by the disassembly of battery packs. For example, there are multiple series and parallel connections of battery packs in the battery pack (Battery Pack) of a new energy vehicle, thereby meeting the voltage and power requirements of the new energy vehicle.

[0005] In order to realize the step-by-step utilization of battery packs, the design of an integrated battery pack using wireless communication has gradually become a technical direction for the development of the industry. The commonly used method is to set the detection device end as a master node, and set one slave node for each battery in the battery pack. The slave node has a fixed communication period, and the slave node can communicate with the master node multiple times within this period, so that the detection device end of the master node can determine the state of the battery pack of the slave node through the communication information; after completing one slave node, the state of the next slave node is detected in the next communication period.

[0006] However, the commonly used method has the following technical problems: the communication period of the slave node is fixed, when the communication quality is good, the slave node only needs to communicate with the master node once, and the next slave node cannot be detected until the end of the current fixed communication period, which reduces the utilization rate of time and prolongs the detection time, thereby reducing the detection efficiency; when the communication quality is poor, the slave node may not be able to communicate with the master node within the entire communication period, resulting in communication failure between the slave node and the master node, and reducing the stability of the entire communication system. SUMMARY

[0007] The present application proposes a method, device, electronic equipment and computer-readable storage medium for allocating communication time slices, which can solve one or more of the above technical problems.

[0008] The first aspect of the embodiments of the present application provides a method for allocating a time slice of communication, which is used for time slice allocation of a multi-node wireless communication system. The method involves one master node and N slave nodes which are connected to each other 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 performs wireless communication with each slave node once. Each slave node is provided with M communication time slices. The method comprises the following steps:

[0009] controlling the master node to establish wireless communication with any one of the slave nodes;

[0010] counting the number of communications of the slave node which is establishing communication with the master node, and stopping counting when the slave node successfully communicates with the master node or when the counted number of communications reaches M;

[0011] if the master node successfully communicates with the slave node which is establishing communication with the master node and the number of communications is less than M, calculating the remaining communication time slices of the slave node according to the number of communications, converting the remaining communication time slices into standby time slices, and triggering the master node to perform wireless communication with another slave node;

[0012] if the number of communications of the master node with the slave node which is establishing communication with the master node reaches M and the master node still fails to successfully communicate with the slave node, determining whether the standby time slices exist, if the standby time slices do not exist, the master node confirms that the communication with the slave node fails, if the standby time slices exist, the standby time slices are allocated for the slave node to communicate with the master node until the master node successfully communicates with the slave node, or the number of communications of the master node with the slave node reaches the total number of the standby time slices and the master node still fails to successfully communicate with the slave node, and then the master node confirms that the communication with the slave node fails.

[0013] In a possible implementation manner of the first aspect, the calculating the remaining communication time slices of the slave node according to the number of communications comprises the following steps:

[0014] calculating the difference between M and the number of communications;

[0015] counting the current communication time slices of the slave node according to the difference to obtain the remaining communication time slices.

[0016] 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 comprises the following steps:

[0017] controlling the master node to send a communication heartbeat packet to any one of the slave nodes according to the allocation rule of the communication time slices.

[0018] 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 successfully communicates with the slave node.

[0019] If it is determined that the master node does not receive the feedback information of the slave node within a preset time interval, it is determined that the master node fails to communicate with the slave node.

[0020] In a possible implementation of the first aspect, the method further comprises K scheduling time slots.

[0021] After the step of the master node confirming that the slave node fails to communicate, the method further comprises:

[0022] allocating the K scheduling time slots for the slave node being in communication to communicate with the master node until the master node successfully communicates with the slave node being in communication.

[0023] In a possible implementation of the first aspect, the N is greater than or equal to 2.

[0024] In a possible implementation of the first aspect, the M is greater than or equal to 2.

[0025] The second aspect of the embodiments of the present application provides a communication time slot allocation device for time slot allocation of a multi-node wireless communication system. The device is related to a master node and N slave nodes in a wireless communication system that are connected to each other for communication. In each communication time period, the master node completes wireless communication with each slave node. Each slave node is provided with M communication time slots. The device comprises:

[0026] a determination communication module for controlling the master node to establish wireless communication with any one of the slave nodes;

[0027] a communication frequency statistics module for counting the communication frequency of the slave node being in communication with the master node, and stopping counting when the slave node successfully communicates with the master node or when the counted communication frequency reaches M;

[0028] a time slot accumulation module for, if the master node successfully communicates with the slave node being in communication with the master node and the communication frequency is less than M, calculating the remaining communication time slots of the slave node according to the communication frequency, converting the remaining communication time slots into standby time slots, and triggering the master node to perform wireless communication with another slave node;

[0029] The time slice allocation module is configured to, if the number of communications between the master node and the slave node reaches M and the master node and the slave node have not successfully communicated, determine whether the standby time slice exists, if the standby time slice does not exist, the master node determines that the communication with the slave node fails, if the standby time slice exists, the standby time slice is allocated for the slave node to communicate with the master node until the master node and the slave node successfully communicate, or the number of communications between the master node and the slave node using the standby time slice equals the total number of the standby time slice and the master node and the slave node have not successfully communicated, the master node determines that the communication with the slave node fails.

[0030] In a possible implementation of the second aspect, the remaining communication time slice of the slave node is calculated according to the number of communications, and the calculation includes:

[0031] calculating a difference between M and the number of communications;

[0032] counting the current communication time slice of the slave node according to the difference to obtain the remaining communication time slice.

[0033] In a possible implementation of the second aspect, the master node is controlled to establish wireless communication with any one of the slave nodes, and the control includes:

[0034] controlling the master node to send a communication heartbeat packet to any one of the slave nodes according to the allocation rule of the communication time slice;

[0035] 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 and the slave node successfully communicate;

[0036] if it is determined that the master node does not receive the feedback information of the slave node within a preset time interval, it is determined that the master node and the slave node fail to communicate.

[0037] In a possible implementation of the second aspect, the device further comprises K scheduling time slices.

[0038] The device further comprises:

[0039] The time slice allocation module is configured to, after the master node determines that the communication with the slave node fails, allocate the K scheduling time slices for the slave node being in communication to communicate with the master node until the master node and the slave node successfully communicate.

[0040] In a possible implementation of the second aspect, the remaining communication time slice of the slave node is calculated according to the number of communications, and the calculation includes:

[0041] calculating a difference between M and the number of communications;

[0042] statistically obtaining a current communication time slice of the slave node according to the difference, to obtain a remaining communication time slice.

[0043] In a possible implementation of the second aspect, the N is greater than or equal to 2.

[0044] In a possible implementation of the second aspect, the M is greater than or equal to 2.

[0045] A third aspect of the embodiments of the present application provides a communication time slice allocation system, which is applied to the communication time slice allocation method as described above, and the system comprises a master node and N slave nodes.

[0046] The master node is in wireless communication with the N slave nodes respectively, each of the slave nodes is provided with M communication time slices, and time intervals of adjacent two communication time slices are the same.

[0047] Compared with the prior art, the communication time slice allocation method, device, electronic equipment and computer readable storage medium provided by the embodiments of the present application have the beneficial effects that the present application can dynamically adjust the length of a communication period of a slave node, and when the master node and the slave node establish wireless communication, it is determined whether the master node and the slave node successfully communicate; if the master node and the slave node successfully communicate, the number of communications of the slave node is counted; if the number of communications is less than the number of communication time slices of the slave node, the communication time slices 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 perform wireless communication 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 period, so that the communication time length can be shortened and the communication efficiency can be improved; moreover, after the master node and the slave node successfully communicate, the remaining communication time slices of the current slave node can be allocated to the next slave node, so that the slave node with poor communication quality in subsequent communication can have multiple communication time slices for wireless communication, thereby improving the probability of successful communication between the slave node with poor communication quality and the master node. The present application can more reasonably utilize time resources and improve the utilization rate of resources. BRIEF DESCRIPTION OF DRAWINGS

[0048] FIG. 1 is a flowchart of a communication time slice allocation method according to an embodiment of the present application;

[0049] FIG. 2 is a schematic diagram of a wireless communication network of a master node and multiple slave nodes according to an embodiment of the present application;

[0050] FIG. 3 is a schematic diagram of communication time slices of each slave node in a wireless communication network according to an embodiment of the present application;

[0051] FIG. 4 is a diagram illustrating a communication time slice scheduling of a slave node of a wireless communication network according to an embodiment of the present application;

[0052] FIG. 5 is a flowchart of a method for allocating a communication time slice according to an embodiment of the present application;

[0053] FIG. 6 is a diagram illustrating a structure of an apparatus for allocating a communication time slice according to an embodiment of the present application;

[0054] FIG. 7 is a diagram illustrating a structure of a system for allocating a communication time slice according to an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0056] To solve the above problems, the method, apparatus, electronic device and computer readable storage medium for allocating a communication time slice according to the embodiments of the present application will be described and explained in detail below with reference to the following specific embodiments.

[0057] Referring to FIG. 1, a flowchart of a method for allocating a communication time slice according to an embodiment of the present application is shown.

[0058] In an 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 which are connected to each other for communication in a 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 wireless communication with each slave node once. Each slave node is provided with M communication time slices.

[0059] The communication time slice refers to a time slice segment for communication between the master node and the slave node which is arranged in advance by the master node based on a communication period between the master node and the slave node. Only one pair of master node and slave node is allowed to communicate in one time slice segment.

[0060] Referring to FIGS. 2 and 3, a wireless communication network of a master node and multiple slave nodes according to an embodiment of the present application and a diagram illustrating a communication time slice of each slave node in a wireless communication network according to an embodiment of the present application are shown respectively.

[0061] The slave nodes in FIGS. 2 and 3 are slave nodes of each battery in a battery pack, also referred to as slave nodes.

[0062] The wireless communication network can include one master node and N slave nodes, N being at least 2. The N slave nodes and the wireless communication master node complete wireless communication, and the above communication process is repeated periodically, thereby completing the communication of the entire wireless communication network.

[0063] In an implementation, each slave node can communicate with the master node one by one in a predetermined order, and each slave node has its own communication period.

[0064] As shown in FIG. 3, each slave node can be allocated 2, 3 or 10 communication time slices, and the communication time slices are configured based on the maximum resources that can be allocated by the system.

[0065] Suppose there are 3 slave nodes, and the communication time between the master node and the 3 slave nodes is 100 ms. Then the communication time of each slave node is 100 / 3≈33 ms, and the time allocated to each slave node is 33 ms. Suppose the communication time of each communication time slice between the master node and the slave node is 10 ms, and the number of communication time slices of each slave node is 33 ms / 10 ms=3. For the convenience of description, the application describes the allocation of 3 communication time slices to each slave node.

[0066] As an example, the allocation method of the communication time slice can include:

[0067] S11, control the master node to establish wireless communication with any one of the slave nodes.

[0068] In an embodiment, the N slave nodes are arranged in sequence, and the master node can establish wireless communication with each slave node one by one in the order of the arrangement of the N slave nodes. Specifically, the master node can first establish wireless communication with the first slave node. Since each slave node is provided with 3 communication time slices, the master node can establish wireless communication with the first slave node three times, each time for 10 ms. If the first time is successful, the master node will establish wireless communication with the second slave node. If the first time is not successful, the master node will establish wireless communication with the first slave node for the second time. Similarly, if the second time is successful, the master node will establish wireless communication with the second slave node. Conversely, if the second time is not successful, the master node will establish wireless communication with the first slave node for the third time. Similarly, if the third time is successful, the master node will establish wireless communication with the second slave node. If the third time is not successful, since the number of communications has reached the value of the number of communication time slices, wireless communication cannot be established again, and the master node will directly establish wireless communication with the second slave node. The communication of the next slave node is the same as the above method, until the master node completes the communication with the N slave nodes.

[0069] As an example, the control of the master node to establish wireless communication with the N slave nodes in sequence can include the following sub-steps:

[0070] S111, controlling the master node to send a communication heartbeat packet to any one of the slave nodes according to the allocation rule of the communication time slice.

[0071] 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 and the slave node communicate successfully.

[0072] S113, if it is determined that the master node does not receive the feedback information of the slave node within a preset time interval, it is determined that the master node and the slave node communication fails.

[0073] In an embodiment, the master node and the slave node can be determined whether to communicate successfully according to the conventional heartbeat packet detection method.

[0074] 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 each time of the 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 a preset time interval, it is determined that the master node and the current slave node communicate successfully. On the contrary, if it is determined that the master node does not receive the feedback information of the current slave node within a preset time interval, it is determined that the master node and the current slave node communication fails.

[0075] S12, the number of communications of the slave node currently establishing communication with the master node is counted, and the counting is stopped when the slave node communicates successfully with the master node, or when the counted number of communications reaches M.

[0076] According to the above analysis, it is assumed that there are three communication time slices, and the master node can communicate with the slave node three times. If the communication quality is good, it can be successful using one communication time slice, and if the communication quality is poor, it can be successful using two or three communication time slices.

[0077] The number of communications using the communication time slice can be counted, and the counting is stopped if the communication is successful, or if the number of communications using the communication time slice is equal to the number of communication time slices, the counting is also stopped.

[0078] Referring to the above example, it is assumed that there are three communication time slices, and the master node and the slave node communicate successfully for the first time, and the number of communications is 1, and then the counting is stopped. If the master node and the slave node communicate successfully for the second time, the number of communications is 2, and then the counting is stopped. If the master node and the slave node communicate for the third time, whether successful or not, the number of communications is 3, which is equal to the number of communication time slices 3, and the counting is also stopped.

[0079] S13, if the master node successfully communicates with the slave node which is establishing communication with the master node and the number of times of communication is less than M, calculating the remaining communication time slice of the slave node according to the number of times of communication, converting the remaining communication time slice into a standby time slice, and triggering the master node to perform wireless communication with another slave node.

[0080] In an embodiment, when it is determined that the master node successfully communicates with the slave node which is establishing communication with the master node, the number of times of communication between the master node and the current slave node can be counted. If the number of times of communication is less than M, it indicates that at least one communication time slice of the slave node is not used. Assuming that there are three communication time slices, it indicates that the master node can communicate with the slave node three times. If the communication quality is good, the communication can be successful once, the number of times of communication is one, and is less than three. The slave node has two communication time slices which are not used. In order to reuse the communication time slices which are not used, in order to improve the utilization rate of resources, the remaining communication time slice of the current slave node can be calculated according to the number of times of communication, and the remaining communication time slice of the current slave node is converted into a standby time slice.

[0081] The standby time slice can be used for wireless communication of a next slave node with poor communication quality.

[0082] Referring to FIG. 4, a communication time slice scheduling diagram of a slave node of a wireless communication network is shown according to an embodiment of the present application.

[0083] In an embodiment, the calculating the remaining communication time slice of the slave node according to the number of times of communication can include the following sub-steps:

[0084] S131, calculating the difference between M and the number of times of communication;

[0085] S132, counting the communication time slice of the slave node according to the difference, to obtain the remaining communication time slice.

[0086] Specifically, the difference between M and the number of times of communication can be calculated first. Then, the remaining communication time slice of the current slave node is allocated to a next slave node according to the number corresponding to the calculated difference.

[0087] Referring to FIG. 4, assuming that there are three 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, one communication time slice is left. After calculating the difference between M and the number of times of communication, one remaining communication time slice is obtained. The communication time slice can be converted into a standby time slice, and then allocated to the third slave node. Meanwhile, the master node can be triggered to perform wireless communication with the third slave node.

[0088] The third slave node can also communicate in the above manner, and if there is a communication time slice left, it is converted into a standby time slice and is shifted to the next slave node for use by the subsequent slave node.

[0089] 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 have not successfully communicated, it is determined whether there is a standby time slice, if there is no standby time slice, the master node confirms that communication with the slave node has failed, if there is a standby time slice, the standby time slice is allocated for communication between the slave node and the master node until the master node and the slave node successfully communicate, or the number of communications between the master node and the slave node using the standby time slice equals the total number of standby time slices and the master node and the slave node have not successfully established communication, the master node confirms that communication with the slave node has failed.

[0090] If the number of communications between the master node and the slave node reaches M and the master node and the slave node have not successfully communicated, it can be determined whether the previous slave node has a remaining communication time slice as a standby time slice, if there is no standby time slice, the master node confirms that communication with the slave node has failed.

[0091] Conversely, if it is determined that the previous slave node has a remaining communication time slice as a standby time slice, the standby time slice can be allocated for communication between the current slave node and the master node until the master node and the current slave node successfully communicate.

[0092] The above is described with the above example, referring to FIG. 4, it is assumed that there are three communication time slices, and the master node can communicate with each slave node three times. It is assumed that the master node and the second slave node successfully communicate for the second time, and there is one communication time slice left, after calculating the difference between the value of M and the number of communications, one remaining communication time slice can be converted into a standby time slice. At this time, the master node can be triggered to communicate wirelessly with the third slave node, and if the number of communications between the master node and the third slave node reaches three times and the master node and the third slave node have not successfully communicated, the master node can be called to use the just one remaining standby time slice to communicate with the third slave node again.

[0093] At this time, after the standby time slice is allocated for communication between the master node and the current slave node, the number of communications is counted, and if the number of communications between the master node and the current slave node using the standby time slice also equals the total number of standby time slices and the master node and the slave node have not successfully established communication, the master node confirms that communication with the slave node has failed.

[0094] Similarly, if the value of the number of communications equals the total number of standby time slices, at this time, there is no spare communication time slice for the slave node to use, and the master node is directly triggered to establish wireless communication with the next battery slave node.

[0095] In yet another optional embodiment, the communication between the master node and the slave nodes can be affected by different factors that can cause the communication between the master node and the slave nodes to fail. To further provide opportunities for the master node and the slave nodes to communicate, the method is further provided with K scheduled time slots. The number of K can be adjusted in advance according to actual needs, and K is greater than or equal to 2. The scheduled time slots are actually communication time slots.

[0096] For example, after the master node confirms that the slave node communication fails, the method further includes:

[0097] The K scheduled time slots are allocated for the slave node being established to communicate with the master node, until the master node successfully communicates with the slave node being established.

[0098] Suppose that the scheduled time slots are provided with 3, the master node can communicate with each slave node three times. Referring to the above example, suppose that the master node and the third slave node still fail to communicate after using 2 standby time slots, the master node can be called 3 scheduled time slots to communicate with the third slave node again until the master node and the third slave node successfully communicate any time later, and then the master node and the fourth slave node are communicated. If the communication fails three times, the master node and the fourth slave node are directly communicated.

[0099] Referring to FIG. 5, an operation flowchart of a communication time slot allocation method provided by an embodiment of the application is shown.

[0100] Specifically, the operation of the communication time slot allocation method can include the following steps:

[0101] First, the master node communicates with the slave nodes, and the wireless communication system contains one master node and n slave nodes (n≥2).

[0102] Second, in a period of time, each slave node is allocated three time slots (the number of time slots is at least 2) to communicate with the master node by default.

[0103] Third, 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 slots of other slave nodes with good communication quality.

[0104] In the fourth step, in the wireless communication system, there are n slave nodes, each of which is allocated k time slices, but some slave nodes have good communication quality and will not use all the k time slices, and some slave nodes have poor communication quality, and the k time slices are not enough to support the communication between the master node and the slave node, so the time slices of a slave node with good communication quality can be allocated to a slave node with poor communication quality by the master node scheduling, so as to complete the wireless communication between the master node and the slave node.

[0105] In the embodiment, the application provides a communication time slice allocation method, which has the beneficial effects that when the master node and the battery slave node establish wireless communication, the application can determine whether the master node and the battery slave node successfully communicate; if the master node and the battery slave node successfully communicate, the number of communications of the battery slave node is counted; if the number of communications is less than the number of communication time slices of the battery slave node, the communication time slices of the battery slave node can be allocated to the next battery slave node according to the number of communications, and the master node is 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 period, so that the communication time is shortened and the communication efficiency is improved; and after the master node and the slave node successfully communicate, the remaining communication time slices of the current slave node can be allocated to the next slave node, so that the subsequent slave node with poor communication quality can have multiple communication time slices for wireless communication, the communication success rate of the slave node with poor communication quality is improved, and the time resources are reasonably utilized and the utilization rate of resources is improved.

[0106] The application also provides a communication time slice allocation device, as shown in FIG. 6, which shows a structural schematic diagram of a communication time slice allocation device provided by an embodiment of the application.

[0107] The device is used for time slice allocation in a multi-node wireless communication system, and the device involves a master node and N slave nodes which are connected to each other for communication, the master node can perform wireless communication with the N slave nodes respectively, in each communication time period, the master node and each slave node complete wireless communication once, and each slave node is provided with M communication time slices.

[0108] For example, the communication time slice allocation device can include:

[0109] The determination communication module 601 is configured to control the master node to establish wireless communication with any one of the slave nodes;

[0110] The communication number counting module 602 is configured to count the number of communications of the slave node which is establishing communication with the master node, and stop counting when the slave node successfully communicates with the master node, or stop counting when the counted number of communications reaches M;

[0111] a time slice accumulation module 603, configured to, if the master node successfully communicates with the slave node which is establishing communication with the master node and the number of times of communication is less than M, calculate, according to the number of times of communication, the remaining communication time slice of the slave node which is establishing communication with the master node in a communication time period, convert the remaining communication time slice into a standby time slice, and trigger the master node to communicate with another slave node wirelessly;

[0112] a time slice allocation module 604, configured to, if the number of times of communication between the master node and the slave node reaches M and the master node still fails to communicate with the slave node, determine whether the standby time slice exists, if the standby time slice does not exist, the master node confirms that the communication with the slave node fails, if the standby time slice exists, allocate the standby time slice for the slave node to communicate with the master node until the master node successfully communicates with the slave node, or the number of times of communication between the master node and the slave node reaches the total number of standby time slices and the master node still fails to communicate with the slave node, the master node confirms that the communication with the slave node fails.

[0113] Optionally, the calculating, according to the number of times of communication, the remaining communication time slice of the slave node which is establishing communication with the master node in a communication time period comprises:

[0114] calculating the difference between M and the number of times of communication;

[0115] counting the communication time slice of the slave node in a communication time period according to the difference, to obtain the remaining communication time slice.

[0116] Optionally, the controlling the master node to establish wireless communication with any slave node comprises:

[0117] controlling the master node to send a communication heartbeat packet to any slave node according to the allocation rule of the communication time slice;

[0118] 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 successfully communicates with the slave node;

[0119] if it is determined that the master node does not receive the feedback information of the slave node within a preset time interval, it is determined that the master node fails to communicate with the slave node.

[0120] Optionally, the device further comprises K scheduling time slices;

[0121] The time slice allocation module 604 is further configured to allocate the K scheduling time slices for the slave node in communication establishment to communicate with the master node until the master node successfully communicates with the slave node in communication establishment after the master node confirms that the slave node fails to communicate.

[0122] The embodiment of the present application further provides a communication time slice allocation system, as shown in Figure 7, which is a structural schematic diagram of a communication time slice allocation system according to an embodiment of the present application.

[0123] The system is applied to the communication time slice allocation method as described above, and as an example, the communication time slice allocation system can include a master node and N slave nodes.

[0124] The master node is in wireless communication with the N slave nodes respectively, and each slave node is provided with M communication time slices in each communication time period, and the time interval of two adjacent communication time slices is the same.

[0125] In the embodiment of the present application, the determination communication module 601, the communication frequency statistics module 602, the time slice accumulation module 603, the time slice allocation module 604, the battery monitoring unit, the master node and the slave node can be one or more processors, controllers or chips with a communication interface capable of realizing a communication protocol, and can further include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, the controller or the chip executes program related codes to realize corresponding functions.

[0126] Those skilled in the art can clearly understand that, for the convenience of description and brevity, the specific working process of the device described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0127] Further, the embodiment of the present application further provides an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the program to realize the communication time slice allocation method as described in the foregoing embodiments.

[0128] Further, the embodiment of the present application further provides a computer readable storage medium, which stores a computer executable program, and the computer executable program is used to make a computer execute the communication time slice allocation method as described in the foregoing embodiments.

[0129] It should be noted that the terms "upper", "lower", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the embodiments of the present application and simplify the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. When an element such as a layer, a region or a substrate is referred to as "on" or "above" another element, it can be directly on the other element, or there can be an intermediate element. In contrast, when an element is referred to as "directly on" or "directly above" another element, there is no intermediate element. It should also be understood that when an element is referred to as "below" or "under" another element, it can be directly below or under the other element, or there can be an intermediate element. In contrast, when an element is referred to as "directly below" or "directly under" another element, there is no intermediate element. Unless otherwise explicitly specified and limited, the terms "mount", "connect", "connect" should be understood in a broad sense, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be connected inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0130] Those skilled in the art will appreciate that embodiments of the present application can also provide computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), apparatuses and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the apparatus for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0132] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart or flowsheets and / or block or blocks of the block diagrams.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart or flowsheets and / or block or blocks of the block diagrams.

[0134] The above only is the preferred embodiment of the present application, it should be pointed out that, for those skilled in the technology in the art, without departing from the technical principles of the present application, can also make a number of improvements and variations, these improvements and variations should also be regarded as the protection scope of the present application.

Claims

1. A method for allocating time slots for communication, for time slot allocation in a multi-node wireless communication system, said method involving one master node and N slave nodes in a wireless communication system connected to each other in communication, wherein, In each communication time period, the master node completes wireless communication with each slave node once, each slave node is allocated with M communication time slices, and the method comprises: controlling the master node to establish wireless communication with any one of the slave nodes; counting the communication times of the slave node which is establishing communication with the master node, and stopping counting when the slave node successfully communicates with the master node or when the counted communication times reach M; if the master node successfully communicates with the slave node which is establishing communication with the master node and the communication times are less than M, calculating the remaining communication time slices of the slave node according to the communication times, converting the remaining communication time slices into standby time slices, and triggering the master node to perform wireless communication with another slave node; if the communication times of the master node and the slave node which is establishing communication with the master node reach M and the master node and the slave node still fail to successfully communicate, determining whether the standby time slices exist, if the standby time slices do not exist, the master node confirms that the communication with the slave node fails, if the standby time slices exist, the standby time slices are allocated for the slave node to communicate with the master node until the master node and the slave node successfully communicate, or the communication times of the master node and the slave node to perform communication using the standby time slices equal to the total number of the standby time slices and the master node and the slave node still fail to successfully communicate, and then the master node confirms that the communication with the slave node fails.

2. The method of claim 1, wherein, The calculation of the remaining communication time slices of the slave node according to the communication times comprises: calculating the difference between M and the communication times; counting the current communication time slices of the slave node according to the difference to obtain the remaining communication time slices.

3. The method of claim 1, wherein, The control of the master node to establish wireless communication with any one of the slave nodes comprises: controlling the master node to send a communication heartbeat packet to any one of the slave nodes according to the allocation rule of the communication time slices; if it is determined that the master node receives feedback information of the slave node within a preset time interval, it is determined that the master node and the slave node successfully communicate; if it is determined that the master node does not receive feedback information of the slave node within a preset time interval, it is determined that the master node and the slave node fail to communicate.

4. The method of claim 1-3, wherein, The method further comprises K scheduling time slices; after the step of the master node confirming that the communication with the slave node fails, the method further comprises: allocating the K scheduling time slices for the slave node which is establishing communication to communicate with the master node until the master node and the slave node which is establishing communication successfully communicate or the scheduling time slices are used up.

5. The method of claim 1-3, wherein, N is greater than or equal to 2.

6. The method of claim 1-3, wherein, M is greater than or equal to 2.

7. A device for allocating time slots of a communication time slice, for time slot allocation in a multi-node wireless communication system, said device involving one master node and N slave nodes in mutual communication connection in the wireless communication system, wherein, In each communication time period, the master node completes wireless communication with each slave node once, each slave node is allocated with M communication time slices, and the device comprises: a determination module, configured to control the master node to establish wireless communication with any one of the slave nodes; a statistical communication frequency module, configured to count a communication frequency 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 frequency reaches M; a time slice accumulation module, configured to, if the master node successfully communicates with the slave node that is establishing communication with the master node and the communication frequency is less than M, calculate a remaining communication time slice of the slave node according to the communication frequency, convert the remaining communication time slice into a standby time slice, and trigger the master node to wirelessly communicate with another slave node; a time slice allocation module, configured to, if the master node successfully communicates with the slave node that is establishing communication with the master node M times and the master node still fails to successfully communicate with the slave node, determine whether the standby time slice exists, if the standby time slice does not exist, confirm that the master node fails to communicate with the slave node, if the standby time slice exists, allocate the standby time slice for the slave node to communicate with the master node until the master node successfully communicates with the slave node or the communication frequency of the master node to communicate with the slave node equals to the total number of the standby time slice and the master node still fails to successfully communicate with the slave node, and then confirm that the master node fails to communicate with the slave node.

8. The apparatus for allocating communication time slices according to claim 7, wherein, The determination communication module is specifically configured to: control the master node to send a communication heartbeat packet to any one of the slave nodes according to the allocation rule of the communication time slice; if it is determined that the master node receives feedback information of the slave node within a preset time interval, it is determined that the master node successfully communicates with the slave node; if it is determined that the master node does not receive feedback information of the slave node within a preset time interval, it is determined that the master node fails to communicate with the slave node.

9. The apparatus for allocating a communication time slice according to claim 7 or 8, wherein, The time slice allocation module is further configured to, after the master node confirms that the slave node fails to communicate, allocate K scheduling time slices 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.

10. The apparatus for allocating a communication time slice according to claim 7 or 8, wherein, The calculation of the remaining communication time slice of the slave node according to the communication frequency includes: calculating a difference between M and the communication frequency; counting the current communication time slice of the slave node according to the difference to obtain the remaining communication time slice.

11. The method of claim 7 or 8, wherein, The N is greater than or equal to 2.

12. The method of claim 7 or 8, wherein, The M is greater than or equal to 2.

13. A system for allocating time slots for communication, wherein, The system is applied to the allocation method of the communication time slice according to any one of claims 1-6, and the system includes a master node and N slave nodes. The master node wirelessly communicates with the N slave nodes respectively, each of the slave nodes is provided with M communication time slices in each communication time period, and the time interval of two adjacent communication time slices is the same.

14. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the allocation method of the communication time slice according to any one of claims 1-6 when executing the computer program.

15. A computer readable storage medium, wherein, The computer readable storage medium stores a computer executable program, and the computer executable program is used for enabling the computer to execute the communication time slice allocation method in any one of claims 1-6.

Citation Information

Patent Citations

  • Single-channel data uploading method, device, equipment and medium

    CN117500053A

  • Communication time slice allocation method, device and system, electronic equipment and computer readable storage medium

    CN119212092A

  • Master-Slave-System

    DE102018124691A1

  • Battery management system and update method therefor, and master node, slave node and storage medium

    WO2023102733A1