Differential update method and system for picture resources of wearable device

By dividing image resources into resource blocks and managing them using information blocks, differential updates are achieved, solving the problems of long update times and low battery life caused by redundant data transmission in smart wearable devices, thus improving update efficiency and device battery life.

CN120929473BActive Publication Date: 2026-02-10Shenzhen Jinying Tuolian Technology Co., Ltd.
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511467922.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-15
Publication Date
2026-02-10
Estimated Expiration
2045-10-15

AI Technical Summary

Technical Problem

In existing technologies, the way image resources are updated in smart wearable devices results in excessive redundant data transmission and long update times, which affects user experience, consumes device power, and leads to reduced battery life.

Method used

Image resources are divided into multiple resource blocks and managed using summary information of resource blocks and information blocks. Only mismatched resource blocks and information blocks are transmitted to achieve differential updates.

Benefits of technology

It significantly shortens resource update time and firmware upgrade time, reduces device power consumption, and improves the battery life of wearable devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120929473B_ABST
    Figure CN120929473B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of wearable devices, and provides a differential updating method and system for picture resources of a wearable device, which comprises the following steps: obtaining the latest information block in a target resource file; matching the latest information block with the resource block ID of a first resource file to identify the to-be-processed resource block with a non-matching resource block ID; obtaining the first to-be-processed resource block in the target resource file; and updating the first resource file into a second resource file according to the first to-be-processed resource block and a second to-be-processed resource block. In the application, the picture resources are divided into multiple resource blocks in a terminal device to realize classified management, each resource block can manage a small amount of picture resources respectively, the information block can manage the resource blocks collectively, and when updating, the information block can be used to quickly identify the non-matching resource block, only the information block and the non-matching resource block need to be transmitted in the whole process, the transmission of redundant data is greatly reduced, and the resource updating time is significantly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of wearable devices, and particularly relates to a differential updating method and system for picture resources of a wearable device. BACKGROUND

[0002] With the popularity of smart wearable devices, the functions of the devices are constantly enriched, and the devices need to be frequently updated to meet individual needs. The picture resources (icons, watch face patterns, function buttons, etc.) in the interfaces of the devices are the core components of the updated data.

[0003] At present, the main picture resource updating method for smart wearable devices is to convert all picture resources into bitmaps and pack them into a single data file. The data file is sent to the smart wearable device by an external device through Bluetooth or other low-speed wireless communication connection for erasing and writing. Although this updating method compresses the picture resources, even if only a small number of pictures are modified, all picture data will be transmitted each time the update is performed. The transmission of a large amount of redundant data causes the picture resource updating time to be too long in a low-speed scenario, and sometimes even as high as several tens of minutes. During the process of receiving the updated data, the smart wearable device may not be able to normally use the functions of the smart wearable device, which seriously affects the user experience. In addition, the long communication caused by picture resource updating also consumes too much device power, affects the endurance of the smart wearable device, and further causes various inconveniences. SUMMARY

[0004] The embodiment of the present application provides a differential updating method and system for picture resources of a wearable device, which can solve the problems of long updating time and affecting endurance caused by redundant data transmission in the updating of picture resources of a wearable device.

[0005] In a first aspect, the embodiment of the present application provides a differential updating method for picture resources of a wearable device, comprising:

[0006] In response to a picture updating instruction issued by a terminal device, the latest information block in a target resource file is obtained; wherein the target resource file is a latest version of a resource file stored in the terminal device; the resource file comprises one information block and at least one resource block, the information block comprises resource block digest information of all the resource blocks, each resource block comprises picture data of at least one picture resource, each resource block corresponds to a unique resource block ID, and each picture resource corresponds to a unique picture ID;

[0007] matching the latest information block with resource block IDs of resource blocks of the first resource file, identifying a to-be-processed resource block which does not match the resource block IDs, wherein the to-be-processed resource block includes a first to-be-processed resource block of the target resource file and a second to-be-processed resource block of the first resource file, and the first resource file is a current version of the resource file stored in the wearable device;

[0008] obtaining the first to-be-processed resource block in the target resource file;

[0009] updating the first resource file into a second resource file according to the first to-be-processed resource block and the second to-be-processed resource block, and the second resource file is a latest version of the resource file stored in the wearable device.

[0010] Compared with the prior art, the embodiment of the present application has the following beneficial effects:

[0011] The picture resources are divided into multiple resource blocks, and the information block is obtained according to the summary information of the multiple resource blocks, so that the picture resources are classified and managed. Each resource block can manage a small amount of picture resources respectively, and the information block manages the resource blocks. When updating, the information block can be used to quickly identify the resource blocks which do not match the current version of the resource file stored in the wearable device in the latest version of the resource file. In the whole process, only the information block and the unmatched resource block need to be transmitted, so that the transmission of redundant data is greatly reduced, the resource update time and the firmware upgrade time are significantly shortened in the low-speed wireless communication scene, the device power consumption is reduced, and the endurance of the wearable device is improved.

[0012] In a possible implementation manner of the first aspect, the picture ID is in a preset first ID interval, the resource block ID is in a preset second ID interval, and the first ID interval and the second ID interval each include multiple sequentially increasing ID data. Before the step of obtaining the latest information block in the target resource file, the method further includes:

[0013] obtaining, by the terminal device, a latest picture resource set and a third resource file, wherein the third resource file is a current version of the resource file stored in the terminal device, and the latest picture resource set includes at least one latest picture resource;

[0014] allocating, by the terminal device, a unique picture ID for each latest picture resource based on the latest picture resource set and the third resource file;

[0015] packing, by the terminal device, at least one latest resource block from at least one latest picture resource, and allocating a unique resource block ID for each latest resource block based on the latest picture resource set and the third resource file.

[0016] In the above scheme, the sequentially increasing ID data is used to assign unique IDs to the picture resources and resource blocks, the ID assignment efficiency is high, and meanwhile, the unique ID management is convenient for accurate positioning and data tracing, and ensures data reliability.

[0017] In a possible implementation of the first aspect, after the step of packing, by the terminal device, the at least one latest picture resource into at least one latest resource block and assigning a unique resource block ID to each of the at least one latest resource block based on the set of latest picture resources and the third resource file, the method further includes:

[0018] generating, by the terminal device, a latest information block according to the resource block summary information of the latest resource block and assigning a preset information block ID to the latest information block; wherein the information block ID is outside the second ID range.

[0019] generating, by the terminal device, the target resource file based on the latest information block and the latest resource block.

[0020] In a possible implementation of the first aspect, the step of updating the first resource file into a second resource file according to the first to-be-processed resource block and the second to-be-processed resource block includes:

[0021] deleting the second to-be-processed resource block from the first resource file and storing the first to-be-processed resource block into the first resource file to obtain an updated resource block.

[0022] updating an information block in the first resource file according to the resource block summary information of the updated resource block to obtain the second resource file.

[0023] In the above scheme, the first to-be-processed resource block belongs to the latest version of the resource file, that is, the first to-be-processed resource block represents a new resource block that needs to be received, and the second to-be-processed resource block belongs to the current version of the resource file, that is, the second to-be-processed resource block represents an old resource block that needs to be deleted, so that the replacement processing of the new and old resource blocks and the updating processing of the information block can be quickly performed.

[0024] In a possible implementation of the first aspect, in the storage structure of the resource file, the information block is located at the starting position of the resource file, and the resource block is located at a position adjacent to the information block.

[0025] And / or, in the storage structure of the information block, the information block includes an information block header and an information block body.

[0026] The information block header at least stores a block attribute identifier, an information block ID, a resource block quantity, and a first check code of the information block body.

[0027] The information block body stores at least resource block summary information of each resource block; the resource block summary information includes resource block ID, resource block data length, and a first logical offset address of the resource block in the resource file;

[0028] And / or, in the storage structure of the resource block, the resource block includes resource block header and resource block body;

[0029] The resource block header stores at least block attribute identifier, resource block ID, picture quantity, and a second check code of the resource block body;

[0030] The resource block body stores at least picture data of each picture resource; the picture data includes picture ID, picture size, picture bitmap data, and a second logical offset address of the picture resource in the resource block.

[0031] In the above scheme, the storage structures of the resource file, the information block, and the resource block are perfectly adapted to the hardware characteristics of the wearable device, thereby improving the storage efficiency, and are also applicable to other embedded devices without a file system or not suitable for a file system, and have high compatibility.

[0032] In a possible implementation manner of the first aspect, the step of obtaining the latest information block in the target resource file further includes:

[0033] checking the information block body of the latest information block through the third check code in the information block header of the latest information block, and returning to the step of obtaining the latest information block in the target resource file if the check fails;

[0034] And / or, the step of obtaining the first to-be-processed resource block in the target resource file further includes:

[0035] checking the resource block body of the first to-be-processed resource block through the fourth check code in the resource block header of the first to-be-processed resource block, and returning to the step of obtaining the first to-be-processed resource block in the target resource file if the check fails;

[0036] And / or, the step of updating the first resource file into a second resource file according to the first to-be-processed resource block and the second to-be-processed resource block further includes:

[0037] generating an index mapping table of the picture ID and picture storage address according to the second resource file; wherein the picture storage address is obtained based on the first logical offset address, the second logical offset address, and a physical offset address of the second resource file in the wearable device.

[0038] In the above scheme, the data transmission and data storage accuracy is ensured through the check code mechanism, the storage location of the picture resource in the wearable device is quickly located through the index mapping table of the picture ID and the picture storage address, and the picture resource is also used as double verification together with the resource file in the wearable device to ensure the accuracy of the positioning address of the picture resource.

[0039] In a possible implementation of the first aspect, the differential update method of the picture resource of the wearable device further includes:

[0040] When the fragmentation degree of the wearable device is greater than a preset degree threshold or the wearable device receives a storage optimization request transmitted by the terminal device, the wearable device generates a defragmentation instruction;

[0041] In response to the defragmentation instruction, the resource blocks in the wearable device are migrated to a preset continuous physical address space;

[0042] The third logical offset address of the resource block in the second resource file is obtained according to the physical offset address of the resource block in the wearable device;

[0043] The information block in the second resource file is updated according to the third logical offset address, to obtain a fourth resource file;

[0044] The index mapping table is updated according to the fourth resource file.

[0045] In the above scheme, automatic defragmentation and manual defragmentation are supported, the automatic defragmentation is triggered only when the fragmentation reaches the threshold, unnecessary resource block migration can be reduced, and the manual defragmentation can cope with special scenarios such as the need to release a continuous large space storage area in an emergency.

[0046] In a second aspect, an embodiment of the present application provides a differential update system of a picture resource of a wearable device, including:

[0047] A first acquisition module is configured to acquire the latest information block in a target resource file in response to a picture update instruction issued by a terminal device, wherein the target resource file is a latest version of a resource file stored in the terminal device; the resource file includes one information block and at least one resource block, the information block includes resource block digest information of all the resource blocks, each resource block includes picture data of at least one picture resource, each resource block corresponds to a unique resource block ID, and each picture resource corresponds to a unique picture ID.

[0048] The matching module is configured to match the latest information block with resource blocks of the first resource file according to resource block IDs, and identify to-be-processed resource blocks that do not match the resource block IDs; wherein the to-be-processed resource blocks include first to-be-processed resource blocks of the target resource file and second to-be-processed resource blocks of the first resource file, and the first resource file is a current version of a resource file stored in the wearable device.

[0049] The second obtaining module is configured to obtain the first to-be-processed resource blocks in the target resource file.

[0050] The updating module is configured to update the first resource file to a second resource file according to the first to-be-processed resource blocks and the second to-be-processed resource blocks; and the second resource file is a latest version of a resource file stored in the wearable device.

[0051] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the picture resource differential update method of the wearable device in any one of the first aspect when executing the computer program.

[0052] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the picture resource differential update method of the wearable device in any one of the first aspect.

[0053] In a fifth aspect, an embodiment of the present application provides a computer program product, and when the computer program product runs on a terminal device, the terminal device executes the picture resource differential update method of the wearable device in any one of the first aspect.

[0054] It can be understood that beneficial effects of the second aspect to the fifth aspect can be referred to the related description in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0056] Figure 1 is a flowchart of the picture resource differential update method of the wearable device provided by an embodiment of the present application.

[0057] Figure 2is a structural schematic diagram of a resource file storage structure provided by an embodiment of the present application.

[0058] Figure 3 is a flowchart of generating a resource file by a terminal device in a differential update method of picture resources of a wearable device provided by an embodiment of the present application.

[0059] Figure 4 is a flowchart of step S4 in a differential update method of picture resources of a wearable device provided by an embodiment of the present application.

[0060] Figure 5 is a flowchart of another differential update method of picture resources of a wearable device provided by an embodiment of the present application.

[0061] Figure 6 is a flowchart of performing defragmentation in a differential update method of picture resources of a wearable device provided by an embodiment of the present application.

[0062] Figure 7 is a structural schematic diagram of a differential update system of picture resources of a wearable device provided by an embodiment of the present application.

[0063] Figure 8 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0064] In the following description, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, persons skilled in the art will understand that the present application can be practiced without these specific details. In other instances, well-known structures, devices, circuits, and methods have not been described in detail in order to avoid obscuring the present application.

[0065] It should be understood that the term "comprises" as used in the specification and in the claims indicates the presence of the recited features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0066] It should also be understood that the term "and / or" as used herein refers to any one of the associated listed items, combinations of one or more of the associated listed items, and all possible combinations thereof.

[0067] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "upon determining" or "in response to determining" or "upon detecting [the described condition or event]" or "in response to detecting [the described condition or event]" depending on the context.

[0068] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0069] Figure 1 The schematic flow chart of the differential update method of the picture resource of the wearable device provided by the present application is shown, which is mainly applicable to the resource-restricted device without a file system or not suitable for a file system, such as the wearable device with display function, such as smart bracelet, smart watch, smart glasses and smart earphone, of course, it can also be extended to the Internet of Things terminal device and embedded industrial device in low bandwidth transmission environment, as an example but not limited, the differential update method includes the following steps:

[0070] S1, in response to the picture update instruction issued by the terminal device, obtaining the latest information block in the target resource file.

[0071] Wherein, the target resource file is the latest version of the resource file stored in the terminal device. The resource file includes an information block and at least one resource block, the information block includes resource block abstract information of all resource blocks, each resource block includes picture data of at least one picture resource, each resource block corresponds to a unique resource block ID, and each picture resource corresponds to a unique picture ID.

[0072] In this embodiment, the terminal device refers to an external device in communication connection with the wearable device, and the terminal device can be a mobile phone terminal or a PC terminal.

[0073] In the embodiment, the resource file can be understood as a resource file composed of an information block and at least one resource block obtained by splitting, identifying and centrally managing a picture resource set. Such a file structure makes the resource file directly burnable into the storage space (such as a flash, FRAM or other storage medium) of the wearable system, and can also only transmit the blocks related to content update, thereby establishing a differential update mechanism for picture resources. Specifically, the information block is used to save the digest information of all resource blocks, and the resource block digest information includes the identification, length and offset address of the resource block relative to the beginning of the file, etc. The resource block is used to save the picture data of one or more picture resources, and the picture data includes the identification, picture bitmap data and offset address of the picture relative to the beginning of the resource block, etc.

[0074] S2, match the latest information block with the resource blocks of the first resource file according to the resource block IDs, and identify the to-be-processed resource blocks with unmatched resource block IDs.

[0075] In the embodiment, the to-be-processed resource blocks include the first to-be-processed resource block of the target resource file and the second to-be-processed resource block of the first resource file, and the first resource file is the current version of the resource file stored in the wearable device.

[0076] In a possible implementation, a first group of resource block IDs is extracted from the latest information block, a second group of resource block IDs is extracted from the first resource file, the two groups of IDs are arranged in ascending order respectively, and the first resource block ID is used as a starting point to compare the two groups of IDs one by one through double pointers. If the IDs are equal, the double pointers are moved forward synchronously. If the IDs are not equal, the resource block with the smaller ID is marked as “to be processed”. Specifically, if the resource block ID of the first group is smaller than the resource block ID of the second group, the resource block corresponding to the resource block ID of the first group is marked as the first to-be-processed resource block (i.e., the new resource block that needs to be received), and then only the corresponding pointer of the resource block ID of the first group is moved, and the other pointer is not moved. If the resource block ID of the second group is smaller than the resource block ID of the first group, the resource block corresponding to the resource block ID of the second group is marked as the second to-be-processed resource block (i.e., the old resource block that needs to be deleted), and then only the corresponding pointer of the resource block ID of the second group is moved, and the other pointer is not moved.

[0077] In another optional implementation, the target resource block ID that does not exist in the two groups of resource block IDs can be directly found first, and then the first to-be-processed resource block and the second to-be-processed resource block are marked according to the ownership relationship of the found target resource block ID.

[0078] S3, acquire the first to-be-processed resource block in the target resource file.

[0079] S4, update the first resource file to the second resource file according to the first to-be-processed resource block and the second to-be-processed resource block.

[0080] The second resource file is a latest version of the resource file stored in the wearable device. It should be noted that the second resource file and the target resource file are resource files of the same version, and only the storage locations thereof are distinguished. The target resource file can be used as a backup of the second resource file.

[0081] The differential update process of the picture resource of the wearable device will be described in detail below. The terminal device allocates a unique picture ID to all picture resources, divides the picture resources into a plurality of resource blocks according to a block size rule, stores picture data of at least one picture resource in each resource block, allocates a unique resource block ID to each resource block, newly creates an information block, and allocates a fixed information block ID to the information block. The information block is used to store resource block digest information, and the information block and all resource blocks form an initial resource file. When the wearable device is initialized, the terminal device directly burns the initial resource file into the storage medium of the wearable device, and the wearable device generates an initial mapping table of the picture ID-picture storage address. For example, the wearable device initially contains 10 pictures (ID1-ID10), wherein ID1-ID3 are stored in a resource block (ID101), ID4-ID10 are stored in a resource block (ID102), and the information block (ID0) records the digest of the two resource blocks. When the user updates one of the pictures (ID3), the terminal device allocates a new ID (ID11) to the modified picture, and then stores ID1, ID2, and ID11 into a new resource block (ID103). Then, a new information block (ID0) is generated, which contains the digest information of the resource blocks ID102 and ID103. During the update, the terminal device first sends the new information block ID0 to the wearable device. The wearable device compares the resource block ID in the new information block with the locally stored resource block ID, determines the old resource block ID101 to be deleted and the new resource block ID103 to be received, and thus completes the update.

[0082] The differential update method of the picture resource of the wearable device provided in this embodiment classifies and manages the picture resources by dividing the picture resources into a plurality of resource blocks and obtaining an information block according to the digest information of the plurality of resource blocks. Each resource block can centrally manage a small amount of picture resources, and the information block centrally manages the resource blocks. During the update, the information block can be used to quickly identify the resource blocks that do not match the current version of the resource file stored in the wearable device in the latest version of the resource file. Only the information block and the unmatched resource blocks need to be transmitted in the entire process, which greatly reduces the transmission of redundant data, significantly shortens the resource update time and the firmware upgrade time in a low-speed wireless communication scenario, reduces the power consumption of the device, improves the endurance of the wearable device, and improves the user experience.

[0083] By way of example, and without limitation, the storage structure of the resource file is as followsFigure 2 As shown in the storage structure of the resource file, the information block is located at the start of the resource file, and the resource block is located at a position adjacent to the information block.

[0084] In the storage structure of the information block, the information block includes an information block header and an information block body. The information block header at least stores a block attribute identifier (the identifier is used to distinguish whether the identity of the block is an information block or a resource block, such as a combination of magic characters or other characters with recognition degree as the block attribute identifier), an information block ID, a resource block quantity, and a first check code of the information block body (the check range of the information block is the content excluding the information block header itself). The information block body at least stores resource block digest information of each resource block, and the resource block digest information includes a resource block ID, a resource block data length, and a first logical offset address of the resource block in the resource file. The information block format can be: block header (block attribute identifier + information block ID + resource block quantity + first check code) + resource block digest information (first logical offset address of each resource block, resource block ID, data length).

[0085] In the storage structure of the resource block, the resource block includes a resource block header and a resource block body. The resource block header at least stores a block attribute identifier, a resource block ID, a picture quantity, and a second check code of the resource block body (the check range of the resource block is the content excluding the resource block header itself). The resource block body at least stores picture data of each picture resource, and the picture data includes a picture ID, a picture size, picture bitmap data, and a second logical offset address of the picture resource in the resource block. The resource block format can be: block header (block attribute identifier + resource block ID + picture quantity + second check code) + picture data (second logical offset address of each picture, picture ID, picture size, picture bitmap data).

[0086] The differential update method for the picture resource of the wearable device provided in the embodiment is perfectly adapted to the hardware characteristics of the wearable device, so as to improve the storage efficiency, and is also applicable to other embedded devices without a file system or not suitable for a file system, and has high compatibility.

[0087] Optionally, before the differential update of the wearable device, the picture resource needs to be processed by the terminal device to generate the storage format of the resource file, as shown in Figure 3 The flowchart for generating the target resource file by the terminal device includes the following specific steps:

[0088] S101, obtaining a latest picture resource set and a third resource file by a terminal device.

[0089] The third resource file is a resource file of a current version stored in the terminal device, and the latest picture resource set includes at least one latest picture resource. Similarly, the third resource file and the first resource file are resource files of the same version, and only differ in different storage locations.

[0090] In a possible implementation, when it is confirmed that the updating of the resource file in the wearable device is completed, the third resource file in the terminal device can be deleted, and the storage location of the third resource file is covered by the target resource file.

[0091] S102, assigning, by the terminal device, a unique picture ID to each latest picture resource based on the latest picture resource set and the third resource file.

[0092] The picture ID is in a preset first ID interval, and the first ID interval includes a plurality of sequentially increasing ID data. As an example, the picture ID can be a 32-bit ID, which can be in binary representation or hexadecimal representation. Since the maximum value of a 32-bit unsigned integer is 4,294,967,295, the value range of the first ID interval is 1-4,294,967,295.

[0093] In a possible implementation, the principle of assigning the picture ID is to sequentially assign the ID, and the old ID is directly scrapped and no longer reused after the picture is deleted or modified. The picture modification can be understood as the process of deleting an old picture and adding a new picture, so the modified picture also deletes the old ID and assigns a new ID, which can also ensure that the modification operation or the deletion operation is traceable.

[0094] S103, packing, by the terminal device, the at least one latest picture resource into at least one latest resource block respectively, and assigning a unique resource block ID to each latest resource block based on the latest picture resource set and the third resource file.

[0095] The resource block ID is in a preset second ID interval, and the second ID interval includes a plurality of sequentially increasing ID data. Similarly, the resource block ID can also be a 32-bit ID, and the value range of the second ID interval is 1-4,294,967,295. If the resource block is modified or all the contents in the block are deleted, the old ID is no longer used, and a new ID is assigned when the modification is performed.

[0096] In a possible implementation, the division rule of the resource block can be divided according to the block size standard. For example, the size of the block is variable, and the starting address of the block must satisfy 32 KB alignment (32 KB alignment means that the starting address is an integer multiple of 32768 bytes). If the size of a single picture exceeds 32 KB, the size of the block can be greater than 32 KB, so as to avoid cross-block access of picture data, and to enable pictures of different sizes to be stored in the "optimal block form".

[0097] S104, generating a latest information block according to the resource block summary information of the latest resource block and assigning a preset information block ID to the latest information block.

[0098] The information block ID is outside the second ID range. Since the information block and the resource block are both data blocks, in order to distinguish the information block and the resource block, the information block ID needs to select an ID data different from the second ID range, and the information block ID is fixed regardless of how the information block is modified. In a possible implementation, the information block ID is fixed as 0 and stored at the beginning of the resource file (i.e. the position with an offset of 0).

[0099] S105, generating a target resource file based on the latest information block and the latest resource block by the terminal device.

[0100] The differential update method for picture resources of a wearable device provided in the embodiment allocates unique IDs to the picture resources and the resource blocks in sequence and incrementally, which is high in ID allocation efficiency, and meanwhile, the unique ID management is convenient for accurate positioning and tracing of data, and ensures data reliability.

[0101] Optionally, an implementation of the step S102 includes:

[0102] S1021, comparing picture information of each latest picture resource and each current picture resource in the third resource file. The picture information includes picture content (including size change), picture path, picture name, etc. As long as there is a change in the picture information, it is regarded as picture modification.

[0103] S1022, if there is a first picture resource in the latest picture resource that is consistent with the picture information of the current picture resource, reusing the picture ID of the first picture resource.

[0104] S1023, obtaining a second picture resource in the latest picture resource other than the first picture resource, and sequentially assigning a new picture ID to the second picture resource.

[0105] Optionally, an implementation of the step S103 includes:

[0106] S1031, matching picture IDs of each latest picture resource and each current resource block in the third resource file.

[0107] S1032, if the picture IDs of the current picture resource of a first resource block and the picture IDs of the latest picture resource are all consistent in a current resource block, reusing the first resource block and the resource block ID corresponding to the first resource block.

[0108] S1033, obtaining remaining picture resources in the latest picture resource other than the first resource block.

[0109] S1034, the remaining picture resources are packed into at least one second resource block according to a preset division rule, and a new resource block ID is sequentially assigned to the second resource block.

[0110] S1035, obtaining a latest resource block based on the first resource block and the second resource block.

[0111] As an example, the first resource file contains resource block ID 101 (picture ID 1, picture ID 2), resource block ID 102 (picture ID 3, picture ID 4), and resource block ID 103 (picture ID 5, picture ID 6). After modifying the picture corresponding to ID 3 and deleting the picture corresponding to ID 5, the picture IDs of the latest picture resources include ID 1, ID 2, ID 4, ID 6, and ID 7. Assuming that the pictures involved above are all 16 KB, the division of the resource block is according to the 32 KB alignment requirement.

[0112] It is found by comparison that only the picture IDs in resource block ID 101 can be found in the same picture IDs in the latest picture resources, so resource block ID 101 is directly reused, and the remaining pictures are ID 4, ID 6, and ID 7, which are packed into resource block ID 104 (picture ID 4, picture ID 6) and resource block ID 105 (picture ID 7). Therefore, the final resource blocks are ID 101, ID 104, and ID 105.

[0113] Optionally, as shown in Figure 4 , an implementation of step S4 includes:

[0114] S41, deleting the second to-be-processed resource block from the first resource file and storing the first to-be-processed resource block into the first resource file to obtain an updated resource block.

[0115] S42, updating the information block in the first resource file according to the resource block summary information of the updated resource block to obtain a second resource file.

[0116] The differential update method for picture resources of a wearable device provided in this embodiment is that the first to-be-processed resource block belongs to the latest version of the resource file, that is, the first to-be-processed resource block represents a new resource block that needs to be received, and the second to-be-processed resource block belongs to the current version of the resource file, that is, the second to-be-processed resource block represents an old resource block that needs to be deleted, so that the replacement processing of new and old resource blocks and the update processing of information blocks can be quickly performed.

[0117] In a possible implementation manner, as shown in Figure 5 , after step S1, step S11 is further included, specifically:

[0118] S11, verifying the information block body of the latest information block by a third check code in the information block header of the latest information block, and returning to step S1 if the verification fails.

[0119] Specifically, the third check code in the information block header of the latest information block is acquired; a fifth check code is calculated according to the information block body of the latest information block in the wearable device; the check algorithm corresponding to the third check code is consistent with the check algorithm corresponding to the fifth check code, for example, the CRC32 check algorithm can be used; if the third check code is inconsistent with the fifth check code, the terminal device retransmits the latest information block to the wearable device.

[0120] In a possible implementation, as shown in FIG. 3, after step S3, step S31 is further included, specifically: Figure 5

[0121] S31, verifying the resource block body of the first to-be-processed resource block by a fourth check code in the resource block header of the first to-be-processed resource block, and returning to step 3 if the verification fails.

[0122] Specifically, the fourth check code in the resource block header of the first to-be-processed resource block is acquired; a sixth check code is calculated according to the resource block body of the first to-be-processed resource block; the check algorithm corresponding to the fourth check code is consistent with the check algorithm corresponding to the sixth check code; if the fourth check code is inconsistent with the sixth check code, the terminal device retransmits the first to-be-processed resource block to the wearable device.

[0123] In this embodiment, as shown in FIG. 4, after step S4, step S5 is further included, specifically: Figure 5

[0124] S5, generating an index mapping table of the picture ID and the picture storage address according to the second resource file.

[0125] The picture storage address is obtained based on the first logical offset address, the second logical offset address and the physical offset address of the second resource file in the wearable device.

[0126] Specifically, the picture storage address represents the physical offset address of the picture in the storage device, and the picture storage address = the physical offset address of the resource file in the wearable device + the first logical offset address + the second logical offset address; when the physical offset address of the resource file in the wearable device is unchanged, the picture storage address is only related to the first logical offset address and the second logical offset address, so that the picture storage address is automatically and dynamically updated after the resource file is updated.

[0127] ​​The differential update method for picture resources of a wearable device provided in this embodiment ensures the accuracy of data transmission and data storage through a check code mechanism, quickly locates the storage position of picture resources in the wearable device through an index mapping table of picture IDs and picture storage addresses, and also serves as a double verification together with resource files in the wearable device to ensure the accuracy of the locating address of picture resources.

[0128] In this embodiment, some fragments are generated in the process of deleting old resource blocks and storing new resource blocks in the wearable device, and when the wearable device needs to vacate a large continuous storage area, resource blocks can be migrated, and after the migration is completed, a mapping table of "picture ID-picture storage address" is regenerated to ensure the accuracy of picture positioning. Specifically, as shown in Figure 6 The differential update method for picture resources of a wearable device further includes the following steps.

[0129] S61, when the fragmentation degree of the wearable device is greater than a preset degree threshold or the wearable device receives a storage optimization request transmitted by a terminal device, the wearable device generates a fragment consolidation instruction.

[0130] Since block migration will increase additional time consumption and performance overhead, in order to avoid unnecessary block migration, the fragment consolidation supports automatic threshold triggering, and only when the fragmentation is serious, the resource block migration is triggered, and the fragment consolidation also supports manual triggering, for example, when a terminal device transmits a larger picture, a storage optimization request can be transmitted to the wearable device to trigger resource block migration.

[0131] S62, in response to the fragment consolidation instruction, the resource blocks in the wearable device are migrated to a preset continuous physical address space.

[0132] S63, the third logical offset address of the resource block in the second resource file is obtained according to the physical offset address of the resource block in the wearable device.

[0133] It should be noted that resource block migration means that the physical offset address of the resource block in the wearable device has changed, so the logical offset address of the resource block in the resource file also needs to be changed synchronously, that is, the third logical offset address = the physical offset address of the resource block in the wearable device - the physical offset address of the resource file in the wearable device.

[0134] S64, the information block in the second resource file is updated according to the third logical offset address to obtain a fourth resource file.

[0135] In a possible implementation, the information block in the fourth resource file in the wearable device can be transmitted to the terminal device after the fragment consolidation to synchronously update the corresponding version of the resource file.

[0136] S65, the index mapping table is updated according to the fourth resource file.

[0137] The differential update method for picture resources of a wearable device provided by the embodiment supports automatic fragmentation management and manual fragmentation management. The automatic fragmentation management triggers migration only when fragmentation reaches a threshold, which can reduce unnecessary resource block migration. The manual fragmentation management serves as a bottom protection and can cope with special scenarios such as the need to release a continuous large space storage area in an emergency.

[0138] To further illustrate the actual effect of the differential update method of the embodiment in low-speed wireless communication and wearable devices without a file system, a comparison test is performed between the existing full update method and the differential update method of the embodiment.

[0139] Specifically, in the test tool, a smartphone is selected as a terminal device (used to simulate a picture resource update initiator), a smartwatch is selected as a wearable device (with initial picture resources and differential update function firmware burned in, the picture resource size of which is more than 600 pictures, and the full resource file size is 12 MB), and a Flash erasing time tester is selected as an auxiliary tool (used to record the Flash sector erasing time consumption), and the differential update scenario is set as modifying 10 scattered small icons (each picture corresponds to one 32 KB resource block).

[0140] The full update test process includes packaging all 600+ picture resources into a single full file (size 12 MB) by the smartphone; starting a timer, the smartphone initiates a full update request to the smartwatch through Bluetooth connection and transmits the full file; the smartwatch receives data and erases the Flash, and records the total time consumption after completion; the test is repeated for 3 times, and the average time consumption is taken as the final result. The differential update test process includes that the smartphone allocates a new 32-bit ID to the modified picture according to the differential update method, stores it in a new resource block (size 32 KB), and generates a new information block containing a digest of the new resource block; starting a timer, the smartphone first transmits the new information block to the smartwatch; the smartwatch compares the new information block with the local resource block ID, identifies the new resource block to be received, and only receives the resource block; the smartwatch deletes the old resource block, updates the local information block, and rebuilds the “picture ID-picture storage address” mapping table (time consumption <1 second, counted as 1 second); records the total time consumption, repeats the test for 3 times, and takes the average time consumption as the final result. Finally, the time consumption comparison between the full update scenario and the differential update scenario is shown in Table 1:

[0141]

[0142] During the whole test, the differential update method has obvious efficiency advantage, expected adaptability and up-to-standard reliability. Specifically, the differential update method realizes great efficiency improvement compared with the full update method, and according to Table 1, the efficiency improvement multiple is up to 33 times, effectively solving the problem of long time consumption of the traditional full update. Moreover, the differential update method stably runs on the smart watch without file system, and is compatible with the Bluetooth low-speed communication scene, meeting the hardware characteristic demand of the wearable device. In addition, the differential update method does not have data transmission error or picture positioning abnormal problem through the information block check code and resource block check code mechanism, ensuring the reliability of the update process.

[0143] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0144] The differential update method of the picture resource of the wearable device corresponding to the embodiments described above, Figure 7 The structure block diagram of the differential update system of the picture resource of the wearable device provided by the embodiments of the present application is shown, and only the part related to the embodiments of the present application is shown for the convenience of description.

[0145] Referring to Figure 7 The differential update system of the picture resource of the wearable device includes:

[0146] The first acquisition module 11 is configured to acquire the latest information block in the target resource file in response to the picture update instruction issued by the terminal device; wherein the target resource file is the resource file of the latest version stored in the terminal device; the resource file includes one information block and at least one resource block, the information block includes resource block digest information of all resource blocks, each resource block includes picture data of at least one picture resource, each resource block corresponds to a unique resource block ID, and each picture resource corresponds to a unique picture ID.

[0147] The matching module 12 is configured to match the latest information block with the resource block ID of the first resource file, and identify the to-be-processed resource block with unmatched resource block ID; wherein the to-be-processed resource block includes the first to-be-processed resource block of the target resource file and the second to-be-processed resource block of the first resource file, and the first resource file is the resource file of the current version stored in the wearable device.

[0148] The second acquisition module 13 is configured to acquire the first to-be-processed resource block in the target resource file.

[0149] The update module 14 is configured to update the first resource file to the second resource file according to the first to-be-processed resource block and the second to-be-processed resource block; and the second resource file is the resource file of the latest version stored in the wearable device.

[0150] It should be noted that the information interaction, execution process and the like between the above apparatuses / units are based on the same concept as the method embodiments of the present application, and specific functions and brought technical effects can be referred to the method embodiments part. Herein, no further description is given.

[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the unit and module in the system can refer to the corresponding process in the foregoing method embodiments, and will not be described here.

[0152] Figure 8 The structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 2. As shown in FIG. 2, the electronic device 2 of the embodiment includes at least one processor 20 (only one processor is shown in the figure), a memory 21 and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. The processor 20 implements the steps in the differential update method of each wearable device picture resource embodiment of the computer program 22. Figure 8 Figure 8 The electronic device 2 can be a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The electronic device 2 can include, but is not limited to, the processor 20 and the memory 21. Those skilled in the art can understand that the electronic device 2 shown in the figure is only an example, and does not limit the electronic device 2. It can include more or fewer components than shown, or combine certain components, or different components, for example, it can also include an input / output device, a network access device and the like.

[0153] The electronic device 2 can be a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The electronic device 2 can include, but is not limited to, the processor 20 and the memory 21. Those skilled in the art can understand that the electronic device 2 shown in the figure is only an example, and does not limit the electronic device 2. It can include more or fewer components than shown, or combine certain components, or different components, for example, it can also include an input / output device, a network access device and the like. Figure 8

[0154] ​​The processor 20 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0155] The memory 21 can be an internal storage unit of the electronic device 2 in some embodiments, such as a hard disk or a memory of the electronic device 2. The memory 21 can also be an external storage device of the electronic device 2 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 21 can include both an internal storage unit and an external storage device of the electronic device 2. The memory 21 is used to store an operating system, application programs, a boot loader, data, and other programs, such as program codes of computer programs, etc. The memory 21 can also be used to temporarily store data that has been output or will be output.

[0156] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in the above-mentioned various embodiments of the method for differentially updating picture resources of a wearable device.

[0157] The embodiments of the present application provide a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal is enabled to implement the steps in the above-mentioned various embodiments of the method for differentially updating picture resources of a wearable device.

[0158] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above-mentioned embodiment methods through a computer program to instruct relevant hardware to complete, and the computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / terminal equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable medium can not be an electrical carrier signal and a telecommunication signal.

[0159] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0160] Those of ordinary skill in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0161] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / network device and method can be implemented in other ways. For example, the above-described apparatus / network device embodiments are merely schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0162] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected to achieve the purpose of the embodiment scheme according to actual needs.

[0163] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A differential update method for image resources of wearable devices, characterized in that, include: In response to an image update command issued by a terminal device, the latest information block in a target resource file is obtained; wherein, the target resource file is the latest version of the resource file stored on the terminal device; the resource file includes an information block and at least one resource block, the information block includes resource block summary information of all the resource blocks, each resource block includes image data of at least one image resource, each resource block corresponds to a unique resource block ID, each image resource corresponds to a unique image ID, the information block corresponds to a preset information block ID, the information block ID is fixed, the resource block ID is not reused when the corresponding resource block is deleted or modified, and the image ID is not reused when the corresponding image resource is deleted or modified; The latest information block is matched with the resource block ID of the first resource file to identify the resource blocks to be processed that do not match the resource block ID; wherein, the resource blocks to be processed include the first resource block to be processed of the target resource file and the second resource block to be processed of the first resource file, and the first resource file is the resource file of the current version stored in the wearable device; Obtain the first resource block to be processed from the target resource file; The first resource file is updated to a second resource file based on the first resource block to be processed and the second resource block to be processed; the second resource file is the latest version of the resource file stored in the wearable device; In the storage structure of the resource file, the information block is located at the beginning of the resource file, and the resource block is located after the information block and adjacent to the information block; And / or, in the storage structure of the information block, the information block includes an information block header and an information block body; The information block header stores at least the block attribute identifier, the information block ID, the number of resource blocks, and the first checksum of the information block body; The information block body stores at least the resource block summary information for each resource block; the resource block summary information includes the resource block ID, the resource block data length, and the first logical offset address of the resource block in the resource file; And / or, in the storage structure of the resource block, the resource block includes a resource block header and a resource block body; The resource block header stores at least the block attribute identifier, the resource block ID, the number of images, and the second checksum of the resource block body; The resource block body stores at least the image data for each image resource; the image data includes the image ID, image size, image bitmap data, and the second logical offset address of the image resource in the resource block.

2. The differential update method for wearable device image resources according to claim 1, characterized in that, The image ID is located in a preset first ID range, and the resource block ID is located in a preset second ID range. Both the first ID range and the second ID range include multiple sequentially increasing ID data. Before the step of obtaining the latest information block in the target resource file, the method further includes: The latest image resource set and a third resource file are obtained through the terminal device; the third resource file is a resource file of the current version stored on the terminal device, and the latest image resource set includes at least one latest image resource. The terminal device assigns a unique image ID to each latest image resource based on the latest image resource set and the third resource file. The terminal device packages at least one of the latest image resources into at least one latest resource block, and assigns a unique resource block ID to each latest resource block based on the latest image resource set and the third resource file.

3. The differential update method for wearable device image resources according to claim 2, characterized in that, The step of packaging at least one of the latest image resources into at least one latest resource block using a terminal device and assigning a unique resource block ID to each of the latest image resource sets and the third resource file further includes: The terminal device generates a new information block based on the resource block summary information of the latest resource block and assigns a preset information block ID to the latest information block; wherein the information block ID is outside the second ID range; The target resource file is generated by the terminal device based on the latest information block and the latest resource block.

4. The differential update method for wearable device image resources according to claim 1, characterized in that, The step of updating the first resource file to a second resource file based on the first resource block to be processed and the second resource block to be processed includes: The second resource block to be processed is deleted from the first resource file and the first resource block to be processed is stored in the first resource file to obtain the updated resource block; The information blocks in the first resource file are updated based on the updated resource block summary information to obtain the second resource file.

5. The differential update method for wearable device image resources according to claim 1, characterized in that, Following the step of obtaining the latest information block in the target resource file, the method further includes: The information block body of the latest information block is verified by the third checksum in the header of the latest information block. If the verification fails, the process returns to the step of obtaining the latest information block in the target resource file. And / or, after the step of obtaining the first resource block to be processed in the target resource file, the method further includes: The resource block body of the first resource block to be processed is verified by the fourth check code in the resource block header of the first resource block to be processed. If the verification fails, the step of obtaining the first resource block to be processed in the target resource file is returned. And / or, after the step of updating the first resource file to a second resource file based on the first resource block to be processed and the second resource block to be processed, the method further includes: An index mapping table between the image ID and the image storage address is generated based on the second resource file; wherein the image storage address is obtained based on the first logical offset address, the second logical offset address, and the physical offset address of the second resource file in the wearable device.

6. The differential update method for wearable device image resources according to claim 5, characterized in that, The differential update method for wearable device image resources further includes: When the fragmentation level of the wearable device exceeds a preset threshold or when the wearable device receives a storage optimization request from a terminal device, the wearable device generates a fragmentation defragmentation instruction. In response to the defragmentation command, the resource blocks in the wearable device are migrated to a preset contiguous physical address space; The third logical offset address of the resource block in the second resource file is obtained based on the physical offset address of the resource block in the wearable device; The information block in the second resource file is updated according to the third logical offset address to obtain the fourth resource file; Update the index mapping table according to the fourth resource file.

7. A differential update system for image resources of wearable devices, characterized in that, include: The first acquisition module is used to acquire the latest information block in a target resource file in response to an image update command issued by the terminal device; wherein, the target resource file is the latest version of the resource file stored in the terminal device; the resource file includes an information block and at least one resource block, the information block includes resource block summary information of all the resource blocks, each resource block includes image data of at least one image resource, each resource block corresponds to a unique resource block ID, each image resource corresponds to a unique image ID, the information block corresponds to a preset information block ID, the information block ID is fixed, the resource block ID is not reused when the corresponding resource block is deleted or modified, and the image ID is not reused when the corresponding image resource is deleted or modified; The matching module is used to match the latest information block with the resource blocks of the first resource file by resource block ID, and identify the unprocessed resource blocks whose resource block IDs do not match; wherein, the unprocessed resource blocks include the first unprocessed resource block of the target resource file and the second unprocessed resource block of the first resource file, and the first resource file is the resource file of the current version stored in the wearable device; The second acquisition module is used to acquire the first resource block to be processed in the target resource file; The update module is used to update the first resource file to a second resource file based on the first resource block to be processed and the second resource block to be processed; the second resource file is the latest version of the resource file stored in the wearable device; In the storage structure of the resource file, the information block is located at the beginning of the resource file, and the resource block is located after the information block and adjacent to the information block; And / or, in the storage structure of the information block, the information block includes an information block header and an information block body; The information block header stores at least the block attribute identifier, the information block ID, the number of resource blocks, and the first checksum of the information block body; The information block body stores at least the resource block summary information for each resource block; the resource block summary information includes the resource block ID, the resource block data length, and the first logical offset address of the resource block in the resource file; And / or, in the storage structure of the resource block, the resource block includes a resource block header and a resource block body; The resource block header stores at least the block attribute identifier, the resource block ID, the number of images, and the second checksum of the resource block body; The resource block body stores at least the image data for each image resource; the image data includes the image ID, image size, image bitmap data, and the second logical offset address of the image resource in the resource block.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the differential update method for wearable device image resources as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the differential update method for wearable device image resources as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Static file system differencing and updating

    US20060112113A1