I2C Master Module Error Code Generation and Reset Logic
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional I2C communication systems experience errors due to interference on the bus, leading to unreliable data transmission between the master and slave modules.
Innovation Solution
A method and expander device that include a master module capable of generating a communication error code for failed data transmissions, determining retransmission needs, resetting when retransmission attempts reach a predetermined number, and recording error events to enhance data transmission reliability.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data transmission is performed on the I2C bus, then communication between master and slave modules is enabled, but communication errors occur due to bus interference
Solution Approach 1:
The master module monitors communication status on the I2C bus and generates communication error codes when errors are detected. This feedback mechanism allows the system to identify and respond to bus interference, improving reliability by enabling error detection and retransmission decisions based on actual communication conditions.
Solution Approach 2:
The master module determines in advance whether retransmission is needed by evaluating communication error codes before attempting data retransmission. This preliminary assessment prevents unnecessary retransmissions and prepares the system to handle potential communication failures proactively, thereby improving data transmission reliability.
2Reliability
If unlimited retransmission attempts are made, then data transmission reliability improves, but system complexity and processing time increase
Solution Approach 1:
The master module determines in advance whether retransmission is needed by evaluating communication error codes before attempting data retransmission. This preliminary assessment prevents unnecessary retransmissions and prepares the system to handle potential communication failures proactively.
Solution Approach 2:
The system performs retransmission only when communication errors are detected and retransmission is determined to be beneficial, rather than attempting unlimited or excessive retransmissions. This partial action approach improves reliability while avoiding the complexity and time overhead of unnecessary retransmission attempts.
3Reliability
If retransmission is performed for every communication error, then data accuracy improves, but communication efficiency decreases
Solution Approach 1:
The master module determines in advance whether retransmission is needed by evaluating communication error codes before attempting data retransmission. This selective approach ensures retransmission only when necessary, maintaining data accuracy while preserving communication efficiency.
Solution Approach 2:
The system performs retransmission only when communication errors are detected and retransmission is determined to be beneficial, rather than attempting unlimited or excessive retransmissions. This partial action approach improves reliability while avoiding the complexity and time overhead of unnecessary retransmission attempts.
Data Source
AI summary
A method for data communication within an I2C system is provided. The method includes the steps of: a) generating a communication error code indicative of error status when data transmission from a master module to a slave module via an I2C bus fails; b) determining whether to retransmit the data to the slave module according to the communication error code; c) when the determination made in step c) is affirmative, determining whether a number of times of data retransmission(s) associated with the data reaches a predetermined number; d) when the determination made in step c) is affirmative, resetting the master module; and e) recording a communication error event according to the communication error code after step a).


