Verification method of engineering application software and related device
By obtaining and comparing the compilation identification code, timestamp and algorithm library compilation information of engineering application software, we automatically verify the ring network compilation and control station compilation in the safe-grade digital control system of nuclear power plants, solving the low efficiency and accuracy of manual verification in the existing technology. The poor performance problem has achieved efficient and accurate automated verification.
Patent Information
- Application Number
- CN202410958442.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
AI Technical Summary
In the existing nuclear power plant safety-level digital control systems, the verification of ring network compilation, control station compilation and algorithm library versions rely on pure manual methods, which are inefficient, error-prone and poor in effect.
By obtaining the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software, the correctness of its compilation process and algorithm library versions are automatically verified, including from release files, version_x.ini files, download_alg.prg files and assembly.redace Extract relevant information from the file, compare the identification code and timestamp, and use MD5 value to verify the algorithm library version.
The automated engineering application software verification process is realized, which improves efficiency and accuracy, reduces manual errors, and ensures the normality of the compilation process and algorithm library version.
Smart Images

Figure CN118916275A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of nuclear power, and in particular to a verification method and related devices for engineering application software. Background Art
[0002] The verification and confirmation of the implementation of the safety-level digital control system of a nuclear power plant is the process of verifying the correctness of the variables, ring network compilation, control station compilation and control station algorithm library version of the engineering application software. At present, the ring network compilation, control station compilation and control station algorithm library version are still verified by pure manual verification, which is not only inefficient, but also prone to errors and omissions, and the verification effect is poor. Summary of the invention
[0003] In view of the above problems, the present invention provides a verification method and related devices for engineering application software that overcome the above problems or at least partially solve the above problems.
[0004] In a first aspect, a verification method for engineering application software includes:
[0005] Obtaining a compilation identification code, a compilation timestamp, and algorithm library compilation information of the engineering application software, wherein the compilation identification code is an identification code generated during the compilation process of the engineering application software, the compilation timestamp is a timestamp generated during the compilation process of the engineering application software, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled;
[0006] Verifying whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software;
[0007] According to the algorithm library compilation information, verify whether the algorithm library version of the engineering application software is correct.
[0008] Optionally, in certain optional implementations, obtaining the compilation identification code, compilation timestamp, and algorithm library compilation information of the engineering application software includes:
[0009] From the release file, version_x.ini file and download_alg.prg file of the engineering application software, respectively obtain the compilation identification code of the control station in the corresponding file, wherein the release file is a file jointly generated by the control station and the ring website during the compilation process, the version_x.ini file is a file generated by the control station during the compilation process, and the download_alg.prg file is a file generated by the control station after compilation. Each of the control stations and each of the ring websites share the same release file, and one control station corresponds to one version_x.ini file and one download_alg.prg file;
[0010] Obtain the compilation timestamp of the corresponding control station and the compilation timestamp of the corresponding ring website from the download_alg.prg file and the download.prg file of the engineering application software, respectively, wherein the download_alg.prg file is generated after the control station is compiled, and the download.prg file is generated after the ring website is compiled, one download.prg file corresponds to one ring website, and one download_alg.prg file corresponds to one control station;
[0011] The algorithm library compilation information is obtained from the assembly.redace file of the engineering application software, wherein the assembly.redace file is a file generated after the control station is compiled, and one control station corresponds to one assembly.redace file.
[0012] Optionally, in some optional implementations, obtaining the compilation identification code of the control station in the corresponding files from the release file, version_x.ini file and download_alg.prg file of the engineering application software respectively includes:
[0013] For any of the control stations, obtaining a first identification code from a release file of the engineering application software;
[0014] For any of the control stations, obtaining a second identification code from a version_x.ini file corresponding to the control station;
[0015] For any of the control stations, a third identification code is obtained from the download_alg.prg file corresponding to the control station.
[0016] Optionally, in some optional implementations, obtaining the compilation timestamp of the corresponding control station and the compilation timestamp of the corresponding ring station from the download_alg.prg file and the download.prg file of the engineering application software, respectively, includes:
[0017] Obtaining a first timestamp of the control station from a download_alg.prg file of the control station of the engineering application software;
[0018] The download.prg file of the ring website associated with the control station is queried to obtain a second timestamp of the ring website.
[0019] Optionally, in some optional implementations, before querying the download.prg file of the ring website associated with the control station to obtain the second timestamp of the ring website, the method further includes:
[0020] According to the ihd.xml file of the engineering application software, the ring website associated with the control station is determined, wherein the ihd.xml file records the association relationship between each control station and each ring website, and one ring website is associated with multiple control stations.
[0021] Optionally, in some optional implementations, verifying whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp includes:
[0022] Verifying whether the identification code is normal according to the first identification code, the second identification code and the third identification code;
[0023] Verifying whether the timestamp is normal according to the first timestamp and the second timestamp;
[0024] If the verification determines that the identification code and the timestamp are normal, it is determined that the compilation process of the engineering application software is normal;
[0025] If the verification determines that the identification code is abnormal and / or the timestamp is abnormal, it is determined that the compilation process of the engineering application software is abnormal.
[0026] Optionally, in some optional implementations, verifying whether the identification code is normal according to the first identification code, the second identification code and the third identification code includes:
[0027] unifying the first identification code, the second identification code and the third identification code into identification codes of the same base;
[0028] If the first identification code, the second identification code and the third identification code in the same base are consistent, then the verification and determination identification code is normal; otherwise, the verification and determination identification code is abnormal.
[0029] Optionally, in some optional implementations, verifying whether the timestamp is normal according to the first timestamp and the second timestamp includes:
[0030] If the first timestamp is later than the second timestamp, verifying that the timestamp is normal;
[0031] If the first timestamp is earlier than the second timestamp, verification determines that the timestamp is abnormal.
[0032] Optionally, in some optional implementations, obtaining the algorithm library compilation information from the assembly.redace file of the engineering application software includes:
[0033] Obtaining a first MD5 value from a first assembly.redace file of the engineering application software, wherein the first assembly.redace file is a file generated by importing an algorithm library into a corresponding control station before compiling;
[0034] A second MD5 value is obtained from a second assembly.redace file of the engineering application software, wherein the second assembly.redace file is a file generated by the corresponding control station after the algorithm library is imported and compiled.
[0035] Optionally, in some optional implementations, verifying whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information includes:
[0036] Compare the first MD5 value and the second MD5 value to see if they are consistent;
[0037] If the first MD5 value is consistent with the second MD5 value, it is determined that the algorithm library version of the engineering application software is correct;
[0038] If the first MD5 value and the second MD5 value are inconsistent, it is determined that the algorithm library version of the engineering application software is incorrect.
[0039] In a second aspect, a verification device for engineering application software includes: an information acquisition unit, a compilation process verification unit, and an algorithm library version verification unit;
[0040] The information acquisition unit is used to obtain the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software, wherein the compilation identification code is the identification code generated by the engineering application software during the compilation process, the compilation timestamp is the timestamp generated by the engineering application software during the compilation process, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled;
[0041] The compilation process verification unit is used to verify whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software;
[0042] The algorithm library version verification unit is used to verify whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information.
[0043] In a third aspect, a computer-readable storage medium stores a program, which, when executed by a processor, implements any of the above-mentioned verification methods for engineering application software.
[0044] In a fourth aspect, an electronic device comprises at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned verification methods for engineering application software.
[0045] By means of the above technical scheme, a verification method and related device for engineering application software provided by the present invention can obtain the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software, wherein the compilation identification code is the identification code generated by the engineering application software during the compilation process, the compilation timestamp is the timestamp generated by the engineering application software during the compilation process, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled; according to the compilation identification code and the compilation timestamp, verify whether the compilation process of the engineering application software is normal, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software; according to the algorithm library compilation information, verify whether the algorithm library version of the engineering application software is correct. It can be seen from this that the present invention can automatically obtain information and verify whether the compilation process and algorithm library version of the engineering application software are normal, without manual participation, with high efficiency and low error, and good verification effect.
[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0048] Figure 1 A flow chart showing a verification method for engineering application software provided by the present invention is shown;
[0049] Figure 2 A verification schematic diagram of the compilation process of the first engineering application software provided by the present invention is shown;
[0050] Figure 3 A verification schematic diagram of the compilation process of the second engineering application software provided by the present invention is shown;
[0051] Figure 4 A verification schematic diagram of the compilation process of the third engineering application software provided by the present invention is shown;
[0052] Figure 5 A schematic diagram showing the structure of a verification device for engineering application software provided by the present invention is shown;
[0053] Figure 6 A structural schematic diagram of an electronic device provided by the present invention is shown. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0055] like Figure 1 As shown, the present invention provides a verification method for engineering application software, including: S100, S200 and S300;
[0056] S100, obtaining a compilation identification code, a compilation timestamp, and algorithm library compilation information of the engineering application software, wherein the compilation identification code is an identification code generated during the compilation process of the engineering application software, the compilation timestamp is a timestamp generated during the compilation process of the engineering application software, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled;
[0057] The present invention can be applied to engineering application software of nuclear power plant safety-level digital control systems. That is, the present invention can be used to verify the ring network compilation, control station compilation and algorithm library version of the engineering application software, and the present invention does not limit this.
[0058] Optionally, the ring network is a network used for data communication between all microprocessor units such as control stations. The control station is a microprocessor unit that performs processing logic. Relationship between the ring network and the control station: Data communication between control stations needs to pass through the ring network, which includes multiple ring network stations.
[0059] Optionally, the present invention can be based on Java programming technology (Java is an object-oriented programming language that is easy to learn and has good portability) and combined with the Knime framework (a software that analyzes and integrates data in the form of work data streams, which can be used to design highly flexible workflow nodes to achieve the effect of node reuse) to develop and execute the automation tool of the present invention. The development environment can use eclipse IED, and the present invention is not limited to this.
[0060] Optionally, the present invention performs verification based on the underlying file information generation rules generated during the compilation process of the engineering application software. The verification result is relatively accurate, and the present invention does not impose any limitation on this.
[0061] Optionally, in some optional embodiments, the S100 includes: step 1.1, step 1.2 and step 1.3;
[0062] Step 1.1, respectively obtain the compilation identification code of the control station in the corresponding file from the release file, version_x.ini file and download_alg.prg file of the engineering application software, wherein the release file is a file jointly generated by the control station and the ring website during the compilation process, the version_x.ini file is a file generated by the control station during the compilation process, and the download_alg.prg file is a file generated by the control station after compilation. Each of the control stations and each of the ring websites share the same release file, and one control station corresponds to one version_x.ini file and one download_alg.prg file;
[0063] Optionally, one engineering application software may correspond to one release file. That is, all control stations and all ring websites of one engineering application software share one release file. The release file records the compilation information (including compilation identification code) and algorithm library information of each control station and each ring website.
[0064] For example, the release file lists the compilation identification codes (hexadecimal) of all stations in the form of a table, and then the decimal identification codes in the version_x.ini file of each control station are converted into hexadecimal identification codes and compared with the corresponding items in the release file. Generally speaking, the release file is a document that has been officially signed and approved by the company through the editing and approval process, and the present invention does not limit this.
[0065] Optionally, the "version_x.ini" mentioned in the present invention is a general term, which can be modified into a specific name according to actual needs. For example, the present invention can set files named, such as version_1.ini, version_2.ini, version_3.ini, and version.4_ini, for different control stations according to the number of the control station. That is, the "x" in "version_x.ini" can be set to different numbers according to actual needs, and the present invention does not limit this.
[0066] Optionally, the download_alg.prg file is the compilation result file of each control station, in which the hexadecimal identification code is stored. The data required by the present invention is the first 8 bits of the hexadecimal identification code and the timestamp information of the file, and the present invention does not limit this.
[0067] Optionally, in some optional embodiments, the step 1.1 includes: step 2.1, step 2.2 and step 2.3;
[0068] Step 2.1, for any of the control stations, obtaining a first identification code from a release file of the engineering application software;
[0069] Optionally, the release file records the hexadecimal identification code of each control station. Therefore, for all control stations, the present invention can obtain the corresponding hexadecimal first identification code from the release file, and the present invention does not limit this.
[0070] Step 2.2: for any of the control stations, obtain a second identification code from the version_x.ini file corresponding to the control station;
[0071] Optionally, as mentioned above, one control station corresponds to one version_x.ini file. The version_x.ini file records the decimal identification code of the corresponding control station. Therefore, the present invention can obtain the decimal second identification code of the corresponding control station from the version_x.ini file, and the present invention does not limit this.
[0072] Step 2.3: For any of the control stations, obtain a third identification code from the download_alg.prg file corresponding to the control station.
[0073] Optionally, as mentioned above, the download_alg.prg file stores the hexadecimal identification code. The present invention can extract the first 8 bits of the hexadecimal identification code as the third identification code, and the present invention does not limit this.
[0074] Step 1.2, respectively obtaining the compilation timestamp of the corresponding control station and the compilation timestamp of the corresponding ring website from the download_alg.prg file and the download.prg file of the engineering application software, wherein the download_alg.prg file is generated after the control station is compiled, and the download.prg file is generated after the ring website is compiled, one download.prg file corresponds to one ring website, and one download_alg.prg file corresponds to one control station;
[0075] Optionally, the download_alg.prg file records the identification code and timestamp information of the corresponding control station. Therefore, for each control station, the present invention can obtain the corresponding compilation timestamp from the download_alg.prg file, and the present invention does not limit this.
[0076] Optionally, the download.prg file records the identification code and timestamp information of the corresponding ring website. Therefore, for each ring website, the present invention can obtain the corresponding compilation timestamp from the download.prg file, and the present invention does not limit this.
[0077] Optional. The compilation timestamp may reflect the compilation time of the corresponding control station and the ring station, so as to facilitate the subsequent comparison of the compilation time of the control station and the ring station, which is not limited in the present invention.
[0078] Optionally, in some optional embodiments, the step 1.2 includes: step 3.1 and step 3.2;
[0079] Step 3.1, obtaining the first timestamp of the control station from the download_alg.prg file of the control station of the engineering application software;
[0080] Step 3.2: query the download.prg file of the ring website associated with the control station to obtain the second timestamp of the ring website.
[0081] Optionally, in some optional embodiments, before step 3.2, the method further includes:
[0082] According to the ihd.xml file of the engineering application software, the ring website associated with the control station is determined, wherein the ihd.xml file records the association relationship between each control station and each ring website, and one ring website is associated with multiple control stations.
[0083] Optionally, the present invention can obtain the download.prg file and ihd.xml file of the ring website from the firmnet folder. That is, the firmnet folder stores the information of all ring websites, and the subdirectory section structure of each ring website folder is the same, wherein each ring website contains the download_alg.prg file and the ihd.xml file.
[0084] Optionally, when comparing the compile timestamps, the compile timestamps of the associated control station and the ring website need to be compared. Therefore, for any control station, the present invention can first query and determine its associated ring website, and then obtain the compile timestamp of the corresponding ring website, and the present invention does not limit this.
[0085] Step 1.3: Obtain the algorithm library compilation information from the assembly.redace file of the engineering application software, wherein the assembly.redace file is a file generated after the control station is compiled, and one control station corresponds to one assembly.redace file.
[0086] Optionally, the assembly.redace file is an engineering application software configuration source file, which is used to store all contents of the configuration compilation, including algorithm library compilation information, and the present invention does not impose any limitation on this.
[0087] S200, verifying whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software;
[0088] For example, in some optional embodiments, the S200 includes: step 4.1, step 4.2, step 4.3 and step 4.4;
[0089] Step 4.1: Verify whether the identification code is normal according to the first identification code, the second identification code and the third identification code;
[0090] Optionally, when verifying the identification code, it is mainly to verify whether the first identification code, the second identification code and the third identification code are exactly the same. Therefore, in order to avoid the influence of different bases on the verification result, the present invention can unify the bases of the first identification code, the second identification code and the third identification code into the same base before verification, and then compare them.
[0091] That is, in some optional embodiments, the step 4.1 includes: step 5.1 and step 5.2;
[0092] Step 5.1: unify the first identification code, the second identification code and the third identification code into identification codes of the same base;
[0093] Step 5.2: If the first identification code, the second identification code and the third identification code of the same base are consistent, then the verification and determination identification code is normal; otherwise, the verification and determination identification code is abnormal.
[0094] Optionally, if the first identification code, the second identification code and the third identification code are exactly the same, it means that the identification code is normal; if there is at least one different identification code among the first identification code, the second identification code and the third identification code, it means that the identification code is abnormal, and there may be an abnormality in the compilation process of the engineering application software, which is not limited by the present invention.
[0095] Optionally, the present invention can verify the first identification code, the second identification code and the third identification code of each control station respectively. If the identification code of at least one control station is abnormal, it means that there may be an abnormality in the compilation process of the engineering application software, which is not limited by the present invention.
[0096] Optionally, the verification of the first identification code, the second identification code and the third identification code is as follows: Figure 2 As shown, Figure 2 Please refer to the above explanation for the content, which will not be elaborated in this article.
[0097] Step 4.2: Verify whether the timestamp is normal according to the first timestamp and the second timestamp;
[0098] Optionally, if the timestamp of the download.prg file is later than the timestamp of download_alg.prg, it means that the ring site corresponding to the control station has no problem. On the contrary, if the timestamp of the download.prg file is earlier than the timestamp of download_alg.prg, it means that the ring site corresponding to the control station may have a problem, and the present invention can output the problem and make an abnormal mark in the intermediate process table, and the present invention does not limit this.
[0099] That is, in some optional embodiments, the step 4.2 includes: step 6.1 and step 6.2;
[0100] Step 6.1: If the first timestamp is later than the second timestamp, verify that the timestamp is normal;
[0101] Step 6.2: If the first timestamp is earlier than the second timestamp, verify and determine that the timestamp is abnormal.
[0102] Optionally, for all ring sites, the present invention can compare the second timestamp of the ring site with the first timestamp of each associated control station. If there is a situation where the timestamp of at least one ring site is later than the timestamp of the control station, it means that the ring site may be abnormal, and the present invention does not limit this.
[0103] For example, assuming that the engineering application software involves 3 ring sites, each of which is associated with 2 control stations, then taking ring site 1 as an example, the present invention can compare the second timestamp of ring site 1 with the first timestamp of control station 1 associated with ring site 1, and compare the second timestamp of ring site 1 with the first timestamp of control station 2 associated with ring site 1. The remaining 2 ring sites are processed in the same way with reference to ring site 1. If there is a situation where the timestamp of a certain ring site is compared with that of a certain control station and is verified to be abnormal (for example, the second timestamp of ring site 1 is compared with the first timestamp of control station 1 associated with ring site 1, and the result is abnormal), it means that there may be a problem with the ring network compilation of the engineering application software, and it can be further determined that the compilation process of the engineering application software is abnormal.
[0104] Step 4.3: If the identification code and the timestamp are verified to be normal, then the compilation process of the engineering application software is determined to be normal;
[0105] Step 4.4: If the verification determines that the identification code is abnormal and / or the timestamp is abnormal, it is determined that the compilation process of the engineering application software is abnormal.
[0106] Optionally, as mentioned above, the present invention can automatically verify whether the compilation process of the engineering application software is normal from the two aspects of the identification code and the compilation timestamp, without the need for human intervention, with high efficiency and accuracy.
[0107] Optional, timestamp comparison as Figure 3 As shown, Figure 3 Please refer to the above explanation for the content, which will not be elaborated in this article.
[0108] Optionally, in some optional embodiments, the step 1.3 includes: step 7.1 and step 7.2;
[0109] Step 7.1, obtaining a first MD5 value from the first assembly.redace file of the engineering application software, wherein the first assembly.redace file is a file generated by the corresponding control station when the algorithm library is imported before compilation;
[0110] Optionally, the first assembly.redace file mentioned in the present invention is generated by the compilation process of the engineering designer, and is called the "verification object file", which can be understood as the "original assembly.redace file".
[0111] The optional assembly.redace file generates the corresponding MD5 code which can be realized by the open source JAVA library. Each file corresponds to a unique MD5 code, and the corresponding MD5 code changes with the change of the file content.
[0112] Step 7.2: Obtain a second MD5 value from the second assembly.redace file of the engineering application software, wherein the second assembly.redace file is a file generated by the corresponding control station after importing the algorithm library and compiling.
[0113] Optionally, the second assembly.redace file is generated by the engineering staff during the compilation process, which is called the "verification benchmark file" and can also be understood as the "new assembly.redace file".
[0114] S300: Verify whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information.
[0115] The rule for verifying the algorithm library version of the present invention is to compare the "verification object file" and the "verification reference file", and if the contents are consistent, it is considered that there is no problem.
[0116] That is, in some optional embodiments, the S300 includes: step 8.1, step 8.2 and step 8.3;
[0117] Step 8.1, comparing the first MD5 value and the second MD5 value to see if they are consistent;
[0118] Step 8.2: If the first MD5 value is consistent with the second MD5 value, it is determined that the algorithm library version of the engineering application software is correct;
[0119] Step 8.3: If the first MD5 value and the second MD5 value are inconsistent, it is determined that the algorithm library version of the engineering application software is incorrect.
[0120] Optional, the algorithm library version is verified as follows Figure 4 As shown, Figure 4 Please refer to the above explanation for the content, which will not be elaborated in this article.
[0121] In summary, the present invention proposes a method for verifying the ring network compilation information, control station compilation information and algorithm library version information of the engineering application software of the nuclear safety-level DCS system. The method uses information isomorphism technology to transform the application software implementation link verification process, and verifies the isomorphic information according to established rules. At the same time, a human-computer interaction interface with expandable configuration is designed to improve the versatility and extensibility of the present invention.
[0122] The present invention also proposes a method for isomorphism of ring network compiled information and control station compiled information. This method solves the problem that hidden problems caused by human factors in engineering design cannot be verified and discovered during the implementation of engineering application software, and realizes deep excavation, accurate, efficient and automated verification without human interference, which has great value in improving nuclear safety.
[0123] like Figure 5 As shown, the present invention provides a verification device for engineering application software, including: an information obtaining unit 100, a compilation process verification unit 200 and an algorithm library version verification unit 300;
[0124] The information obtaining unit 100 is used to obtain the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software, wherein the compilation identification code is the identification code generated by the engineering application software during the compilation process, the compilation timestamp is the timestamp generated by the engineering application software during the compilation process, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled;
[0125] The compilation process verification unit 200 is used to verify whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software;
[0126] The algorithm library version verification unit 300 is used to verify whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information.
[0127] Optionally, in some optional implementations, the information obtaining unit 100 includes: an identification code obtaining subunit, a timestamp obtaining subunit and an algorithm library obtaining subunit;
[0128] The identification code obtaining subunit is used to obtain the compilation identification code of the control station in the corresponding files from the release file, version_x.ini file and download_alg.prg file of the engineering application software, respectively, wherein the release file is a file jointly generated by the control station and the ring website during the compilation process, the version_x.ini file is a file generated by the control station during the compilation process, and the download_alg.prg file is a file generated by the control station after compilation. Each of the control stations and each of the ring websites share the same release file, and one control station corresponds to one version_x.ini file and one download_alg.prg file;
[0129] The timestamp obtaining subunit is used to obtain the compile timestamp of the corresponding control station and the compile timestamp of the corresponding ring website from the download_alg.prg file and the download.prg file of the engineering application software, respectively, wherein the download_alg.prg file is generated by the control station after compilation, and the download.prg file is generated by the ring website after compilation, one download.prg file corresponds to one ring website, and one download_alg.prg file corresponds to one control station;
[0130] The algorithm library acquisition subunit is used to obtain the algorithm library compilation information from the assembly.redace file of the engineering application software, wherein the assembly.redace file is a file generated by the control station after compilation, and one control station corresponds to one assembly.redace file.
[0131] Optionally, in certain optional embodiments, the identification code obtaining subunit includes: a first identification code obtaining subunit, a second identification code obtaining subunit and a third identification code obtaining subunit;
[0132] The first identification code obtaining subunit is used to obtain the first identification code from the release file of the engineering application software for any of the control stations;
[0133] The second identification code obtaining subunit is used to obtain the second identification code from the version_x.ini file corresponding to any of the control stations;
[0134] The third identification code obtaining subunit is used to obtain the third identification code from the download_alg.prg file corresponding to any of the control stations.
[0135] Optionally, in certain optional implementations, the timestamp obtaining subunit includes: a first timestamp obtaining subunit and a second timestamp obtaining subunit;
[0136] The first timestamp obtaining subunit is used to obtain the first timestamp of the control station from the download_alg.prg file of the control station of the engineering application software;
[0137] The second timestamp obtaining subunit is used to query the download.prg file of the ring website associated with the control station to obtain the second timestamp of the ring website.
[0138] Optionally, in certain optional embodiments, the apparatus further comprises: an associated station determination unit;
[0139] The associated station determination unit is used to determine the ring website associated with the control station according to the ihd.xml file of the engineering application software before querying the download.prg file of the ring website associated with the control station to obtain the second timestamp of the ring website, wherein the ihd.xml file records the association relationship between each control station and each ring website, and one ring website is associated with multiple control stations.
[0140] Optionally, in some optional implementations, the compilation process verification unit 200 includes: an identification code verification subunit, a timestamp verification subunit, a first result subunit, and a second result subunit;
[0141] The identification code verification subunit is used to verify whether the identification code is normal according to the first identification code, the second identification code and the third identification code;
[0142] The timestamp verification subunit is used to verify whether the timestamp is normal according to the first timestamp and the second timestamp;
[0143] The first result subunit is used to determine that the compilation process of the engineering application software is normal if the verification determines that the identification code and the timestamp are normal;
[0144] The second result subunit is used to determine that the compilation process of the engineering application software is abnormal if the verification determines that the identification code is abnormal and / or the timestamp is abnormal.
[0145] Optionally, in certain optional implementations, the identification code verification subunit includes: a base unification subunit and a third result subunit;
[0146] The base unification subunit is used to unify the first identification code, the second identification code and the third identification code into identification codes of the same base;
[0147] The third result subunit is used to verify that the identification code is normal if the first identification code, the second identification code and the third identification code in the same base are consistent, and to verify that the identification code is abnormal otherwise.
[0148] Optionally, in certain optional embodiments, the timestamp verification subunit includes: a fourth result subunit and a fifth result subunit;
[0149] The fourth result subunit is used to verify and determine that the timestamp is normal if the first timestamp is later than the second timestamp;
[0150] The fifth result subunit is used to verify and determine that the timestamp is abnormal if the first timestamp is earlier than the second timestamp.
[0151] Optionally, in certain optional implementations, the algorithm library obtaining subunit includes: a first MD5 value obtaining subunit and a second MD5 value obtaining subunit;
[0152] The first MD5 value obtaining subunit is used to obtain a first MD5 value from a first assembly.redace file of the engineering application software, wherein the first assembly.redace file is a file generated by importing an algorithm library into a corresponding control station before compiling;
[0153] The second MD5 value obtaining subunit is used to obtain a second MD5 value from a second assembly.redace file of the engineering application software, wherein the second assembly.redace file is a file generated by the corresponding control station after importing the algorithm library and compiling.
[0154] Optionally, in some optional implementations, the algorithm library version verification unit 300 includes: an MD5 value comparison subunit, a sixth result subunit, and a seventh result subunit;
[0155] The MD5 value comparison subunit is used to compare whether the first MD5 value and the second MD5 value are consistent;
[0156] The sixth result subunit is used to determine that the algorithm library version of the engineering application software is correct if the first MD5 value is consistent with the second MD5 value;
[0157] The seventh result subunit is used to determine that the algorithm library version of the engineering application software is incorrect if the first MD5 value and the second MD5 value are inconsistent.
[0158] The present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the verification method of the engineering application software described in any one of the above items is implemented.
[0159] like Figure 6 As shown, the present invention provides an electronic device 70, which includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein the processor 701 and the memory 702 communicate with each other through the bus 703; the processor 701 is used to call the program instructions in the memory 702 to execute any of the above-mentioned verification methods for engineering application software.
[0160] In the present invention, relational terms such as first and second, etc. are used only 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0161] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system 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.
[0162] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined in the present invention may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in the present invention, but will conform to the widest scope consistent with the principles and novel features disclosed in the present invention.
[0163] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A verification method for engineering application software, characterized in that: include: Obtaining a compilation identification code, a compilation timestamp, and algorithm library compilation information of the engineering application software, wherein the compilation identification code is an identification code generated during the compilation process of the engineering application software, the compilation timestamp is a timestamp generated during the compilation process of the engineering application software, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled; Verifying whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software; According to the algorithm library compilation information, verify whether the algorithm library version of the engineering application software is correct.
2. The method according to claim 1, characterized in that The obtaining of the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software includes: From the release file, version_x.ini file and download_alg.prg file of the engineering application software, respectively obtain the compilation identification code of the control station in the corresponding file, wherein the release file is a file jointly generated by the control station and the ring website during the compilation process, the version_x.ini file is a file generated by the control station during the compilation process, and the download_alg.prg file is a file generated by the control station after compilation. Each of the control stations and each of the ring websites share the same release file, and one control station corresponds to one version_x.ini file and one download_alg.prg file; Obtain the compilation timestamp of the corresponding control station and the compilation timestamp of the corresponding ring website from the download_alg.prg file and the download.prg file of the engineering application software, respectively, wherein the download_alg.prg file is generated after the control station is compiled, and the download.prg file is generated after the ring website is compiled, one download.prg file corresponds to one ring website, and one download_alg.prg file corresponds to one control station; The algorithm library compilation information is obtained from the assembly.redace file of the engineering application software, wherein the assembly.redace file is a file generated after the control station is compiled, and one control station corresponds to one assembly.redace file.
3. The method according to claim 2, characterized in that The step of obtaining the compilation identification code of the control station in the corresponding files from the release file, version_x.ini file and download_alg.prg file of the engineering application software comprises: For any of the control stations, obtaining a first identification code from a release file of the engineering application software; For any of the control stations, obtaining a second identification code from a version_x.ini file corresponding to the control station; For any of the control stations, a third identification code is obtained from the download_alg.prg file corresponding to the control station.
4. The method according to claim 3, characterized in that The step of obtaining the compile timestamp of the corresponding control station and the compile timestamp of the corresponding ring station from the download_alg.prg file and the download.prg file of the engineering application software respectively comprises: Obtaining a first timestamp of the control station from a download_alg.prg file of the control station of the engineering application software; The download.prg file of the ring website associated with the control station is queried to obtain a second timestamp of the ring website.
5. The method according to claim 4, characterized in that Before querying the download.prg file of the ring website associated with the control station to obtain the second timestamp of the ring website, the method further includes: According to the ihd.xml file of the engineering application software, the ring website associated with the control station is determined, wherein the ihd.xml file records the association relationship between each control station and each ring website, and one ring website is associated with multiple control stations.
6. The method according to claim 5, characterized in that The verifying whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp includes: Verifying whether the identification code is normal according to the first identification code, the second identification code and the third identification code; Verifying whether the timestamp is normal according to the first timestamp and the second timestamp; If the verification determines that the identification code and the timestamp are normal, it is determined that the compilation process of the engineering application software is normal; If the verification determines that the identification code is abnormal and / or the timestamp is abnormal, it is determined that the compilation process of the engineering application software is abnormal.
7. The method according to claim 6, characterized in that The verifying whether the identification code is normal according to the first identification code, the second identification code and the third identification code includes: unifying the first identification code, the second identification code and the third identification code into identification codes of the same base; If the first identification code, the second identification code and the third identification code in the same base are consistent, then the verification and determination identification code is normal; otherwise, the verification and determination identification code is abnormal.
8. The method according to claim 6, characterized in that The verifying whether the timestamp is normal according to the first timestamp and the second timestamp includes: If the first timestamp is later than the second timestamp, verifying that the timestamp is normal; If the first timestamp is earlier than the second timestamp, verification determines that the timestamp is abnormal.
9. The method according to claim 2, characterized in that: The step of obtaining the algorithm library compilation information from the assembly.redace file of the engineering application software includes: Obtaining a first MD5 value from a first assembly.redace file of the engineering application software, wherein the first assembly.redace file is a file generated by importing an algorithm library into a corresponding control station before compiling; A second MD5 value is obtained from a second assembly.redace file of the engineering application software, wherein the second assembly.redace file is a file generated by the corresponding control station after the algorithm library is imported and compiled.
10. The method according to claim 9, characterized in that The step of verifying whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information includes: Compare the first MD5 value and the second MD5 value to see if they are consistent; If the first MD5 value is consistent with the second MD5 value, it is determined that the algorithm library version of the engineering application software is correct; If the first MD5 value and the second MD5 value are inconsistent, it is determined that the algorithm library version of the engineering application software is incorrect.
11. A verification device for engineering application software, characterized in that: include: Information acquisition unit, compilation process verification unit and algorithm library version verification unit; The information acquisition unit is used to obtain the compilation identification code, compilation timestamp and algorithm library compilation information of the engineering application software, wherein the compilation identification code is the identification code generated by the engineering application software during the compilation process, the compilation timestamp is the timestamp generated by the engineering application software during the compilation process, and the algorithm library compilation information is the algorithm library information generated after the engineering application software is compiled; The compilation process verification unit is used to verify whether the compilation process of the engineering application software is normal according to the compilation identification code and the compilation timestamp, wherein the compilation process of the engineering application software includes the compilation process of the control station of the engineering application software and the compilation process of the ring station of the engineering application software; The algorithm library version verification unit is used to verify whether the algorithm library version of the engineering application software is correct according to the algorithm library compilation information.
