A power distribution intelligent gateway testing system and method
Through the power distribution intelligent gateway testing system, the IoT simulation main station, external data simulation components and reactive power compensation simulation components are used to solve the problem of lack of debugging of the power distribution intelligent gateway function, and effective evaluation of its data acquisition function and internal performance is achieved, and testing accuracy and service isolation effect are improved.
Patent Information
- Application Number
- CN202211247010.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-12
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2042-10-12
AI Technical Summary
There is a lack of mature testing solutions in the prior art to debug the functions of the distribution smart gateway, especially during the construction or transformation of the smart grid, and the need for pre-entry debugging of the distribution smart gateway is urgent.
It provides a power distribution intelligent gateway testing system, including an IoT simulation master station, an external data simulation component and a reactive power compensation simulation component. Through these components, they are connected to the power distribution intelligent gateway to be tested, send test instructions and determine whether its response data is consistent with the preset data to be evaluated to evaluate its data acquisition function and internal performance.
The test system can effectively evaluate the data acquisition function and internal performance of the distribution intelligent gateway, avoid the accuracy of manual testing, and realize the isolation between the test business and the actual production business, preventing the impact of testing on production.
Smart Images

Figure CN115622914B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent gateways, and in particular to a power distribution intelligent gateway testing system and method. Background Art
[0002] With the development of social economy and the continuous improvement of people's living standards, electricity users have higher requirements for power supply quality and reliability, and higher requirements for distribution network operation. China Southern Power Grid has carried out the digital transformation of the distribution network, building a distribution Internet of Things through the comprehensive interconnection, intercommunication and interoperability of distribution network equipment, realizing lean management of the distribution network, promoting lean operation and maintenance control of the distribution network and standardized development of low-voltage management, and comprehensively improving the informationization and intelligence level of the power grid.
[0003] The power distribution smart gateway is the access unit that connects the "things" to the "network" in the power distribution Internet of Things. It is responsible for providing the basic data such as the operation status, equipment status, environmental status and other auxiliary information of the distribution network to the upper level, connecting to the terminals that execute decision-making commands or local control, and collecting data from each terminal for transmission upward. The power distribution smart gateway is of great significance to the entire distribution network, and its performance will directly affect the safety and reliability of the distribution network. In order to ensure that the power distribution smart gateway has high operation quality and good interoperability, it is very necessary to debug the power distribution smart gateway before entering the network during the construction or transformation of the smart grid.
[0004] However, the power distribution intelligent gateway is a new device for distribution network services. Currently, the functional debugging of the power distribution intelligent gateway is still in the exploratory stage, and there is no relatively mature testing solution yet. Summary of the invention
[0005] The present invention provides a power distribution intelligent gateway testing system and method, which are used to test the data acquisition function and internal performance of the intelligent gateway.
[0006] The present invention provides a test system for a power distribution intelligent gateway, comprising: an IoT simulation master station, an external data simulation component, and a reactive power compensation simulation component;
[0007] The IoT simulation master station is connected to the external data simulation component and the reactive compensation simulation component respectively, and is used to connect and test the power distribution intelligent gateway to be tested, and is specifically used to send a control command to the external data simulation component and a reactive compensation test instruction to the reactive compensation simulation component respectively when receiving a first test instruction;
[0008] The external data simulation component is used to connect to the power distribution intelligent gateway to be tested, and is specifically used to, when receiving the control command, generate external data according to the control command, and transmit the external data to the power distribution intelligent gateway to be tested;
[0009] The reactive power compensation simulation component is used to connect to the power distribution intelligent gateway to be tested, and is specifically used to, when receiving the reactive power compensation instruction, generate corresponding reactive power compensation data according to the reactive power compensation instruction, and transmit the reactive power compensation data to the power distribution intelligent gateway to be tested;
[0010] The IoT simulation master station is also used to send a reactive compensation instruction to the reactive compensation simulation component, and to determine whether the power distribution intelligent gateway to be tested returns the reactive compensation data within a preset time period. If so, it is determined that the reactive compensation monitoring function of the power distribution intelligent gateway to be tested is normal;
[0011] The IoT simulation master station is also used to send a control command to the external data simulation component and to determine whether the external data is consistent with the preset external data when receiving the external data sent by the power distribution intelligent gateway to be tested. If so, it is determined that the external data collection function of the power distribution intelligent gateway to be tested is normal;
[0012] The IoT simulation master station is also used to send a performance test instruction to the power distribution intelligent gateway to be tested when receiving a second test instruction, and to determine whether the power distribution intelligent gateway to be tested returns performance data. If so, it is used to determine whether the performance data is consistent with the preset performance data. If they are consistent, it is determined that the performance test result of the power distribution intelligent gateway to be tested is qualified.
[0013] Optionally, the external data simulation component includes an image data component; the control command includes an image acquisition test command;
[0014] The image data component is used to connect with the power distribution intelligent gateway to be tested, and to collect target image data according to the image acquisition test command when receiving the image acquisition test command issued by the IoT simulation master station, and transmit the target image data to the power distribution intelligent gateway to be tested;
[0015] The IoT simulation master station is specifically used to determine whether the target image data is consistent with the preset target image data when receiving the target image data. If so, it is determined that the image acquisition function of the power distribution intelligent gateway to be tested is qualified.
[0016] Optionally, the external data simulation component includes a sensor data simulation component; the control command includes a sensor data acquisition test command;
[0017] The sensor data simulation component is used to connect with the power distribution intelligent gateway to be tested, and to build a target environment according to the sensor data acquisition test command when receiving the sensor data acquisition test command issued by the IoT simulation master station, and to collect environmental data of the target environment, and transmit the environmental data to the power distribution intelligent gateway to be tested;
[0018] The IoT simulation master station is specifically used to, when receiving the environmental data, determine whether the environmental data is consistent with the preset environmental data, and if so, determine that the sensor data acquisition function of the power distribution intelligent gateway to be tested is qualified.
[0019] Optionally, the test system further comprises an actuator;
[0020] The actuator is connected to the power distribution intelligent gateway to be tested and the IoT simulation master station;
[0021] The actuator is used to execute a preset action according to the control signal received from the power distribution intelligent gateway to be tested;
[0022] The IoT simulation master station is used to obtain the preset action performed by the actuator when the external data generated by the external data simulation component meets the preset gateway threshold condition, and determine whether the power distribution intelligent gateway to be tested outputs a control signal to the actuator based on the preset action. If so, it is determined that the decision-making function of the power distribution intelligent gateway to be tested is qualified.
[0023] Optionally, the IoT simulation master station is also used to, when receiving the first test instruction, send an energy meter data collection instruction to the power distribution intelligent gateway to be tested, and when receiving the energy meter data returned by the power distribution intelligent gateway to be tested, determine whether the returned energy meter data is consistent with the preset energy meter data; if they are consistent, it is determined that the energy meter data collection function of the power distribution intelligent gateway to be tested is qualified.
[0024] Optionally, the second test instruction includes an event record test instruction, and the performance test instruction includes a query instruction;
[0025] The IoT simulation master station is specifically used to, when receiving the event record test instruction, send a query instruction to the power distribution intelligent gateway to be tested, receive the query data returned by the power distribution intelligent gateway to be tested, and determine whether the query data is consistent with the preset query data. If they are consistent, the event record test result of the power distribution intelligent gateway to be tested is determined to be qualified.
[0026] Optionally, the second test instruction includes a data priority test instruction, and the IoT simulation master station is used to send a priority test instruction to the power distribution intelligent gateway to be tested when receiving the data priority test instruction, receive the test data returned by the power distribution intelligent gateway to be tested, and judge whether the power distribution intelligent gateway to be tested returns data according to a preset priority based on the time when the test data is returned. If so, the test result of the data priority test of the power distribution intelligent gateway to be tested is determined to be qualified.
[0027] Optionally, the second test instruction also includes an alarm function test instruction; the IoT simulation master station is also used to, when receiving the alarm function test instruction, call the corresponding alarm simulation environment script according to the alarm function test instruction, construct a target alarm environment and target alarm information corresponding to the target alarm environment, and determine whether the power distribution intelligent gateway to be tested returns the alarm information within a preset time period, and after receiving the alarm information, determine whether the alarm information is consistent with the target alarm information. If so, the alarm function of the power distribution intelligent gateway to be tested is determined to be qualified.
[0028] Optionally, the second test instruction also includes a reconnection test instruction; the IoT simulation master station is also used to disconnect the communication connection with the power distribution intelligent gateway to be tested when receiving the reconnection test instruction, and determine whether a connection request of the power distribution intelligent gateway to be tested is received within a preset time period. If so, the test result of the reconnection test of the power distribution intelligent gateway to be tested is determined to be qualified.
[0029] The present invention also provides a method for testing a power distribution intelligent gateway, which is applied to the system as described above, and the method comprises:
[0030] When the IoT simulation master station receives the first test instruction, it sends a control command to the external data simulation component and sends a reactive compensation instruction to the reactive compensation simulation component;
[0031] When the external data simulation component receives the control command, the external data is transmitted to the power distribution intelligent gateway to be tested; when the reactive power compensation simulation component receives the reactive power compensation instruction, the reactive power compensation data is transmitted to the power distribution intelligent gateway to be tested;
[0032] When receiving the external data returned by the power distribution intelligent gateway to be tested, the IoT simulation master station determines whether the external data returned by the power distribution intelligent gateway to be tested is consistent with the preset external data;
[0033] After sending the reactive power compensation instruction, the IoT simulation master station determines whether the power distribution intelligent gateway to be tested returns the reactive power compensation data within a preset time period. If so, it is determined that the reactive power compensation monitoring function of the power distribution intelligent gateway to be tested is normal;
[0034] When the IoT simulation master station receives the second test instruction, it sends a performance test instruction to the power distribution intelligent gateway to be tested. When the power distribution intelligent gateway to be tested returns performance data, the IoT simulation master station determines whether the performance data is consistent with the preset performance data. If they are consistent, the performance test result of the power distribution intelligent gateway to be tested is determined to be qualified.
[0035] It can be seen from the above technical solutions that the present invention has the following advantages:
[0036] In this embodiment, when the first test instruction is received, the power distribution data acquisition function of the power distribution intelligent gateway to be tested is tested through the IoT simulation main station, the external data simulation component, and the reactive compensation simulation component to determine whether the data acquisition function of the power distribution intelligent gateway to be tested is normal. When the second test instruction is received, the performance test instruction is sent to the power distribution intelligent gateway to be tested through the IoT simulation main station, and by judging whether the power distribution intelligent gateway to be tested returns performance data, if so, it is judged whether the performance data is consistent with the preset performance data, and the power distribution intelligent gateway to be tested is internally tested for performance. The present invention as a whole tests the data acquisition function and internal performance of the power distribution intelligent gateway to be tested through the IoT simulation main station, avoiding the situation where the test accuracy is low due to the need to manually record the test results during manual testing. In addition, this embodiment uses the IoT simulation main station to test the power distribution intelligent gateway to be tested, and there is no need to connect the power distribution intelligent gateway to be tested to the global IoT platform for testing, which achieves effective isolation of the test business from the actual production business and avoids the impact of the test business on the actual production business. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 A schematic diagram of a test system for a power distribution intelligent gateway provided in Embodiment 1 of the present invention;
[0039] Figure 2 A schematic diagram of a testing method for a power distribution intelligent gateway provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0040] An embodiment of the present invention provides a test system for a power distribution intelligent gateway, which is used to test the data acquisition function and internal performance of the intelligent gateway.
[0041] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The power distribution intelligent gateway refers to a device that uses container technology, has edge computing capabilities, and adopts hardware platformization, functional softwareization, structural modularization, software and hardware decoupling, and communication protocol self-adaptive design to meet the needs of high-performance concurrency, large-capacity storage, and multiple collection objects. It is an intelligent device that integrates remote monitoring and operation and maintenance of distribution substations, power supply and consumption information collection of distribution substations, data collection of various collection terminals, equipment status monitoring and communication networking, on-site analysis and decision-making, and collaborative computing.
[0043] In actual applications, the distribution intelligent gateway should have the functions of integrated metering concentrator and distribution transformer monitoring and metering terminal to meet the data access of various sensors, and connect to the Southern Power Grid's global Internet of Things platform through the Internet of Things MQTT protocol. It can also connect to other real-time systems through the secure access area to meet the requirements of one machine with multiple generators.
[0044] See also Figure 1 , Figure 1 A schematic diagram of a test system for a power distribution intelligent gateway provided in Embodiment 1 of the present invention.
[0045] A test system for a power distribution intelligent gateway provided in this embodiment includes: an IoT simulation master station 1, an external data simulation component 2, and a reactive power compensation simulation component 3;
[0046] The IoT simulation master station 1 is respectively connected to the external data simulation component 2, the reactive power compensation simulation component 3, and the power distribution intelligent gateway 5 to be tested, and is used to connect and test the power distribution intelligent gateway 5 to be tested, and is specifically used to send a control command to the external data simulation component 2 and a reactive power compensation test instruction to the reactive power compensation simulation component 3 when receiving a first test instruction;
[0047] The external data simulation component 2 is used to connect to the power distribution intelligent gateway 5 to be tested, and is specifically used to, when receiving a control command, generate external data according to the control command, and transmit the external data to the power distribution intelligent gateway 5 to be tested;
[0048] The reactive power compensation simulation component 3 is used to connect to the power distribution intelligent gateway 5 to be tested, and is specifically used to, when receiving a reactive power compensation instruction, generate corresponding reactive power compensation data according to the reactive power compensation instruction, and transmit the reactive power compensation data to the power distribution intelligent gateway 5 to be tested;
[0049] The IoT simulation master station 1 is also used to send a reactive compensation instruction to the reactive compensation simulation component 3, and to determine whether the power distribution intelligent gateway 5 to be tested returns the reactive compensation data within a preset time period. If so, it is determined that the reactive compensation monitoring function of the power distribution intelligent gateway to be tested is normal;
[0050] The IoT simulation master station 1 is also used to send a control command to the external data simulation component 2, and when receiving the external data sent by the power distribution intelligent gateway 5 to be tested, determine whether the external data is consistent with the preset external data, and if so, determine that the data acquisition function of the power distribution intelligent gateway 5 to be tested is normal;
[0051] The IoT simulation master station 1 is also used to send a performance test instruction to the power distribution intelligent gateway 5 to be tested when receiving the second test instruction, and determine whether the power distribution intelligent gateway 5 to be tested returns performance data. If so, determine whether the performance data is consistent with the preset performance data. If consistent, determine that the performance test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0052] It should be noted that the IoT simulation master station 1 refers to a system composed of computers and test software, which simulates the global IoT platform and realizes the connection and exchange of the power distribution intelligent gateway through standardized protocols, and realizes parameter setting, data call testing, data display and other operations on the power distribution intelligent gateway.
[0053] In this embodiment, the test of the power distribution intelligent gateway 5 to be tested mainly includes: 1) data acquisition function test, 2) internal performance test. When the first test instruction is received, the data acquisition function test is performed, and when the second performance test instruction is received, the performance test is performed. The specific situation is as follows:
[0054] 1) Data acquisition function test:
[0055] When the first test instruction is received, it indicates that the data acquisition function of the power distribution intelligent gateway 5 to be tested needs to be tested. The IoT simulation master station 1 sends a control command to the external data simulation component 2 to test the external data acquisition function, and sends a reactive compensation instruction to the reactive compensation simulation component 3 to test the reactive compensation monitoring function.
[0056] The test of external data collection function is as follows:
[0057] When receiving the first test instruction, the IoT simulation master station 1 generates a control command and preset external data according to the first test instruction, and sends the control command to the external data simulation component 2. When the external data simulation component 2 receives the control command, it generates external data according to the control command, wherein the external data and the preset external data have a one-to-one corresponding relationship.
[0058] After the external data simulation component 2 generates external data, it transmits the generated external data to the power distribution intelligent gateway 5 to be tested. Under normal circumstances, the power distribution intelligent gateway 5 to be tested should transmit the external data to the IoT simulation master station 1, and the external data sent by the power distribution intelligent gateway 5 to be tested should be consistent with the external data generated by the external data simulation component 2, and also consistent with the preset external data.
[0059] In this embodiment, after the IoT simulation master station 1 issues a control command, it determines whether the power distribution intelligent gateway 5 to be tested returns external data within a preset time period. If so, the preset external data is called, and it is determined whether the external data returned by the power distribution intelligent gateway 5 to be tested is consistent with the preset external data. If they are consistent, it means that the data collection function of the power distribution intelligent gateway 5 to be tested is normal. If they are inconsistent, or no external data is received within the preset time period, it means that the external data collection function of the power distribution intelligent gateway 5 to be tested is abnormal.
[0060] The test of reactive power compensation monitoring function is as follows:
[0061] When receiving the first test instruction, the IoT simulation master station 1 generates a reactive compensation instruction according to the first test instruction, and sends the reactive compensation instruction to the reactive compensation simulation component 3. The reactive compensation simulation component 3 receives the reactive compensation instruction, generates corresponding reactive compensation data according to the reactive compensation instruction, and transmits the reactive compensation data to the distribution intelligent gateway 5 to be tested.
[0062] Under normal circumstances, the power distribution intelligent gateway 5 to be tested should return the reactive compensation data to the IoT simulation master station to realize the reactive compensation online monitoring function. Therefore, this embodiment determines whether the power distribution intelligent gateway 5 to be tested returns the reactive compensation data within a preset time period. If so, it means that the reactive compensation monitoring function is normal and reactive compensation online monitoring can be realized.
[0063] Among them, the reactive compensation simulation component 3 includes a reactive environment simulation module and a reactive compensation device. The reactive environment simulation module receives the reactive compensation instruction and generates a reactive compensation environment according to the reactive compensation instruction. The reactive compensation device performs reactive power compensation according to the reactive compensation environment and transmits the compensated reactive power value to the power distribution intelligent gateway 5 to be tested. The IoT simulation master station 1 determines whether the reactive power value transmitted by the power distribution intelligent gateway 5 to be tested is received. If so, it indicates that the online monitoring function of the reactive compensation situation of the power distribution intelligent gateway 5 to be tested is normal.
[0064] 2) Internal performance testing
[0065] When the second test instruction is received, it indicates that the internal performance of the power distribution intelligent gateway 5 to be tested needs to be tested, and the IoT simulation master station 1 generates preset performance data according to the received second test instruction;
[0066] Afterwards, the IoT simulation master station 1 sends a performance test instruction to the power distribution intelligent gateway 5 to be tested, and determines whether the power distribution intelligent gateway 5 to be tested returns performance data. If so, it determines whether the performance data is consistent with the preset performance data. When the performance data is consistent with the preset performance data, it means that the performance of the power distribution intelligent gateway 5 to be tested is qualified. If they are consistent, it is determined that the performance test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0067] It should be noted that, in the present invention, the relevant content involving determining whether the power distribution intelligent gateway 5 to be tested returns data is all determined by determining whether the data returned by the power distribution intelligent gateway 5 to be tested is received within a preset time length, wherein the preset time length can be determined according to the characteristics of the test content. For example, in the image acquisition test below, the preset time length requires more transmission time, and the preset time length can be set to be longer. The transmission of reactive compensation data requires a relatively short time, and the preset time length can be set to be shorter.
[0068] The first test instruction and the second test instruction may be input into the IoT simulation master station 1 by a tester.
[0069] In this embodiment, when the first test instruction is received, the power distribution data acquisition function of the power distribution intelligent gateway 5 to be tested is tested through the Internet of Things simulation master station 1, the external data simulation component 2, and the reactive compensation simulation component 3 to determine whether the data acquisition function of the power distribution intelligent gateway 5 to be tested is normal. When the second test instruction is received, the performance test instruction is sent to the power distribution intelligent gateway 5 to be tested through the Internet of Things simulation master station 1, and by judging whether the power distribution intelligent gateway 5 to be tested returns performance data, if so, it is judged whether the performance data is consistent with the preset performance data, and an internal performance test is performed on the power distribution intelligent gateway 5 to be tested. Overall, the data acquisition function and internal performance of the power distribution intelligent gateway 5 to be tested are tested through the Internet of Things simulation master station 1, avoiding the situation of low test accuracy caused by manual recording of test results during manual testing. Moreover, in this embodiment, the Internet of Things simulation master station 1 is used to test the power distribution intelligent gateway 5 to be tested, and there is no need to connect the power distribution intelligent gateway 5 to be tested to the global Internet of Things platform for testing, thereby achieving effective isolation between the test business and the actual production business, and avoiding the impact of the test business on the actual production business.
[0070] In a specific embodiment, the external data simulation component 2 includes: an image data component 21. The control command includes an image acquisition test command. The image data component 21 is connected to the power distribution intelligent gateway 5 to be tested, and is used to collect target image data according to the image acquisition test command when receiving the image acquisition test command issued by the IoT simulation master station 1, and transmit the target image data to the power distribution intelligent gateway 5 to be tested; the IoT simulation master station 1 is specifically used to determine whether the target image data is consistent with the preset target image data when receiving the target image data, and if so, it is determined that the image acquisition function of the power distribution intelligent gateway 5 to be tested is qualified.
[0071] It should be noted that the image data component 21 is used to collect image data of the operation of the power distribution station, such as the operation of the main equipment in the power distribution station. The image data component 21 includes a camera, which adopts GB28181 or ONVIF protocol to connect to the power distribution intelligent gateway 5 to be tested.
[0072] When the image data component 21 receives a control command, it collects target image data according to the control command and sends the target image data to the power distribution intelligent gateway 5 to be tested. After that, the Internet of Things simulation master station 1 determines whether the target image data transmitted by the power distribution intelligent gateway 5 to be tested is received within the preset time length, and when receiving the target image data, it determines whether the target image data is consistent with the preset target image data. If they are consistent, it means that the power distribution intelligent gateway 5 to be tested can collect image data normally, and it is determined that the image data collection function of the power distribution intelligent gateway 5 to be tested is normal. If they are inconsistent or the target image data is not received, it is determined that the image data collection function of the power distribution intelligent gateway 5 to be tested is abnormal.
[0073] It is understandable that when the first test instruction is received, the IoT simulation master station 1 generates a corresponding image acquisition test command according to the preset target image data, and the image acquisition test command includes the camera parameters required for acquiring the target image data, and the parameters may include the rotation angle of the camera, etc. The preset target image data and the image acquisition test command have a one-to-one corresponding relationship. When the image data component 21 receives the image acquisition test command, the image data acquired according to the image acquisition test command is consistent with the preset target image data. For example, if the preset target image data is the left side of the distribution room, the image acquisition test command includes the angle value of the camera turning left.
[0074] After the image data component 21 collects the target image data, it transmits the target image data to the power distribution intelligent gateway 5 to be tested, and the power distribution intelligent gateway 5 to be tested transmits the target image data to the IoT simulation master station 1. Under normal circumstances, the target image data returned by the power distribution intelligent gateway 5 to be tested and received by the IoT simulation master station 1 should be consistent with the preset target image data. If they are inconsistent, it means that the image data collection function of the power distribution intelligent gateway 5 to be tested is abnormal.
[0075] In this embodiment, the target image data can be dynamic video data or static photo data. In this embodiment, the device monitoring function of the power distribution intelligent gateway to be tested is tested through the image data component 21 and the IoT simulation master station 1 to determine whether the power distribution intelligent gateway to be tested can monitor the operating status of each device in the power distribution station.
[0076] In a specific embodiment, the external data simulation component 2 includes: a sensor data simulation component 22. The control command includes a sensor data acquisition test command; the sensor data simulation component 22 is used to connect with the power distribution intelligent gateway 5 to be tested, and is used to build a target environment according to the sensor data acquisition test command when receiving the sensor data acquisition test command issued by the IoT simulation master station 1, and to collect environmental data of the target environment, and transmit the environmental data to the power distribution intelligent gateway 5 to be tested; the IoT simulation master station 1 is specifically used to determine whether the environmental data is consistent with the preset environmental data when receiving the environmental data, and if so, determine that the sensor data acquisition function of the power distribution intelligent gateway 5 to be tested is qualified.
[0077] It should be noted that the sensor data simulation component 22 is used to build a target environment according to the sensor data acquisition test command, and to collect environmental data of the target environment, and transmit the environmental data to the power distribution intelligent gateway 5 to be tested. The IoT simulation master station 1 is specifically used to determine whether the environmental data is consistent with the preset environmental data when receiving the environmental data. If so, it is determined that the sensor data acquisition function of the power distribution intelligent gateway 5 to be tested is qualified.
[0078] The sensor data simulation component 22 may include environmental sensors and environment building components used to build the target environment. Environmental sensors may include temperature and humidity sensors, water level sensors, smoke sensors, noise sensors, etc., and the environment building components correspond to the environmental sensors one by one, which may include a temperature control box, a water tank, a smoke generator, a speaker, etc.
[0079] The preset environment data and the sensor data acquisition test command have a one-to-one corresponding relationship. The IoT simulation master station 1 generates a sensor data acquisition test command based on the preset environment data. After the sensor data simulation component 22 receives the sensor data acquisition test command, it builds the target environment according to the sensor data acquisition test command and collects the environmental data of the target environment. The collected environmental data of the target environment is consistent with the preset environment data.
[0080] For example: when testing the noise data collection function of the power distribution smart gateway 5 to be tested, the IoT simulation master station 1 generates a sensor data collection test command based on the preset noise decibel data, and the sensor data collection test command includes the target volume information. Then, the sensor data collection test command is sent to the speaker. After the speaker receives the sensor data collection test command, it adjusts the volume to the target volume according to the target volume information in the command, thereby building a target volume environment. After that, the noise sensor collects the noise decibel data in the target environment to the power distribution smart gateway 5 to be tested. The IoT simulation master station 1 determines whether the power distribution smart gateway 5 to be tested returns the noise decibel data. If the noise decibel data is received, it determines whether the noise decibel data is consistent with the preset noise decibel data. If they are consistent, it means that the noise data collection function of the power distribution smart gateway 5 to be tested is qualified.
[0081] It is understandable that other environmental sensor data acquisition tests can be deduced by analogy. For example, when the sensor is a temperature and humidity sensor, the control command includes the target temperature and humidity values; when the sensor is a smoke sensor, the control command includes the target smoke concentration; when the sensor is a water level sensor, the control command includes the target water level value.
[0082] In another specific embodiment, the sensor data simulation component 22 further includes a door magnetic sensor;
[0083] The IoT simulation master station 1 generates a door magnetic system test command according to the preset simulation status information, and then sends the door magnetic system test command to the door magnetic sensor, wherein the door magnetic system test command includes a closing instruction or a disconnecting instruction. When the door magnetic sensor receives the door magnetic system test command, it closes or disconnects, and transmits the corresponding status information to the power distribution intelligent gateway 5 to be tested. The IoT simulation master station 1 determines whether the power distribution intelligent gateway 5 to be tested returns the status information of the door magnetic sensor. If the status information of the power distribution intelligent gateway 5 to be tested is received, it determines whether the status information is consistent with the preset simulation status information. If they are consistent, it means that the power distribution intelligent gateway 5 to be tested can normally collect the status information of the door magnetic sensor.
[0084] It can be understood that the preset simulation status information has a corresponding association relationship with the door magnetic system test command. When the door magnetic sensor receives the door magnetic system test command, the status information it generates is consistent with the preset simulation status information.
[0085] In a specific embodiment, the external data simulation component 2 further includes: a terminal device data simulation component 23. The control command further includes a terminal device data collection command.
[0086] The terminal equipment data simulation component 23 is used to simulate the status information of each distribution terminal equipment, which can simulate the equipment status information including current, voltage, switch opening and closing position, fault information, temperature, partial discharge, etc. of transformers, medium voltage cabinets, cables, and low voltage cabinets.
[0087] The IoT simulation master station 1 sends a terminal device data collection command to the terminal device data simulation component 23. When the terminal device data simulation component 23 receives the terminal device data collection command, it generates corresponding terminal device data according to the terminal device data collection command, and transmits the terminal device data to the power distribution intelligent gateway 5 to be tested. The IoT simulation master station 1 determines whether the power distribution intelligent gateway 5 to be tested returns the terminal device data, and when receiving the terminal device data, determines whether the terminal device data is consistent with the preset terminal device data. If they are consistent, it means that the power distribution intelligent gateway 5 to be tested can collect the terminal device data normally.
[0088] It can be understood that the preset terminal device data and the terminal device data collection command have a corresponding association relationship, the IoT simulation master station 1 generates a corresponding terminal data collection command according to the preset terminal device data, the terminal device data simulation component 23 receives the terminal device data collection command, and generates corresponding terminal device data according to the terminal device data collection command, and the terminal device data is consistent with the preset terminal device data. For example, if the preset terminal device data is the preset transformer fault information, then the IoT simulation master station 1 generates a transformer fault information collection command, and when the terminal device data simulation component 23 receives the transformer fault information collection command, it generates corresponding transformer fault information according to the transformer fault information collection command, and the generated transformer fault information is consistent with the preset transformer fault information.
[0089] In another specific embodiment, a test system for a power distribution intelligent gateway provided by the present invention further includes an actuator 4;
[0090] The actuator 4 is connected to the power distribution intelligent gateway 5 to be tested and the IoT simulation master station 1;
[0091] An actuator 4 is used to execute a preset action according to a control signal received from the power distribution intelligent gateway 5 to be tested;
[0092] The IoT simulation master station 1 is used to obtain the preset action performed by the actuator 4 when the external data generated by the external data simulation component 2 meets the preset gateway threshold condition, and determine whether the power distribution intelligent gateway 5 to be tested outputs a control signal to the actuator 4 according to the preset action. If so, it is determined that the decision-making function of the power distribution intelligent gateway 5 to be tested is qualified.
[0093] It should be noted that the actuator 4 refers to a terminal device or a distribution device that receives the control signal of the intelligent gateway, and performs the corresponding preset action according to the control signal, which can be used to reflect whether the distribution intelligent gateway has correctly output the control signal. The control signal can be a state signal or a switch signal. The distribution intelligent gateway has an edge computing function, and the gateway threshold condition is a threshold judgment condition. Under normal circumstances, when the external data meets the gateway threshold condition, the distribution intelligent gateway will send a control signal to the actuator 4 to drive the actuator 4 to perform the corresponding action.
[0094] During the test, the IoT simulation master station 1 can send a control command to the external data simulation component 2 so that the external data generated by the external data simulation component 2 meets the preset gateway threshold condition. After that, the preset action performed by the actuator 4 is obtained, and it is determined whether the power distribution intelligent gateway 5 to be tested correctly outputs the control signal to the actuator 4 according to the preset action.
[0095] For example, the voltage threshold of the gateway is set to 210V, and the gateway threshold condition is set as follows: when the voltage value transmitted to the power distribution intelligent gateway is lower than 210V, the power distribution intelligent gateway sends an alarm signal to the corresponding substation monitoring module. At this time, the trip command corresponds to the control signal in this embodiment, and the substation monitoring module is actuator 4.
[0096] The IoT simulation master station 1 sends a control command to the terminal device data simulation component 23, so that the terminal device data simulation component 23 outputs 200V voltage data to the power distribution intelligent gateway 5 to be tested. Under normal circumstances, when the power distribution intelligent gateway 5 to be tested receives the 200V voltage data, it is judged that 200V is less than 210V, which is lower than the set gateway threshold, and an alarm signal should be sent to the substation monitoring module. When the substation monitoring module receives the alarm signal from the power distribution intelligent gateway 5 to be tested, the light will be turned on to prompt.
[0097] Therefore, when the voltage data generated by the terminal device data simulation component 23 is lower than 210V, the IoT simulation master station 1 obtains the alarm information of the substation monitoring module and determines whether the alarm information of the substation monitoring module is a low voltage alarm. If so, it means that the power distribution intelligent gateway 5 to be tested has correctly output the alarm signal to the actuator 4, and it is determined that the decision-making function of the power distribution intelligent gateway 5 to be tested is qualified.
[0098] In another specific embodiment, the IoT simulation master station 1 is also used to send an energy meter data collection instruction to the power distribution intelligent gateway 5 to be tested when receiving the first test instruction, and when receiving the energy meter data, determine whether the energy meter data is consistent with the preset energy meter data. If they are consistent, it is determined that the energy meter data collection function of the power distribution intelligent gateway 5 to be tested is qualified.
[0099] It should be noted that the IoT simulation master station 1 is also used to generate an energy meter test module, which is used to provide simulated energy meter data, and can simulate a preset number of energy meters connected to the power distribution intelligent gateway 5 to be tested. When receiving the first test instruction, the IoT simulation master station 1 calls the energy meter test module, and establishes a connection between the energy meter test module and the power distribution intelligent gateway 5 to be tested, and sends an energy meter data collection instruction to the power distribution intelligent gateway 5 to be tested, so that the power distribution intelligent gateway 5 to be tested starts to read the energy meter data of the energy meter test module.
[0100] When receiving the electric energy meter data transmitted by the power distribution intelligent gateway 5 to be tested, the IoT simulation master station 1 determines whether the electric energy meter data is consistent with the preset electric energy meter data, wherein the electric energy meter data includes the electric energy data and the data collection time. When judging, the electric energy data value is compared with the preset electric energy data value to see whether it is consistent, and the data collection time is compared with the preset reading time to see whether it is consistent, so as to determine whether the power distribution intelligent gateway 5 to be tested collects the electric energy meter data according to the preset reading time period. If they are consistent, it means that the electric energy meter data collection capability of the power distribution intelligent gateway 5 to be tested is normal.
[0101] In this embodiment, the preset number may be 1000. The preset reading time period may be 30 minutes to 60 minutes.
[0102] Among them, the energy meter test module can be used to perform the following tests:
[0103] 1) Electricity meter data accuracy test;
[0104] When receiving the electric energy meter data, the IoT simulation master station 1 determines whether the electric energy meter data is missing data items, and determines whether the accumulated electric energy reading of the electric energy meter is consistent with the preset electric energy value. If both are yes, it means that the basic data collection function of the electric energy meter of the tested power distribution intelligent gateway 5 is qualified.
[0105] In another specific example, in order to further improve the test accuracy of the electric energy data accuracy of the power distribution smart gateway 5 to be tested, a physical electric meter device can be added to be connected to the power distribution smart gateway 5 to be tested, and the electric energy reading of the electric meter device can be pre-set. At the same time, the pre-set electric energy reading is saved in the Internet of Things simulation master station 1. During the test, the Internet of Things simulation master station 1 triggers the power distribution smart gateway 5 to be tested to read the electric energy meter data. After receiving the electric energy reading transmitted by the power distribution smart gateway 5 to be tested, it is determined whether the received electric energy reading is consistent with the pre-set electric energy reading. If they are consistent, it means that the electric energy meter data accuracy test of the power distribution smart gateway 5 to be tested is qualified.
[0106] 2) One-time copying success rate test;
[0107] The electric energy meter data accuracy test is performed for a preset number of tests, and the electric energy meter data of all the electric energy meters of all the times are received. The IoT simulation master station 1 determines whether the electric energy meter data accuracy test is met according to the electric energy meter data of all the electric energy meters received in each test, and counts the number of successful readings and the success rate of one-time reading according to the judgment result, and determines whether the success rate of one-time reading meets the preset range of success rate of reading. If so, it indicates that the one-time reading of the electric energy meter data function of the tested power distribution intelligent gateway 5 is normal.
[0108] Among them, the number of successful readings in one time refers to the number of successful readings in one batch reading of energy meters. If the energy readings of all energy meters are read successfully and the energy meter data is correct, it is recorded as the number of successful readings in one time; if there is an energy meter whose energy reading is missing or the data is incorrect, it means that the reading failed. The successful reading rate in one time refers to the ratio of the number of successful readings in one time to the total number of tests.
[0109] The preset test times may be no less than 400 readings per unit.
[0110] Under the set test conditions, the one-time reading success rate indicators are shown in Table 1.
[0111] Table 1 One-time reading success rate indicators under test conditions
[0112] Power distribution intelligent gateway downlink channel type One-time copying success rate % RS-485 ≥99 Micropower Wireless ≥98.5 Power Line Carrier ≥98.5
[0113] 3) Total error rate test of electric energy meter data reading
[0114] While performing a reading success rate test, the IoT simulation master station 1 is also used to count the number of data that do not meet the accuracy requirements of the electric energy meter data in the preset test times, and calculate the total error rate based on the number of data. The total error rate refers to the ratio of the number of erroneous data to the total amount of data.
[0115] In another specific embodiment, the IoT simulation master station 1 is also used to store the electric energy meter data received from each electric energy meter in a print file in chronological order, and after conducting no less than 400 meter-times of meter reading tests, the print file is transferred to the printer for printing so that the tester can directly read and save it.
[0116] The above is a test description of the power distribution intelligent gateway 5 to be tested from the aspect of data acquisition function of this embodiment, and the following is a test description of the power distribution intelligent gateway 5 to be tested from the aspect of performance testing of this embodiment.
[0117] In a specific embodiment, the second test instruction includes an event record test instruction, and the performance test instruction includes a query instruction; the IoT simulation master station 1 is specifically used to, when receiving the event record test instruction, send a query instruction to the power distribution intelligent gateway 5 to be tested, receive the query data returned by the power distribution intelligent gateway 5 to be tested, and determine whether the query data is consistent with the preset query data. If they are consistent, the event record test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0118] The query instruction includes an event record query instruction. The event record query instruction includes a first event record query instruction, a second event record query instruction, and a third event record query instruction.
[0119] The IoT simulation master station 1 is specifically used to, when receiving an event record test instruction, construct a target event in the power distribution intelligent gateway 5 to be tested according to the target event information contained in the event record test instruction, and issue a first event record query instruction to the power distribution intelligent gateway 5 to be tested, and after receiving the event record returned by the power distribution intelligent gateway 5 to be tested, determine whether the event record is consistent with the target event, and if they are consistent, determine that the first event record test result is qualified. Among them, the target event includes gateway parameter changes, gateway shutdown / power-on and other events.
[0120] In a specific example, the IoT simulation master station 1 is specifically used to, when receiving an event record test instruction, send a second event record query instruction to the power distribution intelligent gateway 5 to be tested, receive the latest event records returned by the power distribution intelligent gateway 5 to be tested, and determine whether the number of the returned latest event records is 500. If so, the second event record test result is determined to be qualified.
[0121] The second event record query instruction is used to test whether the power distribution intelligent gateway 5 to be tested can save the most recent 500 event records.
[0122] In a specific example, the IoT simulation master station 1 is specifically used to, when receiving an event record test instruction, send a third event record query instruction to the power distribution intelligent gateway 5 to be tested, receive event information returned by the power distribution intelligent gateway 5 to be tested, determine whether the event information is returned according to the preset channels respectively, and determine whether the preset event information in the event information is consistent. If so, the third event record test result is determined to be qualified, and the preset event information includes event type, occurrence time and related associated data.
[0123] It should be noted that the event record test instruction includes preset event information. When the IoT simulation master station 1 receives the preset event information, it generates a corresponding third event record query instruction according to the preset event information, and then sends it to the power distribution intelligent gateway 5 to be tested. When the power distribution intelligent gateway 5 to be tested is normal, the event information returned by it should be consistent with the preset event information.
[0124] During the test preparation stage, the data type reported by the channel is set in advance in the power distribution intelligent gateway 5 to be tested. During the test, the third event record query instruction is used to test whether the power distribution intelligent gateway 5 to be tested has the function of independent reporting of each channel and whether the test reported data is correct.
[0125] In one example, the IoT simulation master station 1 is also used to obtain corresponding event records when the event record mask word is turned on or off, and test the event record mask word function of the power distribution intelligent gateway 5 to be tested according to the obtained event records.
[0126] In this example, the tester can use IoT simulation master station 1 to view the event record status when the event record mask word is turned on or off.
[0127] In a specific embodiment, the second test instruction further includes a parameter setting test instruction, and the performance test instruction further includes a parameter query instruction;
[0128] The IoT simulation master station 1 is also specifically used to, when receiving a parameter setting test instruction, send a parameter query instruction to the power distribution intelligent gateway 5 to be tested, receive parameter information returned by the power distribution intelligent gateway 5 to be tested, and determine whether the parameter information is consistent with the preset parameter information. If so, it is determined that the parameter query test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0129] It should be noted that the parameter information includes basic parameters of the gateway, gateway files, time calibration parameters, limit parameters, basic parameters of the measurement point, task parameters, etc. Before the test, the IoT simulation master station 1 uses 104 and MQTT and other protocols to pre-set the corresponding parameter information in the power distribution intelligent gateway 5 to be tested according to the preset parameter information contained in the parameter setting test instruction sent by the tester. After the test, it is determined whether the power distribution intelligent gateway 5 to be tested supports the parameter setting function and the parameter modification function according to the comparison result between the returned parameter information and the preset parameter information.
[0130] In a specific embodiment, the second test instruction also includes a remote login test instruction; the Internet of Things master station is also used to initiate a login request to the power distribution intelligent gateway 5 to be tested when receiving the remote login test instruction, and determine whether the login success information fed back by the power distribution intelligent gateway 5 to be tested is received within a preset time period. If so, initiate a data acquisition request to the power distribution intelligent gateway 5 to be tested, and determine whether the data returned by the power distribution intelligent gateway 5 to be tested is received within the preset time period. If so, it is determined that the remote login function of the power distribution intelligent gateway 5 to be tested is qualified.
[0131] In this embodiment, the power distribution intelligent gateway 5 to be tested is remotely logged in through the Internet of Things simulation main station 1 to test whether the power distribution intelligent gateway 5 to be tested supports remote information browsing. After the login is successful, it is determined whether the monitoring data saved by the power distribution intelligent gateway 5 to be tested can be obtained. If so, it means that remote information browsing is supported, and the tester can view the saved monitoring data through the Internet of Things simulation main station 1 and export it.
[0132] In a specific embodiment, the second test instruction further includes a message test instruction, and the performance test instruction further includes a message query instruction. The message query instruction further includes a fault message query instruction, a SOE event query instruction, an edge computing control information query instruction, and a local data query instruction.
[0133] In this embodiment, it is necessary to construct more than 50 fault current and voltage data, more than 256 SOE events, and more than 50 local edge computing control information in the power distribution intelligent gateway 5 through the message simulation environment script in advance.
[0134] The IoT simulation master station 1 is also used to, when receiving a message test instruction, send a fault message query instruction to the power distribution intelligent gateway 5 to be tested, receive the fault message data returned by the power distribution intelligent gateway 5 to be tested, and determine whether the number of fault message data is not less than 50. If so, it is determined that the fault message query test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0135] It should be noted that the fault message query instruction is used to test whether the power distribution intelligent gateway 5 to be tested can record no less than 50 recent fault messages, wherein the fault message includes the current and voltage data at the time of the fault.
[0136] The IoT simulation master station 1 is also used to, when receiving a message test instruction, send a SOE event query instruction to the power distribution intelligent gateway 5 to be tested, receive the SOE event data returned by the power distribution intelligent gateway 5 to be tested, and determine whether the number of SOE event data is not less than 256. If so, it is determined that the SOE event query test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0137] It should be noted that the SOE event query instruction is used to test whether the power distribution intelligent gateway 5 to be tested can record no less than 256 recent SOE events (SOE, the full name is Sequence Of Event, refers to the event sequence record, which records the time when the fault occurred and the type of event).
[0138] The IoT simulation master station 1 is also used to, when receiving a message test instruction, send an edge computing control information query instruction to the power distribution intelligent gateway 5 to be tested, receive the edge computing control information returned by the power distribution intelligent gateway 5 to be tested, and determine whether the number of edge computing control information is not less than 50. If so, it is determined that the edge computing control information query test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0139] It should be noted that the edge computing control information query instruction is used to test whether the power distribution intelligent gateway 5 to be tested can record no less than 50 recent local edge computing control information.
[0140] The IoT simulation master station 1 is also used to, when receiving a message test instruction, obtain the local storage data of the power distribution intelligent gateway 5 through the command line, and determine whether the local data is consistent with the pre-read data. If so, it is determined that the local data query test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0141] It should be noted that the message test instruction contains pre-read data. When the IoT simulation master station 1 receives the pre-read data, it generates a command line for corresponding local data query based on the pre-read data. If the power distribution intelligent gateway 5 to be tested is in a normal state, the local data obtained through the command line should be consistent with the pre-read data.
[0142] The local data query instruction of the IoT simulation master station 1 is used to test whether the local storage data of the power distribution intelligent gateway 5 to be tested is consistent with the pre-read data. The local data includes event data, historical data, etc.
[0143] In this embodiment, the message storage function of the power distribution smart website to be tested is tested through fault message query instructions, SOE event query instructions, edge computing control information query instructions, and local data query instructions.
[0144] In a specific embodiment, the second test instruction also includes a data priority test instruction. The IoT simulation master station 1 is also used to send a priority test instruction to the power distribution intelligent gateway 5 to be tested when receiving the data priority test instruction, receive the test data returned by the power distribution intelligent gateway 5 to be tested, and judge whether the power distribution intelligent gateway 5 to be tested returns data according to the preset priority based on the time when the test data is returned. If so, the test result of the data priority test of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0145] It should be noted that, in the test preparation stage, the IoT simulation master station 1 will receive the priority setting information pre-entered by the tester and send it to the power distribution intelligent gateway 5 to be tested. After receiving the priority setting information, the power distribution intelligent gateway 5 to be tested sets the priority of data upload according to the priority setting information. During the test, after the power distribution intelligent gateway 5 to be tested receives the priority test instruction, it should upload the data according to the preset data upload priority. For example, if the priority of reactive compensation data is set higher than the priority of external data, then during the test, the power distribution intelligent gateway 5 to be tested should upload reactive compensation data first and then upload external data. The IoT simulation master station 1 determines whether the power distribution intelligent gateway 5 to be tested uploads data according to the preset priority based on the time of the received data, thereby testing whether the power distribution intelligent gateway 5 to be tested uploads the key data of the device in time.
[0146] In another specific example, the IoT simulation master station 1 is also used to set the gateway threshold of the power distribution intelligent gateway 5 to be tested, and test whether the power distribution intelligent gateway 5 to be tested processes the data within the limit according to the dead zone. The data within the limit refers to the data that does not exceed the gateway threshold.
[0147] In a specific embodiment, the second test instruction also includes an automatic recovery test instruction. When the IoT simulation master station 1 receives the automatic recovery test instruction, it disconnects the power distribution intelligent gateway 5 to be tested from the power supply, and then re-establishes the connection between the power distribution intelligent gateway 5 to be tested and the power supply, and sends a parameter query instruction to the power distribution intelligent gateway 5 to be tested. After receiving the parameter data returned by the power distribution intelligent gateway 5 to be tested, it determines whether the parameter data is consistent with the preset parameter data. If they are consistent, it means that the automatic recovery function of the power distribution intelligent gateway to be tested is qualified.
[0148] It should be noted that, in another specific example, when the IoT simulation master station 1 receives an automatic recovery test instruction, it sends a restart and reset instruction to the power distribution intelligent gateway 5 to be tested. After the power distribution intelligent gateway 5 to be tested is restarted, a parameter query instruction is sent to the power distribution intelligent gateway 5 to be tested. After receiving the parameter data returned by the power distribution intelligent gateway 5 to be tested, it determines whether the parameter data is consistent with the preset parameter data. If they are consistent, it means that the automatic recovery function of the power distribution intelligent gateway to be tested is qualified.
[0149] It is understandable that for contents related to parameter data and parameter query instructions, reference may be made to the aforementioned parameter query test section.
[0150] In a specific embodiment, the second test instruction also includes a self-test test instruction. After receiving the self-test test instruction, the IoT simulation master station 1 runs a pre-set test script to fill the memory of the power distribution intelligent gateway 5 to be tested until the power distribution intelligent gateway 5 to be tested cannot respond and automatically shuts down. After the power distribution intelligent gateway 5 to be tested is restarted, a log query instruction is sent to the power distribution intelligent gateway 5 to be tested. After receiving the log data returned by the power distribution intelligent gateway 5 to be tested, it is judged according to the returned log data whether the power distribution intelligent gateway 5 to be tested detects a memory full fault within a preset detection time period, and whether the power distribution intelligent gateway 5 to be tested completes self-recovery and restarts within the preset detection time period. If both are true, the test result of the self-test of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0151] It should be noted that the log data of the power distribution intelligent gateway 5 to be tested records various operations of the power distribution intelligent gateway 5 to be tested. In this embodiment, the test script makes the memory of the power distribution intelligent gateway full for a long time and unable to be released, thereby causing a serious system error, so that after a long period of no response and shutdown, the log data is obtained to check whether the gateway can detect and discover the fault and complete self-recovery restart within 3 times the startup time. The preset detection time period is 3 times the startup time.
[0152] In a specific embodiment, the second test instruction also includes a reconnection test instruction; the IoT simulation master station 1 is also used to disconnect the communication connection with the power distribution intelligent gateway 5 to be tested when receiving the reconnection test instruction, and determine whether a connection request of the power distribution intelligent gateway 5 to be tested is received within a preset time period. If so, the test result of the reconnection test of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0153] It should be noted that when the IoT simulation master station 1 receives the reconnection test instruction, it disconnects the communication connection with the power distribution intelligent gateway 5 to be tested, and determines whether a connection request of the power distribution intelligent gateway 5 to be tested is received within a preset time period. When the connection request of the power distribution intelligent gateway to be tested is received, it indicates that the automatic reconnection function of the power distribution intelligent gateway 5 to be tested is normal. The purpose of this embodiment is to check whether the gateway can achieve automatic reconnection reply by means of automatic device reconnection, reset module, reset device, etc. when the connection between the gateway and the IoT simulation master station 1 is disconnected, and to check whether the redial interval and the number of redial times can be set.
[0154] In a specific embodiment, the second test instruction includes a device management function test instruction; when the IoT simulation master station 1 receives the device management function test instruction, it calls a pre-set test case to test the gateway process management, memory management, file system, network management, virtualization and other functions of the power distribution intelligent gateway 5 to be tested.
[0155] The pre-set test cases include: gateway process management test cases, memory management test cases, file system test cases, network management test cases, and virtualization test cases.
[0156] Gateway process management test cases include:
[0157] The IoT simulation master station 1 sends a new process command to the power distribution intelligent gateway 5 to be tested, and obtains the process management information of the power distribution intelligent gateway 5 to be tested, and determines whether the process management information contains the new process information. If so, it is determined that the network process management function of the power distribution intelligent gateway 5 to be tested is normal.
[0158] Memory management test cases include:
[0159] The IoT simulation master station 1 sends a memory status display command to the power distribution intelligent gateway 5 to be tested, and obtains the memory status information of the power distribution intelligent gateway 5 to be tested, and determines whether the memory status information includes the total memory, the used memory, the free memory and the cache memory. If so, it is determined that the memory management function of the power distribution intelligent gateway 5 to be tested is normal.
[0160] File system test cases include:
[0161] The IoT simulation master station 1 sends a new file command to the power distribution smart gateway 5 to be tested, and obtains the file system data of the power distribution smart gateway 5 to be tested, and determines whether the file system data contains the new file. If so, it is determined that the file system function of the power distribution smart gateway 5 to be tested is normal.
[0162] Network management test cases include:
[0163] The IoT simulation master station 1 sends an IP address allocation command to the power distribution intelligent gateway 5 to be tested, and after obtaining the network interface configuration information of the power distribution intelligent gateway 5 to be tested, it determines whether the corresponding network interface IP address is consistent with the sent IP address based on the network interface configuration information. If so, it is determined that the network management function of the power distribution intelligent gateway 5 to be tested is normal.
[0164] The IoT simulation master station 1 sends a command to enable or disable the network interface to the power distribution intelligent gateway 5 to be tested, and after obtaining the network message information of the power distribution intelligent gateway 5 to be tested, determines whether the corresponding network interface has been enabled or disabled. If so, it is determined that the network management function of the power distribution intelligent gateway 5 to be tested is normal.
[0165] Virtualization function management test cases include:
[0166] The IoT simulation master station 1 sends a container creation command to the power distribution intelligent gateway 5 to be tested, and after obtaining the container status of the power distribution intelligent gateway 5 to be tested, it determines whether the power distribution intelligent gateway 5 to be tested has successfully created a new container based on the container status. If so, it is determined that the virtualization function of the power distribution intelligent gateway 5 to be tested is normal.
[0167] In another specific example, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to issue a hardware information query instruction to the power distribution intelligent gateway 5 to be tested, and after receiving the hardware information data returned by the power distribution intelligent gateway 5 to be tested, it is determined whether the hardware information data includes the device name, hardware version information, device communication interface information, MAC address, memory information and storage information. If so, the hardware information test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0168] In another specific example, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to send a software information query instruction to the power distribution intelligent gateway 5 to be tested, and after receiving the software information data returned by the power distribution intelligent gateway 5 to be tested, it is determined whether the software information data includes container information, APP information, device status information, device startup time and device current time. If so, the software information test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0169] In another specific example, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to issue a storage information query instruction to the power distribution intelligent gateway 5 to be tested, and after receiving the storage information data returned by the power distribution intelligent gateway 5 to be tested, it is determined whether the storage information data includes CPU occupancy information, memory occupancy information and storage occupancy information. If so, the storage information test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0170] In another specific embodiment, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to run a pre-written abnormal environment simulation script to enable the power distribution intelligent gateway 5 to be tested to run in an abnormal environment, and to determine whether the power distribution intelligent gateway 5 to be tested reports abnormal information corresponding to the abnormal environment. If so, the abnormal information test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0171] It should be noted that the abnormal environment may include CPU occupancy rate exceeding the limit, memory occupancy rate exceeding the limit, insufficient internal storage space, and reset. After receiving the abnormal information transmitted by the power distribution intelligent gateway 5 to be tested, the IoT simulation master station 1 determines whether the abnormal information corresponds to the simulated abnormal environment. If so, the abnormal information test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified. For example, when the simulated abnormal environment is that the CPU occupancy rate exceeds the limit, the corresponding abnormal information is that the CPU occupancy rate has exceeded the threshold.
[0172] In another specific example, the performance test instruction also includes a network configuration query instruction. After receiving the device management function test instruction, the IoT simulation master station 1 sends a network configuration query instruction to the power distribution intelligent gateway 5 to be tested, and after receiving the network configuration data returned by the power distribution intelligent gateway 5 to be tested, it determines whether the network configuration data is consistent with the preset network configuration data. If so, the network configuration test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0173] It should be noted that the IoT simulation master station 1 determines whether the network configuration data is consistent with the preset network configuration data to test whether the power distribution intelligent gateway 5 to be tested accepts the modification of the network configuration, and tests whether the modified network configuration data is consistent with the preset network configuration data. It is understandable that before issuing the network configuration query instruction, the network configuration data of the power distribution intelligent gateway 5 to be tested is modified in advance, and the modification can be made manually, or the IoT simulation master station receives the configuration data sent by the tester, and modifies the network configuration of the power distribution intelligent gateway 5 to be tested according to the configuration data.
[0174] In another specific example, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to issue a communication shutdown instruction to the power distribution intelligent gateway 5 to be tested, so that the power distribution intelligent gateway 5 to be tested is in an abnormal communication network state. After that, a communication startup instruction is issued to the power distribution intelligent gateway 5 to be tested. After the power distribution intelligent gateway 5 to be tested resumes communication, the log data stored in the power distribution intelligent gateway 5 to be tested is obtained, and according to the log data, it is determined whether the power distribution intelligent gateway 5 to be tested can prompt the abnormal communication network state, and whether the power distribution intelligent gateway 5 to be tested actively resumes communication when the state is abnormal. If so, the communication test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0175] In another specific embodiment, after receiving the device management function test instruction, the IoT simulation master station 1 is also used to transmit the upgrade data packet to the power distribution intelligent gateway 5 to be tested in segments, and during the transmission of the upgrade data packet, the communication connection with the power distribution intelligent gateway 5 to be tested is first disconnected, and then immediately reconnected, and after reconnecting, it is determined whether the upgrade data packet continues to be transmitted from the breakpoint position, and if so, the upgrade test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0176] It should be noted that the IoT simulation master station 1 performs an upgrade test on the power distribution intelligent gateway 5 to be tested, and the upgrade test includes testing the patching function.
[0177] In a specific example, the IoT simulation master station 1 is also used to determine whether the alarm information transmitted by the tested power distribution intelligent gateway 5 will be received during the transmission of the upgrade data packet. If the alarm information is received, the alarm information is analyzed to determine whether the alarm information contains an electric energy metering alarm. If so, it means that the data collection function of the tested power distribution intelligent gateway is abnormal during the upgrade process.
[0178] In a specific example, the IoT simulation master station 1 is also used to obtain the storage data of the power distribution intelligent gateway 5 to be tested after the power distribution intelligent gateway 5 to be tested has completed the upgrade, and to determine whether the storage data is consistent with the preset storage data. The purpose is to test whether the upgrade of the power distribution intelligent gateway 5 to be tested will affect the storage data.
[0179] In a specific example, the IoT simulation master station 1 is also used to send a reset operation command to the power distribution intelligent gateway 5 to be tested when a device management function test instruction is received, so as to initialize the hardware area, parameter area, and data area of the power distribution intelligent gateway 5 to be tested, and is also used to obtain the log data of the power distribution intelligent gateway 5 to be tested after the power distribution intelligent gateway 5 to be tested is reset, and parse the log data, and judge whether the reset time exceeds 3 times the startup time according to the parsed log data. If so, it is judged that the reset operation test result of the power distribution intelligent gateway 5 to be tested is unqualified.
[0180] In a specific embodiment, the second test instruction also includes a log management test instruction. The IoT simulation master station 1 model is also used to send a log classification query instruction to the power distribution intelligent gateway 5 to be tested when receiving the log management test instruction, receive the log classification data returned by the power distribution intelligent gateway 5 to be tested, and determine whether the log classification data is consistent with the preset log classification data. If so, the log classification test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified. The preset log classification data includes system logs, operation logs and security logs.
[0181] The log management test instruction includes preset log classification data, and the IoT simulation master station 1 generates corresponding log classification query instructions according to the preset log classification data.
[0182] In a specific example, the IoT simulation master station 1 is also used to send a log modification instruction to the power distribution intelligent gateway 5 to be tested when receiving a log management test instruction, receive the modification log data returned by the power distribution intelligent gateway 5 to be tested, and determine whether the modification log data is consistent with the preset modification log type data, and if so, determine that the modification log test result of the power distribution intelligent gateway 5 to be tested is qualified. Among them, the log modification instruction contains the log information that needs to be modified.
[0183] The log management test instruction includes preset modification log type data, and the IoT simulation master station 1 generates corresponding modification log instructions according to the preset modification log type data.
[0184] In a specific example, the IoT simulation master station 1 is also used to call preset log test cases when receiving log management test instructions, to test whether log records can be modified and deleted, and to test whether expired logs have been automatically and regularly cleaned up in a circular manner, and to test whether the backup logs affect the current log records.
[0185] It should be noted that the log test cases include log modification and deletion tests, log cleaning tests, and log backup tests. The log modification and deletion tests include: sending modification and deletion instructions to the power distribution intelligent gateway to be tested, where the modification and deletion instructions contain the log information that needs to be modified and deleted, and obtaining the log information of the power distribution intelligent gateway 5 to be tested after a preset time period. Based on the obtained log information, it is determined whether the power distribution intelligent gateway 5 to be tested performs modification and deletion operations according to the received modifications and instructions within the preset time period. If not, it is determined that the log modification and deletion functions of the power distribution intelligent gateway 5 to be tested are normal.
[0186] The log cleaning test includes: the tester pre-sets the automatic rolling deletion time limit of the log of the power distribution intelligent gateway 5 to be tested to 8 hours, runs the pre-set script, and builds the log in the power distribution intelligent gateway 5 to be tested for 24 consecutive hours. The IoT simulation master station 1 sends a log viewing instruction to the power distribution intelligent gateway 5 to be tested every 8 hours. After obtaining the log records returned by the power distribution intelligent gateway 5 to be tested, it is determined whether the power distribution intelligent gateway 5 to be tested has adopted a circular recording method to automatically and regularly clean up the log.
[0187] The log backup test includes: sending a backup log viewing instruction to the power distribution intelligent gateway 5 to be tested, building a log in the power distribution intelligent gateway 5 to be tested, and after a preset time, obtaining the log record of the power distribution intelligent gateway 5 to be tested, and determining whether the obtained log record contains the newly constructed log, so as to test whether viewing the backup log affects the current log record.
[0188] In a specific example, the IoT simulation master station 1 is also used to send a log export test instruction to the power distribution intelligent gateway 5 to be tested when it receives a log management test instruction, and after receiving the log export data and local log data returned by the power distribution intelligent gateway 5 to be tested, it is determined whether the log export data is consistent with the local log data. If so, the log export test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0189] After receiving the log export test instruction, the power distribution intelligent gateway 5 to be tested transmits the log export data and local log data to the IoT simulation master station 1.
[0190] In a specific example, the IoT simulation master station 1 is also used to, when receiving a log management test instruction, send a remote call test instruction to the power distribution intelligent gateway 5 to receive the target log data returned by the power distribution intelligent gateway 5 to be tested, and at the same time, obtain the log data stored locally by the power distribution intelligent gateway 5 through the command line, and then determine whether the target log data is consistent with the locally stored log data. If so, the remote call test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0191] After receiving the remote test call instruction, the power distribution intelligent gateway 5 to be tested transmits the target log data to the IoT simulation master station 1.
[0192] In one example, the IoT simulation master station 1 is also used to send a deadline log query instruction to the power distribution intelligent gateway 5 to be tested when receiving a log management test instruction, and determine whether the power distribution intelligent gateway 5 to be tested returns log data for the last 6 months. If so, the deadline log query test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0193] It should be noted that when performing the deadline log query test, it is necessary to build log data of more than 6 months in the power distribution intelligent gateway 5 in advance through the log simulation environment script.
[0194] In a specific embodiment, the second test instruction further includes a container management test instruction.
[0195] The IoT simulation master station 1 is also used to call the pre-written container first test case when receiving the container management test instruction, to test whether the power distribution intelligent gateway 5 to be tested supports 4 or more containers, and deploy 2 or more application software on a single container, to test whether the application software on the container can run normally.
[0196] In one example, the IoT simulation master station 1 is also used to send a container configuration instruction to the power distribution intelligent gateway 5 to be tested when receiving a container management test instruction, wherein the container configuration instruction includes information on the number of CPU cores, memory, storage and interfaces, and after receiving the configuration success information fed back by the power distribution intelligent gateway 5 to be tested, obtain the container status information of the power distribution intelligent gateway 5 to be tested, determine whether the container configuration and modification are completed according to the container status information, send a start-up operation instruction to the power distribution intelligent gateway 5 to be tested, and determine whether the operation abnormality information fed back by the power distribution intelligent gateway 5 to be tested will be received within a preset time period. If not, it is determined that the container configuration test result of the power distribution intelligent gateway 5 to be tested is qualified. Among them, the start-up operation instruction is used to start the application software in the running container.
[0197] In one example, the IoT simulation master station 1 is also used to send a container information query instruction to the power distribution intelligent gateway 5 to be tested when receiving a container management test instruction, and after receiving the container information returned by the power distribution intelligent gateway 5 to be tested, determine whether the container information contains a container list, container version information and container operation status. If so, it is determined that the container information test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0198] In one example, the IoT simulation master station 1 is also used to call a preset container second test case upon receiving a container management test instruction to test whether the power distribution intelligent gateway 5 has the functions of starting, stopping, installing, and uninstalling the container.
[0199] It should be noted that the second test case of the container includes: starting a test case, stopping a test case, installing a test case, and uninstalling a test case.
[0200] The startup test case includes: sending a startup container instruction to the power distribution smart gateway 5 to be tested, and after obtaining the container status information of the power distribution smart gateway 5 to be tested, judging whether the container of the power distribution smart gateway 5 to be tested can be started normally according to the container status information.
[0201] The stop test case includes: sending a stop container instruction to the power distribution intelligent gateway 5 to be tested, and after obtaining the container status information of the power distribution intelligent gateway 5 to be tested, judging whether the container of the power distribution intelligent gateway 5 to be tested can stop running according to the container status information.
[0202] The installation test case includes: sending an installation container instruction to the power distribution smart gateway 5 to be tested, and after obtaining the container status information of the power distribution smart gateway 5 to be tested, judging whether the container of the power distribution smart gateway 5 to be tested can be installed normally according to the container status information.
[0203] The unloading test case includes: sending an unloading container instruction to the power distribution intelligent gateway 5 to be tested, and after obtaining the container status information of the power distribution intelligent gateway 5 to be tested, judging whether the container of the power distribution intelligent gateway 5 to be tested can be unloaded normally according to the container status information.
[0204] In one example, the IoT simulation master station 1 is also used to call the preset container third test case when receiving the container management test instruction to test whether the container supports the remote upgrade function. If so, it is determined that the remote upgrade test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0205] It should be noted that the third container test case includes: sending an upgrade data packet to the power distribution smart gateway 5 to be tested, and after obtaining the container version information of the power distribution smart gateway 5 to be tested, judging whether the container of the power distribution smart gateway 5 to be tested can be upgraded normally according to the container version information.
[0206] In one example, the IoT simulation master station 1 is also used to call the preset container fourth test case when receiving the container management test instruction, which is used to test whether the communication and data interaction between the containers are normal when the two containers deploy the client and server programs respectively. If so, the container interaction test result of the power distribution intelligent gateway 5 to be tested is determined to be qualified.
[0207] The fourth container test case includes: pre-deploying the client program in any container of the power distribution intelligent gateway 5 to be tested, and deploying the server program in another container, and then issuing a command to start container communication to the power distribution intelligent gateway 5 to enable the two containers to communicate, and obtaining the interaction data between the container where the client program is deployed and the container where the server program is deployed, and judging whether the interaction test between containers of the power distribution intelligent gateway to be tested is normal based on the interaction data.
[0208] In a specific embodiment, the second test instruction also includes an application software test instruction. The IoT simulation master station 1 is also used to send an application software information query instruction to the power distribution intelligent gateway 5 to be tested when receiving the application software test instruction, and after receiving the application software information returned by the power distribution intelligent gateway 5 to be tested, determine whether the application software information contains a software list, version information, running status, CPU occupancy rate and memory occupancy rate, and if so, determine that the application software information test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0209] In one example, the IoT simulation master station 1 is also used to call a preset first test case of the application software upon receiving an application software test instruction, to test whether the power distribution intelligent gateway 5 to be tested is applicable to application software developed by different manufacturers.
[0210] It should be noted that the first test case of the application software includes sending a software installation data packet to the power distribution smart gateway 5 to be tested, and determining whether the power distribution smart gateway 5 to be tested returns installation failure information within a preset time period. If so, it is determined that the power distribution smart gateway 5 to be tested is incompatible with the application software.
[0211] It is understandable that corresponding software installation data packets are sent according to the number of application software.
[0212] In this example, adaptation application software developed by different manufacturers is deployed on the gateway, and whether the software runs normally is determined to test whether the power distribution intelligent gateway 5 to be tested is suitable for application software developed by different manufacturers.
[0213] In another example, the IoT simulation master station 1 is also used to call a preset second application software test case when receiving an application software test instruction, to test whether the power distribution intelligent gateway 5 to be tested supports the breakpoint resume function during the application software upgrade process.
[0214] The second test case for the application software includes: transmitting an application software upgrade data packet to the power distribution intelligent gateway 5 to be tested, and during the transmission of the application software upgrade data packet, first disconnecting the communication connection with the power distribution intelligent gateway 5 to be tested, and then immediately reconnecting, and after the connection is restored, determining whether the untransmitted part of the application software upgrade data packet continues to be transmitted from the breakpoint position, and if so, it is determined that the breakpoint resumption function of the application software of the power distribution intelligent gateway 5 to be tested is qualified.
[0215] It is understandable that the breakpoint resume function can refer to the upgrade test in the above embodiment.
[0216] In another example, the IoT simulation master station 1 is also used to call a preset abnormal operating environment simulation script when receiving an application software test instruction, so that the application software in the power distribution intelligent gateway 5 to be tested runs in the target abnormal operating environment, and after receiving the application software abnormal information fed back by the power distribution intelligent gateway 5 to be tested, it is determined whether the application software abnormal information is consistent with the preset target abnormal information. If so, it is determined that the application software abnormal operation test result of the power distribution intelligent gateway 5 to be tested is qualified.
[0217] It should be noted that when the application software is run in the target abnormal running environment, target abnormal information can be obtained, wherein the target abnormal information includes application software restart information, CPU occupancy rate exceeding limit information and memory occupancy rate exceeding limit information.
[0218] In a specific embodiment, the second test instruction also includes an alarm function test instruction; the IoT simulation master station 1 is also used to, when receiving the alarm function test instruction, call the corresponding alarm simulation environment script according to the alarm function test instruction, build a target alarm environment and a target alarm information corresponding to the target alarm environment, and determine whether the power distribution intelligent gateway 5 to be tested returns the alarm information within a preset time period, and after receiving the alarm information, determine whether the alarm information is consistent with the target alarm information. If so, it is determined that the alarm function of the power distribution intelligent gateway 5 to be tested is qualified
[0219] It should be noted that, in this example, the IoT simulation master station 1 builds a target alarm environment according to the alarm function test instruction, so that the power distribution intelligent gateway 5 to be tested runs in the target alarm environment, and determines whether the power distribution intelligent gateway 5 to be tested will issue corresponding alarm information for the target alarm environment, and determines whether the alarm information corresponds to the target alarm environment. The target alarm environment can be a power abnormality alarm, a data abnormality alarm, and so on. For example, by running the alarm simulation environment script to control the power module of the power distribution intelligent gateway 5 to be tested, a power abnormality environment is generated, and whether the power distribution intelligent gateway 5 to be tested returns the power abnormality information to the IoT simulation master station 1.
[0220] In this embodiment, when testing the alarm function, the IoT module master station is also used to test whether the gateway can record no less than 400 alarm records.
[0221] It is understandable that when performing an alarm function test, it is necessary to call the corresponding alarm simulation environment script in advance to construct more than 400 target alarm information corresponding to the target alarm environment.
[0222] In another example, the IoT simulation master station 1 is also used to call the communication interruption alarm test case when receiving the alarm function test instruction, to test whether the power distribution intelligent gateway 5 to be tested reports the communication abnormality alarm information, and after receiving the communication abnormality alarm information, to determine whether the number of communication abnormality alarm information meets the test requirements.
[0223] The communication interruption alarm test case includes: first disconnecting the communication connection with the power distribution intelligent gateway 5 to be tested, and after reconnecting, determining whether the power distribution intelligent gateway 5 to be tested reports communication abnormality alarm information within a preset time period, and determining whether the power distribution intelligent gateway 5 to be tested sends the most recent 20 alarm information during the interruption period.
[0224] In another example, the IoT simulation master station 1 is also used to call the shield word test case when receiving the alarm function test instruction, and test the judgment and reporting status of the power distribution intelligent gateway 5 to be tested when the shield word is turned on and off. Among them, the shield word includes the alarm judgment shield word and the active reporting shield word.
[0225] It should be noted that the test content includes: when the alarm judgment shield word is turned on, testing whether the power distribution intelligent gateway 5 to be tested does not perform judgment operations on all alarms. When the alarm judgment shield word is turned off, testing whether the power distribution intelligent gateway 5 to be tested performs judgment operations on all alarms.
[0226] When the active reporting shield word is turned on, the test is whether the power distribution intelligent gateway 5 to be tested does not actively report the alarm information after the alarm is generated. When the active reporting shield word is turned off, the test is whether the power distribution intelligent gateway 5 to be tested actively reports the new alarm information after the new alarm is generated.
[0227] New alarm information refers to the alarm information generated after the active reporting shielding word is turned off.
[0228] Among them, the shielding word test cases include: alarm judgment shielding word test cases and active reporting shielding word test cases.
[0229] The alarm judgment shield word test case includes: when performing the alarm function test, sending an alarm judgment shield word opening instruction to the power distribution intelligent gateway 5 to be tested, and judging whether the power distribution intelligent gateway 5 to be tested does not perform judgment operations for all alarms. Afterwards, sending an alarm judgment shield word closing instruction to the power distribution intelligent gateway 5 to be tested, and judging whether the power distribution intelligent gateway 5 to be tested performs judgment operations for all alarms.
[0230] The use case of actively reporting shielding words includes: when performing an alarm function test, sending an active reporting shielding word opening instruction to the power distribution intelligent gateway 5 to be tested, judging whether the power distribution intelligent gateway 5 to be tested reports alarm information within a preset time period, if not, sending an alarm information query instruction to the power distribution intelligent gateway 5 to be tested, judging whether the power distribution intelligent gateway 5 to be tested generates alarm information normally, if so, judging that the active reporting shielding word opening function is normal. Sending an active reporting shielding word closing instruction to the power distribution intelligent gateway 5 to be tested, judging whether the power distribution intelligent gateway 5 to be tested reports alarm information within a preset time period, if so, judging that the active reporting shielding word closing function is normal.
[0231] In this embodiment, when the second test instruction is received, a performance test instruction is sent to the power distribution intelligent gateway 5 to be tested through the Internet of Things simulation master station 1, and by judging whether the power distribution intelligent gateway 5 to be tested returns performance data, if so, it is judged whether the performance data is consistent with the preset performance data, and an internal performance test is performed on the power distribution intelligent gateway 5 to be tested, thereby avoiding the situation where the test accuracy is low due to the need to manually record the test results during manual testing. Moreover, in this embodiment, the Internet of Things simulation master station 1 is used to test the power distribution intelligent gateway 5 to be tested, and there is no need to connect the power distribution intelligent gateway 5 to be tested to the global Internet of Things platform for testing, thereby achieving effective isolation of the test business from the actual production business, avoiding the impact of the test business on the actual production business, and providing a standardized test plan for testing the power distribution intelligent gateway to meet the debugging and acceptance requirements of the operation and maintenance unit.
[0232] See also Figure 2 , Figure 2 A schematic diagram of a testing method for a power distribution intelligent gateway provided in Embodiment 2 of the present invention.
[0233] This embodiment provides a method for testing a power distribution intelligent gateway, which is applied to a system as described in any of the above embodiments, and the method includes:
[0234] 101. When the IoT simulation master station receives the first test instruction, it sends a control command to the external data simulation component and sends a reactive compensation instruction to the reactive compensation simulation component;
[0235] 102. When the external data simulation component receives the control command, the external data is transmitted to the power distribution intelligent gateway to be tested; when the reactive power compensation simulation component receives the reactive power compensation instruction, the reactive power compensation data is transmitted to the power distribution intelligent gateway to be tested;
[0236] 103. When receiving the external data returned by the power distribution intelligent gateway to be tested, the IoT simulation master station determines whether the external data returned by the power distribution intelligent gateway to be tested is consistent with the preset external data;
[0237] 104. After sending the reactive power compensation instruction, the IoT simulation master station determines whether the power distribution intelligent gateway to be tested returns reactive power compensation data within a preset time period. If so, it is determined that the reactive power compensation monitoring function of the power distribution intelligent gateway to be tested is normal;
[0238] 105. When the IoT simulation master station receives the second test instruction, it sends a performance test instruction to the power distribution intelligent gateway to be tested. When the power distribution intelligent gateway to be tested returns the performance data, the IoT simulation master station determines whether the performance data is consistent with the preset performance data. If they are consistent, the performance test result of the power distribution intelligent gateway to be tested is determined to be qualified.
[0239] In this embodiment, when the first test instruction is received, the power distribution data acquisition function of the power distribution intelligent gateway to be tested is tested through the Internet of Things simulation master station, the external data simulation component, and the reactive compensation simulation component to determine whether the data acquisition function of the power distribution intelligent gateway to be tested is normal. When the second test instruction is received, the performance test instruction is sent to the power distribution intelligent gateway to be tested through the Internet of Things simulation master station, and by judging whether the power distribution intelligent gateway to be tested returns performance data, if so, it is judged whether the performance data is consistent with the preset performance data, and an internal performance test is performed on the power distribution intelligent gateway to be tested. Overall, the data acquisition function and internal performance of the power distribution intelligent gateway to be tested are tested through the Internet of Things simulation master station, thereby avoiding the situation where the test accuracy is low due to the need to manually record the test results during manual testing. Moreover, this embodiment uses the Internet of Things simulation master station to test the power distribution intelligent gateway to be tested, and there is no need to connect the power distribution intelligent gateway to be tested to the global Internet of Things platform for testing, thereby achieving effective isolation between the test business and the actual production business, and avoiding the impact of the test business on the actual production business.
[0240] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0241] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0242] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0243] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0244] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0245] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A test system for a power distribution intelligent gateway, characterized in that: include: IoT simulation master station, external data simulation components, reactive power compensation simulation components; The IoT simulation master station is connected to the external data simulation component and the reactive compensation simulation component respectively, and is used to connect and test the power distribution intelligent gateway to be tested, and is specifically used to, when receiving a first test instruction, send a control command to the external data simulation component and send a reactive compensation instruction to the reactive compensation simulation component respectively; The external data simulation component is used to connect to the power distribution intelligent gateway to be tested, and is specifically used to, when receiving the control command, generate external data according to the control command, and transmit the external data to the power distribution intelligent gateway to be tested; The reactive power compensation simulation component is used to connect to the power distribution intelligent gateway to be tested, and is specifically used to, when receiving the reactive power compensation instruction, generate corresponding reactive power compensation data according to the reactive power compensation instruction, and transmit the reactive power compensation data to the power distribution intelligent gateway to be tested; The IoT simulation master station is also used to send a reactive compensation instruction to the reactive compensation simulation component, and to determine whether the power distribution intelligent gateway to be tested returns the reactive compensation data within a preset time period. If so, it is determined that the reactive compensation monitoring function of the power distribution intelligent gateway to be tested is normal; The IoT simulation master station is also used to send a control command to the external data simulation component, and when receiving the external data sent by the power distribution intelligent gateway to be tested, determine whether the external data is consistent with the preset external data, and if so, determine that the external data collection function of the power distribution intelligent gateway to be tested is normal; The IoT simulation master station is further used to send a performance test instruction to the power distribution intelligent gateway to be tested when receiving the second test instruction, and determine whether the power distribution intelligent gateway to be tested returns performance data, and if so, determine whether the performance data is consistent with the preset performance data, and if they are consistent, determine that the performance test result of the power distribution intelligent gateway to be tested is qualified; The test system also includes an actuator; The actuator is connected to the power distribution intelligent gateway to be tested and the IoT simulation master station; The actuator is used to execute a preset action according to the control signal received from the power distribution intelligent gateway to be tested; The IoT simulation master station is used to obtain the preset action performed by the actuator when the external data generated by the external data simulation component meets the preset gateway threshold condition, and judge whether the power distribution intelligent gateway to be tested outputs a control signal to the actuator according to the preset action, and if so, judge that the decision-making function of the power distribution intelligent gateway to be tested is qualified; The second test instruction includes a data priority test instruction. When the IoT simulation master station receives the data priority test instruction, it sends a priority test instruction to the power distribution intelligent gateway to be tested, receives the test data returned by the power distribution intelligent gateway to be tested, and determines whether the power distribution intelligent gateway to be tested returns data according to a preset priority based on the time when the test data is returned. If so, it is determined that the test result of the data priority test of the power distribution intelligent gateway to be tested is qualified.
2. The test system according to claim 1, characterized in that: The external data simulation component includes an image data component; the control command includes an image acquisition test command; The image data component is used to connect with the power distribution intelligent gateway to be tested, and to collect target image data according to the image acquisition test command when receiving the image acquisition test command issued by the IoT simulation master station, and transmit the target image data to the power distribution intelligent gateway to be tested; The IoT simulation master station is specifically used to determine whether the target image data is consistent with the preset target image data when receiving the target image data. If so, it is determined that the image acquisition function of the power distribution intelligent gateway to be tested is qualified.
3. The test system according to claim 1, characterized in that: The external data simulation component includes a sensor data simulation component; the control command includes a sensor data acquisition test command; The sensor data simulation component is used to connect with the power distribution intelligent gateway to be tested, and to build a target environment according to the sensor data acquisition test command when receiving the sensor data acquisition test command issued by the IoT simulation master station, and to collect environmental data of the target environment, and transmit the environmental data to the power distribution intelligent gateway to be tested; The IoT simulation master station is specifically used to, when receiving the environmental data, determine whether the environmental data is consistent with the preset environmental data, and if so, determine that the sensor data acquisition function of the power distribution intelligent gateway to be tested is qualified.
4. The system according to claim 1, characterized in that The IoT simulation master station is also used to, when receiving the first test instruction, send an energy meter data collection instruction to the power distribution intelligent gateway to be tested, and when receiving the energy meter data returned by the power distribution intelligent gateway to be tested, determine whether the returned energy meter data is consistent with the preset energy meter data. If they are consistent, it is determined that the energy meter data collection function of the power distribution intelligent gateway to be tested is qualified.
5. The system according to claim 1, characterized in that The second test instruction includes an event record test instruction, and the performance test instruction includes a query instruction; The IoT simulation master station is specifically used to, when receiving the event record test instruction, send a query instruction to the power distribution intelligent gateway to be tested, receive the query data returned by the power distribution intelligent gateway to be tested, and determine whether the query data is consistent with the preset query data. If they are consistent, the event record test result of the power distribution intelligent gateway to be tested is determined to be qualified.
6. The system according to claim 1, characterized in that The second test instruction also includes an alarm function test instruction; the IoT simulation master station is also used to, when receiving the alarm function test instruction, call the corresponding alarm simulation environment script according to the alarm function test instruction, construct a target alarm environment and target alarm information corresponding to the target alarm environment, and determine whether the power distribution intelligent gateway to be tested returns the alarm information within a preset time period, and after receiving the alarm information, determine whether the alarm information is consistent with the target alarm information. If so, the alarm function of the power distribution intelligent gateway to be tested is determined to be qualified.
7. The system according to claim 1, characterized in that The second test instruction also includes a reconnection test instruction; the IoT simulation master station is also used to disconnect the communication connection with the power distribution intelligent gateway to be tested when receiving the reconnection test instruction, and determine whether a connection request of the power distribution intelligent gateway to be tested is received within a preset time period. If so, the test result of the reconnection test of the power distribution intelligent gateway to be tested is determined to be qualified.
8. A method for testing a power distribution intelligent gateway, characterized in that: Applied to the system according to any one of claims 1 to 7, the method comprises: When the IoT simulation master station receives the first test instruction, it sends a control command to the external data simulation component and sends a reactive compensation instruction to the reactive compensation simulation component; When the external data simulation component receives the control command, the external data is transmitted to the power distribution intelligent gateway to be tested; when the reactive power compensation simulation component receives the reactive power compensation instruction, the reactive power compensation data is transmitted to the power distribution intelligent gateway to be tested; When receiving the external data returned by the power distribution intelligent gateway to be tested, the IoT simulation master station determines whether the external data returned by the power distribution intelligent gateway to be tested is consistent with the preset external data; After sending the reactive power compensation instruction, the IoT simulation master station determines whether the power distribution intelligent gateway to be tested returns the reactive power compensation data within a preset time period. If so, it is determined that the reactive power compensation monitoring function of the power distribution intelligent gateway to be tested is normal; When the IoT simulation master station receives the second test instruction, it sends a performance test instruction to the power distribution intelligent gateway to be tested. When the power distribution intelligent gateway to be tested returns performance data, the IoT simulation master station determines whether the performance data is consistent with the preset performance data. If they are consistent, the performance test result of the power distribution intelligent gateway to be tested is determined to be qualified.
Citation Information
Patent Citations
Communication protocol consistency test method and terminal equipment
CN109286538A
Comprehensive monitoring system for power distribution network
CN113241848A