Agent Module Decouples UI and Function Modules
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The high coupling between UI modules and function modules in electronic devices due to different data formats leads to poor portability and scalability, making it difficult to develop new function modules.
Innovation Solution
An agent module is introduced to facilitate intra-device communication by converting messages between UI and function modules, using different communication protocols and formats, allowing UI modules to communicate with function modules without direct interaction through the framework, thereby decoupling the framework from function modules.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If UI modules communicate directly with function modules through the framework module, then communication functionality is achieved, but coupling between UI modules, framework module and function modules increases
Solution Approach 1:
The patent introduces an agent module as an intermediary component between the framework module and function modules. The agent module receives messages from the framework module and forwards them to the appropriate function module, and vice versa. This intermediary structure maintains communication functionality while reducing direct coupling between UI modules, framework module, and function modules, as the agent module absorbs the coupling relationships.
2Productivity
If direct communication channels are established between UI modules and function modules, then communication efficiency is improved, but portability and scalability deteriorate
Solution Approach 1:
The patent segments the communication system into distinct layers: UI modules, framework module, agent module, and function modules. Each layer has specific responsibilities and communication protocols. The agent module acts as a dedicated communication gateway that handles message routing between layers. This segmentation maintains communication efficiency through dedicated channels while improving portability and scalability, as new function modules can be added without modifying existing UI modules or the framework.
3Adaptability or versatility
If multiple communication protocols and data formats are supported for different modules, then compatibility is improved, but system complexity increases
Solution Approach 1:
The agent module serves as a protocol translation intermediary between the framework module and function modules. It receives messages in the framework's data format, converts them to the appropriate format for the target function module, and handles protocol differences. This intermediary approach maintains module compatibility through format conversion while hiding the communication protocol complexity from both UI modules and function modules, as they only need to interact with the standardized agent module interface.
Data Source
Figure 1~2
Figure 3~4
Figure 5
AI summary
The present disclosure provides an intra-device communication method and apparatus, an electronic device and a storage medium. The method is performed by an agent module. The method includes: receiving a to-be-forwarded message; in response to the to-be-forwarded message being a first message forwarded by a framework module of the first device, sending the first message to a corresponding function module, the framework module being connected with a plurality of user interface (UI) modules of the first device, and the agent module being connected with a plurality of function modules of the first device; and in response to the to-be-forwarded message being a second message from at least one of the function modules, sending the second message to the framework module for the framework module to forward the second message to a corresponding UI module.