Communication time slice allocation method, apparatus and system, and computer-readable storage medium
By adjusting the number of communication time slices based on signal strength or loss rate before the master node communicates with the slave node, the problems of wasted battery communication cycles and low time utilization are solved, achieving more efficient communication.
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
In existing technologies, the inconsistent communication quality of slave nodes during battery pack communication leads to wasted communication cycles and low time utilization, making it difficult to adjust flexibly and thus affecting communication efficiency.
Before the master node communicates with the slave node, the communication parameter values of each slave node are calculated based on the signal strength value or signal loss rate, and the number of communication time slices is adjusted to match the communication quality and allocate the communication time reasonably.
By dynamically adjusting the number of communication time slices, communication efficiency is improved, avoiding problems such as long waiting times and insufficient communication, and enhancing the utilization of time resources and communication flexibility.
Smart Images

Figure CN2025106188_26032026_PF_FP_ABST
Abstract
Description
Method, device, system and computer readable storage medium for allocating communication time slices
[0001] Cross-reference to Related Applications
[0002] This application claims priority to Chinese Patent Application No. 202411305881.8, 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 time slice allocation, and in particular to a method, device, system and computer readable storage medium for allocating communication time slices. BACKGROUND
[0004] With the vigorous development of the new energy industry, the application of battery packs in stages 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 of a new energy vehicle, thereby meeting the voltage and power requirements of the new energy vehicle.
[0005] In order to reasonably allocate the time and period of communication detection, the commonly used method is to set the detection device end as a master node, set a slave node for each battery in the battery pack, and give each slave node a fixed communication period. Within this period, the slave node can communicate with the master node multiple times, and the master node can determine the state of the battery pack of the slave node through communication information within the communication period, so as to form an integrated structure of the battery pack.
[0006] However, the commonly used method has the following technical problems: in the communication process, the communication period of each slave node is pre-set and the length of the communication period is fixed; if the communication quality of a slave node is good, it can complete communication with the master node once, but it still needs to wait for the entire communication period to detect the next slave node; if the communication quality of a slave node is poor, the slave node cannot complete communication with the master node within the allocated communication period, and at this time, there will be a communication failure of a certain slave node within the communication period, and the master node cannot obtain data. The whole process not only has low flexibility, but also consumes a long time, and the utilization rate of the time period is not high. SUMMARY
[0007] The present application proposes a method, device, system 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 time slices, 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. In each communication time period, each of the slave nodes is provided with I time slices, and each of the time slices is communicated once. The method comprises the following steps:
[0009] Before the master node communicates with the N slave nodes respectively, the communication parameter value of each of the slave nodes is calculated, wherein the communication parameter value includes at least one of a signal strength value and a signal loss rate;
[0010] It is judged whether the communication parameter value is within a preset parameter range value, wherein the preset parameter range value includes at least one of a preset strength range value and a preset loss range value;
[0011] If the communication parameter value is within the parameter range value, the number of time slices of the slave node is not adjusted;
[0012] If the communication parameter value is not within the parameter range value, the number of time slices of the slave node is adjusted.
[0013] In a possible implementation manner of the first aspect, the communication parameter value is a signal strength value, and the parameter range value is a preset strength range value.
[0014] The adjustment of the number of time slices of the slave node includes the following steps:
[0015] If the signal strength value is greater than a preset first strength value, a first strength adjustment number is calculated according to a preset first coefficient parameter and I, and the number of time slices of the slave node is lowered by the first strength adjustment number;
[0016] If the signal strength value is less than a preset second strength value, a second strength adjustment number is calculated according to a preset second coefficient parameter and I, and the number of time slices of the slave node is raised by the second strength adjustment number;
[0017] The preset first strength value is the maximum value of the strength range value, and the preset second strength value is the minimum value of the strength range value.
[0018] In a possible implementation manner of the first aspect, the preset first coefficient parameter includes a first strength coefficient and a second strength coefficient.
[0019] The calculation of the first strength adjustment number according to the preset first coefficient parameter and I includes the following steps:
[0020] calculating a first intensity adjustment quantity according to a ratio of I and the first intensity coefficient, wherein if the first intensity adjustment quantity is not an integer, the first intensity adjustment quantity is extended to a next integer value, and if the first intensity adjustment quantity is an integer, the first intensity adjustment quantity is taken as the first intensity adjustment quantity;
[0021] or
[0022] calculating a first intensity adjustment quantity according to a difference between I and the second intensity coefficient.
[0023] In a possible implementation of the first aspect, the preset second coefficient parameter includes a third intensity coefficient and a fourth intensity coefficient.
[0024] calculating a second intensity adjustment quantity according to the preset second coefficient parameter and I, includes:
[0025] calculating a second intensity adjustment quantity according to a ratio of I and the third intensity coefficient, wherein if the second intensity adjustment quantity is not an integer, the second intensity adjustment quantity is extended to a previous integer value, and if the second intensity adjustment quantity is an integer, the second intensity adjustment quantity is taken as the second intensity adjustment quantity;
[0026] or
[0027] calculating a second intensity adjustment quantity according to a sum of I and the fourth intensity coefficient.
[0028] In a possible implementation of the first aspect, the communication parameter value is a signal loss rate, and the parameter range value is a preset loss range value.
[0029] adjusting the number of communication time slices of the slave node, includes:
[0030] if the signal loss rate is less than a preset first loss rate, calculating a first loss adjustment quantity according to a preset third coefficient parameter and I, and reducing the number of communication time slices of the slave node according to the first loss adjustment quantity;
[0031] if the signal loss rate is greater than a preset second loss rate, calculating a second loss adjustment quantity according to a preset fourth coefficient parameter and I, and increasing the number of communication time slices of the slave node according to the second loss adjustment quantity;
[0032] wherein the preset first loss rate is a minimum value of the loss range value, and the preset second loss rate is a maximum value of the loss range value.
[0033] In a possible implementation of the first aspect, the preset third coefficient parameter includes a first loss coefficient and a second loss coefficient.
[0034] the first loss adjustment quantity is calculated according to the third preset coefficient parameter and I, including:
[0035] a ratio of I and the first loss coefficient is calculated to obtain a first loss ratio value, if the first loss ratio value is not an integer, the first loss ratio value is extended to a next integer value to obtain the first loss adjustment quantity, if the first loss ratio value is an integer, the first loss ratio value is taken as the first loss adjustment quantity;
[0036] or;
[0037] a difference between I and the second loss coefficient is calculated to obtain the first loss adjustment quantity.
[0038] In a possible implementation of the first aspect, the fourth preset coefficient parameter includes a third loss coefficient and a fourth loss coefficient.
[0039] the second loss adjustment quantity is calculated according to the fourth preset coefficient parameter and I, including:
[0040] a ratio of I and the third loss coefficient is calculated to obtain a second loss ratio value, if the second loss ratio value is not an integer, the second loss ratio value is extended to a previous integer value to obtain the second loss adjustment quantity, if the second loss ratio value is an integer, the second loss ratio value is taken as the second loss adjustment quantity;
[0041] or;
[0042] a sum of I and the fourth loss coefficient is calculated to obtain the second loss adjustment quantity.
[0043] A second aspect of the embodiments of the present application provides a communication time slice allocation device, which is used for time slice allocation of a multi-node wireless communication system, and involves a master node and N slave nodes which are connected to each other for communication in the wireless communication system. Each of the slave nodes is provided with I communication time slices, and each of the communication time slices is communicated once. The device includes:
[0044] a calculation parameter module, which is used for calculating a communication parameter value of each of the slave nodes before the master node communicates with the N slave nodes respectively, the communication parameter value including at least one of a signal strength value and a signal loss rate;
[0045] a determination parameter range module, which is used for judging whether the communication parameter value is within a corresponding parameter range value, the preset parameter range value including at least one of a preset strength range value and a preset loss range value;
[0046] a non-adjustment time slice module, which is used for not adjusting the number of communication time slices of the slave node if the communication parameter value is within the parameter range value.
[0047] an adjusting time slice module, configured to adjust a number of communication time slices of the slave node if the communication parameter value is not within the parameter range value.
[0048] In a possible implementation manner of the second aspect, the communication parameter value is a signal strength value, and the parameter range value is a preset strength range value.
[0049] The adjusting the number of communication time slices of the slave node comprises:
[0050] if the signal strength value is greater than a preset first strength value, calculating a first strength adjustment number according to a preset first coefficient parameter and I, and adjusting the number of communication time slices of the slave node downward according to the first strength adjustment number;
[0051] if the signal strength value is less than a preset second strength value, calculating a second strength adjustment number according to a preset second coefficient parameter and I, and adjusting the number of communication time slices of the slave node upward according to the second strength adjustment number;
[0052] wherein the preset first strength value is a maximum value of the strength range value, and the preset second strength value is a minimum value of the strength range value.
[0053] In a possible implementation manner of the second aspect, the preset first coefficient parameter comprises a first strength coefficient and a second strength coefficient.
[0054] The calculating the first strength adjustment number according to the preset first coefficient parameter and I comprises:
[0055] calculating a first strength ratio value of I and the first strength coefficient, if the first strength ratio value is not an integer, then extending the first strength ratio value to a next integer value to obtain the first strength adjustment number, and if the first strength ratio value is an integer, then taking the first strength ratio value as the first strength adjustment number;
[0056] or
[0057] calculating a difference value of I and the second strength coefficient to obtain the first strength adjustment number.
[0058] In a possible implementation manner of the second aspect, the preset second coefficient parameter comprises a third strength coefficient and a fourth strength coefficient.
[0059] The calculating the second strength adjustment number according to the preset second coefficient parameter and I comprises:
[0060] calculating a second intensity adjustment quantity according to a ratio of I and the third intensity coefficient, wherein if the second intensity adjustment quantity is not an integer, the second intensity adjustment quantity is rounded to the nearest integer value, and if the second intensity adjustment quantity is an integer, the second intensity adjustment quantity is taken as the second intensity adjustment quantity;
[0061] or
[0062] calculating a second intensity adjustment quantity according to a sum of I and the fourth intensity coefficient.
[0063] In a possible implementation of the second aspect, the communication parameter value comprises a signal loss rate, and the parameter range value comprises a loss range value.
[0064] The adjusting the number of communication time slices of the slave node comprises:
[0065] if the signal loss rate is less than a preset first loss rate, calculating a first loss adjustment quantity according to a preset third coefficient parameter and I, and reducing the number of communication time slices of the slave node according to the first loss adjustment quantity;
[0066] if the signal loss rate is greater than a preset second loss rate, calculating a second loss adjustment quantity according to a preset fourth coefficient parameter and I, and increasing the number of communication time slices of the slave node according to the second loss adjustment quantity;
[0067] wherein the preset first loss rate is a minimum value of the loss range value, and the preset second loss rate is a maximum value of the loss range value.
[0068] In a possible implementation of the second aspect, the preset third coefficient parameter comprises a first loss coefficient and a second loss coefficient.
[0069] The calculating a first loss adjustment quantity according to a preset third coefficient parameter and I comprises:
[0070] calculating a first loss ratio according to a ratio of I and the first loss coefficient, wherein if the first loss ratio is not an integer, the first loss ratio is rounded to the nearest integer value to obtain the first loss adjustment quantity, and if the first loss ratio is an integer, the first loss ratio is taken as the first loss adjustment quantity;
[0071] or
[0072] calculating a first loss adjustment quantity according to a difference between I and the second loss coefficient.
[0073] In a possible implementation of the second aspect, the preset fourth coefficient parameter comprises a third loss coefficient and a fourth loss coefficient.
[0074] The second loss adjustment quantity is calculated according to a preset fourth coefficient parameter and I, including:
[0075] The ratio of I and the third loss coefficient is calculated to obtain a second loss ratio value, if the second loss ratio value is not an integer, the second loss ratio value is extended to the previous integer value to obtain the second loss adjustment quantity, if the second loss ratio value is an integer, the second loss ratio value is taken as the second loss adjustment quantity;
[0076] Or;
[0077] The sum of I and the fourth loss coefficient is calculated to obtain the second loss adjustment quantity.
[0078] The third aspect of the embodiment of the application provides a communication time slice allocation system, which is suitable for the communication time slice allocation method, and the system comprises one master node and N slave nodes, each of the slave nodes is provided with I communication time slices.
[0079] Compared with the prior art, the communication time slice allocation method, device, system, electronic equipment and computer readable storage medium provided by the embodiment of the application have the beneficial effects that the communication parameter values of each slave node can be calculated respectively before the master node performs wireless communication with N slave nodes, the number of communication time slices of each slave node is adjusted according to the size of the communication parameter value, and the master node performs wireless communication with each slave node according to the number of adjusted communication time slices. Therefore, the communication time of the master-slave nodes can be reasonably allocated, the problems of long waiting time or insufficient communication time can be avoided, the resource utilization rate of time and the communication flexibility are improved, the communication time is shortened, and the communication efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0080] FIG. 1 is a flowchart of a communication time slice allocation method according to an embodiment of the application;
[0081] FIG. 2 is a schematic diagram of a wireless communication multi-node network according to an embodiment of the application;
[0082] FIG. 3 is a schematic diagram of wireless communication between a master node and a slave node according to an embodiment of the application;
[0083] FIG. 4 is a schematic diagram of communication time slices of a slave node in a wireless communication network according to an embodiment of the application;
[0084] FIG. 5 is an operation flowchart of adjusting communication time slices according to a signal strength value according to an embodiment of the application;
[0085] FIG. 6 is an operation flowchart of adjusting communication time slices according to a signal loss rate according to an embodiment of the application;
[0086] FIG. 7 is an operation flow chart of a residual time slice allocation provided by an embodiment of the present application;
[0087] FIG. 8 is an operation flow chart of a communication time slice allocation method provided by an embodiment of the present application;
[0088] FIG. 9 is a structural schematic diagram of a communication time slice allocation device provided by an embodiment of the present application;
[0089] FIG. 10 is a structural schematic diagram of a communication time slice allocation system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0090] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0091] To solve the above problems, the communication time slice allocation method, device, system, electronic equipment and computer readable storage medium provided by an embodiment of the present application will be described and explained in detail below through the following specific embodiments.
[0092] Referring to FIG. 1, a flow schematic diagram of a communication time slice allocation method provided by an embodiment of the present application is shown.
[0093] The method can be used for time slice allocation of a multi-node wireless communication system. The method involves a master node and N slave nodes connected in communication in a wireless communication system. In each communication time period, each slave node is provided with I communication time slices, and each communication time slice is communicated once.
[0094] Referring to FIGS. 2-4, a wireless communication multi-node network diagram provided by an embodiment of the present application, a wireless communication network master-slave node communication diagram provided by an embodiment of the present application, and a wireless communication network slave node communication time slice diagram provided by an embodiment of the present application are shown respectively.
[0095] Specifically, it can involve a wireless communication master node and N wireless communication slave nodes. The slave node is a node of a battery in a battery pack, referred to as a slave node. Referring to FIG. 2, a battery management unit (BMU) is a master node, and a cell monitoring unit (CMU) is a slave node.
[0096] As shown in FIG. 3, it is a schematic diagram of master node and slave node communication in wireless communication network. In the wireless communication network, there is one master node and N slave nodes, and N is at least 2. The N wireless communication slave nodes complete wireless communication with the wireless communication master node in turn, and the above communication process is repeated periodically, so as to complete the communication of the entire wireless communication network.
[0097] As shown in FIG. 4, each slave node is allocated I communication time slices, and the master node and the slave node complete wireless communication once in the I communication time slices. Each communication time slice can communicate once, and a total of I times. Taking FIG. 4 as an example, I can be 4.
[0098] As an example, the allocation method of the communication time slice can include:
[0099] S11, before the master node respectively communicates with N slave nodes, the communication parameter value of each slave node is calculated, wherein the communication parameter value includes at least one of signal strength value and signal loss rate.
[0100] In an embodiment, in wireless communication, the communication quality of different nodes is uneven. In this case, the communication parameter value of each slave node can be determined first, and the communication quality of the slave node is determined through the communication parameter value. Then, according to the good or bad of the communication quality, the I communication time slices of the slave node are re-allocated. In the condition that the wireless communication quality is uneven, the communication time slice of the slave node with good communication quality can be allocated to the slave node with poor communication quality, so that the slave node with poor quality has more time to connect with the master node.
[0101] Based on the current communication quality, the wireless communication can be completed in less than the allocated time slice, which can improve the wireless communication efficiency of the system. At the same time, based on the current communication quality, the excess time slice of the slave node with good communication quality can be allocated to the slave node with poor communication quality, which can reasonably utilize the communication resources and improve the communication efficiency.
[0102] S12, it is judged whether the communication parameter value is in a preset parameter range value, and the preset parameter range value includes at least one of a preset strength range value and a preset loss range value.
[0103] In an embodiment, the communication parameter value can include signal strength value and signal loss rate. The signal strength value can be RSSI value, also known as receiving sensitivity, which is commonly known as received signal strength. The signal loss rate can be per value, which can be the loss of transmitted optical signal per unit length.
[0104] There can be different parameter range values for different communication parameter values, and the number of communication time slices of each slave node is adjusted according to the comparison result of the communication parameter value and the parameter range value, so that the master node performs wireless communication with each slave node according to the adjusted number of communication time slices.
[0105] S13, if the communication parameter value is within the parameter range value, the number of communication time slices of the slave node is not adjusted.
[0106] In an embodiment, if the communication parameter value is within the parameter range value, for example, the signal strength value is within its corresponding preset parameter range value, or the signal loss rate is within its corresponding preset parameter range value, it indicates that the communication quality between the master node and the slave node is relatively stable, and the number of communication time slices of the slave node can not be adjusted.
[0107] S14, if the communication parameter value is not within the parameter range value, the number of communication time slices of the slave node is adjusted.
[0108] In an embodiment, if the communication parameter value is not within the parameter range value, for example, the signal strength value is not within its corresponding preset parameter range value, or the signal loss rate is not within its corresponding preset parameter range value, it indicates that the communication quality between the master node and the slave node can be good or poor. If it is good, the number of communication time slices of the slave node can be appropriately reduced, and vice versa, if it is poor, the number of communication time slices of the slave node can be appropriately increased.
[0109] Referring to FIG. 5, an operation flowchart for adjusting the communication time slices according to the signal strength value is shown.
[0110] In an embodiment, the communication parameter value is a signal strength value, and the parameter range value includes a preset strength range value.
[0111] In order to dynamically average allocate the signal strength value, as an example, the adjustment of the number of communication time slices of the slave node can include the following sub-steps:
[0112] S21, if the signal strength value is greater than a preset first strength value, a first strength adjustment number is calculated according to a preset first coefficient parameter and I, and the number of communication time slices of the slave node is down-regulated according to the first strength adjustment number.
[0113] S22, if the signal strength value is less than a preset second strength value, a second strength adjustment number is calculated according to a preset second coefficient parameter and I, and the number of communication time slices of the slave node is up-regulated according to the second strength adjustment number.
[0114] The preset first intensity value is the maximum value of the intensity range value, and the preset second intensity value is the minimum value of the intensity range value.
[0115] The user can preset the first intensity value and the second intensity value, and the first intensity value and the second intensity value can be adjusted according to actual needs. The first intensity value is greater than the second intensity value, and the intensity range value can be obtained by setting the first intensity value and the second intensity value.
[0116] It can be judged whether the signal intensity value is within the intensity range value. If the signal intensity value is greater than the preset first intensity value, it indicates that the communication quality of the slave node is good, a first intensity adjustment quantity is calculated according to the preset first coefficient parameter and I, and the number of communication time slices of the slave node is reduced by the first intensity adjustment quantity.
[0117] Specifically, the number of communication time slices of the slave node can be adjusted to the first intensity adjustment quantity.
[0118] Similarly, if the signal intensity value is less than the preset second intensity value, it indicates that the communication quality of the slave node is poor, a second intensity adjustment quantity can be calculated according to the preset second coefficient parameter and I, and the number of communication time slices of the slave node can be increased by the second intensity adjustment quantity. Specifically, the number of communication time slices of the slave node can be increased by the second intensity adjustment quantity on the basis of the existing number of communication time slices of the slave node.
[0119] In an embodiment, the preset first coefficient parameter includes a first intensity coefficient and a second intensity coefficient.
[0120] Referring to FIG. 5, the first intensity adjustment quantity calculated according to the preset first coefficient parameter and I can include the following sub-steps:
[0121] S211, a first intensity ratio is calculated by taking the ratio of I and the first intensity coefficient, if the first intensity ratio is not an integer, the first intensity ratio is extended to the next integer value to obtain a first intensity adjustment quantity, and if the first intensity ratio is an integer, the first intensity ratio is taken as the first intensity adjustment quantity.
[0122] Or;
[0123] S212, a first intensity adjustment quantity is calculated by taking the difference between I and the second intensity coefficient.
[0124] Specifically, if the signal strength value is greater than the preset first intensity value, a first intensity adjustment quantity can be calculated by dividing I by the preset first intensity coefficient, and if the first intensity adjustment quantity is not an integer, the first intensity adjustment quantity is rounded up to the next integer value, and the number of communication time slices of the slave node is adjusted according to the rounded first intensity adjustment quantity. If the first intensity adjustment quantity is an integer, the first intensity adjustment quantity is used as the first intensity adjustment quantity.
[0125] For example, assuming that I = 3 and the preset first intensity coefficient is 2, I / 2 can be calculated. The calculation result is I / 2 = 1.5, which is rounded up to 2, and then the number of communication time slices of the slave node is adjusted from 3 to 2. For another example, assuming that I = 6 and the preset first intensity coefficient is 2, I / 2 can be calculated. The calculation result is 6 / 2 = 3, which is an integer value, and the number of communication time slices of the slave node is adjusted from 6 to 3.
[0126] Alternatively, a first intensity adjustment quantity can be calculated by subtracting the second intensity coefficient from I.
[0127] For example, assuming that I = 3 and the preset second intensity coefficient is 2, the first intensity adjustment quantity can be calculated as 3-2 = 1, and the number of communication time slices of the slave node is adjusted from 3 to 1.
[0128] In an embodiment, the preset second coefficient parameter includes a third intensity coefficient and a fourth intensity coefficient.
[0129] For example, calculating the second intensity adjustment quantity according to the preset second coefficient parameter and I can include the following sub-steps:
[0130] S221, a second intensity adjustment quantity is calculated by dividing I by the third intensity coefficient, and if the second intensity adjustment quantity is not an integer, the second intensity adjustment quantity is rounded up to the next integer value to obtain the second intensity adjustment quantity, and if the second intensity adjustment quantity is an integer, the second intensity adjustment quantity is used as the second intensity adjustment quantity.
[0131] Alternatively,
[0132] S222, a second intensity adjustment quantity is calculated by adding I and the fourth intensity coefficient.
[0133] If the signal strength value is less than the preset second intensity value, it indicates that the communication quality of the slave node is poor, a second intensity adjustment quantity can be calculated by dividing I by the third intensity coefficient, and if the second intensity adjustment quantity is not an integer, the second intensity adjustment quantity is rounded up to the next integer value, and then the number of communication time slices of the slave node is adjusted according to the sum of the rounded second intensity adjustment quantity and I.
[0134] For example, assuming I=3 and the third intensity coefficient is 2, I / 2 can be calculated. The calculation results in I / 2=1.5, and 1.5 is rounded up to the next integer value to obtain a second intensity adjustment quantity of 1. Then the sum of the second intensity adjustment quantity and I is calculated, specifically 3+1=4, and the number of communication time slices of the slave node is adjusted from 3 to 4. For another example, assuming I=6 and the third intensity coefficient is 2, I / 2 can be calculated. The calculation results in 6 / 2=3, and the second intensity adjustment quantity of 3 is an integer value and does not need to be rounded up. The sum of the second intensity adjustment quantity and I is calculated, specifically 6+3=9, and the number of communication time slices of the slave node is adjusted from 6 to 9.
[0135] Alternatively, if the signal strength value is less than the preset second intensity value, it indicates that the communication quality of the slave node is poor, the sum of I and a fourth intensity coefficient is calculated to obtain a second intensity adjustment quantity, and the number of communication time slices of the slave node is adjusted according to the second intensity adjustment quantity.
[0136] For example, assuming I=3 and the fourth intensity coefficient is 2, the sum of I and the preset fourth intensity coefficient is calculated to obtain a second intensity adjustment quantity of 3+2=5, and the number of communication time slices of the slave node is adjusted from 3 to 5.
[0137] For the above example, if the signal strength value is greater than the preset second intensity value and less than the preset first intensity value, the number of communication time slices of the slave node is not adjusted.
[0138] Referring to FIG. 6, an operation flowchart for adjusting communication time slices according to a signal loss rate is shown according to an embodiment of the present application.
[0139] In an optional embodiment, the communication parameter value is a signal loss rate, and the parameter range value includes a preset loss range value.
[0140] In order to dynamically average allocate the signal loss rate. As an example, the adjustment of the number of communication time slices of the slave node can include the following sub-steps:
[0141] S31, if the signal loss rate is less than a preset first loss rate, a first loss adjustment quantity is calculated according to a preset third coefficient parameter and I, and the number of communication time slices of the slave node is down-regulated according to the first loss adjustment quantity.
[0142] S32, if the signal loss rate is greater than a preset second loss rate, a second loss adjustment quantity is calculated according to a preset fourth coefficient parameter and I, and the number of communication time slices of the slave node is up-regulated according to the second loss adjustment quantity.
[0143] The preset first loss rate is the minimum value of the loss range value, and the preset second loss rate is the maximum value of the loss range value.
[0144] The user can preset the first loss rate and the second loss rate, and the first loss rate and the second loss rate can be adjusted according to actual needs. The first loss rate is less than the second loss rate, and the loss range value can be obtained by setting the first loss rate and the second loss rate.
[0145] It can be judged whether the signal loss rate is within the loss range value. If the signal loss rate is less than the preset first loss rate, it indicates that the communication quality of the slave node is good, the first loss adjustment quantity is calculated according to the preset third coefficient parameter and I, and the number of communication time slices of the slave node is reduced by the first loss adjustment quantity.
[0146] Specifically, the number of communication time slices of the slave node can be adjusted to the first loss adjustment quantity.
[0147] Similarly, if the signal loss rate is greater than the preset second loss rate, it indicates that the communication quality of the slave node is poor, and the second loss adjustment quantity can be calculated according to the preset fourth coefficient parameter and I, and the number of communication time slices of the slave node is increased by the second loss adjustment quantity. Specifically, the number of communication time slices of the slave node can be increased by the second loss adjustment quantity based on the existing number of communication time slices.
[0148] In an embodiment, the preset third coefficient parameter includes a first loss coefficient and a second loss coefficient.
[0149] Referring to FIG. 6, the first loss adjustment quantity calculated according to the preset third coefficient parameter and I can include the following sub-steps:
[0150] S311, calculating the ratio of I and the first loss coefficient to obtain a first loss ratio, if the first loss ratio is not an integer, then the first loss ratio is extended to the next integer value to obtain a first loss adjustment quantity, if the first loss ratio is an integer, then the first loss ratio is taken as the first loss adjustment quantity.
[0151] Or;
[0152] S312, calculating the difference between I and the second loss coefficient to obtain a first loss adjustment quantity.
[0153] Specifically, the value range of the signal loss rate can be determined, if the signal loss rate is less than the preset first loss rate, it indicates that the communication quality of the slave node is better, the ratio of I and the preset first loss coefficient can be calculated to obtain a first loss ratio, and when the first loss ratio is not an integer, it is extended to the next integer value to obtain a first loss adjustment quantity, and the number of communication time slices of the slave node is adjusted according to the first loss adjustment quantity. If the first loss ratio is an integer, the first loss ratio is taken as the first loss adjustment quantity.
[0154] For example, assuming that I=3 and the preset first loss coefficient is 2, the ratio of I and the preset first loss coefficient can be calculated. The first loss ratio is calculated as I / 2=1.5, which is not an integer value. 1.5 is extended to the next integer value to obtain 2, and then the number of communication time slices of the slave node is adjusted from 3 to 2. For another example, assuming that I=6 and the preset first loss coefficient is 2, the first loss ratio is calculated as 6 / 2=3, which is an integer value. The number of communication time slices of the slave node is adjusted from 6 to 3.
[0155] In order to allocate a fixed value to the signal loss rate. If the signal loss rate is less than the preset first loss rate, the difference between I and the preset second loss coefficient can be calculated to obtain a first loss adjustment quantity, and the number of communication time slices of the slave node is adjusted according to the first loss adjustment quantity.
[0156] For example, assuming that I=3 and the preset second loss coefficient is 2, the first loss adjustment quantity is calculated as 3-2=1, and the number of communication time slices of the slave node is adjusted from 3 to 1.
[0157] In an embodiment, the preset fourth coefficient parameter includes a third loss coefficient and a fourth loss coefficient.
[0158] Referring to FIG. 6, the calculation of the second loss adjustment quantity according to the preset fourth coefficient parameter and I can include the following sub-steps:
[0159] S321, the ratio of I and the third loss coefficient is calculated to obtain a second loss ratio, if the second loss ratio is not an integer, the second loss ratio is extended to the previous integer value to obtain a second loss adjustment quantity, and if the second loss ratio is an integer, the second loss ratio is taken as the second loss adjustment quantity.
[0160] Or;
[0161] S321, the sum of I and the fourth loss coefficient is calculated to obtain a second loss adjustment quantity.
[0162] Similarly, if the signal loss rate is greater than the preset second intensity value, it indicates that the communication quality of the slave node is poor, and a second loss ratio value can be calculated by taking the ratio of I and the third loss coefficient. If the second loss ratio value is not an integer value, the second loss ratio value can be sequentially extended to the previous integer value to obtain a second loss adjustment quantity, and the number of communication time slices of the slave node is adjusted according to the sum of the second loss adjustment quantity and I. If the second loss ratio value is an integer, the second loss ratio value is taken as the second loss adjustment quantity.
[0163] For example, assuming that I = 3 and the preset third loss coefficient is 2, the second loss ratio value can be calculated. The second loss ratio value is calculated as I / 2 = 1.5, which is not an integer value. The second loss ratio value can be sequentially extended to the previous integer value to obtain 1, and then the sum of the extended second intensity ratio value and I is calculated, specifically 3 + 1 = 4. The number of communication time slices of the slave node is adjusted from 3 to 4. For another example, assuming that I = 6 and the preset first loss coefficient is 2, the second loss ratio value is calculated to obtain 6 / 2 = 3, which is an integer value. Then the sum of the second loss ratio value and I is calculated, specifically 6 + 3 = 9. The number of communication time slices of the slave node is adjusted from 6 to 9.
[0164] Similarly, if the signal loss rate is greater than the preset second loss rate, it indicates that the communication quality of the slave node is poor, and a loss sum value can be calculated by taking the sum of I and the preset fourth loss coefficient. Then the number of communication time slices of the slave node is adjusted according to the loss sum value.
[0165] For example, assuming that I = 3 and the preset fourth intensity coefficient is 2, the sum of I and the preset fourth intensity coefficient is calculated to obtain a loss sum value, specifically 3 + 2 = 5. The number of communication time slices of the slave node is adjusted from 3 to 5.
[0166] For the above example, if the signal loss rate is greater than the preset first loss rate and less than the preset second loss rate, the number of communication time slices of the slave node can not be adjusted.
[0167] Referring to FIG. 7, an operation flowchart of remaining time slice allocation is shown according to an embodiment of the present application.
[0168] In an embodiment, after the number of communication time slices of the slave node is re-adjusted, the master node can perform wireless communication with the slave node. During the communication, the master node can successfully communicate with the slave node within one communication time slice; can successfully communicate with the slave node once after failing to communicate with the slave node within multiple continuous communication time slices; or can fail to communicate with the slave node within multiple continuous communication time slices.
[0169] In the wireless communication process between the master node and the slave node, if the communication is successful, there can be some time slots left unused. In order to further utilize the left time slots, the method can further include the following steps:
[0170] S15, when it is determined that the communication between the master node and the current slave node fails and the number of communication failures is equal to the number of time slots of the current slave node, a plurality of left time slots are obtained, the plurality of left time slots being obtained by accumulating a plurality of unused time slots of a plurality of previous slave nodes after the communication with the plurality of previous slave nodes is successful.
[0171] S16, the plurality of left time slots are allocated to the current slave node, and the master node utilizes the plurality of left time slots to perform wireless communication with the current slave node.
[0172] S17, when it is determined that the communication between the master node and the current slave node fails, the master node triggers wireless communication with a next slave node of the current slave node.
[0173] Specifically, after the number of time slots of the slave node is adjusted, the master node can communicate with each slave node, and when it is determined that the communication between the master node and the current slave node is successful, the number of communications between the master node and the current slave node can be counted. For example, the communication between the master node and the slave node fails for the first time and succeeds for the second time, and the number of communications is 2.
[0174] If the number of communications is less than the number of time slots of the slave node, it indicates that the communication quality between the master node and the slave node is high, and the number of communications is small in the wireless communication process. The slave node has some left time slots. In order to reasonably utilize the left time slots, the left time slots can be unified and accumulated to form a set of left time slots.
[0175] When it is determined that the communication between the master node and the current slave node fails, the number of communications between the master node and the current slave node can also be counted. For example, the communication between the master node and the slave node fails for the first time and also fails for the second time, and the number of communication failures is 2.
[0176] The number of communication failures can be determined whether it is equal to the number of communication time slots of the current slave node. If the number of communication failures is equal to the number of communication time slots of the slave node, it indicates that the master node fails to communicate with the current slave node in the time corresponding to the communication time slot of the slave node. In order to enable the master node to communicate with the current slave node, a plurality of residual time slots are obtained, which can be extracted from the set of residual time slots previously constructed.
[0177] Specifically, after the master node successfully communicates with a plurality of previous slave nodes, a plurality of residual time slots are obtained by accumulating a plurality of communication time slots not communicated by each of the previous slave nodes.
[0178] Suppose 10 communication time slots have been accumulated before, the 10 communication time slots can be allocated to the current slave node for the master node to continue wireless communication with the current slave node in the time corresponding to the plurality of residual time slots.
[0179] If it is determined that the master node fails to communicate with the current slave node using the plurality of residual time slots, it indicates that the master node cannot establish communication with the current slave node in the time corresponding to the plurality of residual time slots. In order to avoid repeated processing of a slave node, the master node can be triggered to wirelessly communicate with the next slave node of the current slave node.
[0180] In yet another optional embodiment, the number of extracted residual time slots can also be adjusted according to actual needs, for example, only two are extracted each time, to avoid that a slave node with poor quality uses up all the residual time slots.
[0181] Referring to FIG. 8, an operation flowchart of a communication time slot allocation method according to an embodiment of the present application is shown.
[0182] Specifically, the operation of the communication time slot allocation method can include the following steps:
[0183] First, the master node communicates with the slave node. The wireless communication system contains one master node and n slave nodes (n≥2).
[0184] Second, each period, each slave node is allocated i time slots (the number of time slots is at least 2 according to the time allocation resources of the system composed of the master node and the slave node) by default. In each time slot, the slave node communicates with the master node.
[0185] Third, in the wireless communication system, when the communication quality of a certain slave node is poor, the master node can complete communication with the current slave node with poor communication quality by scheduling the time slots of other slave nodes with good communication quality.
[0186] In the fourth step, in the wireless communication system, there are n slave nodes, each of which is allocated i time slices to complete the communication between the current master node and the slave node; wherein, i is the theoretically allocated time slice number. i-m is the actual number of time slices used to complete the communication between the master node and the slave node, and m is the remaining time slice after completing the communication between the master node and the slave node. The excess time slice of the slave node with good communication quality can be allocated to the slave node with poor communication quality. When the communication quality of part of the slave nodes in the entire wireless communication system is good, the current communication between the master node and the slave node will not completely use all i time slices, and i-m time slices are sufficient to support the current communication between the master node and the slave node; when the communication quality of part of the slave nodes is poor, the time slice of a slave node with good communication quality can be dynamically allocated to a slave node with poor communication quality by the master node scheduling, that is, when the wireless communication quality is poor, the current slave node can have i+m time slices to complete the current communication between the master node and the slave node; by dynamically adjusting the allocated communication time slice of each slave node, the reliability of the entire system wireless communication is ensured.
[0187] In the embodiment, the application provides a communication time slice allocation method, which has the beneficial effects that: the application can calculate the communication parameter value of each slave node before the master node respectively communicates with N slave nodes; then, the number of communication time slices of each slave node is adjusted according to the size of the communication parameter value, so that the master node communicates with each slave node according to the number of adjusted communication time slices. Thus, the communication time of the master and slave nodes can be reasonably allocated, the problems of long waiting time or insufficient communication time can be avoided, the time resource utilization rate and communication flexibility can be improved, the communication time length can be shortened, and the communication efficiency can be improved.
[0188] The application also provides a communication time slice allocation device, which is shown in FIG. 9, which shows the structure of a communication time slice allocation device provided by an embodiment of the application.
[0189] The device is used for time slice allocation of 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 in the wireless communication system. In each communication time period, each slave node is provided with I communication time slices, and each communication time slice is communicated once.
[0190] For example, the communication time slice allocation device can include:
[0191] The calculation parameter module 901 is configured to calculate the communication parameter value of each slave node before the master node respectively communicates with N slave nodes, and the communication parameter value is the intensity value or loss rate of the communication process.
[0192] The determination parameter range module 902 is configured to determine whether the communication parameter value is within the corresponding parameter range value.
[0193] The time slice adjustment module 903 is configured to not adjust the number of communication time slices of the slave node if the communication parameter value is within the parameter range value.
[0194] The time slice adjustment module 904 is configured to adjust the number of communication time slices of the slave node if the communication parameter value is not within the parameter range value.
[0195] Optionally, the communication parameter value comprises a signal strength value, and the parameter range value comprises a strength range value.
[0196] The adjustment of the number of communication time slices of the slave node comprises:
[0197] If the signal strength value is greater than a preset first strength value, a first strength adjustment number is calculated according to a preset first coefficient parameter and I, and the number of communication time slices of the slave node is lowered by the first strength adjustment number.
[0198] If the signal strength value is less than a preset second strength value, a second strength adjustment number is calculated according to a preset second coefficient parameter and I, and the number of communication time slices of the slave node is raised by the second strength adjustment number.
[0199] The preset first strength value is the maximum value of the strength range value, and the preset second strength value is the minimum value of the strength range value.
[0200] Optionally, the preset first coefficient parameter comprises a first strength coefficient and a second strength coefficient.
[0201] The calculation of the first strength adjustment number according to the preset first coefficient parameter and I comprises:
[0202] A first strength ratio is calculated by dividing I by the first strength coefficient, and if the first strength ratio is not an integer, the first strength ratio is extended to the next integer value to obtain the first strength adjustment number, and if the first strength ratio is an integer, the first strength ratio is taken as the first strength adjustment number.
[0203] Or
[0204] A difference between I and the second strength coefficient is calculated to obtain the first strength adjustment number.
[0205] Optionally, the preset second coefficient parameter comprises a third strength coefficient and a fourth strength coefficient.
[0206] The calculation of the second strength adjustment number according to the preset second coefficient parameter and I comprises:
[0207] calculating a second intensity adjustment quantity according to a ratio of I and the third intensity coefficient, wherein if the second intensity adjustment quantity is not an integer, the second intensity adjustment quantity is rounded to the nearest integer, and if the second intensity adjustment quantity is an integer, the second intensity adjustment quantity is the second intensity adjustment quantity;
[0208] or
[0209] calculating a second intensity adjustment quantity according to a sum of I and the fourth intensity coefficient.
[0210] Optionally, the communication parameter value comprises a signal loss rate, and the parameter range value comprises a loss range value.
[0211] The adjusting the number of communication time slices of the slave node comprises:
[0212] if the signal loss rate is less than a preset first loss rate, calculating a first loss adjustment quantity according to a preset third coefficient parameter and I, and reducing the number of communication time slices of the slave node according to the first loss adjustment quantity;
[0213] if the signal loss rate is greater than a preset second loss rate, calculating a second loss adjustment quantity according to a preset fourth coefficient parameter and I, and increasing the number of communication time slices of the slave node according to the second loss adjustment quantity;
[0214] wherein the preset first loss rate is a minimum value of the loss range value, and the preset second loss rate is a maximum value of the loss range value.
[0215] Optionally, the preset third coefficient parameter comprises a first loss coefficient and a second loss coefficient.
[0216] The calculating a first loss adjustment quantity according to a preset third coefficient parameter and I comprises:
[0217] calculating a first loss ratio according to a ratio of I and the first loss coefficient, wherein if the first loss ratio is not an integer, the first loss ratio is rounded to the nearest integer, and if the first loss ratio is an integer, the first loss ratio is the first loss adjustment quantity;
[0218] or
[0219] calculating a first loss adjustment quantity according to a difference between I and the second loss coefficient.
[0220] Optionally, the preset fourth coefficient parameter comprises a third loss coefficient and a fourth loss coefficient.
[0221] The second loss adjustment quantity is calculated according to a fourth preset coefficient parameter and I, and the calculation includes:
[0222] A second loss ratio value is calculated by dividing I by the third loss coefficient, if the second loss ratio value is not an integer, the second loss ratio value is extended to the previous integer value to obtain the second loss adjustment quantity, if the second loss ratio value is an integer, the second loss ratio value is taken as the second loss adjustment quantity;
[0223] Or;
[0224] A sum of I and the fourth loss coefficient is calculated to obtain the second loss adjustment quantity.
[0225] In the embodiments of the present application, the calculation parameter module 901, the determination parameter range module 902, the non-adjustment time slice module 903, the adjustment time slice module 904, the battery management unit and the cell management unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related code to realize the corresponding functions.
[0226] The embodiments of the present application also provide a communication time slice allocation system, as shown in FIG. 10, which shows a structural schematic diagram of a communication time slice allocation system provided by an embodiment of the present application.
[0227] The communication time slice allocation system is suitable for the communication time slice allocation method described in the above embodiments, and as an example, the communication time slice allocation system can include:
[0228] One master node and N slave nodes, each of the slave nodes is provided with I communication time slices.
[0229] Those skilled in the art can clearly understand that, for the convenience of description and brevity, the specific working process of the above-described device can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0230] Further, the embodiments of the present application also provide 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 implements the communication time slice allocation method described in the above embodiments when executing the program.
[0231] Further, the embodiments of the present application also provide 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 described in the above embodiments.
[0232] In the description of the present embodiments, it should be noted that the terms "on", "under", and the like indicate the orientation or positional relationship as shown in the drawings, and are only intended to facilitate the description of the present embodiments and simplify the description, and are not intended to 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 limiting 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 present. In contrast, when an element is referred to as being "directly on" or "directly above" another element, there are no intermediate elements present. It should also be understood that when an element is referred to as being "below" or "under" another element, it can be directly below or under the other element, or there can be an intermediate element present. In contrast, when an element is referred to as being "directly below" or "directly under" another element, there are no intermediate elements present. Unless specifically defined and limited in this specification, the terms "mount", "connected", "connection" should be interpreted broadly, for example, it can be fixed connection, or detachable connection, or integrally connected; it can be mechanical connection, or electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or the communication between 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.
[0233] 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 an entirely hardware embodiment, an entirely 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-ROMs, optical storage devices, etc.) containing computer usable program code.
[0234] The present application is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), devices, 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 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 apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce the functions specified in the flowchart and / or block diagram of one or more flows and / or blocks.
[0235] 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.
[0236] 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.
[0237] 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 in a multi-node wireless communication system, said method involving a master node and N slave nodes in communication with each other in a wireless communication system, wherein, In each communication time period, each slave node is provided with I communication time slices, and each communication time slice is communicated once, and the method comprises: Before the master node respectively communicates with N slave nodes, the communication parameter value of each slave node is calculated, wherein the communication parameter value comprises at least one of a signal strength value and a signal loss rate; It is judged whether the communication parameter value is within a preset parameter range value, wherein the preset parameter range value comprises at least one of a preset strength range value and a preset loss range value; If the communication parameter value is within the parameter range value, the number of communication time slices of the slave node is not adjusted; If the communication parameter value is not within the parameter range value, the number of communication time slices of the slave node is adjusted.
2. The method of claim 1, wherein, The communication parameter value is a signal strength value, and the parameter range value is a preset strength range value; The adjustment of the number of communication time slices of the slave node comprises: If the signal strength value is greater than a preset first strength value, a first strength adjustment number is calculated according to a preset first coefficient parameter and I, and the number of communication time slices of the slave node is lowered by the first strength adjustment number; If the signal strength value is less than a preset second strength value, a second strength adjustment number is calculated according to a preset second coefficient parameter and I, and the number of communication time slices of the slave node is raised by the second strength adjustment number; Wherein, the preset first strength value is the maximum value of the strength range value, and the preset second strength value is the minimum value of the strength range value.
3. The method of claim 2, wherein, The preset first coefficient parameter comprises a first strength coefficient and a second strength coefficient; The calculation of the first strength adjustment number according to the preset first coefficient parameter and I comprises: The ratio of I and the first strength coefficient is calculated to obtain a first strength ratio, if the first strength ratio is not an integer, the first strength ratio is extended to the next integer value to obtain a first strength adjustment number, if the first strength ratio is an integer, the first strength ratio is taken as the first strength adjustment number; Or; The difference between I and the second strength coefficient is calculated to obtain a first strength adjustment number.
4. The method of claim 2, wherein, The preset second coefficient parameter comprises a third strength coefficient and a fourth strength coefficient; The calculation of the second strength adjustment number according to the preset second coefficient parameter and I comprises: The ratio of I and the third strength coefficient is calculated to obtain a second strength ratio, if the second strength ratio is not an integer, the second strength ratio is extended to the next integer value to obtain a second strength adjustment number, if the second strength ratio is an integer, the second strength ratio is taken as the second strength adjustment number; Or; The sum of I and the fourth strength coefficient is calculated to obtain a second strength adjustment number.
5. The method of claim 1, wherein, The communication parameter value is a signal loss rate, and the parameter range value is a preset loss range value; The adjustment of the number of communication time slices of the slave node comprises: If the signal loss rate is less than a preset first loss rate, a first loss adjustment number is calculated according to a preset third coefficient parameter and I, and the number of communication time slices of the slave node is reduced by the first loss adjustment number; If the signal loss rate is greater than a preset second loss rate, a second loss adjustment number is calculated according to a preset fourth coefficient parameter and I, and the number of communication time slices of the slave node is increased by the second loss adjustment number; The preset first loss rate is the minimum value of the loss range value, and the preset second loss rate is the maximum value of the loss range value.
6. The method of allocating communication time slices according to claim 5, wherein, The preset third coefficient parameter includes a first loss coefficient and a second loss coefficient. The first loss adjustment number is calculated according to the preset third coefficient parameter and I, including: The difference between I and the fourth loss coefficient is calculated to obtain the second loss adjustment number. The preset fourth coefficient parameter includes a third loss coefficient and a fourth loss coefficient. The second loss adjustment number is calculated according to the preset fourth coefficient parameter and I, including:
7. The method of claim 5, wherein, The difference between I and the fourth loss coefficient is calculated to obtain the second loss adjustment number. In each communication time period, each slave node is provided with I communication time slices, and each communication time slice is communicated once, and the device includes: A calculation parameter module is configured to calculate a communication parameter value of each slave node before the master node communicates with N slave nodes, and the communication parameter value includes at least one of a signal strength value and a signal loss rate. A determination parameter range module is configured to determine whether the communication parameter value is within a preset parameter range value, and the preset parameter range value includes at least one of a preset strength range value and a preset loss range value. An unadjusted time slice module is configured to not adjust the number of communication time slices of the slave node if the communication parameter value is within the parameter range value.
8. A device for allocating time slots for communication, for time slot allocation in a multi-node wireless communication system, said device involving one master node and N slave nodes in a wireless communication system, wherein, An adjusted time slice module is configured to adjust the number of communication time slices of the slave node if the communication parameter value is not within the parameter range value. The communication parameter value is a signal strength value, and the parameter range value is a preset strength range value. The number of communication time slices of the slave node is adjusted, including: If the signal strength value is greater than a preset first strength value, a first strength adjustment number is calculated according to a preset first coefficient parameter and I, and the number of communication time slices of the slave node is reduced by the first strength adjustment number; 9. The apparatus for allocating communication time slices according to claim 8, wherein, If the signal intensity value is less than a preset second intensity value, a second intensity adjustment quantity is calculated according to a preset second coefficient parameter and I, and the number of communication time slices of the slave node is increased by the second intensity adjustment quantity; The preset first intensity value is a maximum value of the intensity range value, and the preset second intensity value is a minimum value of the intensity range value.
10. The apparatus for allocating communication time slices according to claim 9, wherein, The preset first coefficient parameter includes a first intensity coefficient and a second intensity coefficient. The first intensity adjustment quantity is calculated according to the preset first coefficient parameter and I, including: A first intensity ratio is calculated by dividing I by the first intensity coefficient, if the first intensity ratio is not an integer, the first intensity ratio is extended to the next integer value to obtain the first intensity adjustment quantity, if the first intensity ratio is an integer, the first intensity ratio is taken as the first intensity adjustment quantity; Or; A first intensity adjustment quantity is calculated by subtracting I from the second intensity coefficient.
11. The apparatus for allocating communication time slices of claim 9, wherein, The preset second coefficient parameter includes a third intensity coefficient and a fourth intensity coefficient. The second intensity adjustment quantity is calculated according to the preset second coefficient parameter and I, including: A second intensity ratio is calculated by dividing I by the third intensity coefficient, if the second intensity ratio is not an integer, the second intensity ratio is extended to the previous integer value to obtain the second intensity adjustment quantity, if the second intensity ratio is an integer, the second intensity ratio is taken as the second intensity adjustment quantity; Or; A second intensity adjustment quantity is calculated by adding I to the fourth intensity coefficient.
12. The apparatus for allocating communication time slices of claim 8, wherein, The communication parameter value is a signal loss rate, and the parameter range value is a preset loss range value. The number of communication time slices of the slave node is adjusted, including: If the signal loss rate is less than a preset first loss rate, a first loss adjustment quantity is calculated according to a preset third coefficient parameter and I, and the number of communication time slices of the slave node is decreased by the first loss adjustment quantity; If the signal loss rate is greater than a preset second loss rate, a second loss adjustment quantity is calculated according to a preset fourth coefficient parameter and I, and the number of communication time slices of the slave node is increased by the second loss adjustment quantity; The preset first loss rate is a minimum value of the loss range value, and the preset second loss rate is a maximum value of the loss range value.
13. The apparatus for allocating communication time slices of claim 12, wherein, The preset third coefficient parameter includes a first loss coefficient and a second loss coefficient. The first loss adjustment quantity is calculated according to the preset third coefficient parameter and I, including: A first loss ratio is calculated by dividing I by the first loss coefficient, if the first loss ratio is not an integer, the first loss ratio is extended to the next integer value to obtain the first loss adjustment quantity, if the first loss ratio is an integer, the first loss ratio is taken as the first loss adjustment quantity; Or; A first loss adjustment quantity is calculated by subtracting I from the second loss coefficient.
14. A system for allocating time slots for communication, wherein, The communication time slice allocation system is suitable for the communication time slice allocation method as claimed in any one of claims 1-7, and the system comprises a master node and N slave nodes, and each of the slave nodes is provided with I communication time slices.
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 a computer to execute the communication time slice allocation method as claimed in any one of claims 1-7.
Citation Information
Patent Citations
Method for realizing dynamic time slot networking based on time division multiple access technology
CN112584442A
Bus node address allocation method and related device
CN115842806A
Communication time slice distribution method, device and system and computer readable storage medium
CN119212093A
Battery management system and update method therefor, and master node, slave node and storage medium
WO2023102733A1