Display device, page switching method, and central control device of smart home system
By introducing frame buffers and registers in smart home appliances, and using the controller to change the display address to perform page switching, the problem of insufficient fluency of user interface switching is solved, achieving higher fluency and lower hardware costs.
Patent Information
- Application Number
- PCT/CN2024/075330
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2025-08-07
AI Technical Summary
Existing smart home appliances have problems with insufficient fluency when switching user interfaces, including delay in page switching, image refresh and low frame rate, resulting in increased hardware costs.
By introducing frame buffers and registers into the display device, the controller selects the display address from multiple cache addresses and controls the display panel to display bitmap data in the cache address, reducing the data transmission time during page switching, and using the method of changing the display address to perform page switching.
It improves the smoothness of user interface switching, reduces the demand for the controller's frame buffer resource, and reduces the hardware cost of the display device.
Smart Images

Figure CN2024075330_07082025_PF_FP_ABST
Abstract
Description
Display device, page switching method, and central control device of smart home system Technical Field
[0001] The present disclosure relates to the fields of front-end technology and smart device technology, and more specifically, to a display device, a page switching method, an electronic device, a central control device of a smart home system, a storage medium, and a computer program product. Background Art
[0002] With the development of the Internet and artificial intelligence technology, smart devices have been widely used in various fields of people's production and life. Taking smart home appliances as an example, the proportion of people's purchases of smart home appliances with display and interactive functions in the total purchases of home appliances continues to expand.
[0003] When smart home appliances, especially small home appliances, realize their display functions, they need to use more display materials in order to obtain more exquisite display effects and smoother animations. This requires the configuration of larger memory space in small home appliances, thereby increasing the hardware cost of small home appliances.
[0004] Summary of the Invention
[0005] In view of this, the present disclosure provides a display device, a page switching method, an electronic device, a central control device of a smart home system, a storage medium, and a computer program product.
[0006] One aspect of the present disclosure provides a display device, comprising: a display panel configured to display a picture; a frame buffer configured to store bitmap data of the picture, the frame buffer including multiple cache addresses; a register configured to store a display address of the display panel; and a controller configured to control the register to select a cache address from the multiple cache addresses as the display address, and to control the display panel to display the bitmap data of the picture stored in the cache address.
[0007] Another aspect of the present disclosure provides a page switching method, including: obtaining bitmap data of a page to be displayed based on a page switching request; determining a target cache address for storing the bitmap data of the page to be displayed from multiple cache addresses; and changing the display address of the display panel to the target cache address to control the display panel to switch from the current display page to the page to be displayed.
[0008] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory configured to store one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described above.
[0009] Another aspect of the present disclosure provides a central control device for a smart home system, comprising: a display panel; one or more processors; and a memory configured to store one or more instructions, wherein the one or more processors are configured to receive touch screen control instructions through the display panel, and execute the one or more instructions based on the touch screen control instructions to implement the method described above.
[0010] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon. When the executable instructions are executed by a processor, the processor is enabled to implement the method described above.
[0011] Another aspect of the present disclosure provides a computer program product, which includes computer-executable instructions. When the computer-executable instructions are executed by a processor, they are configured to implement the method described above.
[0012] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0014] FIG1 schematically shows a schematic diagram of a display device according to an embodiment of the present disclosure.
[0015] FIG2A schematically shows a schematic diagram of a settings page according to an embodiment of the present disclosure.
[0016] FIG2B schematically shows a schematic diagram of a scene page according to an embodiment of the present disclosure.
[0017] FIG3 schematically shows a diagram of a controller controlling a display panel to switch from a current display page to a page to be displayed according to an embodiment of the present disclosure.
[0018] FIG4A schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to an embodiment of the present disclosure.
[0019] FIG4B schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0020] FIG4C schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0021] FIG4D schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0022] FIG4E schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0023] FIG4F schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0024] FIG4G schematically shows a schematic diagram of transmitting display materials of a page to be displayed according to an embodiment of the present disclosure.
[0025] FIG5 schematically shows a schematic diagram of a page switching workflow of a display device according to an embodiment of the present disclosure.
[0026] FIG6 schematically shows a schematic diagram of a background update process of a non-displayed page according to an embodiment of the present disclosure.
[0027] FIG7 schematically shows a flow chart of displaying a dynamic effect page according to an embodiment of the present disclosure.
[0028] FIG8 schematically shows a schematic diagram of a display material loading method according to an embodiment of the present disclosure.
[0029] FIG9 schematically shows a schematic diagram of a data compression and decompression process of a controller during a startup phase according to an embodiment of the present disclosure.
[0030] FIG10 schematically shows a schematic diagram of a data compression process of a controller in a data compression phase according to an embodiment of the present disclosure.
[0031] FIG. 11 schematically shows a schematic diagram of updating respective bitmap data of a plurality of commonly used pages according to an embodiment of the present disclosure.
[0032] FIG12 schematically shows a schematic diagram of a bitmap data update process based on a page weight adjustment strategy according to an embodiment of the present disclosure.
[0033] FIG13 schematically shows a flow chart of a page switching method according to an embodiment of the present disclosure.
[0034] FIG14 shows a schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure. DETAILED DESCRIPTION
[0035] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0036] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0037] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0038] When expressions such as "at least one of A, B and C, etc." are used, they should generally be interpreted in accordance with the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0039] In related technologies, when a display device completes a UI (User Interface) switch, it at least requires the controller to read the UI material data from the memory. However, due to the limitations of embedded hardware, especially the speed of reading UI material data from the memory and the limitations of the controller's internal frame buffer resources, the display device will have problems with overall fluency when performing UI switching, including page switching delays, image refresh feeling, low animation frame rate, etc., resulting in the performance of the display device when performing UI switching failing to meet the needs of many application scenarios.
[0040] In view of this, embodiments of the present disclosure provide a display device, a page switching method, an electronic device, a central control device for a smart home system, a storage medium, and a computer program product, which can effectively improve the smoothness of UI switching, effectively reduce the demand for the controller's frame buffer resources, and reduce the hardware cost of the display device. Specifically, the display device includes: a display panel configured to display a picture; a frame buffer configured to store bitmap data of the picture, the frame buffer including multiple buffer addresses; a register configured to store the display address of the display panel; and a controller configured to control the register to select a cache address from the multiple cache addresses as the display address, and control the display panel to display the bitmap data of the picture stored in the cache address.
[0041] In the technical solution of the present invention, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0042] FIG1 schematically shows a schematic diagram of a display device according to an embodiment of the present disclosure.
[0043] As shown in Figure 1, display device 100 may include a display panel 110, a frame buffer 120, a register 130, and a controller 140. Frame buffer 120, register 130, and controller 140 may be interconnected via a system bus. Display device 100 may refer to any electronic device capable of displaying a display function, including but not limited to smart home appliances and industrial smart devices.
[0044] According to the embodiments of the present disclosure, the type of the display panel 110 is not limited herein, and may be, for example, an LCD (Liquid Crystal Display), an LED (Large Electronic Display), etc. The display panel 110 may be configured to display a screen, which may include multiple displayable pages, and the screen displayed on the display panel 110 may be switched between the multiple displayable pages.
[0045] According to an embodiment of the present disclosure, the display device 100 may include an internal memory, at least part of which may be used as the frame buffer 120. Alternatively, the display device 100 may include an independent frame buffer 120. The frame buffer 120 may be configured to store bitmap data of a picture.
[0046] The bitmap data of a page can be the data of an image or screen generated by fusing the display materials, background image, configuration information and other generating elements of the page. A page can have multiple controls attached to the page, and the display materials can be represented as image data used to express the functions of the multiple controls attached to the page. For example, for digital controls, the display materials can include image data of numbers such as "0" and "1". Accordingly, the configuration information can record information such as the position, length and width, transparency, and included attribute values of the multiple controls attached to the page on the background image. Based on the configuration information, it can be determined how to draw the display materials on the background image to obtain the bitmap data of the page.
[0047] For example, based on the configuration information of the page, the position of the display material of the page on the background image of the page to be displayed can be determined, and based on the position and the pixel values of the multiple pixels included in the display material of the page, the pixel values of the multiple pixels included in the corresponding area on the background image of the page to be displayed can be modified to draw the display material on the background image. The data of the background image after the drawing is completed is the bitmap data of the page. The frame buffer 120 can include multiple cache addresses, each of which can be used to store the bitmap data of the picture, or can also be used to constitute all or part of the generation elements of the bitmap data of the picture, which is not limited here. Each cache address can be represented as an address range, and the address range can correspond to a storage area of the frame buffer.
[0048] According to an embodiment of the present disclosure, the register 130 may be configured to store a display address of the display panel 110 .
[0049] The display address of the display panel 110 may refer to the starting read address of the digital-to-analog converter. The digital-to-analog converter may read a page of bitmap data starting from this address, convert the bitmap data into an analog signal, and use the analog signal to control the operating state of transistors within the display panel 110 to display the page of bitmap data on the display panel 110. The display address of the display panel 110 may generally be set by default to address "0" of the frame buffer, that is, the display panel 110 may generally display the page of bitmap data stored in the buffer address corresponding to address "0" of the frame buffer.
[0050] According to an embodiment of the present disclosure, the controller 140 may be configured to control the register 130 to select a cache address from a plurality of cache addresses as a display address, and control the display panel 110 to display bitmap data of a picture stored in the cache address.
[0051] After receiving a page switching request, the controller 140 can select a cache address for storing the bitmap data of the page to be displayed from multiple cache addresses as the display address according to the page to be displayed specified by the page switching request, or, after selecting a cache address as the display address, transfer the bitmap data of the page to be displayed to the cache address.
[0052] The source of the page switching request is not limited here. For example, the display panel 110 configured by the display device 100 may have a touch control function, and the user can perform a page switching gesture on the display panel 110 to cause the display device 100 to generate a page switching request. For another example, the display device 100 may be configured with a voice interaction device such as an audio receiver, a speaker, and a microphone. The user can issue a page switching instruction through a specific voice instruction format, and the display device 100 can generate a page switching request after receiving the page switching instruction. For another example, the display device 100 may be configured with an infrared signal receiver and an external remote control device. The user can issue a page switching signal by operating the remote control device, and the display device 100 can generate a page switching request after the infrared signal receiver receives the page switching signal.
[0053] The page switch request may include identification information of the page to be displayed. This identification information can be used to retrieve the cache address storing the bitmap data of the page to be displayed from the frame buffer. The identification information of the page to be displayed can be information that uniquely identifies the page to be displayed, such as a unique device identifier (UDID) of the page to be displayed, a short name uniquely corresponding to the page to be displayed, etc., without limitation herein.
[0054] Selecting a cache address as the display address may be to use the first address of the address area represented by the cache address as the display address.
[0055] According to the display device of the embodiment of the present disclosure, the controller can select a cache address from multiple cache addresses and change the display address of the display panel stored in the register to the cache address, thereby controlling the display panel to display the bitmap data of the picture stored in the cache address. When the display device switches pages, compared with the method of transferring the bitmap data of the picture in the frame buffer to the default display address of the display panel, the method of changing the display address of the display panel can effectively reduce the time consumption of page switching, avoid the refreshing feeling of page switching, increase the smoothness of page switching, and enhance the user experience.
[0056] The display device shown in FIG1 will be further described below with reference to the accompanying drawings and specific embodiments.
[0057] The screen displayed on the display panel of a display device may include multiple pages, such as a home page, a settings page, and a scene page. Each page can be switched between by switching pages. The following describes the pages that can be displayed on the display panel of a display device and the content contained on each page, using the settings page and the scene page as examples.
[0058] FIG2A schematically shows a schematic diagram of a settings page according to an embodiment of the present disclosure.
[0059] As shown in Figure 2A, the settings page may include a settings page background image, as well as a jump control for returning to the scene page, a jump control for jumping to the network connection page, a jump control for jumping to the system information page, and a jump control for jumping to the personalized settings page.
[0060] The background image of the settings page can be an image filled with a solid color, such as an image filled with white as shown in FIG2A , or an image filled with various patterns, without limitation. The background images of each page can be the same or different, without limitation.
[0061] The jump control for returning to the scene page may include the text content "Settings" and a jump button, and the configuration information related to the control may include the text content "Settings" and the coordinate information, length, width, transparency, etc. of the control; the jump control for jumping to the network connection page may include the text content "Network Connection" and a jump button, and the configuration information related to the control may include the text content "Network Connection" and the coordinate information, length, width, transparency, etc. of the control; the jump control for jumping to the system information page may include the text content "System Information" and a jump button, and the configuration information related to the control may include the text content "System Information" and the coordinate information, length, width, transparency, etc. of the control; the jump control for jumping to the personalized settings page may include the text content "Personalized Settings" and a jump button, and the configuration information related to the control may include the text content "Personalized Settings" and the coordinate information, length, width, transparency, etc. of the control. The above text content and the jump button symbol can be drawn on the background image of the settings page by display materials. The user can switch from the settings page to other pages by triggering any of the above four jump buttons.
[0062] FIG2B schematically shows a schematic diagram of a scene page according to an embodiment of the present disclosure.
[0063] As shown in FIG2B , the scene page may include a scene page background image, a time control for displaying moment information, an environmental information control for displaying temperature and humidity information, multiple mode change controls for changing modes, a jump control for jumping to the home page, and a jump control for jumping to the device page. The multiple mode change controls for changing modes may include a mode change control for switching to home mode, a mode change control for switching to away mode, a mode change control for switching to sleep mode, and the like.
[0064] The scene page background image can be an image filled with a solid color, such as an image filled with white as shown in FIG2B , or an image filled with various patterns, without limitation. The background images of each page can be the same or different, without limitation.
[0065] The time control for displaying moment information can be a text control, and the display materials attached to the text control include "1", "5", ":", and the configuration information related to the control can include the text content "15:51" and the coordinate information, length and width information, transparency, etc. of the control; the environmental information control for displaying temperature and humidity information can include the text content "temperature", "℃", "humidity", "%" and two text boxes, and the display materials attached to one text box include "2", "4", and the display materials attached to the other text box include "2", "0", and the configuration information related to the control can include the text content "temperature", "℃", "humidity", "%", "24", "20" and the coordinate information, length and width information, transparency, etc. of the control; the mode change control for switching to home mode can include the text content "home mode" and a switch button, and the configuration information related to the control can include the text content "home mode" and the coordinate information of the control. information, length and width information, transparency, etc.; a mode change control for switching to away mode may include text content "away mode" and a switch button, and configuration information related to the control may include text content "away mode" and coordinate information, length and width information, transparency, etc. of the control; a mode change control for switching to sleep mode may include text content "sleep mode" and a switch button, and configuration information related to the control may include text content "sleep mode" and coordinate information, length and width information, transparency, etc. of the control; a jump control for jumping to the home page may include text content "home page" and a jump button, and configuration information related to the control may include text content "home page" and coordinate information, length and width information, transparency, etc. of the control; a jump control for jumping to the device page may include text content "device" and a jump button, and configuration information related to the control may include text content "device" and coordinate information, length and width information, transparency, etc. of the control. Users can obtain the corresponding time, temperature and humidity information through the time control and environmental information control, and can change the mode of the display device by triggering any one of the switch buttons included in the three mode change controls, and can switch the pages of the display device by triggering any one of the jump buttons included in the two jump controls.
[0066] According to an embodiment of the present disclosure, a screen displayed by a display panel of a display device may include a currently displayed page and a page to be displayed. The multiple cache addresses may include a first cache address and a second cache address, the first cache address may be configured to store bitmap data of the currently displayed page, and the second cache address may be configured to store bitmap data of the page to be displayed.
[0067] The sizes of the first and second cache addresses can be determined by the data size of the background image of the page. For example, in the case of the RGB888 standard, each pixel of the image occupies (8+8+8) bits of space, that is, 3 bytes. For a background image with a resolution of 480×480, its data size can be 480×480×3=675KB (Kilobytes). Accordingly, the sizes of the first and second cache addresses can be set to 675KB.
[0068] According to an embodiment of the present disclosure, the controller may be configured to change the display address from the first cache address to the second cache address, so as to switch the display panel from displaying the currently displayed page to displaying the page to be displayed.
[0069] The following further describes the display device according to the embodiment of the present disclosure by taking the process of switching from the currently displayed page to the page to be displayed as an example.
[0070] FIG3 schematically shows a diagram of a controller controlling a display panel to switch from a current display page to a page to be displayed according to an embodiment of the present disclosure.
[0071] As shown in FIG3 , the acquired bitmap data of the page to be displayed may be pre-stored in the second cache address. After receiving the page switching request, the controller may modify the display address stored in the register from the original first cache address to the second cache address.
[0072] For example, assuming the background images of the page to be displayed and the currently displayed page are both sized 480×480, before a page switch occurs, the display address of the display panel stored in the register can be represented by the first address of a first buffer address. The address range represented by the first buffer address can be 0 to 480×480×3, and accordingly, the display address can be represented as 0. The address range represented by the second buffer address can be 480×480×3 to 480×480×6. When a page switch occurs, the first address of the second buffer address can be used to modify the display address, i.e., to 480×480×3. After the controller modifies the display address in the register, the digital-to-analog converter in the display device can read data starting at address 480×480×3, i.e., it can read the bitmap data of the page to be displayed. The digital-to-analog converter can convert the bitmap data of the page to be displayed into an analog signal, and use this analog signal to control the transistors of the display panel to display the page to be displayed on the display panel.
[0073] In the embodiment of the present disclosure, before the bitmap data of the page to be displayed is pre-stored in the second cache address, the location of the bitmap data of the page to be displayed is not limited herein.
[0074] Optionally, the bitmap data of the to-be-displayed page may be pre-stored in other buffer addresses of the frame buffer.
[0075] FIG4A schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to an embodiment of the present disclosure.
[0076] As shown in FIG4A , the plurality of buffer addresses included in the frame buffer may further include a third buffer address, and the third buffer address may be configured to store bitmap data of respective plurality of commonly used pages, which may include the page to be displayed.
[0077] According to an embodiment of the present disclosure, the controller may be configured to select bitmap data of a to-be-displayed page from respective bitmap data of a plurality of frequently used pages, and transfer the bitmap data of the to-be-displayed page from the third cache address to the second cache address.
[0078] Optionally, the third cache address may also be configured to store generation elements of each of the plurality of frequently used pages, the generation elements including background images, display materials and configuration data. Based on the generation elements of each of the plurality of frequently used pages, bitmap data of each of the plurality of frequently used pages may be generated.
[0079] FIG4B schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to an embodiment of the present disclosure.
[0080] As shown in Figure 4B, the multiple cache addresses included in the frame buffer may further include a third cache address, and the third cache address may be configured to store generation elements of multiple common pages, wherein the generation elements include background images, display materials, and configuration data.
[0081] According to an embodiment of the present disclosure, the controller can be configured to select the generation elements of the page to be displayed from the respective bitmap data of multiple commonly used pages, and transfer the generation elements of the page to be displayed from the third cache address to the second cache address, and obtain the bitmap data of the page to be displayed based on the generation elements of the page to be displayed.
[0082] Optionally, the bitmap data of the page to be displayed may be stored in a memory of the display device.
[0083] FIG4C schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0084] As shown in FIG4C , the display device may further include a memory that may be configured to store screen generation elements, including background images, display materials, and configuration data. Specifically, the memory may store generation elements for all displayable pages of the display device, and based on these generation elements, bitmap data for all displayable pages may be generated. These all displayable pages include pages to be displayed.
[0085] According to an embodiment of the present disclosure, the controller may be configured to transfer the generation elements of the page to be displayed from the memory to the second cache address, and obtain the bitmap data of the page to be displayed based on the generation elements of the page to be displayed.
[0086] Optionally, the operation address for the controller to obtain the bitmap data of the first page based on the generation elements of a page may be a frame buffer or a memory, which is not limited here.
[0087] FIG4D schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0088] As shown in FIG4D , the display device may further include a memory, which may be configured to store generation elements of a screen, including a background image, display materials, and configuration data.
[0089] According to an embodiment of the present disclosure, the controller may be configured to obtain generation elements of a page to be displayed, obtain bitmap data of the page to be displayed based on the generation elements of the page to be displayed, and transfer the bitmap data of the page to be displayed from the memory to the second cache address.
[0090] Alternatively, the background image in the screen generation elements stored in the memory may be a compressed background image, i.e., the size of the screen generation elements may be smaller than the size of the bitmap data of the screen. In this case, the generation elements of the page to be displayed may be preferentially transferred to the second cache address to reduce the size of the data packet to be transferred.
[0091] Optionally, since the data transmission speed within the frame buffer can be much faster than the data transmission speed between the frame buffer and the memory, when acquiring the bitmap data of the page to be displayed, the bitmap data of the page to be displayed can be acquired preferentially from the frame buffer.
[0092] According to an embodiment of the present disclosure, the controller can be configured to confirm whether bitmap data of the page to be displayed exists in the bitmap data of each of multiple commonly used pages, and if so, transfer the bitmap data of the page to be displayed from the third cache address to the second cache address; and, if not, transfer the generation elements of the page to be displayed from the memory to the second cache address.
[0093] The storage space of the frame buffer of the display device may be relatively limited. After the frame buffer allocates storage space for the first buffer address and the second buffer address, the remaining storage space may not be able to completely store the bitmap data of a page. Alternatively, the bitmap data of a page can be stored in the frame buffer and the memory respectively.
[0094] FIG4E schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0095] As shown in FIG4E , the bitmap data of the page to be displayed may include first bitmap data and second bitmap data that are different from each other. The bitmap data of the page to be displayed can be restored by splicing the first bitmap data and the second bitmap data.
[0096] According to an embodiment of the present disclosure, the plurality of cache addresses may further include a sixth cache address, and the sixth cache address may be configured to store the first bitmap data.
[0097] According to an embodiment of the present disclosure, the memory may be configured to store the second bitmap data.
[0098] According to an embodiment of the present disclosure, the controller may be configured to transfer the first bitmap data from the sixth cache address to the second cache address, and transfer the second bitmap data from the memory to the second cache address. The controller may then concatenate the first bitmap data and the second bitmap data to obtain the bitmap data of the page to be displayed.
[0099] Optionally, the first bitmap data and the second bitmap data may also be stored in the frame buffer and the memory respectively in the form of their generated elements.
[0100] FIG4F schematically shows a schematic diagram of transmitting bitmap data of a page to be displayed according to another embodiment of the present disclosure.
[0101] As shown in Figure 4F, the bitmap data of the page to be displayed may include first bitmap data and second bitmap data that are different from each other. The sixth cache address may be configured to store a first generation element for generating the first bitmap data. The memory may be configured to store a second generation element for generating the second bitmap data.
[0102] According to an embodiment of the present disclosure, the controller may be configured to transfer the first generated element from the sixth cache address to the second cache address, and transfer the second generated element from the memory to the second cache address. The controller may then obtain first bitmap data based on the first generated element and second bitmap data based on the second generated element. The controller may then concatenate the first bitmap data and the second bitmap data to obtain bitmap data for the page to be displayed.
[0103] According to an embodiment of the present disclosure, when the space of the frame buffer is limited, by storing a portion of the bitmap data of the page in the frame buffer, the size of the data packet transmitted between the frame buffer and the memory when the page is switched can be reduced, thereby reducing the time consumption of page switching and improving the smoothness of page switching.
[0104] Optionally, the display material appearing in the currently displayed page may not be sufficient to support the complete display of the page to be displayed. In this case, the required display material may be transferred from other locations to the second cache address.
[0105] FIG4G schematically shows a schematic diagram of transmitting display materials of a page to be displayed according to an embodiment of the present disclosure.
[0106] As shown in FIG4G , the multiple cache addresses may further include a fourth cache address. The fourth cache address may be configured to store a first display material of a page to be displayed. The first display material is a display material that does not appear in the currently displayed page.
[0107] According to an embodiment of the present disclosure, the controller may be configured to transfer the first display material from the fourth cache address to the second cache address, and transfer the display material appearing in the currently displayed page from the first cache address to the second cache address, so that the page to be displayed can be completely displayed.
[0108] Optionally, the first display material can be stored in the memory, and the controller can also be configured to transfer the first display material from the memory to the second cache address, and transfer the display material appearing in the current display page from the first cache address to the second cache address, so that the page to be displayed can be fully displayed.
[0109] According to an embodiment of the present disclosure, in a method of transmitting the bitmap data of the screen in the frame buffer to the default display address of the display panel, the time it takes for the controller to transmit the bitmap data of the page to be displayed to the first cache address is the second duration, and the time it takes for the controller to change the display address from the first cache address to the second cache address is the first duration. The time it takes to transmit the data packet is generally much longer than the time it takes to modify the display address through instructions, that is, the second duration is generally much longer than the first duration. Therefore, the method of changing the display address of the display panel can effectively reduce the total time it takes to switch pages.
[0110] For example, under the same storage conditions, the time taken to transfer the bitmap data of the page to be displayed from other storage locations to the specified cache address in the frame buffer can be t1, the time taken to process the bitmap data of the page to be displayed can be t2, the time taken to transfer the bitmap data of the page to be displayed in the frame buffer can be t3, and the time taken to modify the display address through instructions can be t4. Therefore, the total time taken to transfer the bitmap data of the screen in the frame buffer to the default display address of the display panel can be T1=t1+t2+t3, while the total time taken to change the display address of the display panel in the embodiment of the present disclosure can be T2=t1+t2+t4. Since t3 is generally much greater than t4, T1 can be much greater than T2, that is, the total time taken to change the display address of the display panel in the embodiment of the present disclosure is significantly shorter, and the refresh time when switching pages can be significantly shorter than the refresh time calculated based on the data transmission rate of the frame buffer, which can effectively reduce the refresh feeling of page switching and improve the smoothness of page switching.
[0111] After changing the display address from the first cache address to the second cache address and controlling the display panel to display the page to be displayed, the controller may also clear the bitmap data of the current display page stored in the second cache address.
[0112] FIG5 schematically shows a schematic diagram of a page switching workflow of a display device according to an embodiment of the present disclosure.
[0113] As shown in Figure 5, the bitmap data of the page to be displayed can be stored in the third buffer address of the frame buffer. The controller can transfer the bitmap data of the page to be displayed from the third buffer address to the second buffer address, and change the display address of the display panel to the first address of the second buffer address to control the display panel to display the page to be displayed.
[0114] After controlling the display panel to display the page to be displayed, the controller may further transmit the bitmap data of the currently displayed page from the first cache address to the third cache address to clear the first cache address.
[0115] Optionally, the controller can also restore the bitmap data of the currently displayed page to the generation elements of the currently displayed page, and transmit the generation elements of the currently displayed page to other cache addresses of the frame buffer. The data packet size of the generation elements of the currently displayed page can be smaller than the data packet size of the bitmap data of the currently displayed page, thereby speeding up the clearing efficiency of the first cache address while reducing the storage pressure of the frame buffer.
[0116] For multiple frequently used pages pre-stored in the frame buffer, when the multiple frequently used pages are not displayed on the display panel, that is, when the multiple frequently used pages are in the background of the display device, factors such as user operations, information input from external devices of the display device, and timed updates of controls may cause changes to the controls on the multiple frequently used pages, their contents, and their associated display materials. The controller can timely record content changes of the multiple frequently used pages by updating the configuration data of each of the multiple frequently used pages.
[0117] FIG6 schematically shows a schematic diagram of a background update process of a non-displayed page according to an embodiment of the present disclosure.
[0118] As shown in Figure 6, the undisplayed page may be a page that is not displayed on the display panel in the current state among the multiple commonly used pages. The frame buffer may store bitmap data for each of the multiple commonly used pages. For example, the third cache address may be configured to store background images for each of the multiple commonly used pages, and the fourth cache address may be configured to store display materials for each of the multiple commonly used pages. The multiple cache addresses may further include a fifth cache address, which may be configured to store configuration data for each of the multiple commonly used pages.
[0119] According to an embodiment of the present disclosure, the controller may be configured to, if a page triggers a configuration data change event, update the configuration data of the page based on the configuration data change information included in the configuration data change event, obtain a second display material based on the configuration data change information and the display materials of each of a plurality of commonly used pages, and transfer the second display material from the memory to a fourth cache address. The page is an undisplayed page among the plurality of commonly used pages.
[0120] User operations, information input from external devices of the display device, timed updates of controls, etc. can trigger a configuration data change event for that page. For example, a control instruction generated by a user operation, information input from an external device of the display device, etc. can cause the information displayed on that page to change, thereby triggering a configuration data change event for that page. For another example, the control information of a control on that page can change over time. At each time point when the control information of that control changes, a configuration data change event for that page will be triggered.
[0121] The configuration data change information may include the identification information of each control attached to the page after the update, as well as the information of the display materials attached to each control. That is, after obtaining the configuration data change information, the display materials required for the changed page can be determined based on the configuration data change information.
[0122] The controller can compare the display material required for the changed page with the display material currently stored in the fourth cache address to determine the missing display material, that is, the second display material. The controller can transfer the second display material from the memory to the fourth cache address via a data link with the memory.
[0123] For example, if a page includes a time control, when the time displayed by the time control jumps from 15:51 to 15:52, a configuration data change event for the page can be triggered. The configuration data change information included in the configuration data change event can include the text "15:52." This configuration data change information can be used to change the text "15:51" in the configuration data of the page to "15:52." The third cache address may originally only store display materials "1" and "5." Based on this configuration data change information, the second display material can be determined to be "2." The controller can transfer display material "2" from the memory to the fourth cache address.
[0124] According to an embodiment of the present disclosure, SPI (Serial Peripheral Interface) communication can be performed between the memory and the frame buffer of the display device. The second display material can be used as SPI communication data and transmitted from the memory to the frame buffer through the channel. When switching to the page, the display materials required for the page can be directly read from the fourth cache address of the frame buffer without having to read from the memory, thereby effectively reducing the time consumption of display material drawing when the page is switched, improving the smoothness of the page switching, and reducing the page switching delay.
[0125] Optionally, the displayable page of the display panel may include a dynamic effect page, and the dynamic effect page may represent a page that can display a video, dynamic image or dynamic effect when the page is displayed on the display panel. For example, the startup page of the display device may be a dynamic effect page. The video, dynamic image or dynamic effect can be represented as the dynamic effect material of the dynamic effect page, and the dynamic effect material can be split into multiple frames of material images. Accordingly, the bitmap data of the dynamic effect page may include a dynamic bitmap data sequence, and the dynamic image bitmap data sequence includes multiple dynamic bitmap data, and the multiple dynamic bitmap data can correspond to multiple frames of material images respectively.
[0126] In order to ensure the smooth playback of motion effect materials, the number of frames of material images included in the motion effect materials is generally large, for example, it can reach hundreds of frames. When the size of the picture displayed on the display panel is large, the space occupied by each frame of the material image is also correspondingly large, which results in the motion effect material needing to occupy a large space, and the frame buffer of the display device may not be able to meet the large space occupation requirement. If the material image is loaded from the memory in real time when the motion effect material is played, the requirement for smooth playback of the motion effect material cannot be met. Therefore, the method of storing the material images separately can be adopted to meet the requirements of smooth playback and reduce space occupation.
[0127] FIG7 schematically shows a flow chart of displaying a dynamic effect page according to an embodiment of the present disclosure.
[0128] As shown in Figure 7, the animation page may include an animation material, which may be composed of material image A, material image B, material image C, etc. The bitmap data of material image A may be dynamic bitmap data A, the bitmap data of material image B may be dynamic bitmap data B, and the bitmap data of material image C may be dynamic bitmap data C.
[0129] According to an embodiment of the present disclosure, the dynamic bitmap data of each frame of the material image includes third bitmap data and fourth bitmap data that are different from each other. Accordingly, the dynamic bitmap data A may include third bitmap data A and fourth bitmap data A, the dynamic bitmap data B may include third bitmap data B and fourth bitmap data B, and the dynamic bitmap data C may include third bitmap data C and fourth bitmap data C.
[0130] According to an embodiment of the present disclosure, the sixth storage address may be configured to store third bitmap data included in each of the plurality of dynamic bitmap data, such as third bitmap data A, third bitmap data B, and third bitmap data C.
[0131] According to an embodiment of the present disclosure, the memory may be configured to store the fourth bitmap data included in each of the plurality of dynamic bitmap data, such as fourth bitmap data A, fourth bitmap data B, and fourth bitmap data C.
[0132] According to an embodiment of the present disclosure, the controller can be configured to sequentially transfer the third bitmap data included in each of the multiple dynamic bitmap data from the sixth cache address to the first cache address or the second cache address, and sequentially transfer the fourth bitmap data included in each of the multiple dynamic bitmap data from the memory to the first cache address or the second cache address, and sequentially change the display address to the first cache address or the second cache address.
[0133] The third bitmap data and the fourth bitmap data can be obtained by segmenting the dynamic bitmap data. The timing of segmenting the dynamic bitmap data is not limited herein. For example, the dynamic bitmap data can be directly written into the memory in a separate state of the third bitmap data and the fourth bitmap data. Alternatively, for example, when the display device is started, the dynamic bitmap data can be segmented into the third bitmap data and the fourth bitmap data, and stored in the sixth cache address and the memory, respectively.
[0134] The respective sizes of the third bitmap data and the fourth bitmap data can be determined based on the size of the frame buffer in the specific application scenario, the frame rate requirements when the dynamic effect material is played, etc. For example, when determining the respective sizes of the third bitmap data and the fourth bitmap data based on the frame rate requirements, it can be determined that the time taken to transfer a 1kb data packet from the sixth buffer area to the designated buffer area is m, and the time taken to transfer a 1kb data packet from the memory to the designated buffer area is n, so that the minimum frame rate requirement for the animation process to be played is 24 frames, then the objective function can be determined to be mx+ny<1 / 24, where x represents the size of the third bitmap data, and y represents the size of the fourth bitmap data. If the size of the dynamic bitmap data is z, then the constraint condition can be obtained as x+y=z. By combining the above objective function and constraint conditions, the value range of the respective sizes of the third bitmap data and the fourth bitmap data can be determined.
[0135] When loading the dynamic effect material, taking the i-th frame material image among the multiple frames of material images as an example, the controller can determine the storage location of the dynamic bitmap data of the i-th frame material image based on the storage location of the dynamic bitmap data of the i-1-th frame material image. If the dynamic bitmap data of the i-1-th frame material image is stored at the first cache address, the dynamic bitmap data of the i-th frame material image is stored at the second cache address. Taking the dynamic bitmap data of the i-th frame material image at the second cache address as an example, the controller can transfer the third bitmap data included in the dynamic bitmap data of the i-th frame material image from the sixth cache address to the second cache address, and transfer the third bitmap data included in the dynamic bitmap data of the i-th frame material image from the memory to the second cache address, and change the display address to the second cache address to control the display panel to switch from the i-1-th frame material image to the i-th frame material image.
[0136] i may be a positive integer, that is, the i-th frame material image may refer to any frame of the multiple frames of material images included in the motion effect material.
[0137] Specifically, taking material images A and B as an example, when loading material image A, the display address of the display panel may be the first address of the first cache address. For material image A, the controller may transfer the third bitmap data A from the sixth cache address to the second cache address, transfer the fourth bitmap data A from the memory to the second cache address, and change the display address of the display panel to the first address of the second cache address, thereby displaying material image A on the display panel. Subsequently, the controller may transfer the third bitmap data B from the sixth cache address to the second cache address, transfer the fourth bitmap data B from the memory to the second cache address, and change the display address of the display panel to the first address of the first cache address, thereby controlling the image displayed on the display panel to switch from material image A to material image B.
[0138] According to an embodiment of the present disclosure, by dividing the material image and pre-storing part of the image blocks into a frame buffer, when playing the motion effect material, the part of the image block can be quickly displayed on the display panel, and the other part of the image blocks are loaded from the memory in real time. In this way, the frame buffer occupancy of the motion effect material can be reduced without affecting the playback flow, thereby reducing the hardware cost of the display device.
[0139] In some application scenarios, the display device may have a smaller demand for display materials, that is, the total number of display materials is small, or the display materials are all simple materials, that is, the display materials may be materials with a large solid color background, and the background area of such materials can be implemented through some system architectures, such as GUI (Graphical User Interface) architecture. The system architecture can draw some simple images without materials, such as drawing a solid color rectangle. In this scenario, that is, when multiple display materials related to the display device are all preset types of display materials, the controller can be configured to read multiple display materials from the memory through the system bus when the display device is in the startup phase, and write multiple display materials into the frame buffer.
[0140] The preset type of display material may be the simple material as described above, or may be represented by a smaller total number of display materials.
[0141] Before writing the plurality of display materials into the frame buffer, a process of pre-processing the display materials may be included. The pre-processing process may include but is not limited to operations such as cropping and compressing the display materials.
[0142] For example, when writing a plurality of display materials into the frame buffer, for each display material, the controller may perform cropping processing on the display material to obtain at least one sub-material, and write the at least one sub-material into the frame buffer.
[0143] According to an embodiment of the present disclosure, the display material may be cropped by separating the pattern area and the background area in the display material, and each pattern area in the display material may be cropped into a sub-material.
[0144] FIG8 schematically shows a schematic diagram of a display material loading method according to an embodiment of the present disclosure.
[0145] As shown in FIG8 , the pattern area of the display material may include a snowflake pattern area, a refresh mark pattern area, and a Celsius symbol pattern area. The display material may be cut to obtain three sub-materials. When the display device loads the material, the three sub-materials may be loaded into the frame buffer frame.
[0146] When cropping a display material, the controller can determine background information and position information for each of the at least one sub-material. The background information can be represented by the color information of the background area of the display material, and the position information can be represented by information such as the position of each sub-material within the display material and the size of each sub-material. This background information and position information can serve as a basis for reconstructing the display material based on the at least one sub-material using the GUI framework.
[0147] Taking the target material among multiple display materials as an example, the controller can be configured to respond to a material drawing request, determine at least one sub-material related to the target material from the frame buffer based on the identification information of the target material included in the material drawing request; generate the target material based on the background information and position information of each of the at least one sub-material; and render the target material on the target image determined based on the material drawing request.
[0148] According to an embodiment of the present disclosure, when the type of display material related to the display device is a specific type, by pre-storing all display materials in the frame buffer, the drawing efficiency of the display materials can be effectively improved, and the overall speed performance of the UI display can be improved.
[0149] Optionally, the image data of the background image of the screen stored in the frame buffer or memory may be compressed data. In the embodiments of the present disclosure, the specific method used for data compression and decompression is not limited here.
[0150] Optionally, lossless compression and decompression methods may be used preferentially during compression and decompression, and hardware facilities may be used preferentially for compression and decompression. The selection of software or hardware compression and decompression methods may be performed during the startup phase of the display device, and the selection of compression and decompression algorithms may be performed during the data compression and decompression phase.
[0151] The following describes the data compression and decompression process by taking the data compression and decompression process of the controller during the startup phase as an example.
[0152] FIG9 schematically shows a schematic diagram of a data compression and decompression process of a controller during a startup phase according to an embodiment of the present disclosure.
[0153] As shown in FIG9 , the data compression and decompression process of the controller in the startup phase may include operations S901 to S908 .
[0154] In operation S901, it is detected whether the controller is equipped with a first hardware encoder. If it is determined that the controller is integrated with the first hardware encoder, operation S902 is performed. If it is determined that the controller is not integrated with the first hardware encoder, operation S903 is performed.
[0155] In operation S902, the first software encoder is turned off. After operation S902 is completed, operation S903 is performed.
[0156] In operation S903, it is detected whether the controller is equipped with a first hardware decoder. If it is determined that the controller is integrated with the first hardware decoder, operation S904 is performed. If it is determined that the controller is not integrated with the first hardware decoder, operation S905 is performed.
[0157] In operation S904, the first software decoder is turned off. After operation S904 is completed, operation S905 is performed.
[0158] In operation S905, it is detected whether the controller is equipped with a second hardware encoder. If it is determined that the controller is integrated with the second hardware encoder, operation S906 is performed. If it is determined that the controller is not integrated with the second hardware encoder, operation S907 is performed.
[0159] In operation S906, the second software encoder is turned off. After operation S906 is completed, operation S907 is performed.
[0160] In operation S907, it is detected whether the controller is equipped with a second hardware decoder. If it is determined that the controller is integrated with the second hardware decoder, operation S908 is performed. If it is determined that the controller is not integrated with the second hardware decoder, the data compression and decompression process in the startup phase is terminated.
[0161] In operation S908, the second software decoder is turned off. After operation S908 is completed, the data compression and decompression process in the startup phase is terminated.
[0162] The compression and decompression methods that can be implemented by the first hardware encoder, the first software encoder, the first hardware decoder, and the first software decoder can be lossless compression and decompression methods, such as the PNG (Portable Network Graphics) encoding and decoding method. Correspondingly, the compression and decompression methods that can be implemented by the second hardware encoder, the second software encoder, the second hardware decoder, and the second software decoder can be lossy compression and decompression methods, such as the JPEG (Joint Photographic Experts Group) encoding and decoding method.
[0163] The controller may determine whether the first hardware encoder, the first hardware decoder, the second hardware encoder or the second hardware decoder is integrated in the controller by various means, such as display device self-test, heartbeat communication, etc., which are not limited here.
[0164] After the data compression and decompression process in the startup phase is completed, the display device can detect whether a data compression and decompression request is triggered. The following takes the compression processing process for the background image of any page as an example to illustrate the data compression process of the controller in the data compression phase.
[0165] FIG10 schematically shows a schematic diagram of a data compression process of a controller in a data compression phase according to an embodiment of the present disclosure.
[0166] As shown in FIG10 , the data compression process of the control chip in the data compression stage may include operations S1001 to S1006 .
[0167] In operation S1001, a background image of a page is compressed using a lossless compression method to obtain first compressed data.
[0168] In operation S1002, it is determined whether the length of the first compressed data is greater than a preset value. If it is determined that the length of the first compressed data is less than or equal to the preset value, operation S1003 is performed; if it is determined that the length of the first compressed data is greater than the preset value, operation S1004 is performed.
[0169] In operation S1003, it is determined that the first compressed data is compressed data of a background image.
[0170] In operation S1004, the first compressed data is cleared.
[0171] In operation S1005, a lossy compression method is used to compress the background image of a page to obtain second compressed data, and the second compressed data is used as compressed data of the background image.
[0172] After operations S1004 and S1005 are completed, operation S1006 is performed.
[0173] In operation S1006 , the compressed data of the background image is stored in a frame buffer.
[0174] The length of the first compressed data or the second compressed data is represented by the size of the storage space occupied by the first compressed data or the second compressed data.
[0175] The preset value may be set according to a specific application scenario. For example, in an application scenario where 675 KB of background data is compressed, the preset value may be set to 40 KB.
[0176] Lossless and lossy compression methods differ in the degree of compression they provide for bitmap images. Lossy compressed images will have a reduced display quality after decompression. Therefore, prioritizing lossless compression methods can effectively reduce image data loss. Furthermore, hardware codecs are typically faster than software codecs. Prioritizing hardware codecs can significantly increase data compression and decompression speeds, indirectly improving page switching and display smoothness.
[0177] In some application scenarios, hardware limitations may require the display device to allocate less storage space for the frame buffer. This means the frame buffer cannot fully store the bitmap data for all pages, or storing all the bitmap data in the frame buffer could significantly impact the normal operation of the display device. In such cases, a specific strategy can be used to purge the frame buffer, updating the bitmap data for multiple frequently used pages.
[0178] FIG. 11 schematically shows a schematic diagram of updating respective bitmap data of a plurality of commonly used pages according to an embodiment of the present disclosure.
[0179] As shown in FIG11 , the frame buffer may store bitmap data of multiple frequently used pages, including bitmap data of page 1, bitmap data of page 2, bitmap data of page 3, and bitmap data of page 4. During use of the display device, the bitmap data of page 5 needs to be stored in the frame buffer. If the remaining storage space of the frame buffer is insufficient, the bitmap data of multiple frequently used pages may be cleared. Based on a certain strategy, it may be determined that the bitmap data of page 4 is the least important. Therefore, the controller may release the bitmap data of page 4 and store the bitmap data of page 5 in the frame buffer.
[0180] Optionally, the certain policy may include a policy based on page usage, a policy based on page weight, etc.
[0181] According to an embodiment of the present disclosure, the controller may be configured to update the bitmap data of each of the plurality of frequently used pages according to a page update policy.
[0182] According to an embodiment of the present disclosure, the page update strategy is determined by at least one of the display cycle, display duration, and usage frequency of each of the plurality of frequently used pages.
[0183] The first time a page is displayed on the display panel is a first moment, the second time a page is displayed on the display panel is a second moment, and the display period is the time difference between the first moment and the second moment. The display period can be expressed as the difference between two display moments during the periodic display of the page. Optionally, some pages may not be pages that need to be displayed periodically, and the display period of these pages can be set to a larger preset value, such as 1000 hours.
[0184] The moment when the display panel starts displaying a page is the start time, and the moment when the display panel ends displaying a page is the end time. The display duration is the time difference between the start time and the end time. The display duration can represent the duration of each display of the page. The duration of each display of the page can be different. Optionally, the display duration can represent the average display duration of multiple displays of the page within a time period.
[0185] The usage frequency is the number of times a page is displayed on the display panel within the same time period. The usage frequency can indicate the number of times the page is used within a period of time.
[0186] According to an embodiment of the present disclosure, a page update policy may specifically include the following: if a page's display duration is less than a first deletion threshold, its usage frequency is less than a second deletion threshold, and its display period is greater than a third deletion threshold, then the bitmap data for that page is deleted. In other words, if the page is not frequently used and its display duration is short each time it is used, then the page can be considered of low importance and its bitmap data can be deleted.
[0187] According to an embodiment of the present disclosure, the page update strategy may further specifically include the following: if a page meets one of the following conditions, the page weight adjustment strategy is initiated to update the bitmap data of multiple frequently used pages: the display duration of a page is greater than the first deletion threshold, the usage frequency of a page is greater than the second deletion threshold, and the display period of a page is less than the third deletion threshold. In other words, if a page is frequently used, has a long single usage duration, or is frequently used within a specific period of time, then the page can be considered more important and other strategies need to be adopted to determine whether to delete the bitmap data of the page.
[0188] The first deletion threshold, the second deletion threshold, and the third deletion threshold can be set according to specific application scenarios and are not limited here.
[0189] According to an embodiment of the present disclosure, the controller can be configured to obtain updated weight values of multiple commonly used pages based on the current weight values of each of the multiple commonly used pages according to a page weight adjustment strategy, sort the updated weight values of each of the multiple commonly used pages, and update the bitmap data of the multiple commonly used pages according to the sorting and the size of the available storage space of the third cache address.
[0190] For example, the bitmap data of the page whose current weight value is less than a certain value may be deleted, or when the frame buffer needs to be cleared urgently, a certain amount of bitmap data with a low current weight value may be deleted, which is not limited here.
[0191] According to an embodiment of the present disclosure, a page weight adjustment strategy may include obtaining a weight adjustment value based on the display duration, usage frequency and display cycle of a page according to a weight assignment strategy, and using the weight adjustment value to adjust the current weight value of a page.
[0192] According to an embodiment of the present disclosure, the weight assignment strategy can assign a first value, a second value, and a third value based on the usage status of a page, and sum the assigned first value, the assigned second value, and the assigned third value to obtain a weight adjustment value.
[0193] According to an embodiment of the present disclosure, the weight assignment strategy may include: determining whether the display time of a page is less than a first adjustment threshold, if so, assigning a negative value to the first value, otherwise assigning a positive value to the first value, and obtaining the assigned first value; determining whether the usage frequency of a page is less than a second adjustment threshold, if so, assigning a negative value to the second value, otherwise assigning a positive value to the second value, and obtaining the assigned second value; and determining whether the display period of a page is greater than a third adjustment threshold, if so, assigning a negative value to the third value, otherwise assigning a positive value to the third value, and obtaining the assigned third value.
[0194] The values of the first adjustment threshold, the second adjustment threshold, and the third adjustment threshold can be set according to specific application scenarios and are not limited here.
[0195] According to an embodiment of the present disclosure, the magnitude relationship between the first value, the second value, and the third value can be determined according to the specific application scenario. Optionally, the second value can be set to be greater than the third value, the third value can be set to be greater than the first value, and the first value, the second value, and the third value can all be positive numbers.
[0196] Assigning a positive value or a negative value to a value can be expressed as adjusting the positive or negative sign of the value. For example, the first value can be expressed as a, then a negative value is assigned to the first value, and the first value after assignment can be -a; if a positive value is assigned to the first value, the first value after assignment can be a.
[0197] FIG12 schematically shows a schematic diagram of a bitmap data update process based on a page weight adjustment strategy according to an embodiment of the present disclosure.
[0198] As shown in FIG. 12 , the page weight adjustment process may include operations S1201 to S1214 .
[0199] In operation S1201 , the display duration, usage frequency, and display cycle of each of a plurality of frequently used pages are obtained.
[0200] In operation S1202, it is determined whether the display duration of a page is less than a first adjustment threshold. If it is determined that the display duration of a page is less than the first adjustment threshold, operation S1203 is performed. If it is determined that the display duration of a page is greater than or equal to the first adjustment threshold, operation S1204 is performed.
[0201] In operation S1203 , a negative value is assigned to the first value.
[0202] In operation S1204 , a positive value is assigned to the first value.
[0203] After operation S1203 or operation S1204 is completed, operation S1205 is performed.
[0204] In operation S1205, it is determined whether the usage frequency of a page is less than the second adjustment threshold. If it is determined that the usage frequency of a page is less than the second adjustment threshold, operation S1206 is performed. If it is determined that the usage frequency of a page is greater than or equal to the second adjustment threshold, operation S1207 is performed.
[0205] In operation S1206 , a negative value is assigned to the second value.
[0206] In operation S1207 , a positive value is assigned to the second value.
[0207] After operation S1206 or operation S1207 is completed, operation S1208 is performed.
[0208] In operation S1208, it is determined whether the display period of a page is less than the third adjustment threshold. If it is determined that the display period of a page is less than the third adjustment threshold, operation S1209 is performed. If it is determined that the display period of a page is greater than or equal to the third adjustment threshold, operation S1210 is performed.
[0209] In operation S1209 , a negative value is assigned to the third value.
[0210] In operation S1210 , a positive value is assigned to the third value.
[0211] After operation S1209 or operation S1210 is completed, operation S1211 is performed.
[0212] In operation S1211 , the assigned first value, the assigned second value, and the assigned third value are summed to obtain a weight adjustment value.
[0213] In operation S1212 , current weight values of the multiple frequently used pages are adjusted using the weight adjustment values of the multiple frequently used pages to obtain updated weight values of the multiple frequently used pages.
[0214] In operation S1213 , the updated weight values of the plurality of frequently used pages are sorted.
[0215] In operation S1214 , bitmap data of the plurality of frequently used pages are updated according to the order and the available storage space size of the frame buffer.
[0216] For example, multiple frequently used pages may include frequently used page α, frequently used page β, and frequently used page γ. The current weight value of frequently used page α is 50, the display duration is 1 minute, the frequency of use is 10 times / day, and the display cycle is 1 hour. The current weight value of frequently used page β is 55, the display duration is 3 minutes, the frequency of use is 5 times / day, frequently used page β is not a page that needs to be displayed periodically, and its display cycle is set to 1000 hours. The current weight value of frequently used page γ is 60, the display duration is 0.5 minutes, the frequency of use is 30 times / day, and the display cycle is 2 hours. The first adjustment threshold can be set to 1.5 minutes, the second adjustment threshold can be set to 15 times / day, and the third adjustment threshold can be set to 1.5 hours. The first value can be set to 4, the second value can be set to 10, and the third value can be set to 7. Through operations S1201 to S1214, it can be seen that if the display duration of frequently used page α is less than the first adjustment threshold, the usage frequency is less than the second adjustment threshold, and the display period is less than the third adjustment threshold, then the weight adjustment value of frequently used page α = -4 - 10 + 7 = -7, and the updated weight value of frequently used page α is 43. If the display duration of frequently used page β is greater than the first adjustment threshold, the usage frequency is less than the second adjustment threshold, and the display period is greater than the third adjustment threshold, then the weight adjustment value of frequently used page α = 4 - 10 - 7 = -13, and the updated weight value of frequently used page β is 42. If the display duration of frequently used page γ is less than the first adjustment threshold, the usage frequency is greater than the second adjustment threshold, and the display period is greater than the third adjustment threshold, then the weight adjustment value of frequently used page γ = -4 + 10 - 7 = -1, and the updated weight value of frequently used page α is 59. Based on the order of the updated weight values of frequently used pages α, β, and γ, when bitmap data needs to be deleted, the bitmap data of frequently used page β can be deleted first.
[0217] Optionally, the display device may also use the method of operations S1201 to S1214 to update the bitmap data of multiple commonly used pages when it uses the page update strategy to determine that the display time of any one of the multiple commonly used pages is greater than the first deletion threshold, the usage frequency is greater than the second deletion threshold, or the display period is less than the third deletion threshold.
[0218] According to the embodiments of the present disclosure, by cleaning the frame buffer according to the importance of the page, it can be ensured that the bitmap data of the frequently used pages will be stored in the frame buffer for a long time, and the bitmap data of the infrequently used pages will be replaced from the frame buffer, thereby reducing the storage pressure of the frame buffer, improving the frame buffer hit rate, speeding up the page display, and improving the user experience.
[0219] FIG13 schematically shows a flow chart of a page switching method according to an embodiment of the present disclosure.
[0220] As shown in FIG. 13 , the method includes operations S1301 to S1303 .
[0221] In operation S1301 , based on a page switching request, bitmap data of a page to be displayed is acquired.
[0222] In operation S1302 , a target cache address for storing bitmap data of a to-be-displayed page is determined from a plurality of cache addresses.
[0223] In operation S1303 , the display address of the display panel is changed to the target cache address to control the display panel to switch from the current display page to the page to be displayed.
[0224] According to the page switching method of the embodiment of the present disclosure, a target cache address can be selected from multiple cache addresses, and the display address of the display panel stored in the register can be changed to the target cache address, so that the display panel can be controlled to display the bitmap data of the page to be displayed stored in the target cache address, avoiding the time-consuming data transmission in the frame buffer, thereby avoiding the refreshing feeling of page switching, increasing the smoothness of page switching, and improving the user experience.
[0225] According to an embodiment of the present disclosure, the multiple cache addresses include a first cache address and a second cache address, the first cache address is configured to store bitmap data of a currently displayed page, and the target cache address is the second cache address.
[0226] According to an embodiment of the present disclosure, changing the display address of the display panel to a target cache address includes: changing the display address of the display panel from a first cache address to a second cache address.
[0227] According to an embodiment of the present disclosure, obtaining bitmap data of a page to be displayed includes: selecting generation elements of the page to be displayed from generation elements of multiple pages stored in a memory; transferring the generation elements of the page to be displayed from the memory to a target cache address; and obtaining bitmap data of the page to be displayed based on the generation elements of the page to be displayed.
[0228] According to an embodiment of the present disclosure, the plurality of cache addresses further include a third cache address, and the third cache address is configured to store bitmap data of each of the plurality of common pages.
[0229] According to an embodiment of the present disclosure, obtaining bitmap data of a page to be displayed includes: selecting the bitmap data of the page to be displayed from the respective bitmap data of multiple commonly used pages; and transmitting the bitmap data of the page to be displayed from the third cache address to the target cache address.
[0230] According to an embodiment of the present disclosure, the bitmap data of each of a plurality of commonly used pages can be updated according to a page update strategy; wherein the page update strategy is determined by at least one of the display cycle, display duration and usage frequency of each of the plurality of commonly used pages; wherein the moment when the display panel displays a page for the first time is the first moment, the moment when the page is displayed for the second time is the second moment, and the display cycle is the time difference between the first moment and the second moment; the moment when the display panel starts displaying a page is the start moment, the moment when the display panel ends displaying a page is the end moment, and the display duration is the time difference between the start moment and the end moment; and the usage frequency is the number of times the display panel displays a page within the same time period.
[0231] According to an embodiment of the present disclosure, bitmap data of each of multiple frequently used pages is updated according to a page update strategy, including: deleting the bitmap data of a page when the display duration of a page is less than a first deletion threshold, the usage frequency is less than a second deletion threshold, and the display period is greater than a third deletion threshold; and initiating a page weight adjustment strategy to update the bitmap data of each of multiple frequently used pages when a page meets one of the following conditions: the display duration of a page is greater than the first deletion threshold, the usage frequency of a page is greater than the second deletion threshold, and the display period of a page is less than the third deletion threshold.
[0232] According to an embodiment of the present disclosure, based on the current weight values of each of the multiple commonly used pages, an updated weight value of each of the multiple commonly used pages can be obtained according to a page weight adjustment strategy; the updated weight values of each of the multiple commonly used pages can be sorted; and the bitmap data of the multiple commonly used pages can be updated according to the sorting and the size of the available storage space of the third cache address.
[0233] According to an embodiment of the present disclosure, based on the current weight values of multiple commonly used pages, updated weight values of multiple commonly used pages are obtained according to a page weight adjustment strategy, including: determining whether the display time of a page is less than a first adjustment threshold, if so, assigning a negative value to the first value, otherwise assigning a positive value to the first value, to obtain the assigned first value; determining whether the usage frequency of a page is less than a second adjustment threshold, if so, assigning a negative value to the second value, otherwise assigning a positive value to the second value, to obtain the assigned second value; and determining whether the display period of a page is greater than a third adjustment threshold, if so, assigning a negative value to the third value, otherwise assigning a positive value to the third value, to obtain the assigned third value; obtaining a weight adjustment value based on the assigned first value, the assigned second value and the assigned third value; and using the weight adjustment value to adjust the current weight value of a page to obtain an updated weight value of a page.
[0234] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a central control device of a smart home system, a readable storage medium and a computer program product.
[0235] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, including: one or more processors; a memory configured to store one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method as described above.
[0236] According to an embodiment of the present disclosure, the present disclosure also provides a central control device of a smart home system, including: a display panel; one or more processors; a memory configured to store one or more instructions, wherein the one or more processors are configured to receive touch screen control instructions through the display panel, and execute one or more instructions based on the touch screen control instructions to implement the method described above.
[0237] According to an embodiment of the present disclosure, the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon. When the executable instructions are executed by a processor, the processor implements the method described above.
[0238] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which includes computer-executable instructions. When the computer-executable instructions are executed by a processor, they are configured to implement the method described above.
[0239] FIG14 shows a schematic block diagram of an example electronic device that can be used to implement an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0240] As shown in FIG14 , device 1400 includes a computing unit 1401 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1402 or a computer program loaded from a storage unit 1408 into a random access memory (RAM) 1403. Various programs and data required for the operation of device 1400 may also be stored in RAM 1403. Computing unit 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to bus 1404.
[0241] Various components in device 1400 are connected to an input / output (I / O) interface 1405, including an input unit 1406, such as a keyboard, a mouse, etc.; an output unit 1407, such as various types of displays, speakers, etc.; a storage unit 1408, such as a magnetic disk, an optical disk, etc.; and a communication unit 1409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1409 allows device 1400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0242] The computing unit 1401 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1401 performs the various methods and processes described above, such as the page switching method. For example, in some embodiments, the page switching method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as a storage unit 1408. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 1400 via the ROM 1402 and / or the communication unit 1409. When the computer program is loaded into the RAM 1403 and executed by the computing unit 1401, one or more steps of the page switching method described above can be performed. Alternatively, in other embodiments, the computing unit 1401 can be configured to perform the page switching method in any other appropriate manner (e.g., by means of firmware).
[0243] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0244] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0245] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0246] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0247] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0248] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0249] Those skilled in the art will appreciate that various combinations and / or combinations of features described in the various embodiments and / or claims of this disclosure may be made, even if such combinations or combinations are not explicitly described in this disclosure. In particular, various combinations and / or combinations of features described in the various embodiments and / or claims of this disclosure may be made, without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0250] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A display device, comprising: A display panel configured to display a picture; a frame buffer configured to store bitmap data of the picture, the frame buffer comprising a plurality of buffer addresses; a register configured to store a display address of the display panel; as well as The controller is configured to control the register to select a cache address from the multiple cache addresses as the display address, and control the display panel to display the bitmap data of the picture stored in the cache address.
2. The display device according to claim 1, wherein The screen includes a currently displayed page and a page to be displayed; The plurality of cache addresses include a first cache address and a second cache address, the first cache address being configured to store the bitmap data of the currently displayed page, and the second cache address being configured to store the bitmap data of the to-be-displayed page; The controller is configured to change the display address from the first cache address to the second cache address.
3. The display device according to claim 2, wherein The time it takes for the controller to change the display address from the first cache address to the second cache address is a first duration, and the time it takes for the controller to transfer the bitmap data of the page to be displayed to the first cache address is a second duration, and the second duration is greater than the first duration.
4. The display device according to claim 2, wherein The plurality of cache addresses further include a third cache address configured to store respective bitmap data of a plurality of commonly used pages; The controller is configured to select the bitmap data of the to-be-displayed page from the respective bitmap data of the plurality of commonly used pages, and transfer the bitmap data of the to-be-displayed page from the third cache address to the second cache address.
5. The display device according to claim 2, further comprising: A memory configured to store generation elements of the screen, the generation elements including a background image, display materials, and configuration data; The controller is configured to transfer the generation elements of the to-be-displayed page from the memory to the second cache address, and obtain the bitmap data of the to-be-displayed page based on the generation elements of the to-be-displayed page. The display device according to claim 2 , wherein: The plurality of cache addresses include a fourth cache address configured to store a first display material of the to-be-displayed page, where the first display material is a display material that does not appear in the currently displayed page; The controller is configured to transfer the first display material from the fourth cache address to the second cache address.
7. The display device according to claim 2, further comprising: A memory configured to store display materials of the screen; The plurality of cache addresses further include a fourth cache address and a fifth cache address, the fourth cache address being configured to store display materials of respective multiple frequently used pages, and the fifth cache address being configured to store configuration data of respective multiple frequently used pages; The controller is configured to, if a page triggers a configuration data change event, update the configuration data of the page based on the configuration data change information included in the configuration data change event, obtain second display materials based on the configuration data change information and the display materials of each of the multiple commonly used pages, and transfer the second display materials from the memory to the fourth cache address.
8. The display device according to claim 2, further comprising: A memory configured to store generation elements of the to-be-displayed page, the generation elements including a background image, display materials, and configuration data; The plurality of cache addresses further include a third cache address, and the third cache address is configured to store respective bitmap data of a plurality of commonly used pages; The controller is configured to confirm whether the bitmap data of the page to be displayed exists in the bitmap data of each of the multiple commonly used pages, and if so, transfer the bitmap data of the page to be displayed from the third cache address to the second cache address; and if not, transfer the generation elements of the page to be displayed from the memory to the second cache address.
9. The display device according to claim 2, wherein: The bitmap data of the page to be displayed includes first bitmap data and second bitmap data that are different from each other; The plurality of cache addresses further includes a sixth cache address configured to store the first bitmap data; The display device further includes a memory configured to store the second bitmap data; wherein the controller is configured to transfer the first bitmap data to be transferred from the sixth cache address to the second cache address, and transfer the second bitmap data from the memory to the second cache address.
10. The display device according to claim 2, wherein The bitmap data of the page to be displayed includes a dynamic bitmap data sequence, the dynamic bitmap data sequence includes a plurality of dynamic bitmap data, and the dynamic bitmap data includes a third bitmap data and a fourth bitmap data that are different from each other; The plurality of cache addresses further include a sixth cache address configured to store the third bitmap data respectively included in the plurality of dynamic bitmap data; The display device further includes a memory configured to store fourth bitmap data included in each of the plurality of dynamic bitmap data; Wherein, the controller is configured to sequentially transfer the third bitmap data included in each of the multiple dynamic bitmap data from the sixth cache address to the first cache address or the second cache address, and sequentially transfer the fourth bitmap data included in each of the multiple dynamic bitmap data from the memory to the first cache address or the second cache address, and sequentially change the display address to the first cache address or the second cache address.
11. The display device according to claim 4, wherein The controller is configured to update the bitmap data of each of the plurality of frequently used pages according to a page update strategy, wherein the page update strategy is determined by at least one of a display period, a display duration, and a usage frequency of each of the plurality of frequently used pages; The first moment when the display panel displays a page for the first time is a first moment, the second moment when the display panel displays the page for the second time is a second moment, and the display period is the time difference between the first moment and the second moment; The time when the display panel starts displaying the page is the start time, the time when the display panel stops displaying the page is the end time, and the display duration is the time difference between the start time and the end time; The usage frequency is the number of times the display panel displays the page within the same time period.
12. The display device according to claim 11, wherein The page update strategy includes deleting the bitmap data of a page if the display duration of the page is less than a first deletion threshold, the usage frequency is less than a second deletion threshold, and the display period is greater than a third deletion threshold.
13. The display device according to claim 11, wherein The page update strategy includes starting a page weight adjustment strategy to update the bitmap data of each of the multiple commonly used pages if a page meets one of the following conditions: the display duration of the page is greater than the first deletion threshold, the usage frequency of the page is greater than the second deletion threshold, and the display period of the page is less than the third deletion threshold.
14. The display device according to claim 4, wherein The controller is configured to obtain the updated weight values of the multiple frequently used pages according to the page weight adjustment strategy based on the current weight values of the multiple frequently used pages, and to adjust the updated weight values of the multiple frequently used pages according to the page weight adjustment strategy. The weight values are sorted, and the bitmap data of the multiple commonly used pages are updated according to the sorting and the available storage space size of the third cache address.
15. The display device according to claim 13 or 14, wherein: The page weight adjustment strategy includes obtaining a weight adjustment value according to a weight assignment strategy based on the display duration, usage frequency and display cycle of a page, and using the weight adjustment value to adjust the current weight value of the page.
16. The display device according to claim 15, wherein The weight adjustment value is the sum of the assigned first value, the assigned second value, and the assigned third value; The weight assignment strategy includes: Determine whether the display duration of the page is less than a first adjustment threshold, and if so, assign a negative value to the first value; otherwise, assign a positive value to the first value, to obtain the assigned first value; determining whether the usage frequency of the page is less than a second adjustment threshold, and if so, assigning a negative value to the second value; otherwise, assigning a positive value to the second value to obtain the assigned second value; and determining whether the display period of the page is greater than a third adjustment threshold, and if so, assigning a negative value to the third value; otherwise, assigning a positive value to the third value, to obtain the assigned third value; The second value is greater than the third value, and the third value is greater than the first value.
17. A page switching method, comprising: Based on the page switching request, obtain the bitmap data of the page to be displayed; Determining a target cache address for storing the bitmap data of the to-be-displayed page from a plurality of cache addresses; as well as The display address of the display panel is changed to the target cache address to control the display panel to switch from the current display page to the page to be displayed.
18. The method according to claim 17, wherein The multiple cache addresses include a first cache address and a second cache address, the first cache address is configured to store the bitmap data of the currently displayed page, and the target cache address is the second cache address; The step of changing the display address of the display panel to the target cache address includes: The display address of the display panel is changed from the first cache address to the second cache address.
19. The method according to claim 17, wherein The step of obtaining the bitmap data of the page to be displayed includes: Selecting a generation element of the page to be displayed from generation elements of respective pages stored in a memory; Transferring the generated elements of the to-be-displayed page from the memory to the target cache address; and The bitmap data of the page to be displayed is obtained based on the generation elements of the page to be displayed.
20. The method according to claim 17, wherein The plurality of cache addresses further include a third cache address, wherein the third cache address is configured to store respective bitmap data of a plurality of common pages; The step of obtaining the bitmap data of the page to be displayed includes: Selecting the bitmap data of the page to be displayed from the respective bitmap data of the plurality of commonly used pages; and The bitmap data of the to-be-displayed page is transferred from the third cache address to the target cache address.
21. The method according to claim 20, further comprising: updating the bitmap data of each of the plurality of frequently used pages according to a page update strategy; The page update strategy is determined by at least one of the display cycle, display duration, and usage frequency of each of the plurality of frequently used pages; The first moment when the display panel displays a page for the first time is a first moment, the second moment when the display panel displays the page for the second time is a second moment, and the display period is the time difference between the first moment and the second moment; The time when the display panel starts displaying the page is the start time, the time when the display panel stops displaying the page is the end time, and the display duration is the time difference between the start time and the end time; The usage frequency is the number of times the display panel displays the page within the same time period.
22. The method according to claim 21, wherein The updating of the bitmap data of each of the plurality of commonly used pages according to the page update strategy includes: If the display duration of a page is less than a first deletion threshold, the usage frequency is less than a second deletion threshold, and the display period is greater than a third deletion threshold, deleting the bitmap data of the page; and When the page satisfies one of the following conditions, the page weight adjustment strategy is initiated to update the bitmap data of each of the plurality of frequently used pages: The display duration of the page is greater than the first deletion threshold, the usage frequency of the page is greater than the second deletion threshold, and the display period of the page is less than the third deletion threshold.
23. The method of claim 20, further comprising: Based on the current weight values of the multiple frequently used pages, obtaining updated weight values of the multiple frequently used pages according to the page weight adjustment strategy; sorting the updated weight values of the plurality of frequently used pages; as well as The bitmap data of the plurality of frequently used pages are updated according to the sorting and the available storage space size of the third cache address.
24. The method according to claim 22 or 23, wherein The step of obtaining updated weight values of the plurality of frequently used pages based on the current weight values of the plurality of frequently used pages and according to a page weight adjustment strategy includes: Determine whether the display duration of a page is less than a first adjustment threshold, and if so, assign a negative value to the first value; otherwise, assign a positive value to the first value to obtain the assigned first value; Determine whether the usage frequency of the one page is less than a second adjustment threshold, and if so, assign a negative value to the second value; otherwise, assign a positive value to the second value to obtain the assigned second value; and determining whether the display period of the page is greater than a third adjustment threshold, and if so, assigning a negative value to the third value; otherwise, assigning a positive value to the third value, to obtain the assigned third value; Obtaining a weight adjustment value based on the assigned first value, the assigned second value, and the assigned third value; and The current weight value of the page is adjusted using the weight adjustment value to obtain an updated weight value of the page.
25. An electronic device comprising: one or more processors; a memory configured to store one or more instructions, When the one or more instructions are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 17 to 24.
26. A central control device for a smart home system, comprising: Display panel; one or more processors; a memory configured to store one or more instructions, The one or more processors are configured to receive a touch screen control instruction through the display panel, and execute the one or more instructions based on the touch screen control instruction to implement the method according to any one of claims 17 to 24.
27. A computer-readable storage medium having executable instructions stored thereon, wherein when the executable instructions are executed by a processor, the processor is enabled to implement the method according to any one of claims 17 to 24.
28. A computer program product, comprising computer-executable instructions, wherein when the computer-executable instructions are executed by a processor, the computer-executable instructions are configured to implement the method according to any one of claims 17 to 24.
Citation Information
Patent Citations
Page caching method and device, electronic equipment and storage medium
CN110633434A
Page display method and device, electronic equipment and storage medium
CN111625315A
Page caching method based on B / S architecture, device, equipment and medium
CN111737616A
Material display method, device and equipment, computer readable storage medium and product
CN115033136A
Display device and display method for wearable equipment
CN115294906A