Communication condition monitoring method and system

By monitoring multi-dimensional data between communication devices, quantitative scoring and frequency adjustment are performed, solving the problem of low accuracy in traditional communication heartbeat monitoring mechanisms, and achieving more accurate communication status monitoring and improved operation and maintenance capabilities of the device management platform.

CN121984891APending Publication Date: 2026-05-05ANHUI KAIYANG TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ANHUI KAIYANG TECHNOLOGY CO LTD
Filing Date
2026-01-29
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Traditional communication heartbeat monitoring mechanisms rely on a binary judgment method based on whether the expected response has been received, resulting in low accuracy in monitoring communication status.

Method used

By monitoring multi-dimensional communication status data between any two communication devices, a quantitative score is obtained to obtain a link health score, and the frequency is adjusted based on the score to achieve accurate monitoring of communication status.

Benefits of technology

It improved the accuracy of communication status monitoring, enhanced the operation and maintenance capabilities of the equipment management platform, and improved the reliability of communication links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121984891A_ABST
    Figure CN121984891A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication condition monitoring method and system which are applied to an equipment management platform, and the method comprises the steps: monitoring a data packet transmitted between any two pieces of communication equipment based on a preset frequency, and obtaining multi-dimensional communication condition data; performing quantitative scoring on the multi-dimensional communication condition data to obtain a link health degree score; adjusting a preset frequency based on the link health degree score to obtain a target frequency; and monitoring a communication condition between any two communication devices based on the target frequency to obtain a target communication condition. According to the invention, the technical problem of low monitoring precision of the communication condition in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a communication status monitoring method and system. Background Technology

[0002] Traditional communication heartbeat monitoring mechanisms rely solely on the receipt of the expected response to determine the link connection status. This binary approach ignores many key factors affecting communication stability and continuity, resulting in low accuracy in monitoring communication status in related technologies.

[0003] There is currently no good solution to the above problems. Summary of the Invention

[0004] This application provides a communication status monitoring method and system to at least solve the technical problem of low accuracy in communication status monitoring in related technologies.

[0005] According to one aspect of the embodiments of this application, a communication status monitoring method is provided, applied to a device management platform, comprising: monitoring data packets transmitted between any two communication devices based on a preset frequency to obtain multi-dimensional communication status data; quantifying and scoring the multi-dimensional communication status data to obtain a link health score; adjusting the preset frequency based on the link health score to obtain a target frequency; and monitoring the communication status between any two communication devices based on the target frequency to obtain a target communication status.

[0006] Furthermore, based on a preset frequency, the data packets transmitted between any two communication devices are monitored to obtain multi-dimensional communication status data, including: identifying a first communication device among any two communication devices, and a second communication device that establishes a communication connection with the first communication device; controlling the first communication device to send a heartbeat request packet to the second communication device based on the preset frequency, and receiving a heartbeat response packet from the second communication device; and determining multi-dimensional communication status data based on the heartbeat request packet and the heartbeat response packet, wherein the data packet contains the heartbeat request packet and the heartbeat response packet.

[0007] Furthermore, the multi-dimensional communication status data is quantitatively scored to obtain a link health score, including: normalizing the multi-dimensional communication status data to obtain normalized data; and weighting the normalized data based on the preset weight coefficients corresponding to the multi-dimensional communication status data to obtain a link health score.

[0008] Furthermore, the multi-dimensional communication status data is quantitatively scored to obtain a link health score. This includes: using a link health scoring model to quantitatively score the multi-dimensional communication status data to obtain a link health score. The link health scoring model is trained based on historical multi-dimensional communication status data and labeled link health scores.

[0009] Furthermore, the preset frequency is adjusted based on the link health score to obtain the target frequency, including: when the link health score is greater than or equal to the preset score, the target frequency is determined to be the preset frequency; when the link health score is less than the preset score, the preset frequency is increased to obtain the target frequency.

[0010] Furthermore, based on the target frequency, the communication status between any two communication devices is monitored to obtain the target communication status, including: based on the target frequency, controlling the first communication device among the two communication devices to send a heartbeat request packet to the second communication device to obtain the heartbeat monitoring result, wherein the heartbeat monitoring result is used to indicate the status of the first communication device receiving the heartbeat response packet; and determining the target communication status based on the link health score and the heartbeat monitoring result.

[0011] Furthermore, the method also includes: determining the target health range corresponding to the link health score from multiple health ranges, wherein different health ranges correspond to different early warning response strategies; and determining the target early warning response strategy from multiple early warning response strategies based on the target health range.

[0012] Furthermore, the multi-dimensional communication status data includes at least two of the following: communication delay parameters, data integrity parameters, connection stability parameters, communication device operating status parameters, and network environment parameters. Among them, the communication delay parameter is used to characterize the time delay between the moment when the first communication device receives the heartbeat response packet and the moment when it sends the heartbeat request packet; the data integrity parameter is used to characterize the data content integrity of the heartbeat response packet compared to the heartbeat request packet; the connection stability parameter is used to characterize the number of times the first communication device has successfully received the heartbeat response packet consecutively; the communication device operating status parameter is used to characterize the operating status of the first communication device and / or the second communication device; and the network environment parameter is used to characterize the wireless network status between the first communication device and the second communication device.

[0013] Furthermore, the method also includes: acquiring the processor utilization rate, memory occupancy rate, device temperature, and power status of the first communication device and / or the second communication device, wherein the power status is used to characterize the battery level or supply voltage; determining the operating status parameters of the communication devices based on the processor utilization rate, memory occupancy rate, device temperature, and / or power status; and / or acquiring the signal strength, signal-to-noise ratio, and operator signal quality level of the wireless network between the first communication device and the second communication device; and determining network environment parameters based on the signal strength, signal-to-noise ratio, and / or operator signal quality level.

[0014] Furthermore, the method also includes: writing the link health score within a preset time window into a log file; and determining the target communication status based on the log file, the link health score, and the heartbeat monitoring results.

[0015] According to another aspect of the embodiments of this application, a communication status monitoring system is also provided, comprising: a first communication device, configured to send a heartbeat request packet based on a preset frequency or a target frequency; a second communication device, communicatively connected to the first communication device, configured to receive the heartbeat request packet and send a heartbeat response packet back to the first communication device; and a device management platform, communicatively connected to the first and second communication devices, configured to monitor data packets transmitted between any two communication devices based on a preset frequency, obtain multi-dimensional communication status data, quantify and score the multi-dimensional communication status data to obtain a link health score, adjust the preset frequency based on the link health score to obtain a target frequency, and monitor the communication status between any two communication devices based on the target frequency to obtain a target communication status.

[0016] According to another aspect of the embodiments of this application, a communication status monitoring device is also provided, comprising: a first monitoring module, configured to monitor data packets transmitted between any two communication devices based on a preset frequency to obtain multi-dimensional communication status data; a scoring module, configured to quantify and score the multi-dimensional communication status data to obtain a link health score; an adjustment module, configured to adjust the preset frequency based on the link health score to obtain a target frequency; and a second monitoring module, configured to monitor the communication status between any two communication devices based on the target frequency to obtain a target communication status.

[0017] According to another aspect of the embodiments of this application, a vehicle is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.

[0018] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.

[0019] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.

[0020] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.

[0021] According to another aspect of the embodiments of this application, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this application.

[0022] This application provides a communication status monitoring method for a device management platform. First, based on a preset frequency, data packets transmitted between any two communication devices are monitored to obtain multi-dimensional communication status data. Next, the multi-dimensional communication status data is quantitatively scored to obtain a link health score. Then, the preset frequency is adjusted based on the link health score to obtain a target frequency. Finally, based on the target frequency, the communication status between any two communication devices is monitored to obtain the target communication status. This application first monitors data packet transmission between any two communication devices using a preset frequency to obtain multi-dimensional communication status data, which accurately reflects the communication status between any two devices from multiple dimensions. Then, a quantitative scoring mechanism is used to perform in-depth analysis of the multi-dimensional communication status data to obtain a link health score. This scoring strategy transcends the limitations of simple binary judgment and provides a quantitative perspective on the overall link status. Following this, the preset frequency is intelligently adjusted based on the link health score to obtain a target frequency that better meets current monitoring needs. Finally, by applying the adjusted target frequency, the link status between communication devices is continuously monitored to obtain more accurate communication status feedback. This application adopts a combination of multi-dimensional communication status data collection and quantitative scoring, and through feedback control and adaptive frequency adjustment, it achieves the goal of improving the accuracy of communication status monitoring, thereby enhancing the operation and maintenance capabilities of the equipment management platform and the reliability of the communication link, and thus solving the technical problem of low accuracy in communication status monitoring in related technologies. Attached Figure Description

[0023] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0024] Figure 1 This is a flowchart of a communication status monitoring method according to an embodiment of this application;

[0025] Figure 2 This is a schematic diagram of a communication heartbeat monitoring device for multidimensional health assessment and dynamic response according to an embodiment of this application;

[0026] Figure 3 This is a logic diagram for calculating health status according to an embodiment of this application;

[0027] Figure 4 This is a schematic diagram of a communication status monitoring system according to an embodiment of this application;

[0028] Figure 5 This is a schematic diagram of a communication status monitoring device according to an embodiment of this application; Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. 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 comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] According to an embodiment of this application, an embodiment of a communication status monitoring method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] This embodiment provides a communication status monitoring method, applied to a device management platform. Figure 1 This is a flowchart of a communication status monitoring method according to an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps:

[0033] Step S102: Based on a preset frequency, monitor the data packets transmitted between any two communication devices to obtain multi-dimensional communication status data.

[0034] The aforementioned equipment management platform can refer to a software system or service used for remote monitoring, management, and control of various devices in a network. Types of equipment management platforms may include, but are not limited to, enterprise-level equipment management platforms, industrial IoT platforms, smart home control platforms, telemedicine service systems, and vehicle-to-everything (V2X) management systems. The specific equipment management platform needs to be determined based on the specific application area. Equipment management platforms not only monitor communication status but also perform intelligent analysis based on monitoring results, providing early warnings, fault diagnosis, and adaptive control to ensure network communication stability and security, reduce maintenance costs, and improve operational efficiency.

[0035] The aforementioned preset frequency refers to the period during which the device management platform monitors the communication status between devices. The preset frequency can be a fixed, pre-set frequency or a dynamic frequency that adaptively adjusts based on current network conditions and device load. The choice of preset frequency directly affects the sensitivity and accuracy of communication status monitoring. Higher frequencies can detect network fluctuations more quickly but increase system load and device power consumption; lower frequencies will lead to delays in problem detection and affect fault response speed. The specific preset frequency needs to be determined based on actual requirements.

[0036] The aforementioned communication equipment can refer to any electronic device capable of sending or receiving data within a network. Communication equipment may include, but is not limited to, routers, switches, IoT sensors, computers, smartphones, servers, industrial control computers, etc., with the specific communication equipment to be determined based on the monitoring objectives. Communication equipment serves as the fundamental unit constituting a network, and effective communication between these devices is crucial for realizing system functions. By monitoring the communication status between communication devices, the device management platform can understand the overall health of the network and then take corresponding management measures.

[0037] The aforementioned data packet refers to an information unit after data has been encapsulated during network transmission. Data packets may include, but are not limited to, heartbeat request packets and heartbeat response packets; the specific data packet needs to be determined based on the actual request. Data packets can be used as a carrier for information exchange between communication devices. By monitoring the transmission status of data packets, the quality of the communication link can be evaluated, such as transmission rate, latency, and packet loss rate.

[0038] The aforementioned multi-dimensional communication status data refers to various types of status information collected during communication link monitoring. Multi-dimensional communication status data may include, but is not limited to, transmission delay data, data integrity data, connection stability data, device operating status data, and network environment data. The specific multi-dimensional communication status data needs to be determined based on actual needs. Comprehensive analysis of multi-dimensional communication status data allows the device management platform to form a comprehensive understanding of the health of the communication link, thereby making more accurate judgments and responses. Compared to single-dimensional monitoring, multi-dimensional communication status data can provide more information about link quality and potential problems, which is helpful for preventative maintenance and fault prediction.

[0039] In one optional embodiment, the device management platform first initiates a timed task according to a pre-defined frequency to periodically monitor data packet transmission activities between any two communication devices in the network. Specifically, this monitoring process involves the platform intercepting data packets at the network or transport layer at each set time point, performing non-intrusive observation and analysis of the transmitted data packets. Based on the monitoring results, multi-dimensional communication status data is obtained, providing a solid data foundation for subsequent health assessments and intelligent response decisions.

[0040] In an optional embodiment, the monitoring method for monitoring data packets transmitted between any two communication devices may include, but is not limited to, the following methods:

[0041] The first method is based on timestamp-based round-trip time measurement. This involves recording precise timestamps at both the sending and receiving ends of the data packet, and then calculating the difference between the two timestamps to obtain the round-trip time (RTT) of the data packet.

[0042] The second method is data integrity verification, which involves adding a checksum, such as Cyclic Redundancy Check (CRC) or Message-Digest Algorithm version 5 (MD5), to the data packet. The receiving end can then verify the integrity of the data during transmission. If the checksum matches, it means the data packet has not been tampered with or corrupted during transmission, thus ensuring reliable communication.

[0043] The third method involves monitoring connection stability statistics, which includes tracking the number of consecutively successfully sent and received data packets, as well as any packet loss. A high number of consecutive successful packets and a low packet loss rate indicate a stable link; conversely, a large number of packet losses or consecutive failures indicate a link failure.

[0044] The fourth approach is periodic monitoring and dynamic adjustment. This involves periodically monitoring at a preset frequency while dynamically adjusting the monitoring frequency based on the monitored link status, thus finding a balance between resource consumption and monitoring accuracy. For example, when the link health declines, the monitoring frequency can be automatically increased to detect problems more quickly.

[0045] The above monitoring methods are for illustrative purposes only. The specific monitoring methods should be determined based on the monitoring objectives and data packet types, and are not limited here.

[0046] Step S104: Quantify and score the multi-dimensional communication status data to obtain the link health score.

[0047] The link health score mentioned above refers to a comprehensive quantitative indicator that can be used to assess the actual operational status of a link between any two communication devices. The link health score typically ranges from 0 to 100; a higher value indicates a healthier link and better communication quality. This quantitative scoring allows for detailed differentiation of different link health levels, avoiding misjudgments or omissions caused by simple binary judgments. This is crucial for the early detection of subtle degradations in communication quality.

[0048] In one optional embodiment, a series of key link status parameters are first collected, namely multi-dimensional communication status data, such as round-trip time (RTT), data integrity verification results, connection continuity and stability, and device operating status (memory usage, power status, temperature), etc. Next, each collected data item is standardized and converted into a unified scoring scale for comparison and weighted calculation. For example, a lower RTT results in a higher score, while a higher device load results in a lower score. Then, a weighting coefficient is pre-set based on the importance of each indicator; these weights are directly reflected in the final health score. Finally, a comprehensive scoring formula is used to multiply all standardized indicators by their corresponding weights and sum them to obtain the link's health score for the current monitoring period. The score range is typically set between 0 and 100; a higher value indicates a better link health, while a lower value indicates a risk of performance degradation or impending failure. By continuously monitoring and determining the link health score, maintenance personnel or automated systems can grasp the link status in real time and take timely measures to maintain the network's efficient and stable operation.

[0049] In one optional embodiment, the methods for quantifying and scoring multi-dimensional communication status data may include, but are not limited to, the following:

[0050] The first method is linear weighted summation, which involves transforming each dimension's indicators to the same scoring scale (e.g., 0-100 points) through a normalization function, assigning different weights to each dimension based on its importance, and finally summing all the weighted indicator values ​​to obtain the total score.

[0051] The second approach is fuzzy logic reasoning, which uses fuzzy logic theory to evaluate communication status data, transforming quantitative data into qualitative fuzzy sets, such as "very healthy," "healthy," "warning," and "dangerous." Each qualitative state corresponds to a fuzzy set. The membership function determines the membership degree of each indicator value in each fuzzy set, and then fuzzy reasoning rules are used for comprehensive judgment. Finally, the precise score or level of link health is obtained through the defuzzification process of the fuzzy sets.

[0052] The third formula, a machine learning algorithm, uses supervised or unsupervised learning methods to train a scoring model. The input is multi-dimensional communication status data, and the output is a link health score.

[0053] The above quantitative scoring methods are for illustrative purposes only. The specific quantitative scoring methods should be determined based on actual needs, and no restrictions are imposed here.

[0054] Step S106: Adjust the preset frequency based on the link health score to obtain the target frequency.

[0055] The aforementioned target frequency can refer to the new operating frequency obtained by dynamically adjusting a preset frequency based on the link health score. Dynamic adjustment of the target frequency enables intelligent and automated communication strategies, allowing for flexible changes in the operating frequency according to the actual link conditions. This not only helps improve communication stability and reliability but also effectively saves network resources and equipment energy consumption, avoiding excessive resource consumption when the link is stable, while failing to detect and respond promptly when the link is unstable. Through this mechanism, the system can achieve more granular and efficient resource management while ensuring service quality.

[0056] In one optional embodiment, the adjustment method for adjusting the preset frequency based on the link health score can include, but is not limited to, dynamic threshold adjustment, proportional increase / decrease adjustment, and exponential adjustment. The dynamic threshold adjustment method sets a series of health score thresholds, each corresponding to a different operating frequency level. For example, when the health score is above 80, the target frequency can be set to a preset minimum frequency to reduce resource consumption; when the score drops to 60-80, the target frequency is moderately increased for more frequent link status checks; and when the score is below 40, the target frequency is further significantly increased to ensure rapid detection and response even when the link condition is poor. The proportional increase / decrease adjustment method dynamically adjusts the operating frequency according to the percentage change in the link health score. The exponential adjustment method uses an exponential function to amplify or reduce the impact of score changes on the target frequency. When the link health score is low, a higher sensitivity coefficient is used, so even small fluctuations in the score will lead to a significant change in the target frequency, which is beneficial for taking rapid action in the early stages of link instability or failure. When the link health is high, a lower sensitivity coefficient is used, so even a slight drop in the score will not cause the target frequency to react immediately, preventing over-adjustment.

[0057] The adjustment methods above are for illustrative purposes only; the specific adjustment methods should be determined based on actual needs. The values ​​above are also for illustrative purposes only; the specific values ​​should be determined based on actual needs, and no limitations are specified here.

[0058] In one optional embodiment, the device management platform first uses the link health score as a decision-making basis to automatically adjust preset frequencies, such as the frequency of heartbeat packet transmission or the data collection cycle, to implement a more precise communication management strategy in the form of a target frequency. Specifically, when the link health score is at a high level, indicating that the link status is stable and the communication quality is good, the target frequency will be lowered, reducing the frequency of heartbeat packet transmission or data collection, thereby saving network bandwidth and energy consumption of terminal devices. Conversely, if the score is below a predetermined threshold, indicating that the link faces potential risks or has shown signs of instability, the target frequency will be raised, increasing the frequency of heartbeat monitoring or data collection, ensuring that the system can respond to link changes more quickly and take corrective measures in a timely manner, such as accelerating fault diagnosis, increasing the number of retransmissions, or adjusting the communication path, thereby maintaining the continuity of communication and the reliability of data transmission. Through this mechanism, while ensuring efficient operation, the early warning capability for communication link anomalies and resource utilization efficiency can be effectively improved, achieving intelligent and dynamic communication maintenance.

[0059] Step S108: Based on the target frequency, monitor the communication status between any two communication devices to obtain the target communication status.

[0060] The aforementioned target communication status refers to the quality and status of actual communication between any two communication devices at the target frequency. Target communication status may include, but is not limited to, communication stability, response timeliness, data integrity, device status, and environmental adaptability; the specific target communication status needs to be determined based on actual requirements. Target communication status can be used to reflect the communication status between communication devices at the target frequency.

[0061] In one optional embodiment, based on the adjusted target frequency, the link status between any two communication devices is continuously monitored, including key indicators such as signal quality and device operating status. Through real-time data collection and multi-dimensional parameter analysis, the real-time performance of the communication link is accurately evaluated, ultimately yielding a target communication status reflecting the overall health of the link at that frequency. This process achieves dynamic adjustment of communication monitoring, sensitively capturing subtle changes in the link while avoiding resource waste when the link is healthy. The dynamic adjustment of the target frequency ensures that the monitoring timing is just right, neither consuming resources too frequently nor missing important information due to excessively long intervals, thereby greatly enhancing the system's real-time response capability to changes in link status and the accuracy of monitoring results.

[0062] This application provides a communication status monitoring method for a device management platform. First, based on a preset frequency, data packets transmitted between any two communication devices are monitored to obtain multi-dimensional communication status data. Next, the multi-dimensional communication status data is quantitatively scored to obtain a link health score. Then, the preset frequency is adjusted based on the link health score to obtain a target frequency. Finally, based on the target frequency, the communication status between any two communication devices is monitored to obtain the target communication status. This application first monitors data packet transmission between any two communication devices using a preset frequency to obtain multi-dimensional communication status data, which accurately reflects the communication status between any two devices from multiple dimensions. Then, a quantitative scoring mechanism is used to perform in-depth analysis of the multi-dimensional communication status data to obtain a link health score. This scoring strategy transcends the limitations of simple binary judgment and provides a quantitative perspective on the overall link status. Following this, the preset frequency is intelligently adjusted based on the link health score to obtain a target frequency that better meets current monitoring needs. Finally, by applying the adjusted target frequency, the link status between communication devices is continuously monitored to obtain more accurate communication status feedback. This application adopts a combination of multi-dimensional communication status data collection and quantitative scoring, and through feedback control and adaptive frequency adjustment, it achieves the goal of improving the accuracy of communication status monitoring, thereby enhancing the operation and maintenance capabilities of the equipment management platform and the reliability of the communication link, and thus solving the technical problem of low accuracy in communication status monitoring in related technologies.

[0063] Optionally, based on a preset frequency, data packets transmitted between any two communication devices are monitored to obtain multi-dimensional communication status data, including: identifying a first communication device among the two communication devices, and a second communication device that establishes a communication connection with the first communication device; controlling the first communication device to send a heartbeat request packet to the second communication device based on the preset frequency, and receiving a heartbeat response packet from the second communication device; determining multi-dimensional communication status data based on the heartbeat request packet and the heartbeat response packet, wherein the data packet includes the heartbeat request packet and the heartbeat response packet.

[0064] The aforementioned first communication device can refer to the communication device that actively initiates a heartbeat request for monitoring. The aforementioned second communication device can refer to another communication device that responds to the heartbeat request and interacts with the first communication device. The first and second communication devices can include, but are not limited to, IoT terminals, edge computing gateways, servers, mobile devices, sensor nodes, actuators, etc., and the specific first and second communication devices need to be determined according to the application scenario. Communication monitoring between the first and second communication devices is the cornerstone for ensuring the stability and real-time performance of data transmission. Through the heartbeat mechanism, the first communication device can periodically confirm the reachability and responsiveness of the second communication device, while collecting link status data to assess the health of the communication link, providing a basis for subsequent fault detection, early warning, and adaptive control.

[0065] The aforementioned heartbeat request packet can refer to a request data packet sent by the first communication device to the second communication device at a preset or dynamically adjusted frequency. The heartbeat request packet can be used to check link activity and device reachability.

[0066] The aforementioned heartbeat response packet can refer to a feedback data packet that is immediately returned to the first communication device after the second communication device receives a heartbeat request. The heartbeat response packet can be used to indicate that the second communication device is running and can respond to external requests.

[0067] The aforementioned heartbeat request and response packets form the foundation of the heartbeat mechanism. Through periodic request and response interactions, the effectiveness of the communication link is confirmed, and link interruptions or device offline situations are detected in a timely manner. The time difference between sending and receiving the heartbeat request packet can be used to calculate the round-trip time (RTT), while the integrity and consistency of the heartbeat response packet can be used to assess the reliability of data transmission. Additionally, the heartbeat packet can carry extra device status information, such as processor (Central Processing Unit) load, memory usage, and battery level, to help assess the device's operational health.

[0068] In one optional embodiment, a first communication device is first determined from any two communication devices, and a second communication device is determined to establish a communication connection with the first communication device. Then, according to a preset frequency, the first communication device is controlled to periodically send heartbeat request packets to the second communication device and receive heartbeat response packets from the other party. Finally, based on the heartbeat request packets and heartbeat response packets, multi-dimensional communication status data, including communication latency, data integrity, and connection stability, is calculated and recorded in real time. Furthermore, by comparing historical data with current data, trends in communication quality changes can be identified, potential link quality problems can be warned in advance, and the impact of sudden failures on the communication system can be reduced. This process enables the status assessment of the communication link to go beyond simple heartbeat response, reflecting the true health status of the link comprehensively and at multiple levels, significantly enhancing the accuracy of link monitoring and the system's agility in responding to anomalies.

[0069] Optionally, the multi-dimensional communication status data is quantitatively scored to obtain a link health score, including: normalizing the multi-dimensional communication status data to obtain normalized data; and weighting the normalized data based on preset weight coefficients corresponding to the multi-dimensional communication status data to obtain a link health score.

[0070] The normalization process described above refers to data preprocessing techniques aimed at transforming data with different scales and distribution characteristics into a uniform range. Types of normalization include, but are not limited to, min-max normalization, standard score normalization, and decimal scaling normalization. The examples above are merely illustrations; the specific normalization method should be determined based on actual needs. Normalization can eliminate the influence of dimensions and scale differences in data, allowing data from different dimensions to be compared and combined under a unified standard.

[0071] The normalized data mentioned above can refer to multi-dimensional communication status data that has undergone normalization, where all data are adjusted to the same scale or score range. For example, all original indicator values ​​are converted to a scoring range of [0, 100], so that data in each dimension, regardless of their original measurement unit and magnitude, can be compared and comprehensively evaluated within a common reference framework, facilitating further health score calculation.

[0072] The aforementioned preset weighting coefficients refer to numerical values ​​that quantify the importance of data in each dimension during the scoring process. These coefficients reflect the relative contribution of different communication status indicators to the assessment of link health. The preset weighting coefficients can be used to perform a weighted summation of normalized data when calculating the link health score, ensuring that the score effectively reflects indicators that have a significant impact on link stability.

[0073] In one optional embodiment, the collected communication status data, including RTT, parity rate, stability, device load, and signal strength, are first normalized. This step ensures that different types of status parameters are standardized to the same scoring scale, facilitating subsequent weighted analysis. Then, based on pre-set weighting coefficients... to For the normalized data (RTT) (Verification rate) (stability), (Equipment load) The link health score (HS) is calculated by weighting and summing factors such as signal strength. This process not only allows for adjusting the importance of various indicators according to actual needs but also comprehensively considers the actual operating status of the communication link, providing a more accurate link health assessment.

[0074] Optionally, the multi-dimensional communication status data is quantitatively scored to obtain a link health score, including: using a link health score model to quantitatively score the multi-dimensional communication status data to obtain a link health score, wherein the link health score model is trained based on historical multi-dimensional communication status data and labeled link health scores.

[0075] The aforementioned link health scoring model can refer to a data analysis tool for predicting and assessing the health status of network communication links. Types of link health scoring models include, but are not limited to, those based on statistical methods, supervised learning, deep learning, expert systems, or pre-defined rules. The examples above are merely illustrations; specific link health scoring models should be determined based on actual needs. Link health scoring models can be used to integrate complex, multi-dimensional communication status data into a single health score, simplifying the understanding and decision-making process for operations and maintenance personnel. The scoring model can also be used for continuous monitoring and analysis of link performance, identifying performance bottlenecks and adjustment opportunities, and helping system or network administrators develop reasonable improvement measures.

[0076] The aforementioned historical multi-dimensional communication status data refers to a collection of records of various performance indicators of the communication link gathered within a preset time period. This historical multi-dimensional communication status data serves as the foundation for training a link health scoring model, enabling the model to learn and understand the patterns of link performance changes under different conditions and identify which combinations of indicators predict link deterioration or stability. Through model training, the historical multi-dimensional communication status data is transformed into the ability to predict the future state of the link, thereby accurately scoring link health in a real-time environment.

[0077] The aforementioned labeled link health scores refer to link status scores assessed by experts or operations personnel based on historical multi-dimensional communication status data and actual conditions. Here, "labeling" means that each set of historical data has a corresponding manual score, reflecting the link health level within a specific dataset. During model training, the labeled link health scores serve as labels for supervised learning, guiding the model to learn how to map multi-dimensional communication status data to health scores. By comparing model predictions with actual scores, model parameters are continuously adjusted until satisfactory prediction accuracy is achieved. The quality of labeled data directly affects model performance; therefore, accurate and comprehensive labeling is a prerequisite for building an effective labeling model.

[0078] In one optional embodiment, a link health score is obtained by quantifying and scoring multi-dimensional communication status data based on a link health scoring model. This model is trained on historical multi-dimensional communication status data and labeled link health scores, aiming to identify subtle changes in link status through machine learning algorithms, thereby improving the accuracy and predictive ability of status assessment. In practice, after the device collects multi-dimensional status information such as communication latency, data integrity, connection stability, device operating status, and network environment data, it inputs this information into the trained scoring model. The model's predictive function then converts this information into a quantifiable health score. This process not only captures link quality change trends that are imperceptible to conventional threshold assessments but also provides early warnings of impending status deterioration based on historical data learning experience. This enables dynamic monitoring and prediction of communication link health status, significantly enhancing the system's ability to prevent and respond to faults.

[0079] Optionally, the preset frequency is adjusted based on the link health score to obtain the target frequency, including: if the link health score is greater than or equal to the preset score, the target frequency is determined to be the preset frequency; if the link health score is less than the preset score, the preset frequency is increased to obtain the target frequency.

[0080] The aforementioned preset score refers to a threshold pre-set in the link health scoring model, used to distinguish the health status of the link. The preset score can serve as a decision-making basis for dynamically adjusting the heartbeat monitoring frequency, helping the system intelligently decide whether to increase monitoring intensity based on the link's current actual health status. When the link health score is higher than or equal to this preset score, the link is considered to be in a good or stable state; conversely, a score lower than the preset score indicates that the link has potential problems or is already in a poor state.

[0081] In one optional embodiment, when the link health score is greater than or equal to a preset score, the target frequency remains unchanged, meaning the preset frequency continues to be used for communication monitoring. This indicates that the current monitoring strategy is sufficient to ensure the stability and reliability of the communication link. Conversely, when the link health score falls below the preset score, the preset frequency is dynamically increased to shorten the heartbeat interval and reach the target frequency. This signifies that the system has identified an unstable link and is using encrypted heartbeat monitoring to promptly capture potential communication anomalies, ensuring a rapid response and remedial measures. This dynamic adjustment mechanism not only enhances the system's intelligent response capabilities but also effectively balances the conflict between resource consumption and monitoring sensitivity, enabling early warning and prevention before link conditions deteriorate, significantly improving the robustness of the entire communication system and the user experience.

[0082] Optionally, based on the target frequency, monitoring the communication status between any two communication devices to obtain the target communication status includes: based on the target frequency, controlling the first communication device among the two communication devices to send a heartbeat request packet to the second communication device to obtain a heartbeat monitoring result, wherein the heartbeat monitoring result is used to indicate the status of the first communication device receiving the heartbeat response packet; and determining the target communication status based on the link health score and the heartbeat monitoring result.

[0083] The aforementioned heartbeat monitoring result refers to the feedback received by the first communication device after it sends a heartbeat request packet to the second communication device. The heartbeat monitoring result may include, but is not limited to, the first communication device receiving a heartbeat response packet or not receiving a heartbeat response packet; the specific heartbeat monitoring result needs to be determined based on the actual monitoring situation. The heartbeat monitoring result can be used to provide real-time feedback on whether the link is operating normally, helping the system to quickly respond to sudden link issues.

[0084] In one optional embodiment, firstly, the first communication device (gateway) is controlled to send heartbeat request packets to the second communication device (cloud platform) at a target frequency and receive heartbeat response packets, obtaining a heartbeat monitoring result that reflects the actual status of the gateway receiving response packets. Subsequently, the link health scoring module integrates the heartbeat monitoring result with other multi-dimensional data, including but not limited to communication latency, data integrity, device load, and signal strength, and calculates the link health score using a weighted summation formula. Finally, based on the link health score and the heartbeat monitoring result, the level of the target communication status is determined, such as healthy, alert, deteriorated, or dangerous, and corresponding response strategies are adopted, such as adjusting the heartbeat cycle, triggering an early warning, or attempting reconnection. This process achieves dynamic monitoring and intelligent response to the communication link status, effectively improving the reliability and maintainability of the communication system.

[0085] Optionally, the method further includes: determining a target health range corresponding to the link health score from multiple health ranges, wherein different health ranges correspond to different early warning response strategies; and determining a target early warning response strategy from multiple early warning response strategies based on the target health range.

[0086] The aforementioned multiple health ranges refer to a classification method that divides the link health score into multiple intervals, each interval representing a different health status of the link. These multiple health ranges provide a hierarchical status assessment system for the link monitoring and early warning system. They enable the system to quickly locate the link's health level based on the score's numerical range and accordingly activate corresponding early warning response strategies, achieving refined management and efficient response to link status issues.

[0087] Multiple health ranges can include, but are not limited to: HS≥80: Link status is good, corresponding to maintaining the current heartbeat cycle and monitoring strategy, maintaining normal communication and data exchange, and not initiating additional early warning or response measures; 60≤HS<80: Link quality has slightly deteriorated, corresponding to issuing an "Link quality deterioration" early warning, suggesting manual intervention and logging for subsequent analysis; 40≤HS<60: Link quality has significantly deteriorated, the early warning response strategy is upgraded, including automatically shortening the heartbeat cycle to increase monitoring frequency, initiating link diagnostics (such as sending test data packets), reporting the anomaly to the superior system, and preparing for fault investigation and system improvement; HS<40 or 3 consecutive no responses: The link is in a dangerous state, the early warning response strategy is the most aggressive, not only immediately triggering a "communication anomaly" alarm, but also attempting reconnection (up to 3 times), reporting the fault event to the operation and maintenance platform, and initiating the emergency fault recovery process. The above health range divisions are only examples; the specific multiple health ranges need to be determined based on link stability, data transmission quality, and equipment operating status, through expert settings or data analysis.

[0088] The aforementioned target health range can refer to a specific interval determined from multiple preset health ranges based on the current link health score. This interval directly reflects the actual health status of the link. The target health range can serve as a bridge between the link health model output and the early warning response strategy. Once the score falls into a predefined interval, the system can immediately identify and activate the corresponding early warning response strategy, ensuring real-time response and effective handling of changes in link status.

[0089] The aforementioned early warning response strategies can refer to a set of behavioral guidelines and operational guidelines designed for different health ranges, used to guide the system on how to respond to various levels of link health status. Early warning response strategies may include, but are not limited to, actions such as adjusting heartbeat monitoring frequency, initiating link diagnostics, triggering alarm notifications, and implementing fault recovery mechanisms. These strategies ensure that the system can take appropriate and timely measures when faced with changes in link status, preventing or minimizing the negative impact of communication interruptions. They enhance the system's adaptability and operational efficiency, and are crucial for maintaining the stability and continuity of network communication.

[0090] The aforementioned target early warning response strategy can refer to the early warning response strategy corresponding to the target's health range.

[0091] In one optional embodiment, the link health score is compared with multiple preset health ranges to determine the target health range in which the link health score falls. Each health range (healthy, alert, deteriorated, dangerous, etc.) corresponds to a unique early warning response strategy, covering various measures from normal monitoring to emergency fault handling. Then, based on the target health range, the early warning response strategy corresponding to the target health range is determined from the multiple early warning response strategies. This dynamic determination process not only reflects the true state of the link in a timely and accurate manner but also flexibly adjusts the monitoring frequency and diagnostic actions according to changes in circumstances, effectively avoiding resource waste and intervening in advance when a link is about to fail, reducing the risk of service interruption. For example, when the link health score falls into the alert level, the system automatically records relevant events, issues an early warning of link quality degradation, and suggests that maintenance personnel pay attention, rather than immediately taking extreme measures. This tiered response mechanism ensures appropriate handling of various situations, neither excessively consuming resources nor overlooking important warnings, improving the stability and operational efficiency of the entire communication system.

[0092] Optionally, the multi-dimensional communication status data includes at least two of the following: communication delay parameters, data integrity parameters, connection stability parameters, communication device operating status parameters, and network environment parameters. The communication delay parameters characterize the time delay between the moment the first communication device receives the heartbeat response packet and the moment it sends the heartbeat request packet. The data integrity parameters characterize the data content integrity of the heartbeat response packet compared to the heartbeat request packet. The connection stability parameters characterize the number of times the first communication device successfully receives the heartbeat response packet consecutively. The communication device operating status parameters characterize the operating status of the first communication device and / or the second communication device. The network environment parameters characterize the wireless network status between the first communication device and the second communication device.

[0093] The aforementioned communication delay parameter refers to the time required from when the first communication device sends a heartbeat request packet to when it receives a heartbeat response packet from the second communication device. It is typically expressed as round-trip time (RTT) and is an important indicator of network communication efficiency and real-time performance. Communication delay parameters can be used to reveal the data transmission speed and immediate response capability of the link in its current state.

[0094] The aforementioned data integrity parameters refer to parameters reflecting the data consistency between heartbeat response packets and heartbeat request packets, that is, reflecting the integrity between them. Data integrity parameters can be determined through checksum comparisons, such as Cyclic Redundancy Check 32-bit (CRC32) or MD5. If the checksum of the received response packet matches the checksum of the sent request packet, the data transmission is considered complete. Data integrity parameters are key indicators for ensuring the reliability of communication links. Data packets can be interfered with or corrupted during transmission, especially in wireless network environments. Complete data transmission is the cornerstone of communication quality, and monitoring data integrity parameters helps to identify potential errors or interference sources in the link, preventing data misunderstandings or service interruptions.

[0095] The connection stability parameter mentioned above refers to the number of times the first communication device successfully receives heartbeat response packets consecutively. A connection is stable only when the link can continuously and uninterruptedly exchange data. Connection stability parameters are fundamental for detecting frequent disconnections and reconnections, and are crucial for assessing the robustness of network infrastructure and quality of service. Abnormally low stability parameters indicate problems such as improper link configuration, hardware failure, or network attacks.

[0096] The aforementioned communication equipment operating status parameters can refer to the computing resource usage of the communication equipment, such as CPU load, memory usage, temperature, and power status. By monitoring these parameters, measures can be taken when the equipment is in poor condition, such as adjusting the heartbeat frequency and resource allocation, to maintain the normal operation of the link.

[0097] The aforementioned network environment parameters refer to parameters describing the wireless network status between the first and second communication devices. These parameters may include, but are not limited to, signal strength, signal-to-noise ratio, and signal quality level; specific parameters must be determined based on actual needs. Monitoring these parameters allows for the timely detection of signal quality degradation, prediction of link interruption risks, and the adjustment of communication strategies (such as frequency switching or activating backup links) to avoid or reduce communication failures.

[0098] In one optional embodiment, the multi-dimensional communication status data includes, but is not limited to, at least two of the following: communication latency parameters, data integrity parameters, connection stability parameters, communication device operating status parameters, and network environment parameters. These parameters collectively form the basis for a comprehensive assessment of link health. The communication latency parameter reflects the time interval from when the first communication device sends a heartbeat request packet to when it receives a heartbeat response packet from the second communication device. The data integrity parameter, through a verification mechanism, ensures that the data during heartbeat packet transmission has not been corrupted or tampered with. The connection stability parameter measures the reliability of the link based on the number of consecutive successful reception packets by the first communication device. The communication device operating status parameters cover the CPU utilization, memory usage, temperature, and power status of both the first communication device and the peer device, directly reflecting the current load and health of the devices. The network environment parameters specifically focus on indicators such as signal strength and signal-to-noise ratio in wireless connection scenarios to assess the quality of the wireless link. By comprehensively considering these parameters, the health calculation module can generate a quantitative score reflecting the true state of the link, thereby guiding the status judgment and early warning module to make more accurate decisions. Whether it's timely adjustment of the heartbeat cycle to prevent potential communication failures or early warning when the link deteriorates, it greatly improves the stability and response speed of the entire communication system.

[0099] Furthermore, the data acquisition and processing logic in this embodiment is not limited to the form described above, and can be flexibly adjusted. For example, more detailed state classification can be introduced through data analysis algorithms, or additional environmental perception parameters can be added to adapt to more diverse application scenarios and higher-level performance requirements.

[0100] Optionally, the method further includes: acquiring processor utilization, memory occupancy, device temperature, and power status of the first communication device and / or the second communication device, wherein the power status is used to characterize battery power or supply voltage; determining communication device operating status parameters based on processor utilization, memory occupancy, device temperature, and / or power status; and / or acquiring signal strength, signal-to-noise ratio, and operator signal quality level of the wireless network between the first communication device and the second communication device; and determining network environment parameters based on signal strength, signal-to-noise ratio, and / or operator signal quality level.

[0101] The processor utilization rate mentioned above refers to the proportion of a communication device's (such as a gateway, router, or terminal device) processor (CPU) that is occupied within a certain time period. Processor utilization reflects the degree of CPU usage, i.e., how much time is spent executing various tasks and applications. High processor utilization indicates that the device is under high load, affecting data processing speed and response time, and is an important indicator for evaluating device operating efficiency and stability.

[0102] The aforementioned memory utilization rate refers to the percentage of memory allocated to active applications and system processes during the operation of a communication device. Memory utilization rate reflects the efficiency of device memory usage and can serve as an important component of the device's operational status parameters.

[0103] The aforementioned device temperature refers to the internal thermal environment of the communication equipment. The device temperature can be obtained through sensors built into the communication equipment.

[0104] The aforementioned power status can refer to the battery level or external power supply voltage of the device, which is a direct indicator of whether the device can continue to operate.

[0105] The signal strength mentioned above refers to the strength of the received signal in a wireless communication link. A common indicator is the Received Signal Strength Indication (RSSI). High signal strength means good link quality and stable data transmission, while low signal strength causes data packet loss and communication delays.

[0106] The signal-to-noise ratio (SNR) mentioned above can refer to the ratio of signal power to background noise power. SNR can be used to measure the purity of a signal.

[0107] The aforementioned operator signal quality level refers to a standard indicator for evaluating the quality of cellular network services. Types of operator signal quality levels may include, but are not limited to, Reference Signal Received Power (RSRP) and Reference Signal Received Quality (RSRQ). The specific type of operator signal quality level needs to be determined based on actual requirements. Operator signal quality levels can be used to determine data transmission rates and stability.

[0108] In one optional embodiment, parameters such as processor utilization, memory usage, device temperature, and power status of the communication device are first collected periodically. Processor utilization and memory usage reflect the device's computational and storage resource burden, device temperature reveals the device's thermal environment, and power status directly relates to the device's power supply stability, which is particularly important for battery-powered mobile devices. Then, based on processor utilization, memory usage, device temperature, and / or power status, communication device operating status parameters are constructed to assess the device's health and communication capabilities.

[0109] Simultaneously, considering the dynamic and uncertain nature of the wireless network environment, data such as signal strength index (RSSI), signal-to-noise ratio (SNR), and operator signal quality level were collected. Signal strength reflects the strength of the signal, while SNR measures the ratio of signal to background noise, and operator signal quality level comprehensively assesses the service quality of the cellular network. Then, based on signal strength, SNR, and / or operator signal quality level, network environment parameters were determined.

[0110] The above process, through the integrated analysis of internal operating status parameters and external network environment parameters, forms a comprehensive link health assessment system. It not only focuses on the real-time communication status of the link, but also examines in depth the performance of the basic equipment supporting communication and the wireless network environment. This realizes the transformation of link health management from passive response to proactive prevention, greatly improving the adaptive capability and overall communication quality of the communication system.

[0111] Optionally, the method further includes: writing the link health score within a preset time window into a log file; and determining the target communication status based on the log file, the link health score, and the heartbeat monitoring results.

[0112] The aforementioned log file refers to a data recording format primarily used to store various events and status information generated during system operation, facilitating subsequent analysis and troubleshooting. Within a heartbeat monitoring system, log files are used to save heartbeat monitoring results, link health scores, and other relevant device status parameters within a preset time window (such as the last few hours or days). Log files not only provide a real-time overview of link health status but also serve as historical data, helping maintenance personnel trace the root causes of problems, analyze long-term trends, and improve system configuration.

[0113] In one optional embodiment, by recording changes in link health scores within a preset time window and writing them to a log file, a comprehensive assessment and tracking of the target communication status is achieved. This not only collects real-time heartbeat monitoring results but also integrates historical scoring data, enabling the observation of communication link status trends over a long time scale. Subsequently, based on the comprehensive analysis of log files, link health scores, and heartbeat monitoring results, potential problems and failure modes of the communication link can be identified more accurately. This provides in-depth insights beyond just real-time status assessments, allowing system operators to predict future communication anomalies based on historical data trends and take preventative measures in advance, thereby enhancing the reliability and stability of the communication system.

[0114] In one alternative embodiment, Figure 2 This is a schematic diagram of a communication heartbeat monitoring device for multidimensional health assessment and dynamic response according to an embodiment of this application, as shown below. Figure 2As shown, the monitoring device mainly includes a management system and an IoT device gateway. The management system includes a configuration and output module, a heartbeat execution module, a health calculation module, and a status determination and early warning module. The IoT device gateway includes a heartbeat execution module and a multi-dimensional data acquisition module.

[0115] Operators can perform configuration operations based on the configuration and output module in the management system. The configuration and output module then sends the device heartbeat cycle to the heartbeat execution module. The heartbeat execution module in the management system transmits this data to the heartbeat execution module in the IoT device gateway via a transmission protocol. At this point, the heartbeat execution module sends a command to the multi-dimensional data acquisition module to collect gateway data and returns the collected data to the heartbeat execution module in the management system via the transmission protocol. The heartbeat execution module in the management system then sends the heartbeat and multi-dimensional data to the health calculation module, which performs health calculations and sends the health data to the status determination and early warning module. Finally, the status determination and early warning module updates the heartbeat cycle and device status.

[0116] Specifically, the entire monitoring device involves two main components: a remote management system responsible for core logic operations and strategy formulation, and an on-site IoT device gateway responsible for data collection and preliminary processing. The management system and the IoT device gateway are connected via a stable communication link to ensure real-time data transmission and accurate command delivery.

[0117] In the management system, the configuration and output module plays the role of the central nervous system. Operators can adjust key configurations such as device heartbeat cycles and health score weighting parameters on this interface. These configuration commands are then sent via the configuration and output module to the heartbeat execution module of the IoT device gateway through a secure transmission protocol. Upon receiving the command, the heartbeat execution module at the IoT device gateway immediately begins periodically sending heartbeat signals and simultaneously issues acquisition commands to the multi-dimensional data acquisition module. The latter quickly extracts various data from the gateway device, including RTT, data verification results, consecutive success / failure counts, device load, power status, and network signal strength.

[0118] The collected multidimensional data is transmitted back to the management system's heartbeat execution module via the original communication link, and then handed over to the health calculation module for scoring. The health calculation module comprehensively evaluates the data across all dimensions based on a preset normalization function and weights to generate an accurate health score. Next, the health score is passed to the status determination and early warning module. This module classifies the link status level based on the score result and triggers an early warning mechanism when necessary, while also deciding whether to adjust the heartbeat cycle to adjust the monitoring frequency.

[0119] Finally, the status determination and early warning module feeds back the updated heartbeat cycle and current device status to the configuration and output module. Simultaneously, through a standardized output interface, it sends health scores, status levels, and other relevant information to the upper-level monitoring system or cloud platform, enabling remote monitoring and intelligent operation and maintenance. This complete data processing and feedback loop allows the monitoring device to dynamically respond to changes in link conditions, ensuring the stability and efficiency of the communication link.

[0120] Figure 3 This is a health calculation logic diagram according to an embodiment of this application, such as... Figure 3 As shown, when the process begins, the time difference normalization algorithm logic, the 4G module signal strength normalization algorithm logic, and the CPU normalization algorithm logic are executed respectively. Then, the above normalization calculation results are weighted to obtain a health score (HS). The status is then determined based on the HS: when HS > 80, the link is very healthy, and the original cycle is maintained; when HS > 60, the link is in a warning state, and an alarm is sent; when HS > 40, the link is in a degraded state, and the monitoring cycle is halved; when HS ≤ 40, the link status is very poor, an alarm is issued, and a reconnection will be initiated upon failure. In summary… Figure 3 It not only reveals the specific algorithm logic for health score calculation, but also clearly outlines the dynamic response decision-making process based on health score, ensuring that the monitoring strategy can be intelligently adjusted according to the actual condition of the link, thereby effectively improving the stability and operation and maintenance efficiency of the communication link.

[0121] In one optional embodiment, a communication heartbeat monitoring device based on multidimensional health assessment and dynamic response mainly includes the following functional modules: heartbeat execution module, multidimensional data acquisition module, health calculation module, status determination and early warning module, configuration and output module, and storage unit.

[0122] The heartbeat execution module is responsible for periodically generating and sending heartbeat request packets and receiving heartbeat response packets from the communication peer. Supported protocols include: Transmission Control Protocol Keep-Alive (TCP Keep-Alive), Message Queue Telemetry Transport Protocol (MQTT PINGREQ / PINGRESP), Bidirectional Communication Protocol (WebSocket Ping / Pong), and custom application layer heartbeat protocols. Configurable parameters include: initial heartbeat period (default 30 seconds), timeout threshold (default 5 seconds), and number of retries (default 2).

[0123] The multi-dimensional data acquisition module synchronously collects the following multi-dimensional status data during each heartbeat interaction: Communication delay data: Records the round-trip time (RTT) of each heartbeat, calculates the average RTT and jitter; Data integrity data: Verifies the heartbeat packet and response packet (e.g., CRC32, MD5), and records the verification pass rate; Connection stability data: Statistically counts the number of consecutive successful / failed heartbeats and the packet loss rate; Device operating status data: Obtains the terminal device's CPU usage, memory usage, temperature, and power status (battery level or supply voltage); Network environment data: For wireless communication devices, collects signal strength, signal-to-noise ratio, operator signal quality, etc.; Data update frequency: Synchronized with the heartbeat cycle, or dynamically sampled according to status changes.

[0124] The health score calculation module receives the raw data output from the multidimensional data acquisition module, performs normalization processing, and then calculates the link health score (HS) using a weighted summation algorithm. The health score calculation formula is as follows:

[0125] HS = × (RTT) + × (Verification Rate) + × (Stability) + × (Equipment load) + × (Signal strength).

[0126] In the formula, ~ The weight coefficients for each dimension satisfy Σ =1, and the weight coefficients of each dimension can be adjusted through the configuration interface; ~ This is a normalization function for each dimension, mapping the original data to the score interval [0, 100]. For example: (RTT) = max(0, 100 - RTT / 100), the smaller the RTT, the higher the score; (Verification Rate) = Verification Pass Rate × 100; (Stability) = Number of consecutive successes × 10, with a maximum of 100; (Device load) = max(0, 100 - CPU% - Memory%); (Signal strength) = (RSSI + 100) (100 / 30)-100 (assuming RSSI range is -100 to -70 dBm);

[0127] The function of the status determination and early warning module is to classify the communication status level based on the health score (HS) and trigger corresponding actions. The specific correspondence between the health range, status level, and response strategy is as follows:

[0128] The status level corresponding to HS≥80 is Healthy (Green), and the response strategy at this time is to maintain the current heartbeat cycle and maintain normal communication; the status level corresponding to 60≤HS<80 is Alert (Yellow), and the response strategy at this time is to issue a "link quality degradation" warning, log the event, and suggest manual attention; the status level corresponding to 40≤HS<60 is Degraded (Orange), and the response strategy at this time is to automatically shorten the heartbeat cycle to 1 / 2 of the original cycle, initiate link diagnosis (such as sending test packets), and notify the upper system; the status level corresponding to HS<40 or 3 consecutive no responses is Dangerous (Red), and the response strategy at this time is to trigger a "communication anomaly" alarm, attempt reconnection (up to 3 times), and report the fault event.

[0129] The configuration and output module provides users with local or remote configuration interfaces, and is also responsible for outputting health scores, status levels and other key information to the monitoring system.

[0130] Storage units are used to store historical data and configuration parameters, ensuring data persistence and traceability. The values ​​in the above process are for illustrative purposes only; specific values ​​need to be determined based on actual needs and are not limited here.

[0131] According to an embodiment of this application, a communication status monitoring system is provided. Figure 4 This is a schematic diagram of a communication status monitoring system according to an embodiment of this application, such as... Figure 4 As shown, the system includes: a first communication device 402, a second communication device 404, and a device management platform 406.

[0132] The first communication device 402 is used to send heartbeat request packets based on a preset frequency or a target frequency; the second communication device 404 is communicatively connected to the first communication device and is used to receive heartbeat request packets and send heartbeat response packets back to the first communication device; the device management platform 406 is communicatively connected to the first and second communication devices and is used to monitor data packets transmitted between any two communication devices based on a preset frequency, obtain multi-dimensional communication status data, quantify and score the multi-dimensional communication status data to obtain a link health score, adjust the preset frequency based on the link health score to obtain a target frequency, and monitor the communication status between any two communication devices based on the target frequency to obtain a target communication status.

[0133] In one optional embodiment, a communication status monitoring system involves a mechanism for dynamically assessing and responding to the health of a communication link. The system includes bidirectional heartbeat interaction between a first communication device and a second communication device, as well as link health monitoring and frequency adjustment functions of a device management platform. The first communication device sends a heartbeat request at a preset or adjusted frequency, and the second communication device sends a response packet upon receiving the request. The device management platform monitors the multi-dimensional status of data packet transmission between the two communicating parties, including but not limited to latency, data integrity, and device operating status. It quantifies and scores the link health to obtain a score, and dynamically adjusts the heartbeat monitoring frequency based on this score, achieving intelligent management of the link status. This mechanism effectively improves the early warning capability for communication instability, responds promptly to changes in link quality, improves resource allocation, reduces misjudgments and fault response delays, thereby significantly enhancing the reliability and efficiency of the communication system.

[0134] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0135] According to an embodiment of this application, a device for monitoring communication status is provided. It should be noted that this device can be used to execute the aforementioned method for monitoring communication status. The specific implementation method and preferred application scenarios are the same as those in the above embodiment, and will not be repeated here.

[0136] Figure 5 This is a schematic diagram of a communication status monitoring device according to an embodiment of this application, such as... Figure 5 As shown, the device includes: a first monitoring module 502, a scoring module 504, an adjustment module 506, and a second monitoring module 508.

[0137] The first monitoring module 502 is used to monitor data packets transmitted between any two communication devices based on a preset frequency to obtain multi-dimensional communication status data; the scoring module 504 is used to quantify and score the multi-dimensional communication status data to obtain a link health score; the adjustment module 506 is used to adjust the preset frequency based on the link health score to obtain a target frequency; the second monitoring module 508 is used to monitor the communication status between any two communication devices based on the target frequency to obtain a target communication status.

[0138] Optionally, the first monitoring module is used to identify a first communication device among any two communication devices, and a second communication device that communicates with the first communication device; based on a preset frequency, control the first communication device to send a heartbeat request packet to the second communication device, and receive a heartbeat response packet from the second communication device; based on the heartbeat request packet and the heartbeat response packet, determine multi-dimensional communication status data, wherein the data packet includes the heartbeat request packet and the heartbeat response packet.

[0139] Optionally, the scoring module is used to normalize the multi-dimensional communication status data to obtain normalized data; based on the preset weight coefficients corresponding to the multi-dimensional communication status data, the normalized data is weighted to obtain the link health score.

[0140] Optionally, the scoring module is also used to quantify and score multi-dimensional communication status data using a link health scoring model to obtain a link health score. The link health scoring model is trained based on historical multi-dimensional communication status data and labeled link health scores.

[0141] Optionally, the adjustment module is used to determine the target frequency as the preset frequency when the link health score is greater than or equal to the preset score; and to increase the preset frequency to obtain the target frequency when the link health score is less than the preset score.

[0142] Optionally, the second monitoring module is used to control the first communication device among any two communication devices to send a heartbeat request packet to the second communication device based on the target frequency, and obtain the heartbeat monitoring result, wherein the heartbeat monitoring result is used to indicate the status of the first communication device receiving the heartbeat response packet; and to determine the target communication status based on the link health score and the heartbeat monitoring result.

[0143] Optionally, the device is further configured to determine a target health range corresponding to the link health score from multiple health ranges, wherein different health ranges correspond to different early warning response strategies; and to determine a target early warning response strategy from multiple early warning response strategies based on the target health range.

[0144] Optionally, the multi-dimensional communication status data includes at least two of the following: communication delay parameters, data integrity parameters, connection stability parameters, communication device operating status parameters, and network environment parameters. The communication delay parameters characterize the time delay between the moment the first communication device receives the heartbeat response packet and the moment it sends the heartbeat request packet. The data integrity parameters characterize the data content integrity of the heartbeat response packet compared to the heartbeat request packet. The connection stability parameters characterize the number of times the first communication device successfully receives the heartbeat response packet consecutively. The communication device operating status parameters characterize the operating status of the first communication device and / or the second communication device. The network environment parameters characterize the wireless network status between the first communication device and the second communication device.

[0145] Optionally, the device is further configured to acquire processor utilization, memory occupancy, device temperature, and power status of the first communication device and / or the second communication device, wherein the power status is used to characterize battery power or supply voltage; determine communication device operating status parameters based on processor utilization, memory occupancy, device temperature, and / or power status; and / or acquire signal strength, signal-to-noise ratio, and operator signal quality level of the wireless network between the first and second communication devices; and determine network environment parameters based on signal strength, signal-to-noise ratio, and / or operator signal quality level.

[0146] Optionally, the device is also used to write the link health score within a preset time window into a log file; and to determine the target communication status based on the log file, the link health score, and the heartbeat monitoring results.

[0147] Embodiments of this application also provide a vehicle, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods described in various embodiments of this application when it runs.

[0148] Embodiments of this application also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.

[0149] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.

[0150] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.

[0151] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.

[0152] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0153] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0154] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0155] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0156] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0157] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for monitoring communication status, characterized in that, Applied to a device management platform, the method includes: Based on a preset frequency, monitor the data packets transmitted between any two communication devices to obtain multi-dimensional communication status data; The multi-dimensional communication status data is quantitatively scored to obtain a link health score; The preset frequency is adjusted based on the link health score to obtain the target frequency; Based on the target frequency, the communication status between any two communication devices is monitored to obtain the target communication status.

2. The communication status monitoring method according to claim 1, characterized in that, Based on a preset frequency, data packets transmitted between any two communication devices are monitored to obtain multi-dimensional communication status data, including: Identify a first communication device among any two communication devices, and a second communication device that is connected to the first communication device. Based on the preset frequency, the first communication device is controlled to send a heartbeat request packet to the second communication device and receive a heartbeat response packet from the second communication device. Based on the heartbeat request packet and the heartbeat response packet, the multi-dimensional communication status data is determined, wherein the data packet contains the heartbeat request packet and the heartbeat response packet.

3. The communication status monitoring method according to claim 1, characterized in that, The multi-dimensional communication status data is quantitatively scored to obtain a link health score, including: The multi-dimensional communication status data is normalized to obtain normalized data; Based on the preset weight coefficients corresponding to the multi-dimensional communication status data, the normalized data is weighted to obtain the link health score.

4. The communication status monitoring method according to claim 1, characterized in that, The multi-dimensional communication status data is quantitatively scored to obtain a link health score, including: A link health scoring model is used to quantify and score the multi-dimensional communication status data to obtain the link health score. The link health scoring model is trained based on historical multi-dimensional communication status data and labeled link health scores.

5. The communication status monitoring method according to claim 1, characterized in that, The target frequency is obtained by adjusting the preset frequency based on the link health score, including: If the link health score is greater than or equal to the preset score, the target frequency is determined to be the preset frequency; If the link health score is less than the preset score, the preset frequency is increased to obtain the target frequency.

6. The communication status monitoring method according to claim 1, characterized in that, Based on the target frequency, monitor the communication status between any two communication devices to obtain the target communication status, including: Based on the target frequency, the first communication device in any two communication devices is controlled to send a heartbeat request packet to the second communication device to obtain a heartbeat monitoring result, wherein the heartbeat monitoring result is used to indicate the status of the first communication device receiving the heartbeat response packet; The target communication status is determined based on the link health score and the heartbeat monitoring results.

7. The communication status monitoring method according to any one of claims 1 to 6, characterized in that, The method further includes: From multiple health ranges, the target health range corresponding to the link health score is determined, wherein different health ranges correspond to different early warning response strategies; Based on the target health range, a target early warning response strategy is determined from multiple early warning response strategies.

8. The communication status monitoring method according to any one of claims 1 to 6, characterized in that, The multi-dimensional communication status data includes at least two of the following: communication delay parameters, data integrity parameters, connection stability parameters, communication device operating status parameters, and network environment parameters. The communication delay parameter characterizes the time delay between the moment the first communication device receives a heartbeat response packet and the moment it sends a heartbeat request packet. The data integrity parameter characterizes the data content integrity of the heartbeat response packet compared to the heartbeat request packet. The connection stability parameter characterizes the number of times the first communication device successfully receives the heartbeat response packet consecutively. The communication device operating status parameter characterizes the operating status of the first communication device and / or the second communication device. The network environment parameter characterizes the wireless network status between the first communication device and the second communication device.

9. The communication status monitoring method according to claim 8, characterized in that, The method further includes: Acquire the processor utilization rate, memory usage rate, device temperature, and power status of the first communication device and / or the second communication device, wherein the power status is used to characterize battery level or supply voltage; determine the operating status parameters of the communication device based on the processor utilization rate, the memory usage rate, the device temperature, and / or the power status; and / or, The signal strength, signal-to-noise ratio, and carrier signal quality level of the wireless network between the first communication device and the second communication device are obtained; the network environment parameters are determined based on the signal strength, the signal-to-noise ratio, and / or the carrier signal quality level.

10. A communication status monitoring system, characterized in that, include: The first communication device is used to send heartbeat request packets based on a preset frequency or a target frequency; The second communication device is communicatively connected to the first communication device and is used to receive the heartbeat request packet and send a heartbeat response packet back to the first communication device. The device management platform is communicatively connected to the first communication device and the second communication device. It is used to monitor the data packets transmitted between any two communication devices based on the preset frequency, obtain multi-dimensional communication status data, quantify and score the multi-dimensional communication status data to obtain a link health score, adjust the preset frequency based on the link health score to obtain the target frequency, and monitor the communication status between any two communication devices based on the target frequency to obtain the target communication status.