CN111428465B - Auxiliary calibration method for direct-current control protection software modification work of converter station - Google Patents

Auxiliary calibration method for direct-current control protection software modification work of converter station Download PDF

Info

Publication number
CN111428465B
CN111428465B CN202010214127.9A CN202010214127A CN111428465B CN 111428465 B CN111428465 B CN 111428465B CN 202010214127 A CN202010214127 A CN 202010214127A CN 111428465 B CN111428465 B CN 111428465B
Authority
CN
China
Prior art keywords
file
files
modified
current control
checked
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.)
Active
Application number
CN202010214127.9A
Other languages
Chinese (zh)
Other versions
CN111428465A (en
Inventor
闫全全
黄致远
钱逸磊
徐敏
郑斌
李晟
江飞
苏丽倩
刘孝
马英恺
阴春晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Shanghai Electric Power Co Ltd
Original Assignee
State Grid Shanghai Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Shanghai Electric Power Co Ltd filed Critical State Grid Shanghai Electric Power Co Ltd
Priority to CN202010214127.9A priority Critical patent/CN111428465B/en
Publication of CN111428465A publication Critical patent/CN111428465A/en
Application granted granted Critical
Publication of CN111428465B publication Critical patent/CN111428465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a correction work auxiliary verification method for 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; step 3: comparing files to be checked byte by byte, and judging whether differences exist; step 4: respectively carrying out screenshot preservation on pages of the files to be checked, classifying the files into homonymous modified files, and updating a file list; step 5: performing exclusive OR processing on the two images obtained in the step 4 in an effective area to obtain a difference contrast graph; step 6: judging whether the difference contrast pictures are all black; step 7: and sending the file to be manually checked to a staff end to finish auxiliary check of the direct current control protection software modification work of the converter station. Compared with the prior art, the invention has the advantages of reducing the workload of workers, improving the working efficiency and the like.

Description

Auxiliary calibration method for direct-current control protection software modification work of converter station
Technical Field
The invention relates to an auxiliary verification method, in particular to a correction work auxiliary verification method for 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 Hidraw program pages, the technical route is based on MACH2 technology of ABB company, and the converter station using the same technical route faces the following production problems: 1. the number of converter station direct current control protection software modification works is large each year, and the conventional converter station can generate about 4 software modifications each year. 2. The number of direct current control protection program files is numerous, such as 8721 Hidraw program pages are shared by direct current control protection of a conventional converter station, 1450 program pages are controlled in each set of pole protection, 795 program pages are controlled in each set of pole protection, 2086 program pages are controlled by three sets of alternating current filter protection AFPs, 1139 program pages are controlled by four sets of alternating current measurement and control ACPs, 410 program pages are controlled in each set of conversion non-electric quantity, and the like. 3. The characters and lines in each program page are numerous, the verification after the direct current control protection software is modified in the current engineering is directly carried out by means of the contrast and inspection of the naked eyes, the flow chart is shown in figure 1, the accuracy of directly checking the modified pages by the naked eyes cannot be guaranteed, the time is long, and the verification of many pages is more difficult. In the prior art, a method for assisting in manually verifying the modification work of the direct-current control protection software of the converter station does not exist.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide a correction work auxiliary verification method for the direct current control protection software of the converter station, which reduces the workload of workers and improves the working efficiency.
The aim of the invention can be achieved by the following technical scheme:
a method for auxiliary verification of the direct current control protection software modification work of a converter station 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 checked 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 pages of the modified newly added files;
step 3: comparing files to be checked byte by byte, judging whether the differences exist, if so, executing the step 4, otherwise, classifying the files as the same files, and updating a file list;
step 4: respectively carrying out screenshot preservation on pages of the files to be checked, classifying the files into homonymous modified files, and updating a file list;
step 5: performing exclusive OR processing on the two images obtained in the step 4 in an effective area to obtain a difference contrast graph;
step 6: judging whether the difference contrast pictures are all black, if so, executing the step 7, otherwise, classifying the files into the same-name modified files with the pictures not being identical, updating a file list, storing the difference contrast pictures, and then executing the step 7;
step 7: and sending the file to be manually checked to a staff end to finish auxiliary check of the direct current control protection software modification work of the converter station.
Preferably, the files to be verified in the step 1 include a file before software modification and a file after software modification; the file data to be checked comprises a file name, a file format, a folder in which the file is located and a relative path of the file.
More preferably, the specific method for determining whether the file names of the files to be checked are the same in the step 2 is as follows: whether file names of files with the same file format under the same relative path are the same is judged one by one.
More preferably, the method for determining that the file is a modified new file or a modified deleted file in the step 2 is as follows: judging whether files are contained in the software modified folder, if so, classifying the software modified files as modified newly added files, and performing screenshot storage on pages of the files, otherwise, classifying the software modified files as modified deleted files.
Preferably, the file list includes file types and file names corresponding to the file types; the file category comprises the same file, a new file after modification, a deleted file after modification, a same-name modified file and a same-name modified file with the picture which are not identical.
Preferably, the method for determining the effective area is as follows:
the method comprises the steps of taking a screenshot center of a page before software modification as a starting point, upwards searching a longest transverse line before the page toolbar is reached, and taking the upper edge of a behavior effective area where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and using the lower edge of the behavior effective area where the transverse line is positioned; searching the longest vertical line to the left before reaching the left side of the screen, 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 found to the right, and the column where the vertical line is located is taken as the right edge of the effective area.
Preferably, the specific method for judging whether the difference contrast map is black in step 6 is as follows: and sequentially judging whether all the pixel points in the effective area of the difference contrast map are black.
Preferably, the file to be manually checked in the step 7 includes: and comparing the difference with the screenshot of the page of the new file after modification.
Compared with the prior art, the invention has the following advantages:
the auxiliary verification method overcomes the problems that the traditional direct current control protection software modification work verification method is low in efficiency and cannot guarantee accuracy, and the modified places are highlighted by performing exclusive OR processing on the files before software modification and the file screenshots after software modification in an effective area, so that the positions needing to be manually verified are quickly found out, the workload of staff is greatly reduced, and the work efficiency of the staff is improved.
Drawings
FIG. 1 is a schematic flow chart of a conventional direct current control protection software modification work verification method;
FIG. 2 is a flow chart of an auxiliary checking method according to the present invention;
FIG. 3 is a schematic view of an effective area of an image according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a differential comparison chart in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The embodiment relates to a correction work auxiliary verification method for direct current control protection software of a converter station, which is a program embedded in a computer, and the flow chart 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 checked comprise a file before software modification and a file after software modification; the file data to be checked comprises a file name, a file format, a folder in which the file is located and a relative path of the file;
step 2: judging whether the file names of the files to be checked 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 pages of the modified newly added files;
the specific method for judging whether the file names of the files to be checked are the same in the step 2 is as follows: judging whether file names of files with the same file format are the same or not one by one under the same relative path;
the method for judging the file as the new file after modification or deleting the file after modification in the step 2 is as follows: judging whether files are contained in the folder after the software modification, if so, classifying the files after the software modification as new files after the modification, and performing screenshot storage on pages of the files after the modification, otherwise, classifying the files before the software modification as deleted files after the modification.
Step 3: comparing files to be checked byte by byte, judging whether the differences exist, if so, executing the step 4, otherwise, classifying the files as the same files, and updating a file list;
step 4: respectively carrying out screenshot preservation on pages of the files to be checked, classifying the files into homonymous modified files, and updating a file list;
step 5: performing exclusive OR processing on the two images obtained in the step 4 in an effective area to obtain a difference contrast graph; in the embodiment, the exclusive or function in Microsoft VB is directly called to exclusive or process the two images, the finally obtained difference comparison graph is shown in fig. 4, the same parts of the two images are all black, and different parts are distinguished by other colors, so that when a worker sees the difference comparison graph, the worker can directly carry out manual verification on the modified position, the verification difficulty and the verification time are greatly shortened, and the work efficiency is improved;
step 6: judging whether the difference contrast pictures are all black, if so, executing the step 7, otherwise, classifying the files into the same-name modified files with the pictures not being identical, updating a file list, storing the difference contrast pictures, and then executing the step 7;
step 7: the file to be manually checked is sent to a staff end, and auxiliary checking of the direct current control protection software modification work of the converter station is completed; in this embodiment, the files to be checked manually include a difference comparison graph and a screenshot of a modified newly added file.
The file list in this embodiment includes file types and file names corresponding to the file types, where the file types include the same file, a new file after modification, a deleted file after modification, a same-name modified file and a same-name modified file with different pictures, and the same-name modified file in this embodiment includes a same-name modified file with identical images but different compiled codes and a same-name modified file with different pictures.
The method for determining the effective area in this embodiment is as follows: the method comprises the steps of taking a screenshot center of a page before software modification as a starting point, upwards searching a longest transverse line before the page toolbar is reached, and taking the upper edge of a behavior effective area where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and using the lower edge of the behavior effective area where the transverse line is positioned; searching the longest vertical line to the left before reaching the left side of the screen, 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 to the right, and the column where the vertical line is located is taken as the right edge of the effective area, and the effective area selected in this embodiment is shown as a black thick line frame in fig. 3. In this embodiment, the method for determining whether the pixel point in the difference contrast map is completely black includes: and sequentially judging whether all the pixel points in the effective area of the difference contrast map are black. Therefore, the selection of the effective area can greatly reduce the workload when pixel point detection is carried out on the difference contrast image, and improve the working efficiency.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. The auxiliary calibration method for the direct current control protection software modification work of the converter station is a program embedded in a computer, and is characterized by comprising the following steps of:
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, 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 pages of the modified newly added files;
step 3: comparing files to be checked byte by byte, judging whether the differences exist, if so, executing the step 4, otherwise, classifying the files as the same files, and updating a file list;
step 4: respectively carrying out screenshot preservation on pages of the files to be checked, classifying the files into homonymous modified files, and updating a file list;
step 5: performing exclusive OR processing on the two images obtained in the step 4 in an effective area to obtain a difference contrast graph;
step 6: judging whether the difference contrast pictures are all black, if so, executing the step 7, otherwise, classifying the files into the same-name modified files with the pictures not being identical, updating a file list, storing the difference contrast pictures, and then executing the step 7;
step 7: and sending the file to be manually checked to a staff end to finish auxiliary check of the direct current control protection software modification work of the converter station.
2. The auxiliary verification method for the direct current control protection software modification work of the converter station according to claim 1, wherein the files to be verified in the step 1 comprise files before the software modification and files after the software modification; the file data to be checked comprises a file name, a file format, a folder in which the file is located and a relative path of the file.
3. The method for auxiliary verification of direct current control protection software modification work of a converter station according to claim 2, wherein the specific method for judging whether the file names of the files to be verified are the same in step 2 is as follows: whether file names of files with the same file format under the same relative path are the same is judged one by one.
4. The auxiliary verification method for modifying the direct current control protection software of the converter station according to claim 2, wherein the method for judging the file as the new modified file or the deleted modified file in the step 2 is as follows: judging whether files are contained in the software modified folder, if so, classifying the software modified files as modified newly added files, and performing screenshot storage on pages of the files, otherwise, classifying the software modified files as modified deleted files.
5. The method for auxiliary verification of direct current control protection software modification work of a converter station according to claim 1, wherein the file list comprises file types and file names corresponding to the file types; the file category comprises the same file, a new file after modification, a deleted file after modification, a same-name modified file and a same-name modified file with the picture which are not identical.
6. The auxiliary calibration method for modifying the direct current control protection software of the converter station according to claim 1, wherein the method for determining the effective area is as follows:
the method comprises the steps of taking a screenshot center of a page before software modification as a starting point, upwards searching a longest transverse line before the page toolbar is reached, and taking the upper edge of a behavior effective area where the transverse line is located; searching the longest transverse line before reaching the page status bar downwards, and using the lower edge of the behavior effective area where the transverse line is positioned; searching the longest vertical line to the left before reaching the left side of the screen, 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 found to the right, and the column where the vertical line is located is taken as the right edge of the effective area.
7. The auxiliary calibration method for modifying the dc control protection software of a converter station according to claim 1, wherein the specific method for determining whether the difference contrast map is black in all in step 6 is as follows: and sequentially judging whether all the pixel points in the effective area of the difference contrast map are black.
8. The method for auxiliary verification of direct current control protection software modification work of a converter station according to claim 1, wherein the files to be manually verified in the step 7 include: and comparing the difference with the screenshot of the page of the new file after modification.
CN202010214127.9A 2020-03-24 2020-03-24 Auxiliary calibration method for direct-current control protection software modification work of converter station Active CN111428465B (en)

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 CN111428465A (en) 2020-07-17
CN111428465B true 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 (5)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140097250A1 (en) * 2012-10-04 2014-04-10 Thomas Charles Antognini Variable formatting of digital data into a pattern

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
吴晓勇 ; 杨频 ; 胡晓勤 ; 臧文娟 ; .基于重复数据消除的差异备份方法.计算机工程.2010,(21),全文. *

Also Published As

Publication number Publication date
CN111428465A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN111563509A (en) Tesseract-based substation terminal row identification method and system
WO2008105611A1 (en) Database auto-building method for link of search data in gis system using cad drawings
CN106910195B (en) Webpage layout monitoring method and device
CN105554265A (en) Bridge detection method, handheld terminal and cloud server
CN116051551B (en) Display screen defect detection method and related device based on image processing
CN109977337A (en) A kind of webpage design control methods, device, equipment and readable storage medium storing program for executing
CN108121648B (en) Interface error monitoring method
CN112348835A (en) Method and device for detecting material quantity, electronic equipment and storage medium
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
CN111428465B (en) Auxiliary calibration method for direct-current control protection software modification work of converter station
CN116682130A (en) Method, device and equipment for extracting icon information and readable storage medium
CN112486384B (en) Picture examination processing method and related device
CN113704111A (en) Page automatic testing method, device, equipment and storage medium
CN116052193B (en) RPA interface dynamic form picking and matching method and system
CN112818937A (en) Excel file identification method and device, electronic equipment and readable storage medium
US11906441B2 (en) Inspection apparatus, control method, and program
JP2017111500A (en) Character recognizing apparatus, and program
CN104199894A (en) Method and device for scanning files
JP6793598B2 (en) Inspection support equipment, inspection support methods, and inspection support programs
CN116662211B (en) Display interface testing method, device, equipment and medium
CN115457769B (en) Data correction method, device, equipment and readable storage medium
CN115168206A (en) UI (user interface) testing method and device
CN103593331A (en) Page layout method and device

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