CN112988485B - Simulation test method and device for electric power Internet of things equipment - Google Patents

Simulation test method and device for electric power Internet of things equipment Download PDF

Info

Publication number
CN112988485B
CN112988485B CN202110324790.9A CN202110324790A CN112988485B CN 112988485 B CN112988485 B CN 112988485B CN 202110324790 A CN202110324790 A CN 202110324790A CN 112988485 B CN112988485 B CN 112988485B
Authority
CN
China
Prior art keywords
object model
equipment
power equipment
parameter
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110324790.9A
Other languages
Chinese (zh)
Other versions
CN112988485A (en
Inventor
尚芳剑
马跃
李信
彭柏
来骥
王艺霏
闫忠平
张少军
王东升
娄竞
李贤�
陈重韬
刘超
孟德
常海娇
李坚
杨峰
苏丹
赵欣
祝文军
王佳楠
何庆
杨成
杜亚洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing China Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd
Original Assignee
Beijing China Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing China Power Information Technology Co Ltd, Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd filed Critical Beijing China Power Information Technology Co Ltd
Priority to CN202110324790.9A priority Critical patent/CN112988485B/en
Publication of CN112988485A publication Critical patent/CN112988485A/en
Application granted granted Critical
Publication of CN112988485B publication Critical patent/CN112988485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/10Information sensed or collected by the things relating to the environment, e.g. temperature; relating to location
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/20Information sensed or collected by the things relating to the thing itself
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • G16Y30/10Security thereof
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring

Abstract

The invention discloses a simulation test method and device for electric power Internet of things equipment, wherein the method comprises the following steps: receiving object model attribute parameters uploaded by the power equipment; extracting equipment information of the electric equipment from the object model attribute parameters; searching a pre-stored special object model corresponding to the power equipment according to the equipment information; matching object model attribute parameters with object model reference parameters contained in the special object model; if the matching is successful, determining that the power equipment passes the simulation test, and allowing the power equipment to be accessed to the Internet of things management platform. The invention can test the equipment after the electric equipment is accessed to the Internet of things management platform, is convenient for the equipment to be put into use as soon as possible after the electric equipment is accessed to the Internet of things management platform, and can reduce the occupation of resources of the Internet of things management platform.

Description

Simulation test method and device for electric power Internet of things equipment
Technical Field
The invention relates to the technical field of electric power Internet of things, in particular to an electric power Internet of things equipment simulation test method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The internet of things management platform is used for connecting any object with a network through the information sensing equipment according to a contracted protocol, and the object accessed into the internet of things management platform exchanges information and communicates through an information transmission medium, so that the functions of intelligent identification, positioning, tracking, supervision and the like are realized.
At present, before the electric power equipment, such as edge internet of things proxy equipment, intelligent fusion terminals, edge internet of things expansion equipment and other side equipment or end equipment is accessed to an internet of things management platform, the process of testing and verifying the equipment is lack, the equipment is accessed to the internet of things management platform and then needs to be debugged, so that the equipment cannot be put into use as soon as possible, and meanwhile, the equipment occupies more resources of the internet of things management platform.
Disclosure of Invention
The embodiment of the invention provides a simulation test method for electric power Internet of things equipment, which is used for testing the equipment after the electric power equipment is accessed to an Internet of things management platform, so that the equipment can be put into use as soon as possible after being accessed to the Internet of things management platform, and meanwhile, the occupation of resources of the Internet of things management platform can be reduced, and the method comprises the following steps:
receiving object model attribute parameters uploaded by the power equipment;
extracting equipment information of the electric equipment from the object model attribute parameters;
searching a pre-stored special object model corresponding to the power equipment according to the equipment information;
matching object model attribute parameters with object model reference parameters contained in the special object model;
if the matching is successful, determining that the power equipment passes the simulation test, and allowing the power equipment to be accessed to the Internet of things management platform;
matching the object model attribute parameters with object model reference parameters contained in the special object model, and if the matching is successful, determining that the power equipment passes the simulation test, wherein the method comprises the following steps:
comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter;
comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model;
and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
The embodiment of the invention also provides a simulation test device for the electric power Internet of things equipment, which is used for testing the equipment after the electric power equipment is accessed to the Internet of things management platform, so that the equipment can be put into use as soon as possible after being accessed to the Internet of things management platform, and meanwhile, the occupation of resources of the Internet of things management platform can be reduced, and the device comprises:
the receiving module is used for receiving object model attribute parameters uploaded by the power equipment;
the extraction module is used for extracting equipment information of the power equipment from the object model attribute parameters;
the searching module is used for searching a pre-stored special object model corresponding to the power equipment according to the equipment information;
the parameter matching module is used for matching the object model attribute parameters with object model reference parameters contained in the special object model;
the parameter matching module is also used for determining that the power equipment passes the simulation test when the matching is successful, and allowing the power equipment to be accessed to the Internet of things management platform;
the parameter matching module is used for:
comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter;
comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model;
and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
The embodiment of the invention also provides a computer device which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for testing the electric power Internet of things device when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the electric power internet of things equipment testing method.
In the embodiment of the invention, before the electric equipment is connected to the internet of things management platform, the electric equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the electric equipment are matched with the object model reference parameters of the electric equipment stored in advance or not is tested, after the matching is successful, the parameters and the data uploaded by the electric equipment are confirmed to be correct, and after the simulation test is passed, the electric equipment can be connected to the internet of things management platform. Therefore, before the power equipment is formally connected to the Internet of things management platform, whether the power equipment has a problem or not is determined through the parameter data uploaded by the power equipment, so that the power equipment which possibly has the problem can be found out in time, the power equipment which has no problem is connected to the Internet of things management platform, the Internet of things management platform does not need to test the power equipment, the power equipment can be put into use as soon as possible, and meanwhile, the occupation of resources of the Internet of things management platform can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flow chart of a simulation test method for electric power Internet of things equipment in an embodiment of the invention;
FIG. 2 is a flowchart of another simulation test method for electric power Internet of things equipment according to an embodiment of the invention;
FIG. 3 is a flowchart of another simulation test method for electric power Internet of things equipment according to an embodiment of the invention;
fig. 4 is a schematic structural diagram of an electric power internet of things equipment simulation test device in an embodiment of the invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
Technical terms related to the embodiments of the present invention will be briefly explained below.
1. And (3) model: the digitizing of entities in physical space, such as sensors, voltmeters, vehicle-mounted devices, etc., is a description of the functions of the device at the cloud, and is composed of a series of services (including attributes and commands). The model is expressed in a JSON format and can be inherited by a plurality of products as a template.
2. Attributes: one of the functional models of the device is typically used to describe the state of the device when it is running, such as the current ambient temperature read by the ambient monitoring device, etc. The attribute supports GET and SET request modes, and an application system can initiate a read and SET request for the attribute.
3. A command: one of the functional models of the device, a command that the device executes when it executes, may contain multiple command fields. For example, a command may be subscribed to and issued with information about the completion of a task.
4. Message queue telemetry transport protocol (Message Queueing Telemetry Transport Protocol, MQTT): MQTT is an internet of things transport protocol designed for lightweight publish/subscribe messaging, aimed at providing reliable network services for internet of things devices in low bandwidth and unstable network environments.
5. The product is as follows: a product is a collection of devices, typically a group of devices with the same functionality. If the product refers to a product of the same model, the device is a specific device of the model.
The embodiment of the invention provides a simulation test method for electric power Internet of things equipment, as shown in fig. 1, comprising the following steps of 101 to 105:
and step 101, receiving object model attribute parameters uploaded by the power equipment.
The object model defines the names of the attribute parameters of the electric equipment, for example, the object model of the air conditioner defines the names of the attribute parameters such as the starting temperature of the air conditioner, the shutdown temperature of the air conditioner, the upper limit of the return air temperature, the lower limit of the return air temperature, the upper limit of the return air humidity, the lower limit of the return air humidity, the data state and the like. And the power equipment records corresponding parameter values according to the object model attribute parameter names, combines the attribute parameter names and the parameter values into object model attribute parameters, and uploads the object model attribute parameters to the simulation test device in the embodiment of the invention.
It should be noted that, the electrical equipment adopts multiple transmission protocols to transmit the json format object model attribute parameters to the simulation test device, for example, the adopted transmission protocols include mqtt protocol, 698 protocol, 104 protocol, 1376.1 protocol, etc., and for object model attribute parameters uploaded by adopting different transmission protocols, the field value can be extracted from the object model attribute parameters according to the field names preset according to different transmission protocols, and the field names and the field values are corresponding to obtain the object model attribute parameters which can be directly read.
In the embodiment of the invention, detailed information analysis process records can be provided for information sent by the electric equipment such as object model attribute parameters and the like, and information which does not accord with the access format of the simulation test device is prompted, and the analyzed information types of the simulation test device comprise equipment management type information and equipment data uploading information such as side equipment adding sub-equipment, side equipment updating sub-equipment state, an object connection management platform deleting sub-equipment, command response returned to the object connection management platform by the side equipment and the like. And the message sent by the power equipment is displayed through the page, the content of the message is analyzed, analysis assistance of management personnel on the content of the message is provided, and the rectifying opinion is provided for the power equipment which does not meet the access specification.
And 102, extracting equipment information of the electric equipment from the object model attribute parameters.
Because the object models used by different electric equipment are different, in order to distinguish object model attribute parameters of the electric equipment of different types, equipment information is added in the uploaded object model attribute parameters of the electric equipment.
Step 103, searching a pre-stored special object model corresponding to the power equipment according to the equipment information.
The dedicated object model is an object model generated according to the self attribute of the power equipment.
Before searching for object model reference parameters corresponding to the electric power equipment according to the equipment information, referring to fig. 2, a dedicated object model of the electric power equipment is obtained according to the following steps 201 and 202:
step 201, after the device is connected with the power device, providing an object model universal template corresponding to the device type for the power device, so that the power device downloads the object model universal template corresponding to the device type, and edits and modifies the object model universal template into a special object model matched with the power device according to the object model universal template.
The special object model comprises a reference parameter and a value range of the power equipment object model.
Step 202, receiving a special object model which is uploaded by the power equipment and is adapted to the power equipment.
That is, the user sets a generic template of the object model on the simulation test apparatus in advance, the generic template of the object model including attribute parameter names that may be possessed by all types of electric devices. After the universal template of the object model is downloaded by the power equipment, editing and modifying the universal template of the object model according to the self situation, deleting unnecessary parameters, and obtaining the parameters of the special object model matched with the power equipment. For example, the general template of the object model contains 20 parameters, and the power equipment only uses 10 parameters, the redundant 10 parameters are deleted, and the rest 10 parameters are used as parameters contained in the special object model of the power equipment.
The special object model also comprises a value range of object model reference parameters, for example, for the special object model of the A-type air conditioner, the special object model comprises two attribute parameters of the starting temperature and the shutdown temperature of the air conditioner, the A air conditioner adds the value range for the two attribute parameters according to the running condition, for example, the starting temperature corresponds to the parameter value of 0 ℃ to 40 ℃ and the shutdown temperature corresponds to the parameter value of 0 ℃ to 50 ℃.
It should be noted that, the object model reference parameter is a parameter that may be uploaded to the simulation test device in the normal operation state of the power equipment, and the value range of the object model reference parameter may be a continuous value range, a discontinuous parameter value, or other identifiers that may represent the operation state of the power equipment.
After receiving the dedicated object model uploaded by the power device and adapted to the power device, as shown in fig. 3, the following steps 303 and 304 may be further performed:
and 303, carrying out security verification and data format verification on each special object model.
Wherein the data format check is used to determine whether the data format of the personality model is the same as the predefined data format.
And step 304, if the special object model passes the security check and the data format check, storing the corresponding relation between the equipment information of the power equipment and the special object model.
The security check can detect whether the special object model carries viruses or whether the special object model is camouflaged by illegal scripts, and the security of the simulation test device can be ensured by performing the security check on the special object model.
The data format check is used to verify whether the character type, special character, etc. used by the special object model meets the format specification of the simulation test device.
Step 104, matching the object model attribute parameters with object model reference parameters contained in the special object model.
And 105, if the matching is successful, determining that the power equipment passes the simulation test, and allowing access to the Internet of things management platform.
Specifically, matching object model attribute parameters with object model reference parameters contained in a special object model, and if matching is successful, determining that the power equipment passes the simulation test, wherein the method can be specifically implemented as follows: comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter; comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model; and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
When the electric power equipment uploads the object model attribute parameters, some information which does not belong to the object model attribute parameters may be uploaded at the same time, in order to obtain accurate object model attribute parameters, object model attribute parameters contained in object model reference parameters may be screened out through comparison of parameter names, for example, the object model reference parameters of the air conditioner include air conditioner starting temperature and air conditioner shutdown temperature, the object model attribute parameters uploaded by the electric power equipment include air conditioner starting temperature, air conditioner shutdown temperature and air conditioner operation temperature, and the air conditioner operation temperature is screened out by comparison when the air conditioner operation temperature is found out to be not in the object model reference parameters, and the air conditioner starting temperature and the air conditioner shutdown temperature are taken as target parameters.
The comparison of the parameter value ranges is to determine whether the power device is uploading the correct parameters. For example, the object model of the air conditioner comprises a parameter of the starting temperature of the air conditioner, the parameter value of the parameter in the special object model of the air conditioner is 0 ℃ to 40 ℃, the parameter value of the object model attribute parameter uploaded by the power equipment is 25 ℃, the 25 ℃ is matched with the 0 ℃ to 40 ℃, and the 25 ℃ is in the range of 0 ℃ to 40 ℃, so that the attribute parameter is successfully matched, and the power equipment is provided with the correct parameter value; if the parameter value of the object model attribute parameter uploaded by the power equipment is 45 ℃, matching the 45 ℃ with 0 ℃ to 40 ℃, and if the 45 ℃ exceeds the range of 0 ℃ to 40 ℃, the attribute parameter matching fails, and the power equipment sends the wrong parameter value.
The comparison of the parameter numbers is to determine whether the parameter numbers sent by the power equipment are complete. For example, the object model reference parameters of the air conditioner include 2 parameters, namely, the start temperature and the shutdown temperature of the air conditioner, if the target parameters also include 2 parameters, the number of parameters sent by the power equipment is determined to be complete, and if the target parameters include only 1 or 0 parameters, the number of parameters sent by the power equipment is determined to be incomplete.
In the embodiment of the invention, when the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, the power equipment is determined to pass the simulation test after the two parameters are successfully matched, and the power equipment can be accessed to the internet of things management platform. If either of the two items of the power equipment fails the simulation test, the power equipment needs to be debugged again to ensure the accuracy of the parameters sent by the power equipment.
In the embodiment of the invention, after the simulation test device determines that the electric equipment passes the simulation test, the simulation test device can also send the object model reference parameters of the electric equipment passing the simulation test to the internet of things management platform, so that the internet of things management platform can directly use the object model reference parameters after the electric equipment is connected to the internet of things management platform, the electric equipment does not need to resend the special object model to the internet of things management platform, and the internet of things management platform does not need to repeat the process of checking the special object model, thereby further reducing the occupation of resources of the internet of things management platform.
In addition, if a new power device is connected to the simulation test device and the simulation test device detects that the power device with the same device type as the power device has uploaded the special model, the new connected power device can use the stored special model, so that the time for performing simulation test on the power device is saved.
In the embodiment of the invention, before the electric equipment is connected to the internet of things management platform, the electric equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the electric equipment are matched with the object model reference parameters of the electric equipment stored in advance or not is tested, after the matching is successful, the parameters and the data uploaded by the electric equipment are confirmed to be correct, and after the simulation test is passed, the electric equipment can be connected to the internet of things management platform. Therefore, before the power equipment is formally connected to the Internet of things management platform, whether the power equipment has a problem or not is determined through the parameter data uploaded by the power equipment, so that the power equipment which possibly has the problem can be found out in time, the power equipment which has no problem is connected to the Internet of things management platform, the Internet of things management platform does not need to test the power equipment, the power equipment can be put into use as soon as possible, and meanwhile, the occupation of resources of the Internet of things management platform can be reduced.
The simulation test device provided by the embodiment of the invention consists of four parts, namely a basic application, an application service module, a cloud service component and a data storage service, wherein the basic application comprises Shiro, oshi, gateWay API and Hystrix, nacos class 5 applications for providing system basic support; mysql, mongoDB, redis3 data integration storage service components provide DB services; fastDfs, mqttBroker, git3 class 3 cloud service components provide resource storage and message forwarding services; the application service module middleware provides.
Specifically, the simulation test device includes the following functional modules, and the functions provided by the following functional modules are shown in the following:
1) And the basic service module provides basic function support for the device, performs service data processing and persistence storage, wherein the common public module has a supporting function.
2) The model management module supports the management of models required in various protocols, including the checking, importing and exporting functions of object models and product models, and provides calling interfaces of other modules to the models.
3) And the command management module provides management functions for issuing commands, including functions of one-key configuration, historical command storage and the like.
4) And the southward MQTT protocol module supports southward access test of equipment, analyzes access data of the equipment conforming to southward interface protocol of an Internet of things management platform and simulates response data of the Internet of things management platform.
5) And the edge internet of things proxy MQTT protocol module is developed according to a specified interface protocol, and is used for checking a message format in the process of equipment access test and simulating response data of an internet of things management platform.
6) And the APP application store module can manage the loading, unloading, uploading and downloading of the APP. The module is decoupled from the edge computing framework, provides an independent interface, and supports protocols of multiple classes of edge computing frameworks.
7) And the container management module is used for providing functions of uploading, loading, unloading and downloading the containers.
8) And the northbound API interface module supports northbound interface test functions and simulates data response of the Internet of things management platform.
9) And expanding a protocol module, namely, expanding functions of the device to form a module abstraction, such as 698 protocol, 104 protocol and the like.
The simulation test device can be developed based on J2EE language, the rear end adopts technologies such as Springboot, springJPA, mysql and the like, the front end adopts Layu+BootStrap as data display, the interface is concise, and the user experience is good; the system data is separated and processed, so that the requirements of real-time, efficient and stable processing of big data are met.
The simulation test device adopts an mtqq protocol to transmit data. The mtqq protocol is a protocol designed for communication between remote sensors and control devices in a low bandwidth, unreliable network with limited computational power, and has the following main several characteristics:
1) Using the publish/subscribe messaging model, one-to-many messaging is provided to decouple applications.
2) Message transmission masked from the payload content.
3) Network connectivity is provided using TCP/IP.
4) There are three message distribution qualities of service, including at most once, at least once, and only once.
5) Small transmissions, with little overhead (2 bytes for fixed length header), minimize protocol exchanges to reduce network traffic.
6) And a notification mechanism for notifying both sides of the transmission when the transmission is abnormally interrupted. The Last Will and technology features are used to inform the mechanism about the client abort at each party.
For developers of other equipment manufacturers, when the developers develop programs accessing the Internet of things management platform, access test is needed to be carried out on the MQTT interface of the programs, and for the problem that the Internet of things management platform in a production environment is not well established or the intranet environment cannot be accessed due to network reasons, the developers cannot carry out interface test and can only call through the local simulation interface. This approach can lead to a large number of repeated tasks by the developer, and the standard of testing is different, with the effect that the interface test finally achieves being different. The simulation test device in the embodiment of the invention adopts the mtqq protocol, namely provides a simulated test environment, has uniform standard, and can accurately see whether the test data result is correct or not without repeated work of a developer.
The simulation test device carries out platform architecture based on Spring Boot, combines the application of Mqtt information to the column, improves the access capability and response time of the platform equipment to the greatest extent, and ensures the high efficiency, safety and easy expansion of the platform. The software system adopted by the device has the following characteristics:
(1) High reliability
The system adopts the technical means of clustering, redundancy, replication and the like, enhances the usability of the system, and simultaneously improves the usability of the system in aspects of multiple layers such as a network, a server, supporting software, an application program and the like, and prevents and avoids the barrel effect during design and implementation.
When the system architecture is designed, the service requirements and data bearing of the Internet of things management platform are required to be fully considered, the data interaction among different mechanism systems in each link is reduced as much as possible, the system coupling is reduced, and the system safety is improved.
The system can process various anomalies, and in the anomaly processing, the anomaly points can be rapidly positioned, so that the service data is not allowed to be lost. The communication middleware adopts a reliable mtqq message queue to ensure that data is not lost.
(2) Easy expansion
From the aspect of business development, the platform fully considers the expandability of the system on the basis of meeting the existing requirements. The message middleware needs to support horizontal expansion, and the expansion of future business only needs to add new application and service modules on the basis of the existing mechanism. As the number of applications increases, the system can support new pressure requirements by adding servers.
(3) Easy maintenance
A structured and modular system implementation is employed. The business logic is divided according to functions, and different business logic is realized by different modules. The modules are loosely coupled, so that modification and maintenance are convenient.
The background service and the front end are interacted through a business protocol, and the foreground and the background are loosely coupled.
The simulation test device is communicated with other systems without adopting a remote direct program calling mode, the systems are interoperated through a service calling mode, and the systems are loosely coupled.
The system is specially provided with the platform data maintenance management module, so that unified maintenance and backup management of data in the system are facilitated, and the system is simple in manual maintenance and easy to manage.
The whole architecture of the system takes the configuration file as the basis of the system, and the new service and service parameters are realized in a configurable mode.
(4) High performance
Considering the large application scale of the system and the increase of future functional business of the platform and the development of computer technology, the system fully considers the performance of the system in design so as to ensure that the system can still work normally under a large data volume and severe environment and ensure the high efficiency and smoothness of the system in a certain period at present and in the future. The software design in the embodiment of the invention is based on the MQTT message middleware and Java system infrastructure.
(5) Safety device
The communication adopts an HTTP mode, and system maintenance personnel can periodically replace a system login password, so that the running state of the service and the utilization rate of the CPU and the memory can be checked in real time in system monitoring. The data encryption processing is carried out on the sensitive information by using an SHA (256-bit) asymmetric encryption algorithm mode.
The embodiment of the invention also provides a simulation test device for the electric power Internet of things equipment, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to that of the simulation test method of the electric power Internet of things equipment, the implementation of the device can be referred to the implementation of the simulation test method of the electric power Internet of things equipment, and repeated parts are not repeated.
As shown in fig. 4, the apparatus 400 includes a receiving module 401, an extracting module 402, a searching module 403, and a parameter matching module 404.
The receiving module 401 is configured to receive object model attribute parameters uploaded by the electrical device.
An extraction module 402 is configured to extract device information of the electrical device from the object model attribute parameters.
The searching module 403 is configured to search a pre-stored dedicated object model corresponding to the power device according to the device information.
The parameter matching module 404 is configured to match the object model attribute parameter with an object model reference parameter included in the dedicated object model.
The parameter matching module 404 is further configured to determine that the power device passes the simulation test when the matching is successful, and allow access to the internet of things management platform.
In one implementation of an embodiment of the present invention, the apparatus 400 further includes:
the template providing module 405 is configured to provide, after being connected to the power device, an object model universal template corresponding to a device type for the power device, so that the power device downloads the object model universal template corresponding to a device type of the power device, edits and modifies the object model universal template into a special object model matched with the power device according to the object model universal template, where the special object model includes a reference parameter and a value range of the object model of the power device;
the receiving module 401 is further configured to receive a dedicated object model that is uploaded by the power device and adapted to the power device.
In one implementation of an embodiment of the present invention, the apparatus 400 further includes:
a verification module 406, configured to perform security verification and data format verification on each private model, where the data format verification is used to determine whether the data format of the private model is the same as the predefined data format;
the storage module 407 is configured to store a correspondence between device information of the power device and the private object model when the private object model passes the security check and the data format check.
In one implementation of the embodiment of the present invention, the parameter matching module 404 is configured to:
comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter;
comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model;
and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
In one implementation of an embodiment of the present invention, the apparatus 400 further includes:
and the sending module 408 is used for sending the object model reference parameters of the electric equipment passing the simulation test to the internet of things management platform.
In the embodiment of the invention, before the electric equipment is connected to the internet of things management platform, the electric equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the electric equipment are matched with the object model reference parameters of the electric equipment stored in advance or not is tested, after the matching is successful, the parameters and the data uploaded by the electric equipment are confirmed to be correct, and after the simulation test is passed, the electric equipment can be connected to the internet of things management platform. Therefore, before the power equipment is formally connected to the Internet of things management platform, whether the power equipment has a problem or not is determined through the parameter data uploaded by the power equipment, so that the power equipment which possibly has the problem can be found out in time, the power equipment which has no problem is connected to the Internet of things management platform, the Internet of things management platform does not need to test the power equipment, the power equipment can be put into use as soon as possible, and meanwhile, the occupation of resources of the Internet of things management platform can be reduced.
The embodiment of the invention also provides a computer device, and fig. 5 is a schematic diagram of the computer device in the embodiment of the invention, where the computer device can implement all the steps in the simulation test method of the electric power internet of things device in the embodiment, and the computer device specifically includes the following contents:
a processor (processor) 501, a memory (memory) 502, a communication interface (Communications Interface) 503, and a communication bus 504;
wherein the processor 501, the memory 502, and the communication interface 503 perform communication with each other through the communication bus 504; the communication interface 503 is used for implementing information transmission between related devices;
the processor 501 is configured to invoke a computer program in the memory 502, where the processor implements the power internet of things device simulation test method in the above embodiment when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the electric power internet of things equipment simulation test method.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. The simulation test method for the electric power Internet of things equipment is characterized by comprising the following steps of:
receiving object model attribute parameters uploaded by the power equipment;
extracting equipment information of the electric equipment from the object model attribute parameters;
searching a pre-stored special object model corresponding to the power equipment according to the equipment information;
matching object model attribute parameters with object model reference parameters contained in the special object model;
if the matching is successful, determining that the power equipment passes the simulation test, and allowing the power equipment to be accessed to the Internet of things management platform;
matching the object model attribute parameters with object model reference parameters contained in the special object model, and if the matching is successful, determining that the power equipment passes the simulation test, wherein the method comprises the following steps:
comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter;
comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model;
and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
2. The method of claim 1, wherein prior to searching for a pre-stored private model corresponding to the power device based on the device information, the method further comprises:
when the system is connected with the power equipment, providing an object model universal template corresponding to the equipment type for the power equipment, downloading the object model universal template corresponding to the equipment type by the power equipment, editing and modifying the object model universal template into a special object model matched with the power equipment according to the object model universal template, wherein the special object model comprises reference parameters and a value range of the object model of the power equipment;
and receiving a special object model which is uploaded by the power equipment and is adapted to the power equipment.
3. The method of claim 2, wherein after receiving the dedicated object model uploaded by the power device and adapted to the power device, the method further comprises:
performing security check and data format check on each special object model, wherein the data format check is used for determining whether the data format of the special object model is the same as a predefined data format;
and if the special object model passes the security check and the data format check, storing the corresponding relation between the equipment information of the power equipment and the special object model.
4. A method according to any one of claims 1 to 3, wherein after determining that the power device passes the simulation test, the method further comprises:
and sending object model reference parameters of the power equipment passing the simulation test to the Internet of things management platform.
5. An electric power internet of things device simulation test apparatus, the apparatus comprising:
the receiving module is used for receiving object model attribute parameters uploaded by the power equipment;
the extraction module is used for extracting equipment information of the power equipment from the object model attribute parameters;
the searching module is used for searching a pre-stored special object model corresponding to the power equipment according to the equipment information;
the parameter matching module is used for matching the object model attribute parameters with object model reference parameters contained in the special object model;
the parameter matching module is also used for determining that the power equipment passes the simulation test when the matching is successful, and allowing the power equipment to be accessed to the Internet of things management platform;
the parameter matching module is used for:
comparing the parameter name of the object model attribute parameter with the parameter name of the object model reference parameter, and determining the object model attribute parameter contained in the object model reference parameter as a target parameter;
comparing the number and the parameter value of the target parameters with the number and the value range of the reference parameters of the object model;
and if the number of the target parameters is equal to the number of the object model reference parameters and the parameter values are within the value range of the same object model reference parameters, determining that the power equipment passes the simulation test.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the template providing module is used for providing an object model universal template corresponding to the equipment type for the power equipment after being connected with the power equipment so as to download the object model universal template corresponding to the equipment type of the power equipment, and editing and modifying the object model universal template into a special object model matched with the power equipment according to the object model universal template, wherein the special object model comprises reference parameters and a value range of the object model of the power equipment;
and the receiving module is also used for receiving the special object model which is uploaded by the power equipment and is matched with the power equipment.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the verification module is used for carrying out safety verification and data format verification on each special object model, and the data format verification is used for determining whether the data format of the special object model is the same as the predefined data format;
and the storage module is used for storing the corresponding relation between the equipment information of the power equipment and the special object model when the special object model passes the security check and the data format check.
8. The apparatus according to any one of claims 5 to 7, further comprising:
and the sending module is used for sending the object model reference parameters of the electric equipment passing the simulation test to the internet of things management platform.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 4 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202110324790.9A 2021-03-26 2021-03-26 Simulation test method and device for electric power Internet of things equipment Active CN112988485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110324790.9A CN112988485B (en) 2021-03-26 2021-03-26 Simulation test method and device for electric power Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110324790.9A CN112988485B (en) 2021-03-26 2021-03-26 Simulation test method and device for electric power Internet of things equipment

Publications (2)

Publication Number Publication Date
CN112988485A CN112988485A (en) 2021-06-18
CN112988485B true CN112988485B (en) 2024-01-26

Family

ID=76333848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110324790.9A Active CN112988485B (en) 2021-03-26 2021-03-26 Simulation test method and device for electric power Internet of things equipment

Country Status (1)

Country Link
CN (1) CN112988485B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419920B (en) * 2021-06-28 2022-07-19 国网山东省电力公司电力科学研究院 Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN113590471A (en) * 2021-07-05 2021-11-02 陕西银河时代清洁能源有限公司 Communication terminal equipment simulation system and use method thereof
CN114282343B (en) * 2021-11-10 2023-07-21 国电南瑞科技股份有限公司 Equipment modeling method and system suitable for electric power Internet of things
CN114157524B (en) * 2021-11-29 2023-04-21 云知声(上海)智能科技有限公司 Multi-equipment one-stop implementation device and method for intelligent space
CN114936062B (en) * 2021-12-09 2024-01-30 腾讯科技(深圳)有限公司 Method, device, equipment, system and storage medium for automatic debugging of equipment
CN114513536B (en) * 2022-01-18 2023-12-08 成都网域探行科技有限公司 Internet of things safety management analysis method
CN115514656B (en) * 2022-09-30 2024-03-29 美的集团股份有限公司 Object model adaptation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014110922A1 (en) * 2013-01-18 2014-07-24 浪潮电子信息产业股份有限公司 Extended cache coherence protocol-based multi-level coherence domain simulation verification and test method
WO2018006789A1 (en) * 2016-07-04 2018-01-11 中兴通讯股份有限公司 Parameter checking method and apparatus, and network management server and computer storage medium
CN107947907A (en) * 2017-11-24 2018-04-20 北京泰德东腾通信技术有限公司 Arrowband internet-of-things terminal Non-Access Stratum safe mode conformance test method and system
CN111309543A (en) * 2020-02-11 2020-06-19 广州视源电子科技股份有限公司 Debugging method and device, electronic equipment and storage medium
CN112235326A (en) * 2020-12-15 2021-01-15 长沙树根互联技术有限公司 Internet of things equipment data analysis method and device and electronic equipment
CN112422372A (en) * 2020-12-04 2021-02-26 重庆忽米网络科技有限公司 MQTT protocol industrial equipment data simulation method based on reflection mechanism

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10395549B2 (en) * 2013-12-11 2019-08-27 Lockheed Martin Corporation Simulation platform module
US10289286B2 (en) * 2016-11-10 2019-05-14 Sap Se Thing modeler for internet of things
US11025498B2 (en) * 2017-08-23 2021-06-01 Sap Se Device model to thing model mapping
US10686882B2 (en) * 2018-05-18 2020-06-16 Sap Se Change management using a thing-model on an internet-of-things platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014110922A1 (en) * 2013-01-18 2014-07-24 浪潮电子信息产业股份有限公司 Extended cache coherence protocol-based multi-level coherence domain simulation verification and test method
WO2018006789A1 (en) * 2016-07-04 2018-01-11 中兴通讯股份有限公司 Parameter checking method and apparatus, and network management server and computer storage medium
CN107947907A (en) * 2017-11-24 2018-04-20 北京泰德东腾通信技术有限公司 Arrowband internet-of-things terminal Non-Access Stratum safe mode conformance test method and system
CN111309543A (en) * 2020-02-11 2020-06-19 广州视源电子科技股份有限公司 Debugging method and device, electronic equipment and storage medium
CN112422372A (en) * 2020-12-04 2021-02-26 重庆忽米网络科技有限公司 MQTT protocol industrial equipment data simulation method based on reflection mechanism
CN112235326A (en) * 2020-12-15 2021-01-15 长沙树根互联技术有限公司 Internet of things equipment data analysis method and device and electronic equipment

Also Published As

Publication number Publication date
CN112988485A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN109582588B (en) Test case generation method and device and electronic equipment
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN108228444B (en) Test method and device
CN112600889B (en) Internet of things simulation platform and simulation method
US11636016B2 (en) Cloud simulation and validation system
CN106339273A (en) Application program restoration method, terminal and server
CN110932918B (en) Log data acquisition method and device and storage medium
CN111651352B (en) Warehouse code merging method and device
CN112822260B (en) File transmission method and device, electronic equipment and storage medium
CN116155771A (en) Network anomaly test method, device, equipment, storage medium and program
CN115242894B (en) Data processing method, device, storage medium and computer equipment
CN107168844B (en) Performance monitoring method and device
CN111586022A (en) Firewall opening verification method, electronic device, computer equipment and storage medium
US9935867B2 (en) Diagnostic service for devices that employ a device agent
CN115129574A (en) Code testing method and device
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
CN109274533B (en) Web service fault positioning device and method based on rule engine
CN109218338B (en) Information processing system, method and device
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
CN112804291B (en) Remote equipment auditing method, device and system
CN109408104B (en) Method and device for acquiring game integration information
CN113835939A (en) Method and device for processing fault information, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant