A method and system for monitoring I2C bus communication anomalies

By setting up an anomaly monitoring device and a broadcast signal transceiver on the I2C bus, analyzing feedback signals and generating processing solutions, the problem of low efficiency in I2C bus communication anomalies is solved, and automated anomaly handling and comprehensive detection are achieved.

CN116668265BActive Publication Date: 2026-04-24LANZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LANZHOU UNIV
Filing Date
2023-06-21
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing technologies are inefficient and cannot handle I2C bus communication anomalies automatically, which is time-consuming and labor-intensive.

Method used

An anomaly monitoring device is established on the I2C bus, and a broadcast signal transceiver is set at each device connection point to the bus. A feedback signal is generated by sending a clock signal through the master device. The anomaly cause database is used to analyze the anomaly cause and generate a solution.

Benefits of technology

It improves the efficiency and intelligence of I2C bus anomaly monitoring, and realizes automatic handling and comprehensive detection of anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668265B_ABST
    Figure CN116668265B_ABST
Patent Text Reader

Abstract

The application discloses a kind of methods and systems for monitoring I2C bus communication exception, it is related to the field of communication detection, especially to a kind of methods and systems for monitoring I2C bus communication exception, it includes establishing exception monitoring device on I2C bus, and setting broadcast signal transceiver device at each device and I2C bus connection;Master device sends clock signal to slave device, and broadcast signal transceiver device generates a feedback signal;Establish exception reason database;Based on exception monitoring device, after receiving feedback signal, the signal characteristics of feedback signal are acquired;Based on signal characteristics, it is judged whether signal characteristics are abnormal;If abnormal, based on signal characteristics, abnormal phenomenon is acquired, and abnormal reason is judged;Based on abnormal reason, generate multiple abnormal processing schemes, and according to multiple abnormal processing schemes, attempt abnormal processing is carried out until exception disappears.The application has the effect of improving the efficiency and intelligence of I2C bus exception monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication detection, and in particular to a method and system for monitoring I2C bus communication anomalies. Background Technology

[0002] The I2C bus system is a simple, bidirectional two-wire synchronous serial bus. It only requires two wires to transmit information between devices connected to the bus. The two wires of I2C are SDA (serial data line) and SCL (serial clock line), both of which are bidirectional I / O lines. The I2C bus system is widely used in various electrical appliances.

[0003] In existing technologies, when a communication anomaly occurs on the I2C bus, the device is usually disassembled and checked one by one. By testing all slave devices, it can be determined whether any slave device is abnormal. If all slave devices are found to be normal, it can be used to prove that the master device is abnormal. However, this detection method is inefficient and cannot automatically handle anomalies, which is time-consuming and labor-intensive.

[0004] Therefore, we propose a method and system for monitoring I2C bus communication anomalies to solve the above problems. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for monitoring I2C bus communication anomalies, so as to solve the problems mentioned in the background art.

[0006] Firstly, this application provides a solution for monitoring I2C bus communication anomalies, which employs the following technical solution:

[0007] An anomaly monitoring device is established on the I2C bus, and a broadcast signal transceiver is set up at each device's connection point with the I2C bus.

[0008] The master device sends a clock signal to the slave device. After receiving the clock signal, the broadcast signal transceiver generates a feedback signal and broadcasts it on the I2C bus.

[0009] Establish an anomaly cause database, which contains standard anomalies corresponding to different anomalies;

[0010] Based on the anomaly monitoring device, after receiving the feedback signal, the device processes the feedback signal to obtain the signal characteristics of the feedback signal.

[0011] Based on the signal characteristics, they are compared with preset standard characteristics to determine whether the signal characteristics are abnormal.

[0012] If an anomaly is detected, the anomaly is obtained based on the signal characteristics, and the anomaly is compared with the standard anomaly in the anomaly cause database to determine the cause of the anomaly.

[0013] Based on the cause of the anomaly, multiple anomaly handling schemes are generated, and trial anomaly handling is performed according to the multiple anomaly handling schemes until the anomaly disappears.

[0014] By adopting the above technical solution, an anomaly monitoring device is established on the I2C bus, and a broadcast signal transceiver is set at the connection point between each device and the I2C bus. The clock signal is generated based on the communication between devices, and a feedback signal is generated. The feedback signal is used to determine whether an anomaly has occurred on the I2C bus. When an anomaly occurs, the feedback signal is analyzed to determine the cause of the anomaly and an anomaly handling plan is generated. The anomalies on the I2C bus are handled automatically, which improves the efficiency and intelligence of I2C bus anomaly monitoring.

[0015] Preferably, the step of the master device sending a clock signal to the slave device, the broadcast signal transceiver receiving the clock signal, generating a feedback signal, and broadcasting it on the I2C bus includes:

[0016] The master device sends a clock signal to the slave device, the clock signal including a master segment signal and a slave segment signal;

[0017] After receiving the clock signal, the broadcast signal transceiver monitors the slave device based on the master segment signal and generates a feedback signal for the slave device. Based on the slave segment signal, it monitors the I2C bus and generates a detection signal for the I2C bus.

[0018] The detection signal is broadcast on the I2C bus, and the detection signals generated by the broadcast signal transceivers of other slave devices are collected to generate an aggregated detection signal;

[0019] The feedback signal and the aggregated detection signal are fitted together to generate a feedback signal, which is then broadcast on the I2C bus.

[0020] By adopting the above technical solution, the master device sends a clock signal, and after receiving the clock signal, the broadcast signal transceiver performs a self-test on the slave device to generate a feedback signal. At the same time, it generates a detection signal for I2C bus detection and broadcasts the feedback signal and the detection signal. The detection signals sent by different slave devices are aggregated in the I2C bus to generate an aggregated detection signal, which improves the comprehensiveness of the detection of the I2C bus and different devices.

[0021] Preferably, the step of processing the feedback signal and obtaining its signal characteristics after receiving it based on the anomaly monitoring device includes:

[0022] Based on the anomaly monitoring device, the feedback signal is received and the feedback signal is decomposed to obtain the feedback signal and the aggregated detection signal;

[0023] Based on the feedback signal, waveform processing is performed on the feedback signal to obtain the feedback signal waveform and generate the feedback signal characteristics of the feedback signal;

[0024] Based on the aggregated detection signal, waveform processing is performed on the aggregated detection signal to obtain the aggregated detection signal waveform, and detection signal features of the aggregated detection signal are generated.

[0025] The feedback signal features are fitted to the detection signal features to obtain the signal features of the feedback signal.

[0026] By adopting the above technical solution, the feedback signal and the aggregated detection signal are processed to obtain the waveforms of the feedback signal and the aggregated detection signal, and feedback signal features and aggregated detection signal features are generated. The feedback signal features and aggregated detection signal features are fitted to generate the signal features of the feedback signal, thereby improving the accuracy of the recognition of the signal features of the feedback signal.

[0027] Preferably, the step of comparing the signal features with preset standard features to determine whether the signal features are abnormal includes:

[0028] Based on the signal features, the feature values ​​of the signal features are obtained, and based on the feature values, they are compared with the standard feature values ​​of preset standard features to obtain the matching degree;

[0029] Based on the matching degree, the matching degree is compared with a preset threshold to determine whether the matching degree is within the threshold. If not, the signal feature is determined to be abnormal.

[0030] By adopting the above technical solution, feature values ​​of signal features are extracted based on signal characteristics and compared with standard feature values. Based on the matching degree, it is determined whether the signal features are abnormal, thereby improving the accuracy of anomaly monitoring.

[0031] Preferably, the step of obtaining the abnormal phenomenon based on the signal characteristics and comparing it with the standard abnormal phenomena in the abnormality cause database to determine the cause of the abnormality includes:

[0032] If the signal characteristics are abnormal, the abnormal phenomenon is determined based on the feedback signal waveform and the aggregated detection signal waveform.

[0033] Based on the abnormal cause database, a variety of standard abnormal phenomena are obtained, and the abnormal phenomena are compared and traversed to generate a first comparison value.

[0034] The generated first comparison values ​​are sorted, and a passing score is set. The comparison values ​​below the passing score are discarded to obtain the second comparison value.

[0035] Based on the second comparison value, obtain the standard abnormal phenomenon corresponding to each second comparison value, and determine the cause of the abnormality.

[0036] By adopting the above technical solution, when an anomaly is detected in the signal characteristics, the waveforms of the feedback signal and the aggregated detection signal are analyzed to determine the anomaly. At the same time, based on the anomaly cause database, the anomaly is compared with the standard anomaly to determine the cause of the anomaly, thus improving the comprehensiveness of the anomaly cause analysis.

[0037] Preferably, the step of generating multiple exception handling schemes based on the cause of the exception, and performing trial exception handling according to the multiple exception handling schemes until the exception disappears, includes:

[0038] Based on the aforementioned causes of the anomaly, the causes of the anomaly are analyzed to determine the location of the anomaly. There are multiple causes of the anomaly, and each cause of the anomaly corresponds to a specific location of the anomaly.

[0039] Based on the cause of the anomaly and the location of the anomaly, at least one anomaly handling plan is generated for each cause of the anomaly.

[0040] Based on the aforementioned exception handling scheme, the exception is handled, and normal communication on the I2C bus is restored.

[0041] By adopting the above technical solution, at least one exception handling scheme is generated for each possible exception cause based on the obtained multiple exception causes, and the exception handling scheme is executed to handle the exception of the I2C bus, thereby improving the intelligence of I2C exception handling.

[0042] Preferably, after the step of executing the exception handling scheme, handling the exception, and restoring normal communication on the I2C bus, the method further includes:

[0043] If the anomaly persists after all the aforementioned anomaly handling schemes have been executed, the anomaly monitoring device generates an interrupt signal and broadcasts it.

[0044] Upon receiving an interrupt signal, both the master and slave devices will automatically reset and power off, restarting the I2C bus.

[0045] By adopting the above technical solution, when the exception on the I2C bus cannot be handled by the exception handling scheme, the exception monitoring device generates an interrupt signal to reset all devices on the I2C bus and restart them after power failure, thereby improving the fault tolerance in exception handling.

[0046] Secondly, this application provides a system for monitoring I2C bus communication anomalies, employing the following technical solution:

[0047] Signal transmission module: used to send clock signals to each slave device, master device and I2C bus, and generate feedback signals according to the clock signals;

[0048] Anomaly monitoring module: configured to be connected to the signal transmitting module for receiving feedback signals generated by the signal transmitting module;

[0049] Processing solution generation module: configured to connect to the anomaly monitoring module for generating corresponding anomaly processing solutions based on the anomalies detected by the anomaly monitoring module;

[0050] Exception handling module: configured to connect to the processing scheme generation module via data connection, and used to execute the exception handling scheme generated by the processing scheme generation module.

[0051] Preferably, the anomaly monitoring module includes a monitoring unit and a signal analysis unit;

[0052] The detection unit is used to detect the I2C bus and the master and slave devices connected to the I2C bus, detect abnormalities, and receive feedback signals.

[0053] The signal analysis unit is used to analyze the received feedback signal and determine the cause of the abnormality.

[0054] Preferably, the processing solution generation module includes an anomaly cause database and a solution generation unit;

[0055] The database of anomaly causes is used to store common I2C anomalies and their corresponding standard anomalies.

[0056] The solution generation unit matches the corresponding abnormal phenomenon in the abnormal cause database according to the abnormal cause, and generates an abnormal handling solution.

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

[0058] 1. An anomaly monitoring device is established on the I2C bus, and a broadcast signal transceiver is set up at the connection point between each device and the I2C bus. The clock signal is generated based on the communication between devices, and a feedback signal is generated. The feedback signal is used to determine whether an anomaly has occurred on the I2C bus. When an anomaly occurs, the feedback signal is analyzed to determine the cause of the anomaly and generate an anomaly handling plan. The anomalies on the I2C bus are handled automatically, which improves the efficiency and intelligence of I2C bus anomaly monitoring.

[0059] 2. After receiving the clock signal, the broadcast signal transceiver performs a self-test on its slave device to generate a feedback signal, and at the same time generates a detection signal for I2C bus detection. The feedback signal and the detection signal are broadcast. The detection signals from different slave devices are aggregated in the I2C bus to generate an aggregated detection signal, which improves the comprehensiveness of the detection of the I2C bus and different devices.

[0060] 3. When an exception on the I2C bus cannot be handled by the exception handling scheme, the exception monitoring device generates an interrupt signal to reset all devices on the I2C bus and restart them after power failure, thereby improving the fault tolerance in exception handling. Attached Figure Description

[0061] Figure 1 This is a flowchart illustrating the steps of a method for monitoring I2C bus communication anomalies according to the present invention.

[0062] Figure 2 This is a flowchart illustrating the sub-steps of steps S200 and S400 in a method for monitoring I2C bus communication anomalies according to the present invention.

[0063] Figure 3 This is a flowchart illustrating the sub-steps of steps S500 and S600 in a method for monitoring I2C bus communication anomalies according to the present invention.

[0064] Figure 4 This is a flowchart illustrating steps S700 and the sub-steps following S700 in a method for monitoring I2C bus communication anomalies according to the present invention.

[0065] Figure 5 This is a block diagram of a system for monitoring I2C bus communication anomalies according to the present invention.

[0066] Explanation of reference numerals in the attached diagram: 1. Signal transmission module; 2. Anomaly monitoring module; 3. Processing scheme generation module; 4. Anomaly handling module. Detailed Implementation

[0067] The following is in conjunction with the appendix Figure 1-5 This application will be described in further detail, but the embodiments of the present invention are not limited thereto.

[0068] This application discloses a method and system for monitoring I2C bus communication anomalies.

[0069] In this embodiment, refer to Figure 1 A method for monitoring I2C bus communication anomalies includes the following steps:

[0070] S100: Establish an anomaly monitoring device on the I2C bus and set up a broadcast signal transceiver at each device's connection point with the I2C bus;

[0071] S200: The master device sends a clock signal to the slave device. After receiving the clock signal, the broadcast signal transceiver generates a feedback signal and broadcasts it on the I2C bus.

[0072] S300: Establish an anomaly cause database, which contains standard anomalies corresponding to different anomalies.

[0073] S400: Based on the anomaly monitoring device, after receiving the feedback signal, it processes the feedback signal to obtain the signal characteristics of the feedback signal;

[0074] S500: Based on signal characteristics, compare them with preset standard characteristics to determine whether the signal characteristics are abnormal;

[0075] S600: If an anomaly is detected, the anomaly is identified based on the signal characteristics, and the anomaly is compared with the standard anomalies in the anomaly cause database to determine the cause of the anomaly.

[0076] S700: Based on the cause of the anomaly, generate multiple anomaly handling schemes and perform trial anomaly handling according to the multiple anomaly handling schemes until the anomaly disappears.

[0077] It should be noted that the above steps are only the preferred implementation order. In the actual implementation process, some steps can be changed without affecting the overall implementation effect.

[0078] Reference Figure 2 In step S200, the master device sends a clock signal to the slave device, and the broadcast signal transceiver receives the clock signal, generates a feedback signal, and broadcasts it on the I2C bus. This includes:

[0079] S201: The master device sends a clock signal to the slave device. The clock signal includes a master segment signal and a slave segment signal.

[0080] S202: After receiving the clock signal, the broadcast signal transceiver monitors the slave device based on the master segment signal and generates a feedback signal from the slave device. Based on the slave segment signal, it monitors the I2C bus and generates a detection signal for the I2C bus.

[0081] S203: Broadcast the detection signal on the I2C bus and collect the detection signals generated by the broadcast signal transceivers of other slave devices to generate an aggregated detection signal;

[0082] S204: Fits the feedback signal and the aggregated detection signal to generate a feedback signal, and broadcasts it on the I2C bus.

[0083] In application, the master device sends a clock signal to the I2C bus. When the slave device's broadcast signal transceiver receives the clock signal, it generates a feedback signal. For example, in an I2C bus with one master device and two slave devices, after the master device sends the clock signal, the broadcast signal transceivers of the two slave devices receive the clock signal and broadcast the generated feedback signal and two detection signals to the I2C bus. The two detection signals are then aggregated in the I2C bus to generate a combined detection signal.

[0084] Reference Figure 2 In step S400, the step of processing the feedback signal and obtaining its signal characteristics based on the feedback signal after receiving it, based on the anomaly monitoring device, includes:

[0085] S401: Based on the anomaly monitoring device, receive feedback signals, and decompose the feedback signals to obtain feedback signals and aggregated detection signals;

[0086] S402: Based on the feedback signal, perform waveform processing on the feedback signal to obtain the feedback signal waveform and generate the feedback signal characteristics;

[0087] S403: Based on the aggregated detection signal, perform waveform processing on the aggregated detection signal to obtain the aggregated detection signal waveform and generate the detection signal features of the aggregated detection signal;

[0088] S404: Fit the feedback signal features to the detection signal features to obtain the signal features of the feedback signal.

[0089] In application, the anomaly monitoring device analyzes the received feedback signals to obtain their signal characteristics. For example, in an I2C bus with one master device and two slave devices, the anomaly monitoring device receives feedback signals from the two slave devices, decomposes the feedback signals, obtains the waveforms of the feedback signals and aggregated detection signals, generates the signal characteristics of the feedback signals and aggregated detection signals based on the waveforms, and then fits the signal characteristics to obtain the signal characteristics of the feedback signals.

[0090] Reference Figure 3In step S500, the step of comparing the signal characteristics with preset standard characteristics to determine whether the signal characteristics are abnormal includes:

[0091] S501: Based on signal features, obtain the feature values ​​of the signal features, and compare them with the standard feature values ​​of preset standard features to obtain the matching degree;

[0092] S502: Based on the matching degree, compare the matching degree with a preset threshold to determine whether the matching degree is within the threshold. If not, determine that the signal characteristics are abnormal.

[0093] In application, the signal characteristics of the feedback signal are quantified to obtain the characteristic values ​​of the signal characteristics. The characteristic values ​​are compared with the standard characteristic values ​​to obtain the matching degree between the two values. At the same time, it is determined whether the matching degree is within an acceptable threshold range. If it exceeds the threshold range, it indicates that the signal characteristics are abnormal.

[0094] Reference Figure 3 In step S600, if an anomaly is detected, the abnormal phenomenon is obtained based on signal characteristics, and the abnormal phenomenon is compared with the standard abnormal phenomena in the abnormality cause database to determine the cause of the anomaly. This step includes:

[0095] S601: If there is an abnormality in the signal characteristics, the abnormality is determined based on the feedback signal waveform and the aggregated detection signal waveform;

[0096] S602: Based on the abnormal cause database, obtain multiple standard abnormal phenomena, and compare them with the abnormal phenomena to generate the first comparison value;

[0097] S603: Sort the generated first comparison values, set a passing score, discard comparison values ​​below the passing score, and obtain the second comparison values;

[0098] S604: Based on the second comparison value, obtain the standard abnormal phenomenon corresponding to each second comparison value, and determine the cause of the abnormality.

[0099] In application, when an anomaly is detected in the signal characteristics, the anomaly is identified and identified. This anomaly is then compared with standard anomalies in the anomaly cause database to determine the cause of the anomaly. For example, if a 24C04 exists on an I2C bus, and the data written to it differs from the data read from it, this phenomenon is compared with standard anomalies in the anomaly cause database. Comparison values ​​are obtained, and those below the passing grade are discarded. The remaining comparison value is then used to identify the corresponding standard anomaly. This might reveal that the 24C04 is currently in a protection state, preventing data from being written.

[0100] Reference Figure 4In step S700, the step of generating multiple exception handling schemes based on the cause of the exception, and performing trial exception handling according to the multiple exception handling schemes until the exception disappears, includes:

[0101] S701: Based on the cause of the anomaly, analyze the cause of the anomaly and determine the location of the anomaly. There are multiple causes of the anomaly, and each cause of the anomaly corresponds to an anomaly location.

[0102] S702: Based on the cause and location of the anomaly, generate at least one anomaly handling plan for each cause of the anomaly;

[0103] S703: Based on the exception handling scheme, execute the exception handling scheme, handle the exception, and restore normal communication of the I2C bus.

[0104] In application, the location of the anomaly is analyzed based on the cause of the anomaly. During the analysis of the cause of the anomaly, the same anomaly may occur due to different reasons. Therefore, there are multiple causes of the anomaly, and different causes of the anomaly also correspond to different locations of the anomaly. Corresponding handling solutions are generated based on different influencing causes. At the same time, since a solution may be unpredictable and may not be able to handle the anomaly, multiple anomaly handling solutions can be generated for some anomaly causes. The anomaly handling operation is executed according to the handling method provided by the anomaly handling solution to restore I2C bus communication.

[0105] Reference Figure 4 After step S700, following the step of executing the exception handling scheme to handle the exception and restore normal communication on the I2C bus, the following steps are also included:

[0106] S711: If the exception still does not disappear after all exception handling procedures have been executed, the exception monitoring device will generate an interrupt signal and broadcast it.

[0107] S712: After receiving an interrupt signal, the master and slave devices will automatically reset and power off, restarting the I2C bus.

[0108] In application, if the I2C communication anomaly is still found after all exception handling schemes have been executed, the anomaly monitoring device will broadcast an interrupt signal to the I2C bus, causing all devices on the I2C bus to be reset and restarted after power failure, thus achieving a complete cleanup of the I2C bus.

[0109] Reference Figure 5 A system for monitoring I2C bus communication anomalies, comprising:

[0110] Signal transmission module 1: Used to send clock signals to each slave device, master device and I2C bus, and generate feedback signals according to the clock signals;

[0111] Anomaly monitoring module 2: configured to be connected to signal transmission module 1, used to receive feedback signals generated by signal transmission module 1;

[0112] Processing solution generation module 3: configured to connect with the anomaly monitoring module 2 for generating corresponding anomaly processing solutions based on the anomalies detected by the anomaly monitoring module 2;

[0113] Exception handling module 4: Configured to connect to the exception handling scheme generation module 3 via data connection, and used to execute the exception handling scheme generated by the exception handling scheme generation module 3.

[0114] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A method for monitoring I2C bus communication anomalies, characterized in that, Includes the following steps: An anomaly monitoring device is established on the I2C bus, and a broadcast signal transceiver is set up at each device's connection point with the I2C bus. The master device sends a clock signal to the slave device. After receiving the clock signal, the broadcast signal transceiver generates a feedback signal and broadcasts it on the I2C bus. Establish an anomaly cause database, which contains standard anomalies corresponding to different anomalies; Based on the anomaly monitoring device, after receiving the feedback signal, the device processes the feedback signal to obtain the signal characteristics of the feedback signal. Based on the signal characteristics, they are compared with preset standard characteristics to determine whether the signal characteristics are abnormal. If an anomaly is detected, the anomaly is obtained based on the signal characteristics, and the anomaly is compared with the standard anomaly in the anomaly cause database to determine the cause of the anomaly. Based on the cause of the anomaly, multiple anomaly handling schemes are generated, and trial anomaly handling is performed according to the multiple anomaly handling schemes until the anomaly disappears.

2. The method for monitoring I2C bus communication anomalies according to claim 1, characterized in that, The steps of the master device sending a clock signal to the slave device, the broadcast signal transceiver receiving the clock signal, generating a feedback signal, and broadcasting it on the I2C bus include: The master device sends a clock signal to the slave device, the clock signal including a master segment signal and a slave segment signal; After receiving the clock signal, the broadcast signal transceiver monitors the slave device based on the master segment signal and generates a feedback signal for the slave device. Based on the slave segment signal, it monitors the I2C bus and generates a detection signal for the I2C bus. The detection signal is broadcast on the I2C bus, and the detection signals generated by the broadcast signal transceivers of other slave devices are collected to generate an aggregated detection signal; The feedback signal and the aggregated detection signal are fitted together to generate a feedback signal, which is then broadcast on the I2C bus.

3. The method for monitoring I2C bus communication anomalies according to claim 2, characterized in that, The step of processing the feedback signal and obtaining its signal characteristics after receiving it based on the anomaly monitoring device includes: Based on the anomaly monitoring device, the feedback signal is received and the feedback signal is decomposed to obtain the feedback signal and the aggregated detection signal; Based on the feedback signal, waveform processing is performed on the feedback signal to obtain the feedback signal waveform and generate the feedback signal characteristics of the feedback signal; Based on the aggregated detection signal, waveform processing is performed on the aggregated detection signal to obtain the aggregated detection signal waveform, and detection signal features of the aggregated detection signal are generated. The feedback signal features are fitted to the detection signal features to obtain the signal features of the feedback signal.

4. The method for monitoring I2C bus communication anomalies according to claim 1, characterized in that, The step of comparing the signal features with preset standard features to determine whether the signal features are abnormal includes: Based on the signal features, the feature values ​​of the signal features are obtained, and based on the feature values, they are compared with the standard feature values ​​of preset standard features to obtain the matching degree; Based on the matching degree, the matching degree is compared with a preset threshold to determine whether the matching degree is within the threshold. If not, the signal feature is determined to be abnormal.

5. The method for monitoring I2C bus communication anomalies according to claim 3, characterized in that, If an anomaly is detected, the following steps are taken: Based on the signal characteristics, the abnormal phenomenon is identified; and based on the abnormal phenomenon, it is compared with the standard abnormal phenomena in the anomaly cause database to determine the cause of the anomaly. If the signal characteristics are abnormal, the abnormal phenomenon is determined based on the feedback signal waveform and the aggregated detection signal waveform. Based on the abnormal cause database, a variety of standard abnormal phenomena are obtained, and the abnormal phenomena are compared and traversed to generate a first comparison value. The generated first comparison values ​​are sorted, and a passing score is set. The comparison values ​​below the passing score are discarded to obtain the second comparison value. Based on the second comparison value, obtain the standard abnormal phenomenon corresponding to each second comparison value, and determine the cause of the abnormality.

6. The method for monitoring I2C bus communication anomalies according to claim 1, characterized in that, The step of generating multiple exception handling schemes based on the cause of the exception, and performing trial exception handling according to the multiple exception handling schemes until the exception disappears, includes: Based on the aforementioned causes of the anomaly, the causes of the anomaly are analyzed to determine the location of the anomaly. There are multiple causes of the anomaly, and each cause of the anomaly corresponds to a specific location of the anomaly. Based on the cause of the anomaly and the location of the anomaly, at least one anomaly handling plan is generated for each cause of the anomaly. Based on the aforementioned exception handling scheme, the exception is handled, and normal communication on the I2C bus is restored.

7. The method for monitoring I2C bus communication anomalies according to claim 6, characterized in that, After the step of executing the exception handling scheme based on the exception handling scheme, handling the exception, and restoring normal communication of the I2C bus, the method further includes: If the anomaly persists after all the aforementioned anomaly handling schemes have been executed, the anomaly monitoring device generates an interrupt signal and broadcasts it. Upon receiving an interrupt signal, both the master and slave devices will automatically reset and power off, restarting the I2C bus.

8. A system for monitoring I2C bus communication anomalies, used to implement the method for monitoring I2C bus communication anomalies as described in any one of claims 1-7, characterized in that, include: Signal transmission module (1): used to send clock signals to each slave device, master device and I2C bus, and generate feedback signals according to the clock signals; Anomaly monitoring module (2): configured to be connected to the signal sending module (1) for receiving feedback signals generated by the signal sending module (1); Processing solution generation module (3): configured to connect with the anomaly monitoring module (2) for generating corresponding anomaly processing solutions based on the anomalies detected by the anomaly monitoring module (2); Exception handling module (4): configured to connect to the processing scheme generation module (3) via data connection, for use in... The exception handling scheme generated by the processing scheme generation module (3) is executed.

9. A system for monitoring I2C bus communication anomalies according to claim 8, characterized in that, include: The anomaly monitoring module (2) includes a monitoring unit and a signal analysis unit; The monitoring unit is used to detect the I2C bus and the master and slave devices connected to the I2C bus, detect abnormal situations, and receive feedback signals. The signal analysis unit is used to analyze the received feedback signal and determine the cause of the abnormality.

10. A system for monitoring I2C bus communication anomalies according to claim 8, characterized in that, include: The processing solution generation module (3) includes an anomaly cause database and a solution generation unit; The database of anomaly causes is used to store common I2C anomalies and their corresponding standard anomalies. The solution generation unit matches the corresponding abnormal phenomenon in the abnormal cause database according to the abnormal cause, and generates an abnormal handling solution.

Citation Information

Patent Citations

  • Link abnormity tracing method, cluster, node and system

    CN113067747A

  • UVM-based universal verification platform architecture automatic generation method

    CN115576768A