Method for realizing display information consistency applicable to data-driven display system
By using the display interface buffering and synchronization algorithm in the data-driven display system, the problem of inconsistent display information after the device is restarted is solved, the status consistency of the task computer and the display control terminal is achieved, and the stability and reliability of the system are ensured.
Patent Information
- Application Number
- CN202111126678.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-26
AI Technical Summary
In a data-driven display system, after the task computer or display control terminal is restarted, the displayed information may be inconsistent with the information output by the actual task, resulting in business errors or interruptions.
Using display interface buffer technology and business software synchronization algorithm, by sending an 'interface initialization' message when the task computer goes online, the display and control interface returns to its initial state, and the display information is synchronized when the display and control terminal goes online to ensure that the display information and business software are consistent The status is consistent.
After the device is restored, the caching and synchronization mechanisms are used to completely decouple the business software and the display and control interface software, ensuring the consistency of the display information and task execution status, and avoiding business errors and interruptions.
Smart Images

Figure CN113961284B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer display control software, and in particular relates to a method for realizing display information consistency applicable to a data-driven display system. Background Art
[0002] As equipment's maintainability requirements increase, the system has put forward functional requirements for computer system components to be independently upgraded. Reducing the coupling of computer system components is an important direction for the development of computer system technology.
[0003] Traditional display control systems use a computer graphics card to generate video signals to drive the display directly to achieve display refresh architecture. The display control software runs on the computer, and the display interface is coupled with the business code, making it difficult to achieve independent development and independent upgrades of business software and display interface software.
[0004] In order to solve the above problems, a new display system architecture based on data drive has emerged. Based on the new display system architecture based on data drive, the display and control terminal is used to replace the traditional display. In addition to the function of the display, the display and control terminal also has an embedded computer module that can perform logical processing. The computer is no longer responsible for display, but becomes a task computer. The task computer and the display and control terminal are connected by a network. The business software runs on the task computer, and the display and control interface software runs on the display and control terminal. The two software interact through network messages of a special protocol, and use message data to drive the refresh of the display interface to respond to control events, thereby realizing the decoupling of the business software and the display interface software.
[0005] However, since the task computer and the display and control terminal both run as independent computer subsystems, when one of them restarts, the task running status and display information may be inconsistent after the device is restored, resulting in business errors or interruptions. Therefore, a method needs to be proposed to ensure that the display information is consistent with the task execution status after the abnormal device resumes working status. Summary of the invention
[0006] The purpose of the present invention is to provide a method for ensuring the consistency of output display information and task execution status in order to solve the problem that in a data-driven display system, after a task computer or a display and control terminal is restarted, the displayed information may be inconsistent with the real information that needs to be output for the actual task.
[0007] The technical solution to achieve the purpose of the present invention is: a method for achieving display information consistency applicable to a data-driven display system, the method comprising:
[0008] When the task computer is online, the display information consistency is achieved: an "interface initialization" message is sent to the display and control interface software of the display and control terminal, and the display and control interface is restored to the initial state;
[0009] Display interface buffer: a memory area that corresponds one-to-one with the display data of the controls on the display and control interface; during the execution of the business software, the latest status data of each control on the display and control interface is cached;
[0010] The display information consistency is achieved when the display and control terminal goes online: the display status is restored from the display interface buffer or the interface is set to the default value.
[0011] Furthermore, when the task computer is online, the display information consistency is realized, specifically:
[0012] When the task computer goes online and the business software is initialized, it sends an "interface initialization" message to the display and control interface software. At this time, if the display and control interface software receives the message, it restores the current display state to the default state. If the display and control interface software does not work normally, the message is ignored.
[0013] Furthermore, the display interface buffer is specifically:
[0014] The "display interface buffer" is a pre-structured memory area, in which the memory cells correspond one-to-one to the display data on the controls on the display interface. The memory cells of the "display interface buffer" are initialized to be consistent with the default state of the interface display when the display terminal is powered on and initialized;
[0015] When the business software sends a message to display the control update, the message is first cached in the queue.
[0016] When the cache queue is not empty, the display update message is taken out from the queue and sent to the display control interface software. In the specific process: first, the valid data of the display update message is copied and recorded in the "display interface buffer", and then sent to the display control interface software through the network.
[0017] Furthermore, when the display control terminal goes online, the consistency of displayed information is realized, specifically:
[0018] When the display and control terminal is initialized online, it sends a display interface online message to the business software; if the display and control interface software receives confirmation within the specified time, it starts to synchronize the display information, otherwise it directly sets the interface display to the default state;
[0019] The display information synchronization is initiated by the business software. The business software enters the "interface recovery mode", extracts the control display information one by one to the "display interface buffer", and sends the control display update message; after all the control displays are restored, the "interface recovery mode" is exited;
[0020] When the business software is in "interface recovery mode", the newly generated display information of the business software is cached in the queue and will not be issued immediately; when exiting "interface recovery mode", the display control interface will automatically take it out from the cache queue, update the display interface buffer, and send it to the display control interface software.
[0021] Compared with the prior art, the present invention has the following significant advantages: by using the display interface buffering technology, the latest display state of the display interface is saved in the form of data in the structured memory. At the same time, by using the online synchronization of the business software and the online synchronization algorithm of the display and control terminal, the business software and the display and control interface are completely decoupled, and the interface display signal is consistent with the actual output state of the business software.
[0022] The present invention is further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 FIG. 1 is a schematic diagram of a software framework of a typical data-driven display system of the present invention in one embodiment.
[0024] Figure 2 It is a sequence diagram of task computer online synchronization (display interface software is online) in one embodiment.
[0025] Figure 3 A diagram showing an interface buffer sequence in one embodiment.
[0026] Figure 4 It is a sequence diagram of the online synchronization of the display and control terminal (the business software is already online) in one embodiment. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] The present invention is implemented on the computer system software of the digital drive display system architecture. The business software and the display and control interface software work independently on the task computer and the display and control terminal respectively, and display information and control events synchronously with the network protocol message.
[0029] In one embodiment, in combination Figure 1 , a method for realizing display information consistency applicable to a data-driven display system is provided, the method comprising:
[0030] When the task computer is online, the display information consistency is achieved: an "interface initialization" message is sent to the display and control interface software of the display and control terminal, and the display and control interface is restored to the initial state;
[0031] Display interface buffer: a memory area that corresponds one-to-one with the display data of the controls on the display and control interface; during the execution of the business software, the latest status data of each control on the display and control interface is cached;
[0032] The display information consistency is achieved when the display and control terminal goes online: the display status is restored from the display interface buffer or the interface is set to the default value.
[0033] Furthermore, in one of the embodiments, the consistency of the displayed information when the task computer is online is implemented as follows:
[0034] When the task computer goes online and the business software is initialized, it sends an "interface initialization" message to the display and control interface software. At this time, if the display and control interface software receives the message, it restores the current display state to the default state. If the display and control interface software does not work normally, the message is ignored.
[0035] Furthermore, in one of the embodiments, the display interface buffer is specifically:
[0036] After the business software completes initialization, it can communicate with the display and control interface software through network protocol messages. The display and control interface software parses the messages to refresh the display controls and can notify the business software of response key events.
[0037] When the business software sends a display update message, the message is first cached in the queue. When the cache queue is not empty, the display update message is taken out of the queue and sent to the display control interface software. In the process, the valid data of the display update message is first copied and recorded in the "display interface buffer", and then sent to the display control interface software through the network.
[0038] The "display interface buffer" is a pre-structured memory area. The memory area is a memory area opened up on the task computer. Through pre-structuring, a one-to-one correspondence between memory units and display controls is established. The business software completes the initialization, update, synchronization and other operations of the "display interface buffer" by calling the function interface. During the initialization phase of the business software, the "display interface buffer" memory area is initialized to be consistent with the default state of the interface display. Subsequently, regardless of the operating state of the display interface, the "display interface buffer" memory area remains refreshed.
[0039] Furthermore, in one of the embodiments, the display information consistency is implemented when the display and control terminal goes online, specifically:
[0040] When the display and control terminal is initialized online, it sends a display interface online message to the business software; if the display and control interface software receives confirmation within the specified time, it starts to synchronize the display information, otherwise it directly sets the interface display to the default state;
[0041] The display information synchronization is initiated by the business software. The business software enters the "interface recovery mode", extracts the control display information one by one to the "display interface buffer", and sends the control display update message; after all the control displays are restored, the "interface recovery mode" is exited;
[0042] When the business software is in "interface recovery mode", the newly generated display information of the business software is cached in the queue and will not be issued immediately; when exiting "interface recovery mode", the display control interface will automatically take it out from the cache queue, update the display interface buffer, and send it to the display control interface software.
[0043] Furthermore, in one embodiment, the business software is used to complete the business functions required to be performed by the equipment, but does not include functions such as interface display, and specifically includes:
[0044] Business module, used to complete the business functions required by the equipment, call the display and control programming interface library, realize the display information refresh of the display and control interface software, and process control events;
[0045] Display control programming interface library, used to provide function interface for interaction with display control interface software, process display control event messages, provide display interface buffer management, and process consistency implementation algorithm;
[0046] The display interface buffer is used to cache the latest display information data generated during the execution of tasks by the business module, and when necessary, it is read by the display control programming interface library and sent to the display control interface software for restoring the consistency of the display information.
[0047] Furthermore, in one embodiment, the display control interface software is used to provide graphical interface display information and respond to the operator's key events, specifically including:
[0048] The display and control event processing engine is used to process the display and control event messages, trigger the display refresh of the display and control interface module, and report the key events of the display and control interface module;
[0049] The display and control interface module is used to provide interfaces and controls for information display and control event perception.
[0050] Furthermore, in one of the embodiments, based on the above business software and display control interface software:
[0051] When the task computer is online and synchronized, if the display and control interface software is online at this time, combined with Figure 2 , the implementation method of display information consistency is as follows:
[0052] The business module calls the initialization interface function, and the display control programming interface library sends the interface initialization message. After receiving the message, the display control event processing engine triggers the display control interface module to perform the operation of restoring the display information, and the display is restored to the default state. After completion, the business module is notified that the initialization is complete, and the business module starts to execute the business.
[0053] When the task computer is online for synchronization, if the display and control interface software is not online and the business module does not receive a reply of "initialization completed" within the specified time, the business module starts to execute the business.
[0054] When the business software is executed, in order to prevent the display interface software from being offline and the display information from being lost, the display interface buffer is used to record the latest status of the display information. Figure 3 , the display interface buffer implementation algorithm is as follows:
[0055] When the business software needs to refresh the display, the business module calls the refresh control interface function provided by the display control programming interface library. The display control programming interface library first adds the display information data to the "control refresh request cache queue".
[0056] The display control programming interface library uses timing or signal triggering to obtain refresh requests from the queue. The obtained requests are first saved in the display interface buffer and the memory unit corresponding to the control, and then the control update message is assembled and sent to the display control interface software.
[0057] After receiving the control update message, the display and control interface software adds it to the "control refresh queue" and refreshes the controls one by one.
[0058] By using the display interface buffering method, even if the business software is running alone, the status of the displayed information is recorded. Figure 4 , the method to achieve the consistency of displayed information when the display and control terminal goes online is as follows:
[0059] When the display and control terminal comes online, the display and control interface software starts up. During initialization, the display and control interface software is initialized to a default state.
[0060] The display control interface software sends a display interface online notification to the business software. After the display control programming interface library responds to the notification, it sets the working mode to the interface recovery mode.
[0061] The display control programming interface library loops through each control information unit in the display interface buffer. If it is not the default value, it takes out the control information, assembles and sends the control update message. The display control interface software updates the control display information according to the message.
[0062] After all control variables are completed, leave the interface recovery mode and resume normal working mode.
[0063] During the interface recovery mode, the display information data generated by the business module is buffered in the "control refresh request cache queue". When the display control programming interface library returns to the normal working mode, it is taken out of the queue and updated to the interface. At this time, the interface display information is restored to a state consistent with the business software.
[0064] If the business software is not running, when the display and control terminal comes online, the display and control interface software is initialized to the default state and remains in the default state until the business software is running. The displayed information is consistent with the business execution status.
[0065] In summary, the method of the present invention adopts algorithms such as initial state recovery, process state display interface "buffering" and "pushing", etc., which can adapt to the different situations of the order in which business software and display interface software are put online, and ensure the consistency of interface display data and actual business output after the data-driven new display and control system recovers from a typical failure mode.
[0066] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for achieving display information consistency applicable to a data-driven display system, characterized in that: The method comprises: When the task computer is online, the display information consistency is achieved: an "interface initialization" message is sent to the display and control interface software of the display and control terminal, and the display and control interface is restored to the initial state; Display interface buffer: a memory area that corresponds one-to-one with the display data of the controls on the display and control interface; during the execution of the business software, the latest status data of each control on the display and control interface is cached; The display information consistency is achieved when the display and control terminal goes online: the display status is restored from the display interface buffer or the interface is set to the default value; The consistency of information displayed when the task computer is online is achieved as follows: When the task computer goes online and the business software is initialized, it sends an "interface initialization" message to the display and control interface software. At this time, if the display and control interface software receives the message, it restores the current display state to the default state. If the display and control interface software does not work normally, the message is ignored. The display interface buffer is specifically: The "display interface buffer" is a pre-structured memory area, in which the memory cells correspond one-to-one to the display data on the controls on the display interface. The memory cells of the "display interface buffer" are initialized to be consistent with the default state of the interface display when the display terminal is powered on and initialized; When the business software sends a message to display the control update, the message is first cached in the queue; When the cache queue is not empty, the display update message is taken out from the queue and sent to the display control interface software. In the specific process: first, the valid data of the display update message is copied and recorded in the "display interface buffer", and then sent to the display control interface software through the network; When the display and control terminal goes online, the consistency of displayed information is realized as follows: When the display and control terminal is initialized online, it sends a display interface online message to the business software; if the display and control interface software receives confirmation within the specified time, it starts to synchronize the display information, otherwise it directly sets the interface display to the default state; Display information synchronization is initiated by the business software. The business software enters the "interface recovery mode", extracts the control display information one by one from the "display interface buffer", and sends the control display update message; after all control displays are restored, the "interface recovery mode" is exited; When the business software is in "interface recovery mode", the newly generated display information of the business software is cached in the queue and will not be issued immediately; when exiting "interface recovery mode", the display control interface will automatically take it out from the cache queue, update the display interface buffer, and issue it to the display control interface software.
2. The method for realizing display information consistency of a data-driven display system according to claim 1, characterized in that: The business software is used to complete the business functions required by the equipment, but does not include interface display functions, specifically including: Business module, used to complete the business functions required by the equipment, call the display and control programming interface library, realize the display information refresh of the display and control interface software, and process control events; Display control programming interface library, used to provide function interface for interaction with display control interface software, process display control event messages, provide display interface buffer management, and process consistency implementation algorithm; The display interface buffer is used to cache the latest display information data generated during the execution of tasks by the business module, and when necessary, it is read by the display control programming interface library and sent to the display control interface software for restoring the consistency of the display information.
3. The method for realizing display information consistency of a data-driven display system according to claim 1, characterized in that: The display and control interface software is used to provide graphical interface display information and respond to operator key events, specifically including: The display and control event processing engine is used to process the display and control event messages, trigger the display refresh of the display and control interface module, and report the key events of the display and control interface module; The display and control interface module is used to provide interfaces and controls for information display and control event perception.
