CAN Filter Combining With Multi-Code Filters for Faster Communication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing CAN controllers face inefficiencies in data filtering due to a fixed number of filter codes, leading to increased processor load and slowed communication speeds when filtering large amounts of irrelevant data.
Innovation Solution
A CAN filter combining method that utilizes a special filter with a mask code and multiple filter codes, combined with common filters, to optimize data passing through, reducing processor load by enabling efficient filtering of irrelevant data.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If software filtering is used to filter irrelevant data, then filtering capability is improved, but processor load increases and communication speed decreases
Solution Approach 1:
The patent combines multiple common filters into a single special filter by merging their filter codes and mask codes. This consolidation reduces the number of filtering operations the processor must perform, thereby maintaining comprehensive filtering capability while reducing processor load and improving communication speed.
Solution Approach 2:
The special filter is designed to perform multiple filtering functions simultaneously by incorporating combined filter codes that represent multiple common filter criteria. This multi-functional approach allows a single filter structure to handle what would otherwise require multiple separate filters, improving efficiency without sacrificing adaptability.
2Device complexity
If the number of filter codes in CAN controller is fixed, then device complexity is reduced, but filtering efficiency decreases when many types of irrelevant data need to be filtered
Solution Approach 1:
The patent changes the parameter of filter code organization by combining multiple common filter codes into a consolidated special filter code structure. This parameter change allows the fixed filter hardware to dynamically adapt to different filtering requirements through software-configurable code combinations, thereby improving filtering efficiency without increasing hardware complexity.
Data Source
Figure 1~2
Figure 3~4
Figure 5
AI summary
Embodiments of the present invention pertain to the technical field of electronic information, and disclose a CAN filter combining method. The CAN filter comprises a special filter and one or more common filters. The special filter comprises one mask code and at least two filter codes. The common filters comprise one mask code and one filter code. The method comprises: initializing the mask code and the filter codes of the special filter, acquiring a first total number of the filter codes in the special filter and a second total number of the common filters, acquiring mask codes and filter codes of all of the common filters, and adjusting the mask code and the filter codes of the special filter on the basis of the first total number, the second total number, and the mask codes and the filtering codes of all of the common filters, such that data capable of passing through each of the common filters is enabled to pass through the special filter. The CAN filter combining method provided by the embodiments of the present invention reduces the load of a processor, and prevents a CAN controller from processing a large amount of irrelevant data, thereby accelerating communications.