CPLD-Based I2C Abnormality Detection and Fault Location
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for detecting abnormalities in I2C devices are inefficient, as they require manual detection and struggle to accurately locate faults within these devices.
Innovation Solution
An automated abnormality detection method that uses a CPLD to sequentially detect I2C controllers, multiplexers, and slave devices by shielding channels, reading serial clock and data signals, and simulating interactions to determine device normalcy.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If manual detection method is used for I2C devices, then the detection process is simple to implement, but the detection efficiency is low and fault location is difficult
Solution Approach 1:
The patent introduces a CPLD (Complex Programmable Logic Device) as an intermediary component to automate the detection process. The CPLD acts as a mediator between the test system and the I2C devices, automatically performing detection operations and fault location without requiring manual intervention, thereby significantly improving detection efficiency while maintaining manageable system complexity
Solution Approach 2:
The detection system is designed to perform self-service through automated detection algorithms and fault location mechanisms. The system automatically detects I2C devices, identifies abnormalities, and locates faults without requiring external manual operation, thus enhancing productivity while the automation is managed through structured detection protocols
2Measurement precision
If automated detection is implemented using CPLD, then the detection efficiency and fault location capability are improved, but the device complexity increases
Solution Approach 1:
The detection system is segmented into distinct functional modules: CPLD for automated control, I2C controller for communication management, and detection algorithms for analysis. This segmentation allows each component to perform its specific function efficiently, improving fault location precision while keeping the overall system complexity manageable through modular design
Solution Approach 2:
The CPLD is designed with multi-functionality to handle various detection tasks including I2C protocol implementation, device addressing, data transmission, and fault analysis. This universal component can adapt to different detection scenarios, enhancing measurement precision without requiring separate dedicated hardware for each function, thus controlling device complexity
3Measurement precision
If channels in I2C multiplexer are shielded during detection, then the fault location accuracy is improved, but the detection process becomes more complex
Solution Approach 1:
The system performs preliminary actions by automatically shielding specific channels in the I2C multiplexer based on detected fault locations. Before conducting detailed detection, the system pre-configures the multiplexer to isolate suspected fault areas, which improves abnormality location accuracy while the automation of this process maintains operational simplicity
Solution Approach 2:
The channel shielding configuration is dynamic and adapts based on detection results. The system automatically adjusts which channels are shielded during the detection process, allowing flexible optimization of fault location accuracy without requiring manual reconfiguration, thus maintaining ease of operation while improving measurement precision
Data Source
AI summary
An abnormality detection method, device, host device, system and storage medium, the method comprises: shielding all channels in an I2C (Inter-Integrated Circuit) multiplexer, and detecting an I2C controller by using a CPLD (Complex Programmable logic device) to obtain a first detection result; when the first detection result is that the I2C controller is normal, controlling the I2C controller to detect the I2C multiplexer to obtain a second detection result; when the second detection result is that the I2C multiplexer is normal, opening the channels, and controlling the I2C controller to detect an I2C slave device connected to each channel to obtain a third detection result; when the third detection result is that the I2C slave device is normal, exiting detection; when there is an abnormal result in the first detection result, the second detection result and the third detection result, outputting an alarm information corresponding to the abnormal result.


