Communication quality assessment method and apparatus, and terminal device and storage medium

By dividing the data judgment period into multiple master-slave node communication periods and combining PS and PDR indicators, communication quality can be evaluated in real time, solving the problem that existing technologies cannot fully reflect network performance and achieving a more accurate communication quality assessment.

WO2026092436A1PCT designated stage Publication Date: 2026-05-07SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
Filing Date
2025-10-28
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

Existing communication quality assessment methods cannot accurately reflect the communication quality between master and slave nodes. In particular, under network latency and packet loss conditions, PS and PDR metrics cannot fully assess network performance, leading to the masking of potential problems.

Method used

The data judgment period is divided into multiple master-slave node communication periods. The communication quality of each communication period is evaluated in real time through PS and PDR indicators. Polling, priority, request-response or timestamp mechanisms are used to control the response of slave nodes, and each communication result is obtained one by one to generate evaluation results.

Benefits of technology

It improves the accuracy of communication quality assessment, enables timely detection and resolution of problems, avoids issues that may be masked during long-term monitoring, and enhances the reliability and data integrity of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025130496_07052026_PF_FP_ABST
    Figure CN2025130496_07052026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a communication quality assessment method and apparatus, and a terminal device and a storage medium. The method comprises: controlling a master node to initiate a data request instruction to a plurality of slave nodes in a communication system, such that the slave nodes sequentially reply with data response instructions on the basis of the received data request instruction; on the basis of a single master-slave node communication period in the communication system, dividing a data determination period into a plurality of consecutive master-slave node communication periods; acquiring, one by one, a communication result of each slave node within each master-slave node communication period, and substituting the communication results into a PS indicator calculation formula and a PDR indicator calculation formula, so as to generate a PS indicator result and a PDR indicator result within each data determination period; and on the basis of the PS indicator results and the PDR indicator results, generating a master-slave node communication quality assessment result of the communication system. The present application can improve the accuracy of communication quality assessment for master-slave communication.
Need to check novelty before this filing date? Find Prior Art

Description

A communication quality assessment method, apparatus, terminal equipment, and storage medium

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202411515320.0, filed on October 28, 2024, entitled "A Communication Quality Assessment Method, Apparatus, Terminal Equipment and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of data communication technology, and in particular to a communication quality assessment method, apparatus, terminal equipment, and storage medium. Background Technology

[0004] With the rapid development of communication technology, communication systems are increasingly widely used in various industries, and their stability and reliability are crucial for business continuity and security. In master-slave communication, the master node controls the timing and flow of communication, while the slave nodes exchange data according to the master node's instructions. The master node is responsible for scheduling and managing communication, while the slave nodes respond to the master node's requests, and each node exchanges data at certain time intervals. However, due to the limitations of the physical communication method, it is impossible to guarantee the success of every data communication between each node. Therefore, it is necessary to consider the data stability of communication between master and slave nodes. Commonly used metrics for evaluating the communication quality between master and slave nodes include Packet Success Rate (PS), also known as Path Stability, and Packet Delivery Ratio (PDR). These two metrics measure the success rate of network communication and the packet transmission rate, respectively, helping to evaluate network performance and reliability.

[0005] However, the PS (Power Score) only focuses on whether data packets arrive successfully, without considering network latency and packet loss. If network latency is high, but the packet success rate is still high, this may mask underlying performance issues. Even when two networks have the same PS, their actual communication quality and experience may differ; for example, one network might perform poorly under high load, but the PS may not reflect this. The PDR (Payment Response Rate), on the other hand, focuses on packet delivery but does not consider packet transmission latency; a high PDR does not necessarily mean fast data transmission. If the network is congested, the PDR may still remain high, potentially masking network performance problems such as packet latency and retransmissions. Accurately assessing communication quality can help identify data loss, errors, or corruption, which is crucial for ensuring data integrity and system reliability. Summary of the Invention

[0006] This application aims to provide a communication quality assessment method, apparatus, terminal equipment, and storage medium to solve the above-mentioned technical problems and improve the accuracy of communication quality assessment in master-slave communication.

[0007] To address the aforementioned technical problems, this application provides a communication quality assessment method, comprising:

[0008] The master node initiates data request commands to multiple slave nodes in the communication system, so that the slave nodes sequentially reply with data response commands based on the received data request commands;

[0009] The data judgment period is divided into multiple consecutive master-slave node communication periods based on a single master-slave node communication cycle in the communication system; wherein, the master-slave node communication cycle is the time interval between one data exchange between the slave node and the master node.

[0010] The communication results of each slave node in each master-slave communication cycle are obtained one by one. The communication results are then substituted into the PS index calculation formula and the PDR index calculation formula to generate the PS index result and PDR index result for each slave node.

[0011] The master-slave node communication quality assessment results of the communication system are generated based on the PS index results and the PDR index results.

[0012] In the above scheme, the data judgment period is divided into multiple master-slave node communication periods, allowing the latest communication results to be obtained within a controllable time range. This dynamism allows the system to evaluate communication quality in real time under different load conditions and network states. By acquiring the communication results of each master-slave node communication period one by one, the system can track and record the communication performance of each master-slave node communication period in real time. This allows problems to be discovered and resolved in a timely manner, preventing problems from being masked during long-term monitoring. Using both PS and PDR evaluation metrics can more comprehensively reflect the communication quality between master and slave nodes. PS is only a single success rate indicator and cannot fully evaluate network performance. PDR supplements the consideration of packet delivery, helping to identify problems such as packet loss or retransmission, and improving the accuracy of communication quality assessment.

[0013] In one implementation, the master node initiates a data request command to a slave node in the communication system, so that the slave node sequentially replies with data response commands based on the received data request command, specifically including:

[0014] The response order of the slave nodes replying to the data request command is pre-set in the communication system;

[0015] The master node is controlled to cyclically initiate data request commands in the communication system; wherein, controlling the master node to cyclically initiate data request commands in the communication system means controlling the master node to initiate the data request command once every master-slave node communication cycle;

[0016] The system controls the slave nodes within the communication system to sequentially reply with data response commands according to the pre-set response order.

[0017] In one implementation, the step of acquiring the communication results of each slave node in each master-slave node communication cycle, and substituting the communication results into the PS metric calculation formula and the PDR metric calculation formula to generate the PS metric result and PDR metric result for each slave node specifically includes:

[0018] The communication results of each slave node in each master-slave node communication cycle are obtained during a single data evaluation process; wherein, the data evaluation process includes multiple data judgment cycles;

[0019] When it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the PS index result and PDR index result for each slave node are generated using the following PS index calculation formula and PDR index calculation formula: PDR i =100%;

[0020] In the formula, PS i is the PS index result of slave node i; PDR is the PDR index result of slave node i; i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

[0021] In one implementation, when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the method further includes:

[0022] Determine whether there is a continuous communication failure cycle between master and slave nodes within each of the data judgment cycles;

[0023] When the number of consecutive communication failures between master and slave nodes within the data judgment period reaches a preset number, the expressions for the PS index calculation formula and the PDR index calculation formula are updated as follows:

[0024] In the formula, i is any slave node in the communication system; n is the number of communication failures of the i-th slave node in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; and a1 is the number of data judgment cycles with x consecutive master-slave communication failures.

[0025] In one implementation, generating the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result specifically includes:

[0026] If there is one complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%.

[0027] If the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle, the communication result of the master-slave node communication cycle is determined to be a communication failure.

[0028] When a single data evaluation process includes multiple data judgment periods with incomplete communication data, the current PDR index result of the communication system is generated using the following expression of the PDR index calculation formula of the communication system:

[0029] In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a2 is the number of data judgment cycles in which there are x consecutive master-slave node communication cycles with incomplete communication data.

[0030] In one implementation, the step of determining that the communication result of the master-slave node communication cycle is a communication failure when the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle further includes:

[0031] Obtain the communication results of each master-slave node communication cycle within a single data judgment cycle;

[0032] If the communication result of each master-slave node communication cycle within the data judgment period is a communication failure, then the master-slave node communication in the data judgment period is determined to be a failure.

[0033] Secondly, this application also provides a communication quality assessment device, including: an instruction sending module, a period division module, an index calculation module, and a communication judgment module;

[0034] The instruction sending module is used to control the master node to initiate data request instructions to multiple slave nodes in the communication system, so that the slave nodes reply with data response instructions in sequence based on the received data request instructions;

[0035] The cycle division module is used to divide the data judgment cycle into multiple consecutive master-slave node communication cycles based on the communication cycle of a single master-slave node in the communication system; wherein, the communication cycle is the time interval between one data exchange between the slave node and the master node.

[0036] The indicator calculation module is used to obtain the communication results of each slave node in each master-slave node communication cycle, and substitute the communication results into the PS indicator calculation formula and the PDR indicator calculation formula to generate the PS indicator result and PDR indicator result for each slave node.

[0037] The communication judgment module is used to generate a master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result.

[0038] In the above scheme, the data judgment period is divided into multiple master-slave node communication periods, allowing the acquisition of the latest communication results within a controllable time range. This dynamism allows the system to evaluate communication quality in real time under different load conditions and network states. By acquiring the communication results of each communication period one by one, the system can track and record the communication performance of each period in real time. This allows problems to be discovered and resolved in a timely manner, preventing them from being masked during long-term monitoring. Using both PS and PDR evaluation metrics provides a more comprehensive reflection of the communication quality between master and slave nodes. PS is only a single success rate indicator and cannot fully evaluate network performance. PDR supplements the consideration of packet delivery, helping to identify problems such as packet loss or retransmission, and improving the accuracy of communication quality assessment.

[0039] In one implementation, the instruction sending module is used to control the master node to initiate a data request instruction to the slave node in the communication system, so that the slave node sequentially replies with data response instructions based on the received data request instructions, specifically including:

[0040] The response order of the slave nodes replying to the data request command is pre-set in the communication system;

[0041] The master node is controlled to cyclically initiate data request commands in the communication system; wherein, the cyclical nature means that the data request command is initiated once every master-slave node communication cycle;

[0042] The system controls the slave nodes within the communication system to sequentially reply with data response commands according to the pre-set number of responses.

[0043] In one implementation, the communication results of each slave node in each master-slave node communication cycle are obtained one by one. These communication results are then substituted into the PS metric calculation formula and the PDR metric calculation formula to generate the PS metric result and PDR metric result for each slave node. Specifically, this includes:

[0044] The communication results of each slave node in each master-slave node communication cycle are obtained during a single data evaluation process; wherein, the data evaluation process includes multiple data judgment cycles;

[0045] When it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the expressions for the PS metric calculation formula and the PDR metric calculation formula are as follows: PDR i =100%;

[0046] In the formula, PS i The PS metric result for node i; PDR i denoted as PDR index result for slave node i; i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

[0047] In one implementation, when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the method further includes:

[0048] Determine whether there is a continuous communication failure cycle between master and slave nodes within each of the data judgment cycles;

[0049] When the number of consecutive communication failures between master and slave nodes within the data judgment period reaches a preset number, the expressions for the PS index calculation formula and the PDR index calculation formula are updated as follows:

[0050] In the formula, i is any slave node in the communication system; n is the number of communication failures of the i-th slave node in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; and a1 is the number of data judgment cycles with x consecutive master-slave communication failures.

[0051] In one implementation, generating the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result specifically includes:

[0052] If there is one complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%.

[0053] If the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle, the communication result of the master-slave node communication cycle is determined to be a communication failure.

[0054] When a single data evaluation process includes multiple data judgment periods with incomplete communication data, the current PDR index result of the communication system is generated using the following PDR index calculation formula:

[0055] In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a2 is the number of data judgment cycles in which there are x consecutive master-slave node communication cycles with incomplete communication data.

[0056] In one implementation, the step of determining that the communication result of the master-slave node communication cycle is a communication failure when the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle further includes:

[0057] Obtain the communication results of each master-slave node communication cycle within a single data judgment cycle;

[0058] If the communication result of each master-slave node communication cycle within the data judgment period is a communication failure, then the master-slave node communication in the data judgment period is determined to be a failure.

[0059] Thirdly, this application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the communication quality assessment method as described above.

[0060] Fourthly, this application also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to perform the communication quality assessment method as described above. Attached Figure Description

[0061] Figure 1 is a flowchart illustrating a communication quality assessment method provided in one embodiment of this application;

[0062] Figure 2 is a communication diagram of a master-slave node in a single communication cycle provided in an embodiment of this application;

[0063] Figure 3 is a schematic diagram of a master-slave node communication method provided in one embodiment of this application;

[0064] Figure 4 is a schematic diagram of a communication quality assessment device provided in one embodiment of this application. Detailed Implementation

[0065] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.

[0066] The terms "first" and "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus. The term "a plurality of" means two or more.

[0067] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0068] First, some of the terms used in this application will be explained to facilitate understanding by those skilled in the art.

[0069] (1) Packet Success Rate (also known as Path Stability): This refers to the proportion of successfully received data packets out of the total number of data packets sent. It measures the percentage of data packets that successfully reach their destination during transmission.

[0070] (2) Packet Delivery Ratio: refers to the ratio of the number of successfully delivered data packets to the total number of data packets sent. PDR is used to evaluate the actual delivery rate of data packets and help to understand the transmission reliability of the network.

[0071] Example 1

[0072] Referring to Figure 1, Figure 1 is a flowchart illustrating a communication quality assessment method provided in one embodiment of this application. This embodiment of the application provides a communication quality assessment method, including steps 101 to 104, each step being as follows:

[0073] Step 101: Control the master node to send a data request command to the slave node in the communication system, so that the slave node will reply with a data response command in sequence based on the received data request command.

[0074] In one embodiment, the control master node initiates a data request command to the slave nodes in the communication system, so that the slave nodes sequentially reply with data response commands based on the received data request command. Specifically, this includes: pre-setting the response order of the slave nodes replying to the data request command in the communication system; controlling the master node to cyclically initiate data request commands in the communication system; wherein, controlling the master node to cyclically initiate data request commands in the communication system means controlling the master node to initiate the data request command once every master-slave node communication cycle; and controlling the slave nodes in the communication system to sequentially reply with data response commands according to the pre-set response order.

[0075] In this embodiment, the response order of slave nodes replying to data request commands is pre-set in the communication system. The response order is generally determined by any of the following mechanisms: polling, priority, request-response, and timestamp mechanisms. Polling is a simple and easy-to-implement communication method where the master node sends requests to each slave node sequentially, and the slave nodes reply in turn. For example, the master node first queries slave node A; after slave node A responds, the master node queries slave node B; after slave node B responds, the master node queries slave node C, and so on. Priority mechanisms involve each slave node responding according to its priority, and the master node arranges the response order of the slave nodes according to their priority. For example, slave node A has high priority, so the master node receives the response from slave node A first, then slave node B (with medium priority), and finally slave node C (with low priority). Request-response mechanisms allow slave nodes to respond according to the master node's request order when different data types are needed. For example, the master node first requests temperature data, and slave node A responds with temperature data; then it requests humidity data, and slave node B responds with humidity data. The timestamp mechanism determines the response order of slave nodes based on the timestamp or timestamp of the master node. Referring to Figure 2, which is a communication diagram of a master-slave node within a single communication cycle according to an embodiment of this application, in this embodiment, after the master node initiates a data request command, the slave nodes reply sequentially according to their numbering order. The master node is controlled to cyclically initiate data request commands within the communication system according to user needs until communication is interrupted. The slave nodes within the communication system will respond according to a pre-set order.

[0076] Step 102: Based on the single master-slave node communication cycle in the communication system, the data judgment cycle is divided into multiple consecutive master-slave node communication cycles.

[0077] In this embodiment, the data judgment period refers to the time interval during which the slave node processes and judges the received data. This data judgment period determines the frequency at which the slave node processes and judges the data. The data judgment period affects the processing and analysis frequency of the slave node's data. For example, in a sensor network, the sensor processes and makes decisions on the data at regular intervals. For instance, the sensor (i.e., the slave node) judges the received collected data every second to determine whether an alarm needs to be triggered. The control node (i.e., the master node) checks the collected data from the slave node every 5 seconds to determine whether control parameters need to be adjusted. A single master-slave node communication cycle refers to the time interval between a complete data exchange between the master node and the slave node. This includes the entire cycle from the master node sending a request to the slave node responding. A single master-slave node communication cycle determines the frequency of data exchange between the master node and the slave node. For example, the master node requests data from the slave node at regular intervals and waits for a response. This master-slave node communication cycle affects the degree of data synchronization between the master and slave nodes. If the master-slave node communication cycle is shorter, the system can exchange data more frequently and maintain better synchronization. For example, the master node requests status data from the slave node every 10 seconds, and the slave node responds immediately upon receiving the request. The master node requests data from multiple slave nodes every minute, and each slave node sends a response sequentially upon receiving the request. If the data judgment period is 100ms and the single master-slave node communication period is 30ms, then one master-slave node data judgment period consists of 3 (100 / 30 rounded down) master-slave node communication periods.

[0078] Step 103: Obtain the communication results of each slave node in each master-slave communication cycle, substitute the communication results into the PS index calculation formula and the PDR index calculation formula, and generate the PS index result and PDR index result for each slave node.

[0079] In one embodiment, the step of acquiring the communication results of each slave node in each master-slave node communication cycle, and substituting the communication results into the PS index calculation formula and the PDR index calculation formula to generate the PS index result and PDR index result for each slave node specifically includes: acquiring the communication results of each slave node in each master-slave node communication cycle during a single data evaluation process; wherein, the data evaluation process includes multiple data judgment cycles; when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment cycle, the expressions for the PS index calculation formula and the PDR index calculation formula are: PDR i =100%;

[0080] In the formula, PS i The PS metric result for node i; PDR idenoted as PDR index result for slave node i; i is any slave node in the communication system; n is the number of master-slave communication cycles that slave node i has failed to communicate in the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

[0081] In this embodiment, it is assumed that a complete data evaluation process has m data judgment cycles (an example is given where one data judgment cycle contains 3 consecutive master-slave node communication cycles). If, during a complete data evaluation process, slave node i experiences n master-slave node communication cycles (these n communication failure cycles are not consecutive) where data upload fails, i.e., the communication result is communication failure, then the PS of a single slave node i is: PS i = 1 - n / (3 * m), from the PDR of node i i =100%. It should be noted that when the number of communication failures in each master-slave communication cycle within each data judgment period of slave node i is not equal to x (i.e., the communication results of the master-slave communication cycles within each data judgment period are not all failures), then the PDR of slave node i... i =100%.

[0082] As an optimized embodiment of this application, in one embodiment, when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the method further includes: determining whether there are consecutive master-slave node communication cycles with communication failures within each data judgment period; when the number of consecutive master-slave node communication cycles with communication failures within the data judgment period reaches a preset number, the expressions of the PS index calculation formula and the PDR index calculation formula are updated as follows:

[0083] In the formula, i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave node communication cycle during the current data evaluation process; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a1 is the number of data judgment cycles with x consecutive master-slave node communication failures, that is, the number of data judgment cycles in a single data judgment cycle where all communication results of master-slave node communication cycles are failures.

[0084] Wherein, the preset number of times is the number of master-slave node communication cycles in a single data judgment cycle (i.e., x). Assume a complete data evaluation process has m data judgment cycles (using an example where one data judgment cycle contains 3 consecutive master-slave node communication cycles). If, during a complete data evaluation process, slave node i experiences n master-slave node communication cycles (am1 of these n communication failure cycles are consecutively three times), resulting in a communication failure, then the PS of slave node i is: PS i =1-n / (m*3); PDR i =1-a1 / m.

[0085] Step 104: Generate the master-slave node communication quality assessment results of the communication system based on the PS index results and the PDR index results.

[0086] In one embodiment, generating the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result specifically includes: if there is a complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%; when the communication data between the master node and any slave node is incomplete within the master-slave node communication period, the communication result of the master-slave node communication period is determined to be a communication failure; when there are multiple data judgment periods with incomplete communication data included in a single data judgment process, the expression of the PDR index calculation formula of the communication system is:

[0087] In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment period; m is the number of data judgment periods included in a single data evaluation process; a2 is the number of data judgment periods in which there are x consecutive master-slave node communication cycles with incomplete communication data, that is, in the current data evaluation process, the number of data judgment periods in which all master-slave node communication cycles in a single data judgment period have incomplete communication data.

[0088] For a communication system, a system's Process Data Reliability (PDR) is considered to be 100% if the master and slave nodes complete one full communication cycle within each data judgment period. A single data exchange between the slave and master nodes is typically considered a complete communication cycle. This "complete communication" usually includes the following steps: data request, response reception, data response, and acknowledgment. If, within m data judgment cycles, the master-slave node communication data is incomplete for a² data judgment cycles, the current communication system's PDR is considered to be 1-a² / m.

[0089] In one embodiment, the step of determining that the communication result of the master-slave node communication cycle is a communication failure when the communication data between the master node and any slave node is incomplete within the master-slave node communication cycle further includes: obtaining the communication result of each master-slave node communication cycle within a single data judgment cycle; and determining that the master-slave node communication of the data judgment cycle is a communication failure when the communication result of each master-slave node communication cycle within the data judgment cycle is a communication failure.

[0090] In this embodiment of the application, if the communication result of each master-slave node communication cycle within a single data judgment period is a communication failure (or the communication data is incomplete), the master-slave node communication in the data judgment period is determined to be a failure. Furthermore, for each master-slave node communication cycle within the data judgment period, any failure of the master node with any slave node is considered a master-slave node communication failure for that current cycle.

[0091] Referring to Figure 3, Figure 3 is a schematic diagram of a master-slave node communication method provided in one embodiment of this application. Based on Figure 3, an example of a communication quality assessment method provided in this embodiment of the application is illustrated. The communication system includes one master node and three slave nodes. One data judgment process includes four data judgment cycles, and each data judgment cycle includes three master-slave node communication cycles. The master-slave node communication cycles that fail to communicate are highlighted in red (i.e., the master-slave node communication cycles shown in gray in Figure 3). Based on the communication quality assessment method provided in this embodiment of the application, if slave node 1 experiences communication failures in 2 master-slave node communication cycles and 0 data judgment cycles, then the PS of slave node 1 is 1 - 2 / (4*3) = 83.33%; the PDR of slave node 1 is 1 - 0 / 4 = 100%. If slave node 2 experiences communication failures in 4 master-slave node communication cycles and 1 data judgment cycle, then the PS of slave node 2 is 1 - 4 / (4*3) = 66.67%; the PDR of slave node 2 is 1 - 1 / 4 = 75%. Furthermore, referring to Figure 3, it can be seen that data communication between the master and slave nodes failed in both the second and third data judgment periods. In the second data judgment period, one slave node failed to communicate with the master node in each master-slave communication period; in the third data judgment period, slave node 2 failed to communicate with the master node three times consecutively. Therefore, the PDR of the communication system is 1 - 2 / 4 = 50%. It should be noted that the calculation method illustrated in the above example is based on the assumption that the master and slave nodes must communicate successfully in each master-slave communication period. If based on the traditional data quality assessment scheme, which judges that the master-slave communication is normal as long as the communication data between the master and slave nodes is complete, then the PDR of the communication system is 1 - 1 / 4 = 75%.

[0092] The PS index results of each slave node, the PDR index results, and the PDR index results of the communication system are used as the communication quality assessment results of the master and slave nodes of the communication system in this data judgment process.

[0093] In practical applications, the communication quality assessment method can be applied, for example, to the Battery Management System (BMS) of electric vehicles. The battery pack (PACK) includes individual battery cells and the BMS. The BMS includes a master control unit (BMU) and multiple cell supervisory controllers (CSCs). The master control unit is the master node, and the cell supervisory controllers are the slave nodes. The slave controllers monitor the voltage and temperature information of the individual battery cells and transmit this information to the master control unit via wireless communication. The master control unit executes relevant power output strategies based on the voltage and temperature information of the individual battery cells. Therefore, based on the master-slave node communication quality assessment results, the electric vehicle outputs alarm information, such as a maintenance alarm or a parking alarm. Specifically, if the master control unit and the slave controller communicate successfully, the vehicle can operate normally. If the master control unit and the slave controller fail to communicate, the electric vehicle will issue a voice alarm or send an alarm message to the vehicle screen, so that the driver can accurately detect whether the vehicle has a communication failure. Compared with the prior art, this application improves the accuracy of communication quality assessment, which is conducive to improving the communication success rate and effectively reducing the alarm frequency. This is crucial for ensuring data integrity and system reliability.

[0094] In this embodiment of the application, a communication quality assessment device is also provided, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the above-described communication quality assessment method.

[0095] In this embodiment of the application, a computer-readable storage medium is also provided, which includes a stored computer program, wherein the computer program controls the device where the computer-readable storage medium is located to execute the above-described communication quality assessment method when it is running.

[0096] For example, a computer program may be divided into one or more modules, one or more of which are stored in memory and executed by a processor to complete this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in a communication quality assessment device.

[0097] For example, the computer-readable storage medium is a non-transient computer-readable storage medium.

[0098] The communication quality assessment device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The communication quality assessment device may include, but is not limited to, a processor, memory, and a display. Those skilled in the art will understand that the above components are merely examples of the communication quality assessment device and do not constitute a limitation on the communication quality assessment device. It may include more or fewer components, or a combination of certain components, or different components. For example, the communication quality assessment device may also include input / output devices, network access devices, buses, etc.

[0099] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the communication quality assessment equipment, connecting all parts of the equipment via various interfaces and lines.

[0100] The memory can be used to store computer programs and / or modules. The processor implements various functions of the communication quality assessment device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, at least one application program required for a function (such as sound playback function, text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0101] In this application, the module for assessing communication quality, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. Those skilled in the art can understand and implement this without any inventive effort.

[0102] This application provides a communication quality assessment method that divides the data judgment period into multiple master-slave node communication periods, allowing the acquisition of the latest communication results within a controllable time range. This dynamism allows the system to assess communication quality in real time under different load conditions and network states. By acquiring the communication results of each master-slave node communication period one by one, the system can track and record the communication performance of each master-slave node communication period in real time. This allows problems to be discovered and resolved in a timely manner, preventing problems from being masked during long-term monitoring. Simultaneously using both PS and PDR evaluation metrics can more comprehensively reflect the communication quality between master and slave nodes. PS is only a single success rate indicator and cannot fully assess network performance. PDR supplements the consideration of packet delivery, helping to identify problems such as packet loss or retransmission, and improving the accuracy of communication quality assessment.

[0103] Example 2

[0104] Referring to Figure 4, Figure 4 is a schematic diagram of the modules of a communication quality assessment device provided in one embodiment of this application. This application provides a communication quality assessment device, including: an instruction sending module 201, a period division module 202, an index calculation module 203, and a communication judgment module 204;

[0105] The instruction sending module 201 is used to control the master node to initiate data request instructions to multiple slave nodes in the communication system, so that the slave nodes reply with data response instructions in sequence based on the received data request instructions;

[0106] The cycle division module 202 is used to divide the data judgment cycle into multiple consecutive master-slave node communication cycles based on the communication cycle of a single master-slave node in the communication system; wherein, the communication cycle is the time interval between the slave node and the master node for one data exchange.

[0107] The indicator calculation module 203 is used to obtain the communication results of each master-slave node communication cycle one by one, substitute the communication results into the PS indicator calculation formula and the PDR indicator calculation formula, and generate the PS indicator result and PDR indicator result for each data judgment cycle.

[0108] The communication judgment module 204 is used to generate the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result.

[0109] In one embodiment, the instruction sending module 201 is used to control the master node to initiate a data request instruction to the slave nodes in the communication system, so that the slave nodes sequentially reply with data response instructions based on the received data request instructions. Specifically, this includes: pre-setting the response order of the slave nodes replying to the data request instructions in the communication system; controlling the master node to cyclically initiate data request instructions in the communication system; wherein, the cyclical nature means initiating the data request instruction once every master-slave node communication cycle; and controlling the slave nodes in the communication system to sequentially reply with data response instructions according to the pre-set number of responses.

[0110] In one embodiment, the communication results of each slave node in each master-slave node communication cycle are obtained one by one. These communication results are then substituted into the PS (Power Score) and PDR (Power Demand) metric calculation formulas to generate the PS and PDR metric results for each slave node. Specifically, this includes: obtaining the communication results of each slave node in each master-slave node communication cycle during a single data evaluation process; wherein the data evaluation process includes multiple data judgment cycles; when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment cycle, the expressions for the PS and PDR metric calculation formulas are: PDR i =100%;

[0111] In the formula, PS i The PS metric result for node i; PDR i denoted as PDR index result for slave node i; i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

[0112] In one embodiment, when it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the method further includes: determining whether there are consecutive master-slave node communication cycles with communication failures within each data judgment period; when the number of consecutive master-slave node communication cycles with communication failures within the data judgment period reaches a preset number, the expressions of the PS index calculation formula and the PDR index calculation formula are updated as follows:

[0113] In the formula, i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave node communication cycle during the current data evaluation process; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; and a1 is the number of data judgment cycles with x consecutive master-slave node communication failures.

[0114] In one embodiment, generating the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result specifically includes: if there is a complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%; when the communication data between the master node and any slave node is incomplete within the master-slave node communication period, the communication result of the master-slave node communication period is determined to be a communication failure; when there are multiple data judgment periods with incomplete communication data included in a single data evaluation process, the expression of the PDR index calculation formula of the communication system is:

[0115] In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a2 is the number of data judgment cycles in which there are x consecutive master-slave node communication cycles with incomplete communication data.

[0116] In one embodiment, the step of determining that the communication result of the master-slave node communication cycle is a communication failure when the communication data between the master node and any slave node is incomplete within the master-slave node communication cycle further includes: obtaining the communication result of each master-slave node communication cycle within a single data judgment cycle; and determining that the master-slave node communication of the data judgment cycle is a communication failure when the communication result of each master-slave node communication cycle within the data judgment cycle is a communication failure.

[0117] In the embodiments of this application, the instruction sending module 201, the period division module 202, the index calculation module 203, and the communication judgment module 204 can each be one or more processors, controllers, or chips with communication interfaces capable of implementing communication protocols. If necessary, they may also include memory and related interfaces, system transmission buses, etc. The processor, controller, or chip executes program-related code to implement the corresponding functions. Alternatively, an alternative approach is that the instruction sending module 201, the period division module 202, the index calculation module 203, and the communication judgment module 204 share an integrated chip or share a processor, controller, memory, or other devices. The shared processor, controller, or chip executes program-related code to implement the corresponding functions.

[0118] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0119] This application provides a communication quality assessment device that divides the data judgment period into multiple master-slave node communication periods, allowing the acquisition of the latest communication results within a controllable time range. This dynamism allows the system to assess communication quality in real time under different load conditions and network states. By acquiring the communication results of each communication period one by one, the system can track and record the communication performance of each period in real time. This allows problems to be discovered and resolved in a timely manner, preventing problems from being masked during long-term monitoring. Simultaneously using both PS and PDR evaluation metrics can more comprehensively reflect the communication quality between master and slave nodes. PS is only a single success rate indicator and cannot fully assess network performance. PDR supplements the consideration of packet delivery, helping to identify problems such as packet loss or retransmission, and improving the accuracy of communication quality assessment.

[0120] The above are merely preferred embodiments of this application. It should be noted that, for those skilled in the art, several improvements and substitutions can be made without departing from the technical principles of this application, and these improvements and substitutions should also be considered within the scope of protection of this application.

Claims

1. A communication quality assessment method, wherein, include: The master node is controlled to send data request commands to multiple slave nodes in the communication system, so that the slave nodes sequentially reply with data response commands based on the received data request commands; The data judgment period is divided into multiple consecutive master-slave node communication periods based on a single master-slave node communication cycle in the communication system; wherein, the master-slave node communication cycle is the time interval between one data exchange between the slave node and the master node. The communication results of each slave node in each master-slave communication cycle are obtained one by one. The communication results are then substituted into the PS index calculation formula and the PDR index calculation formula to generate the PS index result and PDR index result for each slave node. The master-slave node communication quality assessment results of the communication system are generated based on the PS index results and the PDR index results.

2. The communication quality assessment method as described in claim 1, wherein, The master node initiates a data request command to the slave nodes in the communication system, so that the slave nodes sequentially reply with data response commands based on the received data request command, including: The response order of the slave nodes replying to the data request command is pre-set in the communication system; The master node is controlled to cyclically initiate data request commands in the communication system; wherein, controlling the master node to cyclically initiate data request commands in the communication system means controlling the master node to initiate the data request command once every master-slave node communication cycle; The system controls the slave nodes within the communication system to sequentially reply with data response commands according to the pre-set response order.

3. The communication quality assessment method as described in claim 1, wherein, The process of acquiring the communication results of each slave node in each master-slave node communication cycle, substituting these results into the PS and PDR metric calculation formulas, and generating the PS and PDR metric results for each slave node includes: The communication results of each slave node in each master-slave node communication cycle are obtained during a single data evaluation process; wherein, the data evaluation process includes multiple data judgment cycles; When it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the PS index result and PDR index result for each slave node are generated using the following PS index calculation formula and PDR index calculation formula: PDR i =100%; In the formula, PS i The PS metric result for node i; PDR i denoted as PDR index result for slave node i; i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave communication cycle during the current data evaluation process; x is the number of master-slave communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

4. The communication quality assessment method as described in claim 3, wherein, When it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the method further includes: Determine whether there is a continuous communication failure cycle between master and slave nodes within each of the data judgment cycles; When the number of consecutive communication failures between master and slave nodes within the data judgment period reaches a preset number, the expressions for the PS index calculation formula and the PDR index calculation formula are updated as follows: In the formula, i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave node communication cycle during the current data evaluation process; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; and a1 is the number of data judgment cycles with x consecutive master-slave node communication failures.

5. The communication quality assessment method as described in claim 1, wherein, The process of generating the master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result includes: If there is one complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%. If the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle, the communication result of the master-slave node communication cycle is determined to be a communication failure. When a single data evaluation process includes multiple data judgment periods with incomplete communication data, the current PDR index result of the communication system is generated using the following PDR index calculation formula: In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a2 is the number of data judgment cycles in which there are x consecutive master-slave node communication cycles with incomplete communication data.

6. The communication quality assessment method as described in claim 5, wherein, The provision that when the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle, the communication result of the master-slave node communication cycle is determined to be a communication failure, further includes: Obtain the communication results of each master-slave node communication cycle within a single data judgment cycle; If the communication result of each master-slave node communication cycle within the data judgment period is a communication failure, then the master-slave node communication in the data judgment period is determined to be a failure.

7. A communication quality assessment device, wherein, include: The module consists of an instruction sending module, a period division module, an indicator calculation module, and a communication judgment module. The instruction sending module is used to control the master node to initiate data request instructions to multiple slave nodes in the communication system, so that the slave nodes reply with data response instructions in sequence based on the received data request instructions; The cycle division module is used to divide the data judgment cycle into multiple consecutive master-slave node communication cycles based on the communication cycle of a single master-slave node in the communication system; wherein, the communication cycle is the time interval between one data exchange between the slave node and the master node. The indicator calculation module is used to obtain the communication results of each master-slave node communication cycle one by one, substitute the communication results into the PS indicator calculation formula and the PDR indicator calculation formula, and generate the PS indicator result and PDR indicator result for each data judgment cycle. The communication judgment module is used to generate a master-slave node communication quality assessment result of the communication system based on the PS index result and the PDR index result.

8. The communication quality assessment device as described in claim 7, wherein, The instruction sending module is used to control the master node to initiate data request instructions to the slave nodes in the communication system, so that the slave nodes sequentially reply with data response instructions based on the received data request instructions, including: The response order of the slave nodes replying to the data request command is pre-set in the communication system; The master node is controlled to cyclically initiate data request commands in the communication system; wherein, the cyclical nature means that the data request command is initiated once every master-slave node communication cycle; The system controls the slave nodes within the communication system to sequentially reply with data response commands according to the pre-set number of responses.

9. A communication quality assessment device as described in claim 7, wherein, The indicator calculation module is configured as follows: The communication results of each slave node in each master-slave node communication cycle are obtained during a single data evaluation process; wherein, the data evaluation process includes multiple data judgment cycles; When it is detected that the slave node has multiple master-slave node communication cycles with communication failures within the data judgment period, the PS index result and PDR index result for each slave node are generated using the following PS index calculation formula and PDR index calculation formula: PDR i =100%; In the formula, PS i The PS metric result for node i; PDR i denoted as PDR index result for slave node i; i is any slave node in the communication system; n is the number of communication failures in the master-slave node communication cycle of slave node i during the current data evaluation process; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process.

10. A communication quality assessment device as described in claim 9, wherein, The indicator calculation module is configured as follows: Determine whether there is a continuous communication failure cycle between master and slave nodes within each of the data judgment cycles; When the number of consecutive communication failures between master and slave nodes within the data judgment period reaches a preset number, the expressions for the PS index calculation formula and the PDR index calculation formula are updated as follows: In the formula, i is any slave node in the communication system; n is the number of communication failures of slave node i in the master-slave node communication cycle during the current data evaluation process; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; and a1 is the number of data judgment cycles with x consecutive master-slave node communication failures.

11. The communication quality assessment device as described in claim 7, wherein, The communication determination module is configured as follows: If there is one complete data exchange between the master node and each of the slave nodes within the current data judgment period, then the current PDR index result of the communication system is determined to be 100%. If the communication data between the master node and any slave node is incomplete during the master-slave node communication cycle, the communication result of the master-slave node communication cycle is determined to be a communication failure. When a single data evaluation process includes multiple data judgment periods with incomplete communication data, the current PDR index result of the communication system is generated using the following PDR index calculation formula: In the formula, PDR is the current PDR index result of the communication system; x is the number of master-slave node communication cycles included in a single data judgment cycle; m is the number of data judgment cycles included in a single data evaluation process; a2 is the number of data judgment cycles in which there are x consecutive master-slave node communication cycles with incomplete communication data.

12. The communication quality assessment device as described in claim 11, wherein, The communication determination module is configured as follows: Obtain the communication results of each master-slave node communication cycle within a single data judgment cycle; If the communication result of each master-slave node communication cycle within the data judgment period is a communication failure, then the master-slave node communication in the data judgment period is determined to be a failure.

13. The communication quality assessment device as described in claim 8, wherein the response order is determined by any one of the following mechanisms: polling mechanism, priority mechanism, request-response mechanism, and timestamp mechanism.

14. A terminal device, wherein, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the communication quality assessment method as described in any one of claims 1 to 6.

15. A computer-readable storage medium, wherein, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the communication quality assessment method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data transmission method and device, electronic equipment and computer readable storage medium

    CN114760240A

  • Communication quality assessment method and device, terminal equipment and storage medium

    CN119420672A

  • Computer system, center device, terminal, and communication control method

    JP2015220712A

  • Network path performance measurements by utilizing multi-layer tunneling techniques

    US20240340234A1