A mirror version updating method, device, electronic device and storage medium

Connect the terminal to be updated and the updated terminal through the version information server, generate the mirror difference file and perform incremental updates, solving the problem of inconsistency in versions in the joint development mode, and improving the development efficiency and accuracy of version updates.

CN115857990BActive Publication Date: 2025-06-06INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211595450.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-06-06
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

In the joint development mode, it is difficult for the version management method to achieve the consistency of the version environment of the two devices, resulting in hindering the development progress and inefficient maintenance.

Method used

Connect the terminal to be updated and the updated terminal through the version information server, receive version update requests, obtain updated version information and full version information, generate a mirrored difference file, and use the difference file for incremental update.

Benefits of technology

It achieves consistency of the version information of the terminal equipment between the two parties under the joint development mode, improves the accuracy and timeliness of version update synchronization, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115857990B_ABST
    Figure CN115857990B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a mirror version update method, device, electronic device and storage medium. The mirror version update method includes: receiving a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; obtaining the updated version information based on the version update request; obtaining the full version information; comparing the updated version information with the full version information to generate a mirror difference file; and using the mirror difference file for incremental update. The embodiments of the present invention can ensure that the version information of the terminal devices of both parties is consistent during the development process of the joint development mode; improve the accuracy and timeliness of version update synchronization, and improve development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network equipment development, and in particular to a mirror version updating method and a mirror version updating device, an electronic device and a computer-readable storage medium. Background Art

[0002] With the explosive development of Internet technology, the Internet has an increasingly strong demand for customized servers, switches and other equipment, which has led to the emergence of the JDM (Join Design Manufacture) model, in which customers are involved in joint development from the design and development process of the product.

[0003] For traditional products, the process goes from planning and development to realization, and then delivery to customers after mass production. However, in the JDM model, R&D is closely connected from the first day, and close development links need to be established, with customers deeply involved in the product development and delivery process.

[0004] During the development process, suppliers and customers each provide the corresponding development parts, and continuous iteration is required during the development process. Since some modules cannot provide source code, communication and confirmation of version updates between the two parties becomes a technical challenge. Often, due to inconsistent version baselines, the development progress is hindered or the maintenance efficiency is low. At this time, version confirmation between the two parties becomes a technical problem that needs to be solved.

[0005] The current version management method under the joint development model, faced with a wide variety of firmware versions and related files, often relies on manual online or offline communication to confirm the consistency of the version environment of each device, and complete the transmission of the updated version through communication tools or emails. However, under manual communication, the efficiency of errors is relatively high. Often due to untimely communication or communication errors, the version updates of both parties are inconsistent, the problem location in the development process is hindered, and the development efficiency is affected; the existing automated version comparison technology solutions can only realize the version confirmation under unilateral development. For the joint development model, there is a lack of information exchange with the other party, and it is impossible to improve the efficiency of confirming the version baseline under the joint development model. Summary of the invention

[0006] In view of the above problems, embodiments of the present invention are proposed to provide an image version updating method and an image version updating device, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0007] In a first aspect of the present invention, an embodiment of the present invention discloses a mirror version update method, which is applied to a terminal to be updated, wherein the terminal to be updated is connected to an updated terminal through a version information server; the terminal to be updated and the updated terminal have the same initial version information; the version information server stores full version information; the method comprises:

[0008] In the process of joint development with the updated terminal based on the initial version information, receiving a version update request sent by the version information server; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal;

[0009] Acquire the updated version information based on the version update request;

[0010] Obtaining the full version information;

[0011] Compare the updated version information with the full version information to generate an image difference file;

[0012] The image difference file is used to perform incremental update.

[0013] Optionally, the method further comprises:

[0014] After the incremental update is completed, the version update information is generated;

[0015] The full version information is updated using the version update information.

[0016] Optionally, the version update request includes a version identifier, and the version identifier is associated with the updated version information; and the step of acquiring the updated version information based on the version update request includes:

[0017] Determining the updated version information from the version information server based on the version identifier;

[0018] The updated version information is obtained.

[0019] Optionally, the step of comparing the updated version information with the full version information to generate an image difference file includes:

[0020] Determining whether the full version information includes the updated version information;

[0021] When the full version information does not include the updated version information, it is determined that the difference information between the updated version information and the full version information is the mirror difference file.

[0022] Optionally, the full version information includes multiple sub-version information, and the step of determining whether the full version information includes the updated version information includes:

[0023] Comparing the updated version information with the sub-version information one by one;

[0024] When the updated version information is the same as any of the sub-version information, determining that the full version information includes the updated version information;

[0025] When the updated version information is different from all the sub-version information, it is determined that the full version information does not include the updated version information.

[0026] Optionally, the method further comprises:

[0027] When the full version information includes the updated version information, it is determined that the image difference file is empty.

[0028] In a second aspect of the present invention, an embodiment of the present invention further discloses a mirror version update method, which is applied to an updated terminal, wherein the updated terminal is connected to a terminal to be updated through a version information server; the updated terminal and the terminal to be updated have the same initial version information; the version information server stores full version information; the method comprises:

[0029] In a joint development process with the terminal to be updated based on the initial version information, generating updated version information;

[0030] The updated version information is published to the version information server so that the version information server generates a version update request; the terminal to be updated is used to receive the version update request sent by the version information server, obtain the updated version information based on the version update request, obtain the full version information, compare the updated version information with the full version information, generate an image difference file, and use the image difference file for incremental update.

[0031] In a third aspect of the present invention, an embodiment of the present invention further discloses a mirror version update device, which is applied to a terminal to be updated, wherein the terminal to be updated is connected to an updated terminal through a version information server; the terminal to be updated and the updated terminal have the same initial version information; the version information server stores full version information; the device comprises:

[0032] A receiving module, configured to receive a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal;

[0033] A first acquisition module, configured to acquire the updated version information based on the version update request;

[0034] A second acquisition module is used to acquire the full version information;

[0035] A comparison module, used to compare the updated version information with the full version information and generate an image difference file;

[0036] The first update module is used to perform incremental update using the image difference file.

[0037] In the fourth aspect of the present invention, an embodiment of the present invention further discloses an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the image version update method as described above when executed by the processor.

[0038] In a fifth aspect of the present invention, an embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the image version update method as described above are implemented.

[0039] The embodiments of the present invention include the following advantages:

[0040] The embodiment of the present invention receives a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; obtains the updated version information based on the version update request; obtains the full version information; compares the updated version information with the full version information to generate a mirror difference file; and uses the mirror difference file for incremental update. When the updated terminal issues an update identifier, the terminal to be updated promptly obtains the file through the version information server for update, so that the two parties of development can effectively complete information exchange, promptly and accurately confirm the version environment baselines of both parties; ensure that the version information of the terminal devices of both parties is consistent during the development process of the joint development mode; improve the accuracy and timeliness of version update synchronization, and improve development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of the steps of an embodiment of a mirror version update method of the present invention;

[0042] Figure 2 is a flowchart of another embodiment of a mirror version update method of the present invention;

[0043] Figure 3 is a flowchart of steps of another embodiment of a mirror version update method of the present invention;

[0044] Figure 4 It is a schematic diagram of the steps of an example of a mirror version update method of the present invention;

[0045] Figure 5 It is a structural block diagram of an embodiment of a mirror version updating device of the present invention;

[0046] Figure 6 It is a structural block diagram of another embodiment of the image version updating device of the present invention. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Reference Figure 1 , shows a step flow chart of an embodiment of an image version update method of the present invention, the image version update method is applied to a terminal to be updated, the terminal to be updated is connected to an updated terminal through a version information server; the terminal to be updated and the updated terminal have the same initial version information; the version information server stores full version information.

[0049] It should be noted that, in the embodiment of the present invention, the terminal to be updated is a terminal device that needs to update its own firmware version. The updated terminal is a terminal device that has developed a new firmware version. The version information server is connected to both the updated terminal and the terminal to be updated to interact with the updated terminal and the terminal to be updated respectively. The version information server stores all version information in the updated terminal and the terminal to be updated, that is, it stores the full version information. The full version information can be stored in the version information library, and the full version information newly added during each update is stored in the version information library. Each terminal device can upload basic version information including the image version number, the MD5 value of the version file, the version development compilation timestamp, the version upload timestamp, and the firmware image file to build a version information library. Among them, for the updated terminal and the terminal to be updated are the same type of terminal devices, such as servers, switches, etc.; the embodiment of the present invention does not limit the type of terminal device.

[0050] The image version update method may specifically include the following steps:

[0051] Step 101, receiving a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal;

[0052] When the updated terminal develops a new version, it will generate updated version information with the new version of the content file. The updated terminal will publish the generated updated version information to the version information server. The version information server receives the updated version information and stores it for subsequent acquisition by the terminal to be updated. When the version information server receives the updated version information, it will generate a version update request, which is used to indicate that the terminal to be updated has updated version information, and the terminal to be updated needs to update its own version information to achieve the same version as the updated terminal.

[0053] During the joint development process with the updated terminal based on the initial version information, the terminal to be updated monitors the version information server through interaction with the version information server and receives the version update request sent by the version information server to start the version update.

[0054] Step 102: acquiring the updated version information based on the version update request;

[0055] After receiving the version update request, the version update information is obtained from the version information server based on the information carried in the version update request.

[0056] Step 103, obtaining the full version information;

[0057] When obtaining version update information, you can also obtain full version information to determine the updated content.

[0058] Step 104, comparing the updated version information with the full version information to generate an image difference file;

[0059] After obtaining the updated version information and the full version information, the updated version information and the full version information may be compared to determine the updated portion of the updated version information relative to the full version information, and an image difference file may be generated based on the updated portion.

[0060] Step 105: perform incremental update using the image difference file.

[0061] After obtaining the mirror difference file, the updated part is updated using the mirror difference file, and the original information is kept for the part that has not been updated, thereby realizing incremental update. By using the mirror difference file for incremental update, the updated part is updated to improve the efficiency of the update.

[0062] The embodiment of the present invention receives a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; obtains the updated version information based on the version update request; obtains the full version information; compares the updated version information with the full version information to generate a mirror difference file; and uses the mirror difference file for incremental update. When the updated terminal issues an update identifier, the terminal to be updated promptly obtains the file through the version information server for update, so that the two parties of development can effectively complete information exchange, promptly and accurately confirm the version environment baselines of both parties; ensure that the version information of the terminal devices of both parties is consistent during the development process of the joint development mode; improve the accuracy and timeliness of version update synchronization, and improve development efficiency.

[0063] Reference Figure 2 , shows a step flow chart of another mirror version update method embodiment of the present invention, the mirror version update method is applied to a terminal to be updated, the terminal to be updated is connected to an updated terminal through a version information server; the terminal to be updated and the updated terminal have the same initial version information; the version information server stores full version information.

[0064] In the embodiment of the present invention, the application and the terminal to be updated are terminal devices that need to update their own firmware versions. The updated terminal is a terminal device with a new firmware version developed. Both the terminal to be updated and the updated terminal are connected to the version information server and can independently interact with the version information server for data. The version information server stores the full version information released during the entire development process.

[0065] The image version update method may specifically include the following steps:

[0066] Step 201, during the joint development process with the updated terminal based on the initial version information, receiving a version update request sent by the version information server; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; the version update request includes a version identifier, and the version identifier is associated with the updated version information;

[0067] When the terminal to be updated monitors the version information server for a version update request during the development process based on the initial version information and the updated terminal, it receives the version update request sent by the version information server. The version update request is generated by the version information server when it receives the updated version information issued by the updated terminal.

[0068] The version update request includes a version identifier, which is identification information between updated version information, and the updated version information is associated with the version identifier. Each version has a unique version identifier, which can be a combination of multiple different characters or a single character, which is not limited in the embodiment of the present invention.

[0069] Step 202: acquiring the updated version information based on the version update request;

[0070] In the embodiment of the present invention, after the version update request is obtained, the update version information is obtained based on the version identifier in the version update request.

[0071] Specifically, the step of obtaining the updated version information based on the version update request may include the following sub-steps:

[0072] Sub-step S2021, determining the updated version information from the version information server based on the version identifier;

[0073] In actual applications, the updated version information is stored in a version information server. To this end, the updated version information can be determined from the version information stored in the version information server based on the version identifier and according to the association between the version identifier and the updated version information.

[0074] Sub-step S2022, obtaining the updated version information.

[0075] After the updated version information is determined, the updated version information is obtained and the terminal to be updated downloads it to its own storage space.

[0076] Step 203, obtaining the full version information; the full version information includes multiple sub-version information;

[0077] When obtaining updated version information, you can also obtain full version information of all past updates from the version information server, where the full version information includes sub-version information of multiple updates.

[0078] Step 204, comparing the updated version information with the full version information to generate an image difference file;

[0079] Compare the updated version information with the full version information, identify the differences between the two, and generate an image difference file to facilitate subsequent updates.

[0080] In an optional embodiment of the present invention, the step of comparing the updated version information with the full version information to generate an image difference file may include the following sub-steps:

[0081] Sub-step S2041, determining whether the full version information includes the updated version information;

[0082] In an embodiment of the present invention, the updated version information and the full version can be compared to determine whether the full version information contains the updated version information. If the full version information contains the updated version information, it means that the updated version information has not been substantially updated; if the full version information does not contain the updated version information, it means that the updated version information has an updated part.

[0083] Specifically, the step of determining whether the full version information includes the updated version information may include the following sub-steps:

[0084] Sub-step S20411, comparing the update version information with the sub-version information one by one;

[0085] In actual applications, since the updated version information displays one version, and the full version information has all the sub-version information corresponding to the past updates, the updated version information can be compared with all the sub-version information one by one. The comparison method is determined by those skilled in the art according to actual requirements, and the embodiments of the present invention are not limited here.

[0086] Sub-step S20412, when the updated version information is the same as any of the sub-version information, determining that the full version information includes the updated version information;

[0087] When the full version information is the same as any sub-version information, that is, the updated version information already exists, it can be determined that the full version information contains the updated version information.

[0088] Sub-step S20413: When the updated version information is different from all the sub-version information, determining that the full version information does not include the updated version information.

[0089] When the full version information is different from all the sub-version information, it can be determined that the full version information does not include the updated version information.

[0090] Sub-step S2042: When the full version information does not include the updated version information, determining that the difference information between the updated version information and the full version information is the image difference file.

[0091] When the full version information does not include the updated version information, the difference information between the updated version information and the full version information is determined from the updated version information, and the difference information is determined as the mirror difference file.

[0092] In an optional embodiment of the present invention, the method further includes:

[0093] Step S1: When the full version information includes the updated version information, it is determined that the image difference file is empty.

[0094] In addition, in actual applications, there may be a situation where the updated version information is consistent with a sub-version information in the full version information. At this time, there is no actual updated version information, and it can be determined that the image difference file is empty. When the subsequent update is performed, when the empty file is identified, the version update process is directly terminated.

[0095] Step 205, using the image difference file to perform incremental update;

[0096] After obtaining the image difference file, install the image difference file based on the original version and update it in an incremental update manner to improve update efficiency.

[0097] Step 206, after the incremental update is completed, generate version update information;

[0098] After the incremental update is completed, the terminal to be updated determines the version update information with the updated version information, and the version update information is used to indicate that the version information server has installed new version update information, and the updated content can be used to build a full version information library.

[0099] Step 207: Use the version update information to update the full version information.

[0100] The full version information is updated using the version update information, and the full version information is fed back to the version information server. The version information server can store the updated full version information to update the full version information library.

[0101] The embodiment of the present invention receives a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; based on the version update request, the updated version information is obtained; the full version information is obtained; the updated version information is compared with the full version information to generate an image difference file; the image difference file is used for incremental update; after the incremental update is completed, the version update information is generated; and the full version information is updated using the version update information. When the updated terminal issues an update identifier, the terminal to be updated promptly obtains the file through the version information server for update, so that the two parties of the development can effectively complete the information interaction, promptly and accurately confirm the version environment baseline of both parties; ensure that the version information of the terminal devices of both parties is consistent during the development process of the joint development mode; improve the accuracy and timeliness of version update synchronization, and improve development efficiency. When the dependent version of one party needs to be updated, the file is uploaded in time to initiate a request, and the version information can be quickly updated during the development process to avoid the occurrence of version errors.

[0102] Reference Figure 3 , shows a flowchart of another embodiment of an image version update method of the present invention, the image version update method is applied to an updated terminal, the updated terminal is connected to the terminal to be updated through a version information server; the updated terminal and the terminal to be updated have the same initial version information; the version information server stores the full version information. The image version update method may specifically include the following steps:

[0103] Step 301, generating updated version information in a joint development process with the terminal to be updated based on the initial version information;

[0104] When a new version is developed during the joint development process between the updated terminal and the terminal to be updated, an updated version information of the content file with the new version is generated. The updated version information includes but is not limited to the basic version information of the firmware and software package and the updated version information of the firmware image file, wherein the basic version information includes the image version number, the MD5 (Message-Digest Algorithm 5) value of the version file, the version development compilation timestamp, the version upload timestamp, etc. Those skilled in the art can determine it according to actual needs.

[0105] Step 302: publish the updated version information to the version information server so that the version information server generates a version update request; the terminal to be updated is used to receive the version update request sent by the version information server, obtain the updated version information based on the version update request, obtain the full version information, compare the updated version information with the full version information, generate an image difference file, and use the image difference file for incremental update.

[0106] The updated terminal will publish the generated updated version information to the version information server. The version information server receives the updated version information and stores it for subsequent acquisition by the terminal to be updated. When the version information server receives the updated version information, it will generate a version update request, which is used to indicate that there is updated updated version information for the terminal to be updated, and the terminal to be updated needs to update its own version information to achieve the same version as the updated terminal. When developing, the terminal to be updated will receive the version update request sent by the version information server, obtain the updated version information based on the version update request, obtain the full version information, compare the updated version information with the full version information, generate a mirror difference file, and use the mirror difference file for incremental update; so that the terminal to be updated can actively discover the updated version for version update during development; determine that the updated version information of the terminal to be updated is consistent with the version information of the updated terminal after the update, and improve development efficiency.

[0107] In an optional embodiment of the present invention, the terminal to be updated is further used to generate version update information after the incremental update is completed; and use the version update information to update the full version information.

[0108] In an optional embodiment of the present invention, the version update request includes a version identifier, and the version identifier is associated with the updated version information; the terminal to be updated is used to determine the updated version information from the version information server based on the version identifier; and obtain the updated version information.

[0109] In an optional embodiment of the present invention, the terminal to be updated is used to determine whether the full version information includes the updated version information; when the full version information does not include the updated version information, the difference information between the updated version information and the full version information is determined to be the mirror difference file.

[0110] In an optional embodiment of the present invention, the full version information includes multiple sub-version information, and the terminal to be updated is used to compare the update version information with the sub-version information one by one; when the update version information is the same as any of the sub-version information, it is determined that the full version information contains the update version information; when the update version information is different from all the sub-version information, it is determined that the full version information does not contain the update version information.

[0111] In an optional embodiment of the present invention, the terminal to be updated is further configured to determine that the image difference file is empty when the full version information includes the updated version information.

[0112] The process of performing version update on the terminal to be updated may refer to the above embodiment, and will not be described in detail here.

[0113] In the embodiment of the present invention, during the joint development process of the terminal to be updated and the updated terminal, the updated terminal can upload the updated version information to the version information server, and actively request the terminal to be updated to update the version. The terminal to be updated iteratively repairs the version, thereby achieving fast and accurate version iteration and improving update efficiency.

[0114] In order to enable those skilled in the art to better understand the embodiments of the present invention, the embodiments of the present invention are described below by using an example:

[0115] Reference Figure 4 , showing a schematic diagram of steps of an example of a mirror version update method of the present invention;

[0116] Two parties (an updated terminal and a terminal to be updated) are jointly developing the same device. Each party is responsible for a certain part of the terminal's firmware version. Each party provides basic version information of the firmware and software package and updated version information such as firmware image files, and uploads them to the database in the version information server. The basic version information includes the image version number, the MD5 value of the version file, the version development compilation timestamp, the version upload timestamp, etc. The information uploaded by both parties updates the full version information in the version information server, and the updated full version information and the previous full version information constitute the full switch version information library.

[0117] When conducting the initial version test, the developer Party A and Party B jointly obtain the full version information from the server and install it in the developed product for debugging. Party A and Party B can both be updated terminals or terminals to be updated. When one party is an updated terminal, the other party is a terminal to be updated.

[0118] When the version iteration is performed in the subsequent development and maintenance process, it includes active update version and passive update version. When either party actively updates the version, the version information and version file are uploaded to the server synchronously, and the firmware update completion mark is pushed. At this time, during the development process, Party B maintains an independent process to monitor the version file and version information in the server in real time. When Party A pushes the firmware update completion mark as in step 3, it will trigger Party B's version management process in real time to inform the development and maintenance personnel that the version has been updated. After that, the process will connect to the target terminal device through the ssh (Secure Shell, Secure Shell Protocol) protocol, and obtain the full firmware version information according to the method of obtaining version information for each firmware version, including each firmware version number, version MD5 SUM (sum) value, and compile timestamp and other information, and compare them one by one with the information in the version information database. If it is only a certain file, there is no version number information, and the version number information is NA (empty), it can be compared through the compile timestamp and the MD5 SUM value of the version file, and finally generate a comparison result. If it is inconsistent, the monitoring module automatically pulls the difference version file (mirror difference file) from the database and performs incremental update according to the corresponding update method.

[0119] When either party finds a problem with the version it depends on during the development process, and needs to update the version information that the other party depends on, it uploads the corresponding version request update identification. The other party's monitoring module receives the request update identification information, prompts Party B's developer to passively update the version, and promptly uploads the passively updated version and its version information to the version database for the other party to monitor, compare and update, to ensure that the version information of both parties is consistent during each development process.

[0120] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0121] Reference Figure 5 , shows a structural block diagram of an embodiment of an image version update device of the present invention, the image version update device is applied to a terminal to be updated, the terminal to be updated is connected to an updated terminal through a version information server; the terminal to be updated and the updated terminal have the same initial version information; the version information server stores full version information; the image version update device may specifically include the following modules:

[0122] The receiving module 501 is used to receive a version update request sent by the version information server during the joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal;

[0123] A first acquisition module 502, configured to acquire the updated version information based on the version update request;

[0124] The second acquisition module 503 is used to acquire the full version information;

[0125] A comparison module 504 is used to compare the updated version information with the full version information to generate an image difference file;

[0126] The first update module 505 is used to perform incremental update using the image difference file.

[0127] In an optional embodiment of the present invention, the device further comprises:

[0128] A version update information generation module, used to generate version update information after the incremental update is completed;

[0129] The second updating module is used to update the full version information using the version update information.

[0130] In an optional embodiment of the present invention, the version update request includes a version identifier, and the version identifier is associated with the update version information; the first acquisition module 502 includes:

[0131] An updated version information determination submodule, configured to determine the updated version information from the version information server based on the version identifier;

[0132] The update version information acquisition submodule is used to acquire the update version information.

[0133] In an optional embodiment of the present invention, the comparison module 504 includes:

[0134] A comparison submodule, used to determine whether the full version information includes the updated version information;

[0135] The image difference file determination submodule is used to determine, when the full version information does not include the updated version information, the difference information between the updated version information and the full version information as the image difference file.

[0136] In an optional embodiment of the present invention, the full version information includes multiple sub-version information, and the comparison submodule includes:

[0137] A comparing unit, used to compare the updated version information with the sub-version information one by one;

[0138] A result output first unit is used to determine that the full version information includes the updated version information when the updated version information is the same as any of the sub-version information;

[0139] The result output second unit is used to determine that the full version information does not include the updated version information when the updated version information is different from all the sub-version information.

[0140] In an optional embodiment of the present invention, the method further includes:

[0141] An empty data module is used to determine that the image difference file is empty when the full version information includes the updated version information.

[0142] Reference Figure 6 , shows a structural block diagram of another embodiment of an image version update device of the present invention, the image version update device is applied to an updated terminal, the updated terminal is connected to a terminal to be updated through a version information server; the updated terminal and the terminal to be updated have the same initial version information; the version information server stores full version information; the image version update device may specifically include the following modules:

[0143] A generating module 601, configured to generate updated version information during a joint development process with the terminal to be updated based on the initial version information;

[0144] The publishing module 602 is used to publish the updated version information to the version information server so that the version information server generates a version update request; the terminal to be updated is used to receive the version update request sent by the version information server, obtain the updated version information based on the version update request, obtain the full version information, compare the updated version information with the full version information, generate an image difference file, and use the image difference file for incremental update.

[0145] In an optional embodiment of the present invention, the terminal to be updated is further used to generate version update information after the incremental update is completed; and use the version update information to update the full version information.

[0146] In an optional embodiment of the present invention, the version update request includes a version identifier, and the version identifier is associated with the updated version information; the terminal to be updated is used to determine the updated version information from the version information server based on the version identifier; and obtain the updated version information.

[0147] In an optional embodiment of the present invention, the terminal to be updated is used to determine whether the full version information includes the updated version information; when the full version information does not include the updated version information, the difference information between the updated version information and the full version information is determined to be the mirror difference file.

[0148] In an optional embodiment of the present invention, the full version information includes multiple sub-version information, and the terminal to be updated is used to compare the update version information with the sub-version information one by one; when the update version information is the same as any of the sub-version information, it is determined that the full version information contains the update version information; when the update version information is different from all the sub-version information, it is determined that the full version information does not contain the update version information.

[0149] In an optional embodiment of the present invention, the terminal to be updated is further configured to determine that the image difference file is empty when the full version information includes the updated version information.

[0150] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0151] An embodiment of the present invention further provides an electronic device, including:

[0152] A processor and a storage medium, wherein the storage medium stores a computer program executable by the processor, and when the electronic device is running, the processor executes the computer program to perform the image version update method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.

[0153] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to execute the image version update method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.

[0154] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0155] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0156] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0157] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0158] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0159] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0160] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0161] The above is a detailed introduction to an image version update method, device, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A mirror version update method, It is characterized in that Applied to a terminal to be updated, the terminal to be updated is connected to an updated terminal via a version information server; The terminal to be updated and the updated terminal have the same initial version information; The version information server stores full version information; the method comprises: In the process of joint development with the updated terminal based on the initial version information, receiving a version update request sent by the version information server; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; the updated version information is generated by the updated terminal in the process of joint development with the terminal to be updated based on the initial version information; Acquire the updated version information based on the version update request; Obtaining the full version information; Compare the updated version information with the full version information to generate an image difference file; The image difference file is used to perform incremental update.

2. The method according to claim 1, It is characterized in that The method further comprises: After the incremental update is completed, the version update information is generated; The full version information is updated using the version update information.

3. The method according to claim 1, It is characterized in that The version update request includes a version identifier, and the version identifier is associated with the updated version information; and the step of obtaining the updated version information based on the version update request includes: Determining the updated version information from the version information server based on the version identifier; The updated version information is obtained.

4. The method according to claim 1, It is characterized in that The step of comparing the updated version information with the full version information to generate an image difference file includes: Determining whether the full version information includes the updated version information; When the full version information does not include the updated version information, it is determined that the difference information between the updated version information and the full version information is the mirror difference file.

5. The method according to claim 4, It is characterized in that The full version information includes a plurality of sub-version information, and the step of determining whether the full version information includes the updated version information includes: Comparing the updated version information with the sub-version information one by one; When the updated version information is the same as any of the sub-version information, determining that the full version information includes the updated version information; When the updated version information is different from all the sub-version information, it is determined that the full version information does not include the updated version information.

6. The method according to claim 4 or 5, It is characterized in that The method further comprises: When the full version information includes the updated version information, it is determined that the image difference file is empty.

7. A mirror version update method, It is characterized in that Applied to an updated terminal, the updated terminal is connected to a terminal to be updated via a version information server; The updated terminal and the terminal to be updated have the same initial version information; The version information server stores full version information; the method comprises: In a joint development process with the terminal to be updated based on the initial version information, generating updated version information; The updated version information is published to the version information server so that the version information server generates a version update request; the terminal to be updated is used to receive the version update request sent by the version information server, obtain the updated version information based on the version update request, obtain the full version information, compare the updated version information with the full version information, generate an image difference file, and use the image difference file for incremental update.

8. A mirror version update device, It is characterized in that Applied to a terminal to be updated, the terminal to be updated is connected to an updated terminal via a version information server; The terminal to be updated and the updated terminal have the same initial version information; The version information server stores full version information; the device comprises: A receiving module, configured to receive a version update request sent by the version information server during a joint development process with the updated terminal based on the initial version information; the version update request is generated by the version information server when receiving the updated version information released by the updated terminal; the updated version information is generated by the updated terminal during a joint development process with the terminal to be updated based on the initial version information; A first acquisition module, configured to acquire the updated version information based on the version update request; A second acquisition module is used to acquire the full version information; A comparison module, used to compare the updated version information with the full version information and generate an image difference file; The first update module is used to perform incremental update using the image difference file.

9. An electronic device, It is characterized in that The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the image version updating method as claimed in any one of claims 1 to 6 or claim 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image version update method according to any one of claims 1 to 6 or claim 7 are implemented.

Citation Information

Patent Citations

  • Space-saving mirror image version updating management method and device, equipment and medium

    CN111966388A

  • Associated server version application upgrading method and device and electronic equipment

    CN112764792A