CN109286538A - Communication protocol conformance test method and terminal device - Google Patents

Communication protocol conformance test method and terminal device Download PDF

Info

Publication number
CN109286538A
CN109286538A CN201811265619.XA CN201811265619A CN109286538A CN 109286538 A CN109286538 A CN 109286538A CN 201811265619 A CN201811265619 A CN 201811265619A CN 109286538 A CN109286538 A CN 109286538A
Authority
CN
China
Prior art keywords
test
communication network
tested
project
main website
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.)
Pending
Application number
CN201811265619.XA
Other languages
Chinese (zh)
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 Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
State Grid Hebei Energy Technology Service Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
State Grid Hebei Energy Technology Service 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 Corp of China SGCC, Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd, State Grid Hebei Energy Technology Service Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201811265619.XA priority Critical patent/CN109286538A/en
Publication of CN109286538A publication Critical patent/CN109286538A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention is suitable for substation's technical field; provide a kind of communication protocol conformance test method and terminal device; this method comprises: configuration test macro; the test macro includes simulation main website; the communication network connecting with the simulation main website is shut down; with the measure and control device of communication network shutdown connection, and the relay-protection tester being connect with the measure and control device;It obtains project to be tested and test corresponding with the project to be tested instructs;It is instructed according to the project to be tested and test corresponding with the project to be tested, communication protocol uniformity test is carried out to the test macro.The present invention can be realized the uniformity test of the communication protocol to communication network shutdown.

Description

Communication protocol conformance test method and terminal device
Technical field
The invention belongs to substation's technical fields more particularly to a kind of communication protocol conformance test method and terminal to set It is standby.
Background technique
Currently, IEC104 specification extensive utilization in automation system for the power network dispatching, makes full use of Internet technology, IEC101 specification is combined with ICP/IP protocol, changes traditional showing using serial communication progress real-time Data Transmission Shape, it is more flexible, simple, economical, more reliable than previous Telecontrol Protocol (such as CDT, 101 specifications), can effectively meet it is unattended, The bidirectional high speed of magnanimity monitoring information, reliable transmission demand after Centralized Monitoring.
But since understanding and realization of the different communication network shutdown producers to IEC104 specification are different, cause not There are problems in terms of interoperability for the IEC104 specification shut down with the communication network of producer, seriously affect connecing for plant stand telecontrol information Enter debugging and information exchange.Therefore, the communication protocol for being badly in need of shutting down to communication network carries out uniformity test.
Summary of the invention
In view of this, the embodiment of the invention provides communication protocol conformance test method and terminal device, it is existing to solve There is the communication protocol for lacking in technology and shut down to communication network to carry out uniformity test, cause the access of plant stand telecontrol information debug with The problem of information exchange is affected.
The first aspect of the embodiment of the present invention provides a kind of communication protocol conformance test method, comprising:
Test macro is configured, the test macro includes simulation main website, and the communication network connecting with the simulation main website is shut down, With the measure and control device of communication network shutdown connection, and the relay-protection tester being connect with the measure and control device;
It obtains project to be tested and test corresponding with the project to be tested instructs;
It is instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test.
Second aspect of the embodiment of the present invention provides a kind of communication protocol consistency test device, comprising:
Configuration unit, for configuring test macro, the test macro includes simulation main website, is connect with the simulation main website Communication network shutdown, with the communication network shutdown connection measure and control device, and connect with the measure and control device relay protection survey Try instrument;
Acquiring unit is instructed for obtaining project to be tested and test corresponding with the project to be tested;
Test cell, for according to the project to be tested and test instruction corresponding with the project to be tested, to institute It states test macro and carries out communication protocol uniformity test.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and storage In the memory and the computer program that can run on the processor, the processor execute the computer program The step of Shi Shixian such as first aspect of embodiment of the present invention the method.
Fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with computer program, and such as first aspect of the embodiment of the present invention is realized when the computer program is executed by processor The step of the method.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is by configuring test system System, and obtain project to be tested and test instruction corresponding with the project to be tested, according to the project to be tested and with institute The corresponding test instruction of project to be tested is stated, communication protocol uniformity test is carried out to the test macro, to realize to logical Believe the uniformity test of the communication protocol of gateway machine, and be automatic test, improves the reliability of testing efficiency and test result.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of communication protocol conformance test method method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of communication protocol consistency test device provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or device set.
It is also understood that herein term as used in this specification merely for the sake of for the purpose of describing particular embodiments and It is not intended to limit the application.As present specification and it is used in the attached claims, unless context Other situations are clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and the appended claims, term " if " can be solved according to context Be interpreted as " when ... when " or " once " or " in response to determination " or " in response to " detect.Similar, phrase " if it is determined that " or " such as Fruit detects [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to determination " Or " once detecting [the description condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Referring to FIG. 1, Fig. 1 is the implementation process for the communication protocol conformance test method that one embodiment of the invention provides Figure, method includes the following steps:
Step S101 configures test macro, and the test macro includes simulation main website, connect with the simulation main website logical Believe gateway machine, the measure and control device with communication network shutdown connection, and the relay-protection tester being connect with the measure and control device.
In inventive embodiments, communication protocol is IEC104 specification.Simulation main website is main hard for simulating D5000 main website Part is mobile terminal, installation database and can only be dispatched by installing software virtual machine on mobile terminals, then on a virtual machine The support platform software of system, building moveable dispatching of power netwoks simulation main website environment simulation main website has panorama plant stand mould The management function of type, the experimental verification function based on application and control ammeter solidify function.Communication network shutdown is two, by double Machine parallel form and simulation master station communication, and two mutually indepedent operations of communication network shutdown, can receive simulation main website simultaneously The connection request of initiation.Communication gate machine has IEC104 specification interface.
Step S102, obtains project to be tested and test corresponding with the project to be tested instructs.
In embodiments of the present invention, project to be tested includes but is not limited to physical layer test, transport layer test, application layer survey Examination, the test of application layer negative, priority test, quality description test and redundancy link test.Physical layer test include RJ45 or Fiber interface test, network protocol testing and adaptive net card test.
Step S103 carries out communication protocol uniformity test to the test macro according to the project to be tested, obtains Test result.
In embodiments of the present invention, test instruction corresponding with project to be tested is executed, test result is obtained, realizes to survey The automatic test of test system.The priority of project to be tested is set, according to priority, test macro is tested, if Gao You The project testing to be tested of first grade passes through, then executes the project to be tested of next low priority, if high priority is to be tested Project testing does not pass through, then sounds an alarm.
The embodiment of the present invention obtains project to be tested and corresponding with the project to be tested by configuring test macro Test instruction, according to the project to be tested and test instruction corresponding with the project to be tested, to the test macro into Row communication protocol uniformity test to realize the uniformity test of the communication protocol to shut down to communication network, and is automatic test, Improve the reliability of testing efficiency and test result.
As an embodiment of the present invention, the project to be tested includes transport layer test;
The transport layer test includes that communications connection procedure is tested;
A kind of possible implementation of step S103 are as follows:
The simulation main website sends the instruction for establishing communication link to communication network shutdown, judges the communication network shutdown Whether the response of establishing communication link is made;
After the first preset time, the simulation main website shuts down to the communication network sends the instruction for disconnecting communication link, Judge whether the communication network shutdown makes the response for disconnecting communication link;
After the second preset time, simulation main website described in step is repeated to communication network shutdown transmission and establishes communication link Instruction, repeat preset times.
In embodiments of the present invention, it is transmitted using balanced type mode.It simulates main website and sends foundation communication to communication network shutdown The instruction of link, if simulation main website and communication network, which are shut down, is established TCP connection, after 100ms, simulation main website shuts down to communication network and sends out The instruction for disconnecting communication link is sent, if communication network, which is shut down, makes the response of disconnection communication link, after 100ms, repeats step mould Quasi- main website sends the instruction for establishing communication link to communication network shutdown, tests 100 times altogether, tests communications connection procedure.
As an embodiment of the present invention, the transport layer test further includes the test of start and stop transmission mechanism;
A kind of possible implementation of step S103 are as follows:
The simulation main website successively shuts down to the communication network and sends enabled instruction and halt instruction, judges the simulation master Stand with the communication network shutdown whether transmitting message.
In embodiments of the present invention, simulation main website to communication network shut down send halt instruction after, simulation main website with communicate The message for not transmitting any format between gateway machine simulates main website after simulation main website shuts down transmission enabled instruction to communication network The transmitting message between communication network shutdown, then start and stop transmission mechanism test pass through.
As an embodiment of the present invention, the project to be tested includes application layer test;
The application layer test includes initialization test;
A kind of possible implementation of step S103 are as follows:
The simulation main website shuts down to the communication network and sends reset instruction, rings if reset is made in communication network shutdown It answers, then initialization test passes through.
In embodiments of the present invention, simulation main website to the communication network shut down send reset instruction, communication network shut down to It simulates main website and sends and reset confirmation message, and disconnect and communicating to connect with simulation main website, after the completion of reset, built again with simulation main website Vertical communication link, and send initialization end message to simulation main website, then initialization test passes through.
As an embodiment of the present invention, the application layer test includes that event obtains test;
A kind of possible implementation of step S103 are as follows:
It is conjugated by the relay-protection tester analog remote signaling, is sent if the communication network shuts down to the simulation main website Remote signalling conjugates message and journal time message, then event obtains test and passes through.
As an embodiment of the present invention, the application layer test includes total calling test;
A kind of possible implementation of step S103 are as follows:
The simulation main website issues to communication network shutdown and always calls instruction together, if communication network shutdown is successively to the mould Quasi- main website transmission always calls confirmation message, digital & analog signal message together and always calls end message together, then total calling test passes through.
As an embodiment of the present invention, the application layer test includes time synchronization test;
A kind of possible implementation of step S103 are as follows:
The simulation main website is to communication network shutdown tranmitting data register synchronic command, if the time is made in communication network shutdown Sync response, and clock confirmation of synchronization message is sent to the simulation main website, then time synchronization test passes through.
As an embodiment of the present invention, the application layer test includes remote-controlled test;
A kind of possible implementation of step S103 are as follows:
The simulation main website shuts down to the communication network and sends telecommand, if the measure and control device executes the remote control and refers to It enables, then remote-controlled test passes through.
In embodiments of the present invention, due in simulation main website without configuration AGC module, simulation main website only have it is single/ Two point distant control function, without set-up function.Telecommand usually has selection, revocation, executes three kinds of instructions.In simulation main website difference Be remotely controlled selection, remote control revocation, remote control execute operation, if the correct forward command message of communication network shutdown, measure and control device go out Mouthful behavior should control consistent with main website, i.e., after control point or control are closed, main website should be able to receive remote signalling point, close displacement warning information and SOE Message after control revocation, warning information should be conjugated without related remote signalling and SOE message generates, then illustrate that remote-controlled test passes through.
As an embodiment of the present invention, the project to be tested includes application layer negative test;The application layer is no Fixed test includes the test of illegal type identification, the test of illegal transmissions reason, the test of illegal public address and ineffective time test;
A kind of possible implementation of step S103 are as follows:
The simulation main website sends illegal type code to communication network shutdown, if communication network shutdown is unresponsive, Then illegal type identification test passes through;
The simulation main website shuts down to the communication network and sends illegal transmissions reason, if communication network shutdown is unresponsive, Then illegal transmissions reason test passes through;
The simulation main website sends illegal public address to communication network shutdown, if communication network shutdown is unresponsive, Then illegal public address test passes through;
The simulation main website shuts down to the communication network and sends ineffective time, unresponsive, the nothing if communication network is shut down Effect time test passes through.
As an embodiment of the present invention, the project to be tested includes priority test;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, to the test macro Carry out communication protocol uniformity test, comprising:
The relay-protection tester exports the first analog signals to the measure and control device, and simulates every preset time The state change of one remote signalling point;
The simulation main website sends total calling instruction to communication network shutdown;
It is shut down according to the communication network to the message sequence simulating main website and sending, judges priority.
In embodiments of the present invention, relay-protection tester exports the first analog quantity letter of 2% change rate to measure and control device Number, while every 10s simulates the state displacement of a remote signalling point.It simulates main website and sends total calling instruction, in calling data procedures It is instructed when sending telecommand, setting instruction, school.It is shut down according to communication network to the message sequence simulating main website and sending, is sentenced Disconnected priority.
As an embodiment of the present invention, the project to be tested includes quality description test;
A kind of possible implementation of step S103 are as follows:
The relay-protection tester generates distant to the second analog signals of measure and control device output superelevation rated value Literary spilling is observed and predicted, if spilling response is made in communication network shutdown, quality description test passes through.
In embodiments of the present invention, relay-protection tester is exported to measure and control device at least over the second of rated value 20% Analog signals generate telemetering message and overflow, and it is 1 that communication network shutdown, which should set corresponding distant measurement quality OV overflow position, and on give Simulate main website.
The test macro further includes cell device, the cell device respectively at the communication network shutdown and it is described Relay-protection tester connection.In the case where cell device communication disruption, communication network shutdown should be sent to simulation main website Corresponding data quality position IV=1 is set when the remote signalling and telemetering of the device.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Referring to FIG. 2, Fig. 2 is communication protocol consistency test device provided by one embodiment of the present invention, feature exists In, comprising: configuration unit 201, acquiring unit 202 and test cell 203.The function of each unit is as follows:
Configuration unit 201, for configuring test macro, the test macro includes simulation main website, with the simulation main website The communication network of connection is shut down, and the measure and control device with communication network shutdown connection, and the relay connecting with the measure and control device are protected Protect tester;
Acquiring unit 202 is instructed for obtaining project to be tested and test corresponding with the project to be tested;
Test cell 203, it is right for according to the project to be tested and test instruction corresponding with the project to be tested The test macro carries out communication protocol uniformity test.
As an embodiment of the present invention, the project to be tested includes transport layer test;
The transport layer test includes that communications connection procedure is tested;
Test cell 201 sends the instruction for establishing communication link to communication network shutdown for the simulation main website, sentences Whether the communication network shutdown of breaking makes the response for establishing communication link;
After the first preset time, the simulation main website shuts down to the communication network sends the instruction for disconnecting communication link, Judge whether the communication network shutdown makes the response for disconnecting communication link;
After the second preset time, simulation main website described in step is repeated to communication network shutdown transmission and establishes communication link Instruction, repeat preset times.
As an embodiment of the present invention, the transport layer test further includes the test of start and stop transmission mechanism;
The test cell 201 successively shuts down to the communication network for the simulation main website and sends enabled instruction and stop Only instruct, judge the simulation main website and the communication network shutdown whether transmitting message.
As an embodiment of the present invention, the project to be tested includes application layer test;
Application layer test includes that initialization test, event obtain test, total calling test, time synchronization test and distant Control test;
The test cell 201 shuts down to the communication network for the simulation main website and sends reset instruction, if described logical Letter gateway machine makes reset response, then initialization test passes through;
It is conjugated by the relay-protection tester analog remote signaling, is sent if the communication network shuts down to the simulation main website Remote signalling conjugates message and journal time message, then event obtains test and passes through;
The simulation main website issues to communication network shutdown and always calls instruction together, if communication network shutdown is successively to the mould Quasi- main website transmission always calls confirmation message, digital & analog signal message together and always calls end message together, then total calling test passes through;
The simulation main website is to communication network shutdown tranmitting data register synchronic command, if the time is made in communication network shutdown Sync response, and clock confirmation of synchronization message is sent to the simulation main website, then time synchronization test passes through;
The simulation main website shuts down to the communication network and sends telecommand, if the measure and control device executes the remote control and refers to It enables, then remote-controlled test passes through.
As an embodiment of the present invention, the project to be tested includes application layer negative test;The application layer is no Fixed test includes the test of illegal type identification, the test of illegal transmissions reason, the test of illegal public address and ineffective time test;
The test cell 201 sends illegal type code to communication network shutdown for the simulation main website, if institute It is unresponsive to state communication network shutdown, then illegal type identification test passes through;
The simulation main website shuts down to the communication network and sends illegal transmissions reason, if communication network shutdown is unresponsive, Then illegal transmissions reason test passes through;
The simulation main website sends illegal public address to communication network shutdown, if communication network shutdown is unresponsive, Then illegal public address test passes through;
The simulation main website shuts down to the communication network and sends ineffective time, unresponsive, the nothing if communication network is shut down Effect time test passes through.
As an embodiment of the present invention, the project to be tested includes priority test;
The test cell 201 exports the first analog quantity letter to the measure and control device for the relay-protection tester Number, and the state change of a remote signalling point is simulated every preset time;
The simulation main website sends total calling instruction to communication network shutdown;
It is shut down according to the communication network to the message sequence simulating main website and sending, judges priority.
As an embodiment of the present invention, the project to be tested includes quality description test;
The test cell 201 exports superelevation rated value to the measure and control device for the relay-protection tester Second analog signals generate telemetering message and overflow, if spilling response is made in communication network shutdown, quality description test is logical It crosses.
Fig. 3 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 3, the terminal of the embodiment is set Standby 3 include: processor 301, memory 302 and are stored in the memory 302 and can run on the processor 301 Computer program 303.The processor 301 realizes that above-mentioned each communication protocol is consistent when executing the computer program 303 Step in property test method embodiment, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 301 execute it is described Realize the function of each module/unit in above-mentioned each Installation practice when computer program 303, for example, module 201 shown in Fig. 2 to 203 function.
Illustratively, the computer program 303 can be divided into one or more module/units, it is one or Multiple module/the units of person are stored in the memory 302, and are executed by the processor 301, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer program 303 in the terminal device 3.For example, the computer program 303 can To be divided into configuration unit, acquiring unit and test cell.The function of each unit is as follows:
Configuration unit, for configuring test macro, the test macro includes simulation main website, is connect with the simulation main website Communication network shutdown, with the communication network shutdown connection measure and control device, and connect with the measure and control device relay protection survey Try instrument;
Acquiring unit is instructed for obtaining project to be tested and test corresponding with the project to be tested;
Test cell, for according to the project to be tested and test instruction corresponding with the project to be tested, to institute It states test macro and carries out communication protocol uniformity test.
As an embodiment of the present invention, the project to be tested includes transport layer test;
The transport layer test includes that communications connection procedure is tested;
Test cell sends the instruction for establishing communication link, judgement for the simulation main website to communication network shutdown Whether the communication network shutdown makes the response for establishing communication link;
After the first preset time, the simulation main website shuts down to the communication network sends the instruction for disconnecting communication link, Judge whether the communication network shutdown makes the response for disconnecting communication link;
After the second preset time, simulation main website described in step is repeated to communication network shutdown transmission and establishes communication link Instruction, repeat preset times.
As an embodiment of the present invention, the transport layer test further includes the test of start and stop transmission mechanism;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, to the test macro Carry out communication protocol uniformity test, comprising:
The simulation main website successively shuts down to the communication network and sends enabled instruction and halt instruction, judges the simulation master Stand with the communication network shutdown whether transmitting message.
As an embodiment of the present invention, the project to be tested includes application layer test;
Application layer test includes that initialization test, event obtain test, total calling test, time synchronization test and distant Control test;
Test cell shuts down to the communication network for the simulation main website and sends reset instruction, if the communication gate Machine makes reset response, then initialization test passes through;
It is conjugated by the relay-protection tester analog remote signaling, is sent if the communication network shuts down to the simulation main website Remote signalling conjugates message and journal time message, then event obtains test and passes through;
The simulation main website issues to communication network shutdown and always calls instruction together, if communication network shutdown is successively to the mould Quasi- main website transmission always calls confirmation message, digital & analog signal message together and always calls end message together, then total calling test passes through;
The simulation main website is to communication network shutdown tranmitting data register synchronic command, if the time is made in communication network shutdown Sync response, and clock confirmation of synchronization message is sent to the simulation main website, then time synchronization test passes through;
The simulation main website shuts down to the communication network and sends telecommand, if the measure and control device executes the remote control and refers to It enables, then remote-controlled test passes through.
As an embodiment of the present invention, the project to be tested includes application layer negative test;The application layer is no Fixed test includes the test of illegal type identification, the test of illegal transmissions reason, the test of illegal public address and ineffective time test;
Test cell sends illegal type code to communication network shutdown for the simulation main website, if the communication Gateway machine is unresponsive, then illegal type identification test passes through;
The simulation main website shuts down to the communication network and sends illegal transmissions reason, if communication network shutdown is unresponsive, Then illegal transmissions reason test passes through;
The simulation main website sends illegal public address to communication network shutdown, if communication network shutdown is unresponsive, Then illegal public address test passes through;
The simulation main website shuts down to the communication network and sends ineffective time, unresponsive, the nothing if communication network is shut down Effect time test passes through.
As an embodiment of the present invention, the project to be tested includes priority test;
Test cell exports the first analog signals to the measure and control device for the relay-protection tester, and every The state change of a remote signalling point is simulated every preset time;
The simulation main website sends total calling instruction to communication network shutdown;
It is shut down according to the communication network to the message sequence simulating main website and sending, judges priority.
As an embodiment of the present invention, the project to be tested includes quality description test;
Test cell, the second simulation for the relay-protection tester to measure and control device output superelevation rated value Signal is measured, telemetering message is generated and overflows, if spilling response is made in communication network shutdown, quality description test passes through.
The terminal device 3 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 301, memory 302.It will be understood by those skilled in the art that Fig. 3 is only the example of terminal device 3, does not constitute the restriction to terminal device 3, may include more more or fewer than illustrating Component, perhaps combines certain components or different components, for example, the terminal device can also include input-output equipment, Network access equipment, bus etc..
Alleged processor 301 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 302 can be the internal storage unit of the terminal device 3, for example, terminal device 3 hard disk or Memory.The memory 302 is also possible to the External memory equipment of the terminal device 3, such as is equipped on the terminal device 3 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, the memory 302 can also have been deposited both the inside including the terminal device 3 Storage unit also includes External memory equipment.The memory 302 is for storing the computer program and the terminal device Other required programs and data.The memory 302, which can be also used for temporarily storing, have been exported or will export Data.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of communication protocol conformance test method characterized by comprising
Test macro is configured, the test macro includes simulation main website, and the communication network connecting with the simulation main website is shut down, with institute State the measure and control device of communication network shutdown connection, and the relay-protection tester connecting with the measure and control device;
It obtains project to be tested and test corresponding with the project to be tested instructs;
It is instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is communicated Specification uniformity test.
2. communication protocol conformance test method as described in claim 1, which is characterized in that the project to be tested includes passing Defeated layer test;
The transport layer test includes that communications connection procedure is tested;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The simulation main website sends the instruction for establishing communication link to communication network shutdown, whether judges the communication network shutdown Make the response for establishing communication link;
After the first preset time, the simulation main website shuts down to the communication network sends the instruction for disconnecting communication link, judgement Whether the communication network shutdown makes the response for disconnecting communication link;
After the second preset time, repeats simulation main website described in step and send the finger for establishing communication link to communication network shutdown It enables, repeats preset times.
3. communication protocol conformance test method as claimed in claim 2, which is characterized in that the transport layer, which is tested, further includes The test of start and stop transmission mechanism;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The simulation main website successively shuts down to the communication network and sends enabled instruction and halt instruction, judge the simulation main website and Communication network shutdown whether transmitting message.
4. communication protocol conformance test method as described in claim 1, which is characterized in that
The project to be tested includes application layer test;
The application layer test obtains test including initialization test, event, total calling is tested, time synchronization test and remote control are surveyed Examination;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The simulation main website shuts down to the communication network and sends reset instruction, if reset response is made in communication network shutdown, Initialization test passes through;
It is conjugated by the relay-protection tester analog remote signaling, if the communication network, which shuts down, sends remote signalling to the simulation main website Message and journal time message are conjugated, then event obtains test and passes through;
The simulation main website issues to communication network shutdown and always calls instruction together, if communication network shutdown is successively led to the simulation Transmission of standing always calls confirmation message, digital & analog signal message together and always calls end message together, then total calling test passes through;
The simulation main website is to communication network shutdown tranmitting data register synchronic command, if time synchronization is made in communication network shutdown Response, and clock confirmation of synchronization message is sent to the simulation main website, then time synchronization test passes through;
The simulation main website shuts down to the communication network and sends telecommand, if the measure and control device executes the telecommand, Then remote-controlled test passes through.
5. communication protocol conformance test method as described in claim 1, which is characterized in that the project to be tested includes answering It negate to test with layer;The application layer negative test includes that illegal type identification is tested, illegal transmissions reason is tested, illegal public Address test and ineffective time test;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The simulation main website sends illegal type code to communication network shutdown, non-if communication network shutdown is unresponsive The test of method type identification passes through;
The simulation main website shuts down to the communication network and sends illegal transmissions reason, non-if communication network shutdown is unresponsive Method transmission reason test passes through;
The simulation main website sends illegal public address to communication network shutdown, non-if communication network shutdown is unresponsive The test of method public address passes through;
The simulation main website shuts down to the communication network and sends ineffective time, if communication network shutdown is unresponsive, when invalid Between test and pass through.
6. communication protocol conformance test method as described in claim 1, which is characterized in that the project to be tested includes excellent First grade test;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The relay-protection tester exports the first analog signals to the measure and control device, and simulates one every preset time The state change of remote signalling point;
The simulation main website sends total calling instruction to communication network shutdown;
It is shut down according to the communication network to the message sequence simulating main website and sending, judges priority.
7. communication protocol conformance test method as described in claim 1, which is characterized in that the project to be tested includes product Matter description test;
It is described to be instructed according to the project to be tested and test corresponding with the project to be tested, the test macro is carried out Communication protocol uniformity test, comprising:
The relay-protection tester generates telemetering report to the second analog signals of measure and control device output superelevation rated value Text overflows, if spilling response is made in communication network shutdown, quality description test passes through.
8. a kind of communication protocol consistency test device characterized by comprising
Configuration unit, for configuring test macro, the test macro includes simulation main website, is connect with the simulation main website logical Believe gateway machine, the measure and control device with communication network shutdown connection, and the relay-protection tester being connect with the measure and control device;
Acquiring unit is instructed for obtaining project to be tested and test corresponding with the project to be tested;
Test cell, for according to the project to be tested and test instruction corresponding with the project to be tested, to the survey Test system carries out communication protocol uniformity test.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201811265619.XA 2018-10-29 2018-10-29 Communication protocol conformance test method and terminal device Pending CN109286538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811265619.XA CN109286538A (en) 2018-10-29 2018-10-29 Communication protocol conformance test method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811265619.XA CN109286538A (en) 2018-10-29 2018-10-29 Communication protocol conformance test method and terminal device

Publications (1)

Publication Number Publication Date
CN109286538A true CN109286538A (en) 2019-01-29

Family

ID=65178121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811265619.XA Pending CN109286538A (en) 2018-10-29 2018-10-29 Communication protocol conformance test method and terminal device

Country Status (1)

Country Link
CN (1) CN109286538A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110174564A (en) * 2019-05-15 2019-08-27 广西电网有限责任公司电力科学研究院 The filed detection system and its detection method of equipment for monitoring power quality access main website
CN110502383A (en) * 2019-08-27 2019-11-26 Oppo(重庆)智能科技有限公司 The test method and device of terminal device
CN111934952A (en) * 2020-08-06 2020-11-13 广东电网有限责任公司 Method, device, equipment and storage medium for testing station electric energy acquisition terminal
CN112330949A (en) * 2020-10-20 2021-02-05 国网北京市电力公司 Test device, control method of test device, control device and processor
CN112436904A (en) * 2020-11-23 2021-03-02 国网北京市电力公司 Application communication test system and method
CN112437461A (en) * 2020-11-23 2021-03-02 国网北京市电力公司 Application communication test system and method
CN113589788A (en) * 2021-07-23 2021-11-02 国网江苏省电力有限公司 Automatic test system, method and device for data communication network shutdown performance
CN114070546A (en) * 2021-11-09 2022-02-18 许昌许继软件技术有限公司 Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals
CN115174459A (en) * 2022-07-13 2022-10-11 中国电力科学研究院有限公司 Device, method, equipment and medium for coordinating and verifying network shutdown

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970175A (en) * 2012-02-08 2013-03-13 深圳市金宏威技术股份有限公司 Power distribution network protocol test analytical method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970175A (en) * 2012-02-08 2013-03-13 深圳市金宏威技术股份有限公司 Power distribution network protocol test analytical method and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110174564A (en) * 2019-05-15 2019-08-27 广西电网有限责任公司电力科学研究院 The filed detection system and its detection method of equipment for monitoring power quality access main website
CN110502383A (en) * 2019-08-27 2019-11-26 Oppo(重庆)智能科技有限公司 The test method and device of terminal device
CN111934952A (en) * 2020-08-06 2020-11-13 广东电网有限责任公司 Method, device, equipment and storage medium for testing station electric energy acquisition terminal
CN112330949A (en) * 2020-10-20 2021-02-05 国网北京市电力公司 Test device, control method of test device, control device and processor
CN112436904B (en) * 2020-11-23 2022-09-02 国网北京市电力公司 Application communication test system and method
CN112437461A (en) * 2020-11-23 2021-03-02 国网北京市电力公司 Application communication test system and method
CN112436904A (en) * 2020-11-23 2021-03-02 国网北京市电力公司 Application communication test system and method
CN112437461B (en) * 2020-11-23 2022-09-27 国网北京市电力公司 Application communication test system and method
CN113589788A (en) * 2021-07-23 2021-11-02 国网江苏省电力有限公司 Automatic test system, method and device for data communication network shutdown performance
CN114070546A (en) * 2021-11-09 2022-02-18 许昌许继软件技术有限公司 Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state
CN114070546B (en) * 2021-11-09 2024-03-01 许昌许继软件技术有限公司 Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals
CN115174459A (en) * 2022-07-13 2022-10-11 中国电力科学研究院有限公司 Device, method, equipment and medium for coordinating and verifying network shutdown
CN115174459B (en) * 2022-07-13 2024-08-16 中国电力科学研究院有限公司 Gateway machine coordination verification device, method, equipment and medium

Similar Documents

Publication Publication Date Title
CN109286538A (en) Communication protocol conformance test method and terminal device
CN106556765B (en) The test method and RTDS emulator of distributed distribution automation system
CN103680238B (en) A kind of intelligent substation Hybrid Simulation Training System for Industry
CN103176084B (en) Intelligent substation simulation system in panoramic replace mode and integration testing method for intelligent substation simulation system
CN109541353A (en) Power distribution automation detection system
CN112765258A (en) Power distribution network graph model checking management system and method thereof
CN206193123U (en) Distribution automation integration testing arrangement
CN106681313B (en) Stability control system function test method and system
CN103676661B (en) Multifunction emulation verifies system and its emulation verification method
CN204291050U (en) A kind of dispatching and monitoring information check system
CN107918340A (en) A kind of power distribution automation adjustment method on the spot based on simulation main website
CN107819647B (en) Intelligent substation station control layer network tester
CN107909131A (en) The automation management-control method of intelligent ODN equipment and fibre core
CN107480389A (en) A kind of intelligent alarm test emulation system and method towards scheduling station
CN110989547A (en) Detection method and system for intelligent substation one-key sequence control system
CN105262211A (en) Distribution master station and terminal synchronous on-line self-diagnosis method
CN103545917A (en) Scheduling-automation sub-station simulation system
CN100470976C (en) Integrated automation converting station debugging apparatus
CN105680441B (en) Simulation based on stimulated replacement technology is to a device
CN115358057A (en) Digital twin design method and system of relay protection device
CN106712295A (en) Logical power distribution terminal based on distributed power distribution automation system and communication method thereof
CN110611312B (en) On-line simulation system and method for panoramic data of substation bay level
CN104730397B (en) Interoperability test system and method between a kind of distribution power automation terminal
CN105553761A (en) IEC61850 conformance testing hardware platform
CN109765451A (en) A kind of intelligent distribution network terminal simulation test platform, system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129