Display control method of display equipment and display equipment
By classifying update requests and refreshing differential data, the problem of device resource pressure and data conflicts caused by frequent data updates is solved, the real-time and accuracy of data is improved, and the user experience is improved.
Patent Information
- Application Number
- CN202411102542.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-01
AI Technical Summary
In scenarios where data updates are frequent and the number of users is large, the existing web-side data update technology can easily lead to data conflicts and pressure on device resources, affecting user experience.
By classifying the update request, determine the key information and secondary information, only refresh the key information, and determine the difference data and the same data based on the first page data and the current page data, and only refresh the difference data to reduce device resources. consumption.
It effectively reduces the processing resource consumption of the display device, improves the accuracy and real-time nature of the data, avoids device overheating and data update conflicts, and improves the user experience.
Smart Images

Figure CN118735485A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of display devices, and in particular, to a display control method of a display device and a display device. Background Art
[0002] In related technologies, data screens have become an important tool for various industries to improve efficiency and convenience. Especially in the medical field, the scheduling calendar module, as a core component of the data screen, is used to dynamically display various plans under each device through timestamps, so that therapists and patients can view the device status and plan execution progress in real time. In addition, similar application scenarios include data screens at railway stations, which can display the number of trains at each time point, detailed information on each train, and the total number of trains per day in real time, providing passengers with instant travel information.
[0003] The key to a large data screen is to be able to update data in a timely and accurate manner to avoid affecting the user experience due to information lag or page freezes. However, existing Web-side data update technologies have obvious shortcomings. Usually, even a small change in device status will cause the entire page to be refreshed. This full-page refresh method is acceptable when the amount of data is small and the number of user visits is not high. However, in scenarios such as hospitals or treatment institutions, data updates frequently and the number of users is huge. This full-page refresh method is very likely to cause data update conflicts, affecting the accuracy and real-time nature of the data.
[0004] In addition, frequent page refreshes can also put a lot of pressure on device resources, especially when using old devices, which may cause the device to overheat or even malfunction, seriously affecting the user experience. Therefore, the existing page update method is no longer suitable for current needs, and a new solution is urgently needed. Summary of the invention
[0005] The embodiments of the present application provide a display control method for a display device and a display device, which are used to improve the technical problem in the related art that a page update method easily leads to data conflicts and places great pressure on device resources.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions: In a first aspect, an embodiment of the present application provides a display control method for a display device, which is applied to the display device, and the method includes: obtaining an update request, and determining a request to be updated based on a predetermined strategy and the update request, wherein the request to be updated has first page data corresponding to it; determining second page data based on the first page data and the current page data, and displaying based on the second page data, wherein the page data is display data of a display page of the display device.
[0007] The present application reduces the processing resources required for the display device by classifying the update requests, determining the first update request, and only refreshing the first update request. At the same time, the second page data is determined according to the first page data and the current page data, and displayed based on the second page data, so that the device resources of the display device can be further reduced.
[0008] In a possible implementation manner of the first aspect, the update request includes a first update request and a second update request, the first update request is used to update key information displayed by the display device, and the second update request is used to update secondary information of the display device.
[0009] In a possible implementation of the first aspect, determining the request to be updated based on a predetermined strategy and the update request includes: based on the importance of information corresponding to the update request, dividing the update request into a first update request and a second update request, and determining the first update request as the request to be updated.
[0010] In a possible implementation of the first aspect, the second page data includes difference data and identical data, and determining the second page data based on the first page data and the current page data, and displaying based on the second page data, includes: acquiring the first page data corresponding to the first update request; determining the difference data and the identical data between the first page data and the current page data, and displaying based on the difference data and the identical data.
[0011] In a possible implementation of the first aspect, the first page data includes a first array, the current page data includes a current array, and determining the difference data and the same data between the first page data and the current page data includes: based on the first array and the current array, taking the data with the same position but different values in the first array and the current array as the difference data, and taking the data with the same position and the same value in the first array and the current array as the same data.
[0012] In a possible implementation of the first aspect, the display based on the difference data and the same data includes: retaining a portion of the display page corresponding to the same data, and refreshing a portion of the display page corresponding to the difference data based on the difference data.
[0013] In the second aspect, an embodiment of the present application also provides a display device, which includes: an acquisition module, which is used to acquire an update request; a policy module, which is coupled to the acquisition module, and is used to determine the request to be updated based on a predetermined policy and the update request, wherein the predetermined policy includes the importance of information, and the request to be updated has a first page data corresponding to it; an analysis module, which is coupled to the policy module, and is used to determine the second page data based on the first page data and the current page data; and a display module, which is coupled to the analysis module, and is used to display according to the second page data.
[0014] The present application reduces the processing resources required for the display device by classifying the update requests, determining the first update request, and only refreshing the first update request. At the same time, the second page data is determined according to the first page data and the current page data, and displayed based on the second page data, so that the device resources of the display device can be further reduced.
[0015] In a possible implementation of the second aspect, the policy module divides the update request into a first update request and a second update request based on the importance of the information corresponding to the update request, and determines the first update request as the request to be updated, the first update request is used to update the key information displayed by the display device, and the second update request is used to update the secondary information of the display device.
[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory is coupled to the processor, and the memory is used to store computer program code, wherein the computer program code comprises computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes a method as described in any possible implementation method in the first aspect.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method as described in any possible implementation of the first aspect.
[0018] It is understandable that the electronic device provided in the third aspect and the computer-readable storage medium provided in the fourth aspect are both used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A flowchart of a display control method provided for some embodiments of the present application; Figure 2 A flowchart of a display control method provided for some embodiments of the present application; Figure 3 A flow chart of a display control method is provided for other embodiments of the present application; Figure 4 Schematic diagrams of a first array and a second array provided for other embodiments of the present application; Figure 5 A schematic diagram of a process of replacing data of a first array and a second array provided for other embodiments of the present application; Figure 6 A schematic diagram of the structure of a display device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0020] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0021] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0022] In addition, in the present application, directional terms such as "up", "down", "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to the change in the orientation of the components in the drawings.
[0023] In this application, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "electrical connection" can be a way of achieving electrical connection for signal transmission.
[0024] As used herein, “about,” “substantially,” or “approximately” includes the stated value and reference values that are within an acceptable range of deviation from the particular value, where the acceptable range of deviation is as determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).
[0025] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0026] In related technologies, data screens have become an important tool for various industries to improve efficiency and convenience. Especially in the medical field, the scheduling calendar module, as a core component of the data screen, is used to dynamically display various plans under each device through timestamps, so that therapists and patients can view the device status and plan execution progress in real time. In addition, similar application scenarios include data screens at railway stations, which can display the number of trains at each time point, detailed information on each train, and the total number of trains per day in real time, providing passengers with instant travel information.
[0027] The key to a large data screen is to be able to update data in a timely and accurate manner to avoid affecting the user experience due to information lag or page freezes. However, existing Web-side data update technologies have obvious shortcomings. Usually, even a small change in device status will cause the entire page to be refreshed. This full-page refresh method is acceptable when the amount of data is small and the number of user visits is not high. However, in scenarios such as hospitals or treatment institutions, data updates frequently and the number of users is huge. This full-page refresh method is very likely to cause data update conflicts, affecting the accuracy and real-time nature of the data.
[0028] In addition, frequent page refreshes can also put a lot of pressure on device resources, especially when using old devices, which may cause the device to overheat or even malfunction, seriously affecting the user experience. Therefore, the existing page update strategy is no longer suitable for current needs, and a new solution is urgently needed.
[0029] In view of the above problems, the embodiments of the present invention provide a display control method for a display device, which is used to improve the technical problem in the related art that the page update method easily leads to data conflicts and places great pressure on device resources.
[0030] like Figure 1 As shown, an embodiment of the present application provides a display control method of a display device, which is applied to the display device, and the method includes: S100: Acquire an update request, and determine a request to be updated based on a predetermined policy and the update request, wherein the request to be updated has first page data corresponding thereto.
[0031] Exemplarily, an existing display device is used to display information under each service device. The display screen generated by the display device based on the service device information is defined as a display page. The display page adopts a display form of scrolling in a timeline, with a scrolling timeline displayed on the left side of the page and multiple plan bars under each service device displayed on the right side of the page. Each plan bar contains user information and plan information, etc.
[0032] The display device and the service device communicate using the WebSocket protocol (a network transmission protocol that enables full-duplex communication on a single TCP connection). The service device can actively send messages to the display device. For example, the service device transmits a request to update a page to the display device, which is referred to as an update request. When the display device determines that an update request needs to be updated, it requests the service device for page data corresponding to the update request, and the display device displays according to the page data, that is, the page data is the display data of the display page.
[0033] However, when the number of service devices is large, the data transmission frequency per second is high. For example, dozens of messages need to be sent just to turn on and off information of multiple service devices. If each message needs to be reloaded, it will cause great pressure on the display device.
[0034] Therefore, it is necessary to classify the update requests, give priority to displaying important update requests, and display minor update requests as secondary or not displaying them. Exemplarily, the update request includes a first update request and a second update request, wherein the first update request is used to update the key information that the display device needs to display, and the second update request is used to update the minor information that the display device needs to display.
[0035] It is understandable that the classification of update requests can be selected based on the needs of those skilled in the art. For example, when a user is more concerned about time information, an update request related to time information is an important update request. Therefore, in an embodiment of the present application, the predetermined strategy is to divide the update request into a first update request and a second update request based on the importance of the information corresponding to the update request, and determine the first update request as the request to be updated. The page data corresponding to the first update request is referred to as the first page data.
[0036] S200: Determine second page data according to the first page data and current page data, and display based on the second page data, wherein the page data is display data of a display page of the display device.
[0037] For example, Figure 2 As shown, the second page data includes difference data and identical data, and the second page data is determined according to the first page data and the current page data, and displayed based on the second page data, including: S210, acquiring the first page data corresponding to the first update request; S220: Determine the difference data and the same data between the first page data and the current page data, and display based on the difference data and the same data.
[0038] For example, there is often data overlap between the first page data and the current page data, that is, part of the content on the display page corresponding to the first page data overlaps with part of the content on the display page corresponding to the current page data. Therefore, this part of the content may be chosen not to be updated to save device resources.
[0039] like Figure 4 As shown, Figure 4 a is the display data corresponding to the current page data, which is defined as the first array. Figure 4 b is the display data corresponding to the first page data, which is defined as the current array. It can be seen that only part of the data is different between the first array and the current array. If all the display data are updated, it will lead to a waste of device resources.
[0040] like Figure 3 As shown, in some embodiments, determining the difference data and the same data between the first page data and the current page data includes: S221. Based on the first array and the current array, the data in the first array and the current array with the same position but different values are used as the difference data, and the data in the first array and the current array with the same position and the same value are used as the same data.
[0041] S222: retain the portion of the display page corresponding to the same data, and refresh the portion of the display page corresponding to the difference data based on the difference data.
[0042] For example, Figure 5 As shown, Figure 4 a Figure 4 The data with the same value and position in b are temporarily stored without being refreshed. Figure 4 a Figure 4 The data with different values but the same position in b are Figure 4 The corresponding data in b is replaced, and the display device displays the replaced data as the display data of the display page.
[0043] In this way, the display device temporarily stores the same part of the first page data and the current page data, and only refreshes the different part of the first page data and the current page data, thereby solving the problem of device resources of the display device.
[0044] The present application classifies update requests, divides the update requests into first update requests and second update requests according to their importance, and only refreshes the first update request, thereby reducing the processing resources required for the display device. At the same time, the data of the first page data corresponding to the first update request that is the same as the current page data is temporarily stored, and the data of the first page data that is different from the current page data is refreshed, so that the device resources of the display device can be further reduced.
[0045] In a second aspect, the present application also provides a display device, such as Figure 6 As shown, the display device includes an acquisition module 10 , a strategy module 20 , an analysis module 30 and a display module 40 .
[0046] The acquisition module 10 is used to obtain the update request. The display device and the service device communicate using the WebSocket protocol (a network transmission protocol that can perform full-duplex communication on a single TCP connection). The service device can actively send messages to the display device. For example, the service device transmits a request to update a page to the display device, which is hereinafter referred to as an update request. When the display device determines that an update request needs to be updated, it requests the service device for page data corresponding to the update request, and the display device displays according to the page data, that is, the page data is the display data of the display page. The acquisition module 10 obtains the WebSocket request of the service device and defines it as an update request.
[0047] The strategy module 20 is coupled to the acquisition module 10. The strategy module 20 is used to determine the request to be updated based on a predetermined strategy and the update request. The predetermined strategy includes the importance of information.
[0048] Exemplarily, the predetermined strategy is to divide the update request into a first update request and a second update request based on the importance of the information corresponding to the update request, and determine the first update request as the request to be updated. The page data corresponding to the first update request is called the first page data.
[0049] The analysis module 30 is coupled to the policy module 20. The analysis module 30 is configured to determine the second page data according to the first page data and the current page data.
[0050] The analysis module 30 determines the difference data and the same data between the first page data and the current page data. Based on the first array and the current array, the data in the first array and the current array with the same position but different values are taken as the difference data, and the data in the first array and the current array with the same position and the same value are taken as the same data.
[0051] The display module 40 is coupled to the analysis module 30, and is used for displaying data according to the second page. For example, the display module 40 temporarily stores the same data and refreshes the difference data.
[0052] For example, Figure 4 a Figure 4 The data with the same value and position in b are temporarily stored without being refreshed. Figure 4 a Figure 4 The data with different values but the same position in b are Figure 4 The corresponding data in b is replaced, and the display device displays the replaced data as the display data of the display page.
[0053] In this way, the display device temporarily stores the same part of the first page data and the current page data, and only refreshes the different part of the first page data and the current page data, thereby solving the problem of device resources of the display device.
[0054] The present application classifies update requests, divides the update requests into first update requests and second update requests according to their importance, and only refreshes the first update request, thereby reducing the processing resources required for the display device. At the same time, the data of the first page data corresponding to the first update request that is the same as the current page data is temporarily stored, and the data of the first page data that is different from the current page data is refreshed, so that the device resources of the display device can be further reduced.
[0055] In a possible implementation of the second aspect, the policy module divides the update request into a first update request and a second update request based on the importance of the information corresponding to the update request, and determines the first update request as the request to be updated, the first update request is used to update the key information displayed by the display device, and the second update request is used to update the secondary information of the display device.
[0056] The present application classifies update requests, divides the update requests into first update requests and second update requests according to their importance, and only refreshes the first update request to reduce the processing resources required by the display device. At the same time, the data of the first page data corresponding to the first update request that is the same as the current page data is temporarily stored, and the data of the first page data that is different from the current page data is refreshed, so that the device resources of the display device can be further reduced.
[0057] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory is coupled to the processor, and the memory is used to store computer program code, wherein the computer program code comprises computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes a method as described in any possible implementation method in the first aspect.
[0058] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method as described in any possible implementation of the first aspect.
[0059] It is understandable that the electronic device provided in the third aspect and the computer-readable storage medium provided in the fourth aspect are both used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, and will not be repeated here.
[0060] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that the diagnostic method in the above embodiment can be implemented by software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.
[0061] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0062] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0063] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0064] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware.
[0065] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A display control method for a display device, applied to the display device, characterized in that: The method comprises: Obtaining an update request, and determining a request to be updated based on a predetermined policy and the update request, wherein the request to be updated has first page data corresponding thereto; The second page data is determined according to the first page data and the current page data, and is displayed based on the second page data. The page data is display data of the display page of the display device.
2. The display control method of the display device according to claim 1, characterized in that: The update request includes a first update request and a second update request, the first update request is used to update key information displayed by the display device, and the second update request is used to update secondary information of the display device.
3. The display control method of the display device according to claim 2, characterized in that: The determining the request to be updated based on the predetermined policy and the update request includes: Based on the importance of the information corresponding to the update request, the update request is divided into a first update request and a second update request, and the first update request is determined as the request to be updated.
4. The display control method of the display device according to claim 3, characterized in that: The second page data includes difference data and identical data, and determining the second page data according to the first page data and the current page data, and displaying based on the second page data, includes: Acquire the first page data corresponding to the first update request; The difference data and the same data between the first page data and the current page data are determined, and displayed based on the difference data and the same data.
5. The display control method of the display device according to claim 4, characterized in that: The first page data includes a first array, the current page data includes a current array, and determining difference data and identical data between the first page data and the current page data includes: Based on the first array and the current array, data in the first array and the current array with the same position but different values are used as the difference data, and data in the first array and the current array with the same position and the same value are used as the same data.
6. The display control method of the display device according to claim 5, characterized in that: The displaying based on the difference data and the same data includes: The portion of the display page corresponding to the same data is retained, and the portion of the display page corresponding to the difference data is refreshed based on the difference data.
7. A display device, characterized in that: The display device includes: An acquisition module, configured to acquire an update request; a policy module coupled to the acquisition module, the policy module being configured to determine a request to be updated based on a predetermined policy and the update request, the predetermined policy including the importance of information, and the request to be updated having corresponding first page data; an analysis module, the analysis module being coupled to the policy module, and configured to determine second page data based on the first page data and current page data; A display module is coupled to the analysis module, and is configured to display data according to the second page.
8. The display device according to claim 7, characterized in that: The policy module divides the update request into a first update request and a second update request based on the importance of the information corresponding to the update request, and determines the first update request as the request to be updated, the first update request is used to update the key information displayed by the display device, and the second update request is used to update the secondary information of the display device.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is coupled to the processor, and the memory is used to store computer program code, wherein the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 6.
