Data communication method and device
By monitoring the I2C communication status to generate error characteristics, and using an error pattern database to match processing strategies, intelligent retransmission and self-recovery mechanisms are dynamically selected, thus solving the problem of high false positive rate in I2C communication and improving communication stability and success rate.
Patent Information
- Application Number
- CN202511406391.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-28
- Publication Date
- 2026-02-13
AI Technical Summary
In complex or heavily interfered application scenarios, I2C communication is easily affected by external noise, system response delays and other factors, leading to communication errors. Existing processing methods have a high misjudgment rate, low retry efficiency and cannot accurately identify the cause of the error.
By monitoring the communication status on the integrated circuit bus between the master and slave devices, error characteristics are generated. The corresponding error patterns are matched using an error pattern database, and a dynamic processing strategy is selected, including intelligent retransmission and self-recovery mechanisms, to improve communication stability.
It improves the real-time performance and stability of I2C communication exception handling, dynamically selects processing strategies, and enhances the success rate of data communication and system adaptability.
Smart Images

Figure CN121523934A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data communication method, an integrated circuit chip, a data communication device and a computer storage medium / computer program product. BACKGROUND
[0002] I2C (Inter-Integrated Circuit) bus is a commonly used serial communication protocol, which is widely used in embedded systems for communication between master and slave devices. However, in complex or severely interfered application scenarios, I2C communication is easily affected by external noise, system response delay and other factors, resulting in communication errors such as ACK (Acknowledgment) loss, START / STOP condition abnormality, timing conflict, etc. The common processing methods currently include simple retry mechanism or bus reset, but such methods have problems such as misjudgment, low retry efficiency, and inability to accurately identify error causes. SUMMARY
[0003] To solve the above technical problems, the present application provides a data communication method, an integrated circuit chip, a data communication device and a computer storage medium / computer program product.
[0004] To solve the above technical problems, the present application provides a data communication method, which comprises: listening to the communication state on the integrated circuit bus between a master device and a slave device;
[0005] When the communication state has an abnormal signal, generating an error feature according to the abnormal signal;
[0006] Matching a corresponding error mode in an error mode database using the error feature;
[0007] According to the error mode, performing a corresponding processing strategy for the communication between the master device and the slave device.
[0008] According to the error mode, performing a corresponding processing strategy for the communication between the master device and the slave device.
[0009] Determining a first intelligent retransmission strategy according to the error risk level of the error mode;
[0010] Performing retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy.
[0011] According to the error mode, performing a corresponding processing strategy for the communication between the master device and the slave device.
[0012] determining a second intelligent retransmission strategy in response to a number of consecutive retransmission failures reaching a preset number during a process of performing retransmission on the communication data according to the first intelligent retransmission strategy;
[0013] performing retransmission on communication data between the master device and the slave device according to the second intelligent retransmission strategy;
[0014] wherein the first intelligent retransmission strategy corresponds to a lower error risk level than the second intelligent retransmission strategy.
[0015] wherein after performing retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy, the data communication method further comprises:
[0016] performing a self-recovery strategy on the master device and / or the slave device in response to retransmission failure.
[0017] wherein performing the self-recovery strategy on the master device and / or the slave device comprises:
[0018] determining an error subject according to an error type of the error mode, wherein the error subject is the master device or the slave device;
[0019] performing the self-recovery strategy on the error subject.
[0020] wherein determining the first intelligent retransmission strategy according to the error risk level of the error mode comprises:
[0021] obtaining an error risk level and a recommended processing strategy of the error mode;
[0022] determining a third intelligent retransmission strategy according to the recommended processing strategy;
[0023] determining the first intelligent retransmission strategy according to the error risk level;
[0024] performing retransmission on communication data between the master device and the slave device according to the first intelligent retransmission strategy;
[0025] performing retransmission on communication data between the master device and the slave device according to the third intelligent retransmission strategy comprises:
[0026] performing retransmission on communication data between the master device and the slave device according to the first intelligent retransmission strategy when retransmission fails.
[0027] wherein generating an error feature according to the abnormal signal when the communication state has the abnormal signal comprises:
[0028] When the abnormal signal exists in the communication state, time sequence information and amplitude information of the abnormal signal are acquired;
[0029] Differences between the time sequence information, the amplitude information and normal signals are analyzed, and the error features are generated by encoding the difference conditions.
[0030] To solve the above technical problems, the application further provides an integrated circuit chip, which comprises an error pattern recognition module, an error classification logic module and an intelligent strategy mechanism module; wherein,
[0031] The error pattern recognition module is configured to monitor a communication state on an integrated circuit bus between a master device and a slave device, and generate error features according to abnormal signals when the abnormal signals exist in the communication state.
[0032] The error classification logic module is configured to match corresponding error patterns in an error pattern database by using the error features.
[0033] The intelligent strategy mechanism module is configured to execute corresponding processing strategies for communication between the master device and the slave device according to the error patterns.
[0034] To solve the above technical problems, the application further provides a data communication device, which comprises a memory and a processor coupled with the memory; wherein the memory is configured to store program data, and the processor is configured to execute the program data to implement the data communication method as described above.
[0035] To solve the above technical problems, the application further provides a computer storage medium / computer program product, which is configured to store a computer program, and the computer program product comprises a computer program which, when executed by a computer, is configured to implement the data communication method as described above.
[0036] Compared with the prior art, the application has the beneficial effects that: the integrated circuit chip monitors the communication between the master device and the slave device, acquires abnormal conditions of the communication in time, and improves the real-time performance of abnormal processing; the integrated circuit chip analyzes error features of abnormal signals to match corresponding error patterns, dynamically selects processing strategies, implements targeted processing of abnormal conditions, and improves the stability of data communication. BRIEF DESCRIPTION OF DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0038] Wherein:
[0039] Figure 1 is a flowchart of a first embodiment of the data communication method provided by the present application;
[0040] Figure 2 is a logic diagram of the data communication framework provided by the present application;
[0041] Figure 3 is a flowchart of the overall data communication method provided by the present application;
[0042] Figure 4 is a flowchart of a second embodiment of the data communication method provided by the present application;
[0043] Figure 5 is a flowchart of a third embodiment of the data communication method provided by the present application;
[0044] Figure 6 is a flowchart of a fourth embodiment of the data communication method provided by the present application;
[0045] Figure 7 is a structural diagram of an embodiment of the integrated circuit chip provided by the present application;
[0046] Figure 8 is a structural diagram of an embodiment of the data communication device provided by the present application;
[0047] Figure 9 is a structural diagram of an embodiment of the computer storage medium / computer program product provided by the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those of ordinary skill in the art without any creative work fall within the scope of protection of the present application.
[0049] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, if any, are used for distinguishing between similar objects talking about the embodiments of the application and do not necessarily have to appear in conjunction with the objects. It is to be understood that the objects which are described can be combined, separated, or eliminated. The application can be implemented in other embodiments without departing from the scope of the present application. It is to be understood that the data which is shown in the figures is not necessarily to scale, and that a feature which is represented being larger in one place can be smaller in another place. Similarly, the dimensions of the various features are chosen for the convenience of the reader and the illustrative purposes of the present application and are not necessarily to scale. Furthermore, the terms "comprise", "comprising", "include", "including", and "includes" as well as any variation thereof are intended to cover a non-exclusive inclusion, for example, a process, method, article, or apparatus that comprises a list of steps or elements does not necessarily comprise only those steps or elements but can include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, if any, are used for distinguishing between similar objects talking about the embodiments of the application and do not necessarily have to appear in conjunction with the objects. It is to be understood that the objects which are described can be combined, separated, or eliminated. The application can be implemented in other embodiments without departing from the scope of the present application. It is to be understood that the data which is shown in the figures is not necessarily to scale, and that a feature which is represented being larger in one place can be smaller in another place. Similarly, the dimensions of the various features are chosen for the convenience of the reader and the illustrative purposes of the present application and are not necessarily to scale. Furthermore, the terms "comprise", "comprising", "include", "including", and "includes" as well as any variation thereof are intended to cover a non-exclusive inclusion, for example, a process, method, article, or apparatus that comprises a list of steps or elements does not necessarily comprise only those steps or elements but can include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
[0050] The present application provides a data communication method, which realizes a differentiated error processing mechanism by dynamically identifying and classifying I2C communication error patterns, including intelligent retransmission, hierarchical recovery strategy, and embeds state awareness and recovery logic in master and slave devices, thereby improving the stability of communication and the adaptability of the system.
[0051] Specifically refer to Figure 1 , Figure 2 and Figure 3 , Figure 1 is a flowchart of the first embodiment of the data communication method provided by the present application, Figure 2 is a logic diagram of the data communication framework provided by the present application, Figure 3 is a schematic diagram of the overall flow of the data communication method provided by the present application.
[0052] To solve the problems of single error handling and lack of self-recovery capability in existing I2C communication, the present application introduces error pattern recognition mechanism, hierarchical processing mechanism and master-slave device self-recovery mechanism, the overall system composition, function and working process are as shown in Figure 2 , the following will be introduced by a specific data communication method:
[0053] As Figure 1 shown, the specific steps are as follows:
[0054] Step S11: Listen to the communication state on the integrated circuit bus between the master device and the slave device.
[0055] In the embodiments of the present application, as Figure 3 shown, the data communication device monitors and identifies error signals in the data communication process by listening to the communication state on the integrated circuit bus between the master device and the slave device, thereby ensuring the real-time performance of fault handling.
[0056] Specifically, the data communication device listens to the signals transmitted on the I2C communication bus between the master device and the slave device. In normal cases, the data signals on the I2C communication bus are generally periodic signals or signals with a preset response sequence. When the data communication device listens to signals on the I2C communication bus that deviate from the normal signal rules, it can be considered that the communication between the master device and the slave device is abnormal at this time.
[0057] Step S12: generating an error feature according to the abnormal signal when the communication state has the abnormal signal.
[0058] In the embodiments of the present application, as shown in the error mode recognition mechanism, Figure 2 the data communication device records the timing information and amplitude information of the abnormal signal occurrence process when it listens to the abnormal signal on the I2C communication bus, analyzes the abnormal features of the abnormal signal, that is, the error features.
[0059] The encoding mode of the error feature can compare the abnormal signal and the normal signal in terms of timing and amplitude, and encode the difference as a feature output.
[0060] In the embodiments of the present application, the data communication device can recognize the following common abnormal signals by real-time listening to the I2C communication process:
[0061] a) ACK abnormality: the master device does not receive the response of the slave device.
[0062] b) Data NACK: a non-response signal is received after data transmission.
[0063] c) START / STOP conflict: control bit conflict, such as accidental repeated start.
[0064] d) Other interference signals: such as bus suspension, abnormal level maintenance, etc.
[0065] Taking the ACK abnormal signal as an example, the data communication device should be able to record the receiving timing of the slave device response signal in the normal signal, but the master device has not received the slave device response signal all the time, so the data communication device can encode the absence of the receiving timing as the error feature of the ACK abnormal signal.
[0066] Step S13: matching the corresponding error mode in the error mode database using the error feature.
[0067] In the embodiments of the present application, the data communication device matches the error feature in the built-in error mode database and outputs the following contents:
[0068] a) Error type number (such as transient interference, timing conflict, slave failure, etc.).
[0069] b) Suggested action (such as retransmission, short delay wait, soft reset, inform master, etc.).
[0070] c) Error level (low, medium, high risk).
[0071] It should be noted that the functions of each module in the system structure shown in Figure 2 can be realized in a combination of software and hardware. For example, for the error pattern recognition mechanism, in hardware design, I2C can recognize error patterns (ACK exception, data NACK, START / STOP conflict, level holding exception, etc.) according to the protocol. For interference signals, the state of the corresponding IO can be monitored to identify error patterns.
[0072] Secondly, in the error classification logic design, the hardware can specify the risk level and the corresponding suggested action, and execute the corresponding suggested action through the corresponding state.
[0073] Step S14: According to the error pattern, a corresponding processing strategy is executed for the communication between the master device and the slave device.
[0074] In the embodiments of the present application, the data communication device executes a corresponding processing strategy for the communication failure between the master device and the slave device according to the error pattern determined in step S13.
[0075] Specifically, the processing strategy can be determined by the data communication device according to the error pattern, or can be determined by the suggested action pre-bound to the error pattern in the error pattern database, or can be determined by the error level pre-bound to the error pattern in the error pattern database.
[0076] It should be noted that when the data communication device matches the error pattern according to the error characteristics in step S13, it is possible to match multiple error patterns. At this time, the data communication device can determine the closest error pattern to determine the processing strategy according to the matching degree of the multiple error patterns, or can determine the processing strategy according to the corresponding suggested action or error level in the multiple error patterns. For example, when most of the multiple error patterns correspond to the error level of medium risk, the data communication device can determine the processing strategy according to the error level of medium risk.
[0077] Further, the processing strategies corresponding to different communication failures are respectively provided by Figure 2 the intelligent retransmission mechanism or the master-slave self-recovery mechanism shown in the figure, and the data communication device selects the corresponding mechanism to execute the processing strategy according to the specific communication failure.
[0078] Specifically, the intelligent retransmission mechanism and the master-slave self-recovery mechanism can be implemented by hardware or software, mainly depending on the size limit of the IP, the experience of the designer, etc. If implemented by software, the hardware needs to cooperate to complete the related configuration, state, etc. design, for example, the hardware should support 1) setting the delay time; 2) setting the retransmission number threshold; 3) triggering the state of the reset logic, and the software driver designs the corresponding control strategy according to these logic designs.
[0079] Based on Figure 1 The data communication method shown in the application also provides another data communication method, please refer to Figure 4 , Figure 4 is the flowchart of the second embodiment of the data communication method provided by the application.
[0080] As Figure 4 shown, the specific steps are as follows:
[0081] Step S21: determining a first intelligent retransmission strategy according to the error risk level of the error mode.
[0082] In the embodiments of the application, the error mode classification and processing behavior provided by the application includes but is not limited to:
[0083]
[0084] The data communication device determines the corresponding first intelligent retransmission strategy according to the error risk level of the matched error mode. As shown in the above table, when the matched error risk level is the low risk level, the data communication device determines the first intelligent retransmission strategy as immediate retransmission according to the recommended processing strategy corresponding to the low risk level.
[0085] Step S22: performing retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy.
[0086] In the embodiments of the application, the data communication device performs immediate retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy.
[0087] Step S23: determining a second intelligent retransmission strategy in response to the number of consecutive retransmission failures reaching a preset number during the process of performing retransmission on the communication data according to the first intelligent retransmission strategy.
[0088] In the embodiments of the application, the data communication device continuously monitors the communication state on the integrated circuit bus between the master device and the slave device after performing immediate retransmission. When abnormal signals still appear, it continues to perform immediate retransmission until the retransmission is successful, or the number of consecutive retransmissions reaches the preset number.
[0089] When the number of consecutive retransmission failures reaches the preset number and the retransmission is still unsuccessful, the data communication device determines a second intelligent retransmission strategy, wherein the first intelligent retransmission strategy corresponds to a lower error risk level than the second intelligent retransmission strategy.
[0090] As shown in the above table, the data communication device determines the second intelligent retransmission strategy as short-delay post-retransmission.
[0091] Step S24: Performing retransmission on the communication data between the master device and the slave device according to the second intelligent retransmission strategy.
[0092] In the embodiment of the present application, the data communication device performs short-delay post-retransmission on the communication data between the master device and the slave device according to the second intelligent retransmission strategy.
[0093] Further, when the retransmission strategy fails, it indicates that the data communication device cannot completely solve the problem according to the intelligent retransmission mechanism, and the data communication device can execute a corresponding processing strategy according to the master-slave self-recovery mechanism. Figure 2 As shown in the master-slave self-recovery mechanism, the corresponding processing strategy includes but is not limited to: master-slave device reset, master self-recovery, slave self-recovery, etc.
[0094] Based on the data communication method shown in Figure 4 , the present application further provides another data communication method, please refer to Figure 5 , Figure 5 is a flow diagram of the third embodiment of the data communication method provided by the present application.
[0095] As shown in Figure 5 , the specific steps are as follows:
[0096] Step S31: Determining the error subject according to the error type of the error mode, wherein the error subject is the master device or the slave device.
[0097] In the embodiment of the present application, when the data communication device selects the master-slave self-recovery mechanism to process the current communication failure, it can determine the error subject according to the error type of the error mode. As shown in the above table, when the error type is "retransmission failure", "master failure" or "master arbitration time-out", the data communication device determines that the error subject is "master". As shown in the above table, when the error type is "multi-slave failure", the data communication device determines that the error subject is "slave".
[0098] Step S32: Executing a self-recovery strategy on the error subject.
[0099] In the embodiment of the present application, the data communication device can execute the self-recovery strategy of the error subject according to the error subject determined in step S31.
[0100] Based on the data communication method shown in Figure 4The data communication method shown in the embodiment of the present application also provides another data communication method, please refer to Figure 6 , Figure 6 is a flowchart of the fourth embodiment of the data communication method provided by the present application.
[0101] As shown in Figure 6 , the specific steps are as follows:
[0102] Step S41: obtaining the error risk level and the recommended processing strategy of the error mode.
[0103] In the embodiment of the present application, there may be a case that the error risk level and the recommended processing strategy do not correspond one by one when the data communication device matches the error mode, for example, a case that multiple error modes are matched.
[0104] Step S42: determining the third intelligent retransmission strategy according to the recommended processing strategy.
[0105] Step S43: determining the first intelligent retransmission strategy according to the error risk level.
[0106] In the embodiment of the present application, the data communication device determines the corresponding intelligent retransmission strategy according to the recommended processing strategy and the error risk level respectively, and sorts the intelligent retransmission strategies according to the risk levels corresponding to the intelligent retransmission strategies.
[0107] Step S44: performing retransmission on the communication data between the master device and the slave device according to the third intelligent retransmission strategy.
[0108] In the embodiment of the present application, the data communication device preferentially performs retransmission on the communication data between the master device and the slave device according to the intelligent retransmission strategy with a lower risk level.
[0109] Step S45: performing retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy when the retransmission fails.
[0110] In the embodiment of the present application, the data communication device performs retransmission on the communication data between the master device and the slave device according to the intelligent retransmission strategy with a higher risk level when the intelligent retransmission strategy with a lower risk level cannot solve the current communication failure.
[0111] It should be noted that, Figure 6 The data communication method shown in the embodiment of the present application shows the retransmission logic of the intelligent retransmission mechanism, and relative to Figure 2 The master-slave self-recovery mechanism also has a self-recovery logic. For example, the data communication device can preferentially execute the slave self-recovery strategy, and then execute the master self-recovery strategy, the master-slave self-recovery strategy when the communication failure cannot be solved.
[0112] Further, when the reset is not effective for multiple times or the self-recovery is not effective for multiple times, the data communication device can consider closing the corresponding master / slave or other ways, reducing the risk of system downtime.
[0113] The data communication method provided by the application greatly improves the communication success rate and system stability, shortens the retransmission response time, and reduces the risk of system downtime through the error mode identification mechanism, the differentiated error processing strategy, and the master / slave device self-recovery mechanism.
[0114] Those skilled in the art can understand that, in the above method of the specific embodiment, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process, and the specific execution order of each step should be determined according to its function and possible internal logic.
[0115] To implement the above data communication method, the application further provides an integrated circuit chip 500, which is specifically described as follows Figure 7 , Figure 7 is a structural schematic diagram of an embodiment of the integrated circuit chip provided by the application.
[0116] The integrated circuit chip 500 of the embodiment includes an error mode identification module 51, an error classification logic module 52, and an intelligent strategy mechanism module 53.
[0117] The error mode identification module 51 is configured to listen to the communication state on the integrated circuit bus between the master device and the slave device, and generate an error feature according to an abnormal signal when the communication state has the abnormal signal.
[0118] The error classification logic module 52 is configured to match a corresponding error mode in an error mode database by using the error feature.
[0119] The intelligent strategy mechanism module 53 is configured to execute a corresponding processing strategy for the communication between the master device and the slave device according to the error mode.
[0120] In some specific embodiments, the intelligent strategy mechanism module 53 is configured to determine a first intelligent retransmission strategy according to the error risk level of the error mode, and execute retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy.
[0121] In some embodiments, the intelligent strategy mechanism module 53 is configured to determine a second intelligent retransmission strategy in response to a number of consecutive retransmission failures reaching a preset number during a retransmission process performed on the communication data according to the first intelligent retransmission strategy; and perform retransmission on the communication data between the master device and the slave device according to the second intelligent retransmission strategy; wherein the first intelligent retransmission strategy corresponds to a lower error risk level than the second intelligent retransmission strategy.
[0122] In some embodiments, the intelligent strategy mechanism module 53 is configured to perform a self-recovery strategy on the master device and / or the slave device in response to a retransmission failure.
[0123] In some embodiments, the intelligent strategy mechanism module 53 is configured to determine an error subject according to an error type of the error pattern, wherein the error subject is the master device or the slave device; and perform the self-recovery strategy on the error subject.
[0124] In some embodiments, the intelligent strategy mechanism module 53 is configured to obtain an error risk level and a recommended processing strategy of the error pattern; determine a third intelligent retransmission strategy according to the recommended processing strategy; determine the first intelligent retransmission strategy according to the error risk level; perform retransmission on the communication data between the master device and the slave device according to the third intelligent retransmission strategy; and perform retransmission on the communication data between the master device and the slave device according to the first intelligent retransmission strategy in response to a retransmission failure.
[0125] In some embodiments, the error pattern identification module 51 is configured to obtain timing information and amplitude information of an abnormal signal when the communication state has the abnormal signal; analyze differences between the timing information, the amplitude information and normal signals; and encode the differences to generate the error feature.
[0126] To implement the data communication method, the application further provides a data communication device, which is specifically described in Figure 8 , Figure 8 is a structural schematic diagram of an embodiment of the data communication device provided by the application.
[0127] The data communication device 400 of the embodiment includes a processor 41, a memory 42, an input / output device 43 and a bus 44.
[0128] The processor 41, the memory 42 and the input / output device 43 are connected to the bus 44 respectively, the memory 42 stores program data, and the processor 41 is configured to execute the program data to implement the data communication method described in the above embodiments.
[0129] In the embodiments of the present application, the processor 41 can also be referred to as a CPU (Central Processing Unit). The processor 41 can be an integrated circuit chip having a processing capability of signals. The processor 41 can also be a general processor, a DSP (Digital Signal Process), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor 41 can also be any conventional processor or the like.
[0130] The present application also provides a computer storage medium / computer program product, please continue to refer to Figure 9 , Figure 9 is a structural schematic diagram of an embodiment of the computer storage medium / computer program product provided by the present application. The computer storage medium 600 is used for storing a computer program 61. The computer program product 600 includes the computer program 61. When the computer program 61 is executed by a computer, the computer program 61 is used to implement the data communication method of the above-mentioned embodiments.
[0131] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, the embodiments can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the whole or part of the technical solutions that make contributions to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0132] The above only describes the embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation based on the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data communication method, characterized in that, The data communication method includes: Monitor the communication status on the integrated circuit bus between the master and slave devices; When an abnormal signal exists in the communication state, an error feature is generated based on the abnormal signal; The error features are used to match the corresponding error patterns in the error pattern database; Based on the error pattern, a corresponding processing strategy is executed for the communication between the master device and the slave device.
2. The data communication method according to claim 1, characterized in that, The step of executing a corresponding processing strategy for communication between the master device and the slave device based on the error mode includes: The first intelligent retransmission strategy is determined based on the error risk level of the error mode. The communication data between the master device and the slave device is retransmitted according to the first intelligent retransmission strategy.
3. The data communication method according to claim 2, characterized in that, The step of retransmitting communication data between the master device and the slave device according to the first intelligent retransmission strategy includes: In response to the fact that the number of consecutive retransmission failures reaches a preset number during the retransmission of the communication data according to the first intelligent retransmission strategy, a second intelligent retransmission strategy is determined. The communication data between the master device and the slave device is retransmitted according to the second intelligent retransmission strategy; The error risk level corresponding to the first intelligent retransmission strategy is lower than the error risk level corresponding to the second intelligent retransmission strategy.
4. The data communication method according to claim 2 or 3, characterized in that, After retransmitting the communication data between the master device and the slave device according to the first intelligent retransmission strategy, the data communication method further includes: In response to a retransmission failure, a self-recovery strategy is executed on the master device and / or the slave device.
5. The data communication method according to claim 4, characterized in that, The execution of the self-recovery strategy on the master device and / or the slave device includes: The error subject is determined based on the error type of the error mode, wherein the error subject is the master device or the slave device; The self-recovery strategy is executed on the faulty entity.
6. The data communication method according to claim 2, characterized in that, The step of determining the first intelligent retransmission strategy based on the error risk level of the error mode includes: Obtain the error risk level and recommended handling strategy for the error mode; A third intelligent retransmission strategy is determined based on the proposed processing strategy; The first intelligent retransmission strategy is determined based on the error risk level. The step of retransmitting communication data between the master device and the slave device according to the first intelligent retransmission strategy includes: The communication data between the master device and the slave device is retransmitted according to the third intelligent retransmission strategy. When a retransmission fails, the communication data between the master device and the slave device is retransmitted according to the first intelligent retransmission strategy.
7. The data communication method according to claim 1, characterized in that, When an abnormal signal exists in the communication state, generating an error feature based on the abnormal signal includes: When an abnormal signal exists in the communication state, the timing information and amplitude information of the abnormal signal are obtained; The differences between the timing information, the amplitude information, and the normal signal are analyzed, and the differences are encoded to generate the error features.
8. An integrated circuit chip, characterized in that, The integrated circuit chip includes an error pattern recognition module, an error classification logic module, and an intelligent strategy mechanism module; wherein... The error pattern recognition module is used to monitor the communication status on the integrated circuit bus between the master device and the slave device; when there is an abnormal signal in the communication status, it generates an error feature based on the abnormal signal. The error classification logic module is used to match the corresponding error pattern in the error pattern database using the error features; The intelligent policy mechanism module is used to execute corresponding processing policies for communication between the master device and the slave device according to the error mode.
9. A data communication device, characterized in that, The data communication device includes a memory and a processor coupled to the memory; The memory is used to store program data, and the processor is used to execute the program data to implement the data communication method as described in any one of claims 1 to 7.
10. A computer storage medium / computer program product, characterized in that, The computer storage medium is used to store a computer program, the computer program product including the computer program, which, when executed by a computer, is used to implement the data communication method as described in any one of claims 1 to 7.