Reliability Testing Method, Device and Computer Equipment for Electric Energy Meter Operating System

By receiving upper computer instructions in the power meter operating system to load the test application, controlling the management core module process, starting the target intermediate layer service, generating and sending test data, the problem of inefficient reliability test of the power meter is solved, and comprehensive testing and risk reduction of the power meter is achieved.

CN112882877BActive Publication Date: 2025-07-18GUANGZHOU KETENG INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110147370.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-03
Publication Date
2025-07-18
Estimated Expiration
2041-02-03

AI Technical Summary

Technical Problem

In the prior art, the reliability test of the electricity meter is inefficient, and conventional functional verification tests cannot cover the data communication blind spots of the new generation of electricity meter, which poses potential risks.

Method used

By receiving upper computer instructions, loading the test application, controlling the management core module process, starting the target intermediate layer service, generating and sending test data, obtaining reliability test results, and realizing separate monitoring and testing of each intermediate layer service of the power meter operating system.

Benefits of technology

It improves the reliability testing efficiency of the electric energy meter, reduces potential risks, and realizes comprehensive testing of the electric energy meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112882877B_ABST
    Figure CN112882877B_ABST
Patent Text Reader

Abstract

The present application relates to a reliability test method, device, and computer device for an electric energy meter operating system. The method includes: receiving a loading test instruction sent by a host computer, and loading a test application program into the management core module group of the to-be-tested electric energy meter operating system. When it is determined that the test application program is correctly loaded, controlling other processes of the management core module group to stop, receiving a project test instruction sent by the host computer, obtaining a target test project carried by the project test instruction, responding to the project test instruction, starting a target middle layer service corresponding to the target test project, generating test data corresponding to the target middle layer service, and sending the test data to the host computer, and further obtaining a reliability test result fed back by the host computer based on the test data. By using this method, each middle layer service of the to-be-tested electric energy meter operating system can be monitored and tested separately, so as to achieve a comprehensive test of the electric energy meter, reduce potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power engineering, and particularly to a reliability testing method, device and computer equipment for an electric energy meter operating system. Background Art

[0002] With the development of power engineering technology and the gradual application of electric energy meters or metering terminals, etc., in order to better meet user needs, the method of introducing an embedded operating system is adopted. Among them, the electric energy meter adopts a dual-core design. The management core has an illegal unit module with independent functions, which contains an embedded operating system and provides a proprietary platform for hardware and software application interfaces. The metering core has an electric meter legal unit module with independent functions, which provides functions such as testing, calculating, recording, transferring, configuring, communicating, and displaying of electric energy related parameters.

[0003] Among them, the electric energy meter operating system can be generally divided into a kernel layer, an intermediate layer, and an application layer. The kernel layer is a unified platform framework that provides corresponding kernel interfaces for the intermediate layer and the application layer to call. The intermediate layer is divided into components such as virtual bus services, communication management services, metering management services, platform management services, and security and confidentiality modules, while the application layer includes basic application programs and extensible programs. Among them, the interaction between the basic application program and the metering core needs to go through the five major services included in the intermediate layer. Therefore, the security, stability, etc. of data stream communication and data storage from the basic application program to the metering core are particularly important. Therefore, it is necessary to test the functions, performance, reliability, etc. of the electric energy meter operating system.

[0004] Traditionally, the testing of electric energy meters mainly focuses on conventional function verification tests. However, due to the metering core of the electric energy meter pushing basic application data to the management core relatively frequently within a unit time, and the communication between the two only through the SPI bus, it is impossible to test its data communication through external interfaces. Therefore, conventional functional verification tests cannot be well applied to the new generation of electric energy meters, there are corresponding testing blind spots, resulting in potential risks remaining in the electric energy meters, and the reliability testing efficiency of the electric energy meters is relatively low. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a reliability testing method, device and computer equipment for an electric energy meter operating system that can improve the reliability testing efficiency of the electric energy meter.

[0006] A reliability testing method for an electric energy meter operating system, the method includes:

[0007] Receiving a loading test instruction sent by a host computer, and in response to the loading test instruction, loading a test application program into the management core module of the electric energy meter operating system to be tested;

[0008] After it is determined that the test application is correctly loaded, stop other processes of the management core module;

[0009] Receive the project test instruction sent by the host computer, and obtain the target test project carried by the project test instruction;

[0010] In response to the project test instruction, start the target intermediate layer service corresponding to the target test project, and generate test data corresponding to the target intermediate layer service;

[0011] Based on the monitoring channel corresponding to the target intermediate layer service, send the test data corresponding to the target intermediate layer service to the host computer;

[0012] Obtain the reliability test result fed back by the host computer based on the test data.

[0013] In one embodiment, the target intermediate layer service includes a communication management service; the responding to the project test instruction, starting the target intermediate layer service corresponding to the target test project, and generating test data corresponding to the target intermediate layer service includes:

[0014] In response to the project test instruction, start each process of the communication management service corresponding to the target test project;

[0015] Trigger the back-end monitoring program established in the communication management service, and simulate the receiving application program of the virtual bus service according to the back-end monitoring program;

[0016] When it is determined that each process of the communication management service is successfully loaded, feedback a prompt message of successful loading to the host computer;

[0017] Trigger the front-end monitoring program established in the communication management service, and receive the communication command frame sent by the host computer through the front-end monitoring program;

[0018] Based on the communication command frame, perform data frame interpretation and recombination to obtain a reconstructed data frame, which is determined as the test data of the communication management service.

[0019] In one embodiment, the target intermediate layer service includes a virtual bus service; the responding to the project test instruction, starting the target intermediate layer service corresponding to the target test project, and generating test data corresponding to the target intermediate layer service includes:

[0020] In response to the project test instruction, start each process of the virtual bus service corresponding to the target test project;

[0021] Trigger the back-end monitor program established for the virtual bus service, and simulate the reception operation of the downward pipeline of the virtual bus service according to the back-end monitor program;

[0022] After determining that all processes of the virtual bus service are successfully loaded, feedback a success prompt message to the host computer;

[0023] Trigger the front-end monitor program established for the virtual bus service, and receive the communication command frame sent by the host computer through the front-end monitor program;

[0024] Interpret the data frame based on the communication command frame to determine the target address corresponding to the communication command frame;

[0025] Recombine the communication command frame and send the recombined communication command frame to the target pipeline corresponding to the target address;

[0026] Determine the recombined communication command frame as the test data corresponding to the virtual bus service.

[0027] In one embodiment, the target middle-layer service includes a metering management service; responding to the project test instruction and starting the target middle-layer service corresponding to the target test project to generate test data corresponding to the target middle-layer service includes:

[0028] Respond to the project test instruction and start each process of the metering management service corresponding to the target test project;

[0029] Trigger the back-end monitor program established for the metering management service, and simulate the reception operation of the downward pipeline of the metering management service according to the back-end monitor program;

[0030] After determining that all processes of the metering management service are successfully loaded, feedback a success prompt message to the host computer;

[0031] Trigger the front-end monitor program established for the metering management service, and receive the communication command frame sent by the host computer through the front-end monitor program. The communication command frame represents a data acquisition instruction for the host computer to simulate the management core module to acquire data from the metering core module;

[0032] Parse the data frame based on the communication command frame to determine the corresponding metering core module pipeline, and send the communication command frame to the determined metering core module pipeline;

[0033] Determine the communication command frame fed back by the metering core module pipeline to the host computer as the test data corresponding to the metering management service.

[0034] In one embodiment, the target intermediate layer service includes a platform management service; responding to the project test instruction, starting the target intermediate layer service corresponding to the target test project, and generating test data corresponding to the target intermediate layer service, including:

[0035] Responding to the project test instruction, starting all processes of the operating system of the electricity meter to be tested;

[0036] Triggering the front-end monitoring program established in the communication management service, and receiving the data frame sent by the host computer based on the front-end monitoring program;

[0037] Issuing the received data frame and triggering a timing operation;

[0038] When receiving the response frame data frame corresponding to the data frame, stopping the timing operation and obtaining the timing duration corresponding to the timing operation;

[0039] Determining the timing duration corresponding to the timing operation as the test data corresponding to the platform management service.

[0040] A method for testing the reliability of an electricity meter operating system, the method includes:

[0041] Sending a load test instruction to a test application, where the load test instruction is used to instruct the test application to load the management core module group of the electricity meter operating system to be tested;

[0042] When it is determined that other processes of the management core module group have stopped, sending a project test instruction to the test application; the target test project carried by the project test instruction is used to instruct the test application to start the target intermediate layer service corresponding to the target test project and generate test data corresponding to the target intermediate layer service;

[0043] Receiving the test data corresponding to the target intermediate layer service fed back based on the monitoring channel corresponding to the target intermediate layer service;

[0044] Performing a reliability test based on the test data and generating a corresponding reliability test result.

[0045] In one embodiment, the target intermediate layer services include a communication management service, a virtual bus service, a metering management service, and a platform management service; the performing a reliability test based on the test data and generating a corresponding reliability test result includes:

[0046] Based on the test data, determine whether the reconstructed data frame of the communication management service is correct, whether the data distribution and reconstruction of the virtual bus service are correct, whether the data distribution of the metering management service data is correct, and whether the response time of the platform management service is correct, and generate corresponding reliability test results.

[0047] A reliability test device for an electric energy meter operating system, the device comprising:

[0048] A loading module, configured to receive a loading test instruction sent by a host computer, respond to the loading test instruction, and load a test application program into a management core module group of the to-be-tested electric energy meter operating system;

[0049] A process stop control module, configured to control other processes of the management core module group to stop when it is determined that the test application program is correctly loaded;

[0050] A target test item acquisition module, configured to receive an item test instruction sent by the host computer and acquire a target test item carried by the item test instruction;

[0051] A test data generation module, configured to respond to the item test instruction, start a target middle layer service corresponding to the target test item, and generate test data corresponding to the target middle layer service;

[0052] A test data feedback module, configured to send the test data corresponding to the target middle layer service to the host computer based on a monitoring channel corresponding to the target middle layer service;

[0053] A reliability test result acquisition module, configured to acquire a reliability test result fed back by the host computer based on the test data.

[0054] A computer device, comprising a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0055] Receive a loading test instruction sent by a host computer, respond to the loading test instruction, and load a test application program into a management core module group of the to-be-tested electric energy meter operating system;

[0056] When it is determined that the test application program is correctly loaded, control other processes of the management core module group to stop;

[0057] Receive the item test instruction sent by the host computer and acquire the target test item carried by the item test instruction;

[0058] Respond to the item test instruction, start a target middle layer service corresponding to the target test item, and generate test data corresponding to the target middle layer service;

[0059] Based on the monitoring channel corresponding to the target middle - layer service, send the test data corresponding to the target middle - layer service to the host computer;

[0060] Obtain the reliability test result feedback by the host computer based on the test data.

[0061] A computer - readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0062] Receive the load test instruction sent by the host computer, respond to the load test instruction, and load the test application program into the management core module of the electricity meter operating system to be tested;

[0063] When it is determined that the test application program is correctly loaded, control other processes of the management core module to stop;

[0064] Receive the project test instruction sent by the host computer, and obtain the target test project carried by the project test instruction;

[0065] Respond to the project test instruction, start the target middle - layer service corresponding to the target test project, and generate test data corresponding to the target middle - layer service;

[0066] Based on the monitoring channel corresponding to the target middle - layer service, send the test data corresponding to the target middle - layer service to the host computer;

[0067] Obtain the reliability test result feedback by the host computer based on the test data.

[0068] In the above - mentioned reliability test method, device and computer equipment of the electricity meter operating system, by receiving the load test instruction sent by the host computer, responding to the load test instruction, and loading the test application program into the management core module of the electricity meter operating system to be tested. When it is determined that the test application program is correctly loaded, control other processes of the management core module to stop. By receiving the project test instruction sent by the host computer, and obtaining the target test project carried by the project test instruction, and then responding to the project test instruction, starting the target middle - layer service corresponding to the target test project, generating test data corresponding to the target middle - layer service. Based on the monitoring channel corresponding to the target middle - layer service, send the test data corresponding to the target middle - layer service to the host computer, and obtain the reliability test result feedback by the host computer based on the test data. This method realizes the separate monitoring and testing of each middle - layer service inside the electricity meter operating system to be tested, is not limited to the conventional functional testing of the electricity meter, so as to achieve a comprehensive test of the electricity meter, reduce the potential risks existing in the electricity meter, and further improve the reliability test efficiency of the electricity meter. Description of the Drawings

[0069] Figure 1 It is an application environment diagram of the reliability test method for the electric energy meter operating system in an embodiment;

[0070] Figure 2 It is a schematic flowchart of the reliability test method for the electric energy meter operating system in an embodiment;

[0071] Figure 3 It is a schematic flowchart of the reliability test method for the electric energy meter operating system in another embodiment;

[0072] Figure 4 It is a schematic architecture diagram of the reliability test system for the electric energy meter operating system in an embodiment;

[0073] Figure 5 It is a structural block diagram of the reliability test device for the electric energy meter operating system in an embodiment;

[0074] Figure 6 It is a structural block diagram of the reliability test device for the electric energy meter operating system in another embodiment;

[0075] Figure 7 It is an internal structural diagram of a computer device in an embodiment. Specific embodiments

[0076] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0077] The reliability test method for the electric energy meter operating system provided by the present application can be applied to, for example Figure 1In the application environment shown. Among them, the operating system 102 of the electricity meter to be tested communicates with the upper computer 104 through a serial port. The test application program 106 is loaded in the operating system 102 of the electricity meter to be tested. The test application program 106 communicates with the automatic test platform 104 through the serial port. The test application program 106 receives the loading test instruction sent by the upper computer 104, responds to the loading test instruction, and loads the test application program 106 into the management core module group of the operating system 102 of the electricity meter to be tested. Among them, the operating system 102 of the electricity meter to be tested includes a management core module group and a metering core module group. When it is determined that the test application program 106 is correctly loaded in the operating system 102 of the electricity meter to be tested, other processes of the management core module group are stopped. The test application program 106 receives the project test instruction sent by the upper computer 104, obtains the target test project carried by the project test instruction, and then responds to the project test instruction, starts the target middle layer service corresponding to the target test project, and generates test data corresponding to the target middle layer service. The test application program 106 sends the test data corresponding to the target middle layer service to the upper computer 104 based on the monitoring channel corresponding to the target middle layer service, and obtains the reliability test result feedback by the upper computer 104 based on the test data. Among them, the operating system 102 of the electricity meter to be tested can be but is not limited to the operating system loaded in various smart meters, smart metering terminals, etc. The upper computer 104 can be an independent server or a test platform.

[0078] In one embodiment, as Figure 2 shown, a method for testing the reliability of an electricity meter operating system is provided. Taking the test application program in this method applied to Figure 1 as an example, the method includes the following steps:

[0079] Step S202: Receive the loading test instruction sent by the upper computer, respond to the loading test instruction, and load the test application program into the management core module group of the operating system of the electricity meter to be tested.

[0080] Specifically, the upper computer is connected to the electricity meter to be tested through a serial port. The upper computer and the test application program are also connected through a serial port. The upper computer first determines the test application program to be loaded, generates the corresponding loading test instruction, and sends the loading test instruction to the test application program. After receiving the loading test instruction sent by the upper computer, the test application program responds to the loading test instruction and loads the test application program determined by the upper computer into the management core module group of the operating system of the electricity meter to be tested.

[0081] Among them, the electric energy meter adopts a dual-core design, including a management core module group and a metering core module group. The management core module group has an illegal unit module with independent functions, which contains an embedded operating system and provides a proprietary platform for hardware and software application interfaces. The metering core module group has an electric energy meter legal unit module with independent functions, which provides functions such as testing, calculating, recording, transferring, configuring, communicating, and displaying the test, calculation, recording, transfer, configuration, communication, display, etc. of the electric energy related variables.

[0082] Step S204, when it is determined that the test application program is correctly loaded, control other processes of the management core module group to stop.

[0083] Specifically, when it is determined that the test application program is successfully loaded into the management core module group of the operating system of the electric energy meter to be tested, the test application program triggers a kill command, that is, a process stop instruction, and controls other processes of the management core module group to stop according to the process stop instruction.

[0084] Step S206, receive the project test instruction sent by the host computer, and obtain the target test project carried by the project test instruction.

[0085] Specifically, when the host computer determines the test application program to be loaded, it further determines the target test project to be tested, generates a corresponding project test instruction, and sends it to the test application program. When the test application program receives the project test instruction sent by the host computer, it parses the project test instruction to obtain the target test project carried by the project test instruction.

[0086] Step S208, in response to the project test instruction, start the target middle layer service corresponding to the target test project, and generate test data corresponding to the target middle layer service.

[0087] Among them, the project test instruction sent by the host computer carries a test project, and different test projects correspond to different middle layer services. Specifically, the target middle layer service can be a communication management service, a virtual bus service, a metering management service, a platform management service, etc.

[0088] Specifically, the test application program responds to the received project test instruction, starts the target middle layer service corresponding to the obtained target test project, and generates test data corresponding to different target middle layer services.

[0089] Step S210, based on the monitoring channel corresponding to the target middle layer service, send the test data corresponding to the target middle layer service to the host computer.

[0090] Specifically, different target middle layer services are provided with different monitoring channels, and the test data corresponding to the target middle layer service can be sent to the host computer through the monitoring channel set for the corresponding target middle layer service.

[0091] Step S212, obtain the reliability test result feedback by the host computer based on the test data.

[0092] Specifically, after the host computer receives the test data corresponding to the target middle-layer service, it performs a reliability test based on the test data and generates the corresponding reliability test result.

[0093] In the above reliability test method for the electric energy meter operating system, by receiving the loading test instruction sent by the host computer, responding to the loading test instruction, and loading the test application program into the management core module group of the electric energy meter operating system to be tested. When it is determined that the test application program is correctly loaded, other processes of the management core module group are controlled to stop. By receiving the project test instruction sent by the host computer and obtaining the target test item carried by the project test instruction, and then responding to the project test instruction, starting the target middle-layer service corresponding to the target test item, generating the test data corresponding to the target middle-layer service. Based on the monitoring channel corresponding to the target middle-layer service, sending the test data corresponding to the target middle-layer service to the host computer, and obtaining the reliability test result feedback by the host computer based on the test data. This method realizes the separate monitoring and testing of each middle-layer service inside the electric energy meter operating system to be tested, is not limited to the conventional functional testing of the electric energy meter, so as to achieve the comprehensive testing of the electric energy meter, reduce the potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.

[0094] In one embodiment, the target middle-layer service includes a communication management service; responding to the project test instruction, starting the target middle-layer service corresponding to the target test item, and generating the test data corresponding to the target middle-layer service includes:

[0095] Responding to the project test instruction, starting each process of the communication management service corresponding to the target test item;

[0096] Triggering the backend monitoring program established in the communication management service, and simulating the receiving application program of the virtual bus service according to the backend monitoring program;

[0097] When it is determined that each process of the communication management service is successfully loaded, sending a prompt message of successful loading to the host computer;

[0098] Triggering the frontend monitoring program established in the communication management service, and receiving the communication command frame sent by the host computer through the frontend monitoring program;

[0099] Based on the communication command frame, performing data frame interpretation and recombination to obtain a reconstructed data frame, which is determined as the test data of the communication management service.

[0100] Among them, the communication management service mainly receives data. After data interpretation and recombination, the communication data is forwarded to the virtual bus service. Specifically, a front-end monitoring program and a back-end monitoring program are added to the communication management service through a test application. The front-end monitoring program is used to monitor whether the data transmission can be freely controlled, and the back-end monitoring program is mainly used to receive data and forward it to the host computer, aiming to verify the data forwarding and routing functions of the communication management service.

[0101] Specifically, when the target middle-layer service is the communication management service, by receiving the loading test instruction sent by the host computer, responding to the loading test instruction, loading the test application into the management core module group of the operating system of the electricity meter to be tested, and when it is determined that the test application is correctly loaded in the operating system of the electricity meter to be tested, controlling other processes of the management core module group to stop. By receiving the project test instruction sent by the host computer, obtaining the target test project carried by the project test instruction, and responding to the project test instruction, starting each process of the communication management service corresponding to the target test project.

[0102] Furthermore, by establishing a front-end monitoring program and a back-end monitoring program in the communication management service, after it is determined that each process of the communication management service corresponding to the target test project has been started, triggering the front-end monitoring program established in the communication management service. By triggering the back-end monitoring program established in the communication management service and simulating the receiving application program of the virtual bus service according to the back-end monitoring program, when it is determined that each process of the communication management service has been successfully loaded, a prompt message indicating successful loading is fed back to the host computer.

[0103] Among them, the communication command frame sent by the host computer is received by the front-end monitoring program established in the communication management service. After the front-end monitoring program of the communication management service receives the communication command frame, it is sent to the test application. The test application can perform data frame interpretation and recombination based on the communication command frame to obtain a reconstructed data frame, which is determined as the test data of the communication management service. Furthermore, the test data of the communication management service can be sent to the host computer through the back-end monitoring program of the communication management service.

[0104] In this embodiment, by starting each process of the communication management service corresponding to the target test project and triggering the back-end monitoring program established in the communication management service, the receiving application program of the virtual bus service is simulated to run according to the back-end monitoring program. When it is determined that each process of the communication management service is successfully loaded, a prompt message indicating successful loading is fed back to the host computer, and the front-end monitoring program established in the communication management service is triggered. The communication command frame sent by the host computer is received through the front-end monitoring program. Furthermore, based on the communication command frame, data frame interpretation and recombination are performed to obtain a reconstructed data frame, which is determined as the test data of the communication management service. The correctness of the reconstructed data obtained by the communication management service is verified, and further, the reliability of the data forwarding function and routing function of the communication management service inside the operating system of the electricity meter under test is verified, reducing the potential risks existing in the electricity meter and further improving the reliability test efficiency of the electricity meter.

[0105] In one embodiment, the target middle layer service includes a virtual bus service; in response to a project test instruction, the target middle layer service corresponding to the target test project is started to generate test data corresponding to the target middle layer service, including:

[0106] In response to a project test instruction, start each process of the virtual bus service corresponding to the target test project;

[0107] Trigger the back-end monitoring program established in the virtual bus service, and simulate the receiving operation of the downward pipeline of the virtual bus service according to the back-end monitoring program;

[0108] When it is determined that each process of the virtual bus service is successfully loaded, a prompt message indicating successful loading is fed back to the host computer;

[0109] Trigger the front-end monitoring program established in the virtual bus service, and receive the communication command frame sent by the host computer through the front-end monitoring program;

[0110] Based on the communication command frame, perform data frame interpretation to determine the target address corresponding to the communication command frame;

[0111] Recombine the communication command frame and send the recombined communication command frame to the target pipeline corresponding to the target address;

[0112] Determine the recombined communication command frame as the test data corresponding to the virtual bus service.

[0113] Among them, the virtual bus distributes the data received by the communication management service. Specifically, by establishing a front-end monitoring program and a back-end monitoring program in the virtual bus service, the front-end monitoring program of the virtual bus service is used to simulate the communication management service to send data frames to the virtual bus service, and the back-end monitoring program of the virtual bus service is used to take over the pipeline at the back end of the virtual bus and receive and upload the data frames sent downward by the virtual bus service to the host computer, mainly for verifying the correctness of the distribution of the virtual bus service.

[0114] Specifically, when the target middle-layer service is the virtual bus service, by receiving the load test instruction sent by the host computer, responding to the load test instruction, loading the test application program into the management core module group of the operating system of the electricity meter to be tested, and when it is determined that the test application program is correctly loaded in the operating system of the electricity meter to be tested, controlling other processes of the management core module group to stop. By receiving the project test instruction sent by the host computer, obtaining the target test project carried by the project test instruction, and responding to the project test instruction, starting each process of the virtual bus service corresponding to the target test project.

[0115] Furthermore, by establishing a front-end monitoring program and a back-end monitoring program in the virtual bus service, after it is determined that all processes of the virtual bus service corresponding to the target test project are started, triggering the front-end monitoring program established in the virtual bus service. At the same time, triggering the back-end monitoring program established in the virtual bus service, and simulating the receiving operation of the downward pipeline of the virtual bus service according to the back-end monitoring program. When it is determined that all processes of the virtual bus service are successfully loaded, feedback a success prompt message to the host computer. Among them, after receiving the success prompt message, the host computer sends the corresponding communication command frame to the test application program, and the communication command frame sent by the host computer is received by the front-end monitoring program established in the virtual bus service.

[0116] Among them, after receiving the communication command frame, the test application program interprets the data frame based on the communication command frame, determines the target address corresponding to the communication command frame, and then recombines the communication command frame and sends the recombined communication command frame to the target pipeline corresponding to the target address. At the same time, the back-end monitoring program established in the virtual bus service is also used to monitor whether the recombined communication command frame is successfully sent to the target pipeline. When it is determined that the recombined communication command frame is successfully sent to the target pipeline, the recombined communication command frame is determined as the test data corresponding to the virtual bus service, and the test data and the corresponding target pipeline identifier are sent to the host computer.

[0117] In this embodiment, by starting each process of the virtual bus service corresponding to the target test project and triggering the back-end monitoring program established in the virtual bus service, the receiving operation of the downward pipeline of the virtual bus service is simulated according to the back-end monitoring program. When it is determined that each process of the virtual bus service is successfully loaded, a prompt message indicating successful loading is fed back to the host computer. At the same time, the front-end monitoring program established in the virtual bus service is triggered, and the communication command frame sent by the host computer is received through the front-end monitoring program. Based on the communication command frame, data frame interpretation is performed to determine the target address corresponding to the communication command frame, and the communication command frame is reorganized. The reorganized communication command frame is sent to the target pipeline corresponding to the target address, and then the reorganized communication command frame is determined as the test data corresponding to the virtual bus service. This fully verifies the data distribution and data reconstruction correctness of the virtual bus service, reduces the potential risks existing in the electric energy meter, and further improves the reliability test efficiency of the electric energy meter.

[0118] In one embodiment, the target middle layer service includes a metering management service; in response to a project test instruction, the target middle layer service corresponding to the target test project is started to generate test data corresponding to the target middle layer service, including:

[0119] In response to a project test instruction, each process of the metering management service corresponding to the target test project is started;

[0120] The back-end monitoring program established in the metering management service is triggered, and the receiving operation of the downward pipeline of the metering management service is simulated according to the back-end monitoring program;

[0121] When it is determined that each process of the metering management service is successfully loaded, a prompt message indicating successful loading is fed back to the host computer;

[0122] The front-end monitoring program established in the metering management service is triggered, and the communication command frame sent by the host computer is received through the front-end monitoring program. The communication command frame represents a data acquisition instruction for the host computer to simulate the management core module to obtain data from the metering core module;

[0123] Based on the communication command frame, data frame parsing is performed to determine the corresponding metering core module pipeline, and the communication command frame is sent to the determined metering core module pipeline;

[0124] The communication command frame fed back to the host computer by the metering core module pipeline is determined as the test data corresponding to the metering management service.

[0125] Among them, the metering management service is used to realize the communication between the metering core module and the management core module in the operating system of the electricity meter to be measured. The management core module can obtain the data of the metering core module through the metering management service. Specifically, by establishing a front-end monitoring program and a back-end monitoring program in the metering management service, the front-end monitoring program of the metering management service is mainly used to receive the data frame sent by the upper computer and forward it to the metering management service or the metering core module. The back-end monitoring program of the metering management service mainly forwards the data sent by the metering management service to the metering core module to the upper computer, or forwards the data of the metering core module to the metering management service.

[0126] Specifically, when the target middle-layer service is the metering management service, by receiving the load test instruction sent by the upper computer, responding to the load test instruction, loading the test application program into the management core module of the operating system of the electricity meter to be measured, and when it is determined that the test application program is correctly loaded in the operating system of the electricity meter to be measured, controlling other processes of the management core module to stop. By receiving the project test instruction sent by the upper computer, obtaining the target test project carried by the project test instruction, and responding to the project test instruction, starting each process of the metering management service corresponding to the target test project.

[0127] Furthermore, through the front-end monitoring program and the back-end monitoring program established in the metering management service, after it is determined that all processes of the metering management service corresponding to the target test project are started, the front-end monitoring program established in the metering management service is triggered. At the same time, the back-end monitoring program established in the metering management service is triggered, and according to the back-end monitoring program, the receiving operation of the down pipeline of the metering management service is simulated, and at the same time, after it is determined that all processes of the metering management service are successfully loaded, a prompt message of successful loading is fed back to the upper computer. Among them, after receiving the prompt message of successful loading, the upper computer sends the corresponding communication command frame to the test application program. The communication command frame sent by the upper computer is received through the front-end monitoring program established in the metering management service. The communication command frame represents the data acquisition instruction for the upper computer to simulate the management core module to obtain data from the metering core module.

[0128] Among them, the test application program parses the data frame based on the communication command frame, determines the corresponding metering core module pipeline, and at the same time sends the communication command frame to the determined metering core module pipeline, and determines the communication command frame fed back by the metering core module pipeline to the upper computer as the test data corresponding to the metering management service. Furthermore, through the back-end monitoring program established in the metering management service, the test data is sent to the upper computer.

[0129] In this embodiment, by starting each process of the metering management service corresponding to the target test project and triggering the backend monitoring program established in the metering management service, the receiving operation of the downward pipeline of the metering management service is simulated according to the backend monitoring program. When it is determined that each process of the metering management service has been successfully loaded, a prompt message indicating successful loading is fed back to the host computer, and the communication command frame sent by the host computer is received through the front-end monitoring program. Furthermore, based on the communication command frame, data frame parsing is performed to determine the corresponding metering core module pipeline, and the communication command frame is sent to the determined metering core module pipeline, and the communication command frame fed back by the metering core module pipeline to the host computer is determined as the test data corresponding to the metering management service. The data distribution and the correctness of data reconstruction of the metering management service are fully verified, the potential risks existing in the electric energy meter are reduced, and the reliability test efficiency of the electric energy meter is further improved.

[0130] In one embodiment, the target middle-layer service includes a platform management service; in response to a project test instruction, starting the target middle-layer service corresponding to the target test project and generating test data corresponding to the target middle-layer service, including:

[0131] In response to a project test instruction, starting all processes of the operating system of the electric energy meter to be tested;

[0132] Triggering the front-end monitoring program established in the communication management service and receiving the data frame sent by the host computer based on the front-end monitoring program;

[0133] Issuing the received data frame and triggering a timing operation;

[0134] When the response frame data frame corresponding to the data frame is received, stop the timing operation and obtain the timing duration corresponding to the timing operation;

[0135] Determine the timing duration corresponding to the timing operation as the test data corresponding to the platform management service.

[0136] Specifically, when the target middle-layer service is the platform management service, by receiving the loading test instruction sent by the host computer, responding to the loading test instruction, loading the test application program into the management core module of the operating system of the electric energy meter to be tested, and when it is determined that the test application program is correctly loaded in the operating system of the electric energy meter to be tested, controlling other processes of the management core module to stop. By receiving the project test instruction sent by the host computer, obtaining the target test project carried by the project test instruction, and responding to the project test instruction, starting each process of the communication management service corresponding to the target test project.

[0137] Further, by establishing a front - end monitoring program in the platform management service and triggering the front - end monitoring program established in the communication management service, data frames sent by the host computer are received based on the front - end monitoring program. The test application program distributes the received data frames, and at the same time triggers a timing operation to start timing. When a response frame data frame corresponding to the distributed data frame is received, the timing operation is stopped, the timing ends, and the corresponding timing duration is recorded. By taking the obtained timing duration corresponding to the timing operation as the test data corresponding to the platform management service, the test data is sent to the host computer.

[0138] In this embodiment, by starting all processes of the operating system of the electric energy meter to be tested and triggering the front - end monitoring program established in the communication management service, data frames sent by the host computer are received based on the front - end monitoring program, the received data frames are distributed, and a timing operation is triggered. When a response frame data frame corresponding to the data frame is received, the timing operation is stopped, the timing duration corresponding to the timing operation is obtained, and the timing duration corresponding to the timing operation is determined as the test data corresponding to the platform management service. The rationality of the response time length of the platform management service is fully verified, the potential risks existing in the electric energy meter are reduced, and the reliability test efficiency of the electric energy meter is further improved.

[0139] In one embodiment, after receiving the project test instruction sent by the host computer and obtaining the target test project carried by the project test instruction, it further includes:

[0140] Responding to the project test instruction, starting each process of the resource management service corresponding to the target test project;

[0141] Sending the preset freeze parameter command frame and event parameter command frame to the host computer;

[0142] Obtaining the resource occupancy statistics instruction triggered by the host computer for the preset freeze parameter command frame and event parameter command frame;

[0143] Conducting system resource statistics according to the system resource occupancy statistics instruction, generating the corresponding system resource occupancy data, and determining it as the test data corresponding to the resource management service.

[0144] Specifically, by receiving the load test instruction sent by the host computer, responding to the load test instruction, loading the test application program into the management core module group of the operating system of the electric energy meter to be tested, and when it is determined that the test application program is correctly loaded in the operating system of the electric energy meter to be tested, controlling other processes of the management core module group to stop. By receiving the project test instruction sent by the host computer, obtaining the target test project carried by the project test instruction, and responding to the project test instruction, starting each process of the resource management service corresponding to the target test project.

[0145] Further, by sending the preset freeze parameter command frame and event parameter command frame to the host computer, and obtaining the resource occupancy statistical instruction triggered by the host computer for the preset freeze parameter command frame and event parameter command frame. Then, system resource statistics are performed according to the system resource occupancy statistical instruction, corresponding system resource occupancy data is generated, and the system resource occupancy data is determined as the test data corresponding to the resource management service. At the same time, the system resource occupancy data is uploaded to the host computer for storage.

[0146] In this embodiment, by starting each process of the resource management service corresponding to the target test project, and sending the preset freeze parameter command frame and event parameter command frame to the host computer. By obtaining the resource occupancy statistical instruction triggered by the host computer for the preset freeze parameter command frame and event parameter command frame, and performing system resource statistics according to the system resource occupancy statistical instruction, corresponding system resource occupancy data is generated and determined as the test data corresponding to the resource management service. The rationality of the resource occupancy data of the resource management service is fully verified, the potential risks existing in the electric energy meter are reduced, and the reliability test efficiency of the electric energy meter is further improved.

[0147] In one embodiment, as Figure 3 shown, a reliability test method for an electric energy meter operating system is provided, which is applied to a host computer and specifically includes the following steps:

[0148] Step S302: Send a load test instruction to the test application program, where the load test instruction is used to instruct the test application program to load the management core module group of the to-be-tested electric energy meter operating system.

[0149] Specifically, the host computer is connected to the to-be-tested electric energy meter through a serial port, and the host computer and the test application program are also connected through a serial port. The host computer first determines the test application program to be loaded, generates the corresponding load test instruction, and sends the load test instruction to the test application program. After receiving the load test instruction sent by the host computer, the test application program responds to the load test instruction and loads the test application program determined by the host computer into the management core module group of the to-be-tested electric energy meter operating system.

[0150] Step S304: When it is determined that other processes of the management core module group stop, send a project test instruction to the test application program. The target test project carried by the project test instruction is used to instruct the test application program to start the target intermediate layer service corresponding to the target test project and generate test data corresponding to the target intermediate layer service.

[0151] Specifically, when the host computer determines the test application program to be loaded, it further determines the target test items to be tested and generates corresponding project test instructions. When it determines that other processes of the management core module have stopped, it sends the project test instructions to the test application program. After the test application program receives the project test instructions sent by the host computer, it parses the project test instructions, obtains the target test items carried by the project test instructions, and starts the target middle-layer service corresponding to the target test items, and generates test data corresponding to the target middle-layer service.

[0152] Step S306: Receive the test data corresponding to the target middle-layer service fed back based on the monitoring channel corresponding to the target middle-layer service.

[0153] Specifically, different target middle-layer services are provided with different monitoring channels. The test application program can feed back the test data corresponding to the target middle-layer service to the host computer via the monitoring channel set for the corresponding target middle-layer service.

[0154] Step S308: Perform a reliability test based on the test data and generate corresponding reliability test results.

[0155] Specifically, the target middle-layer services include communication management service, virtual bus service, metering management service, and platform management service. Furthermore, the host computer determines whether the reconstructed data frame of the communication management service is correct, whether the data distribution and reconstruction of the virtual bus service are correct, whether the data distribution of the metering management service data is correct, and whether the response time of the platform management service is correct based on the received test data, and generates corresponding reliability test results. Among them, the reliability test results include: the reconstructed data frame of the communication management service is correct / incorrect, the data distribution and reconstruction of the virtual bus service are correct / incorrect, the data distribution of the metering management service data is correct / incorrect, and the response time of the platform management service is correct / incorrect.

[0156] In the above reliability test method for the electric energy meter operating system, a load test instruction is sent to the test application program, and according to the load test instruction, the test application program is instructed to load the management core module of the electric energy meter operating system to be tested. When it is determined that other processes of the management core module stop, a project test instruction is sent to the test application program, and according to the project test instruction, the test application program is instructed to start the target middle layer service corresponding to the target test project and generate test data corresponding to the target middle layer service. By receiving the test data corresponding to the target middle layer service fed back based on the monitoring channel corresponding to the target middle layer service and performing a reliability test based on the test data, a corresponding reliability test result is generated. This method realizes the separate monitoring and testing of each middle layer service inside the electric energy meter operating system to be tested, and is not limited to the conventional functional test of the electric energy meter, so as to achieve a comprehensive test of the electric energy meter, reduce the potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.

[0157] In one embodiment, as Figure 4 shown, a reliability test system for an electric energy meter operating system is provided. Referring to Figure 4 it can be seen that the reliability test system for the electric energy meter operating system includes a host computer, a test application program connected to the host computer through a serial port, and a management core module of the electric energy meter operating system to be tested connected to the host computer through a serial port. Among them, the application program to be tested needs to be loaded into the management core module of the electric energy meter operating system to be tested.

[0158] The host computer, or the automatic test platform, is used to establish a communication link with the management core module and the test application program of the electric energy meter operating system to be tested, and is used to control the test application program and the test information of the electric energy meter operating system to be tested. The host computer has function test schemes such as data interaction, process scheduling, thread scheduling, resource occupancy, and response ability, and can flexibly configure the test scheme to realize the automatic determination and conclusion output of the test conclusion.

[0159] The test application program is used to be loaded into the management core module of the electric energy meter operating system to be tested. By simulating each functional module and data interaction of the middle layer service, it tests whether the functions and performance of each module of the middle layer service meet the reliability requirements. Among them, the test application program can realize the data distribution between each module of the management core module according to the test requirements, receive the response data of each module of the management core module and transmit the data to the host computer, so as to realize the in-depth test and comprehensive monitoring of the process operation, thread scheduling, resource utilization, response efficiency, etc. of the electric energy meter operating system to be tested.

[0160] Among them, the test application can achieve data interaction with the host computer, dynamically start corresponding processes according to project test instructions, and can also detect the response time between data frame sending and response frame receiving of the communication management service.

[0161] The operating system of the electric energy meter to be tested includes a management core module and a metering core module. In this embodiment, the focus is on the management core module. Among them, referring to Figure 4 It can be seen that the management core module of the operating system of the electric energy meter to be tested includes a service application layer, an intermediate layer service, and a kernel layer. Among them, the service application layer includes a basic application program and multiple extended application programs. The intermediate layer service includes a communication management service, a virtual bus service, a platform management service, and a metering management service. The kernel layer includes process management, thread management, a file system, a driver device, and an IO system.

[0162] The reliability test system of the above-mentioned electric energy meter operating system realizes the separate monitoring and testing of each intermediate layer service inside the operating system of the electric energy meter to be tested, and is not limited to the conventional functional testing of the electric energy meter, so as to achieve the comprehensive testing of the electric energy meter, reduce the potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.

[0163] It should be understood that although the steps in each flowchart involved in the above embodiments are displayed in sequence according to the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in each flowchart involved in the above embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily need to be executed at the same time, but can be executed at different times. The execution order of these steps or stages does not necessarily need to be sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0164] In one embodiment, as Figure 5 shown, a reliability test device for an electric energy meter operating system is provided, including: a loading module 502, a process stop control module 504, a target test item acquisition module 506, a test data generation module 508, a test data feedback module 510, and a reliability test result acquisition module 512, where:

[0165] The loading module 502 is configured to receive a loading test instruction sent by the host computer, respond to the loading test instruction, and load the test application program into the management core module of the operating system of the electric energy meter to be tested.

[0166] The process stop control module 504 is used to control the stop of other processes of the management core module group when it is determined that the test application is correctly loaded.

[0167] The target test item acquisition module 506 is used to receive the item test instruction sent by the host computer and acquire the target test item carried by the item test instruction.

[0168] The test data generation module 508 is used to respond to the item test instruction, start the target middle layer service corresponding to the target test item, and generate test data corresponding to the target middle layer service.

[0169] The test data feedback module 510 is used to send the test data corresponding to the target middle layer service to the host computer based on the monitoring channel corresponding to the target middle layer service.

[0170] The reliability test result acquisition module 512 is used to acquire the reliability test result fed back by the host computer based on the test data.

[0171] In the above reliability test device for the electric energy meter operating system, by receiving the load test instruction sent by the host computer and responding to the load test instruction, the test application is loaded into the management core module group of the to-be-tested electric energy meter operating system. When it is determined that the test application is correctly loaded, the control of other processes of the management core module group stops. By receiving the item test instruction sent by the host computer and acquiring the target test item carried by the item test instruction, and then responding to the item test instruction, the target middle layer service corresponding to the target test item is started, and the test data corresponding to the target middle layer service is generated. Based on the monitoring channel corresponding to the target middle layer service, the test data corresponding to the target middle layer service is sent to the host computer, and the reliability test result fed back by the host computer based on the test data is acquired. This method realizes the separate monitoring and testing of each middle layer service inside the to-be-tested electric energy meter operating system, and is not limited to the conventional functional testing of the electric energy meter, so as to achieve the comprehensive testing of the electric energy meter, reduce the potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.

[0172] In one embodiment, as Figure 6 shown, a reliability test device for an electric energy meter operating system is provided, including:

[0173] The load test instruction sending module 602 is used to send a load test instruction to the test application, and the load test instruction is used to instruct the test application to be loaded into the management core module group of the to-be-tested electric energy meter operating system.

[0174] The project test instruction sending module 604 is used to send a project test instruction to the test application when it is determined that other processes of the management core module have stopped. The target test project carried in the project test instruction is used to instruct the test application to start the target middle layer service corresponding to the target test project and generate test data corresponding to the target middle layer service.

[0175] The test data receiving module 606 is used to receive the test data corresponding to the target middle layer service fed back based on the monitoring channel corresponding to the target middle layer service;

[0176] The reliability test result generating module 608 is used to perform a reliability test based on the test data and generate the corresponding reliability test result.

[0177] In the above reliability test device for the electric energy meter operating system, by sending a loading test instruction to the test application, the test application is instructed to load the management core module of the electric energy meter operating system to be tested. When it is determined that other processes of the management core module have stopped, the project test instruction is sent to the test application, and the test application is instructed to start the target middle layer service corresponding to the target test project according to the project test instruction and generate test data corresponding to the target middle layer service. By receiving the test data corresponding to the target middle layer service fed back based on the monitoring channel corresponding to the target middle layer service and performing a reliability test based on the test data, the corresponding reliability test result is generated. This method realizes the separate monitoring and testing of each middle layer service inside the electric energy meter operating system to be tested, and is not limited to the conventional functional testing of the electric energy meter, so as to achieve a comprehensive test of the electric energy meter, reduce the potential risks existing in the electric energy meter, and further improve the reliability test efficiency of the electric energy meter.

[0178] In one embodiment, the test data generating module is further used for:

[0179] Responding to the project test instruction, starting each process of the communication management service corresponding to the target test project; triggering the back-end monitoring program established in the communication management service, and simulating the receiving application program of the virtual bus service according to the back-end monitoring program; when it is determined that each process of the communication management service has been successfully loaded, feeding back a success prompt message to the upper computer; triggering the front-end monitoring program established in the communication management service, receiving the communication command frame sent by the upper computer through the front-end monitoring program; performing data frame interpretation and recombination based on the communication command frame to obtain a reconstructed data frame, which is determined as the test data of the communication management service.

[0180] In one embodiment, the test data generating module is further used for:

[0181] In response to the project test instruction, start each process of the virtual bus service corresponding to the target test project; trigger the back-end monitoring program established in the virtual bus service, and simulate the receiving operation of the down pipeline of the virtual bus service according to the back-end monitoring program; when it is determined that each process of the virtual bus service is successfully loaded, feedback a success prompt message to the host computer; trigger the front-end monitoring program established in the virtual bus service, and receive the communication command frame sent by the host computer through the front-end monitoring program; perform data frame interpretation based on the communication command frame to determine the target address corresponding to the communication command frame; reorganize the communication command frame and send the reorganized communication command frame to the target pipeline corresponding to the target address; determine the reorganized communication command frame as the test data corresponding to the virtual bus service.

[0182] In one embodiment, the test data generation module is further configured to:

[0183] In response to the project test instruction, start each process of the metering management service corresponding to the target test project; trigger the back-end monitoring program established in the metering management service, and simulate the receiving operation of the down pipeline of the metering management service according to the back-end monitoring program; when it is determined that each process of the metering management service is successfully loaded, feedback a success prompt message to the host computer; trigger the front-end monitoring program established in the metering management service, and receive the communication command frame sent by the host computer through the front-end monitoring program. The communication command frame represents a data acquisition instruction for the host computer to simulate the management core module to acquire data from the metering core module; perform data frame parsing based on the communication command frame to determine the corresponding metering core module pipeline, and send the communication command frame to the determined metering core module pipeline; determine the communication command frame fed back by the metering core module pipeline to the host computer as the test data corresponding to the metering management service.

[0184] In one embodiment, the test data generation module is further configured to:

[0185] In response to the project test instruction, start all processes of the operating system of the electric energy meter to be tested; trigger the front-end monitoring program established in the communication management service, and receive the data frame sent by the host computer based on the front-end monitoring program; issue the received data frame and trigger a timing operation; when receiving the response frame data frame corresponding to the data frame, stop the timing operation and obtain the timing duration corresponding to the timing operation; determine the timing duration corresponding to the timing operation as the test data corresponding to the platform management service.

[0186] In one embodiment, the reliability test result generation module is further configured to:

[0187] Based on the test data, determine whether the reconstructed data frame of the communication management service is correct, whether the data distribution and reconstruction of the virtual bus service are correct, whether the data distribution of the metering management service data is correct, and whether the response time of the platform management service is correct, and generate corresponding reliability test results.

[0188] For the specific limitations of the reliability test device for the electricity meter operating system, reference can be made to the limitations of the reliability test method for the electricity meter operating system in the above text, which will not be elaborated here. Each module in the above reliability test device for the electricity meter operating system can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above modules.

[0189] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 7 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store test data corresponding to the target middle layer service. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a reliability test method for an electricity meter operating system.

[0190] Those skilled in the art can understand that Figure 7 the structure shown in

[0191] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0192] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.

[0193] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0194] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0195] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A reliability test method for an electric energy meter operating system, characterized in that, The method includes: Receiving a loading test instruction sent by a host computer, responding to the loading test instruction, and loading a test application into a management core module of an electricity meter operating system to be tested; When it is determined that the test application is correctly loaded, controlling other processes of the management core module to stop; Receiving a project test instruction sent by the host computer and obtaining a target test project carried by the project test instruction; Responding to the project test instruction, starting a target middle-layer service corresponding to the target test project, and generating test data corresponding to the target middle-layer service; Based on a monitoring channel corresponding to the target middle-layer service, sending the test data corresponding to the target middle-layer service to the host computer; Obtaining a reliability test result fed back by the host computer based on the test data; The target middle-layer service includes a communication management service; the responding to the project test instruction, starting the target middle-layer service corresponding to the target test project, and generating test data corresponding to the target middle-layer service includes: responding to the project test instruction, starting each process of the communication management service corresponding to the target test project; triggering a back-end monitoring program established in the communication management service, and simulating the reception application program of the virtual bus service according to the back-end monitoring program; when it is determined that each process of the communication management service is successfully loaded, feeding back a prompt message of successful loading to the host computer; triggering a front-end monitoring program established in the communication management service, and receiving a communication command frame sent by the host computer through the front-end monitoring program; interpreting and reorganizing the data frame based on the communication command frame to obtain a reconstructed data frame, and determining it as the test data of the communication management service.

2. The method according to claim 1, wherein The target middle-layer service includes a virtual bus service; the responding to the project test instruction, starting the target middle-layer service corresponding to the target test project, and generating test data corresponding to the target middle-layer service includes: Responding to the project test instruction, starting each process of the virtual bus service corresponding to the target test project; Triggering a back-end monitoring program established in the virtual bus service, and simulating the reception operation of the downward pipeline of the virtual bus service according to the back-end monitoring program; When it is determined that each process of the virtual bus service is successfully loaded, feeding back a prompt message of successful loading to the host computer; Triggering a front-end monitoring program established in the virtual bus service, and receiving a communication command frame sent by the host computer through the front-end monitoring program; Interpreting the data frame based on the communication command frame to determine a target address corresponding to the communication command frame; Reorganizing the communication command frame and sending the reorganized communication command frame to a target pipeline corresponding to the target address; Determining the reorganized communication command frame as the test data corresponding to the virtual bus service.

3. The method according to claim 1, wherein The target middle-layer service includes a metering management service; the responding to the project test instruction, starting the target middle-layer service corresponding to the target test project, and generating test data corresponding to the target middle-layer service includes: In response to the project test instruction, start each process of the metering management service corresponding to the target test project; Trigger the back-end monitoring program established in the metering management service, and simulate the receiving operation of the downward pipeline of the metering management service according to the back-end monitoring program; When it is determined that each process of the metering management service is successfully loaded, feedback a prompt message of successful loading to the host computer; Trigger the front-end monitoring program established in the metering management service, and receive the communication command frame sent by the host computer through the front-end monitoring program. The communication command frame represents the data acquisition instruction for the host computer to simulate the management core module to acquire data from the metering core module; Based on the communication command frame, perform data frame parsing, determine the corresponding metering core module pipeline, and send the communication command frame to the determined metering core module pipeline; Determine the communication command frame fed back by the metering core module pipeline to the host computer as the test data corresponding to the metering management service.

4. The method according to claim 1, wherein The target middle layer service includes a platform management service; responding to the project test instruction, starting the target middle layer service corresponding to the target test project, and generating test data corresponding to the target middle layer service, including: In response to the project test instruction, start all processes of the operating system of the electricity meter to be tested; Trigger the front-end monitoring program established in the communication management service, and receive the data frame sent by the host computer based on the front-end monitoring program; Send the received data frame down and trigger a timing operation; When receiving the response frame data frame corresponding to the data frame, stop the timing operation and obtain the timing duration corresponding to the timing operation; Determine the timing duration corresponding to the timing operation as the test data corresponding to the platform management service.

5. A reliability test method for an electric energy meter operating system, characterized in that The method includes: Send a loading test instruction to the test application program, and the loading test instruction is used to instruct the test application program to load the management core module of the operating system of the electricity meter to be tested; When it is determined that other processes of the management core module have stopped, send a project test instruction to the test application; the target test project carried by the project test instruction is used to instruct the test application to start a target intermediate layer service corresponding to the target test project and generate test data corresponding to the target intermediate layer service; wherein, the target intermediate layer service includes a communication management service, and the instructing the test application to start the target intermediate layer service corresponding to the target test project and generate test data corresponding to the target intermediate layer service includes: instructing the test application to start each process of the communication management service corresponding to the target test project; triggering a backend monitoring program established in the communication management service to simulate and run a receiving application program of a virtual bus service according to the backend monitoring program; when it is determined that each process of the communication management service has been successfully loaded, feedback a prompt message of successful loading to the host computer; triggering a frontend monitoring program established in the communication management service to receive a communication command frame sent by the host computer through the frontend monitoring program; performing data frame interpretation and recombination based on the communication command frame to obtain a reconstructed data frame, and determining it as the test data of the communication management service; Receive the test data corresponding to the target intermediate layer service fed back based on the monitoring channel corresponding to the target intermediate layer service; Perform a reliability test based on the test data and generate a corresponding reliability test result.

6. The method according to claim 5, wherein The target intermediate layer service includes a communication management service, a virtual bus service, a metering management service, and a platform management service; the performing a reliability test based on the test data and generating a corresponding reliability test result includes: Based on the test data, determine whether the reconstructed data frame of the communication management service is correct, whether the data distribution and reconstruction of the virtual bus service are correct, whether the data distribution of the metering management service data is correct, and whether the response time of the platform management service is correct, and generate a corresponding reliability test result.

7. A reliability test device for an electric energy meter operating system, characterized in that, The device includes: A loading module, configured to receive a loading test instruction sent by a host computer, respond to the loading test instruction, and load a test application into a management core module of an operating system of a watt-hour meter to be tested; A process stop control module, configured to control other processes of the management core module to stop when it is determined that the test application has been correctly loaded; A target test project acquisition module, configured to receive a project test instruction sent by the host computer and acquire the target test project carried by the project test instruction; A test data generation module, configured to respond to the project test instruction, start a target intermediate layer service corresponding to the target test project, and generate test data corresponding to the target intermediate layer service; A test data feedback module, configured to send the test data corresponding to the target intermediate layer service to the host computer based on a monitoring channel corresponding to the target intermediate layer service; A reliability test result acquisition module, configured to acquire the reliability test result fed back by the host computer based on the test data; The target middle-layer service includes a communication management service; the test data generation module is further configured to: in response to the project test instruction, start each process of the communication management service corresponding to the target test project; trigger a back-end monitoring program established in the communication management service, and simulate and run a receiving application program of a virtual bus service according to the back-end monitoring program; when it is determined that each process of the communication management service is successfully loaded, feedback a prompt message indicating successful loading to the host computer; trigger a front-end monitoring program established in the communication management service, and receive a communication command frame sent by the host computer through the front-end monitoring program; perform data frame interpretation and recombination based on the communication command frame to obtain a reconstructed data frame, and determine it as the test data of the communication management service.

8. A reliability test device for an electric energy meter operating system, characterized in that, The device includes: A loading test instruction sending module, configured to send a loading test instruction to a test application program, where the loading test instruction is used to instruct the test application program to load a management core module of an electricity meter operating system to be tested. A project test instruction sending module, configured to send a project test instruction to the test application program when it is determined that other processes of the management core module stop; the target test project carried in the project test instruction is used to instruct the test application program to start a target middle-layer service corresponding to the target test project and generate test data corresponding to the target middle-layer service; wherein, the target middle-layer service includes a communication management service, and instructing the test application program to start a target middle-layer service corresponding to the target test project and generate test data corresponding to the target middle-layer service includes: instructing the test application program to start each process of the communication management service corresponding to the target test project; triggering a back-end monitoring program established in the communication management service, and simulate and run a receiving application program of a virtual bus service according to the back-end monitoring program; when it is determined that each process of the communication management service is successfully loaded, feedback a prompt message indicating successful loading to the host computer; trigger a front-end monitoring program established in the communication management service, and receive a communication command frame sent by the host computer through the front-end monitoring program; perform data frame interpretation and recombination based on the communication command frame to obtain a reconstructed data frame, and determine it as the test data of the communication management service; A test data receiving module, configured to receive test data corresponding to the target middle-layer service fed back based on a monitoring channel corresponding to the target middle-layer service. A reliability test result generation module, configured to perform a reliability test based on the test data and generate a corresponding reliability test result.

9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Interactive function test method and device based on double-core intelligent electric meter

    CN112098924A