A method and system for detecting the system and software of an energy controller
By conducting comprehensive inspection of the operating system, container resources and software of the energy controller, the problem that the existing technology cannot effectively verify the energy controller software is solved, ensuring the normal operation and compatibility of the software, and avoiding affecting the normal operation of the energy controller.
Patent Information
- Application Number
- CN202011411269.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-12-04
AI Technical Summary
The prior art cannot effectively inspect the software in the energy controller, resulting in various problems that may arise after the software is installed, affecting the normal operation of the energy controller.
Provides a method and system to detect the operating system, container resources and software of the energy controller through the issuance of instructions by the client, including process management, memory management, file system inspection, network information configuration, hardware information query, software functions, performance efficiency, compatibility, interoperability, interface consistency and information security detection.
It can check whether the software functions in the energy controller are complete, whether the software can run normally, and whether the software can run on different platforms, avoid problems in the subsequent use of the software and ensure the normal operation of the energy controller.
Smart Images

Figure CN112559329B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power systems, and in particular to a method and system for detecting systems and software of energy controllers. Background Art
[0002] The energy controller is installed in the public or private transformer area, which can realize the flexible access of metering and sensing equipment on the customer side and the distribution side. It has functions such as data collection, intelligent fee control, clock synchronization, precise metering, orderly charging, energy consumption management, circuit status inspection, household-transformer relationship identification, and power outage event reporting. Before the energy controller is put into use, it is necessary to install software in the energy controller, but the existing technology cannot effectively test the software in the energy controller.
[0003] With regard to the technical problem that the energy controller in the prior art mentioned above needs to have software installed in it before it is put into use, but the prior art cannot effectively test the software in the energy controller, no effective solution has been proposed so far. Summary of the invention
[0004] The embodiments of the present disclosure provide a method and system for detecting the system and software of an energy controller, so as to at least solve the technical problem existing in the prior art that software needs to be installed in the energy controller before the energy controller is put into use, but the prior art cannot effectively check the software in the energy controller.
[0005] According to one aspect of an embodiment of the present disclosure, a method for detecting the system and software of an energy controller is provided, including: detecting the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller according to instructions issued by the client; configuring and modifying the container resources of the energy controller according to instructions issued by the client, querying container information, controlling the operating status of the container, monitoring the abnormal status of the container, and checking the communication data and interaction data between different containers, wherein one client can install multiple containers and multiple software can be installed in one container; detecting the functions, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller's software.
[0006] According to another aspect of the embodiment of the present disclosure, a system for detecting the system and software of an energy controller is also provided, including: a detection system module, which is used to detect the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller according to the instructions issued by the client; a detection container module, which is used to configure and modify the container resources of the energy controller according to the instructions issued by the client, query container information, control the operating status of the container, monitor the abnormal status of the container, and view the communication data and interaction data between different containers. One client can install multiple containers, and multiple software can be installed in one container; a detection software module, which is used to detect the functions, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller's software.
[0007] In the present invention, it is possible to check whether the software functions in the energy controller are complete, whether the software can run normally, and whether the software can run on different platforms, so as to avoid various problems in the software during subsequent use, which may cause the energy controller to fail to work normally. This solves the technical problem in the prior art that the software needs to be installed in the energy controller before it is put into use, but the prior art cannot effectively check the software in the energy controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0009] Figure 1 It is a flowchart of a method for detecting a system and software of an energy controller according to an embodiment of the present disclosure;
[0010] Figure 2 It is a schematic diagram of a process of collecting electric energy meter data through an RS-485 channel according to an energy controller according to an embodiment of the present disclosure;
[0011] Figure 3 is a flowchart of software performance efficiency testing of an energy controller according to an embodiment of the present disclosure;
[0012] Figure 4 It is a schematic diagram of a process of reading event data of an electric energy meter through an RS-485 channel according to an embodiment of the present disclosure;
[0013] Figure 5 It is a flow chart of interface consistency between the low voltage collection APP and the collection task scheduling APP according to the embodiment of the present disclosure;
[0014] Figure 6 It is a schematic diagram of a system for detecting the system and software of an energy controller according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0015] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0016] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0017] According to a first aspect of this embodiment, a method for detecting a system and software of an energy controller is provided. Figure 1 A schematic diagram showing the process of the method is shown in FIG. Figure 1 As shown, the method includes:
[0018] S102: According to the instruction sent by the client, the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller are detected;
[0019] S104: According to the instructions issued by the client, configure and modify the container resources of the energy controller, query the container information, control the container operation status, monitor the abnormal status of the container, and view the communication data and interaction data between different containers. One client can install multiple containers, and one container can install multiple software;
[0020] S106: Test the functionality, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller software.
[0021] Specifically, the present invention provides a method for detecting the system and software of an energy controller, comprising the following steps:
[0022] S1. Operating system function test:
[0023] S101, process management: the client sends instructions to view and terminate the system process;
[0024] The system under test is required to display all running processes, and stopping a process will not affect the normal operation of other processes.
[0025] S102, memory management: the client sends instructions to check the memory;
[0026] The system under test is required to display the memory usage of all operations in real time.
[0027] S103, file system: the client sends instructions to check the file system;
[0028] The system under test is required to fully display the overall status of the file system.
[0029] S104, network management: view, configure, transmit and other operations on the network through the client issuing instructions;
[0030] The system under test is required to support the PING command and the IP address can be viewed and modified.
[0031] S105, querying hardware information: the client sends instructions to check the hardware information;
[0032] The information that the system under test should display includes at least the device name, hardware version information, MAC address, memory information, and storage information.
[0033] S106, querying software information: the client sends instructions to view the software information;
[0034] The system under test is required to display information including at least the operating system, container, APP, device status, device startup time, and device current time.
[0035] S2. Container inspection:
[0036] S201, multi-container multi-application: install multiple containers by issuing instructions through the client;
[0037] It is required that at least 5 containers be successfully installed, and different applications must be installed in each container.
[0038] S202, single container multiple applications: install a container through the client sending instructions, and install the application in the container;
[0039] It is required that after successful installation, the container can successfully install at least three applications;
[0040] S203, container resource configuration and modification: configure and modify container resources including the number of CPU cores, memory, storage, and interfaces through instructions sent by the client;
[0041] S204, container information query: query container information through the client sending instructions, including container list, container version information, and container running status;
[0042] Container information must be complete and correct.
[0043] S205, container operation control: start, stop, install, and uninstall the container through instructions issued by the client;
[0044] S206, container abnormality monitoring: setting the alarm threshold of the container through the client sending instructions, and simulating the triggering of alarms through the abnormal state simulation tool;
[0045] It is required to be able to view storage resources, CPU usage, memory usage, etc. If storage resources, CPU usage, and memory usage exceed the limit, an alarm should be reported.
[0046] S207, communication and data interaction between containers: installing multiple containers by issuing instructions through the client;
[0047] It is required that different containers can communicate with each other, and their private data will not affect each other and cannot be viewed by the other party.
[0048] S3, advanced APP inspection: including collection task scheduling APP, low voltage collection APP, special transformer collection APP and substation intelligent monitoring APP.
[0049] S301, functional test;
[0050] S302, performance efficiency test;
[0051] (1) Response time: During the test period, when the energy controller is started, the response time of starting the advanced application APP should not exceed 1 minute;
[0052] (2) Storage occupancy rate: During the test period, the storage occupancy rate was recorded, and no abnormalities such as application restart or container restart due to excessive storage occupancy rate were observed;
[0053] (3) CPU usage: During the test period, the CPU usage was recorded, and no abnormalities such as application restart or container restart due to excessive CPU usage were observed;
[0054] (4) Memory usage: During the test period, the memory usage was recorded, and no abnormalities such as application restart or container restart due to excessive memory usage were observed.
[0055] S303, compatibility test;
[0056] (1) Coexistence test: When multiple applications are running on the terminal at the same time, the application under test should be able to be installed, started, run, stopped, uninstalled and upgraded normally without affecting other applications;
[0057] (2) Interoperability testing: The application APP should be compatible with the terminal software platform interface, be able to be normally installed, started, run, stopped, uninstalled and upgraded on terminals of different manufacturers, and be able to realize the functions of the software.
[0058] S304, interface consistency test;
[0059] The message interface between the APP under test and each APP of the energy controller should meet the specification requirements.
[0060] S305, information security testing;
[0061] Including security vulnerability detection: After the application APP is installed and run, it cannot increase high-risk security vulnerabilities in the system.
[0062] Therefore, it is possible to check whether the software functions in the energy controller are complete, whether the software can run normally, and whether the software can run on different platforms, so as to avoid various problems in the software during subsequent use, which may cause the energy controller to fail to work normally. This solves the technical problem that the energy controller in the prior art needs to be installed with software before it is put into use, but the prior art cannot effectively check the software in the energy controller.
[0063] Optionally, according to the instructions sent by the client, the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller are detected, including: according to the instructions sent by the client, viewing and terminating the process of the operating system of the energy controller; according to the instructions sent by the client, viewing the memory of the operating system of the energy controller; according to the instructions sent by the client, viewing the file system of the operating system of the energy controller; according to the instructions sent by the client, viewing, configuring and transmitting the network information of the operating system of the energy controller; according to the instructions sent by the client, viewing the hardware information of the operating system of the energy controller; according to the instructions sent by the client, viewing the software information of the operating system of the energy controller.
[0064] Optionally, according to the instructions sent by the client, the container resources of the energy controller are configured and modified, the container information is queried, the container operating status is controlled, the abnormal status of the container is monitored, and the communication data and interaction data between different containers are viewed, including: according to the instructions sent by the client, the container resources of the energy controller are configured and modified, and the container resources include the number of CPU cores, memory, storage and interfaces; according to the instructions sent by the client, the container information is queried, and the container information includes a container list, container version information and container operating status; according to the instructions sent by the client, the container is started, stopped, installed and uninstalled; according to the instructions sent by the client, the alarm threshold of the container is set, and the alarm is triggered by the abnormal status simulation tool; according to the instructions sent by the client, multiple containers are installed through the instructions sent by the client, and the communication data and interaction data between different containers are viewed.
[0065] Optionally, the functions, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller's software are tested. The functions of the energy controller's software are tested, including: collecting electricity meter data through the RS-485 channel to test the functions of the energy controller's software; testing the performance efficiency of the energy controller's software by testing the startup time, CPU occupancy, memory occupancy and storage occupancy of the energy controller's software; reading electricity meter data through the RS-485 channel to test the compatibility of the energy controller's software; testing the interface consistency of the energy controller's low-voltage collection software and the interface consistency of the collection task scheduling software.
[0066] Optionally, the electric energy meter data is collected through the RS-485 channel to detect the functions of the energy controller software, including: setting the hardware virtual module type, configuring the hardware virtual module type to RS-485; sending the 698 command to clear the meter file, meter reading plan and meter reading task, and clearing the collected data according to the hardware virtual module type; configuring the analog meter data, the 698 command analog meter supports itemized data reading; encapsulating the meter file into an archive message according to the standard data structure and directly sending it to the energy controller, wherein the meter file is divided into local carrier port, Port 485-1, port 485-2, port 485-3, port 485-4, all ports are connected to a block 07 protocol table and a block 698 protocol table; the meter reading plan is encapsulated into a plan message according to the standard data structure and then directly sent to the energy controller. The meter reading plan includes reading the positive and reverse reactive power, A phase voltage, current and demand data. The MS set in the meter reading plan is all user addresses; the meter reading task is encapsulated into a meter reading message according to the standard data structure and then directly sent to the energy controller; the meter reading results of all meters are read, and the correctness of the meter reading results is verified.
[0067] Specifically, Figure 2 This is the implementation process of the functional test of the advanced business APP of the energy controller. Here we mainly introduce the process of collecting electric energy meter data (real-time data of electric energy meter) through the RS-485 channel. The specific process is as follows Figure 2 As shown. The detection software sets the virtual module type and configures the virtual module type to RS-485. The detection software sends the 698 command to clear the archive, plan, and task parameters, and clears the collected data according to the type. Configure the analog meter data. The 698 analog meter supports itemized data reading. After encapsulating the meter archive into a message according to the standard data structure, it is directly sent to the energy controller. The meter archive is divided into local carrier port, 485-1 port, 485-2 port, 485-3 port, and 485-4 port according to the port. All ports are connected to 1 block 07 protocol table and 1 block 698 protocol table. The detection software encapsulates the meter reading plan into a message according to the standard data structure and directly sends it to the energy controller. The meter reading plan includes reading the forward and reverse reactive power, A phase voltage, current and demand data. The MS set in the meter reading plan is all user addresses. The detection software encapsulates the meter reading task into a message according to the standard data structure and directly sends it to the energy controller. The detection software reads the real-time data of all meters. The detection software verifies the correctness of the data.
[0068] Optionally, the performance efficiency of the energy controller software is detected by detecting the startup time, CPU occupancy, memory occupancy and storage occupancy of the energy controller software, including: establishing an SSH link with the energy controller software; sending a restart command to the energy controller and recording the first startup start time; sending a reading terminal time command to the energy controller and recording the first command return time; receiving a first average time and a second average time sent by the energy controller, the first average time being the average time of three first startup start times, and the second time being the average time of three first command return times; configuring a full-load collection meter archive, a meter reading plan and a meter reading task; sending a restart command to the energy controller again and recording the second startup start time; sending a reading terminal time command to the energy controller again and recording the second command return time; receiving a third average time and a fourth average time sent by the energy controller, the third average time being the average time of three second startup start times, and the fourth average time being the average time of three second command return times; monitoring the CPU, memory and storage occupancy of the energy controller and determining the monitoring results; judging whether the energy controller meets the specification requirements based on the first average time, the second average time, the third average time, the fourth average time and the monitoring results.
[0069] Specifically, refer to Figure 3 As shown, Figure 3Implement the performance efficiency process for advanced business APP of energy controller. The detection software establishes an SSH link; sends the restart command of the APP to be tested, and records the start time t1; sends the terminal time reading command, and records the command return code time t2; counts the average startup time of the APP to be tested three times, and returns it to the detection software. Configure the full-load collection archive and plan, download the task to send the restart command of the APP to be tested, and record the start time T1; sends the terminal time reading command, and records the command return code time T2; counts the average startup time of the APP to be tested three times, and monitors the CPU, memory, and storage occupancy at the same time; the detection software determines whether the performance efficiency meets the specification requirements based on the returned results.
[0070] Optionally, the energy meter data is read through the RS-485 channel to detect the compatibility of the energy controller's software, including: setting the hardware virtual module type, configuring the hardware virtual module type to RS-485; sending a 698 command to clear the meter archive, meter reading plan and meter reading task, and clearing the collected data according to the hardware virtual module type; configuring the analog meter data, the 698 command analog meter supports itemized data reading; sending relevant parameters of the event collection plan to the energy controller; receiving the energy meter event data sent by the analog meter, the energy meter event data is data determined according to the meter reading event; using the energy controller to receive the energy meter event and store it; sending a 698 message to read the collection task data record table to obtain the energy meter event record; determining the result of the read event and whether the energy controller's software is restarted.
[0071] Specifically, refer to Figure 4 As shown in the figure, this section describes the implementation process of the energy controller advanced business APP compatibility test. Here we mainly introduce the process of the energy controller reading the energy meter event data through the RS-485 channel. The specific process is as follows Figure 3 As shown. The detection software sets the virtual module type to RS-485; the detection software sends the 698 command to clear the archive, plan, and task parameters, and clears the collected data according to the type; configures the analog meter data, and the 698 analog meter supports itemized data reading; the detection software sends the event collection plan related parameters to the energy controller; the analog meter receives the reading event request message and returns the energy meter event data; the energy controller receives the energy meter event and stores the data center; the detection software sends the 698 message to read the collection task data record table to obtain the energy meter event record; the detection software determines the reading event result and whether the related APP is restarted.
[0072] Optionally, the interface consistency of the energy controller low-voltage collection software and the interface consistency of the collection task scheduling software are detected, including: reading RS-485 table data items through a transparent proxy, monitoring the transparent forwarding message IOP=0x0010, and verifying whether the message format and content are correct; reading RS-485 table data items through a proxy, monitoring the proxy message IOP=0x0011, and verifying whether the message format and content are correct; sending a start meter search command 60027F00, monitoring the meter search message IOP=0x0012, and verifying whether the message format and content are correct.
[0073] Specifically, refer to Figure 5 As shown, Figure 5 This is the implementation process of the energy controller advanced business APP interface consistency test. Here we mainly introduce the interface consistency of the energy controller low-voltage collection APP and collection task scheduling APP. The detection software reads the RS485 table data items through the transparent transmission agent. The detection software monitors the transparent forwarding message IOP=0x0010 to verify whether the message format and content are correct. The detection software reads the RS485 table data items through the proxy. The detection software monitors the proxy message IOP=0x0011 to verify whether the message format and content are correct. The detection software sends the start meter search command 60027F00, and the detection software monitors the meter search message IOP=0x0012 to verify whether the message format and content are correct.
[0074] Therefore, according to a method for detecting the system and software of an energy controller, it is possible to check whether the software functions in the energy controller are complete, whether the software can run normally, and whether the software can run on different platforms, so as to avoid various problems in the software during subsequent use, which may cause the energy controller to fail to work normally. This solves the technical problem that the energy controller in the prior art needs to install software in the energy controller before it is put into use, but the prior art cannot effectively test the software in the energy controller.
[0075] According to another aspect of this embodiment, a system 600 for detecting a system and software of an energy controller is provided. Figure 6As shown, the system 600 includes: a detection system module 610, which is used to detect the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller according to the instructions issued by the client; a detection container module 620, which is used to configure and modify the container resources of the energy controller according to the instructions issued by the client, query the container information, control the container operation status, monitor the abnormal status of the container, and view the communication data and interaction data between different containers. One client can install multiple containers, and multiple software can be installed in one container; a detection software module 630, which is used to detect the functions, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller's software.
[0076] Optionally, the detection system module 610 includes: a process viewing sub-module, which is used to view and terminate the process of the energy controller's operating system according to the instructions issued by the client; a memory viewing sub-module, which is used to view the memory of the energy controller's operating system according to the instructions issued by the client; a file system viewing sub-module, which is used to view the file system of the energy controller's operating system according to the instructions issued by the client; a network information viewing sub-module, which is used to view, configure and transmit the network information of the energy controller's operating system according to the instructions issued by the client; a hardware information viewing sub-module, which is used to view the hardware information of the energy controller's operating system according to the instructions issued by the client; and a software information viewing sub-module, which is used to view the software information of the energy controller's operating system according to the instructions issued by the client.
[0077] Optionally, the detection container module 620 includes: a configuration and modification container resource sub-module, which is used to configure and modify the container resources of the energy controller according to the instructions issued by the client, and the container resources include the number of CPU cores, memory, storage and interfaces; a query container information sub-module, which is used to query the container information according to the instructions issued by the client, and the container information includes a container list, container version information and container running status; a control container sub-module, which is used to start, stop, install and uninstall the container according to the instructions issued by the client; an alarm container sub-module, which is used to set the alarm threshold of the container according to the instructions issued by the client, and simulate the triggering of the alarm through the abnormal state simulation tool; a view container interaction sub-module, which is used to install multiple containers according to the instructions issued by the client through the instructions issued by the client, and view the communication data and interaction data between different containers.
[0078] Optionally, the detection software module 630 includes: a function detection sub-module, which is used to collect electricity meter data through the RS-485 channel to detect the functions of the energy controller software; a performance efficiency sub-module, which is used to detect the performance efficiency of the energy controller software by detecting the startup time, CPU occupancy, memory occupancy and storage occupancy of the energy controller software; a compatibility detection sub-module, which is used to read the electricity meter data through the RS-485 channel to detect the compatibility of the energy controller software; an interface consistency detection sub-module, which is used to detect the interface consistency of the energy controller low-voltage collection software and the interface consistency of the collection task scheduling software.
[0079] Optionally, the function detection submodule includes: a first setting unit, used to set the hardware virtual module type, and configure the hardware virtual module type to RS-485; a first clearing acquisition data unit, used to send a 698 command to clear the meter file, meter reading plan and meter reading task, and clear the acquisition data according to the hardware virtual module type; a first configuring analog meter data unit, used to configure the analog meter data, and the 698 command analog meter supports itemized data reading; a meter file downloading unit, used to encapsulate the meter file into an archive message according to a standard data structure and then directly send it to the energy controller, wherein the meter file is divided into a local carrier port, a 485-1 port, and a Port 485-2, port 485-3, port 485-4, all ports are connected to a block 07 protocol table and a block 698 protocol table; a copy scheme sending unit is used to encapsulate the meter reading scheme into a scheme message according to the standard data structure and then directly send it to the energy controller. The meter reading scheme includes reading the positive and reverse reactive power, A phase voltage, current and demand data. The MS set in the meter reading scheme is all user addresses; a copy task sending unit is used to encapsulate the meter reading task into a meter reading message according to the standard data structure and then directly send it to the energy controller; a meter reading result verification unit is used to read the meter reading results of all meters and verify the correctness of the meter reading results.
[0080] Optionally, the performance efficiency submodule includes: a link unit for establishing an SSH link with the software of the energy controller; a first startup start time recording unit for sending a restart command to the energy controller and recording the first startup start time; a first command return code time recording unit for sending a reading terminal time command to the energy controller and recording the first command return code time; a first reception average time unit for receiving a first average time and a second average time sent by the energy controller, the first average time being the average time of three first startup start times, and the second time being the average time of three first command return code times; a full load configuration unit for configuring a full load collection meter archive, a meter reading plan, and a meter reading task; a second startup start time recording unit for sending a second command return code time command to the energy controller again; The source controller sends a restart command and records the second startup start time; records the second command return code time unit, which is used to send the reading terminal time command to the energy controller again and record the second command return code time; the second receiving average time unit is used to receive the third average time and the fourth average time sent by the energy controller, the third average time is the average time of three second startup start times, and the fourth average time is the average time of three second command return code times; determines the monitoring result unit, which is used to monitor the CPU, memory, and storage occupancy of the energy controller and determine the monitoring result; determines the standard unit, which is used to judge whether the energy controller meets the specification requirements based on the first average time, the second average time, the third average time, the fourth average time and the monitoring result.
[0081] Optionally, the compatibility detection submodule includes: a second setting unit, used to set the hardware virtual module type, and configure the hardware virtual module type to RS-485; a second clearing collected data submodule, used to send a 698 command to clear the meter archive, meter reading plan and meter reading task, and clear the collected data according to the hardware virtual module type; a second configuring analog meter data unit, used to configure the analog meter data, the 698 command analog meter supports itemized data reading; a sending parameter unit, used to send relevant parameters of the event collection plan to the energy controller; a receiving electric energy meter event data unit, used to receive the electric energy meter event data sent by the analog meter, the electric energy meter event data is data determined according to the meter reading event; a storing electric energy meter event unit, used to use the energy controller to receive and store the electric energy meter events; a sending 698 message unit, used to send a 698 message to read the collection task data record table to obtain the electric energy meter event record; a restart determination unit, used to determine the read event result and whether the energy controller software is restarted.
[0082] Optionally, the interface consistency detection submodule includes: monitoring a transparent forwarding message unit, which is used to read RS-485 table data items through a transparent transmission agent, monitoring the transparent forwarding message IOP=0x0010, and verifying whether the message format and content are correct; monitoring a proxy message unit, which is used to read RS-485 table data items through a proxy, monitoring the proxy message IOP=0x0011, and verifying whether the message format and content are correct; monitoring a table search message unit, which is used to send a start table search command 60027F00, monitoring the table search message IOP=0x0012, and verifying whether the message format and content are correct.
[0083] A system 600 for detecting a system and software of an energy controller according to an embodiment of the present invention corresponds to a method 100 for detecting a system and software of an energy controller according to another embodiment of the present invention, and will not be described in detail herein.
[0084] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0088] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0089] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for detecting the system and software of an energy controller, characterized in that: include: According to the instructions issued by the client, the energy controller's operating system process, memory, file system, network information, hardware information and software information are tested; According to the instructions issued by the client, configure and modify the container resources of the energy controller, query container information, control the container operation status, monitor the abnormal status of the container, view the communication data and interaction data between different containers, install multiple containers on one client, and install multiple software in one container; Test the functionality, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller software; Test the functions, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller software. Test the functions of the energy controller software, including: Collect the electric energy meter data through RS-485 channel to detect the function of the energy controller software; By testing the startup time, CPU occupancy, memory occupancy and storage occupancy of the energy controller software, the performance efficiency of the energy controller software can be tested; Read the energy meter data through the RS-485 channel to detect the compatibility of the energy controller software; Test the interface consistency of the energy controller's low-voltage collection software and the collection task scheduling software; The power meter data is collected through the RS-485 channel to detect the functions of the energy controller software, including: Set the hardware virtual module type and configure the hardware virtual module type to RS-485; Send 698 command to clear the meter files, meter reading schemes and meter reading tasks, and clear the collected data according to the hardware virtual module type; Configure analog meter data, 698 command analog meter supports itemized data reading; The meter file is encapsulated into a file message according to a standard data structure and then directly sent to the energy controller, wherein the meter file is divided into a local carrier port, 485-1 port, 485-2 port, 485-3 port, and 485-4 port according to the port, and all ports are connected to a block 07 protocol table and a block 698 protocol table; The meter reading scheme is encapsulated into a scheme message according to a standard data structure and then directly sent to the energy controller. The meter reading scheme includes reading the forward and reverse reactive power, A phase voltage, current and demand data. The MS set in the meter reading scheme is all user addresses; The meter reading task is encapsulated into a meter reading message according to a standard data structure and then directly sent to the energy controller; Read the meter reading results of all electricity meters and verify the correctness of the meter reading results; By testing the startup time, CPU usage, memory usage, and storage usage of the energy controller software, the performance efficiency of the energy controller software can be tested, including: Establish an SSH connection with the energy controller software; Sending a restart command to the energy controller and recording the first startup start time; Sending a terminal time reading command to the energy controller, and recording the first command return code time; Receive a first average time and a second average time sent by the energy controller, wherein the first average time is an average time of three first startup start times, and the second average time is an average time of three first command return code times; Configure full-load collection of meter files, meter reading plans, and meter reading tasks; Sending a restart command to the energy controller again and recording the second startup start time; Sending a terminal time reading command to the energy controller again, and recording the second command return code time; Receive a third average time and a fourth average time sent by the energy controller, wherein the third average time is an average time of three second startup start times, and the fourth average time is an average time of three second command return code times; Monitor the CPU, memory, and storage occupancy of the energy controller and determine the monitoring results; Determining whether the energy controller meets specification requirements according to the first average time, the second average time, the third average time, the fourth average time and the monitoring result; Read the energy meter data through the RS-485 channel to detect the compatibility of the energy controller software, including: Set the hardware virtual module type and configure the hardware virtual module type to RS-485; Send 698 command to clear the meter files, meter reading schemes and meter reading tasks, and clear the collected data according to the hardware virtual module type; Configure analog meter data, 698 command analog meter supports itemized data reading; Send relevant parameters of the event collection scheme to the energy controller; receiving the electric energy meter event data sent by the analog meter, wherein the electric energy meter event data is data determined according to the meter reading event; Utilizing the energy controller to receive and store the electric energy meter event; Send 698 message to read the data record table of the collection task to obtain the event record of the electric energy meter; Determine whether to restart the software of the read event result and energy controller; Test the interface consistency of the energy controller low-voltage collection software and the interface consistency of the collection task scheduling software, including: Read the RS-485 table data items through the transparent transmission agent, monitor the transparent forwarding message IOP=0x0010, and verify whether the message format and content are correct; Read the RS-485 table data items through the proxy, monitor the proxy message IOP=0x0011, and verify whether the message format and content are correct; Send the start table search command 60027F00, monitor the table search message IOP=0x0012, and verify whether the message format and content are correct.
2. The method according to claim 1, characterized in that According to the instructions issued by the client, the energy controller's operating system process, memory, file system, network information, hardware information, and software information are tested, including: According to the instructions issued by the client, check and terminate the process of the operating system of the energy controller; According to the instructions issued by the client, the memory of the operating system of the energy controller is checked; According to the instructions issued by the client, the file system of the operating system of the energy controller is checked; According to the instructions issued by the client, the network information of the energy controller's operating system is viewed, configured, and transmitted; According to the instructions issued by the client, check the hardware information of the operating system of the energy controller; According to the instructions sent by the client, the software information of the operating system of the energy controller is checked.
3. The method according to claim 1, characterized in that According to the instructions sent by the client, configure and modify the container resources of the energy controller, query container information, control the container operation status, monitor the abnormal status of the container, and view the communication data and interaction data between different containers, including: According to the instructions issued by the client, configure and modify the container resources of the energy controller, including the number of CPU cores, memory, storage and interface; According to the instructions issued by the client, query the container information, which includes the container list, container version information and container running status; Start, stop, install, and uninstall containers according to the instructions issued by the client; According to the instructions sent by the client, the alarm threshold of the container is set, and the abnormal state simulation tool is used to simulate the triggering of the alarm; According to the instructions sent by the client, install multiple containers through the instructions sent by the client, and view the communication data and interaction data between different containers.
4. A system for detecting the system and software of an energy controller, characterized in that: include: The detection system module is used to detect the process, memory, file system, network information, hardware information and software information of the operating system of the energy controller according to the instructions issued by the client; The detection container module is used to configure and modify the container resources of the energy controller according to the instructions issued by the client, query container information, control the container operation status, monitor the abnormal status of the container, and view the communication data and interaction data between different containers. One client can install multiple containers, and one container can install multiple software; Testing software module, used to test the function, performance efficiency, compatibility, interoperability, interface consistency and information security of the energy controller software; Detection software modules, including: Function detection submodule, used to collect electric energy meter data through RS-485 channel to detect the function of energy controller software; The performance efficiency submodule is used to detect the performance efficiency of the energy controller software by detecting the startup time, CPU occupancy, memory occupancy and storage occupancy of the energy controller software; The compatibility detection submodule is used to read the electric energy meter data through the RS-485 channel to detect the compatibility of the energy controller software; The interface consistency detection submodule is used to detect the interface consistency of the energy controller low-voltage collection software and the interface consistency of the collection task scheduling software; Function detection submodule, A first setting unit is used to set the hardware virtual module type, and configure the hardware virtual module type to be RS-485; A first unit for clearing collected data is used to send a 698 command to clear the meter files, meter reading schemes and meter reading tasks, and clear the collected data according to the hardware virtual module type; The first configuration simulation meter data unit is used to configure the simulation meter data. The 698 command simulation meter supports itemized data reading; The electricity meter file download unit is used to encapsulate the electricity meter file into a file message according to a standard data structure and then directly send it to the energy controller, wherein the electricity meter file is divided into a local carrier port, a 485-1 port, a 485-2 port, a 485-3 port, and a 485-4 port according to the port, and all ports are connected to a block 07 protocol table and a block 698 protocol table; A copy-sending scheme unit is used to encapsulate the meter reading scheme into a scheme message according to a standard data structure and then directly send it to the energy controller. The meter reading scheme includes reading the forward and reverse reactive power, A-phase voltage, current and demand data. The MS set in the meter reading scheme is all user addresses; A copy-sending task unit is used to encapsulate the meter reading task into a meter reading message according to a standard data structure and then directly send it to the energy controller; A meter reading result verification unit, used to read the meter reading results of all electric meters and verify the correctness of the meter reading results; Performance efficiency submodule, including: A link unit for establishing an SSH link with the software of the energy controller; A first startup start time recording unit is used to send a restart command to the energy controller and record the first startup start time; A first command return code time unit is recorded, which is used to send a terminal time reading command to the energy controller and record the first command return code time; A first receiving average time unit, used for receiving a first average time and a second average time sent by the energy controller, wherein the first average time is an average time of three first startup start times, and the second average time is an average time of three first command return code times; Configure the full-load unit, which is used to configure the full-load collection of meter files, meter reading plans, and meter reading tasks; A second startup start time recording unit is used to send a restart command to the energy controller again and record the second startup start time; Recording the second command return code time unit, used for sending the reading terminal time command to the energy controller again, and recording the second command return code time; A second receiving average time unit is used to receive a third average time and a fourth average time sent by the energy controller, wherein the third average time is an average time of three second startup start times, and the fourth average time is an average time of three second command return code times; A monitoring result determination unit, used to monitor the CPU, memory, and storage occupancy of the energy controller and determine the monitoring result; a unit for judging whether the energy controller complies with the specification requirements, for judging whether the energy controller complies with the specification requirements according to the first average time, the second average time, the third average time, the fourth average time and the monitoring result; Compatibility detection submodule, including: The second setting unit is used to set the hardware virtual module type, and configure the hardware virtual module type to be RS-485; The second clearing collected data submodule is used to send a 698 command to clear the meter files, meter reading schemes and meter reading tasks, and clear the collected data according to the hardware virtual module type; The second configuration simulation meter data unit is used to configure the simulation meter data. The 698 command simulation meter supports itemized data reading; A parameter sending unit, used for sending relevant parameters of the event collection scheme to the energy controller; An electric energy meter event data receiving unit, used for receiving the electric energy meter event data sent by the analog meter, wherein the electric energy meter event data is data determined according to the meter reading event; An electric energy meter event storage unit, used for receiving and storing the electric energy meter event using the energy controller; The 698 message sending unit is used to send the 698 message for reading the data record table of the collection task to obtain the event record of the electric energy meter; A restart determination unit is used to determine whether to read the event result and whether the software of the energy controller is restarted; Interface consistency detection submodule, including: Monitor the transparent forwarding message unit, which is used to read the RS-485 table data items through the transparent forwarding agent, monitor the transparent forwarding message IOP=0x0010, and verify whether the message format and content are correct; Monitor the proxy message unit, which is used to read the RS-485 table data items through the proxy, monitor the proxy message IOP = 0x0011, and verify whether the message format and content are correct; The table search message monitoring unit is used to send the start table search command 60027F00, monitor the table search message IOP=0x0012, and verify whether the message format and content are correct.
5. The system according to claim 4, characterized in that Detection system modules, including: The process viewing submodule is used to view and terminate the process of the operating system of the energy controller according to the instructions issued by the client; The memory viewing submodule is used to view the memory of the operating system of the energy controller according to the instructions issued by the client; The file system viewing submodule is used to view the file system of the operating system of the energy controller according to the instructions issued by the client; The network information viewing submodule is used to view, configure and transmit the network information of the operating system of the energy controller according to the instructions issued by the client; The hardware information viewing submodule is used to view the hardware information of the operating system of the energy controller according to the instructions issued by the client; The software information viewing submodule is used to view the software information of the operating system of the energy controller according to the instructions issued by the client.
6. The system according to claim 4, characterized in that Detection container module, including: The configuration and modification container resource submodule is used to configure and modify the container resources of the energy controller according to the instructions issued by the client. The container resources include the number of CPU cores, memory, storage and interface; The container information query submodule is used to query the container information according to the instruction issued by the client, and the container information includes the container list, container version information and container operation status; The control container submodule is used to start, stop, install, and uninstall the container according to the instructions issued by the client; The alarm container submodule is used to set the alarm threshold of the container according to the instructions issued by the client, and simulate the triggering of alarms through the abnormal state simulation tool; The container interaction submodule is used to install multiple containers according to the instructions issued by the client through the instructions issued by the client, and to view the communication data and interaction data between different containers.
Citation Information
Patent Citations
Information interaction detection system for low-voltage meter reading concentrator and local communication module
CN104158852A
System, device, and apparatus for coordinating environments using network devices and remote sensory information
CN106464551A