A method, device, equipment and medium for measuring the stability of a communication system

Communication stability measurement is carried out through a microcontroller, and the preset mode and jump judgment conditions are used to mark the complete communication channel and determine the stability parameters. This solves the problems of high cost and low response frequency in the prior art, and realizes a low-cost and efficient communication system stability evaluation.

CN120090952BActive Publication Date: 2025-07-22SHENZHEN HUAMAO AOTE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510574643.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-06
Publication Date
2025-07-22
Estimated Expiration
2045-05-06

AI Technical Summary

Technical Problem

The existing communication stability measurement methods rely on PLC, which are costly and wasteful, and are not suitable for simple test scenarios, have low response frequency, and are difficult to support high-speed communication testing. The system structure is complex and the test feedback is not intuitive enough.

Method used

The communication stability measurement is performed by a microcontroller. By obtaining the jump determination conditions of the preset mode, sending the input pulse signal and obtaining the output and feedback pulse information, determining whether the channel meets the jump determination conditions based on the number of feedback pulses, it is marked as a complete communication channel, determining the communication stability parameters, and combining the communication threshold value to output the system stability results.

Benefits of technology

It reduces the cost of stability measurement of communication systems, improves measurement accuracy and visual evaluation capabilities, meets industrial communication needs, and realizes stability visual evaluation and abnormal warning of communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090952B_ABST
    Figure CN120090952B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communication test technologies, and in particular, to a method, device, equipment and medium for measuring the stability of a communication system. The method includes obtaining a preset mode and a jump determination condition corresponding to the preset mode; according to the preset mode, sending an input pulse signal to a communication channel of the communication system with initialization parameters, and obtaining an output pulse signal, a feedback pulse signal and the number of feedback pulses of the communication channel; based on the number of feedback pulses, determining whether the communication channel meets the jump determination condition; if the communication channel meets the jump determination condition, marking the communication channel as a complete communication channel; based on the marked complete communication channel, determining a communication stability parameter according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal; and determining a stability result of the communication system according to the channel stability parameter and a communication threshold. The present application has the effect of being able to reduce the measurement cost of the stability of the communication system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication testing technologies, and in particular, to a method, device, equipment and medium for measuring the stability of a communication system. Background Art

[0002] The stability measurement of a communication system is mainly used to evaluate whether the communication line in an industrial control system has a reliable bidirectional transmission ability, and is often applied to scenarios such as industrial control buses, distributed IOs, and remote sensor nodes to ensure that control instructions and feedback signals can accurately and efficiently travel back and forth in a complex network structure.

[0003] Existing communication stability measurement methods usually rely on a programmable logic controller (PLC) as the control core, output a preset number of square wave pulse signals to the communication system through the PLC, and count the number of feedback pulses returned by the communication system to judge whether the communication link is stable based on the pulse consistency.

[0004] However, the above solutions have the following problems: First, the PLC has a high cost and a large waste of resources, and is not suitable for simple test scenarios; second, the response frequency is low, and it is difficult to support high-speed communication testing; third, it relies on an additional communication module and a host computer, the system structure is complex, and the test feedback is not intuitive enough. Based on this, how to reduce the measurement cost of the communication system stability is a technical problem to be solved urgently. Summary of the Invention

[0005] Embodiments of the present application provide a method, device, equipment and medium for measuring the stability of a communication system, which can achieve the beneficial effect of reducing the measurement cost of the communication system stability.

[0006] The first aspect of the present application provides a method for measuring the stability of a communication system, and the method includes:

[0007] Obtain a preset mode and a jump determination condition corresponding to the preset mode;

[0008] According to the preset mode, send an input pulse signal to the communication channel of the communication system with initialization parameters, and obtain the output pulse signal, feedback pulse signal and number of feedback pulses of the communication channel;

[0009] Based on the number of feedback pulses, judge whether the communication channel meets the jump determination condition; if the communication channel meets the jump determination condition, mark the communication channel as a complete communication channel;

[0010] Based on the marked complete communication channel, determine a communication stability parameter according to the parameter corresponding to the output pulse signal and the parameter corresponding to the feedback pulse signal;

[0011] Determine the stability result of the communication system according to the channel stability parameter and the communication threshold.

[0012] By adopting the above technical solution, by obtaining the preset mode and the corresponding jump determination condition of the mode, the consistency and accuracy of the subsequent judgment criteria are ensured, thereby improving the reliability of the effective identification of the communication channel. By sending an input pulse signal to the communication channel according to the preset mode and obtaining the output and feedback pulse information, and then judging whether the channel meets the jump determination condition based on the number of feedback pulses and marking it as a complete communication channel, the channels with missing or invalid responses can be effectively filtered out, so as to ensure that the subsequent stability analysis is based on high-quality samples and improve the measurement accuracy. By determining the communication stability parameter according to the output parameter and the feedback parameter of the complete communication channel and combining the communication threshold to obtain the system stability result, the complex channel response characteristics can be quantified into a decidable result, so as to realize the visual evaluation and abnormal warning of the communication system stability. And in this solution, a single-chip microcomputer is used for testing. Usually, the data processing speed of the single-chip microcomputer can reach the microsecond level, which can meet the requirements of industrial communication. At the same time, compared with other measurement methods (such as PLC), the cost of the single-chip microcomputer is lower. Based on this, the beneficial effect of reducing the measurement cost of the communication system stability can be achieved.

[0013] Optionally, the determining the communication stability parameter according to the parameter corresponding to the output pulse signal and the parameter corresponding to the feedback pulse signal specifically includes:

[0014] Determine the pulse response time difference sequence of the complete communication channel according to the parameter corresponding to the output pulse signal and the parameter corresponding to the feedback pulse signal;

[0015] Based on the pulse response time difference sequence, determine the communication stability parameter of each complete communication channel.

[0016] By adopting the above technical solution, by extracting the pulse response time difference sequence of the complete communication channel according to the parameter corresponding to the output pulse signal and the parameter corresponding to the feedback pulse signal, a time relationship model between input and output during the communication process can be constructed, so as to truly reflect the response consistency and delay characteristics of each channel during the data round-trip process. Furthermore, by further determining the communication stability parameter of each channel based on this time difference sequence, representative indicators can be extracted while retaining the dynamic characteristics of the channel, thereby improving the quantifiable degree of the communication system stability evaluation and providing data for the subsequent communication system stability analysis.

[0017] Optionally, the communication stability parameters include the average communication delay, the maximum communication delay, and the communication delay variance. The average communication delay is calculated using the arithmetic mean formula based on the pulse response time difference sequence. The maximum communication delay is the largest delay time value in the pulse response time difference sequence. The communication delay variance is calculated using the variance formula based on the pulse response time difference sequence.

[0018] By adopting the above technical solution, defining the communication stability parameters as the average, maximum, and variance of the communication delay enables a comprehensive evaluation of the channel state from three dimensions: the average level, extreme response, and response fluctuation, thus more comprehensively reflecting the stability of the communication system.

[0019] Optionally, determining the stability result of the communication system according to the channel stability parameters and the communication threshold specifically includes:

[0020] Judging whether the channel stability parameters of each complete communication channel meet the communication stability conditions; if there is any maximum communication delay and / or communication delay variance greater than the parameter corresponding to the communication threshold, then mark the complete communication channel as an abnormal communication channel;

[0021] Based on the communication channel marking result, and according to the abnormal channel proportion relationship between the number of abnormal communication channels and the total number of communication channels, generate the stability result of the communication system.

[0022] By adopting the above technical solution, by judging whether the channel stability parameters of the complete communication channel meet the communication stability conditions and marking abnormal channels accordingly, it is possible to independently identify whether there are obvious jitters or delay anomalies in each channel, thereby improving the positioning granularity and repair efficiency of communication anomalies. And by generating the system stability result based on the proportion relationship between the number of abnormal channels and the total number of channels, it is possible to summarize the local communication status into a system-level judgment, convert the measurement results of multiple channels into a unified systematic index, thus providing a clear grading basis for judging the stable state of the overall communication system.

[0023] Optionally, generating the stability result of the communication system according to the abnormal channel proportion relationship between the number of abnormal communication channels and the total number of communication channels specifically includes:

[0024] If the abnormal channel proportion is lower than the first threshold, determine that the stability result of the communication system is stable;

[0025] If the abnormal channel proportion is greater than the first threshold and less than the second threshold, determine that the stability result of the communication system is sub-stable;

[0026] If the proportion of the abnormal channels is greater than the second threshold, determine that the stability result of the communication system is unstable.

[0027] By adopting the above technical solution, by setting multiple stability thresholds for the proportion of abnormal channels, it is possible to output stable, metastable or unstable stability results according to the degree of channel abnormality, thereby improving the recognition sensitivity of the operating state of the communication system.

[0028] Optionally, the method further includes:

[0029] Calculate the mean difference in communication delays between any two of the complete communication channels according to the mean communication delay of each complete communication channel;

[0030] If there is a mean difference in communication delays greater than the parameter corresponding to the communication threshold, determine that the communication system is in an abnormal state of inconsistent path performance.

[0031] By adopting the above technical solution, by comparing the mean communication delays between complete communication channels pairwise and calculating the mean difference, it is possible to quantify the synchronization deviation between different channels, thereby revealing the problem of inconsistent communication path performance, and thus ensuring the communication coordination and stability of the communication system.

[0032] The second aspect of the present application provides a stability measurement device for a communication system, including:

[0033] A mode configuration module for obtaining a preset mode and a jump determination condition corresponding to the preset mode;

[0034] A pulse sending and feedback acquisition module for sending an input pulse signal to the communication channels of the communication system with initialization parameters according to the preset mode, and obtaining the output pulse signal, feedback pulse signal and feedback pulse count of the communication channels;

[0035] A validity judgment module for judging whether the communication channels meet the jump determination condition based on the feedback pulse count; if the communication channels meet the jump determination condition, mark the communication channels as complete communication channels;

[0036] A stability parameter extraction module for determining communication stability parameters based on the marked complete communication channels according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal;

[0037] A stability result generation module for determining the stability result of the communication system according to the channel stability parameters and the communication threshold.

[0038] A third aspect of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that can be loaded and executed by the processor to perform the stability measurement method of the communication system described above.

[0039] A fourth aspect of the present application provides a storage medium storing a computer program that can be loaded and executed by a processor to perform the stability measurement method of the communication system described above.

[0040] In summary, the present application includes at least one of the following beneficial technical effects:

[0041] 1. By obtaining a preset mode and the corresponding jump determination condition for this mode, the consistency and accuracy of subsequent judgment criteria are ensured, thereby improving the reliability of identifying the effectiveness of the communication channel. By sending an input pulse signal to the communication channel according to the preset mode and obtaining the output and feedback pulse information, and then judging whether the channel meets the jump determination condition based on the number of feedback pulses and marking it as a complete communication channel, channels with missing or invalid responses can be effectively filtered out, ensuring that subsequent stability analysis is based on high-quality samples and improving the measurement accuracy. By determining the communication stability parameter according to the output parameter and feedback parameter of the complete communication channel and combining the communication threshold to obtain the system stability result, the complex channel response characteristics can be quantified into a decidable result, thus realizing the visual evaluation of the communication system stability and abnormal warning. And in this solution, a single-chip microcomputer is used for testing. Usually, the data processing speed of the single-chip microcomputer can reach the microsecond level, which can meet the requirements of industrial communication. At the same time, compared with other measurement methods (such as PLC), the cost of the single-chip microcomputer is lower. Based on this, the beneficial effect of reducing the measurement cost of the communication system stability can be achieved;

[0042] 2. Defining the communication stability parameter as the mean, maximum value, and variance of the communication delay can comprehensively evaluate the channel state from three dimensions: the average level, extreme response, and response fluctuation, thus more comprehensively reflecting the stability status of the communication system. Description of the Drawings

[0043] Figure 1 is the implementation flowchart of the stability measurement method of the communication system provided by the embodiment of the present application;

[0044] Figure 2 is the implementation flowchart of step S40 in the stability measurement method of the communication system provided by the embodiment of the present application;

[0045] Figure 3 is the implementation flowchart of step S50 in the stability measurement method of the communication system provided by the embodiment of the present application;

[0046] Figure 4 is the implementation flowchart of step S52 in the stability measurement method of the communication system provided by the embodiment of the present application;

[0047] Figure 5 It is another implementation flowchart in the stability measurement method of the communication system provided by the embodiments of the present application;

[0048] Figure 6 It is a principle block diagram of a stability measurement device for a communication system in an embodiment of the present application;

[0049] Figure 7 It is a schematic internal structure diagram of an electronic device in an embodiment of the present application. Detailed implementation manners

[0050] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular forms "a", "an", "the", "above", "said", "this" are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more of the listed items.

[0051] Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more. The following further describes the present application in detail with reference to the accompanying drawings.

[0052] Please refer to Figure 1 , Figure 1 which is an implementation flowchart of the stability measurement method of the communication system provided by the embodiments of the present application, and specifically includes the following steps:

[0053] S10: Obtain a preset mode and a jump determination condition corresponding to the preset mode.

[0054] Specifically, the preset mode can be adjusted or controlled by relevant personnel through methods such as pressing buttons, audio, and communication via associated communication devices. The preset mode includes at least one parameter for defining the characteristics of the pulse signal, including but not limited to the number of communication channels, the number of test pulses for each channel, the maximum allowable feedback delay, the delay variance threshold, the inter-channel difference threshold. It also includes the adjustment method and direction related to the signal adjustment process, as well as the initial parameter values of the adjustment process. These parameters are used as the initialization parameters for the global test task and the jump determination conditions corresponding to this mode. The jump determination conditions include the recognition window size of the feedback pulse, the minimum response quantity or ratio threshold, the requirements for the signal jump amplitude or polarity direction, etc. These jump determination conditions are used to determine whether the received feedback meets the effective response standard during the test process. For example, it can be determined whether each communication channel meets the jump determination conditions by judging the number of feedback pulses received by the communication channel and the set number of test pulses.

[0055] S20: According to the preset mode, send an input pulse signal to the communication channels of the communication system with the initialization parameters, and obtain the output pulse signal, feedback pulse signal, and the number of feedback pulses of the communication channels.

[0056] Specifically, construct a set of standard test pulse sequences as the input pulse signal according to the preset mode, with a set frequency, pulse width, and duty cycle. Send multiple standard test pulse signals to the communication system regularly through the output port of the single-chip microcomputer. After each channel sends the pulse signal, record the corresponding output pulse response, that is, the output pulse signal, through the acquisition module, and monitor the signal jump of the returned signal detected from the communication channel within each test cycle, that is, the feedback pulse signal, and count the number of feedback jumps. Record the number of all valid feedback pulses to form the number of feedback pulses. For example, when 10 pulses are continuously sent to a communication channel but only 7 feedback pulses are received, the number of feedback pulses of this channel is 7.

[0057] S30: Based on the number of feedback pulses, determine whether the communication channel meets the jump determination conditions. If the communication channel meets the jump determination conditions, mark the communication channel as a complete communication channel.

[0058] Specifically, the number of feedback pulses counted for each communication channel is compared with the corresponding jump determination condition in the preset mode. According to the response quantity requirement set in the determination condition, it is judged whether the feedback of this channel reaches the minimum effective response requirement. Additionally, it is also possible to combine the jump direction, feedback window time, and feedback signal amplitude to judge whether it meets the jump validity standard. If the number of feedback pulses of this communication channel reaches the set threshold within the specified time and meets the jump judgment rule, then this channel is marked as a complete communication channel that can continue to participate in subsequent analysis. For example, the feedback quantity needs to be not less than 80% of the input pulse quantity and the jump must be a rising edge to be marked as a complete communication channel. If the communication channel does not meet the jump determination condition, then according to the preset mode, including processes such as adjusting the test pulse frequency, pulse width, or jump response window range in the initialization parameters, and resending the test pulse signal, the jump determination process is repeated until the jump determination condition is met or the preset maximum adjustment round is reached.

[0059] S40: Based on the marked complete communication channels, determine the communication stability parameters according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal.

[0060] Specifically, for each complete communication channel, the characteristics such as the timestamps and amplitudes of the output pulse signal and the feedback pulse signal are compared in sequence. By correlating the time information of the output pulse with the arrival time or sequence information of the feedback pulse, the response time difference between each pair of pulses is calculated, and the data parameters used to characterize the communication response characteristics are calculated based on the corresponding time difference as the communication stability parameters. The communication stability parameters are used to reflect the response consistency and jitter of this channel within the test period. For example, when the maximum value in a sequence of pulse response time differences is much higher than the average value, it can indicate that there is a delay peak mutation phenomenon in this channel.

[0061] S50: Determine the stability result of the communication system according to the channel stability parameters and the communication threshold.

[0062] Specifically, by comparing the channel stability parameters extracted from each complete communication channel with the upper and lower limits of the indicators in the communication threshold, it is judged whether the current channel meets the stability requirements. After all channels are evaluated, the stability of the communication system is comprehensively determined according to the compliance situation and marking results of the overall channels. The stability result can include stable, metastable, or unstable, etc., and is output together with the original analysis parameters to the HMI interface for testers to record and manage.

[0063] Based on the above embodiments, as an alternative embodiment, as Figure 2 shown, in step S40, that is, determine the communication stability parameters according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal, specifically including:

[0064] S41: Determine the pulse response time difference sequence of the complete communication channel according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal.

[0065] Specifically, for each channel marked as a complete communication channel, sequentially extract the output timestamps in the output pulse signal corresponding to the complete communication channel and the reception timestamps in the corresponding feedback pulse signal , and calculate the response time difference between the output timestamp and the reception timestamp , where , i is the pulse number, and all calculation results are arranged in pulse order to form a pulse response time difference sequence { }}, and the pulse response time difference sequence is used to reflect the response delay fluctuation of this channel during the entire test period. For example, if the response time differences obtained after inputting the 1st to 10th pulses are 12ms, 11ms, 13ms, etc., then a pulse response time difference sequence with a length of 10 is formed.

[0066] S42: Determine the communication stability parameter of each complete communication channel based on the pulse response time difference sequence.

[0067] Specifically, perform statistical processing based on the pulse response time difference sequence, calculate index data such as the average value and variance of the pulse response time difference sequence, and use these index data as the stability evaluation parameters of the communication channel, that is, the communication stability parameters. The communication stability parameters are used to reflect the response consistency and jitter of this channel during the test period. For example, when the maximum value in a group of pulse response time difference sequences is much higher than the average value, it can indicate that there is a sudden change in the delay peak in this channel.

[0068] Based on the above embodiments, as an optional embodiment, the communication stability parameters include the mean communication delay, the maximum communication delay, and the variance of communication delay. The mean communication delay is calculated based on the pulse response time difference sequence using the arithmetic mean formula. The maximum communication delay is the maximum delay time value in the pulse response time difference sequence. The variance of communication delay is calculated based on the pulse response time difference sequence using the variance formula.

[0069] Specifically, in each communication channel, the communication stability parameters include the mean communication delay, the maximum communication delay, and the variance of communication delay. The mean communication delay is obtained by adding up all the time differences and dividing by the total number of responses to get the average response time, that is, it can be obtained through the formula , where is the mean communication delay, is the pulse response time difference corresponding to the i-th pulse. The maximum communication delay is the largest value among all pulse response time differences. The communication delay variance is the sum of the squared deviations of each time difference from the mean divided by the number of responses. That is, it can be calculated through the formula , and these three pieces of data together constitute the basic parameters for evaluating the stability of the communication channel. For example, when the time differences of a channel in 10 tests are 12ms, 13ms, 11ms, etc., the mean is 12ms, the maximum value is 13ms, and the variance is calculated through the standard formula.

[0070] Based on the above embodiments, as an alternative embodiment, as Figure 3 shown, in step S50, that is, according to the channel stability parameters and communication thresholds, determine the stability result of the communication system, which specifically includes:

[0071] S51: Determine whether the channel stability parameters of each complete communication channel meet the communication stability conditions; if there is any maximum communication delay and / or communication delay variance greater than the parameters corresponding to the communication threshold, mark the complete communication channel as an abnormal communication channel.

[0072] Specifically, compare the calculated communication stability parameters of each complete communication channel with the preset threshold. When the maximum communication delay exceeds the maximum allowable delay, or the communication delay variance is higher than the stability jitter tolerance, it is considered that there is an abnormality in the stability of the channel, and the channel is marked as an abnormal communication channel and is no longer used as a highly reliable communication path. For example, if the maximum delay of a certain channel exceeds 50ms and the fluctuation is greater than the set tolerance, an abnormal mark will be triggered and the corresponding channel will be marked as an abnormal communication channel.

[0073] S52: Based on the communication channel marking results, and according to the abnormal channel ratio relationship between the number of abnormal communication channels and the total number of communication channels, generate the stability result of the communication system.

[0074] Specifically, count the number of communication channels marked as abnormal and the number of all complete communication channels participating in the test, calculate their ratio value as the abnormal channel ratio, and use this ratio as the judgment criterion to determine the stable level of the current overall state of the communication system. For example, when the abnormal channel ratio is 3 / 20, that is, 15%, it can be judged whether the system enters the metastable state or still maintains stability according to the preset threshold.

[0075] Based on the above embodiments, as an alternative embodiment, as Figure 4 shown, in step S52, that is, according to the abnormal channel ratio relationship between the number of abnormal communication channels and the total number of communication channels, generate the stability result of the communication system, which specifically includes:

[0076] S521: If the proportion of abnormal channels is lower than the first threshold, determine that the stability result of the communication system is stable.

[0077] Specifically, compare the calculated proportion of abnormal channels with the set first threshold. When the proportion of abnormal channels is lower than the first threshold, it is determined that most communication channels are in a stable state and the overall operation of the communication system is stable. This result can be used to maintain the current operation strategy or not trigger an alarm. For example, if the first threshold is set to 10%, it is determined to be in a stable state on the premise that the abnormal channels do not exceed 10%.

[0078] S522: If the proportion of abnormal channels is greater than the first threshold and less than the second threshold, determine that the stability result of the communication system is sub-stable.

[0079] Specifically, when the proportion of abnormal channels is between the first threshold and the second threshold, there are partial fluctuations in the system stability but it has not reached a severely unstable state. At this time, a warning prompt can be triggered or preprocessing for communication strategy switching can be performed. For example, if the first threshold is 10% and the second threshold is 30%, when the proportion of abnormal channels is 20%, it is determined to be in a sub-stable state and the user is prompted to conduct a check.

[0080] S523: If the proportion of abnormal channels is greater than the second threshold, determine that the stability result of the communication system is unstable.

[0081] Specifically, when the proportion of the number of abnormal channels exceeds the second threshold, it is determined that the communication system is in an unstable state, and there may be problems such as large-area response anomalies or path failures. It is necessary to immediately take measures such as reconstructing the communication path, switching the network topology, or triggering the fault recovery mechanism. For example, when the abnormal channels exceed 30% of all channels, the stability result indicating that the communication system is unstable will be immediately output, and at the same time, an error response flag can be triggered to interrupt the current task process or guide the tester to conduct system verification and fault troubleshooting to prevent the system from continuing to run in a communication unstable state.

[0082] Based on the above embodiments, as an optional embodiment, as Figure 5 shown, the method further includes:

[0083] S501: Calculate the mean difference in communication delays between any two complete communication channels according to the mean communication delay of each complete communication channel.

[0084] Specifically, extract the mean communication delays of all complete communication channels, and perform difference calculations by combining them pairwise in turn, so as to obtain the mean difference in communication delays. , record the absolute value of the difference and compare it with the communication threshold of the preset channel. This difference reflects the synchronization degree of the response speed between the two channels. For example, the average delay of channel A, that is, the average value of the communication delay, is 11 ms, and the average value of the communication delay of channel B is 16 ms. Then the average difference of the communication delays between channel A and channel B is 5 ms.

[0085] S502: If there is a parameter where the average difference of communication delays is greater than the communication threshold, it is determined that the communication system is in an abnormal state of inconsistent path performance.

[0086] Specifically, when the average difference of communication delays between any two complete communication channels exceeds the channel consistency threshold in the communication threshold, it can be considered that there is a performance deviation between the communication paths. This deviation may be due to differences in physical wiring length, communication load, or relay forwarding delay, which affects the timing consistency of the overall synchronization control. Therefore, the flag information of inconsistent path performance is output, it is determined that the communication system is in an abnormal state of inconsistent path performance, and it is uploaded to the upper platform or cloud server through the serial port, Ethernet, or wireless communication module, facilitating visual analysis and early warning response by the remote maintenance system. At the same time, it can be automatically classified and output as a stable channel list, an abnormal channel list, and a list of paths that need to be monitored key points according to different scenarios for the dispatching system to call or for manual review.

[0087] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0088] In an embodiment, a stability measurement device for a communication system is provided. The stability measurement device of the communication system corresponds one-to-one with the stability measurement method of the communication system in the above embodiment. As Figure 6 shown, the stability measurement device of the communication system includes a mode configuration module, a pulse sending and feedback acquisition module, a validity judgment module, a stability parameter extraction module, and a stability result generation module. The detailed description of each functional module is as follows:

[0089] The mode configuration module is used to obtain the preset mode and the jump judgment condition corresponding to the preset mode;

[0090] The pulse sending and feedback acquisition module is used to send an input pulse signal to the communication channel of the communication system according to the preset mode with initialization parameters, and obtain the output pulse signal, feedback pulse signal, and feedback pulse quantity of the communication channel;

[0091] The validity judgment module is used to judge whether the communication channel meets the jump judgment condition based on the feedback pulse quantity; if the communication channel meets the jump judgment condition, the communication channel is marked as a complete communication channel;

[0092] A stability parameter extraction module, configured to determine communication stability parameters based on a marked complete communication channel according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal;

[0093] A stability result generation module, configured to determine the stability result of the communication system according to the channel stability parameters and the communication threshold.

[0094] For the specific limitations of the stability measurement device of the communication system, reference can be made to the limitations of the stability measurement method of the communication system in the above text, which will not be elaborated here. Each module in the above stability measurement device of the communication system can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above modules.

[0095] In one embodiment, an electronic device is provided. The electronic device can be a server, and its internal structure diagram can be as Figure 7 shown. The electronic device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data information such as jump determination conditions, input pulse signals, and communication stability parameters. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for measuring the stability of a communication system.

[0096] In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0097] Obtain a preset mode and the jump determination conditions corresponding to the preset mode;

[0098] According to the preset mode, send an input pulse signal to the communication channel of the communication system with initialization parameters, and obtain the output pulse signal, feedback pulse signal, and the number of feedback pulses of the communication channel;

[0099] Based on the number of feedback pulses, determine whether the communication channel meets the jump determination conditions; if the communication channel meets the jump determination conditions, mark the communication channel as a complete communication channel;

[0100] Based on the labeled complete communication channel, determine the communication stability parameter according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal;

[0101] Determine the stability result of the communication system according to the channel stability parameter and the communication threshold.

[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0103] Obtain the preset mode and the jump determination condition corresponding to the preset mode;

[0104] According to the preset mode, send an input pulse signal to the communication channel of the communication system with the initialization parameter, and obtain the output pulse signal, the feedback pulse signal and the number of feedback pulses of the communication channel;

[0105] Based on the number of feedback pulses, determine whether the communication channel meets the jump determination condition; if the communication channel meets the jump determination condition, mark the communication channel as a complete communication channel;

[0106] Based on the labeled complete communication channel, determine the communication stability parameter according to the parameters corresponding to the output pulse signal and the parameters corresponding to the feedback pulse signal;

[0107] Determine the stability result of the communication system according to the channel stability parameter and the communication threshold.

[0108] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0109] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0110] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for measuring the stability of a communication system, characterized in that The method includes: Obtaining a preset mode and a jump determination condition corresponding to the preset mode; According to the preset mode, sending an input pulse signal to a communication channel of the communication system with initialization parameters, and obtaining an output pulse signal, a feedback pulse signal, and the number of feedback pulses of the communication channel; Based on the number of feedback pulses, determining whether the communication channel meets the jump determination condition; if the communication channel meets the jump determination condition, marking the communication channel as a complete communication channel; Based on the marked complete communication channel, determining a communication stability parameter according to parameters corresponding to the output pulse signal and parameters corresponding to the feedback pulse signal; Determining a stability result of the communication system according to the communication stability parameter and a communication threshold; Wherein, the determining a communication stability parameter according to parameters corresponding to the output pulse signal and parameters corresponding to the feedback pulse signal specifically includes: Determining a pulse response time difference sequence of the complete communication channel according to parameters corresponding to the output pulse signal and parameters corresponding to the feedback pulse signal; Based on the pulse response time difference sequence, determining a communication stability parameter for each complete communication channel; The determining a stability result of the communication system according to the communication stability parameter and a communication threshold specifically includes: Determining whether a communication stability parameter of each complete communication channel meets a communication stability condition; if there is any maximum communication delay and / or communication delay variance greater than a parameter corresponding to the communication threshold, marking the complete communication channel as an abnormal communication channel; Based on the communication channel marking result, generating a stability result of the communication system according to a relationship between the proportion of abnormal communication channels and the total number of communication channels; The method further includes: Calculating a difference in average communication delays between any two complete communication channels according to the average communication delay of each complete communication channel; If there is a difference in average communication delays greater than a parameter corresponding to the communication threshold, determining that the communication system is in an abnormal state of inconsistent path performance.

2. The stability measurement method of the communication system according to claim 1, characterized in that The communication stability parameter includes an average communication delay, a maximum communication delay, and a communication delay variance. The average communication delay is calculated using an arithmetic mean formula based on the pulse response time difference sequence. The maximum communication delay is the maximum delay time value in the pulse response time difference sequence. The communication delay variance is calculated using a variance formula based on the pulse response time difference sequence.

3. The stability measurement method of the communication system according to claim 1, characterized in that The generating a stability result of the communication system according to a relationship between the proportion of abnormal communication channels and the total number of communication channels specifically includes: If the proportion of abnormal communication channels is lower than a first threshold, determining that the stability result of the communication system is stable; If the proportion of abnormal communication channels is greater than the first threshold and less than a second threshold, determining that the stability result of the communication system is metastable; If the proportion of abnormal communication channels is greater than the second threshold, determining that the stability result of the communication system is unstable.

4. A stability measurement device for a communication system, characterized in that, A stability measurement method applied to the communication system according to any one of claims 1 to 3, wherein the stability measurement device of the communication system comprises: A mode configuration module, configured to obtain a preset mode and a jump determination condition corresponding to the preset mode; A pulse sending and feedback acquisition module, configured to send an input pulse signal to a communication channel of the communication system with initialization parameters according to the preset mode, and obtain an output pulse signal, a feedback pulse signal and a feedback pulse number of the communication channel; A validity judgment module, configured to judge whether the communication channel meets the jump determination condition based on the feedback pulse number; if the communication channel meets the jump determination condition, mark the communication channel as a complete communication channel; A stability parameter extraction module, configured to determine a communication stability parameter based on the marked complete communication channel according to parameters corresponding to the output pulse signal and parameters corresponding to the feedback pulse signal; A stability result generation module, configured to determine a stability result of the communication system according to the communication stability parameter and a communication threshold.

5. The stability measuring device of the communication system according to claim 4, characterized in that The pulse sending and feedback acquisition module includes a single-chip microcomputer; an input end of the single-chip microcomputer is connected to an output end of the communication system, and is configured to obtain the output pulse signal, the feedback pulse signal and the feedback pulse number, and an output end of the single-chip microcomputer is connected to an input end of the communication system, and is configured to send the input pulse signal to the communication channel of the communication system with initialization parameters according to the preset mode.

6. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the stability measurement method of the communication system according to any one of claims 1 to 3 are implemented.

7. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, the steps of the stability measurement method of the communication system according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Power transmission line communication channel switching method and system based on communication quality perception

    CN114641045A

  • Data transmission duration measurement method and device of communication system, equipment and medium

    CN118473552A