Screensaver dynamic updating method and device and display equipment
By obtaining the screen saver information data to be updated from the background and comparing it with the locally stored information data, the target file is processed to determine the specific operation of the local screensaver file, which solves the resource waste and update abnormality problems caused by users modifying the screen saver location. Achieved the normal progress and efficiency improvement of screen saver update.
Patent Information
- Application Number
- CN202411377858.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-21
AI Technical Summary
The prior art causes waste of resources and update abnormalities during the background screensaver update process after the user modifys the screensaver location.
By obtaining the screensaver information data to be updated from the background and comparing it with the locally stored screensaver information data, the target file is processed to determine the specific operation on the local screensaver file, thereby avoiding repeated downloads.
It realizes the normal progress of screen saver update after the user modifies the screen saver position, avoids waste of resources and ensures the efficiency of background screen saver update.
Smart Images

Figure CN119336406A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a screen saver dynamic updating method, device and display equipment. Background Art
[0002] In order to prevent the display device from displaying the same screen for a long time, which may affect the life of the display device, or to protect privacy, a screen saver is often set for the display device. In order to enrich the content of the screen saver, different screen savers can be downloaded and updated from the background through the network to be stored locally. In order to save resources, only the screen savers that are not saved locally are downloaded during the background update process, and the screen savers that have been stored locally will not be downloaded repeatedly. In order to meet the personalized needs of users, users can be allowed to modify the location of the screen saver image on the display device according to their own needs. Although some screen saver images stored locally are set in different locations by users, the content displayed by these screen saver images has not changed. At present, when the screen saver is downloaded and updated through the background, these screen savers that have only changed their locations will still be re-downloaded, resulting in a waste of resources and affecting the normal update of the background screen saver. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide a screen saver dynamic update method, apparatus and display device, which are used to solve the technical problem in the prior art that the background screen saver update is affected after the user modifies the screen saver image position.
[0004] The technical solution adopted by the present invention is:
[0005] In a first aspect, the present invention provides a method for dynamically updating a screen saver, the method comprising the following steps:
[0006] Get the information data of the screen saver to be updated from the background;
[0007] Read the information data of the screen saver which has been saved locally from the target file stored locally;
[0008] Processing the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file;
[0009] The screen saver file stored locally is updated according to the processed target file and the information data of the screen saver to be updated;
[0010] The information data includes download address data of the screen saver and location data of the screen saver.
[0011] Preferably, the processing of the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file further comprises:
[0012] Determine whether the information data read from the target file is empty;
[0013] If it is empty, the information data of the screen saver to be updated will be stored in the target file;
[0014] If it is not empty, the information data in the target file is operated according to the information data read from the target file and the information data obtained from the background.
[0015] Preferably, if the target file is not empty, operating the information data in the target file according to the information data read from the target file and the information data obtained from the background further comprises:
[0016] Acquire the data length of the information data stored in the target file as the first data length;
[0017] Acquire the data length of the information data of the screen saver to be updated obtained from the background as the second data length;
[0018] Determine whether the first data length and the second data length are the same;
[0019] If the lengths are the same, the information data currently stored in the target file remains unchanged;
[0020] If the lengths are different, the information data stored in the target file is compared with the information data of the screen saver to be updated, and the information data in the target file is operated according to the comparison result.
[0021] Preferably, if the lengths are different, comparing the information data stored in the target file with the information data of the screen saver to be updated, and operating the information data in the target file according to the comparison result further comprises:
[0022] Compare the information data saved in the target file and the information data obtained from the background to see if they are exactly the same;
[0023] If yes, keep the information data in the target file;
[0024] If otherwise, the information data stored in the target file is compared with the position data and non-position data in the information data of the screen saver to be updated;
[0025] The information data in the target file is operated based on the comparison results of the position data and the non-position data.
[0026] Preferably, the operating the information data in the target file according to the comparison result of the position data and the non-position data further comprises:
[0027] If the non-position data is the same and the position data is different, the information data in the target file is retained;
[0028] If the non-position data are different, the information data currently stored in the target file is replaced by the information data from the screen saver to be updated.
[0029] Preferably, the updating of the locally stored screen saver file according to the processed target file and the information data of the screen saver to be updated further comprises:
[0030] Obtain the download address, file name and MD5 value of the screen saver to be downloaded according to the information data in the target file;
[0031] Determine whether the file name of the screen saver to be downloaded is the same as the file name of the screen saver stored in the local target folder;
[0032] If the file names are not the same, then download the screen saver file from the background according to the download address;
[0033] If the file names are the same, the MD5 value of the screen saver to be downloaded is compared with the MD5 value of the screen saver stored in the local target folder;
[0034] If the MD5 value of the screen saver to be downloaded is the same as the MD5 value of the screen saver stored in the local target folder, the screen saver file is not downloaded from the background and the screen saver file stored in the local target folder is retained;
[0035] If the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, the screen saver file is downloaded from the background according to the download address and the screen saver file stored in the local target folder is replaced with the downloaded screen saver file.
[0036] Preferably, the method further comprises:
[0037] Get the user's change information on the location of the screen saver stored in the local target folder;
[0038] The position data in the target file is modified according to the position change information.
[0039] Preferably, if the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, downloading the screen saver file from the background according to the download address and replacing the screen saver file stored in the local target folder with the downloaded screen saver file also includes:
[0040] Obtaining preset rules for dividing screen saver files;
[0041] Dividing the screen saver file to be downloaded into a plurality of first logic blocks according to a preset rule;
[0042] Dividing the screen saver files stored in the local target folder into a plurality of second logic blocks according to the preset rule;
[0043] Calculating hash values of each first logic block;
[0044] Calculating hash values of each second logic block;
[0045] comparing the hash value of each first logic block with the hash value of each second logic block;
[0046] Filtering out first logic blocks having hash values different from those of the second logic blocks from the screen saver file to be downloaded for downloading;
[0047] Filter out the second logic blocks having the same hash value as the first logic block from the screen saver file stored in the local target folder, and retain them, and delete the remaining logic blocks;
[0048] The downloaded first logic block and the retained second logic block are combined into a complete screen saver file and saved in a local target folder.
[0049] In a second aspect, the present invention further provides a screen saver updating device, the device comprising:
[0050] A screen saver information data acquisition module, the screen saver information acquisition module is used to acquire information data of the screen saver to be updated from the background, the information data includes download address data of the screen saver and location data of the screen saver;
[0051] A screen saver information data reading module, the screen saver information data reading module is used to read the information data of the screen saver that has been stored locally from a target file stored locally;
[0052] A target file processing module, the target file processing module is used to process the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file;
[0053] The screen saver file operation module is used to operate the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated.
[0054] In a third aspect, the present invention further provides a screen saver updating device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method described in the first aspect is implemented.
[0055] Beneficial effect: The screen saver dynamic update method, device and display device of the present invention first obtain the information data of the screen saver to be updated from the background before downloading the screen saver file from the background, and then process the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file. Since the information data contains position data, the relationship between the screen saver to be updated and the screen saver file currently stored locally can be judged through the processed target file and the information data of the screen saver to be updated, and then the specific operation of the local screen saver file is determined according to the above relationship. After adopting the above scheme, even if the user modifies the location of the screen saver that has been stored locally, the present invention can accurately identify whether the screen saver to be updated has been stored locally, so that repeated downloading of the same file can be avoided during the update, and normal update after the user modifies the screen saver location is realized, and the waste of resources is effectively avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0057] Figure 1 It is a schematic diagram of a flow chart of a screen saver dynamic updating method of the present invention;
[0058] Figure 2 A schematic diagram of a process for processing a target file according to the present invention;
[0059] Figure 3 A schematic flow chart of a method for operating information data in a target file according to the present invention;
[0060] Figure 4 It is a flow chart of the method of operating information data according to the comparison result of the present invention;
[0061] Figure 5 It is a flow chart of the method of the present invention for determining the operation mode of information data by comparing the position data;
[0062] Figure 6 It is a flow chart of a method for processing a screen saver file stored locally according to the present invention;
[0063] Figure 7 A flow chart of a method for modifying position data in a target file according to user position modification information of the present invention;
[0064] Figure 8 A schematic flow chart of a method for updating a target file after a network signal is detected according to the present invention;
[0065] Fig. 9 It is a structural schematic diagram of the screen saver updating device of the present invention;
[0066] Fig.10 It is a structural block diagram of the display device of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.
[0068] Example 1
[0069] like Figure 1 As shown, this embodiment provides a screen saver dynamic update method, wherein the screen saver refers to a program or graphic that appears to protect the display or screen after the electronic product such as a computer or mobile phone is not used for a long time. The screen saver usually displays beautiful patterns, animations or scrolling text and other contents on the screen to avoid screen burn-in or imprinting caused by long-term stay on the screen. The screen saver dynamic update method in this embodiment 1 includes the following steps:
[0070] S1: Acquire information data of the screen saver to be updated from the background, wherein the information data includes download address data of the screen saver and location data of the screen saver;
[0071] In order to enrich the content of the screen saver, this embodiment adopts the method of downloading a new screen saver from the background and saving it locally to update the screen saver. The display device displays the screen saver saved locally. This embodiment first obtains information data of the screen saver to be downloaded from the background before officially downloading a new screen saver from the background, wherein the information data of the screen saver stores information related to the screen saver to be downloaded. For example, the download address data in the information data stores the download address of the screen saver to be downloaded. For example, the position data in the information data stores the position of the screen saver to be downloaded when it is displayed on the display device.
[0072] S2: Read the information data of the screen saver that has been saved locally from the target file stored locally;
[0073] The information of the screen saver that has been downloaded and stored locally is also stored in the information data of the corresponding screen saver, and the information data is stored in a local file. The file for storing the information data of the local screen saver locally is referred to as the target file in this article. The information data of the screen saver stored locally also includes the download address data of the screen saver and the location data of the screen saver.
[0074] S3: processing the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file;
[0075] This step compares the relevant information of the screen saver to be downloaded with the locally saved screen saver before downloading, and processes the target file based on the comparison. Since the information data contains position data, the positional relationship between the two can be determined by comparison, and the processing method of the target file is also related to the target file.
[0076] S4: updating the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated.
[0077] This embodiment can determine the relationship between the screen saver to be updated and the screen saver file currently stored locally through the processed target file and the information data of the screen saver to be updated, and then determine the specific operation on the local screen saver file according to the aforementioned relationship. In this way, the new screen saver file can be downloaded in time, and repeated downloading of the same screen saver file after the user modifies the location can be avoided.
[0078] like Figure 2 As shown, as an example, in this embodiment, the step S3: processing the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file also includes:
[0079] S31: Determine whether the information data read from the target file is empty;
[0080] S32: if it is empty, storing the information data of the screen saver to be updated into the target file;
[0081] If the information data read from the target file is empty, it means that the screen saver has not been downloaded from the background before, so the information data related to the screen saver saved in the target file is empty. At this time, since there is no possibility of repeated downloading, there is no need to compare and analyze the information of the previously saved screen saver, and the information data of the screen saver to be downloaded obtained from the background can be directly recorded in the target file.
[0082] S33: If it is not empty, operate the information data in the target file according to the information data stored in the target file and the information data to be updated.
[0083] If the information data in the read target file is not empty, it means that the screen saver has been downloaded from the background and saved locally. Therefore, this step compares and analyzes the information data of the downloaded screen saver and the information data of the screen saver to be downloaded, and then performs further operations on the information data saved in the target file based on the specific comparison and analysis results.
[0084] like Figure 3 As shown, in this embodiment, the S33: if it is not empty, operating the information data in the target file according to the information data saved in the target file and the information data of the screen saver to be updated also includes:
[0085] S331: Acquire the data length of the information data stored in the target file as the first data length;
[0086] S332: Acquire the data length of the information data of the screen saver to be updated as the second data length;
[0087] The data length in this embodiment refers to the size of the space occupied by the data, and the data length can be expressed in bytes or bits.
[0088] S333: Determine whether the first data length and the second data length are the same;
[0089] S334: If the lengths are the same, the information data currently stored in the target file is replaced with the information data of the screen saver to be updated;
[0090] If the data length of the information data read from the target file is the same as the data length of the information data obtained from the background, it means that the two data are exactly the same. At this time, there is no need to save new data. Therefore, the operation on the information data in the target file is to keep the existing information data in the target file unchanged.
[0091] S335: If the lengths are different, the information data read from the target file is compared with the information data of the screen saver to be updated, and the information data in the target file is operated according to the comparison result.
[0092] If the lengths of the two information data are different, it indicates that there are certain differences between the information data read from the target file and the information data obtained from the background. You can further compare the two information data before performing any operations.
[0093] like Figure 4 As shown, in this embodiment, S335: if the lengths are different, the information data stored in the target file is compared with the information data of the screen saver to be updated, and the information data in the target file is operated according to the comparison result, and further includes:
[0094] S3351: Compare whether the information data read from the target file and the information data obtained from the background are exactly the same;
[0095] During specific implementation, the information data read from the target file and the information data obtained from the background can be compared one by one.
[0096] S3352: If yes, keep the information data in the target file;
[0097] If the information data read from the target file is exactly the same as the information data obtained from the background, it indicates that the screen saver to be downloaded is the same as the screen saver already saved locally, so there is no need to download it again. The operation on the information data in the target file is to keep the information data in the target file unchanged.
[0098] S3353: if otherwise, compare the position data and non-position data of the information data read from the target file with the information data obtained from the background;
[0099] The non-position data refers to other data in the information data except the non-position data. If the information data read from the target file and the information data obtained from the background are not exactly the same, it is necessary to further analyze the similarities and differences between the position data and the non-position data in the information data read from the target file and the information data obtained from the background.
[0100] S3354: Operate the information data in the target file according to the comparison result of the position data and the non-position data.
[0101] By comparing the position data with the non-position data, it can be known whether the local screensaver is different from the screensaver to be downloaded only in position. If so, it indicates that the position of the locally saved screensaver has been modified by the user.
[0102] like Figure 5As shown, in this embodiment, the S3354: operating the information data in the target file according to the comparison result of the position data and the non-position data also includes:
[0103] S33541: Keep the information data in the target file if the non-position data is the same and the position data is different;
[0104] If the non-position data is the same and the position data is different, it indicates that the screen saver to be downloaded is the same as the screen saver content saved locally but in a different position, and does not need to be downloaded repeatedly. Therefore, the operation on the target file is to retain the information data in the target file.
[0105] S33542: If the non-position data is different, the information data currently stored in the target file is replaced with the information data obtained from the background.
[0106] If the non-position data is different, it indicates that the screen saver waiting to be downloaded from the background is different from the screen saver currently saved locally, so the operation on the target file is to replace the current information data in the target file with the information data newly obtained from the background.
[0107] like Figure 6 As shown, in this embodiment, the step S4: operating the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated also includes:
[0108] S41: Obtain the download address, file name and MD5 value of the screen saver to be downloaded according to the information data in the target file;
[0109] MD5 stands for MD5 Message-Digest Algorithm. This algorithm is a widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value to ensure the integrity and consistency of information transmission. It is mainly used for data encryption.
[0110] The information data of the screen saver to be updated obtained from the background includes the MD5 value, so the information data in the target file after the update process also includes the MD5 value of the screen saver to be downloaded.
[0111] S42: Determine whether the file name of the screen saver to be downloaded is the same as the file name of the screen saver stored in the local target folder;
[0112] S43: if the file names are not the same, downloading the screen saver file from the background according to the download address;
[0113] If the file names are different, it indicates that the file to be downloaded is a new screen saver file, so the screen saver file is downloaded according to the download address.
[0114] S44: if the file names are the same, then comparing the MD5 value of the screen saver to be downloaded with the MD5 value of the screen saver stored in the local target folder;
[0115] If the file names are the same, it is necessary to further compare the MD5 value of the screen saver to be downloaded with the MD5 value of the screen saver stored in the local target folder.
[0116] S45: If the MD5 value of the screen saver to be downloaded is the same as the MD5 value of the screen saver stored in the local target folder, the screen saver file is not downloaded from the background and the screen saver file stored in the local target folder is retained;
[0117] If the MD5 values of the two are the same, it indicates that the screen saver to be downloaded is the same as the screen saver currently stored locally. In this case, there is no need to download it again. Therefore, the operation on the screen saver file stored locally is to retain the screen saver file stored in the local target folder.
[0118] S46: If the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, the screen saver file is downloaded from the background and the screen saver file stored in the local target folder is replaced with the downloaded screen saver file.
[0119] If the MD5 values of the two are different, it indicates that the screen saver to be downloaded is different from the screen saver currently stored locally, so the screen saver file needs to be downloaded from the background installation download address. At this time, the operation on the screen saver file stored locally is to replace the screen saver file stored in the local target folder with the downloaded screen saver file.
[0120] like Figure 7 As shown, this embodiment allows the user to set the location of the screen saver downloaded to the local computer. The method of this embodiment also includes:
[0121] S01: Obtaining information about the location change of the screen saver stored in the local target folder by the user;
[0122] S02: Modify the position data in the target file according to the position change information.
[0123] This embodiment modifies the location data of the target file according to the information about the screen saver position change by the user. Thus, before downloading, the screen saver update method is determined by comparing the information data of the screen saver to be downloaded with the location data in the target file. Therefore, the screen saver update is not affected by the user's modification of the screen saver position.
[0124] like Figure 8 As shown, in this embodiment, the S1: obtaining information data of the screen saver to be updated from the background, the information data including the download address data of the screen saver and the location data of the screen saver also includes:
[0125] S11: monitor network connection signal;
[0126] S12: When a network connection signal is detected, information data of the screen saver to be updated is obtained from the background.
[0127] This embodiment automatically obtains information data of the screen saver to be updated from the background after detecting the network connection signal, so that the screen saver can be updated in time.
[0128] In this embodiment, the step S46: if the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, then downloading the screen saver file from the background according to the download address and replacing the screen saver file stored in the local target folder with the downloaded screen saver file also includes:
[0129] S461: Obtaining a preset rule for dividing screen saver files;
[0130] For example, when the screen saver is an image file, the screen saver file can be divided according to the rule of image area division. When the screen saver is an animation file, the screen saver file can be divided according to the rule of animation file frame division.
[0131] The screen saver file is divided into multiple logical blocks (such as image files are divided into different partitions, animation files are divided into different frames). During the background data comparison, only the changed file blocks are identified, and the changed blocks are downloaded and updated separately.
[0132] S462: Divide the screen saver file to be downloaded into a plurality of first logic blocks according to a preset rule;
[0133] For example, when the screen saver is an image file, each area of the image is a different first logical block. When the screen saver file is an animation file, each frame is a different first logical block. The screen saver file can be uploaded to the network end according to the pre-divided first logical blocks.
[0134] S463: Divide the screen saver file stored in the local target folder into a plurality of second logic blocks according to the preset rule;
[0135] The division method of the local screen saver files is the same as the division method of the screen saver files to be downloaded.
[0136] S464: Calculate the hash value of each first logic block;
[0137] S465: Calculate the hash value of each second logic block;
[0138] The aforementioned method for calculating the hash value of a file may adopt existing technology and is not limited here.
[0139] S466: Compare the hash value of each first logic block with the hash value of each second logic block;
[0140] S467: Filter out the first logic blocks having hash values different from those of the second logic blocks from the screen saver file to be downloaded for download;
[0141] This step compares the hash values of each first logic block with the hash values of each second logic block. If the hash value of the first logic block is the same as the hash value of some second logic blocks, it indicates that the screen saver file stored in the local target folder has the same content as the screen saver file to be downloaded, that is, the first logic block with the same hash value and the second logic block have the same content. When downloading, only the first logic block with the same content as the local screen saver in the screen saver to be updated is downloaded.
[0142] In order to enhance the user experience, customers are allowed to personalize the screen saver's running effects. For this purpose, the screen saver file installation and running effects can be processed to obtain the running effects set by the user, such as adjusting the transparency of the screen saver, changing the size of the screen saver icon, rotating and scaling the screen saver icon, and making the screen saver image move along a predetermined trajectory.
[0143] If the processing is performed according to the running results after all the first logic blocks are downloaded, the user's waiting time will be prolonged. In this regard, the method further includes:
[0144] S4671: Determine the downloading order of the first logical block to be downloaded according to the execution effect of the screen saver file;
[0145] In this step, the first logic block that needs to be downloaded before being processed according to the effect is placed in front of the download sequence.
[0146] S4672: Download the first logic block in sequence according to the downloading order, and process the reserved second logic block and the downloaded first logic block according to the execution effect of the screen saver file.
[0147] This step can be performed while downloading so as to process the downloaded logic blocks, thereby eliminating the need to wait until all first logic blocks are downloaded before processing.
[0148] S468: Filter out the second logic block having the same hash value as the first logic block from the screen saver file stored in the local target folder and retain it, and delete the remaining logic blocks;
[0149] In this step, the same part of the screen saver file stored in the local target folder as the screen saver file to be updated is retained, and the different part is deleted.
[0150] S469: Merge the downloaded first logic block and the retained second logic block into a complete screen saver file and save the file in a local target folder.
[0151] This step completes the update of the screen saver file by merging the downloaded screen saver with the retained screen saver. By adopting the solution of this embodiment, only the changed part of the screen saver file can be updated to save bandwidth and storage resources, thus greatly reducing resource consumption during the screen saver update process, and is particularly suitable for the update of large screen saver files, avoiding the problems of data redundancy and excessive update time caused by overall replacement.
[0152] Example 2
[0153] See also Fig. 9 This embodiment provides a screen saver updating device, the device comprising:
[0154] A screen saver information data acquisition module, the screen saver information acquisition module is used to acquire information data of the screen saver to be updated from the background, the information data includes download address data of the screen saver and location data of the screen saver;
[0155] A screen saver information data reading module, the screen saver information data reading module is used to read the information data of the screen saver that has been stored locally from a target file stored locally;
[0156] A target file processing module, the target file processing module is used to process the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file;
[0157] The screen saver file operation module is used to operate the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated.
[0158] The target file processing module also includes:
[0159] An information data judgment submodule, wherein the information data judgment submodule is used to judge whether the information data read from the target file is empty;
[0160] An information data storage submodule, the information data storage submodule is used to store the information data of the screen saver to be updated into a target file if the file is empty;
[0161] The information data operation submodule is used to operate the information data in the target file according to the information data read from the target file and the information data obtained from the background if it is not empty.
[0162] Example 3
[0163] In addition, combined Fig.10 The screen saver dynamic updating method of the aforementioned embodiment of the present invention can be implemented by the screen saver updating device of this embodiment. Fig.10A schematic diagram of the hardware structure of a screen saver updating device provided in an embodiment of the present invention is shown.
[0164] The screen saver updating device of this embodiment may include a processor 401 and a memory 402 storing computer program instructions.
[0165] Specifically, the processor 401 may include a central processing unit 403 (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0166] Memory 402 may include a large capacity memory for data or instructions. For example, but not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside a data processing device. In a specific embodiment, memory 402 is a non-volatile solid-state memory. In a specific embodiment, memory 402 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0167] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the data addressing method of any one of the screen saver dynamic updating methods in the above embodiments.
[0168] In one example, the screen saver updating device of this embodiment may further include a communication interface 403 and a bus 410. Figure 6 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0169] The communication interface 403 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0170] Bus 410 includes hardware, software or both. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0171] Example 4
[0172] In addition, in combination with the screen saver dynamic updating method in the above embodiment, the embodiment of the present invention can provide a computer readable storage medium for implementation. The computer readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the screen saver dynamic updating methods in the above embodiment is implemented.
[0173] The above is a detailed introduction to the screen saver dynamic updating method, device, equipment and storage medium provided by the embodiments of the present invention.
[0174] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0175] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0176] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0177] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A screen saver dynamic update method, characterized in that: The method comprises the following steps: Get the information data of the screen saver to be updated from the background; Read the information data of the screen saver which has been saved locally from the target file stored locally; Processing the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file; The screen saver file stored locally is updated according to the processed target file and the information data of the screen saver to be updated; The information data includes download address data of the screen saver and location data of the screen saver.
2. The screen saver dynamic updating method according to claim 1, characterized in that: The step of processing the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file also includes: Determine whether the information data read from the target file is empty; If it is empty, the information data of the screen saver to be updated will be stored in the target file; If it is not empty, the information data in the target file is operated according to the information data read from the target file and the information data obtained from the background.
3. The screen saver dynamic updating method according to claim 2, characterized in that: If the information data is not empty, operating the information data in the target file according to the information data read from the target file and the information data obtained from the background also includes: Acquire the data length of the information data stored in the target file as the first data length; Acquire the data length of the information data of the screen saver to be updated obtained from the background as the second data length; Determine whether the first data length and the second data length are the same; If the lengths are the same, the information data currently stored in the target file remains unchanged; If the lengths are different, the information data stored in the target file is compared with the information data of the screen saver to be updated, and the information data in the target file is operated according to the comparison result.
4. The screen saver dynamic updating method according to claim 3, characterized in that: If the lengths are different, comparing the information data stored in the target file with the information data of the screen saver to be updated, and operating the information data in the target file according to the comparison result also includes: Compare the information data saved in the target file and the information data obtained from the background to see if they are exactly the same; If yes, keep the information data in the target file; If otherwise, the information data stored in the target file is compared with the position data and non-position data in the information data of the screen saver to be updated; The information data in the target file is operated based on the comparison results of the position data and the non-position data.
5. The screen saver dynamic updating method according to claim 4, characterized in that: The operation on the information data in the target file according to the comparison result of the position data and the non-position data also includes: If the non-position data is the same and the position data is different, the information data in the target file is retained; If the non-position data are different, the information data currently stored in the target file is replaced by the information data from the screen saver to be updated.
6. The screen saver dynamic updating method according to any one of claims 1 to 4, characterized in that: The updating of the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated also includes: Obtain the download address, file name and MD5 value of the screen saver to be downloaded according to the information data in the target file; Determine whether the file name of the screen saver to be downloaded is the same as the file name of the screen saver stored in the local target folder; If the file names are not the same, then download the screen saver file from the background according to the download address; If the file names are the same, the MD5 value of the screen saver to be downloaded is compared with the MD5 value of the screen saver stored in the local target folder; If the MD5 value of the screen saver to be downloaded is the same as the MD5 value of the screen saver stored in the local target folder, the screen saver file is not downloaded from the background and the screen saver file stored in the local target folder is retained; If the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, the screen saver file is downloaded from the background according to the download address and the screen saver file stored in the local target folder is replaced with the downloaded screen saver file.
7. The screen saver dynamic updating method according to any one of claims 1 to 6, characterized in that: The method further comprises: Get the user's change information on the location of the screen saver stored in the local target folder; The position data in the target file is modified according to the position change information.
8. The screen saver dynamic updating method according to any one of claims 1 to 6, characterized in that: If the MD5 value of the screen saver to be downloaded is different from the MD5 value of the screen saver stored in the local target folder, then downloading the screen saver file from the background according to the download address and replacing the screen saver file stored in the local target folder with the downloaded screen saver file also includes: Obtaining preset rules for dividing screen saver files; Dividing the screen saver file to be downloaded into a plurality of first logic blocks according to a preset rule; Dividing the screen saver files stored in the local target folder into a plurality of second logic blocks according to the preset rule; Calculating hash values of each first logic block; Calculating hash values of each second logic block; comparing the hash value of each first logic block with the hash value of each second logic block; Filtering out first logic blocks having hash values different from those of the second logic blocks from the screen saver file to be downloaded for downloading; Filter out the second logic block having the same hash value as the first logic block from the screen saver file stored in the local target folder, and retain it, and delete the remaining logic blocks; The downloaded first logic block and the retained second logic block are combined into a complete screen saver file and saved in a local target folder.
9. A screen saver dynamic updating device, characterized in that: The device comprises: A screen saver information data acquisition module, the screen saver information acquisition module is used to acquire information data of the screen saver to be updated from the background, the information data includes download address data of the screen saver and location data of the screen saver; A screen saver information data reading module, the screen saver information data reading module is used to read the information data of the screen saver that has been stored locally from a target file stored locally; A target file processing module, the target file processing module is used to process the target file according to the information data of the screen saver to be updated and the information data of the screen saver stored in the target file; The screen saver file operation module is used to operate the screen saver file stored locally according to the processed target file and the information data of the screen saver to be updated.
10. A display device, characterized in that include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 7.