CN114489551B - Data display method and device and electronic equipment - Google Patents

Data display method and device and electronic equipment Download PDF

Info

Publication number
CN114489551B
CN114489551B CN202210133732.2A CN202210133732A CN114489551B CN 114489551 B CN114489551 B CN 114489551B CN 202210133732 A CN202210133732 A CN 202210133732A CN 114489551 B CN114489551 B CN 114489551B
Authority
CN
China
Prior art keywords
data
cache
interface data
module
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210133732.2A
Other languages
Chinese (zh)
Other versions
CN114489551A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Transtek Medical Electronics Co Ltd
Original Assignee
Guangdong Transtek Medical Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Transtek Medical Electronics Co Ltd filed Critical Guangdong Transtek Medical Electronics Co Ltd
Priority to CN202210133732.2A priority Critical patent/CN114489551B/en
Publication of CN114489551A publication Critical patent/CN114489551A/en
Application granted granted Critical
Publication of CN114489551B publication Critical patent/CN114489551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention provides a data display method, a data display device and electronic equipment, which are applied to wearable equipment, wherein the wearable equipment comprises the following components: the system comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are prestored in the first caching block and cannot be deleted; in the mode, the main interface data is stored in the first cache block, the sub-interface data is stored in the second cache block, the display efficiency of the interface data can be improved by reading the related data from the cache, and the main interface data stored in the first cache block cannot be deleted because the use frequency of the main interface data is higher, so that the main interface data is directly read from the first cache block, the display efficiency of the interface data of the wearable device can be further improved, and the user experience is improved.

Description

Data display method and device and electronic equipment
Technical Field
The present invention relates to the field of data display technologies, and in particular, to a data display method, a data display device, and an electronic device.
Background
With the improvement of chip performance and manufacturing process, in the wearable equipment with compact structure, the performance of the hardware platform is also greatly improved, which is required to have more diversified functions of firmware and higher interactive experience requirements. The traditional wearable device display system is used for displaying monochromatic content based on a 2D drawing (displaying conventional geometric figures) and picture mode, the interface display content is single, and the interaction mode is vivid and lagging.
In recent years, with the development of display screen technology, the application of color screens on wearable devices has become standard, and the requirements of functions and interaction experience are higher, but more data are needed to be processed by a processor than in single color, and the color is limited by the main frequency, the memory space and the no-graphics hardware acceleration and cost limitation of a main control chip, so that the display efficiency of the display system of the wearable device is lower on the basis of the existing main control chip, and the user experience is reduced.
Disclosure of Invention
The invention aims to provide a data display method and device and electronic equipment, so as to improve the display efficiency of interface data of wearable equipment and improve user experience.
The invention provides a data display method, which comprises the following steps: applied to wearable equipment; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data; the method comprises the following steps: reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; and 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.
Further, the content caching module also comprises a caching linked list; the buffer chain table stores first identification information corresponding to the main interface data in each first buffer block and second identification information corresponding to the sub-interface data in each second buffer block.
Further, the main interface data is stored in the first cache block by: when a first power-on instruction is received, loading main interface data through an interface processing module, and storing the main interface data into a first cache block.
Further, the sub-interface data is stored in the second cache block by: according to the size information of the display element in the sub-interface data, acquiring a target cache area matched with the size information from a cache area except for the first cache block in the content cache module through the resource loading module, and determining the target cache area as a second cache block corresponding to the display element; storing the display elements into corresponding second cache blocks; wherein the display element comprises a picture and/or a character in the sub-interface data.
Further, if the picture and the character exist in the sub-interface data at the same time, the mapping relation between the picture and the character in the sub-interface data is stored in the content cache module, and the picture and the character with the mapping relation are stored adjacently; the method further comprises the steps of: when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed character with the mapping relation with the appointed picture is loaded at the same time, and the appointed character is displayed at the appointed position of the appointed picture according to the mapping relation.
Further, if the display element includes a character, dot matrix information corresponding to the character is stored in the second buffer memory block corresponding to the display element.
Further, if the displayed element comprises a character and the character is not displayed in the display screen, character information associated with the character is stored in a second cache block corresponding to the displayed element; wherein the character information includes: size information and coding information of the characters.
Further, the main interface data includes time interface data; the first buffer memory block corresponding to the time interface data comprises: the hour hand buffer is fast, the minute hand buffer block and the second hand buffer block.
Further, the method further comprises: for each piece of main interface data, if the data content in the main interface data is larger than a displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through an interface processing module according to preset division granularity to obtain a plurality of paging data corresponding to the main interface data; and storing each piece of paging data to the corresponding first cache block respectively.
Further, the method further comprises: when the appointed content in the main interface data is required to be displayed, acquiring appointed paging data corresponding to the appointed content; specified paging data is synthesized and displayed.
The data display device is arranged on wearable equipment; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data; the device comprises: the first reading module is used for 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 the display screen; the second reading module is used for 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 electronic device provided by the invention comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the data display method.
The invention provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the data display method described above.
The invention provides a data display method, a data display device and electronic equipment, which are applied to wearable equipment, wherein the wearable equipment comprises the following components: the system comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are prestored in the first caching block and cannot be deleted; in the mode, the main interface data is stored in the first cache block, the sub-interface data is stored in the second cache block, the display efficiency of the interface data can be improved by reading the related data from the cache, and the main interface data stored in the first cache block cannot be deleted because the use frequency of the main interface data is higher, so that the main interface data is directly read from the first cache block, the display efficiency of the interface data of the wearable device can be further improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a data display method according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of a wearable device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a content caching module according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for buffering a main interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a sub-interface resource caching method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a text out of display range according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a caching mechanism for character information according to an embodiment of the present invention;
FIG. 8 is a flowchart of another data display method according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of a buffering method of a time interface according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a page synthesis method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a data display device according to an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described with reference to the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the development of display screen technology at present, the application of color screens on wearable devices has become standard, the requirements on functions and interaction experience are higher, but more colors than monochrome data which need to be processed by a processor are limited by the main frequency, the memory space and the no-graphics hardware acceleration and cost of a main control chip, so that the display efficiency of the display system of the wearable device is lower on the basis of the existing main control chip, and the user experience is reduced. Based on the above, the embodiment of the invention provides a data display method, a data display device and electronic equipment, and the technology can be applied to applications requiring data display.
For the convenience of understanding the present embodiment, first, a data display method disclosed in the embodiment of the present invention is described in detail; the method is applied to the wearable device; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data;
As shown in fig. 1, the method comprises the steps of:
Step S102, reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen.
And 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.
Referring to a schematic structural diagram of a wearable device shown in fig. 2, the wearable device includes: the system comprises a main interface, a functional interface, a notification interface, an interface manager (corresponding to the interface processing module), a graphic library, a resource loader (corresponding to the resource loading module), an input subsystem, a content caching module and a display screen driving module (corresponding to the display screen). The input subsystem also includes a key driver and a touch screen driver. Wherein, the function interface and the notification interface belong to the sub-interfaces.
The content caching module is a caching pool, namely all available caching spaces; referring to a schematic structure of a content caching module shown in fig. 3, a cache pool is divided into a plurality of cache blocks and a cache linked list; the buffer memory block buffers different contents according to different interfaces or display contents. The cache pool is provided with a fixed cache block (corresponding to the first cache block) and a releasable cache block (corresponding to the second cache block), the cache content of the fixed cache block is undeletable, the cache content of the releasable cache block is deletable, the cache linked list is a directory of the cache blocks, and the logic sequence of the cache blocks is adjusted according to the use frequency and the current interface so as to improve the cache searching efficiency. The content to be displayed on the display screen is cached in different modes through the content caching module, so that the purposes of frame rate and experience optimization can be achieved.
The main interface is generally an interface displayed after the system is started and an interface which can be directly slid and switched in the transverse direction and the longitudinal direction, belongs to a primary interface and is also an interface which appears at the highest frequency; the method has the advantages that the method is convenient to use, the method is easy to operate, the hand-following sliding is required to be supported, the created delay, the sliding response speed and the refreshing speed are required to be the highest, therefore, for a main interface, the interface cache is selected, the whole interface is generally cached in a fixed cache block, and when the method is actually realized, the data is read from FLASH (hard disk) more slowly than from cache, and an interface manager can access a main interface cache mechanism to quickly read and display the whole screen content from a cache module when the interface is switched in a sliding manner, so that the reading time is shortened; meanwhile, the interface manager can perform main interface cache locking through the interface provided by the content cache module, so that the interface is not destroyed in the background.
The function interface is generally an interface accessed by clicking the application icon, the reminding interface is generally a notification interface, and the function interface and the notification interface are both directly jumped. Because the capacity of the buffer pool is limited, all interfaces of the device cannot be buffered, for the sub-interfaces, resource buffering is selected, and display elements used in each sub-interface are generally buffered in a releasable buffer block, so that the number of times of resource loading is reduced and the reading speed is improved.
The resource loader is a module for reading pictures and characters. When in actual implementation, the resource loader reads the sub-interface resources by calling the interface of the content caching module, and then rapidly displays the sub-interface resources through the display screen. When the 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 can read the resource data from FLASH (which can be understood as hardware) first, and applies for a cache block with a corresponding size from a cache pool to store the resource data, and transmits the resource data to the resource loader.
The data display method is applied to wearable equipment, and the wearable equipment comprises the following steps: the system comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are prestored in the first caching block and cannot be deleted; sub-interface data other than the main interface data are stored in the second cache block in advance. Reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; the sub-interface data is read from the second cache block through the resource loading module, and is displayed through the display screen, in the mode, the main interface data is stored in the first cache block, the sub-interface data is stored in the second cache block, the display efficiency of the interface data can be improved by reading related data from the cache, and because the use frequency of the main interface data is high and the main interface data stored in the first cache block cannot be deleted, the main interface data is directly read from the first cache block, the display efficiency of the interface data of the wearable device can be further improved, and the user experience is improved.
The embodiment of the invention also provides another data display method, which is realized on the basis of the method of the embodiment; in the method, if the picture and the character exist in the sub-interface data at the same time, the mapping relation of the picture and the character in the sub-interface data is stored in the content cache module, and the picture and the character with the mapping relation are stored adjacently; the method comprises the following steps:
step one, reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen.
Specifically, the main interface data may be stored in the first cache block through the following step a:
and a step a, when a first power-on instruction is received, loading main interface data through an interface processing module, and storing the main interface data into a first cache block.
The hardware resources of the small wearable device are limited, so that the interfaces cannot be displayed in a superimposed mode, only one interface is in a created and displayed state at any moment, and therefore, the old interfaces are destroyed and new interfaces are created when the interfaces are switched, and the picture and font resources used in the interfaces need to be initialized during creation, so that the memory storage resources need to be applied.
For the main interfaces, the number of the main interfaces can be more than 8, but the capacity of a cache pool is fixed according to the hardware selection, and the size of a cache block can be dynamically applied.
Referring to a schematic diagram of a main interface caching method shown in fig. 4, according to the selection of a cache pool, different space capacities and cache allocation strategies, each main interface can dynamically apply for a cache block with a screen size, the main interface is locked and resides in a fixed cache block, and needs to be preloaded and stored in the cache before the system is started, specifically, when the startup animation is displayed on power-on, the animation playing interval can be utilized, and the pre-caching of the main interface resources can be performed at the same time, so that after the startup animation is played, the display content of the main interface is ready, the interfaces can be guaranteed to respond to the user operation fastest, the creation process does not need to be waited, and due to the resident cache characteristic of the interfaces, the repeated destroying and creation process of the interfaces is not involved when the main interface is switched back and forth.
And step two, 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.
Specifically, the sub-interface data is stored in the second cache block through the following steps b and c:
Step b, according to the size information of the display element in the sub-interface data, acquiring a target cache area matched with the size information from the cache areas except the first cache block in the content cache module through the resource loading module, and determining the target cache area as a second cache block corresponding to the display element;
Step c, storing the display element into a corresponding second cache block; wherein the display element comprises a picture and/or a character in the sub-interface data.
The display elements, namely the resources, comprise pictures and fonts used in the sub-interfaces, and all the display elements of the sub-interfaces share all the cache spaces except for the cache space locked by the main interface in the cache pool. Referring to a schematic diagram of a sub-interface resource caching method shown in fig. 5, each resource (picture or font) in a sub-interface dynamically applies for picture cache blocks or font cache blocks with different sizes from all cache spaces except for the cache pool locked by a main interface according to the size of the resource (picture or font), and stores the picture or font into the corresponding picture cache block or font cache block.
The content caching module (corresponding to the caching pool) also comprises a caching linked list; the buffer chain table stores first identification information corresponding to the main interface in each first buffer block (corresponding to the fixed buffer block) and second identification information corresponding to the sub-interface data (corresponding to the display element of the sub-interface) in each second buffer block (corresponding to the picture buffer block or the font buffer block).
Therefore, the above-mentioned buffer chain table can be responsible for maintaining the sequence of the buffer blocks corresponding to each main interface, always keep the main interface searching path between adjacent interfaces nearest to improve efficiency, and can also maintain and replace the content of the buffer blocks to ensure that the common content of the current sub-interface can be buffered to the greatest extent to improve access speed. Meanwhile, the cache linked list can be closely related according to the pictures and fonts in the same sub-interface, namely the pictures and fonts in the same sub-interface can be automatically adjusted to the front of the cache pool, and the search hit rate of resources and fonts in the same sub-interface is improved.
In actual implementation, if the pictures and the characters exist in the display elements at the same time, when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed character with the mapping relation with the appointed picture is loaded at the same time, and the appointed character is displayed at the appointed position of the appointed picture according to the mapping relation.
Specifically, N pictures are cached in the picture caching block, M groups of fonts are cached in the font caching block, a mapping relation exists between the N pictures and the M groups of fonts, when one or more pictures in the N pictures are loaded, one or more groups of fonts in the M groups of fonts are automatically loaded according to the mapping relation, the fonts also correspond to the positions of the pictures, and when the pictures are loaded, the corresponding characters are loaded and displayed according to the mapping relation and the positional relation of the fonts.
In actual implementation, if the display element includes a character, the second buffer block corresponding to the display element also stores lattice information corresponding to the character.
In actual implementation, if the display element comprises a character, and the character is not displayed in the display screen, character information associated with the character is stored in a second cache block corresponding to the display element; wherein the character information includes: size information and coding information of the characters.
For some scenes, the characters may not need to be actually displayed in the screen, but the size information and/or the dot matrix information (graphic information of the characters) of the characters need to be used, the content caching module can determine the sliding behavior of the user in the next step according to the sliding/operating behavior of the user in the current interface, and determine whether the font caching mode is to cache the character information or the dot matrix information according to the sliding behavior of the user in the next step. Fig. 6 is a schematic diagram showing that when the text exceeds the display range, dot matrix information of the characters is not needed, that is, when the characters are not displayed on the screen, only information such as the sizes and codes of the characters are cached, and the total maximum draggable size is calculated according to the size information of the characters so as to be used for typesetting calculation. By the cache mechanism, the memory space can be saved, the high utilization rate is achieved, and the hit rate of the character lattice data cache is improved. Because the character information occupies less space, the character information can be put into an internal RAM (random access memory ) buffer memory, and the RAM is used for exchanging data with a CPU or temporarily storing data. Caching is just one use of RAM. For example, when a file is opened, the content of the file needs to be cached by using a RAM, so that the content of the file can be modified and then stored in a FLASH (hard disk). The internal RAM refers to a space available for buffering inside the main control chip, and the access speed of the RAM is far higher than that of the external RAM because the RAM is inside the chip.
Specifically, referring to a schematic diagram of a caching mechanism of character information shown in fig. 7, for the character "you", the cached size information is "wide=16, high=16"; the buffered encoded information is "code=0×1". For the character "good", the cached size information is "wide=16, high=16"; the buffered encoded information is "code=0×2". The sequence of character caching is realized by maintaining the content and the sequence of a caching linked list, the caching linked list can sequentially adjust the cached content in the next interface according to the current interface so as to improve the cache searching speed, besides, the characters have no other special caching rules, and the highest frequency of use of the characters is the forefront of the caching linked list.
The file processing method is applied to the wearable equipment, and the wearable equipment comprises the following steps: the device comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, and the content caching module comprises at least one first caching block and at least one second caching block. When a first power-on instruction is received, loading main interface data through an interface processing module, and storing the main interface data into a first cache block, so that the interfaces can respond to user operation fastest without waiting for a creation process; acquiring a second cache block through a resource loading module, and storing display elements into the corresponding second cache block; the number of times of resource loading can be reduced, and the reading speed can be improved; the content caching module comprises a caching linked list; the cache chain table 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, and the cache chain table maintains and replaces the content of the cache block to ensure that the common content of the current sub-interface can be cached to the greatest extent so as to improve the access speed. Meanwhile, the cache chain table can carry out nearby association according to the pictures and fonts in the same interface, namely the pictures and fonts in the same interface can be automatically adjusted to the front of the cache pool, so that the search hit rate of resources and fonts in the same interface is improved.
The embodiment of the invention also provides another data display method, which is realized on the basis of the method of the embodiment; as shown in fig. 8, the method includes the steps of:
step S202, reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen.
The main interface data comprises time interface data; the first buffer memory block corresponding to the time interface data comprises: the hour hand buffer is fast, the minute hand buffer block and the second hand buffer block.
In wearable devices, the time interface often requires a display of different styles of time, such as a display with a pointer. Because of the limited hardware performance and memory space, the pointer needs to be rotated, which is extremely computationally intensive, and the time interface is typically a primary main interface, resulting in poor device interaction experience. According to the characteristics of the pointer clock, the occurrence frequency of the simultaneous change of the hour hand, the minute hand and the second hand is only one hour, most of the situations are only that the second hand is active, and aiming at the situations, an independent buffer memory space can be opened for the hour hand and the minute hand, and a buffer memory pool is resident, so that the display of three hands per second is not needed, and the calculated amount is greatly reduced.
Specifically, referring to the schematic diagram of a time interface caching method shown in fig. 9, the hour hand, the minute hand and the second hand dynamically apply for corresponding hour hand cache blocks from a cache pool according to the image sizes of the hour hand, the minute hand cache blocks and the second hand cache blocks, each rotated pointer is fixedly cached in the pointer size cache block and is not released, wherein the rotated pointer is fixedly cached in the hour hand cache block, the rotated minute hand is fixedly cached in the minute hand cache block, the rotated second hand is fixedly cached in the second hand cache block, thus each pointer does not need to rotate during each display, the sequence of each pointer cache block is maintained through a cache list, and target cache data is quickly found, so that the display of three hands is controlled.
And step S204, 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.
Step S206, aiming at each piece of main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, according to the preset division granularity, performing paging processing on the data content in the main interface data through an interface processing module to obtain a plurality of paging data corresponding to the main interface data;
In step S208, each piece of paging data is stored in the corresponding first cache block.
When the appointed content in the main interface data is required to be displayed, acquiring appointed paging data corresponding to the appointed content; specified paging data is synthesized and displayed.
In general, a text long interface will also appear in the primary main interface. For example, the product definition main interface contains a nine-grid menu list, which is also an interface with pictures and texts and is larger than one screen of content. In this case, it is necessary to perform paging and buffering on the granularity (buffering length) of the division of the main interface data, perform paging and synthesizing during display, and synthesize the buffered paging data into one screen of data for display, without reading the whole data exceeding the one screen, so as to reduce data reading and improve the efficiency of displaying the data.
Specifically, referring to a schematic diagram of a page composition method shown in fig. 10, data of a main interface 1 is divided into two pieces of paging data according to a preset granularity (cache length), so that an upper half of the main interface 1 and a lower half of the main interface 1 are obtained, the two pieces of paging data are respectively stored in an upper half of the main interface 1 and a lower half of the main interface 1, and specified paging data corresponding to specified contents to be displayed in the main interface 1 are simultaneously stored in the upper half of the main interface 1 and the lower half of the main interface 1, so that the corresponding specified paging data is composed and displayed.
The embodiment of the invention also provides a data display device which is arranged on the wearable equipment; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data; as shown in fig. 11, the apparatus includes: the first reading module 11 is configured to read, through the interface processing module, main interface data of the wearable device from the first cache block, and display the main interface data through the display screen; the second reading module 12 is configured 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.
Above-mentioned data display device sets up in wearable equipment, and wearable equipment includes: the system comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are prestored in the first caching block and cannot be deleted; sub-interface data other than the main interface data are stored in the second cache block in advance. Reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; the device stores the main interface data in the first buffer memory block, the sub-interface data in the second buffer memory block, and reads the related data from the buffer memory to improve the display efficiency of the interface data, in addition, as the use frequency of the main interface data is higher, and the main interface data stored in the first cache block cannot be deleted, the main interface data is directly read from the first cache block, so that the display efficiency of the interface data of the wearable device can be further improved, and the user experience is improved.
Furthermore, the content caching module further comprises a caching linked list; the buffer chain table stores first identification information corresponding to the main interface data in each first buffer block and second identification information corresponding to the sub-interface data in each second buffer block.
Further, the main interface data of the wearable device read by the first reading module from the first cache block is stored in the first cache block by: when a first power-on instruction is received, loading main interface data through an interface processing module, and storing the main interface data into a first cache block.
Further, the sub-interface data of the wearable device read by the second reading module from the second cache block is stored in the second cache block by: according to the size information of the display element in the sub-interface data, acquiring a target cache area matched with the size information from a cache area except for the first cache block in the content cache module through the resource loading module, and determining the target cache area as a second cache block corresponding to the display element; storing the display elements into corresponding second cache blocks; wherein the display element comprises a picture and/or a character in the sub-interface data.
Further, if the picture and the character exist in the sub-interface data at the same time, the mapping relation between the picture and the character in the sub-interface data is stored in the content cache module, and the picture and the character with the mapping relation are stored adjacently; when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed character with the mapping relation with the appointed picture is loaded at the same time, and the appointed character is displayed at the appointed position of the appointed picture according to the mapping relation.
Further, if the display element includes a character, dot matrix information corresponding to the character is stored in the second buffer memory block corresponding to the display element.
Further, if the upper display element comprises a character, and the character is not displayed in the display screen, character information associated with the character is stored in a second cache block corresponding to the display element; wherein the character information includes: size information and coding information of the characters.
Further, the main interface data of the wearable device read by the first reading module from the first cache block includes time interface data; the first buffer memory block corresponding to the time interface data comprises: the hour hand buffer is fast, the minute hand buffer block and the second hand buffer block.
Further, for each piece of main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, according to preset division granularity, performing paging processing on the data content in the main interface data through an interface processing module to obtain a plurality of paging data corresponding to the main interface data; and storing each piece of paging data to the corresponding first cache block respectively.
Further, the first reading module is further configured to obtain specified paging data corresponding to the specified content when the specified content in the main interface data needs to be displayed; specified paging data is synthesized and displayed.
The implementation principle and the generated technical effects of the data display device provided by the embodiment of the invention are the same as those of the data display method embodiment, and the corresponding content in the data display method embodiment can be referred to for the embodiment part of the data display device.
The embodiment of the present invention further provides an electronic device, referring to fig. 12, where the electronic device includes a processor 130 and a memory 131, where the memory 131 stores machine executable instructions that can be executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the above-mentioned data display method.
Further, the electronic device shown in fig. 12 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected through the bus 132.
The memory 131 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 133 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 132 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 12, but not only one bus or type of bus.
The processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in processor 130. The processor 130 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131, and in combination with its hardware, performs the steps of the method of the foregoing embodiment.
The embodiment of the invention also provides a machine-readable storage medium, which stores machine-executable instructions that, when being called and executed by a processor, cause the processor to implement the data display method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The data display method, the data display device and the computer program product of the electronic device provided by the embodiments of the present invention include a computer readable storage medium storing program codes, and instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A data display method, characterized in that the method is applied to a wearable device; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data in the wearable device; the method comprises the following steps:
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;
Storing the sub-interface data in the second cache block by:
According to the size information of the display element in the sub-interface data, acquiring a target cache area matched with the size information from the cache areas except the first cache block in the content cache module through the resource loading module, and determining the target cache area as a second cache block corresponding to the display element;
Storing the display element into the corresponding second cache block; wherein the display element comprises pictures and/or characters in the sub-interface data;
If the picture and the character exist in the sub-interface data at the same time, the mapping relation between the picture and the character in the sub-interface data is stored in the content cache module, and the picture and the character with the mapping relation are stored adjacently;
The method further comprises the steps of:
when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed character with the mapping relation with the appointed picture is loaded at the same time, and the appointed character is displayed at the appointed position of the appointed picture according to the mapping relation.
2. The method of claim 1, wherein if the display element includes the character, dot matrix information corresponding to the character is further stored in the second buffer corresponding to the display element.
3. The method of claim 1, wherein if the display element includes the character and the character is not displayed in the display screen, character information associated with the character is stored in a second cache block corresponding to the display element; wherein the character information includes: size information and coding information of the characters.
4. The method of claim 1, wherein the master interface data comprises time interface data; the first cache block corresponding to the time interface data comprises: an hour hand buffer block, a minute hand buffer block and a second hand buffer block.
5. The method according to claim 1, wherein the method further comprises:
For each piece of main interface data, if the data content in the main interface data is larger than a displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through the interface processing module according to preset division granularity to obtain a plurality of paging data corresponding to the main interface data;
and storing each paging data to a corresponding first cache block respectively.
6. A data display apparatus employing the data display method according to claim 1, wherein the apparatus is provided to a wearable device; the wearable device includes: the device comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data except the main interface data in the wearable device; the device comprises:
The first reading module is used for 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;
And the second reading module is used for 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.
7. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the data display method of any one of claims 1-5.
8. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the data display method of any one of claims 1-5.
CN202210133732.2A 2022-02-09 2022-02-09 Data display method and device and electronic equipment Active CN114489551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210133732.2A CN114489551B (en) 2022-02-09 2022-02-09 Data display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210133732.2A CN114489551B (en) 2022-02-09 2022-02-09 Data display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114489551A CN114489551A (en) 2022-05-13
CN114489551B true CN114489551B (en) 2024-09-03

Family

ID=81480069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210133732.2A Active CN114489551B (en) 2022-02-09 2022-02-09 Data display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114489551B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213696A (en) * 2017-06-30 2019-01-15 伊姆西Ip控股有限责任公司 Method and apparatus for cache management
CN110457613A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page data loading control method, device, computer equipment and storage medium
CN113722023A (en) * 2020-05-22 2021-11-30 华为技术有限公司 Application data processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609432B (en) * 2009-07-13 2011-04-13 中国科学院计算技术研究所 Shared cache management system and method thereof
CN102411493A (en) * 2010-09-21 2012-04-11 金蝶软件(中国)有限公司 Universal selection assisting system and method
CN109521920B (en) * 2018-10-30 2021-02-12 维沃移动通信有限公司 Application icon control method and terminal equipment
CN109740085B (en) * 2019-01-10 2019-12-24 北京字节跳动网络技术有限公司 Page content display method, device, equipment and storage medium
CN110609718A (en) * 2019-09-23 2019-12-24 广州虎牙科技有限公司 Picture loading method and device, electronic equipment and readable storage medium
CN113961277A (en) * 2020-07-03 2022-01-21 Oppo广东移动通信有限公司 Information display method and device, wearable device and storage medium
CN112181554B (en) * 2020-09-08 2023-06-20 安徽鸿程光电有限公司 Interactive interface display method, device, electronic device and storage medium
CN112395322B (en) * 2020-12-07 2021-06-01 湖南新云网科技有限公司 List data display method and device based on hierarchical cache and terminal equipment
CN113253922B (en) * 2021-03-12 2023-07-25 北京百度网讯科技有限公司 Cache management method, device, electronic equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213696A (en) * 2017-06-30 2019-01-15 伊姆西Ip控股有限责任公司 Method and apparatus for cache management
CN110457613A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page data loading control method, device, computer equipment and storage medium
CN113722023A (en) * 2020-05-22 2021-11-30 华为技术有限公司 Application data processing method and device

Also Published As

Publication number Publication date
CN114489551A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
WO2017166210A1 (en) Method for processing application program and mobile device
CN110020300B (en) Browser page synthesis method and terminal
US10949226B2 (en) Display method of multi-application based on Android system, and terminal device
CN111209422A (en) Image display method, image display device, electronic device, and storage medium
CN110609718A (en) Picture loading method and device, electronic equipment and readable storage medium
US20080062186A1 (en) Display Device, Control Method for the Same, and Information Storage Medium
CN109697739B (en) Reverse color display method of handwriting reading equipment and handwriting reading equipment
US8044960B2 (en) Character display apparatus
JP2001521190A (en) Basic I / O system read only memory (BIOS-ROM) with vertical scrolling capability for bitmap graphic text
US20110069065A1 (en) Image processing apparatus, computer readable medium and method thereof
CN106940722B (en) Picture display method and device
CN111814427A (en) Text display method and device, electronic equipment and readable storage medium
CN110675800A (en) Display screen driving method and device
CN114489551B (en) Data display method and device and electronic equipment
CN111460342A (en) Page rendering display method and device, electronic equipment and computer storage medium
US20170249292A1 (en) Conditional determination of lookups in glyph processing
US20180157625A1 (en) Method, system and apparatus for displaying an electronic document
CN112559922B (en) Page rendering method, terminal device and storage medium
JP2002519718A (en) Screen image processed at high speed
US11330338B2 (en) Method and system of displaying video comments, computing device, and readable storage medium
CN114020187A (en) Font icon display method and device and electronic equipment
CN112328351A (en) Animation display method, animation display device and terminal equipment
JP3786016B2 (en) Display device and display device cache control method
CN112835491B (en) Information processing method, information processing device, electronic equipment and readable storage medium
CN113791962B (en) Picture frame rate determining method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant