Method and system for message transmission between middleware and user interface
A user interface and message delivery technology, applied in electrical components, image communication, selective content distribution, etc., can solve problems such as difficult unification of message processing, message conflict and coverage, cumbersome message management, etc., to solve the problem of message conflict and coverage , orderly delivery steps and simple management methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] refer to figure 1 , the present invention provides a message delivery method between middleware and user interface, which comprises steps:
[0067] S1. After receiving multiple messages transmitted by the middleware, obtain a message configuration table corresponding to each message;
[0068] S2. Process the message according to the filtering mode in the message configuration table corresponding to each message, and then deliver the message to the corresponding user interface and / or cache it;
[0069] S3. For each cached message, process it according to the priority in the message configuration table corresponding to the message, and finally deliver all the cached messages to the user interface in order of priority;
[0070] S4. For all the messages transmitted by the middleware, delete them respectively according to the deletion mode in the message configuration table corresponding to each message.
[0071] Preferably, the step S2 specifically includes sub-steps S21 ...
Embodiment 2
[0103] refer to figure 2 , a message passing system between middleware and user interface, for implementing a message passing method between middleware and user interface, comprising:
[0104] The message configuration module is used to store a plurality of message configuration tables corresponding to messages one by one, and the message configuration table includes message identification, priority, deletion mode, filter mode and menu list; refer to Figure 4 , the structure of the message configuration table is as follows:
[0105] Message configuration table items (message ID, priority, delete mode, filter mode, menu list);
[0106] That is, the structure of the message configuration module is:
[0107] Message configuration table item 1 (message ID 1, priority, delete mode, filter mode, menu list);
[0108] Message configuration table item 2 (message ID 2, priority, delete mode, filter mode, menu list);
[0109] …
[0110] Message configuration table item n (message ...
Embodiment 3
[0133] This embodiment is a special case of embodiment one:
[0134] Assuming that the currently used programming environment is C language, the ui_xxx.c file representing the interface layer and the mid_xxx.c file representing the middleware have been included, and the messages of the middleware are transmitted to the interface layer through the message pipeline, and the message transmission of the present invention is added The method msg_proc.c has predefined the following data structures:
[0135] / / --------Define the message ID------------
[0136] typedef enum
[0137] {
[0138] UI_MSG_STATUS_USB_INSERTED, / / USB device inserted
[0139] UI_MSG_STATUS_SIGNAL_UNLOCKED, / / signal unlocked
[0140]}MsgType_t;
[0141] / / ---------Define message configuration table------------
[0142] MsgConfigTable_t MsgConfigTable[] =
[0143] {
[0144] / / ---------------Message 1------Signal out of lock------------------- --Message configuration entry 1
[0145] {UI_MSG_STATUS_SIGN...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com