Method and related device for online upgrading software of credible DCS (Distributed Control System) upper computer
By detecting the dependency conditions of the ELF file, ensuring that the software dependency of the trusted DCS host computer is satisfied before upgrading, solving the problems of time-consuming and labor-intensive upgrades and low customer satisfaction in the existing technology, and achieving automated upgrades and high success rates.
Patent Information
- Application Number
- CN202411221946.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-31
AI Technical Summary
The software upgrade method of existing trusted DCS host computers is time-consuming and labor-intensive, with high technical requirements and prone to errors, resulting in low customer satisfaction.
By obtaining the new version of the software package, decompress and detect whether the ELF file meets the runtime dependency. If it is met, software upgrade will be carried out. Otherwise, the initial steps will be returned to ensure that the dependency conditions before the software upgrade are met and the upgrade will be avoided.
It has realized the automation software upgrade, reduced the technical requirements for manpower, improved customer satisfaction, and ensured the success rate of software upgrades.
Smart Images

Figure CN119225780A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of distributed control systems and relates to a method for online upgrading software of a trusted DCS host computer and a related device. Background Art
[0002] Distributed Control System (DCS) is the core equipment of power system infrastructure. Distributed Control System includes trusted DCS host computer and trusted DCS controller. Trusted DCS host computer includes terminals such as engineer station and operator station. Trusted DCS host computer and trusted DCS controller are registered in the trusted management center, and these terminals are managed uniformly by the trusted management center. With the increase of business scenarios, the probability of vulnerabilities (BUGs) in the software running on the trusted DCS host computer is increasing. At the same time, the software is also being continuously iterated and optimized, so it is necessary to upgrade the software on the trusted DCS host computer.
[0003] At present, the software upgrade of the trusted DCS host computer is generally done manually, which is to upload the new version of the software to the trusted DCS host computer that needs the software upgrade, manually install the old version of the software, and then start the new version of the software. This upgrade method has high technical requirements for personnel, consumes manpower, has a long cycle, is prone to errors, and reduces customer satisfaction. Summary of the invention
[0004] In order to solve the above problems of the prior art, the present invention provides a method and related device for online software upgrade of a trusted DCS host computer, so as to solve the problems that the prior software upgrade is time-consuming and labor-intensive and has low customer satisfaction.
[0005] The present invention is achieved through the following technical solutions:
[0006] A method for online software upgrade of a trusted DCS host computer, comprising:
[0007] S1, obtain the new version of the software package;
[0008] S2, decompress the new version software package to obtain an ELF file;
[0009] S3, detecting whether the ELF file satisfies the runtime dependency, if not, returning to S1; if the runtime dependency is satisfied, upgrading the current old software in the trusted DCS host computer to the new version of the software in the new version of the software package.
[0010] Preferably, S1 specifically includes:
[0011] S11, receiving an upgrade information file issued by a trusted management center, wherein the upgrade information file includes a version number of a new version of the software;
[0012] S12, compare the version number of the current old software in the trusted DCS host computer with the version number of the new software to determine whether the new software meets the upgrade conditions. If not, return to S11; if the upgrade conditions are met, download the new software package corresponding to the new software from the trusted management center, and send the download progress back to the trusted management center in real time to proceed to S2.
[0013] Preferably, S2 specifically comprises: decompressing the new version software package to obtain an ELF file and a dynamic library of the new version software.
[0014] Furthermore, in S3, the detecting whether the ELF file satisfies the runtime dependency is specifically: detecting whether the ELF file satisfies the runtime dependency, and whether the dynamic library of the new version of the software satisfies the runtime dependency.
[0015] Preferably, S2 specifically comprises: decompressing the new version software package to a temporary folder to obtain an ELF file.
[0016] Further, in S3, if the runtime dependency is not satisfied, then return to S1, specifically: if the runtime dependency is not satisfied, then clean up the temporary folder and return to S1.
[0017] Furthermore, in S3, if the runtime dependency is met, the current old software in the trusted DCS host computer is upgraded to the new version of the software in the new version of the software package, specifically: if the runtime dependency is met, the service of the current old software in the trusted DCS host computer is stopped, and the old software is backed up; the old software is replaced with the new version of the software in the new version of the software package; the new version of the software is started to detect whether the new version of the software runs normally; if it does not run normally, the old software is restored, and if it runs normally, the temporary folder is deleted.
[0018] A system for online software upgrade of a trusted DCS host computer, comprising:
[0019] Get module, used to get the new version of the software package;
[0020] A decompression module is used to decompress the new version software package to obtain an ELF file;
[0021] The upgrade module is used to detect whether the ELF file meets the runtime dependency. If it does not meet the runtime dependency, the software upgrade is not performed; if it meets the runtime dependency, the current old software in the trusted DCS host computer is upgraded to the new version of the software in the new version of the software package.
[0022] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned method for online software upgrade of a trusted DCS host computer are implemented.
[0023] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for online software upgrade of a trusted DCS host computer.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] Before upgrading the software, the present invention first checks whether the ELF file (executable and linking format) of the new version of the software meets the running dependency. If it does not meet the running dependency, the new version of the software will not be installed, and the new version of the software will be installed only if it meets the running dependency. The reason is that if the dependency is broken, even if the new version of the software is successfully installed, it cannot be run, resulting in the failure of the upgrade. Through the method of the present invention, the software can be automatically upgraded, effectively reducing the technical requirements for manpower, saving time and effort, and improving customer satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 This is a flow chart of the method for online software upgrade of a trusted DCS host computer of the present invention;
[0028] Figure 2 The figure is a flow chart of a method for online software upgrade of a trusted DCS host computer in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0030] It should be noted that the process equipment or devices not specifically specified in the following embodiments are all conventional equipment or devices in the art.
[0031] It should be noted that the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes 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. Moreover, unless otherwise specified, the numbering of each method step is only a convenient tool for identifying each method step, and is not intended to limit the order of arrangement of each method step or to define the scope of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the present invention without substantially changing the technical content.
[0032] like Figure 1 As shown, the method for online software upgrade of a trusted DCS host computer of the present invention comprises:
[0033] S1, obtain the new version of the software package;
[0034] S2, decompress the new version software package to obtain an ELF file;
[0035] S3, detecting whether the ELF file satisfies the runtime dependency, if not, returning to S1; if the runtime dependency is satisfied, upgrading the current old software in the trusted DCS host computer to the new version of the software in the new version of the software package.
[0036] In some specific embodiments of the present invention, S1 specifically includes:
[0037] S11, receiving an upgrade information file issued by a trusted management center, wherein the upgrade information file includes a version number of a new version of the software;
[0038] S12, compare the version number of the current old software in the trusted DCS host computer with the version number of the new software to determine whether the new software meets the upgrade conditions. If not, return to S11; if the upgrade conditions are met, download the new software package corresponding to the new software from the trusted management center, and send the download progress back to the trusted management center in real time to proceed to S2.
[0039] In some specific embodiments of the present invention, S2 specifically includes: decompressing the new version software package to a temporary folder to obtain an ELF file and a dynamic library of the new version software.
[0040] In some specific embodiments of the present invention, S3 specifically includes:
[0041] Detect whether the ELF file meets the runtime dependency and whether the dynamic library of the new version software meets the runtime dependency; if the runtime dependency is not met, clean up the temporary folder and return to S1; if the runtime dependency is met, stop the service of the current old software in the trusted DCS host computer and back up the old software; use the new version software in the new version software package to replace the old software; start the new version software and detect whether the new version software runs normally; if it does not run normally, restore the old software, and if it runs normally, delete the temporary folder.
[0042] Example
[0043] like Figure 2 As shown, the method for online software upgrade of the trusted DCS host computer described in the present invention includes the following specific implementation process:
[0044] Step 1: The trusted management center releases a new version of the software and generates a corresponding upgrade information file; the upgrade information file includes: the version number of the new version of the software, and the upgrade information file can be an encrypted or unencrypted file;
[0045] Step 2: After detecting the upgrade information file, the trusted DCS host computer (specifically, the host computer upgrade daemon) determines whether an upgrade is required. If an upgrade is required, the upgrade information file of the new version of the software is downloaded;
[0046] Step 3: The trusted DCS host computer (specifically, the host computer upgrade daemon) compares the version numbers of the old software and the new software in the trusted DCS host computer to see if they meet the upgrade conditions. If not, the upgrade is ignored and the process returns to step 1. If the upgrade conditions are met, the new software package is downloaded from the trusted management center, and the download progress is transmitted back to the trusted management center in real time.
[0047] Step 4, decompress the new version software package to a temporary folder in the temporary directory to obtain the ELF file and the dynamic library of the new version software; the trusted DCS host computer detects whether the ELF file meets the runtime dependency and whether the dynamic library of the new version software meets the runtime dependency; if the runtime dependency is not met, the temporary folder is cleaned up and the upgrade failure information is fed back to the trusted management center; if the runtime dependency is met, the current old software service is stopped according to the plan in the upgrade list; all files in the old software (called old files) are backed up and the old files are replaced with files in the new version software package (called new files); the new version software and service are started to detect whether the operation is normal; if the operation is not normal, the old files are restored and the upgrade failure is fed back to the trusted management center; if the operation is normal, the temporary folder is deleted and the upgrade success information is fed back to the trusted management center.
[0048] The following are device embodiments of the present invention, which can be used to perform method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.
[0049] In yet another embodiment of the present invention, a system for online software upgrade of a trusted DCS host computer is provided, including a trusted DCS host computer, wherein the trusted DCS host computer includes:
[0050] Get module, used to get the new version of the software package;
[0051] A decompression module is used to decompress the new version software package to obtain an ELF file;
[0052] The upgrade module is used to detect whether the ELF file meets the operation dependency in the trusted DCS host computer. If the operation dependency is not met, the software upgrade is not performed; if the operation dependency is met, the current old software in the trusted DCS host computer is upgraded to the new version of the software in the new version of the software package.
[0053] In another embodiment of the present invention, a computer device is provided, the computer device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the method for online upgrading software of a trusted DCS host computer.
[0054] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the computer device and the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for online software upgrade of the trusted DCS host computer in the above embodiment.
[0055] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, 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 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 code.
[0056] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to 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 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.
[0057] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.
[0058] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.
[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for online software upgrade of a trusted DCS host computer, characterized in that: include: S1, obtain the new version of the software package; S2, decompress the new version software package to obtain an ELF file; S3, detecting whether the ELF file satisfies the runtime dependency, if not, returning to S1; if the runtime dependency is satisfied, upgrading the current old software in the trusted DCS host computer to the new version of the software in the new version of the software package.
2. The method for online software upgrade of a trusted DCS host computer according to claim 1, characterized in that: S1 specifically includes: S11, receiving an upgrade information file issued by a trusted management center, wherein the upgrade information file includes a version number of a new version of the software; S12, compare the version number of the current old software in the trusted DCS host computer with the version number of the new software to determine whether the new software meets the upgrade conditions. If not, return to S11; if the upgrade conditions are met, download the new software package corresponding to the new software from the trusted management center, and send the download progress back to the trusted management center in real time to proceed to S2.
3. The method for online software upgrade of a trusted DCS host computer according to claim 1, characterized in that: S2 specifically includes: decompressing the new version software package to obtain an ELF file and a dynamic library of the new version software.
4. The method for online software upgrade of a trusted DCS host computer according to claim 3 is characterized in that: In S3, the detecting whether the ELF file satisfies the runtime dependency is specifically: detecting whether the ELF file satisfies the runtime dependency and whether the dynamic library of the new version of the software satisfies the runtime dependency.
5. The method for online software upgrade of a trusted DCS host computer according to claim 1, characterized in that: S2 specifically includes: decompressing the new version software package to a temporary folder to obtain an ELF file.
6. The method for online software upgrade of a trusted DCS host computer according to claim 5, characterized in that: In S3, if the runtime dependency is not satisfied, then return to S1, specifically: if the runtime dependency is not satisfied, then clean up the temporary folder and return to S1.
7. The method for online software upgrade of a trusted DCS host computer according to claim 5, characterized in that: In S3, if the runtime dependency is satisfied, the old software currently in the trusted DCS host computer is upgraded to the new version of the software in the new version of the software package, specifically: if the runtime dependency is satisfied, the service of the old software currently in the trusted DCS host computer is stopped, and the old software is backed up; the new version of the software in the new version of the software package is used to replace the old software; Starting the new version of the software and detecting whether the new version of the software runs normally; If it does not run normally, the old software is restored; if it runs normally, the temporary folder is deleted.
8. A system for online software upgrade of a trusted DCS host computer, characterized in that: include: Get module, used to get the new version of the software package; A decompression module is used to decompress the new version software package to obtain an ELF file; The upgrade module is used to detect whether the ELF file meets the runtime dependency. If it does not meet the runtime dependency, the software upgrade is not performed; if it meets the runtime dependency, the current old software in the trusted DCS host computer is upgraded to the new version of the software in the new version of the software package.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for online software upgrade of a trusted DCS host computer as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for online software upgrade of a trusted DCS host computer as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
DCS (Distributed Control System) upper computer software self-adaptive upgrading method adopting national secret security verification
CN120874038A
