CN102621432B - 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
CN102621432B
CN102621432B CN201210105010.2A CN201210105010A CN102621432B CN 102621432 B CN102621432 B CN 102621432B CN 201210105010 A CN201210105010 A CN 201210105010A CN 102621432 B CN102621432 B CN 102621432B
Authority
CN
China
Prior art keywords
test
veneer
program
testing
autotest
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
CN201210105010.2A
Other languages
Chinese (zh)
Other versions
CN102621432A (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

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 procedure of the devices such as relay protection, often need to carry out test job.As produced veneer (the veneer here refer to printed board after welding equipment corresponding electronic element, be arranged in device can the certain function of complete independently electronic component plug-in unit) after, test veneer, whether testing hardware intact; In device production run, test device hardware, whether whether test function is complete, have performance index to decline; In use, regularly to appliance arrangement, monitor, check that whether hardware is normal.
These detection methods, because whether peripheral hardware and the loop, inside and outside of proving installation be repeatedly intact, generally realize by writing certain test procedure.These test procedures will operate the peripheral hardware of single-chip microcomputer or DSP.Due to the harsh requirement of relay protection device to security reliability; generally test procedure is not placed 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 test procedure district, cause protective device abnormal operation.So protection equipment manufacturer is designed with independently autotest program for each hardware single board.
Independently autotest program runs in the single-chip microcomputer or DSP of each plug-in unit in protective device, by certain stipulations and host computer procedure, carries out test instruction and reports test result report.
Adopt independently autotest program certainly can detect some abnormal problems in operational process, but also have the place of a lot of inconveniences:
1, to production, bring extra operation, after being completed, need again to download.
2, after peripheral hardware changes or method of testing is upgraded, the autotest program of need to upgrading, makes 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; generally do not allow to revise working procedure owing to regularly detecting, can only with the application program of protection with self-checking function test, based on security consideration; these tests are general fewer than special autotest program function, or thorough not.
Summary of the invention
For solving the above problem existing in prior art, the application discloses a kind of protective relaying device veneer automatic test approach.
The present invention specifically by the following technical solutions.
A veneer automatic test approach, is characterized in that, described automatic test approach comprises the following steps:
(1) as packet, leave autotest program in test background; " autotest program " described in the present invention is the existing single-board testing program that can realize in 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 and is used for responding autotest program data packet message;
(3), when needs are tested protective relaying device veneer, test background will reach corresponding protective relaying device veneer under described autotest program;
(4) when the Hook Function in protective relaying device veneer receives this packet, can carry out RAM district for one that described packet is stored in veneer, judge afterwards autotest program whether pass through by verification, wherein autotest program verification comprises parity checking, CRC check supervisor method of calibration;
(5) autotest program verification jumps to RAM district by rear application program, start to carry out autotest program, first described autotest program judges whether to need testing ram district, whether as needs are transferred to test procedure, in flash, to move testing ram district intact, after having tested, again program is retracted to RAM district and entered testing service responding process, if do not needed testing ram district, directly enter testing service responding process;
(6) after testing service responding process initialization, wait for that test background issues testing service order, receive after testing service order, start to transmit test configurations information, described test configurations information comprises the hardware parameter information of veneer to be measured, the configuration information of hardware to be measured etc., (pointer is tested separately the hardware cell on veneer or module after test configurations information transmits successfully, to carry out individual event test, as flash, AD, power supply etc.), until responded all testing service order backed off after random test procedures;
(7) testing progress and test result are sent in real time host computer by the designated port on veneer to be measured and show, after test finishes, veneer power down also powers on again, during application program self check RAM, cleaning can be carried out RAM district packet, and test procedure is deleted automatically.
The present invention once downloads to test procedure in veneer to be measured, after two veneers to be measured are connected by backboard, can automatically identify and automatically a plate is made as to server end, and another piece plate is made as tested end, and tested end is started to test.After tested test plate (panel) is by test, both role exchanges are tested another piece plate.So just, can realize two boards and carry out the function of test automatically simultaneously, improve the efficiency of test.In the situation that hazard rate is lower, this mode can improve detection efficiency greatly, because manual, install and once can detect two veneers simultaneously.By former mode, manual installation once can only be tested a tested single board.
Can also to the role of veneer, set by the mode of external wire jumper in addition, after a corner look is determined, the opposing party automatically adaptation determines that the role of oneself tests automatically.Like this, when detecting certain a pair of veneer or a veneer and have problem, can to veneer, test targetedly, fast the reason place of problem identificatioin veneer.Also can select two automatic test modes of plate still by wire jumper, to determine that a good veneer is 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 by program jump when test memory module or flash module, such as original program is in flash, when measuring flash, program can be transferred to (or in the flash having detected) in internal memory, 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, as packet, is placed on test background, has tested rear veneer and has re-powered test procedure and can be automatically deleted, and has intrinsic safety.
2, adopt application program additional interface mode, program is unified.Test Anywhere effect consistent.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 and change, and greatly reduces the upgrading frequency of embedded software.
4, server program and test procedure merging, be not required to be server board and test plate (panel) to be measured is downloaded respectively distinct program, 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.
Accompanying drawing explanation
Fig. 1 is protective relaying device veneer automatic test approach schematic flow sheet of the present invention;
Fig. 2 is 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 described in further detail.
Accompanying drawing 1 is the process flow diagram of the inventive method, and veneer to be measured is connected by backboard CAN bus, also can pass through Ethernet switch networking, and server (or claiming test background) sends test procedure packet on the net in LAN (Local Area Network) or CAN.
In veneer to be measured, increase a Hook Function, this function receives after certain data packet message verification correctly, can carry out specific action.
When server (or claiming test background) has the request of the test file of transmission, veneer to be measured extracts test procedure executable code from message packets, deposits and specifies in RAM district.
Meeting after test procedure transmits successfully, veneer to be measured sends and transmits success message and cut out and transmit test file request, described veneer to be measured carries out verification to autotest program, verification by after start to judge whether testing ram; If autotest program verification unsuccessfully can send verification failed message, enter the wrong function of processing and return to again the state after initialization.
While needing testing ram, veneer to be measured can be transferred to test procedure in flash and move, after transfer, also can carry out verification to it, verification is by just starting testing ram, tested again test procedure to be moved back into and specified RAM district, enter the initial phase of testing service responding process, when not needing RAM to test, test procedure directly enters this stage.If verification failure in test procedure CongRAM district transfers to flash process, sends flash test crash message (test procedure shifts unsuccessfully can be considered as flash existing problems), enter the wrong function of processing and return to the state after initialization afterwards.
After the initialization of testing service responding process, first can judge whether test command changes: if changed, start to transmit test configurations information, whether transmission completes verification and transmits successful, when transmitting successfully, start to carry out individual event test (for the hardware cell on veneer or module, test separately, as flash, AD, power supply etc.), individual event test finishes that rear to judge whether all test commands respond complete, just as the complete test procedure that exits of all test commands responses, report is completed; If test command does not change or test configurations information transmits unsuccessfully, send that to judge whether all test commands respond after the unchanged message of test configurations information complete, as complete in do not responded, just return, judge whether test command changes and rejudge.
Testing progress and test result are sent in real time host computer by the designated port on veneer to be measured and show, after test finishes, veneer power down also powers on again, and during application program self check RAM, cleaning can be carried out RAM district packet, and test procedure is deleted automatically.
In the automatic testing scheme of design, each hardware composition part for veneer, designs independently autotest program, and is compiled into executable code, forms packet.This packet is exactly that packet that downloads to the operation in veneer of saying above.Packet comprises method of testing, flow process, criterion and the stipulations for certain hardware composition part.These packet independent numberings.For certain veneer, select the packet of adaptation, form a test template.After single board communication, packet is downloaded, is carried out one by one, and execution result (test result) is reported, and completes test job.
Data when this veneer power down Hou, RAM district will not exist, even if exist, can not be performed yet.Because after powering on, according to plug-in unit setting, what move is application program.After application program self check RAM, this region can be cleared up again, thoroughly solved and in operational process, be strayed into test link.
For same class veneer, a lot of peripheral hardwares are the same, can not overlapping development test use " packet ".These packets can now generate in use, also can generate in advance rear preservation.Now the benefit of generation is, can according to stipulations text, automatically generate up-to-date code at any time, and the benefit generating is in advance to save time.Also can both be combined according to actual conditions, to improve testing efficiency.
As shown in Figure 2, two veneers to be measured are connected by backboard CAN bus the hardware connection diagram of method of testing, and a plurality of serial ports can be connected in combination in any mode.Can one of them serial ports be connected with host computer for veneer to be measured as required, manual mode is selected test event, two veneers to be measured and host computer can also be received on switch simultaneously, host computer visits tested single board by Ethernet, selects test event.
When test communication function, during as testing CAN bus communication, can transmit detecting information and order by serial ports or Ethernet, verify that whether communication is normal, can be by CAN bus or serial ports (or Ethernet) checking while in like manner testing Ethernet (or serial ports) communication, that is to say that three networks can verify mutually, guarantee the reliability of communication.In addition, when serial ports is tested, perhaps can there is a plurality of serial ports or Ethernet interface in board under test, at this moment do not need to fix the port corresponding relation of two plates, program can be accomplished automatically identification mutually, determine that the other side is which port with which port of oneself communicates, and improves dirigibility and the adaptivity of method of testing.

Claims (6)

1. a protective relaying device veneer automatic test approach, is characterized in that, described automatic test approach comprises the following steps:
(1) as packet, leave autotest program in test background;
(2), in the application program of each veneer of protective relaying device, a Hook Function is set and is used for responding autotest program data packet message;
(3), when needs are tested protective relaying device veneer, test background will reach corresponding protective relaying device veneer under described autotest program;
(4) when the Hook Function in protective relaying device veneer receives this packet, can carry out RAM district for one that described packet is stored in veneer, judge afterwards autotest program whether pass through by verification;
(5) autotest program verification jumps to RAM district by rear application program, start to carry out autotest program, first described autotest program judges whether to need testing ram district, whether as needs are transferred to autotest program, in flash, to move testing ram district intact, after having tested, again autotest program is retracted to RAM district and entered testing service responding process, if do not needed testing ram district, directly enter testing service responding process;
(6) after testing service responding process initialization, wait for the testing service order that test background sends, receive after testing service order, start to transmit test configurations information, after transmitting successfully, test configurations information carries out individual event test, until responded all testing service order backed off after random autotest programs;
(7) testing progress and test result are sent in real time host computer by the designated port on veneer to be measured and show, after test finishes, veneer power down also powers on again, during application program self check RAM, cleaning can be carried out RAM district packet, and autotest program is deleted automatically.
2. protective relaying device veneer automatic test approach according to claim 1, is characterized in that:
In step (1); the independently autotest program of each hardware composition part for protective relaying device veneer is compiled into executable code; form packet, described packet comprises method of testing, flow process, criterion and the stipulations for certain hardware composition part.
3. protective relaying device veneer automatic test approach according to claim 2, is characterized in that:
Described packet can now generate in use, also can generate in advance rear preservation.
4. protective relaying device veneer automatic test approach according to claim 1, is characterized in that:
In step (3), when autotest program being downloaded to respectively on two veneers to be measured, two veneers to be measured are connected and are automatically mutually identified by backboard, one side is as server end, the opposing party is as test lead, test lead veneer is carried out to functional test, and after being completed, two plates exchange role, 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 to respectively on two veneers to be measured, by hardware jumper, which piece veneer is artificially set as server end, another piece is as test lead.
6. protective relaying device veneer automatic test approach according to claim 1, is characterized in that:
Described autotest program can comprehensively be tested the storage unit of single onboard memory and flash, in test process, autotest program can be imported to and flash, tests full memory from carrying out RAM district, or autotest program is imported to carry out from flash RAM district, test whole 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 CN102621432A (en) 2012-08-01
CN102621432B true 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)

Families Citing this family (8)

* 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
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
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
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

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

Also Published As

Publication number Publication date
CN102621432A (en) 2012-08-01

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
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN103812726A (en) Automated testing method and device for data communication equipment
CN112653738B (en) Internet of things network debugging system and method
CN102840992B (en) Satellite-borne self-testing method based on satellite network
CN103631248A (en) Testing apparatus for air conditioner unit, testing method and testing system
CN102571498A (en) Fault injection control method and device
CN103186440B (en) Detect subcard method, apparatus and system in place
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN102508754B (en) Method for detecting 1553B communication interface
CN103810069A (en) Verification platform and verification method for ARINC659 bus fault-tolerant circuit
WO2012059066A1 (en) Method and system for locating fault in serial port
CN109031005B (en) Distributed relay protection device testing method and relay protection tester
CN103701656A (en) Testing method and system of broadband access unit
CN110297753A (en) A kind of method and system for verifying software version
CN102025565B (en) I2C bus communication detection method used among multiple devices
CN106411643A (en) BMC (Baseboard Management Controller) detection method and device
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN102158374B (en) Bandwidth speed limiting testing method and testing device
CN114138587A (en) Reliability verification method, device and equipment for upgrading server power firmware
CN110749046B (en) Air conditioner control method and device, air conditioner and computer readable storage medium
CN103326897A (en) Distributed computing environment general monitoring device and failure detection method
CN114168205A (en) BIOS firmware verification system, method and device

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.