Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Distribution network automation terminal detecting system can realize detecting, the degree of accuracy detects, communication protocol detects to distribution network automation terminal's (FTU, DTU and TTU) function, carries out the auxiliary detection to the performance of terminal. The detection process is reasonable, the detection items are comprehensive, and the detection precision and efficiency are high.
Fig. 1 is a schematic structural diagram of a distribution network automatic detection system according to an embodiment of the present invention. As shown in the figure, the distribution network automatic detection system of the embodiment includes a programmable power supply 1, a standard meter 2 and a detection device 3, wherein the programmable power supply 1 is used for providing power supply and providing a test signal including a test voltage and a test current to a terminal to be tested according to an externally input signal command; the standard table 2 is used for calculating and displaying test signals including test voltage and test current generated by the programmable power supply; the detection device 3 is used for sending the signal command to the program-controlled power supply or the detected terminal, and generating and storing a detection result according to a response result generated by the detected terminal responding to the signal command.
In the present embodiment, as shown in fig. 2, the programmable power supply 1 and the detection device 3 are respectively connected to the detected terminal 10. The detection device 3 can directly send a signal command to the detected terminal 10, and the detected terminal 10 generates a response result according to the signal command and sends the response result to the detection device 3 for storage; or the detection device 3 sends a signal command to the programmable power supply 1, the programmable power supply 1 generates a test signal according to the signal command and sends the test signal to the detected terminal 10, and the detected terminal 10 generates a response result according to the test signal and sends the response result to the detection device 3 for storage.
In the present embodiment, as shown in fig. 3, the detection apparatus 3 includes a function simulation module 301, an accuracy test module 302, a communication protocol detection module 303, and a database 304. Wherein,
the function simulation module 301 is configured to send a signal command including voltage, current, frequency, and phase angle to the program-controlled power supply to simulate a field operation condition to perform function detection on the detected terminal including an abnormal emergency, parameter setting, data acquisition, data statistics, and an alarm event. Namely: the function simulation module can detect the function of the detected terminal for processing abnormal events, and can also send a normal signal command to the program-controlled power supply to detect various functions of the detected terminal, such as parameter setting, data statistics and the like;
the accuracy testing module 302 is configured to send a standard signal command to the programmable power supply, and compare standard data displayed by the standard table with measured data generated by the detected terminal, so as to detect ac sampling accuracy and metering accuracy of the detected terminal;
a communication protocol detection module 303, configured to send a command frame to the detected terminal, and determine whether a response frame of the detected terminal meets a requirement of a check frame format, so as to detect a communication protocol of the detected terminal;
and the database 304 is used for storing the detection result.
Fig. 4 is a schematic structural diagram of a detection device 3 in the distribution automation detection system according to the embodiment of the present invention. In this configuration embodiment, the detection device 3 includes a data transmission port 305 as an interface of the detection device 3 with the external detected terminal 10, the standard table 2 and the programmable power supply 1. The data transmission port 305 may include RS232 communication, standard table protocol analysis, dc signal control module protocol analysis port and network communication, detected device uplink protocol analysis port, etc.
When the detection system communicates with the detected terminal, an RS232 port, a network port or a USB port is used, and what kind of interface is reserved in the detected terminal is mainly used. At present, terminals of a network port and an RS232 port are mainly adopted. In the process of detecting the detected terminal, the network port or RS232 port of the detected terminal must be connected to the detection system.
Fig. 5 is a schematic structural diagram of a programmable power supply in the distribution network automatic detection system according to an embodiment of the present invention, as shown in the drawing, the programmable power supply in the embodiment includes a voltage/current signal control module 101, a D/a conversion circuit 102, and an output module 103. The voltage-current signal control module 101 is configured to generate a digital voltage-current signal according to the signal command; a D/a conversion circuit 102, configured to generate an analog voltage current signal from the digital voltage current signal; and the output module 103 is used for outputting the analog voltage and current signals to the standard meter and the detected terminal.
Fig. 6 is a schematic structural diagram of another embodiment of the distribution network automatic detection system of the present invention. In this embodiment, the distribution network automatic detection system further includes a pulse module 4 and a dc signal control module 5, which are respectively connected to the detected terminal 10 and the detection device 3. The pulse module 4 is configured to generate a pulse signal according to the command signal to detect a pulse acquisition function of the detected terminal. The direct current signal control module 5 is configured to generate a direct current analog quantity to detect a direct current analog quantity acquisition function of the detected terminal. In this embodiment, the pulse module 4 and the dc signal control module 5 may be modules controllable by the detection apparatus 3, or may be devices independent of the detection apparatus 3.
Fig. 7 is a flowchart of a method of an embodiment of the distribution network automatic detection method of the present invention. As shown in the figure, the method for detecting the distribution network automation terminal comprises the following steps:
and step S101, sending a signal command to an external program control power supply. In this embodiment, the transmitted signal command includes: sending signal commands including voltage, current, frequency and phase angle to the programmable power supply to simulate field operation conditions so as to perform function detection including abnormal emergency, parameter setting, data acquisition, data statistics and alarm events on the detected terminal; or sending a standard signal command to the program-controlled power supply, and comparing the standard data displayed by the standard table with the detected data generated by the detected terminal so as to detect the alternating current sampling accuracy and the metering accuracy of the detected terminal.
And S102, the program-controlled power supply generates a test signal including a test voltage and a test current according to the signal command. If the command is an abnormal signal command, such as an abnormal voltage signal command, sent in step S101, the programmable power supply generates an abnormal voltage signal according to the abnormal voltage signal command and sends the abnormal voltage signal to the terminal 10 to be tested.
And step S103, the detected terminal generates a response result according to the test signal. In this embodiment, the terminal to be detected should be able to monitor the abnormal information according to the test signal sent by the programmable power supply, such as the abnormal signal sent by the programmable power supply, and report to the detection device in the form of an alarm or an event.
And step S104, comparing the response result with the test signal, generating a detection result and storing the detection result. And comparing the response result of the detected terminal with the expected test result of the test signal, if the response result is consistent with the expected test result, the detection is proved to be passed, and if the response result is inconsistent with the expected test result, the detection is not passed.
In this embodiment, the method for detecting a distribution network automation terminal further includes:
sending a command frame to the detected terminal to detect a communication protocol of the detected terminal; or
Generating a pulse signal, transmitting the pulse signal to the detected terminal, comparing the generated pulse signal with pulse acquisition information of the detected terminal, and detecting a pulse acquisition function of the detected terminal; or
And generating direct current analog quantity, transmitting the direct current analog quantity to the detected terminal, and detecting the direct current analog quantity acquisition function of the detected terminal.
Fig. 8 is a schematic structural diagram and a schematic signal trend diagram of the distribution network automatic detection system according to the embodiment of the present invention. The detection equipment is positioned in the main control computer and comprises a function simulation module, an accuracy testing module, a communication protocol analysis module, a database and the like. Wherein:
the function of the function simulation module is as follows:
firstly, (1) sending an abnormal signal command to the programmable power supply and receiving event information uploaded by a detected terminal; (2) judging whether the reaction of the detected terminal is normal or not; (3) writing the abnormal emergency test result into a database;
secondly, (1) sending a normal signal command to the programmable power supply; (2) judging whether the parameter setting and data statistics of the detected terminal are normal or not; (3) and writing the test result of the normal function event into the database.
The accuracy testing module has the functions of: (1) sending an output standard signal command to a current and voltage control module of the programmable power supply; reading the tested data from the tested terminal; reading standard data from a standard table; (2) comparing the measured data with the standard data, and judging whether the error meets the requirement; (3) and writing the tested data, the standard data and the error test result into a database.
The communication protocol detection module has the functions of: (1) sending a command frame to the detected terminal, and then receiving a response frame returned by the detected terminal; (2) judging whether the response frame of the detected terminal meets the requirements of verification and frame format and whether the analyzed data meets logic; (3) and writing the communication protocol test result into a database.
The main control computer (detection device) controls the programmable power supply to output different voltages, currents, frequencies and phases, and simulates the field operation condition to provide the simulated field operation condition for the detected terminal. The program-controlled power supply comprises a voltage and current signal control module, a D/A conversion circuit, a DSP circuit, an output display window and the like.
Fig. 9 is a schematic structural diagram and a schematic signal trend diagram of function detection performed on a detected terminal in the embodiment shown in fig. 8. As shown in the figure, the detected terminal is connected with the programmed power supply and the function simulation module. The detection device can simulate a master station to realize three-remote function detection on the detected terminal, and can also simulate field working conditions such as voltage out-of-limit, current out-of-limit, unbalance, power out-of-limit, harmonic out-of-limit and the like through a programmable power supply to detect various functions of the detected terminal, thereby ensuring that the functions of the detected terminal meet the function specification of relevant standards. Fig. 9 is a schematic structural diagram for performing abnormal emergency detection, and as shown in the figure, the function simulation module sends an output abnormal signal command to the programmable power supply, the programmable power supply generates an abnormal test signal, such as an abnormal voltage signal, an abnormal current signal, and the like, according to the abnormal signal command, transmits the generated abnormal test signal to the terminal to be detected, and the terminal to be detected generates an abnormal response result according to the abnormal test signal, returns the abnormal response result to the detection device, and writes abnormal emergency data into the database.
In another embodiment, the detecting the function of the terminal to be detected by using the function simulation module further includes: the function simulation module sends a normal signal command to the program-controlled power supply; judging whether the functions of parameter setting, data statistics, alarm events, data acquisition and the like of the detected terminal are normal or not; and writing the test result of the normal function event into the database.
(1) The alarm event function: the main control computer controls the program control power supply to simulate the field operation condition, abnormal voltage and current are generated, the terminal can monitor abnormal information, and the abnormal information is reported to the main control computer in the form of alarm or event.
For example: powering off the detected terminal, powering on again, repeating for 5 times, and recalling the power failure time event record recorded by the terminal by the detection device, wherein the power failure time event record should be 5 times; setting the terminal over-limit voltage to 242V, controlling the output voltage of the programmable power supply to be 3 multiplied by 260V, and reporting the voltage over-limit event by the terminal.
(2) A parameter setting function: the main control computer sends parameter information to the detected terminal, after the terminal is confirmed, the main control computer calls the parameter information of the terminal, the parameter information of the terminal is automatically compared with the sent information, and if the parameter information of the terminal is completely consistent, the parameter setting function of the terminal is judged to be qualified.
For example: the master station issues a master station IP address and port: primary IP and port: 218.249.168.122: 7107 ", the terminal replies a confirmation message, the master station calls and measures the parameters of" master station IP address and port ", the terminal shall reply" 218.249.168.122: 7107' and qualified in function.
(3) The data acquisition function: the detected terminal is externally connected with an electric energy meter through an RS485 port, the main control computer controls the programmable power supply to output certain voltage to be supplied to the terminal and the electric energy meter, the meter reading information of the main station calling and measuring terminal is consistent with the electric quantity information in the electric energy meter, the programmable power supply supplies certain current to the electric energy meter, the power is cut off after the electric energy meter runs for several hours, the meter reading information of the terminal is called again and is consistent with the information of the electric energy meter, the electric energy meter is fed again, the electric energy meter runs for several hours, and the electric energy meter is called again to perform testing for 24 hours in a circulating mode.
For example: the terminal is externally connected with an electric energy meter through an RS485 port, the computer controls the programmable power supply to provide 3X 220V voltage for the terminal, and the computer controls the programmable power supply to provide 3X 220V voltage for the electric energy meter and call and measure meter reading data of the terminal: a total of 20.66kWh tips 0.33kWh peaks 0.22kWh troughs 20.11kWh troughs 0.00kWh, at which time the meter display information is also a total of 20.66kWh tips 0.33kWh peaks 0.22kWh troughs 20.11kWh troughs 0.00 kWh; the meter was supplied with 3 x 1A current and run for 5 hours, at which time the meter showed a total 23.96kWh tip 0.33kWh peak 0.22kWh flat 23.41kWh trough 0.00kWh. And if the information of the meter reading of the detected terminal is consistent with the information of the electric energy meter in the process, judging that the meter reading is qualified.
(4) The data statistics function is as follows: the main control computer controls the programmable power supply to keep stable voltage and current for a period of time, the data statistical function of the detection terminal is qualified if the data statistical function is consistent with the output of the programmable power supply; and modifying the time of the terminal, and detecting whether the daily statistic function and the monthly statistic function of the terminal are qualified or not.
For example: the computer controls the programmable power supply to provide 3 multiplied by 220V voltage and 3 multiplied by 1.5A current for the terminal, the terminal is changed into two-phase power supply after running for 1 hour, the active power curve recorded by the terminal is called and tested after running for one hour, the current is reduced to 0, the active power curve recorded by the terminal is required to be 990W-hour and 660W-hour, and the time is consistent with the time for changing the power supply.
Fig. 10 is a schematic diagram of a structure and a signal trend for performing accuracy detection in the embodiment shown in fig. 8. As shown in the figure, the tested terminal is connected with the programmable power supply, the standard meter and the accuracy testing module to test the alternating current sampling accuracy and the metering accuracy of the tested terminal. The detection system can carry out accuracy detection on the measurement of the electric indexes such as voltage, current, power and frequency of the detected terminal, the electric energy quality indexes such as harmonic waves, unbalance degrees and voltage changes, the terminal power consumption index and the electric energy index, and the like, so that the accuracy of the terminal is ensured to meet the relevant standards.
In this embodiment, the accuracy testing module sends a standard signal output command to the programmable power supply, the programmable power supply can maintain a certain voltage and current according to the standard signal command, the voltage and current information can be calculated and displayed in the standard table, the terminal to be tested generates the acquisition information of the terminal according to the voltage and current information and sends the acquisition information to the accuracy testing module of the detecting device, and the terminal acquisition information and the voltage and current data displayed in the standard table are calculated to obtain the accuracy of the acquisition loop.
And detecting the alternating current sampling accuracy, including voltage detection accuracy, current detection accuracy, power detection accuracy and the like. The following example is the detected voltage accuracy.
In this embodiment, if the error value in the table is ± 0.5, the determination accuracy is qualified.
Fig. 11 is a schematic structural diagram and a schematic signal direction diagram of communication protocol detection performed in the embodiment shown in fig. 8. As shown in the figure, the detected terminal is connected with the programmable power supply and the communication protocol testing module to test the communication protocol of the terminal. In this embodiment, the programmable power supply and the function simulation module are respectively used for controlling the power supply of the detected device and the power supply of the detection device. The detection system can carry out consistency test on the communication protocol of the detected terminal from several aspects such as a data link layer, an application layer, a communication flow and the like, can simulate various problems possibly occurring in the communication protocol, carries out negative test on the terminal in the form of error frames, and finally ensures that the terminal meets the requirement of the communication protocol.
In this embodiment, the main control computer communicates with the detected terminal through a communication protocol detection module through a correct message and an incorrect message, and detects the communication protocols of the terminal at a link layer and an application layer.
For example: the message is in a binary form, the communication protocol detection module sends a correct message to the detected terminal, and the detected terminal receives the message and responds correctly. And the communication protocol detection module sends an error message to the terminal, and the detected terminal should not respond or reply to the FF.
Fig. 12 is a schematic view of a structure and a signal trend for performing dc acquisition function detection in the embodiment shown in fig. 8. As shown in the figure, the detected terminal is connected with the program control power supply and the direct current signal control module, and the direct current analog quantity acquisition function of the terminal is tested. The function simulation module in this embodiment is connected to the programmable power supply, and is used for controlling the power supply of the whole detection device.
Fig. 13 is a schematic view of a structure and a signal trend for performing the pulse acquisition function detection in the embodiment shown in fig. 8. The detected terminal is connected with the program control power supply, the pulse module and the accuracy testing module, and the pulse acquisition function of the terminal is measured. In this embodiment, the programmable power supply and the function simulation module are respectively used for controlling the power supply of the detected device and the power supply of the detection device.
In this embodiment, the main control computer controls the pulse module to generate a certain number of electric pulses with a certain frequency, calls the pulse acquisition information of the terminal, and calculates to obtain the accuracy of pulse loop acquisition.
If the pulse constant of the measuring point is 4800imp/kWh, the error range of pulse acquisition is +/-2%. The pulse generator is controlled to emit pulses at a frequency of 12 pulses/minute, and the recording power of the terminal at the frequency is 0.15kW, and the recording power is qualified between 0.147kW and 0.153 kW.
The system and the method for detecting the distribution network automatic terminal can realize the function test, the accuracy test and the communication protocol test of the distribution network automatic terminal (DTU, TTU and FTU) and the power load management terminal, and can perform auxiliary test on the performance of the equipment; the testing process realizes automatic control of a computer, the testing efficiency is high, and the accuracy of the testing result is ensured; the power supply abnormal condition in the field working condition is simulated by adopting the actual power supply, so that the function detection effectiveness of the terminal alarm event is ensured; the test scheme and the test result can be automatically stored and generated, and the reliability of the test data is ensured. The distribution network automatic terminal detection system and the distribution network automatic terminal detection method fill the gap of the distribution network automatic terminal detection at present, can be widely applied to the construction of distribution network automatic systems, can standardize the performance and the function of the distribution network automatic terminal, improve the product quality of the distribution network automatic terminal, can effectively reduce the potential safety hazard of the distribution network system, improve the safe and stable operation level of a distribution network, improve the reliability of the distribution network, and lay a solid foundation for promoting the construction and the application of the distribution network automatic system.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.