CN102621432A - Method for automatically testing single board of protective relay device - Google Patents

Method for automatically testing single board of protective relay device Download PDF

Info

Publication number
CN102621432A
CN102621432A CN2012101050102A CN201210105010A CN102621432A CN 102621432 A CN102621432 A CN 102621432A CN 2012101050102 A CN2012101050102 A CN 2012101050102A CN 201210105010 A CN201210105010 A CN 201210105010A CN 102621432 A CN102621432 A CN 102621432A
Authority
CN
China
Prior art keywords
test
veneer
program
testing
relaying device
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
Application number
CN2012101050102A
Other languages
Chinese (zh)
Other versions
CN102621432B (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.)
Beijing Sifang Automation Co Ltd
Beijing Sifang Engineering Co Ltd
Original Assignee
Beijing Sifang Automation 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 Beijing Sifang Automation Co Ltd filed Critical Beijing Sifang Automation Co Ltd
Priority to CN201210105010.2A priority Critical patent/CN102621432B/en
Publication of CN102621432A publication Critical patent/CN102621432A/en
Application granted granted Critical
Publication of CN102621432B publication Critical patent/CN102621432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method for automatically testing a single board of a protective relay device. According to the method, a hook function is added in a program on a single board plug-in unit; and when a test program data packet is sent, the hook function can acquire the corresponding data packet and store the data packet in an executable RAM region. An application program can automatically jump to the RAM region to execute the test program and test whether the functions of the single board are normal or not; and after the single board is powered down and powered up again, the application program cleans up the RAM region data packet after self-checking the RAM, and the test program is automatically deleted. The method disclosed by the invention can bring conveniences for testing the single board of the protective relay device, reduce the single board debugging steps, and improve the production efficiency.

Description

A kind of protective relaying device veneer automatic test approach
Technical field
The invention belongs to electric system power electronics and relay protection field, be specifically related to a kind of method of protective relaying device single-board testing, is a kind of safe protective relaying device veneer automatic test approach.
Background technology
In the production and use of devices such as relay protection, often need carry out test job.As after having produced veneer (the veneer here is meant after printed board is through dress weldering corresponding electronic element and is installed in the electronic component plug-in unit that can independently accomplish certain function in the device), test veneer, whether testing hardware is intact; In the device production run, test device hardware, whether whether test function is complete, have performance index to descend; In use, regularly monitor appliance arrangement, whether inspection hardware is normal.
These detection methods because repeatedly whether the peripheral hardware and the loop, inside and outside of proving installation be intact generally realize through writing certain test procedure.These test procedures will be operated the peripheral hardware of single-chip microcomputer or DSP.Because relay protection device is to the harsh requirement of security reliability; Generally be not placed on test procedure in the executable program of the normal operation of equipment; In order to avoid during the normal operation of device because software anomaly causes jumping to the test procedure district, cause the protective device abnormal operation.So protection equipment producer all is directed against each hardware single board and is designed with independently autotest program.
Independently autotest program runs in the single-chip microcomputer or DSP of each plug-in unit in the protective device, through certain stipulations and host computer procedure, carries out test instruction and reports the test result report.
Adopt independently that autotest program can detect some abnormal problems in the operational process certainly, but the place of a lot of inconveniences also arranged:
1, brings extra procedure to production, need download again after test finishes.
2, after peripheral hardware changes perhaps method of testing upgrading, need the upgrading autotest program, make troubles to management.What is more, after communication protocol changes, and a lot of autotest programs of upgrading in order to optimize an autotest program sometimes.
3, in the equipment of normal operation; Owing to generally do not allow to revise working procedure when regularly detecting, can only with the application program of protection with self-checking function do test, based on security consideration; These tests are generally lacked than special autotest program function, and are perhaps thorough inadequately.
Summary of the invention
For solving the above problem that exists in the prior art, the application discloses a kind of protective relaying device veneer automatic test approach.
The following technical scheme of the concrete employing of the present invention.
A kind of protective relaying device veneer automatic test approach is characterized in that said automatic test approach may further comprise the steps:
(1) leaves autotest program in test background as packet; " autotest program " described in the present invention is the existing single-board testing program that can realize in the prior art, and this belongs to prior art, and the application's inventive point does not lie in this;
(2) in the application program of each veneer of protective relaying device, a Hook Function is set is used for responding the autotest program data packet message;
(3) when needs are tested the protective relaying device veneer, test background is with reaching corresponding protective relaying device veneer under the said autotest program;
(4) when the Hook Function in the protective relaying device veneer receives this packet; Can carry out the RAM district for one that said packet is stored in the veneer; Judge afterwards autotest program whether pass through by verification, wherein the autotest program verification comprises parity checking, CRC check supervisor method of calibration;
(5) the autotest program verification jumps to the RAM district through the back application program; Begin to carry out autotest program; Said autotest program need at first to judge whether the testing ram district, and whether intact, again program is retracted RAM district entering testing service responding process after test is accomplished if like needs test procedure being transferred among the flash operation testing ram district; As do not need the testing ram district, then directly get into the testing service responding process;
(6) after testing service responding process initialization finishes, wait for that test background issues the testing service order, receive the testing service order after; Begin to transmit test configurations information; Said test configurations information comprises the hardware parameter information of veneer to be measured, the information etc. that is provided with of hardware to be measured, and (pointer is tested separately hardware cell on the veneer or module to carry out the individual event test after test configurations information transmits successfully; Like flash; AD, power supply etc.), after having responded all testing service orders, withdraw from test procedure;
(7) testing progress and test result are sent to the host computer demonstration in real time through the designated port on the veneer to be measured, and the veneer power down also powers on once more behind EOT, and during application program self check RAM, cleaning can be carried out RAM district packet, and test procedure is by deletion automatically.
The present invention once downloads to test procedure in the veneer to be measured, after two veneers to be measured link to each other through backboard, can discern automatically and automatically a plate is made as server end, and another piece plate is made as end to be tested, and end to be tested is begun test.Treat tested test plate (panel) through test the back both role exchanges another piece plate is tested.So just, can realize the function that two boards is tested simultaneously automatically, improve the efficient of test.Under the lower situation of hazard rate, this mode can improve detection efficiency greatly, because manual the installation once can have been detected two veneers simultaneously.With former mode, the manual installation once can only be tested a tested single board.
Mode that in addition can also be through external wire jumper is set the role of veneer, and after a corner look was confirmed, the opposing party can adapt to the role who confirms oneself automatically and test automatically.Like this,, can test veneer targetedly, fast the reason of problem identificatioin veneer place when detecting certain a pair of veneer or a veneer when problem is arranged.Also can select two automatic test modes of plate still to confirm that through wire jumper a good veneer is a server end, uses the quality of these other veneers to be measured of piece single-board testing at every turn according to the height of single board default rate to be measured.
Another innovative point of the present invention is that test procedure can be with program jump when test memory module or flash module; Such as original program in flash; Program can be transferred to (or among the flash that had detected) in the internal memory when measuring flash, and flash is comprehensively detected.In like manner, also can internally deposit into row comprehensively detects.Therefore improve the comprehensive of test, promoted the reliability of device.
The present invention has following technique effect:
1, autotest program is not placed on program inside, is placed on test background as packet, and veneer re-powered test procedure and can be deleted automatically after test was accomplished, and had intrinsic safety.
2, adopt application program additional interface mode, program is unified.Test the effect unanimity Anywhere.No matter whether hardware is identical, the interface function of the various device of identical platform is consistent.
3, hardware changes, and the program that runs on chip can not made change, greatly reduces the upgrading frequency of embedded software.
4, server program and test procedure merging is not required to be server board and test plate (panel) to be measured is downloaded distinct program respectively, can realize identification automatically between two plates, improves testing efficiency.
5, test procedure can switch between internal memory and flash, so that complete test memory and flash storage unit situation.
Description of drawings
Fig. 1 is a protective relaying device veneer automatic test approach schematic flow sheet of the present invention;
Fig. 2 is a method of testing hardware connection layout of the present invention.
Embodiment
Below in conjunction with Figure of description technical scheme of the present invention is done further explain.
Accompanying drawing 1 is the process flow diagram of the inventive method, and veneer to be measured links to each other through backboard CAN bus, also can pass through the Ethernet switch networking, and server (or claiming test background) sends the test procedure packet on the net at LAN or CAN.
Increase a Hook Function in the veneer to be measured, this function can be carried out specific action after receiving certain data packet message and verification correctly.
When the request of the test file of transmission was arranged, veneer to be measured extracted the test procedure executable code from message packets, deposit in the RAM district of appointment when server (or claiming test background).
Meeting after test procedure transmits successfully, veneer to be measured are sent and are transmitted success message and close and transmit the test file request, and said veneer to be measured carries out verification to autotest program, verification through after begin to judge whether testing ram; If autotest program verification failure can be sent the verification failed message, get into the state after the fault processing function returns initialization again.
When needing testing ram; Veneer to be measured can be transferred to test procedure among the flash and move; Also can carry out verification to it after the transfer, verification is through just beginning testing ram, and the RAM district that again test procedure is moved back into appointment is accomplished in test; Get into the initial phase of testing service responding process, the direct entering of test procedure should the stage in the time need not testing RAM.If transfer to the flash process verification failure from the RAM district at test procedure, then send flash test crash message (test procedure shifts failure can be regarded as the flash existing problems), get into the state that returns after the fault processing function after the initialization.
After the initialization of testing service responding process, can judge at first whether test command changes:, transmit and accomplish verification and transmit whether success if change then begin to transmit test configurations information; When transmitting successfully, begin to carry out the individual event test (hardware cell or module on the veneer are tested separately, like flash, AD; Power supply etc.); Judging behind the individual event EOT whether all test commands respond finishes, and withdraws from test procedure just finish like all test commands responses, and the newspaper test finishes; If test command does not change or test configurations information transmits failure, then send and judge whether all test commands respond after the test configurations information no change message and finish, do not finish as not responding, judge whether test command changes and rejudge just return.
Testing progress and test result are sent to host computer in real time through the designated port on the veneer to be measured and show, the veneer power down also powers on once more behind EOT, and during application program self check RAM, cleaning can be carried out RAM district packet, and test procedure is by deletion automatically.
In the automatic testing scheme of design, each hardware ingredient to veneer designs independently autotest program, and is compiled into executable code, forms packet.That packet that downloads to the operation in the veneer that this packet is said above being exactly.Comprise method of testing, flow process, criterion and stipulations in the packet to certain hardware ingredient.These packet independent numberings.To certain veneer, select the packet of adaptation, form a test template.Behind single board communication, packet is downloaded, is carried out one by one, and execution result (test result) is reported, and accomplishes test job.
After this veneer power down, the data in RAM district will not exist, and can not be performed even exist yet.Because after powering on, according to the plug-in unit setting, what move is application program.Behind the application program self check RAM, can thoroughly solve and be strayed into the test link in the operational process doing cleaning again in the zone.
To same type of veneer, a lot of peripheral hardwares are the same, can not overlapping development test use " packet ".These packets can generate in use at present, also can generate the back in advance and preserve.The benefit of generation is at present, can generate up-to-date code automatically according to the stipulations text at any time, and the benefit that generates in advance is to save time.Also can both be combined, to improve testing efficiency according to actual conditions.
The hardware of method of testing connects synoptic diagram shown in accompanying drawing 2, and two veneers to be measured link to each other through backboard CAN bus, and a plurality of serial ports can link to each other with the combination in any mode.Can one of them serial ports be linked to each other with host computer to veneer to be measured as required; Manual mode is selected test event; Can also two veneers to be measured and host computer be received on the switch simultaneously, host computer visits tested single board through Ethernet, selects test event.
When the test communication function; During like the testing CAN bus communication; Can transmit detecting information and order through serial ports or Ethernet, verify whether communication is normal, can be when in like manner testing Ethernet (or serial ports) communication through CAN bus or serial ports (or Ethernet) checking; That is to say that three networks can verify each other, guarantee the reliability of communication.In addition; When serial ports is tested; Perhaps, board under test can exist a plurality of serial ports or Ethernet interface, at this moment need not fix the port corresponding relation of two plates, and program can be accomplished automatically identification each other; Confirm that the other side is that which port and which port of oneself communicate, and improves the dirigibility and the adaptivity of method of testing.

Claims (6)

1. protective relaying device veneer automatic test approach is characterized in that said automatic test approach may further comprise the steps:
(1) leaves autotest program in test background as packet;
(2) in the application program of each veneer of protective relaying device, a Hook Function is set is used for responding the autotest program data packet message;
(3) when needs are tested the protective relaying device veneer, test background is with reaching corresponding protective relaying device veneer under the said autotest program;
(4) when the Hook Function in the protective relaying device veneer receives this packet, can carry out the RAM district, judge afterwards autotest program whether pass through by verification for one that said packet is stored in the veneer
(5) the autotest program verification jumps to the RAM district through the back application program; Begin to carry out autotest program; Said autotest program need at first to judge whether the testing ram district, and whether intact, again program is retracted RAM district entering testing service responding process after test is accomplished if like needs test procedure being transferred among the flash operation testing ram district; As do not need the testing ram district, then directly get into the testing service responding process;
(6) after testing service responding process initialization finishes; Wait for the testing service order that test background is sent; After receiving the testing service order; Begin to transmit test configurations information, carry out the individual event test after test configurations information transmits successfully, after having responded all testing service orders, withdraw from test procedure;
(7) testing progress and test result are sent to the host computer demonstration in real time through the designated port on the veneer to be measured, and the veneer power down also powers on once more behind EOT, and during application program self check RAM, cleaning can be carried out RAM district packet, and test procedure is by deletion automatically.
2. protective relaying device veneer automatic test approach according to claim 1 is characterized in that:
In step (1); To be compiled into executable code to the independently autotest program of each hardware ingredient of protective relaying device veneer; Form packet, said packet comprises method of testing, flow process, criterion and the stipulations to certain hardware ingredient.
3. protective relaying device veneer automatic test approach according to claim 2 is characterized in that:
Said packet can generate in use at present, also can generate the back in advance and preserve.
4. protective relaying device veneer automatic test approach according to claim 1 is characterized in that:
In step (3); When autotest program being downloaded on two veneers to be measured respectively, two veneers to be measured link to each other through backboard and discern each other automatically, and a side is as server end; The opposing party is as test lead; The test lead veneer is carried out functional test, and two plates exchange the role after test finishes, and another piece veneer is tested.
5. protective relaying device veneer automatic test approach according to claim 1 is characterized in that:
In step (3), when autotest program being downloaded on two veneers to be measured respectively, which piece veneer artificially is set as server end through hardware jumper, another piece is as test lead.
6. protective relaying device veneer automatic test approach according to claim 1 is characterized in that:
Said autotest program can comprehensively be tested the storage unit of internal memory on the veneer and flash.In test process, can autotest program be imported to and tests full memory the flash from carrying out the RAM district, or can carry out the whole flash of test the RAM district from autotest program is imported to from flash.
CN201210105010.2A 2012-04-11 2012-04-11 Method for automatically testing single board of protective relay device Active CN102621432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210105010.2A CN102621432B (en) 2012-04-11 2012-04-11 Method for automatically testing single board of protective relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210105010.2A CN102621432B (en) 2012-04-11 2012-04-11 Method for automatically testing single board of protective relay device

Publications (2)

Publication Number Publication Date
CN102621432A true CN102621432A (en) 2012-08-01
CN102621432B CN102621432B (en) 2014-02-05

Family

ID=46561464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210105010.2A Active CN102621432B (en) 2012-04-11 2012-04-11 Method for automatically testing single board of protective relay device

Country Status (1)

Country Link
CN (1) CN102621432B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749487A (en) * 2015-03-20 2015-07-01 中国南方电网有限责任公司 Protection device and loops thereof detection method under no-power-failure line condition
CN107943676A (en) * 2016-10-12 2018-04-20 腾讯科技(深圳)有限公司 The performance test data treating method and apparatus of application operating nonvolatile memory
CN110596569A (en) * 2019-08-20 2019-12-20 福州瑞芯微电子股份有限公司 PCBA board testing method and device
CN110687429A (en) * 2019-09-18 2020-01-14 西安万像电子科技有限公司 Single board testing method, single board and system
CN111355299A (en) * 2019-07-05 2020-06-30 北京天能继保电力科技有限公司 Data acquisition and processing method for secondary device of power system
CN111414176A (en) * 2020-03-17 2020-07-14 上海辛格林纳新时达电机有限公司 Program burning method, program burning device, electronic equipment and storage medium
CN112904105A (en) * 2021-01-15 2021-06-04 许继集团有限公司 Method, device and system for testing initialization function of transformer substation relay protection device
CN113820586A (en) * 2021-08-30 2021-12-21 南京国电南自电网自动化有限公司 Single board automatic test system and method suitable for relay protection device
CN113945792A (en) * 2021-10-29 2022-01-18 许继集团有限公司 RTDS-based automatic restart test system and method for relay protection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1288161A (en) * 1999-09-11 2001-03-21 深圳市华为技术有限公司 Single board festing method and device
CN1725027A (en) * 2004-07-23 2006-01-25 中兴通讯股份有限公司 Method of realizing single board station testing and its system
CN101159499A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 System and method of testing hardware module
WO2011088714A1 (en) * 2010-01-22 2011-07-28 北京金山软件有限公司 Method, device and system for running application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1288161A (en) * 1999-09-11 2001-03-21 深圳市华为技术有限公司 Single board festing method and device
CN1725027A (en) * 2004-07-23 2006-01-25 中兴通讯股份有限公司 Method of realizing single board station testing and its system
CN101159499A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 System and method of testing hardware module
WO2011088714A1 (en) * 2010-01-22 2011-07-28 北京金山软件有限公司 Method, device and system for running application

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749487B (en) * 2015-03-20 2017-08-22 中国南方电网有限责任公司 A kind of method in check protection device and its loop under circuit no cut-off condition
CN104749487A (en) * 2015-03-20 2015-07-01 中国南方电网有限责任公司 Protection device and loops thereof detection method under no-power-failure line condition
CN107943676A (en) * 2016-10-12 2018-04-20 腾讯科技(深圳)有限公司 The performance test data treating method and apparatus of application operating nonvolatile memory
CN107943676B (en) * 2016-10-12 2020-10-30 腾讯科技(深圳)有限公司 Performance test data processing method and device for operating nonvolatile memory by application
CN111355299B (en) * 2019-07-05 2022-02-01 北京天能继保电力科技有限公司 Data acquisition and processing method for secondary device of power system
CN111355299A (en) * 2019-07-05 2020-06-30 北京天能继保电力科技有限公司 Data acquisition and processing method for secondary device of power system
CN110596569A (en) * 2019-08-20 2019-12-20 福州瑞芯微电子股份有限公司 PCBA board testing method and device
CN110687429A (en) * 2019-09-18 2020-01-14 西安万像电子科技有限公司 Single board testing method, single board and system
CN111414176A (en) * 2020-03-17 2020-07-14 上海辛格林纳新时达电机有限公司 Program burning method, program burning device, electronic equipment and storage medium
CN111414176B (en) * 2020-03-17 2024-03-19 上海辛格林纳新时达电机有限公司 Program burning method, device, electronic equipment and storage medium
CN112904105A (en) * 2021-01-15 2021-06-04 许继集团有限公司 Method, device and system for testing initialization function of transformer substation relay protection device
CN113820586A (en) * 2021-08-30 2021-12-21 南京国电南自电网自动化有限公司 Single board automatic test system and method suitable for relay protection device
CN113945792A (en) * 2021-10-29 2022-01-18 许继集团有限公司 RTDS-based automatic restart test system and method for relay protection device
CN113945792B (en) * 2021-10-29 2024-05-07 河南源网荷储电气研究院有限公司 Automatic restarting test system and method for relay protection device based on RTDS

Also Published As

Publication number Publication date
CN102621432B (en) 2014-02-05

Similar Documents

Publication Publication Date Title
CN102621432B (en) Method for automatically testing single board of protective relay device
CN108965044B (en) Electric vehicle charging facility communication data link health state testing device, system and method
CN105302716B (en) Test method, device under the development mode of interflow
CN102713773B (en) For the security module of automation equipment
EP3297214B1 (en) Systems and methods for automated determination of network device transiting data attributes
CN103970650B (en) Distributed testing method and device
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN112653738B (en) Internet of things network debugging system and method
CN103812726A (en) Automated testing method and device for data communication equipment
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN108180599A (en) Debugging method, debugging device and computer readable storage medium
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN103780432A (en) Parking lot operation and maintenance method and system, lane controller, server and mobile terminal
CN102840992B (en) Satellite-borne self-testing method based on satellite network
CN102130784A (en) Communication error monitoring system of power device based on Ethernet and method thereof
CN105636234A (en) Station opening method, base station, base station controller and station opening system
CN103186440B (en) Detect subcard method, apparatus and system in place
CN105052085A (en) System and method for testing a data packet signal transceiver
CN105069587A (en) Mobile Internet-based relay protection verification device
CN102508754B (en) Method for detecting 1553B communication interface
EP3457286B1 (en) Method and computing device for commissioning an industrial automation control system
CN104391718A (en) EPLC (Embedded Programmable Logic Controller) program remote downloading method
CN107342789A (en) A kind of group-net communication method of cable anti-theft monitoring system
CN103457955B (en) The migration data verification method of electric power scheduling automatization system
CN109032867A (en) A kind of method for diagnosing faults, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190321

Address after: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing.

Co-patentee after: Beijing Sifang Jibao Engineering Technology Co., Ltd.

Patentee after: Beijing Sifang Jibao Automation Co., Ltd.

Address before: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing.

Patentee before: Beijing Sifang Jibao Automation Co., Ltd.