Background
The intelligent transformer substation of the national grid company has certain effect around the directions of high system integration, reasonable structural layout, advanced and applicable equipment, economy, energy conservation, environmental protection and the like, particularly has effect on digitization and fiber-optic transformation, replaces a large amount of cables, but also has some problems in operation.
With the daily change of a series of technologies such as big data, cloud computing, internet of things, mobile internet, artificial intelligence and the like, concepts such as 'internet +', 'industry 4.0' and the like are proposed and practiced in succession, new technologies emerge continuously, but power transformation equipment and operation and inspection modes are far away from intellectualization, daily work still continues to be traditional 20 years ago, and the advantages of the new technologies cannot be fully utilized and effectively exerted.
The control core equipment of the third-generation intelligent substation is the on-site modularization of primary equipment, the number of on-site modules of the primary equipment is large, the on-site modules are communicated through an HSR (high speed railway) ring network protocol, the ring network protocol adopts a gigabit Ethernet, nodes in the ring are in equal relation, and the nodes are in ending connection and have the functions of forwarding and filtering. The detection of the third-generation intelligent station equipment is difficult through the two points: (1) the number of the on-site modules is large, and how to efficiently detect the on-site modules is a problem. (2) The HSR looped network protocol is a novel message communication protocol adopted by a third-generation intelligent station, does not exist in the traditional station and a digital station, lacks HSR looped network protocol support in the existing test equipment, and cannot effectively detect looped network protocol interface equipment.
The application of automatic testing technology in an intelligent substation is very common, but the application is limited to the automatic testing capability of a single device, and in the prior art, a method for automatically testing a plurality of devices simultaneously does not exist.
In the third-generation intelligent station system, the HSR looped network protocol transmits the information of the related switching value local module and the analog value local module to the measurement and control submachine, so that the HSR looped network protocol support is a necessary condition when the switching value local module or the analog value local module is detected.
Disclosure of Invention
The present invention is directed to a test system and a test method supporting HSR standard transmission protocol, which overcome or at least alleviate at least one of the above-mentioned drawbacks of the prior art, and support testing of an HSR protocol intelligent device.
In order to achieve the purpose, the invention adopts the following technical scheme:
a test system supporting HSR standard transmission protocol is used for testing an intelligent station intelligent device, wherein the intelligent station intelligent device comprises a plurality of devices to be tested; the test system supporting the HSR standard transmission protocol comprises:
a test platform;
each testing sub-platform is connected with the testing platform, one testing sub-platform is connected with at least one device to be tested, and each testing sub-platform has a different IP address; wherein,
the test platform is used for generating at least one control signal, each control signal is provided with IP address information, and the test platform transmits each control signal to a test sub-platform corresponding to the IP address provided by the control signal;
each test sub-platform for obtaining the control signal is used for generating at least one test signal according to the control signal, sending the test signal to the to-be-tested equipment connected with the test sub-platform, testing the to-be-tested equipment connected with the test sub-platform, and transmitting the test result to the test platform.
Further, the method also comprises the following steps: the photoelectric switch is respectively connected with the test platform and each test sub-platform;
and the test platform transmits the control signal to the test sub-platform through the photoelectric switch.
Further, the test platform comprises:
the control signal generating module is used for generating at least one control signal with IP address information;
the communication module is used for sending the control signal to a test sub-platform or receiving a test sub-result sent by the test sub-platform;
and the IP distribution module is used for increasing an IP address in the control signal so as to enable the communication module to send the IP address carried by the control signal to the testing sub-platform corresponding to the IP address.
Further, the test sub-platform comprises:
the control signal receiving module is used for receiving a control signal issued by the test platform 1;
the test signal generating module is used for generating at least one test signal according to the control signal, and each test signal comprises an IP address corresponding to the device to be tested 3;
the test signal sending module is used for sending a test signal to the device to be tested connected with the test signal sending module;
the test result acquisition module is used for acquiring the test result of the equipment to be tested connected with the test result acquisition module;
and the test result sending module is used for sending the test result to the test platform.
Furthermore, each device to be tested has an IP address, and the IP addresses of the devices to be tested are different;
the test signal generated by the test sub-platform comprises an IP address corresponding to the device to be tested, so that the test sub-platform communicates and reads information to the device to be tested corresponding to the IP address in the test signal
Further, the test sub-platform accesses the device to be tested through the IP address and carries out information interaction with the device to be tested.
A test method supporting HSR standard transmission protocol is used for testing an intelligent station intelligent device, the intelligent station intelligent device comprises a plurality of devices to be tested, and the test method is characterized by being carried out by adopting the test system and comprising the following steps:
the test platform generates at least one control signal with IP address information;
the test platform sends the control signal to a test sub-platform which has a corresponding IP address with the control signal;
and each testing sub-platform receiving the control signal generates a testing signal according to the control signal, sends the testing signal to the to-be-tested equipment connected with the testing sub-platform, tests the to-be-tested equipment connected with the testing sub-platform, and transmits a testing result to the testing platform.
Further, the sending, by the test platform, the control signal to the test sub-platform having the IP address corresponding to the control signal includes:
the test platform sends the control signal to a test sub-platform which has the corresponding IP address with the control signal through the photoelectric switch.
Furthermore, each device to be tested has an IP address, and the IP addresses of the devices to be tested are different;
the test sub-platform generates at least one test signal according to the control signal, and sends the test signal to the device to be tested connected with the test sub-platform, wherein the test sub-platform comprises:
the test sub-platform reads the information of the fixed value pressing plate of the device to be tested according to the IP address of the device to be tested so as to generate test data through test logic calculation and send the test data to the device to be tested;
and the test sub-platform sends the test signal to the device to be tested corresponding to the test signal.
Further, the transmitting the result of the test to the test platform includes:
generating a test result;
adding the IP address of the test sub-platform generating the test result into the generated test result;
and transmitting the test result with the IP address of the test sub-platform to the test platform.
The test system supporting the HSR standard transmission protocol defines different IDs for different test sub-platforms to perform split-phase control, thereby realizing the purpose of simultaneously and automatically testing a plurality of devices to be tested, solving the technical problem of simultaneously and automatically testing a plurality of devices, realizing the simultaneous and automatic test work of a plurality of devices, providing technical support for a large number of tests such as batch test of the test devices and the like, and greatly improving the test efficiency.
Detailed Description
In order to make the implementation objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be described in more detail below with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are only some, but not all embodiments of the invention. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a system diagram of a test system supporting an HSR standard transmission protocol according to an embodiment of the present invention, which is used for testing a smart station secondary device, where the smart station secondary device includes a plurality of devices to be tested, and the devices to be tested include at least one of a protection device, a measurement and control device, and a local-area-chemical-modeling sub-module device.
The testing system for remotely supporting the HSR standard transmission protocol comprises a testing platform 1 and at least two testing sub-platforms 2, wherein each testing sub-platform 2 is connected with the testing platform 1, one testing sub-platform 2 is connected with at least one device to be tested 3, and each testing sub-platform 2 has different IP addresses; wherein,
the test platform 1 is used for generating at least one control signal, each control signal has IP address information, and the test platform 1 transmits each control signal to the test sub-platform 2 corresponding to the IP address carried by the control signal;
each test sub-platform 2 which obtains the control signal is used for generating at least one test signal according to the control signal, sending the test signal to the device to be tested 3 connected with the test sub-platform, testing the device to be tested 3 connected with the test sub-platform, and transmitting the test result to the test platform 1.
The test system supporting the HSR standard transmission protocol defines different IDs for different test sub-platforms to carry out split-phase control, thereby realizing the purpose of simultaneously and automatically testing a plurality of devices to be tested.
Referring to fig. 1, in this embodiment, the test system for remotely supporting the HSR standard transmission protocol further includes an optoelectronic switch 4, where the optoelectronic switch 4 is connected to the test platform 1 and each test sub-platform 2 respectively; the test platform 1 transmits the control signal to the test sub-platform 2 through the optoelectronic switch 4.
In this embodiment, the test platform 1 includes a control signal generation module, a communication module, and an IP allocation module, where the control signal generation module is configured to generate at least one control signal with IP address information; the communication module is used for sending a control signal to the test sub-platform 2 or receiving a test sub-result sent by the test sub-platform 2; the IP distribution module is used for increasing an IP address in the control signal, so that the communication module sends the IP address to the testing sub-platform 2 corresponding to the IP address carried by the control signal.
In this embodiment, the testing sub-platform 2 includes a control signal receiving module, a testing signal generating module, a testing signal sending module, a testing result obtaining module, and a testing result sending module, where the control signal receiving module is configured to receive a control signal sent by the testing platform 1; the test signal generating module is used for generating at least one test signal according to the control signal, and each test signal comprises an IP address corresponding to the device to be tested 3; the test signal sending module is used for sending a test signal to the device to be tested 3 connected with the test signal sending module; the test result acquisition module is used for acquiring the test result of the equipment to be tested 3 connected with the test result acquisition module; and the test result sending module is used for sending the test result to the test platform 1.
As shown in fig. 2, the built-in operating system of the testing sub-platform 2 includes an IP communication interface, a synchronous time setting interface, a current output interface, a voltage output interface, a switching value transceiving interface, a 9-2\ GOOSE transceiving interface, and a ring network protocol (HSR) transceiving interface, the IP communication interface of the testing sub-platform 2 is connected to communicate with the testing platform 1 through the optoelectronic switch 4, and the ring network protocol (HSR) transceiving interface of the testing sub-platform 2 is connected to the ring network protocol interface of the device to be tested 3.
In this embodiment, each device to be tested 3 has one IP address, and the IP addresses of the devices to be tested 3 are different;
the IP address of the testing sub-platform 2 and the IP address corresponding to the device to be tested 3 are in the same network segment, and the IP address are mainly interacted with information between the testing sub-platform 2 and the device to be tested 3, so that reading and interaction of information needed in testing processes of setting values, pressing plates and the like of the device to be tested 3 are realized.
In this embodiment, the IP address of the tester sub-platform 2 and the IP address of the device to be tested 3 should be in the same network segment, so as to read and interact information between the tester sub-platform 2 and the device to be tested 3.
The invention also provides a test method supporting the HSR standard transmission protocol, which is carried out by adopting the system and comprises the following steps:
step 101: the test platform 1 generates at least one control signal with IP address information, and the IP address corresponds to a test sub-platform 2;
step 102: the test platform 1 sends the control signal to a test sub-platform 2 with an IP address corresponding to the control signal;
step 103: and each testing sub-platform 2 which receives the control signal generates a testing signal according to the control signal, sends the testing signal to the to-be-tested equipment 3 connected with the testing sub-platform, tests the to-be-tested equipment 3 connected with the testing sub-platform, and transmits a testing result to the testing platform 1.
In this embodiment, the sending, by the test platform 1, the control signal to the test sub-platform 2 having the corresponding IP address to the control signal includes:
the test platform 1 sends the control signal to the test sub-platform 2 having the corresponding IP address to the control signal through the optoelectronic switch 4.
In this embodiment, each of the devices to be tested 3 has an IP address, and the IP addresses of the devices to be tested 3 are different;
the test sub-platform 2 generates at least one test signal according to the control signal, and sends the test signal to the device to be tested 3 connected with the test sub-platform comprises:
the IP address of the testing sub-platform 2 and the IP address of the device to be tested 3 are in the same network segment, and information reading and interaction among devices are realized.
In this embodiment, the transmitting the test result to the test platform 1 includes:
generating a test result;
adding the IP address of the test sub-platform 2 generating the test result into the generated test result;
the result of the test with the IP address of the test sub-platform 2 is passed to the test platform 1.
In this embodiment, the control signal can implement the following functions: and the digital protection device is communicated with the digital protection device to realize communication operations such as reading a fixed value, modifying a fixed value, reading a pressure plate, modifying the pressure plate, reading a measured value, reading a device parameter, modifying a device parameter, resetting the device, starting a report, stopping the report and the like.
The invention can simultaneously run a plurality of independent test flows, each test flow has an independent communication service and a test item template, the test sub-platform and the equipment to be tested are distinguished according to the IP address, and the full closed loop test of a plurality of devices can be realized.
The invention also provides a technical method for supporting the ring network protocol, which comprises the following steps:
the looped network protocol parameters are configured by the upper computer software of the test system supporting the HSR standard transmission protocol.
The open settable message types include: the method comprises the following steps of (1) carrying out network type word (ASR EtherType), path identifier (PathID), application representation (APPID), transmission delay correction domain (the delay correction domain is a 32-bit unsigned integer, bit30 is a quality bit, bits 0-23 are delay time, and other bits are reserved);
and the upper computer software opens the data setting of the application data unit, wherein the data setting comprises the mapping and assignment of analog quantity sampling and the mapping and assignment of switching value.
The upper computer software is set through message types, set message parameters are issued to an ARM (shown in figure 2) of a main board module of the testing sub-platform 2, the ARM packages the messages according to a standard format of an HSR (high speed, high speed and high speed ring network) protocol, the ARM issues the package format to a main board module FPGA, the FPGA of the main board module issues package information to the FPGA of the digital module, the FPGA of the digital module performs analog quantity discrete calculation to fill an analog quantity discrete value into each frame of message, meanwhile, the FPGA can automatically fill a sampling counter of the message and a delay value in a delay correction domain of the message, and the message is distributed to an optical interface according to the optical interface and is sent.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.