Operating system version updating system

By introducing differential detection, differential file generation and differential file transfer modules into the operating system version update system, the problem of low efficiency of operating system version update is solved and efficient operating system version update is achieved.

CN119829092APending Publication Date: 2025-04-15GUANGZHOU KETENG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905813.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The existing technology cannot achieve efficient update of the operating system version and needs to be solved urgently.

Method used

Provides an operating system version update system, including the server and the client. The server includes a difference detection module, a difference file generation module and a difference file transfer module. The system version update module is installed on the client. The difference detection module detects the different content between the operating systems, generates the difference file, and transmits the difference file to the client through the difference file transfer module, and the client updates the operating system version based on the received difference file.

Benefits of technology

By only transmitting the differential content between the operating systems rather than the entire operating system, the amount of data that needs to be transferred during the update process is significantly reduced, and efficient update of the operating system version is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829092A_ABST
    Figure CN119829092A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an operating system version updating system. The system comprises a server side and a client side, the server side comprises a difference detection module, a difference file generation module and a difference file transmission module, a first operating system is installed on the client side, and the client side comprises a system version updating module; wherein the difference detection module is used for detecting difference content between first content and second content aiming at the first content in a first operating system and the second content in a second operating system; the difference file generation module is used for generating a first difference file according to the difference content; the difference file transmission module is used for returning a first difference file in response to a system version updating request initiated by the client to the first operating system; and the system version updating module is used for updating the system version of the first operating system based on the received second difference file. According to the technical scheme, efficient updating of the system version of the operating system can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an operating system version update system. Background Art

[0002] Dianhong IoT operating system is a new generation of industrial IoT operating system for power industry terminals. It is the first time that a set of operating systems covers large and small, different types and brands of power equipment, providing a unified architecture for the intelligence, interconnection and collaboration of different power equipment.

[0003] On this basis, with the rapid development of computer technology and software engineering, the operating system, as the core part of the computer system, its version update is becoming more and more important.

[0004] In the process of implementing the present invention, the inventors found that the prior art has the following technical problems: it is impossible to efficiently update the system version of the operating system, which needs to be solved urgently. Summary of the invention

[0005] The embodiment of the present invention provides an operating system version update system to achieve efficient update of the system version of the operating system.

[0006] According to one aspect of the present invention, there is provided an operating system version update system, comprising: a server and a client, wherein the server comprises a difference detection module, a difference file generation module and a difference file transmission module, a first operating system is installed on the client, and the client comprises a system version update module; wherein,

[0007] A difference detection module, configured to detect a difference between a first content in a first operating system and a second content in a second operating system, wherein the second operating system is obtained by updating the system version of the first operating system;

[0008] A difference file generating module, used for generating a first difference file according to the difference content;

[0009] A difference file transmission module, configured to return a first difference file in response to a system version update request initiated by the client for the first operating system;

[0010] The system version updating module is used to update the system version of the first operating system based on the received second difference file.

[0011] Optionally, the difference detection module includes a difference detection unit; wherein,

[0012] The difference detection unit is used to generate a first hash value for the first content and a second hash value for the second content, and detect the difference between the first content and the second content by comparing the first hash value with the second hash value.

[0013] Optionally, the system version update module includes a verification code generation unit and a system version update unit;

[0014] The difference file generating module is further used to generate a first verification code according to the file content in the first difference file;

[0015] The difference file transmission module is also used to return a first verification code;

[0016] A verification code generating unit, configured to generate a second verification code according to the file content in the second difference file after receiving the second difference file and the first verification code;

[0017] The system version updating unit is used to update the system version of the first operating system based on the second difference file when the second verification code is consistent with the first verification code.

[0018] On this basis, optionally, the system version update module also includes a re-download request unit; wherein,

[0019] The re-download request unit is used to initiate a re-download request to the server for the first difference file, so as to re-download the first difference file to update the system version.

[0020] Optionally, the client also includes a system version rollback module; wherein,

[0021] The system version rollback module is used to perform a rollback operation to restore to the first operating system when a system version update failure is detected.

[0022] On this basis, optionally, the client also includes a rollback result verification module; wherein,

[0023] The rollback result verification module is used to verify the rollback result obtained when the rollback operation is completed to verify whether the rollback result is successful.

[0024] Optionally, the server also includes a consistency test module; wherein,

[0025] A consistency testing module, used for testing the consistency between the second operating system and the first operating system in terms of function and / or behavior when the second operating system is obtained;

[0026] The difference detection module is specifically used to detect the difference between the first content in the first operating system and the second content in the second operating system when the consistency test passes.

[0027] On this basis, optionally, the server also includes a test report transmission module, and the client also includes a visual display module; wherein,

[0028] A test report transmission module is used to generate a test report according to the test results of the consistency test and transmit the test report to the client;

[0029] The visual display module is used to display the received test reports.

[0030] On this basis, optionally, a visual display module is also used to display the system version differences represented by the difference files.

[0031] Based on any of the above operating system version update systems, optionally, the first content may include at least one of a system file, a configuration item, and a database record.

[0032] The operating system version update system described in the embodiment of the present invention may include a server and a client, wherein the server includes a difference detection module, a difference file generation module and a difference file transmission module, a first operating system is installed on the client, and the client may include a system version update module; wherein, the difference detection module detects the difference between the first content and the second content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system; the difference file generation module generates a first difference file according to the difference content; the difference file transmission module returns the first difference file in response to the system version update request initiated by the client for the first operating system; and the system version update module updates the system version of the first operating system based on the received second difference file. Compared with the server transmitting the entire second operating system to the client for system version update, in the above technical solution, the server only transmits the difference content between the new and old operating systems to the client for system version update, thereby greatly reducing the amount of data to be transmitted during the update process and achieving efficient update.

[0033] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0035] Figure 1 is a structural block diagram of an operating system version update system provided according to an embodiment of the present invention;

[0036] Figure 2 is a structural block diagram of another operating system version update system provided according to an embodiment of the present invention;

[0037] Figure 3 is a structural block diagram of another operating system version update system provided according to an embodiment of the present invention;

[0038] Figure 4 It is a structural block diagram of another operating system version updating system provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] Figure 1 1 is a structural block diagram of an operating system version update system provided by an embodiment of the present invention. This embodiment is applicable to the case where the system version of the operating system is updated.

[0042] See also Figure 1 The operating system version update system according to the embodiment of the present invention comprises: a server 10 and a client 20, wherein the server 10 comprises a difference detection module 101, a difference file generation module 102 and a difference file transmission module 103, a first operating system is installed on the client 20, and the client 20 comprises a system version update module 201; wherein,

[0043] The difference detection module 101 is used to detect the difference between the first content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system;

[0044] A difference file generating module 102, used to generate a first difference file according to the difference content;

[0045] The difference file transmission module 103 is used to return a first difference file in response to a system version update request initiated by the client 20 for the first operating system;

[0046] The system version updating module 201 is configured to update the system version of the first operating system based on the received second difference file.

[0047] Among them, the first content can be understood as the content in the first operating system (or called data). In combination with the application scenarios that may be involved in the embodiments of the present invention, the first content can be, for example, at least one of a system file, a configuration item, and a database record. This is related to the actual situation and is not specifically limited here. The second content is the same and will not be repeated here. The difference content can be understood as the content with differences between the first content and the second content. In the embodiments of the present invention, the content can also be called incremental content.

[0048] A first difference file is generated according to the difference content, and the first difference file includes the difference content. In combination with the application scenarios that may be involved in the embodiments of the present invention, optionally, an incremental update algorithm can be used to generate the first difference file, and the first difference file at this time can also be called an incremental file. Further, the first difference file is transmitted to the client via the network. On this basis, optionally, in order to increase the transmission speed of the first difference file, the first difference file can be compressed first, and the compression result can be transmitted to the client.

[0049] On this basis, the client can receive a second difference file. It should be noted that the second difference file may be the same or different from the first difference file transmitted by the server. For example, during the transmission process, if the first difference file is not damaged or tampered with, the two are the same difference files; otherwise, the two are different difference files. Further, the client updates the system version of the currently installed first operating system based on the received second difference file.

[0050] The operating system version update system described in the embodiment of the present invention may include a server and a client, wherein the server includes a difference detection module, a difference file generation module and a difference file transmission module, a first operating system is installed on the client, and the client may include a system version update module; wherein, the difference detection module detects the difference between the first content and the second content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system; the difference file generation module generates a first difference file according to the difference content; the difference file transmission module returns the first difference file in response to the system version update request initiated by the client for the first operating system; and the system version update module updates the system version of the first operating system based on the received second difference file. Compared with the server transmitting the entire second operating system to the client for system version update, in the above technical solution, the server only transmits the difference content between the new and old operating systems to the client for system version update, thereby greatly reducing the amount of data to be transmitted during the update process and achieving efficient update.

[0051] In an optional technical solution, the difference detection module includes a difference detection unit; wherein,

[0052] The difference detection unit is used to generate a first hash value for the first content and a second hash value for the second content, and detect the difference between the first content and the second content by comparing the first hash value with the second hash value.

[0053] The above technical solution takes into account the uniqueness of hash values, and thus achieves rapid and accurate detection of difference content by generating and comparing hash values.

[0054] On this basis, in order to better understand the above technical solution, the following is an exemplary explanation with specific examples. For example, here we take the Dianhong IoT operating system as an example. Assume that the Dianhong operating system is updated from system version 1.0 to system version 2.0. Before the update, the difference detection module is used to generate a unique hash value for each system file, configuration item and even database record in system version 1.0 and system version 2.0. By comparing these hash values, it is possible to quickly identify system files, configuration items and database records that have changed during the system version update process. For example, if the hash value of a system file changes in system version 2.0, it can be marked as an inconsistency and prepared for subsequent processing.

[0055] After identifying the inconsistencies in the system versions, difference files are generated based on them. These difference files only contain the differences between system version 1.0 and system version 2.0. For example, if a system file is modified in system version 2.0, a difference file containing the modified content can be generated. In this way, when the client updates the system version, it only needs to download and apply these difference files, which greatly reduces the amount of data that needs to be transmitted during the update process and improves the update efficiency.

[0056] Figure 2 It is a structural block diagram of another operating system version update system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the system version update module includes a verification code generation unit and a system version update unit; the difference file generation module is also used to generate a first verification code according to the file content in the first difference file; the difference file transmission module is also used to return the first verification code; the verification code generation unit is used to generate a second verification code according to the file content in the second difference file after receiving the second difference file and the first verification code; the system version update unit is used to update the system version of the first operating system based on the second difference file when the second verification code is consistent with the first verification code. Among them, the explanations of the terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.

[0057] For details, see Figure 2 The operating system version update system described in this embodiment includes: a server 10 and a client 20, wherein the server 10 may include a difference detection module 101, a difference file generation module 102 and a difference file transmission module 103, and the client 20 is installed with a first operating system, and the client 20 includes a system version update module 201, and the system version update module 201 includes a verification code generation unit 2011 and a system version update unit 2012; wherein,

[0058] The difference detection module 101 is used to detect the difference between the first content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system;

[0059] The difference file generating module 102 is used to generate a first difference file according to the difference content, and to generate a first verification code according to the file content in the first difference file;

[0060] The difference file transmission module 103 is used to return a first difference file and a first verification code in response to a system version update request initiated by the client 20 for the first operating system;

[0061] The verification code generating unit 211 is used to generate a second verification code according to the file content in the second difference file after receiving the second difference file and the first verification code;

[0062] The system version updating unit 2012 is configured to update the system version of the first operating system based on the second difference file when the second verification code is consistent with the first verification code.

[0063] Among them, when the second verification code is consistent with the first verification code, this indicates that the first difference file has not been damaged or tampered with during the transmission process, that is, the second difference file received by the client is the first difference file transmitted by the server, and the system version can be updated based on the second difference file.

[0064] The technical solution of the embodiment of the present invention greatly improves the reliability and security of system version updates by introducing a verification mechanism, and reduces the risk of system version update failure or operating system failure caused by damage and tampering of difference files.

[0065] In an optional technical solution, the system version update module further includes a re-download request unit; wherein,

[0066] The re-download request unit may be used to initiate a re-download request to the server for the first difference file when the second verification code is inconsistent with the first verification code, so as to re-download the first difference file to update the system version.

[0067] The above technical solution further improves the reliability and security of system version updates by requesting a re-download when there is a problem with the received difference file.

[0068] Figure 3It is a structural block diagram of another operating system version update system provided by an embodiment of the present invention. This embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the client may also include a system version rollback module; wherein the system version rollback module is used to perform a rollback operation to restore to the first operating system when a system version update failure is detected. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0069] For details, see Figure 3 The operating system version update system described in this embodiment includes: a server 10 and a client 20, wherein the server 10 may include a difference detection module 101, a difference file generation module 102 and a difference file transmission module 103, and the client 20 is installed with a first operating system, and the client 20 includes a system version update module 201 and a system version rollback module 202; wherein,

[0070] The difference detection module 101 is used to detect the difference between the first content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system;

[0071] A difference file generating module 102, used to generate a first difference file according to the difference content;

[0072] The difference file transmission module 103 is used to return a first difference file in response to a system version update request initiated by the client 20 for the first operating system;

[0073] A system version update module 201, configured to update the system version of the first operating system based on the received second difference file;

[0074] The system version rollback module 202 is used to perform a rollback operation to restore to the first operating system when a system version update failure is detected.

[0075] In the embodiment of the present invention, optionally, before performing a system version update, a complete backup of the current system version (ie, the first operating system) may be saved, which may be considered as a basis for a rollback operation.

[0076] In the case of detecting that the system version update fails, a rollback operation may be performed, such as deleting the code and configuration of the new system version and restoring the code and configuration of the old system version to restore to the first operating system. In the embodiment of the present invention, optionally, the update failure may be caused by the failure to update the second difference file; or it may be caused by the inability to start the second operating system and / or malfunction after the system version is updated; etc. This is related to the actual situation and is not specifically limited here.

[0077] The technical solution of the embodiment of the present invention, by providing a rollback function, can quickly restore to the old system version when the system version update fails, thereby avoiding the situation where the operating system is unavailable for a long time and requires manual repair, and greatly improving the stability and availability of the operating system.

[0078] In an optional technical solution, the client further includes a rollback result verification module; wherein,

[0079] The rollback result verification module can be used to verify the rollback result obtained when the rollback operation is completed to verify whether the rollback result is successful.

[0080] The above technical solution can effectively ensure the successful execution of the rollback operation by verifying whether the rollback result is successful (such as verifying whether the first operating system can be started normally and / or whether the functions are restored to normal, etc.) after the rollback operation is completed.

[0081] Figure 4 It is a structural block diagram of another operating system version update system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the server may also include a consistency test module; wherein the consistency test module is used to test the consistency between the second operating system and the first operating system in terms of function and / or behavior when the second operating system is obtained; and the difference detection module is specifically used to detect the difference between the first content in the first operating system and the second content in the second operating system when the consistency test passes. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0082] For details, see Figure 4 The operating system version update system described in this embodiment includes: a server 10 and a client 20, wherein the server 10 may include a difference detection module 101, a difference file generation module 102, a difference file transmission module 103 and a consistency test module 104, and the client 20 is installed with a first operating system, and the client 20 includes a system version update module 201; wherein,

[0083] The consistency testing module 104 is used to test the consistency between the second operating system and the first operating system in terms of functions and / or behaviors when the second operating system is obtained, wherein the second operating system is obtained by updating the system version of the first operating system;

[0084] The difference detection module 101 is used for detecting the difference between the first content in the first operating system and the second content in the second operating system when the consistency test passes;

[0085] A difference file generating module 102, used to generate a first difference file according to the difference content;

[0086] The difference file transmission module 103 is used to return a first difference file in response to a system version update request initiated by the client 20 for the first operating system;

[0087] The system version updating module 201 is configured to update the system version of the first operating system based on the received second difference file.

[0088] Among them, the test is whether the various functions and / or behaviors of the updated second operating system meet expectations, that is, whether they are consistent with the corresponding functions and / or behaviors of the first operating system. If so, it means that the new and old system versions are consistent, and steps such as detecting differences can be performed to allow the client to update the system version.

[0089] On this basis, in order to better understand the technical solutions described in the embodiments of the present invention, the following exemplary explanations are given in conjunction with specific examples. For example, here we continue to take the Dianhong IoT operating system as an example. After the system version update is completed, the system version 2.0 needs to be tested for consistency. This testing process is designed to ensure that the system version 2.0 is consistent with the system version 1.0 in terms of function and behavior. In order to achieve this goal, an automated testing framework based on behavior-driven development can be used. Specifically, the automated testing framework contains a large number of test cases and test scripts for testing whether the various functions and / or behaviors of the system version 2.0 meet expectations, that is, whether they are consistent with the system version 1.0. For example, it is possible to test whether the file operations, network communications, and database access functions in the system version 2.0 are running normally, and whether these functions are consistent with the system version 1.0.

[0090] The technical solution of the embodiment of the present invention ensures the consistency between the new and old system versions through consistency testing.

[0091] An optional technical solution, the server also includes a test report transmission module, and the client also includes a visual display module; wherein,

[0092] A test report transmission module is used to generate a test report according to the test results of the consistency test and transmit the test report to the client;

[0093] The visual display module is used to display the received test reports.

[0094] Among them, by presenting the test results to users in the form of test reports, users can intuitively understand the effects and potential problems of system version updates. For example, users can understand the distribution of test results through test reports and judge functions and / or behaviors that may have abnormalities and instabilities.

[0095] The above technical solution realizes the intuitive display of test results.

[0096] On this basis, optionally, the visualization display module is also used to display the system version differences represented by the difference files, thereby realizing the intuitive display of the system version differences. For example, the user can view the system files and configuration items that have changed during the system version update process, as well as the impact of these changes on the operating system, through the comparison chart of the system version differences.

[0097] Optionally, the visualization module may use the D3.js data visualization library for visualization.

[0098] Optionally, the visualization display module can provide real-time update monitoring and notification functions to promptly notify users of update status by monitoring the update status and progress of the operating system. In addition, the visualization display module can also provide historical update records and log query functions to help users better understand the update history and change trajectory of the operating system. Etc., which are not specifically limited here.

[0099] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An operating system version update system, characterized in that: include: A server and a client, wherein the server includes a difference detection module, a difference file generation module and a difference file transmission module, the client is installed with a first operating system, and the client includes a system version update module; wherein, The difference detection module is used to detect the difference between the first content in the first operating system and the second content in the second operating system, wherein the second operating system is obtained by updating the system version of the first operating system; The difference file generating module is used to generate a first difference file according to the difference content; The difference file transmission module is used to return the first difference file in response to the system version update request initiated by the client for the first operating system; The system version updating module is used to update the system version of the first operating system based on the received second difference file.

2. The system according to claim 1, characterized in that The difference detection module includes a difference detection unit; wherein, The difference detection unit is used to generate a first hash value for the first content and a second hash value for the second content, and detect the difference between the first content and the second content by comparing the first hash value with the second hash value.

3. The system according to claim 1, characterized in that The system version update module includes a verification code generation unit and a system version update unit; The difference file generating module is further used to generate a first verification code according to the file content in the first difference file; The difference file transmission module is further used to return the first verification code; The verification code generating unit is configured to generate a second verification code according to the file content in the second difference file after receiving the second difference file and the first verification code; The system version updating unit is configured to update the system version of the first operating system based on the second difference file when the second verification code is consistent with the first verification code.

4. The system according to claim 3, characterized in that The system version update module also includes a re-download request unit; wherein, The re-download request unit is used to initiate a re-download request for the first difference file to the server when the second verification code is inconsistent with the first verification code, so as to re-download the first difference file to update the system version.

5. The system according to claim 1, characterized in that The client also includes a system version rollback module; wherein, The system version rollback module is used to perform a rollback operation to restore to the first operating system when it is detected that the system version update fails.

6. The system according to claim 5, characterized in that The client also includes a rollback result verification module; wherein, The rollback result verification module is used to verify the obtained rollback result when the rollback operation is completed, so as to verify whether the rollback result is successful.

7. The system according to claim 1, characterized in that The server also includes a consistency test module; wherein, The consistency testing module is used to test the consistency between the second operating system and the first operating system in terms of function and / or behavior when the second operating system is obtained; The difference detection module is specifically configured to detect the difference between the first content in the first operating system and the second content in the second operating system when the consistency test passes.

8. The system according to claim 7, characterized in that The server also includes a test report transmission module, and the client also includes a visual display module; wherein, The test report transmission module is used to generate a test report according to the test result of the consistency test, and transmit the test report to the client; The visual display module is used to display the received test report.

9. The system according to claim 8, characterized in that The visual display module is also used to display the system version differences represented by the difference files.

10. The system according to any one of claims 1 to 9, characterized in that: The first content includes at least one of a system file, a configuration item, and a database record.