Data display method, device and electronic equipment

By using the content cache module in wearable devices to store and read main interface and sub-interface data in blocks, the problem of low display efficiency of color displays in wearable devices is solved and the user experience is improved.

CN114489551BActive Publication Date: 2024-09-03GUANGDONG TRANSTEK MEDICAL ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210133732.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-09
Publication Date
2024-09-03
Estimated Expiration
2042-02-09

AI Technical Summary

Technical Problem

In wearable devices, the application of color displays increases the requirements for functionality and interactive experience, but is limited by the main control chip's main frequency, memory space, and lack of graphics hardware acceleration, resulting in low display efficiency and reduced user experience.

Method used

The content cache module is adopted, which is divided into a non-deletable first cache block and a deletable second cache block, which store the main interface and sub-interface data respectively, and optimizes the reading and display of data through the interface processing module and resource loading module to improve the display efficiency.

Benefits of technology

Through cache optimization, the interface data display efficiency of the wearable device is improved and the user experience is improved. Due to the high frequency of use of main interface data, data is directly read from the non-deletable cache block to further improve the display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489551B
    Figure CN114489551B
Patent Text Reader

Abstract

The present invention provides a data display method, device and electronic device, which are applied to a wearable device. The wearable device includes: an interface processing module, a resource loading module and a content cache module. The interface processing module and the resource loading module are respectively connected to the content cache module. The content cache module includes at least one first cache block and at least one second cache block. The first cache block pre-stores main interface data of the wearable device and cannot be deleted; the second cache block pre-stores sub-interface data other than the main interface data. In this method, the main interface data is stored in the first cache block, and the sub-interface data is stored in the second cache block. Reading related data from the cache can improve the display efficiency of the interface data. Moreover, since the main interface data is used frequently and the main interface data stored in the first cache block will not be deleted, directly reading the main interface data from the first cache block can further improve the display efficiency of the interface data of the wearable device and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data display, and in particular to a data display method, device and electronic equipment. Background Art

[0002] With the improvement of chip performance and manufacturing process, the performance of hardware platform has been greatly improved in compact wearable devices, which will inevitably require more diversified firmware functions and higher interactive experience requirements. Traditional wearable device display systems are based on 2D graphics (displaying conventional geometric figures) and pictures to display monochrome content. The interface display content is single, and the interaction method is rigid and backward.

[0003] In recent years, with the development of display technology, the application of color screens on wearable devices has become standard, and the functional and interactive experience requirements are higher. However, color requires more data to be processed by the processor than monochrome. Due to the limitations of the main control chip's main frequency, memory space, lack of graphics hardware acceleration and cost, the display system of wearable devices has low display efficiency based on the existing main control chip, which reduces the user experience. Summary of the invention

[0004] The purpose of the present invention is to provide a data display method, device and electronic device to improve the display efficiency of interface data of a wearable device and enhance the user experience.

[0005] The present invention provides a data display method, the method comprising: being applied to a wearable device; the wearable device comprising: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the first cache block pre-stores the main interface data of the wearable device, and the second cache block pre-stores the sub-interface data of the wearable device except the main interface data; the method comprises: reading the main interface data of the wearable device from the first cache block through the interface processing module, and displaying the main interface data through a display screen; reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through a display screen.

[0006] Furthermore, the content cache module also includes a cache linked list; the cache linked list stores first identification information corresponding to the main interface data in each first cache block, and second identification information corresponding to the sub-interface data in each second cache block.

[0007] Furthermore, the main interface data is stored in the first cache block in the following manner: when the first power-on instruction is received, the main interface data is loaded through the interface processing module, and the main interface data is stored in the first cache block.

[0008] Furthermore, the sub-interface data is stored in the second cache block in the following manner: based on the size information of the display elements in the sub-interface data, a target cache area matching the size information is obtained from the cache area other than the first cache block in the content cache module through the resource loading module, and the target cache area is determined as the second cache block corresponding to the display element; the display elements are stored in the corresponding second cache block; wherein the display elements include pictures and / or characters in the sub-interface data.

[0009] Furthermore, if there are both pictures and characters in the sub-interface data, the content cache module stores the mapping relationship between the pictures and characters in the sub-interface data, and the pictures and characters with the mapping relationship are stored adjacent to each other; the method also includes: when loading a specified picture in the sub-interface data through the resource loading module, the specified characters with the mapping relationship with the specified picture are loaded at the same time, and the specified characters are displayed at the specified position of the specified picture according to the mapping relationship.

[0010] Furthermore, if the display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.

[0011] Furthermore, if the displayed element includes a character, and the character is not displayed on the display screen, the character information associated with the character is stored in the second cache block corresponding to the display element; wherein the character information includes: size information and encoding information of the character.

[0012] Furthermore, the main interface data includes time interface data; the first cache block corresponding to the time interface data includes: an hour hand cache block, a minute hand cache block and a second hand cache block.

[0013] Furthermore, the method also includes: for each main interface data, if the data content in the main interface data is larger than the displayable area corresponding to a display screen, according to the preset division granularity, the data content in the main interface data is paged through the interface processing module to obtain multiple paged data corresponding to the main interface data; each paged data is stored in the corresponding first cache block respectively.

[0014] Furthermore, the method also includes: when it is necessary to display the specified content in the main interface data, obtaining the specified page data corresponding to the specified content; synthesizing and displaying the specified page data.

[0015] A data display device provided by the present invention is arranged on a wearable device; the wearable device comprises: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the first cache block pre-stores the main interface data of the wearable device, and the second cache block pre-stores the sub-interface data of the wearable device except the main interface data; the device comprises: a first reading module, which is used to read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through a display screen; the second reading module is used to read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.

[0016] An electronic device provided by the present invention includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned data display method.

[0017] The present invention provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned data display method.

[0018] The present invention provides a data display method, device and electronic device, which are applied to a wearable device. The wearable device includes: an interface processing module, a resource loading module and a content cache module. The interface processing module and the resource loading module are respectively connected to the content cache module. The content cache module includes at least one first cache block and at least one second cache block. The first cache block pre-stores the main interface data of the wearable device and cannot be deleted; the second cache block pre-stores the sub-interface data other than the main interface data. In this method, the main interface data is stored in the first cache block, and the sub-interface data is stored in the second cache block. Reading related data from the cache can improve the display efficiency of the interface data. Moreover, since the main interface data is used frequently and the main interface data stored in the first cache block will not be deleted, directly reading the main interface data from the first cache block can further improve the display efficiency of the interface data of the wearable device and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A flowchart of a data display method provided by an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of the structure of a wearable device provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of the structure of a content cache module provided by an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of a main interface caching method provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of a sub-interface resource caching method provided by an embodiment of the present invention;

[0025] Figure 6 A schematic diagram of text exceeding the display range provided by an embodiment of the present invention;

[0026] Figure 7 A schematic diagram of a character information caching mechanism provided by an embodiment of the present invention;

[0027] Figure 8 A flowchart of another data display method provided by an embodiment of the present invention;

[0028] Fig. 9 A schematic diagram of a time interface caching method provided by an embodiment of the present invention;

[0029] Fig.10 A schematic diagram of a page synthesis method provided by an embodiment of the present invention;

[0030] Fig.11 A schematic diagram of the structure of a data display device provided by an embodiment of the present invention;

[0031] Fig.12 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical scheme of the present invention is clearly and completely described in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] At present, with the development of display technology, the application of color screens on wearable devices has become standard, and the functional and interactive experience requirements are higher. However, color requires more data to be processed by the processor than monochrome. Due to the main frequency, memory space, lack of graphics hardware acceleration and cost of the main control chip, the display efficiency of the display system of the wearable device is low based on the existing main control chip, which reduces the user experience. Based on this, the embodiments of the present invention provide a data display method, device and electronic device, which can be applied to applications that need to display data.

[0034] To facilitate understanding of the present embodiment, a data display method disclosed in an embodiment of the present invention is first described in detail; the method is applied to a wearable device; the wearable device comprises: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the first cache block pre-stores the main interface data of the wearable device, and the second cache block pre-stores the sub-interface data of the wearable device except the main interface data;

[0035] like Figure 1 As shown, the method comprises the following steps:

[0036] Step S102: read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through the display screen.

[0037] Step S104, reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.

[0038] See also Figure 2 A structural schematic diagram of a wearable device is shown in FIG. Figure 2 The main interface, function interface, notification interface, interface manager (corresponding to the above interface processing module), graphics library, resource loader (corresponding to the above resource loading module), input subsystem, content cache module and display driver module (corresponding to the above display). The input subsystem also includes key driver and touch screen driver. Among them, the function interface and notification interface are both sub-interfaces.

[0039] The above content cache module is a cache pool, that is, all available cache space; see Figure 3 A structural diagram of a content cache module is shown, in which the cache pool is divided into multiple cache blocks and a cache linked list; the cache blocks cache different contents according to different interfaces or display contents. There are fixed cache blocks (corresponding to the first cache blocks mentioned above) and releasable cache blocks (corresponding to the second cache blocks mentioned above) in the cache pool. The cache contents of the fixed cache blocks cannot be deleted, and the cache contents of the releasable cache blocks can be deleted. The cache linked list is the directory of the cache blocks. According to the frequency of use and the current interface, the logical order of the cache blocks is adjusted to improve the cache search efficiency. By caching the content to be displayed on the display screen in different ways through the content cache module, the purpose of optimizing the frame rate and experience can be achieved.

[0040] The above-mentioned main interface is generally the interface displayed after the system is started, and the interface that can be directly switched horizontally and vertically by sliding. It belongs to the first-level interface and is also the interface that appears most frequently. It needs to support hand-following sliding, and has the highest requirements for the creation delay, sliding response speed, and refresh speed. Therefore, for the main interface, interface cache is selected, and the entire interface is generally cached in a fixed cache block. In actual implementation, because reading data from FLASH (hard disk) is much slower than reading from the cache, the interface manager can access the main interface cache mechanism to quickly read and display the entire screen content from the cache module when sliding to switch the interface, thereby reducing the reading time. At the same time, the interface manager can lock the main interface cache through the interface provided by the content cache module to ensure that the interface is not destroyed when in the background.

[0041] The above function interface is generally the interface entered by clicking the application icon, and the reminder interface is generally the notification interface. Both the function interface and the notification interface are directly jumped. Due to the capacity limitation of the cache pool, it is impossible to cache all interfaces of the device. Therefore, for the sub-interface, select resource cache, and generally cache the display elements used in each sub-interface in the releasable cache block to reduce the number of resource loading times and improve the reading speed.

[0042] The resource loader is a module for reading images and characters. In actual implementation, the resource loader reads sub-interface resources by calling the interface of the content cache module, and then quickly displays them on the display screen. When the above resources exist in the cache, the resource loader reads the resource data from the content cache module more quickly. When the resources do not exist in the cache, the content cache module will first read the resource data from FLASH (which can be understood as hardware), and apply for a cache block of the corresponding size from the cache pool to store the resource data, and pass it to the resource loader.

[0043] The above data display method is applied to a wearable device, which includes: an interface processing module, a resource loading module and a content cache module. The interface processing module and the resource loading module are respectively connected to the content cache module. The content cache module includes at least one first cache block and at least one second cache block. The main interface data of the wearable device is pre-stored in the first cache block and cannot be deleted; the sub-interface data other than the main interface data is pre-stored in the second cache block. The main interface data of the wearable device is read from the first cache block by the interface processing module, and the main interface data is displayed on the display screen; the sub-interface data is read from the second cache block by the resource loading module, and the sub-interface data is displayed on the display screen. In this method, the main interface data is stored in the first cache block, and the sub-interface data is stored in the second cache block. Reading related data from the cache can improve the display efficiency of the interface data. Moreover, since the main interface data is used frequently and the main interface data stored in the first cache block will not be deleted, directly reading the main interface data from the first cache block can further improve the display efficiency of the interface data of the wearable device and improve the user experience.

[0044] The embodiment of the present invention further provides another data display method, which is implemented on the basis of the method of the above embodiment; in this method, if there are both pictures and characters in the sub-interface data, the content cache module stores the mapping relationship between the pictures and characters in the sub-interface data, and the pictures and characters with the mapping relationship are stored adjacently; the method comprises the following steps:

[0045] Step 1: read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through the display screen.

[0046] Specifically, the main interface data may be stored in the first cache block through the following step a:

[0047] Step a: when the first power-on instruction is received, the main interface data is loaded through the interface processing module, and the main interface data is stored in the first cache block.

[0048] Generally, small wearable devices have limited hardware resources, so interfaces cannot be displayed in a superimposed manner. Only one interface is created and displayed at any time. Therefore, switching between interfaces will involve the destruction of the old interface and the creation of the new interface. When creating the interface, the images and font resources used in the interface need to be initialized, and memory storage resources need to be applied for.

[0049] For the main interface, there can be multiple main interfaces, but generally within 8. The capacity of a cache pool is fixed according to the hardware selection, while the size of the cache block can be applied dynamically. Since the size of each main interface is a known fixed screen size, the cache block size can be estimated.

[0050] See also Figure 4 A schematic diagram of a main interface caching method is shown. According to the selection of the cache pool, different space capacities and cache allocation strategies, each main interface can dynamically apply for a cache block of the same screen size. The main interface is locked and permanently resides in a fixed cache block, and the interface needs to be preloaded and stored in the cache before the system startup is completed. Specifically, when the power-on animation is displayed, the animation playback interval can be used to pre-cache the main interface resources at the same time. In this way, when the power-on animation is finished, the display content of the main interface is ready, which can ensure that this type of interface can respond to user operations as quickly as possible without waiting for the creation process. Due to the resident cache characteristics of the interface, when the main interface is switched back and forth, there is no need to repeatedly destroy and create the interface.

[0051] Step 2: read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.

[0052] Specifically, the sub-interface data is stored in the second cache block through the following steps b and c:

[0053] Step b, according to the size information of the display element in the sub-interface data, obtaining a target cache area matching the size information from the cache area other than the first cache block in the content cache module through the resource loading module, and determining the target cache area as the second cache block corresponding to the display element;

[0054] Step c: storing the display elements in the corresponding second cache block; wherein the display elements include pictures and / or characters in the sub-interface data.

[0055] The above display elements, i.e. resources, include images and fonts used in the sub-interfaces, and the display elements of all sub-interfaces share all cache spaces in the cache pool except those locked by the main interface. Figure 5 A schematic diagram of a sub-interface resource caching method is shown, in which each resource (image or font) in the sub-interface dynamically applies for image cache blocks or font cache blocks of different sizes from all cache spaces in the cache pool other than those locked by the main interface according to its size, and stores the image or font in the corresponding image cache block or font cache block.

[0056] The content cache module (corresponding to the above-mentioned cache pool) also includes a cache linked list; the cache linked list stores the first identification information corresponding to the main interface in each first cache block (corresponding to the above-mentioned fixed cache block), and the second identification information corresponding to the sub-interface data (corresponding to the display elements of the above-mentioned sub-interface) in each second cache block (corresponding to the above-mentioned image cache block or font cache block).

[0057] Therefore, the cache linked list can be responsible for maintaining the order of cache blocks corresponding to each main interface, always keeping the search path of the adjacent main interfaces closest to improve efficiency, and can also maintain and replace the content of the cache blocks to ensure that the commonly used content of the current sub-interface can be cached to the greatest extent to improve access speed. At the same time, the cache linked list can be associated with the pictures and fonts in the same sub-interface, that is, the pictures and fonts in the same sub-interface will be automatically adjusted to the front of the cache pool, improving the search hit rate of resources and fonts in the same sub-interface.

[0058] In actual implementation, if there are both pictures and characters in the display element, when the specified picture in the sub-interface data is loaded through the resource loading module, the specified characters having a mapping relationship with the specified picture are loaded at the same time, and the specified characters are displayed at the specified position of the specified picture according to the mapping relationship.

[0059] Specifically, N images are cached in the image cache block, and M groups of fonts are cached in the font cache block. There is a mapping relationship between the N images and the M groups of fonts. When one or more of the N images are loaded, one or more groups of fonts in the M groups of fonts are automatically loaded according to the mapping relationship. The font also corresponds to the position of the image. When the image is loaded, the corresponding characters are loaded and displayed according to the mapping relationship and the position relationship of the font.

[0060] In actual implementation, if the display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.

[0061] In actual implementation, if the display element includes a character and the character is not displayed on the display screen, the second cache block corresponding to the display element stores character information associated with the character; wherein the character information includes: character size information and encoding information.

[0062] For some scenarios, the above characters may not need to be actually displayed on the screen, but the character size information and / or dot matrix information (character graphic information) are needed. The content cache module can determine the user's next sliding behavior based on the user's sliding / operation behavior in the current interface, and determine the font cache method to cache character information or dot matrix information based on the user's next sliding behavior. Figure 6The following shows a schematic diagram of text exceeding the display range. When the text exceeds the display range, it does not require the dot matrix information of the characters. That is, when the characters are not displayed on the screen, only information such as the size and encoding of the characters is cached. The total maximum draggable size is calculated through the size information of the characters for typesetting calculation. Such a caching mechanism can save memory space, achieve high utilization, and improve the hit rate of character dot matrix data caching. Since the character information occupies less space, it can be placed in the internal RAM (random access memory) cache. RAM is used to interact with the CPU for data or temporarily store data. Caching is just one usage of RAM. For example, when opening a file, the file content needs to be cached in RAM so that the file content can be modified and then saved to the FLASH (hard disk). The internal RAM refers to the space available for caching inside the main control chip. Since RAM is inside the chip, its access speed is much higher than that of external RAM.

[0063] Specifically, refer to Figure 7 The following shows a schematic diagram of a caching mechanism for character information. For the character "你" (nǐ), the cached size information is "width = 16, height = 16"; the cached encoding information is "code = 0x1". For the character "好" (hǎo), the cached size information is "width = 16, height = 16"; the cached encoding information is "code = 0x2". The order of character caching is achieved by maintaining the content and order of the cache linked list. The cache linked list will adjust the order of the cached content in the next interface according to the current interface to improve the cache search speed. In addition, there are no other special caching rules for characters. The character with the highest usage frequency is at the front of the cache linked list.

[0064] The above-mentioned file processing method is applied to a wearable device, and the wearable device includes: an interface processing module, a resource loading module and a content cache module, wherein the interface processing module and the resource loading module are respectively connected to the content cache module, and the content cache module includes at least one first cache block and at least one second cache block. When receiving the first power-on instruction, the main interface data is loaded through the interface processing module, and the main interface data is stored in the first cache block, which can ensure that this type of interface can respond to user operations as quickly as possible without waiting for the creation process; the second cache block is obtained through the resource loading module, and the display elements are stored in the corresponding second cache block; the number of resource loading times can be reduced and the reading speed can be improved; the content cache module includes a cache linked list; the cache linked list stores the first identification information corresponding to the main interface data in each first cache block, and the second identification information corresponding to the sub-interface data in each second cache block, and the cache linked list is used to maintain and replace the content of the cache block to ensure that the commonly used content of the current sub-interface can be cached to the greatest extent, so as to improve the access speed. At the same time, the cache list will be associated with the images and fonts in the same interface, that is, the images and fonts in the same interface will be automatically adjusted to the front of the cache pool, improving the search hit rate of resources and fonts in the same interface.

[0065] The embodiment of the present invention also provides another data display method, which is implemented on the basis of the method in the above embodiment 1; Figure 8 As shown, the method comprises the following steps:

[0066] Step S202: read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through the display screen.

[0067] The main interface data includes time interface data; the first cache block corresponding to the time interface data includes: an hour hand cache block, a minute hand cache block and a second hand cache block.

[0068] In wearable devices, the time interface often needs to display different styles of time, such as a display with a pointer. Due to the limitations of hardware performance and storage space, the pointer needs to be rotated, which consumes a lot of computing power, and the time interface is generally a primary interface, resulting in a poor device interaction experience. According to the characteristics of the pointer clock, the frequency of the hour, minute, and second hands needing to change simultaneously is only once an hour, and in most cases only the second hand is moving. In this case, a separate cache space can be opened for the hour, minute, and second hands, and they reside in the cache pool, so that they do not need to display three hands every second, greatly reducing the amount of calculation.

[0069] For details, see Fig. 9A schematic diagram of a caching method for a time interface is shown, in which the hour, minute and second hands dynamically apply for corresponding hour hand cache blocks, minute hand cache blocks and second hand cache blocks from the cache pool according to their image sizes, and each rotated pointer is fixedly cached in a cache block of the pointer size and is not released, wherein the rotated hour hand is fixedly cached in the hour hand cache block, the rotated minute hand is fixedly cached in the minute hand cache block, and the rotated second hand is fixedly cached in the second hand cache block. In this way, it is not necessary to rotate each pointer every time it is displayed. The order of each pointer cache block is maintained through a cache list, and the target cache data is quickly found to control the display of the three hands.

[0070] Step S204: read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.

[0071] Step S206, for each main interface data, if the data content in the main interface data is larger than the displayable area corresponding to a display screen, the data content in the main interface data is paged by the interface processing module according to the preset division granularity to obtain multiple paged data corresponding to the main interface data;

[0072] Step S208: store each page data into the corresponding first cache block.

[0073] When it is necessary to display the specified content in the main interface data, the specified page data corresponding to the specified content is obtained; and the specified page data is synthesized and displayed.

[0074] Generally, there will be long text interfaces in the first-level main interface. For example, if the product definition main interface contains a nine-square menu list, it will also be an interface with pictures and text, and the content will be larger than one screen. In this case, it is necessary to divide the data of the main interface into pages according to the granularity (cache length), and perform paging and synthesis when displaying, and synthesize the cached paging data into one screen of data to display, without the need to read the entire data that exceeds one screen, reducing data reading and improving the efficiency of displaying data. The finer the granularity (cache length), the higher the flexibility of the page combination, and the less content that is not in the window, which improves efficiency.

[0075] For details, see Fig.10 A schematic diagram of a page synthesis method is shown, the data of the main interface 1 is divided according to a preset granularity (cache length), and two paging data of the upper half of the main interface 1 and the lower half of the main interface 1 are obtained, and the two data are stored in the cache block of the upper half of the main interface 1 and the cache block of the lower half of the main interface 1 respectively. The specified paging data corresponding to the specified content to be displayed in the main interface 1 exists in both the cache block of the upper half of the main interface 1 and the cache block of the lower half of the main interface 1, and the corresponding specified paging data is synthesized and displayed.

[0076] The embodiment of the present invention further provides a data display device, which is arranged in a wearable device; the wearable device comprises: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the main interface data of the wearable device is pre-stored in the first cache block, and the sub-interface data of the wearable device other than the main interface data is pre-stored in the second cache block; Fig.11 As shown, the device includes: a first reading module 11, which is used to read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through the display screen; a second reading module 12, which is used to read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.

[0077] The above-mentioned data display device is arranged on a wearable device, and the wearable device includes: an interface processing module, a resource loading module and a content cache module, the interface processing module and the resource loading module are respectively connected to the content cache module, and the content cache module includes at least one first cache block and at least one second cache block, the first cache block pre-stores the main interface data of the wearable device and cannot be deleted; the second cache block pre-stores the sub-interface data other than the main interface data. The main interface data of the wearable device is read from the first cache block by the interface processing module, and the main interface data is displayed on the display screen; the sub-interface data is read from the second cache block by the resource loading module, and the sub-interface data is displayed on the display screen. In the device, the main interface data is stored in the first cache block, and the sub-interface data is stored in the second cache block. Reading the relevant data from the cache can improve the display efficiency of the interface data, and since the main interface data is used frequently and the main interface data stored in the first cache block will not be deleted, directly reading the main interface data from the first cache block can further improve the display efficiency of the interface data of the wearable device and improve the user experience.

[0078] Furthermore, the content cache module also includes a cache linked list; the cache linked list stores first identification information corresponding to the main interface data in each first cache block, and second identification information corresponding to the sub-interface data in each second cache block.

[0079] Furthermore, the main interface data of the wearable device read from the first cache block by the above-mentioned first reading module is stored in the first cache block in the following manner: when the first power-on instruction is received, the main interface data is loaded through the interface processing module and stored in the first cache block.

[0080] Furthermore, the sub-interface data of the wearable device read from the second cache block by the above-mentioned second reading module is stored in the second cache block in the following manner: according to the size information of the display element in the sub-interface data, a target cache area matching the size information is obtained from the cache area other than the first cache block in the content cache module through the resource loading module, and the target cache area is determined as the second cache block corresponding to the display element; the display element is stored in the corresponding second cache block; wherein the display element includes pictures and / or characters in the sub-interface data.

[0081] Furthermore, if there are both pictures and characters in the above-mentioned sub-interface data, the mapping relationship between the pictures and characters in the sub-interface data is stored in the content cache module, and the pictures and characters with the mapping relationship are stored adjacent to each other; when the specified picture in the sub-interface data is loaded through the resource loading module, the specified characters with the mapping relationship with the specified picture are loaded at the same time, and the specified characters are displayed at the specified position of the specified picture according to the mapping relationship.

[0082] Furthermore, if the above-mentioned display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.

[0083] Furthermore, if the upper display element includes a character, and the character is not displayed on the display screen, the second cache block corresponding to the display element stores character information associated with the character; wherein the character information includes: character size information and encoding information.

[0084] Furthermore, the main interface data of the wearable device read from the first cache block by the first reading module includes time interface data; the first cache block corresponding to the time interface data includes: an hour hand cache block, a minute hand cache block and a second hand cache block.

[0085] Furthermore, for each main interface data, if the data content in the main interface data is larger than the displayable area corresponding to a display screen, the data content in the main interface data is paged according to the preset division granularity through the interface processing module to obtain multiple paged data corresponding to the main interface data; each paged data is stored in the corresponding first cache block respectively.

[0086] Furthermore, the first reading module is also used to, when it is necessary to display designated content in the main interface data, obtain designated page data corresponding to the designated content; and synthesize and display the designated page data.

[0087] The data display device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned data display method embodiment. For the data display device embodiment, reference may be made to the corresponding contents of the aforementioned data display method embodiment.

[0088] The embodiment of the present invention further provides an electronic device, see Fig.12 As shown, the electronic device includes a processor 130 and a memory 131 . The memory 131 stores machine executable instructions that can be executed by the processor 130 . The processor 130 executes the machine executable instructions to implement the above data display method.

[0089] Further, Fig.12 The electronic device shown further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .

[0090] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0091] The processor 130 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the above embodiment in combination with its hardware.

[0092] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned data display method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0093] The data display method, device and computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.

[0094] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data display method, characterized in that: The method is applied to a wearable device; The wearable device comprises: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the first cache block pre-stores the main interface data of the wearable device, and the second cache block pre-stores the sub-interface data of the wearable device except the main interface data; the method comprises: Reading main interface data of the wearable device from the first cache block through the interface processing module, and displaying the main interface data through a display screen; Reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen; The sub-interface data is stored in the second cache block in the following manner: According to the size information of the display element in the sub-interface data, acquiring, by the resource loading module, a target cache area matching the size information from the cache area other than the first cache block in the content cache module, and determining the target cache area as a second cache block corresponding to the display element; storing the display element in the corresponding second cache block; wherein the display element includes the picture and / or character in the sub-interface data; If the sub-interface data contains both the picture and the character, the content cache module stores a mapping relationship between the picture and the character in the sub-interface data, and the picture and the character having the mapping relationship are stored adjacently; The method further comprises: When the designated picture in the sub-interface data is loaded through the resource loading module, the designated characters having a mapping relationship with the designated picture are loaded at the same time, and the designated characters are displayed at the designated position of the designated picture according to the mapping relationship.

2. The method according to claim 1, characterized in that If the display element includes the character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.

3. The method according to claim 1, characterized in that If the display element includes the character and the character is not displayed on the display screen, the second cache block corresponding to the display element stores character information associated with the character; wherein the character information includes: size information and encoding information of the character.

4. The method according to claim 1, characterized in that: The main interface data includes time interface data; the first cache block corresponding to the time interface data includes: an hour hand cache block, a minute hand cache block and a second hand cache block.

5. The method according to claim 1, characterized in that The method further comprises: For each main interface data, if the data content in the main interface data is larger than the displayable area corresponding to a display screen, the data content in the main interface data is paged by the interface processing module according to the preset division granularity to obtain a plurality of paged data corresponding to the main interface data; Each of the paging data is stored in the corresponding first cache block.

6. A data display device using the data display method according to claim 1, characterized in that: The device is arranged on a wearable device; The wearable device comprises: an interface processing module, a resource loading module and a content cache module; the interface processing module and the resource loading module are respectively connected to the content cache module; the content cache module comprises at least one first cache block and at least one second cache block; the cache content in the first cache block cannot be deleted, and the cache content in the second cache block can be deleted; the first cache block pre-stores the main interface data of the wearable device, and the second cache block pre-stores the sub-interface data of the wearable device except the main interface data; the device comprises: A first reading module, configured to read the main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through a display screen; The second reading module is used to read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.

7. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the data display method according to any one of claims 1 to 5.

8. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the data display method according to any one of claims 1 to 5.