CN111428465A - Converter station direct current control protection software modification work auxiliary verification method - Google Patents
Converter station direct current control protection software modification work auxiliary verification method Download PDFInfo
- Publication number
- CN111428465A CN111428465A CN202010214127.9A CN202010214127A CN111428465A CN 111428465 A CN111428465 A CN 111428465A CN 202010214127 A CN202010214127 A CN 202010214127A CN 111428465 A CN111428465 A CN 111428465A
- Authority
- CN
- China
- Prior art keywords
- file
- files
- modified
- control protection
- converter station
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to an auxiliary checking method for the modification work of direct current control protection software of a converter station, which comprises the following steps: step 1: acquiring a file to be checked and data thereof; step 2: judging whether the file names of the files to be checked are the same one by one; and step 3: comparing the files to be checked byte by byte, and judging whether a difference exists; and 4, step 4: respectively storing screenshots of pages of a file to be verified, classifying the file into a modified file with the same name, and updating a file list; and 5: carrying out XOR processing on the two images obtained in the step 4 in the effective area to obtain a difference comparison graph; step 6: judging whether the difference comparison image is totally black or not; and 7: and sending the file needing manual verification to a worker end to complete auxiliary verification of the modification work of the converter station direct current control protection software. Compared with the prior art, the invention has the advantages of reducing the workload of workers, improving the working efficiency and the like.
Description
Technical Field
The invention relates to an auxiliary verification method, in particular to an auxiliary verification method for the modification work of direct current control protection software of a converter station.
Background
The direct current control protection software of the high-voltage direct current transmission engineering converter station mostly uses a Hidraw program page, the technical route is based on the MACH2 technology of ABB company, and the converter stations using the same technical route all face the following production difficulties: 1. the direct current control protection software modification work of the converter station is large in number every year, and software modification of the conventional converter station can be carried out for about 4 times every year. 2. The number of direct current control protection program files is large, for example, 8721 Hidraw program pages are provided for direct current control protection of a certain conventional converter station, 1450 program pages are provided for each set of pole control, 795 program pages are provided for each set of pole protection, 2086 program pages are provided for three sets of alternating current filter control protection AFPs, 1139 program pages are provided for four sets of alternating current measurement and control ACPs, 410 program pages are provided for each set of converter transformer non-electricity, and the like. 3. The characters and lines in each program page are numerous, the verification after the direct current control protection software modification work in the current engineering is directly checked by means of manual visual comparison, the flow of the verification is schematically shown in fig. 1, the accuracy of the modified page directly checked by manual visual comparison cannot be guaranteed, the time is long, and the checking of multiple pages is more difficult. In the prior art, a method capable of assisting in manually verifying the modification work of the converter station direct current control protection software is not available.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide the converter station direct current control protection software modification work auxiliary verification method which can reduce the workload of workers and improve the work efficiency.
The purpose of the invention can be realized by the following technical scheme:
a converter station DC control protection software modification work auxiliary verification method is a program embedded in a computer and comprises the following steps:
step 1: acquiring a file to be checked and data thereof;
step 2: judging whether the file names of the files to be verified are the same one by one, if so, executing the step 3, otherwise, classifying the files into modified newly added files or modified deleted files, updating a file list, and performing screenshot storage on the pages of the modified newly added files;
and step 3: comparing the files to be checked byte by byte, judging whether the files have difference, if yes, executing the step 4, otherwise, classifying the files into the same files, and updating the file list;
and 4, step 4: respectively storing screenshots of pages of a file to be verified, classifying the file into a modified file with the same name, and updating a file list;
and 5: carrying out XOR processing on the two images obtained in the step 4 in the effective area to obtain a difference comparison graph;
step 6: judging whether the difference comparison images are totally black, if so, executing a step 7, otherwise, classifying the files into the same-name modified files with incompletely identical pictures, updating a file list, storing the difference comparison images, and then executing the step 7;
and 7: and sending the file needing manual verification to a worker end to complete auxiliary verification of the modification work of the converter station direct current control protection software.
Preferably, the files to be verified in the step 1 include files before software modification and files after software modification; the file data to be verified comprises a file name, a file format, a folder where the file is located and a relative path of the file.
More preferably, the specific method for judging whether the file names of the files to be verified in step 2 are the same is as follows: and judging whether the file names of the files with the same file format under the same relative path are the same one by one.
More preferably, the method for determining that the file is the modified newly added file or the modified deleted file in step 2 is as follows: and judging whether the file is contained in the folder after the software modification, if so, classifying the file after the software modification into a modified newly added file, and storing the screenshot of the page of the file, otherwise, classifying the file before the software modification into a modified deleted file.
Preferably, the file list includes file categories and file names corresponding to the file categories; the file types comprise the same file, a newly added file after modification, a deleted file after modification, a modified file with the same name and the same picture which are not completely the same.
Preferably, the method for determining the effective area comprises the following steps:
taking the center of a screenshot of a page before software modification as a starting point, upwards searching for the longest transverse line before reaching a toolbar of the page, and taking the upper edge of an effective area of a behavior where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and taking the action of the transverse line as the lower edge of the effective area; searching the longest vertical line before reaching the left side of the screen leftwards, and taking the column where the vertical line is positioned as the left edge of the effective area; and searching the longest vertical line before reaching the right side of the screen rightwards, and taking the column where the vertical line is positioned as the right edge of the effective area.
Preferably, the specific method for judging whether all the difference comparison maps are black in step 6 is as follows: and sequentially judging whether all the pixel points in the effective area of the difference comparison graph are black or not.
Preferably, the files to be verified manually in step 7 include: and the difference comparison graph and the modified page screenshot of the newly added file.
Compared with the prior art, the invention has the following advantages:
the auxiliary verification method solves the problems that the traditional direct current control protection software modification work verification method is low in efficiency and cannot ensure accuracy, and by carrying out XOR processing on files before software modification and files after software modification in an effective area, the modified places are highlighted, the positions needing manual verification are quickly found out, the workload of workers is greatly reduced, and the work efficiency of the workers is improved.
Drawings
FIG. 1 is a schematic flow chart of a conventional DC control protection software modification work verification method;
FIG. 2 is a schematic flow chart of an auxiliary verification method according to the present invention;
FIG. 3 is a schematic diagram of an effective area of an image according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a contrast chart according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The embodiment relates to a converter station direct current control protection software modification work auxiliary verification method, which is a program embedded in a computer, and the flow schematic of the method is shown in fig. 2, and comprises the following steps:
step 1: acquiring a file to be checked and data thereof;
the files to be verified comprise files before software modification and files after software modification; the file data to be verified comprises a file name, a file format, a folder where the file is located and a relative path of the file;
step 2: judging whether the file names of the files to be verified are the same one by one, if so, executing the step 3, otherwise, classifying the files into modified newly added files or modified deleted files, updating a file list, and performing screenshot storage on the pages of the modified newly added files;
the specific method for judging whether the file names of the files to be verified are the same in the step 2 is as follows: judging whether the file names of files with the same file format under the same relative path are the same one by one;
the method for judging whether the file is a modified newly added file or a modified deleted file in the step 2 comprises the following steps: and judging whether the file is contained in the folder after the software modification, if so, classifying the file after the software modification into a newly added modified file, and storing the screenshot of the page of the modified file, otherwise, classifying the file before the software modification into a deleted modified file.
And step 3: comparing the files to be checked byte by byte, judging whether the files have difference, if yes, executing the step 4, otherwise, classifying the files into the same files, and updating the file list;
and 4, step 4: respectively storing screenshots of pages of a file to be verified, classifying the file into a modified file with the same name, and updating a file list;
and 5: carrying out XOR processing on the two images obtained in the step 4 in the effective area to obtain a difference comparison graph; in the embodiment, the xor function in microsoft VB is directly called to perform xor processing on two images, the finally obtained difference comparison diagram is shown in fig. 4, the same parts in the two images are all black, and the different parts are distinguished by other colors, so that when a worker sees the difference comparison diagram, the worker can directly perform manual verification on the modified position, the verification difficulty and the verification time are greatly shortened, and the working efficiency is improved;
step 6: judging whether the difference comparison images are totally black, if so, executing a step 7, otherwise, classifying the files into the same-name modified files with incompletely identical pictures, updating a file list, storing the difference comparison images, and then executing the step 7;
and 7: sending files needing manual verification to a worker end to complete auxiliary verification of modification work of the converter station direct-current control protection software; in this embodiment, the document to be verified manually includes a difference comparison graph and a modified page screenshot of the newly added document.
The file list in the embodiment comprises file types and file names corresponding to the file types, the file types comprise identical files, newly added modified files, deleted modified files, homonymy modified files and homonymy modified files with incompletely identical pictures, the homonymy modified files in the embodiment comprise homonymy modified files with completely identical images but different compiled codes and homonymy modified files with incompletely identical pictures, and the modification work of the converter station direct current control protection software mainly aims at the modification of the pictures, so that the verification auxiliary method in the embodiment only stores the screenshot of the pages of the homonymy modified files with incompletely identical pictures, and then sends the pages to a worker side for verification by the worker.
The method for determining the effective area in this embodiment is as follows: taking the center of a screenshot of a page before software modification as a starting point, upwards searching for the longest transverse line before reaching a toolbar of the page, and taking the upper edge of an effective area of a behavior where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and taking the action of the transverse line as the lower edge of the effective area; searching the longest vertical line before reaching the left side of the screen leftwards, and taking the column where the vertical line is positioned as the left edge of the effective area; the longest vertical line before reaching the right side of the screen is searched rightward, the column where the vertical line is located is the right edge of the effective area, and the effective area selected in this embodiment is shown as a black bold line frame in fig. 3. In this embodiment, the method for determining whether the pixel point in the contrast map is completely black includes: and sequentially judging whether all the pixel points in the effective area of the difference comparison graph are black or not. Therefore, the selection of the effective area can greatly reduce the workload when the pixel point detection is carried out on the difference comparison image, and the working efficiency is improved.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A converter station DC control protection software modification work auxiliary checking method is a program embedded in a computer, and is characterized in that the checking method comprises the following steps:
step 1: acquiring a file to be checked and data thereof;
step 2: judging whether the file names of the files to be verified are the same one by one, if so, executing the step 3, otherwise, classifying the files into modified newly added files or modified deleted files, updating a file list, and performing screenshot storage on the pages of the modified newly added files;
and step 3: comparing the files to be checked byte by byte, judging whether the files have difference, if yes, executing the step 4, otherwise, classifying the files into the same files, and updating the file list;
and 4, step 4: respectively storing screenshots of pages of a file to be verified, classifying the file into a modified file with the same name, and updating a file list;
and 5: carrying out XOR processing on the two images obtained in the step 4 in the effective area to obtain a difference comparison graph;
step 6: judging whether the difference comparison images are totally black, if so, executing a step 7, otherwise, classifying the files into the same-name modified files with incompletely identical pictures, updating a file list, storing the difference comparison images, and then executing the step 7;
and 7: and sending the file needing manual verification to a worker end to complete auxiliary verification of the modification work of the converter station direct current control protection software.
2. The auxiliary checking method for the direct current control protection software modification work of the converter station according to claim 1, wherein the files to be checked in the step 1 include files before software modification and files after software modification; the file data to be verified comprises a file name, a file format, a folder where the file is located and a relative path of the file.
3. The method for auxiliary checking of the dc control protection software modification work of the converter station according to claim 2, wherein the specific method for judging whether the file names of the files to be checked are the same in step 2 is as follows: and judging whether the file names of the files with the same file format under the same relative path are the same one by one.
4. The method for auxiliary verification of dc control protection software modification work of a converter station according to claim 2, wherein the method for determining whether the file is a modified new file or a modified deleted file in step 2 comprises: and judging whether the file is contained in the folder after the software modification, if so, classifying the file after the software modification into a modified newly added file, and storing the screenshot of the page of the file, otherwise, classifying the file before the software modification into a modified deleted file.
5. The auxiliary checking method for the modification work of the converter station direct current control protection software according to claim 1, wherein the file list includes file types and file names corresponding to the file types; the file types comprise the same file, a newly added file after modification, a deleted file after modification, a modified file with the same name and the same picture which are not completely the same.
6. The method for auxiliary verification of dc control protection software modification work of a converter station according to claim 1, wherein the method for determining the effective area is as follows:
taking the center of a screenshot of a page before software modification as a starting point, upwards searching for the longest transverse line before reaching a toolbar of the page, and taking the upper edge of an effective area of a behavior where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and taking the action of the transverse line as the lower edge of the effective area; searching the longest vertical line before reaching the left side of the screen leftwards, and taking the column where the vertical line is positioned as the left edge of the effective area; and searching the longest vertical line before reaching the right side of the screen rightwards, and taking the column where the vertical line is positioned as the right edge of the effective area.
7. The method for auxiliary verification of dc control protection software modification work of a converter station according to claim 1, wherein the specific method for judging whether the difference comparison graph is completely black in step 6 is as follows: and sequentially judging whether all the pixel points in the effective area of the difference comparison graph are black or not.
8. The method for auxiliary verification of dc control protection software modification work of a converter station according to claim 1, wherein the file to be verified manually in step 7 comprises: and the difference comparison graph and the modified page screenshot of the newly added file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010214127.9A CN111428465B (en) | 2020-03-24 | 2020-03-24 | Auxiliary calibration method for direct-current control protection software modification work of converter station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010214127.9A CN111428465B (en) | 2020-03-24 | 2020-03-24 | Auxiliary calibration method for direct-current control protection software modification work of converter station |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111428465A true CN111428465A (en) | 2020-07-17 |
CN111428465B CN111428465B (en) | 2023-06-30 |
Family
ID=71549731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010214127.9A Active CN111428465B (en) | 2020-03-24 | 2020-03-24 | Auxiliary calibration method for direct-current control protection software modification work of converter station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111428465B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6324555B1 (en) * | 1998-08-31 | 2001-11-27 | Adobe Systems Incorporated | Comparing contents of electronic documents |
WO2002091146A2 (en) * | 2001-05-09 | 2002-11-14 | Ecd Systems, Inc. | Systems and methods for the prevention of unauthorized use and manipulation of digital content |
CN101673296A (en) * | 2009-09-02 | 2010-03-17 | 太仓市同维电子有限公司 | Method for checking file in the process of data communication |
US20140097250A1 (en) * | 2012-10-04 | 2014-04-10 | Thomas Charles Antognini | Variable formatting of digital data into a pattern |
CN104391728A (en) * | 2014-12-12 | 2015-03-04 | 北京奇虎科技有限公司 | Software upgrading delta pack acquiring method, corresponding upgrading method and device |
CN109542664A (en) * | 2018-12-13 | 2019-03-29 | 平安科技(深圳)有限公司 | File verification method, apparatus and computer equipment based on artificial intelligence |
-
2020
- 2020-03-24 CN CN202010214127.9A patent/CN111428465B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6324555B1 (en) * | 1998-08-31 | 2001-11-27 | Adobe Systems Incorporated | Comparing contents of electronic documents |
WO2002091146A2 (en) * | 2001-05-09 | 2002-11-14 | Ecd Systems, Inc. | Systems and methods for the prevention of unauthorized use and manipulation of digital content |
CN101673296A (en) * | 2009-09-02 | 2010-03-17 | 太仓市同维电子有限公司 | Method for checking file in the process of data communication |
US20140097250A1 (en) * | 2012-10-04 | 2014-04-10 | Thomas Charles Antognini | Variable formatting of digital data into a pattern |
CN104391728A (en) * | 2014-12-12 | 2015-03-04 | 北京奇虎科技有限公司 | Software upgrading delta pack acquiring method, corresponding upgrading method and device |
CN109542664A (en) * | 2018-12-13 | 2019-03-29 | 平安科技(深圳)有限公司 | File verification method, apparatus and computer equipment based on artificial intelligence |
Non-Patent Citations (1)
Title |
---|
吴晓勇;杨频;胡晓勤;臧文娟;: "基于重复数据消除的差异备份方法" * |
Also Published As
Publication number | Publication date |
---|---|
CN111428465B (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111563509B (en) | Tesseract-based substation terminal row identification method and system | |
US7729013B2 (en) | Image processing apparatus, image processing method, and computer program product | |
WO2008105611A1 (en) | Database auto-building method for link of search data in gis system using cad drawings | |
CN105554265A (en) | Bridge detection method, handheld terminal and cloud server | |
CN109977337A (en) | A kind of webpage design control methods, device, equipment and readable storage medium storing program for executing | |
CN113722872B (en) | Method for extracting start and end point attributes of roads in batch in urban area road network | |
CN110188074B (en) | File editing mark display method and equipment | |
CN108121648B (en) | Interface error monitoring method | |
CN112307145A (en) | Batch updating method, device, medium and equipment for historical map data | |
CN106919501A (en) | Static Analysis Method and instrument based on defect mode | |
CN110688889B (en) | Image-text content comparison method and device | |
CN111428465A (en) | Converter station direct current control protection software modification work auxiliary verification method | |
CN110458202B (en) | Picture processing method, device and equipment and computer readable storage medium | |
CN113420686A (en) | Power transmission line inspection method, device and system | |
WO2015033393A1 (en) | Design change management assistance method and system therefor | |
CN109190275B (en) | Length labeling method and device and computer readable storage medium | |
CN104572450A (en) | Method and device for detecting resource allocation | |
CN116662211B (en) | Display interface testing method, device, equipment and medium | |
CN115168206A (en) | UI (user interface) testing method and device | |
CN115457769B (en) | Data correction method, device, equipment and readable storage medium | |
CN113886745B (en) | Page picture testing method and device and electronic equipment | |
CN113886247A (en) | Method and system for positioning dynamic elements of mobile terminal user interface | |
CN113485707B (en) | Automatic checking method for UI (user interface) | |
CN106570825B (en) | Picture superposition system and method based on transparent pictures | |
CN106844299B (en) | Geological element labeling method of document |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |