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

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

Info

Publication number
CN112988485A
CN112988485A CN202110324790.9A CN202110324790A CN112988485A CN 112988485 A CN112988485 A CN 112988485A CN 202110324790 A CN202110324790 A CN 202110324790A CN 112988485 A CN112988485 A CN 112988485A
Authority
CN
China
Prior art keywords
object model
power equipment
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.)
Granted
Application number
CN202110324790.9A
Other languages
Chinese (zh)
Other versions
CN112988485B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Computer Security & Cryptography (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a simulation test method and a simulation test device for 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 power 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 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, and allowing the power equipment to access the Internet of things management platform. According to the invention, after the power equipment is connected to the IOT management platform, the equipment can be tested firstly, so that the equipment can be put into use as soon as possible after being connected to the IOT management platform, and meanwhile, the occupation of resources of the IOT management platform can be reduced.

Description

Simulation test method and device for power Internet of things equipment
Technical Field
The invention relates to the technical field of power internet of things, in particular to a simulation test method and device for power internet of things equipment.
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 connects any object with a network through information sensing equipment according to an agreed protocol, and the object connected into the Internet of things management platform carries out information exchange and communication through an information transmission medium, so that the functions of intelligent identification, positioning, tracking, supervision and the like are realized.
At present, before the power equipment such as edge internet of things agent equipment, an intelligent fusion terminal, edge internet of things expansion equipment and the like or end equipment is connected into an internet of things management platform, a process of testing and verifying the equipment is lacked, the equipment needs to be debugged firstly after being connected into the internet of things management platform, the equipment cannot be put into use as soon as possible, and meanwhile, more resources of the internet of things management platform are occupied.
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 connected to an Internet of things management platform, so that the equipment can be put into use as soon as possible after being connected 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 power 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 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, and allowing the power equipment to access the Internet of things management platform.
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 connected to the internet of things management platform, so that the equipment can be put into use as soon as possible after being connected to the internet of things management platform, and simultaneously, the occupation of resources of the internet of things management platform can be reduced, and the simulation test device comprises:
the receiving module is used for receiving the object model attribute parameters uploaded by the power equipment;
the extraction module is used for extracting the equipment information of the electric power equipment from the object model attribute parameters;
the searching module is used for searching a prestored 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;
and the parameter matching module is also used for determining that the power equipment passes the simulation test and allowing the power equipment to access the Internet of things management platform when the matching is successful.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the testing method of the power internet of things equipment.
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 power equipment is connected to the Internet of things management platform, the power equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the power equipment are matched with the pre-stored object model reference parameters of the power equipment is tested, and after the matching is successful, the parameters and data uploaded by the power equipment are confirmed to be correct, and the power equipment can be connected to the Internet of things management platform after the simulation test. Therefore, before the power equipment is formally connected into the IOT management platform, whether the power equipment has problems or not is determined through parameter data uploaded by the power equipment, the power equipment with possible problems can be found in time, the power equipment without problems is connected into the IOT management platform, the IOT 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 IOT management platform can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart of a simulation test method for an electric power internet of things device in an embodiment of the present invention;
fig. 2 is a flowchart of another simulation test method for the power internet of things equipment in the embodiment of the invention;
fig. 3 is a flowchart of another simulation test method for the power internet of things equipment in the embodiment of the invention;
fig. 4 is a schematic structural diagram of a simulation test device of an electric power internet of things device in the 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
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
First, technical terms related to the embodiments of the present invention will be briefly explained below.
1. Model: the method is characterized in that entities in a physical space, such as sensors, a voltmeter, a vehicle-mounted device and the like, are digitalized, are described in terms of functions of equipment in a cloud, and consist of a series of services (including attributes and commands). The model is expressed by adopting JSON format and can be inherited by a plurality of products as a template.
2. The attributes are as follows: one of the functional models of the device is generally used to describe the operating state of the device, such as the current ambient temperature read by the environment monitoring device. The attribute supports a GET request mode and a SET request mode, and an application system can initiate a read and SET request for the attribute.
3. Command: one of the functional models of the device, the command that the device executes, may contain a plurality of command fields. Such as information about the completion of a task, commands may be subscribed to and published.
4. Message queue 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 in a series, usually referred to as a group of devices having the same functionality. If the product refers to the same model, the equipment is a specific equipment under the model.
The embodiment of the invention provides a simulation test method for power internet of things equipment, which comprises the following steps of 101 to 105:
step 101, receiving object model attribute parameters uploaded by power equipment.
The object model defines the names of the attribute parameters of the power equipment, for example, the object model of the air conditioner defines the names of the attribute parameters of the air conditioner starting temperature, the air conditioner stopping temperature, the air return upper limit, the air return lower limit, the air return upper limit, the air return humidity lower limit, the data state and the like. The electric 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 power equipment transmits the object model attribute parameters in the json format to the simulation test device by using a plurality of transmission protocols, for example, the adopted transmission protocols include an mqtt protocol, a 698 protocol, a 104 protocol, an 1376.1 protocol, and the like, and for the object model attribute parameters uploaded by using different transmission protocols, field values may be extracted from the object model attribute parameters according to field names preset according to different transmission protocols, and the field names correspond to the field values, so as to obtain the object model attribute parameters that can be directly read.
In the embodiment of the invention, for the messages sent by the electric power equipment such as the attribute parameters of the object model, detailed message analysis process records can be provided, and the messages which do not conform to the access format of the simulation test device are prompted, wherein the message types analyzed by the simulation test device comprise equipment management type messages and equipment data uploading messages, such as the addition of sub-equipment by the side equipment, the update of the state of the sub-equipment by the side equipment, the deletion of the sub-equipment by the management platform of the internet of things, the command response returned to the management platform of the internet of things by the side equipment, and the like. The information sent by the power equipment is displayed through the page, the content of the information is analyzed, the management personnel are provided for analyzing and assisting the content of the information, and the correction and modification opinions are provided for the power equipment which does not accord with the access specification.
And 102, extracting equipment information of the electric power equipment from the object model attribute parameters.
Because the object models used by different power equipment are different, in order to distinguish the object model attribute parameters of the power equipment of different types, the power equipment adds equipment information in the uploaded object model attribute parameters.
And 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 property of the power equipment.
Before searching for the object model reference parameter corresponding to the power equipment according to the equipment information, referring to fig. 2, the dedicated object model of the power equipment is obtained according to the following steps 201 and 202:
step 201, after the device is connected with the power equipment, providing a general object model template corresponding to the equipment type for the power equipment, so that the power equipment downloads the general object model template corresponding to the equipment type of the power equipment, and editing and modifying the general object model template into a special object model matched with the power equipment according to the general object model template.
The special object model comprises the reference parameters and the value range of the electric power equipment object model.
Step 202, receiving a special object model which is uploaded by the electric power equipment and is adapted to the electric power equipment.
That is, the user sets in advance a generic template of the object model on the simulation test apparatus, where the generic template of the object model includes attribute parameter names that all types of electric power devices may have. After downloading the object model general template, the power equipment edits and modifies the object model general template according to the self condition, deletes the unnecessary parameters, and obtains the special object model parameters matched with the power equipment. For example, the general template of the object model includes 20 parameters, and the power device uses only 10 of the parameters, then the extra 10 parameters are deleted, and the remaining 10 parameters are used as the parameters included in the special object model of the power device.
The special object model also includes a value range of the object model reference parameter, for example, for the special object model of the type a air conditioner, the special object model includes two attribute parameters of the air conditioner starting temperature and the air conditioner stopping temperature, the air conditioner a adds the value range to the two attribute parameters according to the operation condition, for example, the starting temperature corresponds to a parameter value of 0 ℃ to 40 ℃, and the stopping temperature corresponds to a 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 by the power equipment in the normal operation state, 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 special 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 also be performed:
and step 303, performing safety 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 proxy model is the same as the predefined data format.
And step 304, if the special object model passes the safety verification and the data format verification, storing the corresponding relation between the equipment information of the electric power equipment and the special object model.
The safety check can detect whether the special object model carries viruses or whether the object model is disguised by illegal scripts, and the safety check of the special object model can guarantee the safety of the simulation test device.
And the data format check is used for verifying whether the character type, the special character and the like used by the special object model conform to the format specification of the simulation test device.
And 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 the power equipment to access the Internet of things management platform.
Specifically, the object model attribute parameters are matched with object model reference parameters included in the special object model, and if matching is successful, it is determined that the power equipment passes through the simulation test, which can be specifically implemented as: 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 that of the object model reference parameters and the parameter values are within the value range of the same object model reference parameter, determining that the power equipment passes the simulation test.
When the 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, the object model attribute parameters contained in the object model reference parameters can be screened out through comparison of parameter names, for example, the object model reference parameters of the air conditioner contain air conditioner starting temperature and air conditioner shutdown temperature, the object model attribute parameters uploaded by the power equipment contain air conditioner starting temperature, air conditioner shutdown temperature and air conditioner operating temperature, the air conditioner operating temperature is screened out through comparison to find that the air conditioner operating temperature is 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 used for determining whether the power equipment sends correct parameters. For example, the object model of the air conditioner includes a parameter of the air conditioner starting temperature, a parameter value of the parameter in the special object model of the air conditioner is 0 ℃ to 40 ℃, a parameter value of an 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 transmits a correct parameter value; if the parameter value of the object model attribute parameter uploaded by the power equipment is 45 ℃, matching is carried out between 45 ℃ and 0 ℃ to 40 ℃, and the 45 ℃ exceeds the range of 0 ℃ to 40 ℃, the attribute parameter matching fails, and the power equipment transmits an error parameter value.
And comparing the parameter quantity, namely determining whether the parameter quantity sent by the power equipment is complete or not. For example, the object model reference parameters of the air conditioner include 2 parameters of the air conditioner on-temperature and the air conditioner off-temperature, if the target parameters also include 2 parameters, it is determined that the number of the parameters sent by the electrical equipment is complete, and if the target parameters only include 1 or 0 parameter, it is determined that the number of the parameters sent by the electrical equipment is 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 in the value range of the same object model reference parameter, and the two parameters are successfully matched, the power equipment is determined to be accessed to the Internet of things management platform through simulation test. If any one 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 power equipment passes the simulation test, the simulation test device can also send the object model reference parameters of the electric power equipment passing the simulation test to the Internet of things management platform, so that after the electric power equipment is connected to the Internet of things management platform, the Internet of things management platform can directly use the object model reference parameters without resending a special object model to the Internet of things management platform by the electric power equipment, 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 electric device is connected to the simulation test device, and the simulation test device detects that the electric device of the same device type as the electric device has uploaded the special model, the newly connected electric device can use the stored special model, and the time for the electric device to perform the simulation test is saved.
In the embodiment of the invention, before the power equipment is connected to the Internet of things management platform, the power equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the power equipment are matched with the pre-stored object model reference parameters of the power equipment is tested, and after the matching is successful, the parameters and data uploaded by the power equipment are confirmed to be correct, and the power equipment can be connected to the Internet of things management platform after the simulation test. Therefore, before the power equipment is formally connected into the IOT management platform, whether the power equipment has problems or not is determined through parameter data uploaded by the power equipment, the power equipment with possible problems can be found in time, the power equipment without problems is connected into the IOT management platform, the IOT 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 IOT management platform can be reduced.
The simulation test device provided by the embodiment of the invention comprises four parts, namely a basic application, an application service module, a cloud service assembly and a data storage service, wherein the basic application comprises Shiro, Oshi, GateWay API, Hystrix and Nacos 5 application and provides system basic support; the data integration storage service components of Mysql, MongoDB and Redis3 provide DB service; the FastDfs, MqttBroker and Git3 cloud service components provide resource storage and message forwarding services; application service module middleware.
Specifically, the simulation test device comprises the following functional modules, which respectively provide the following functions:
1) and the basic business service module provides basic function support for the device, processes business data and stores the business data in a persistent mode, wherein the common public module has a support function.
2) And the model management module supports management of models required in various protocols, including viewing, importing and exporting functions of the object model and the product model, and provides calling interfaces of other modules for the models.
3) And the command management module provides management functions for issued commands, and comprises functions of one-key configuration, historical command storage and the like.
4) The southbound MQTT protocol module supports the southbound access test of equipment, analyzes access data of the equipment which accords with the southbound interface protocol of the IOT management platform, and simulates response data of the IOT management platform.
5) The edge Internet of things agent MQTT protocol module is developed according to a specified interface protocol, checks the message format in the equipment access test process, and simulates the response data of the Internet of things management platform.
6) The APP application store module can manage shelf loading, offline, uploading and downloading of the APPs. The module is decoupled from the edge computing framework, provides an independent interface and supports protocols of various types of edge computing frameworks.
7) And the container management module provides the functions of uploading, shelving, downloading and downloading the containers.
8) And the northbound API module supports the northbound interface test function and simulates the data response of the Internet of things management platform.
9) And the expansion protocol module is used for abstracting the function expansion of the device, such as a 698 protocol, a 104 protocol and the like.
The simulation testing device can be developed based on J2EE language, technologies such as Springboot, SpringJPA and Mysql are adopted at the rear end, and data display is carried out at the front end by adopting Layui + BootStrap, so that the interface is simple, and the user experience is good; the system data is separated and processed, and the requirements on real-time, efficient and stable processing of big data are met.
The simulation test device adopts mtqq protocol to transmit data. The mtqq protocol is designed for communication between remote sensors and control devices operating over low bandwidth, unreliable networks with a limited amount of computing power, and has several major characteristics:
1) one-to-many message publishing is provided using a publish/subscribe message schema, decoupling applications.
2) Message transmission that is 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 size transmission, small overhead (fixed length header is 2 bytes), and minimized protocol exchanges to reduce network traffic.
6) And a notification mechanism for notifying the two transmission parties when the abnormal interruption occurs. The Last wild and maintenance features are used to inform the mechanism about client aborts on various parties.
For developers of other equipment manufacturers, when the developers develop programs accessed to the Internet of things management platform, access testing needs to be carried out on an MQTT interface of the programs, the Internet of things management platform in a production environment is not well built, or the developers cannot carry out interface testing due to the problem that the internal network environment cannot be accessed for network reasons, and can only call through a local simulation interface. This approach can lead to a large amount of repetitive work by developers, and the test standards are different, and the final results achieved by the interface test are different. The simulation test device in the embodiment of the invention adopts the mtqq protocol, namely, the simulation test environment is provided, the standard is unified, whether the test data result is correct or not can be seen at a glance, and the repeated work of developers is not needed.
The simulation test device carries out platform architecture based on Spring Boot, combines application of Mqtt message alignment, improves access capability and response time of platform equipment to the maximum extent, and ensures 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 technical means such as clustering, redundancy and replication, the usability of the system is enhanced, and the usability of the system is jointly improved from the aspects of a plurality of layers such as a network, a server, supporting software and an application program during design and implementation, so that the barrel effect is prevented and avoided.
When a system architecture is designed, the service requirements and data load of an internet of things management platform need to be fully considered, data interaction of different mechanism systems among all links is reduced as much as possible, system coupling is reduced, and system safety is improved.
The system can process various exceptions, and in the exception processing, the exception point can be quickly positioned, and the loss of service data is not allowed. 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 also 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 services only needs to add new application and service modules on the basis of the existing mechanism. When the application amount is increased, the system can support the new pressure requirement by adding the server when the number of users is increased.
(3) Easy maintenance
And a structured and modularized system implementation mode is adopted. Business logics are divided according to functions, and different business logics are realized by different modules. Modules are loosely coupled, and modification and maintenance are facilitated.
The background service and the front end are interacted through a service protocol, and the front end and the back end are loosely coupled.
The simulation test device is communicated with other systems without adopting a remote direct program calling mode, and the systems are mutually operated in a service calling mode and are loosely coupled.
The system is provided with a platform data maintenance management module specially, so that unified maintenance and backup management of data in the system are facilitated, manual maintenance is simple, and management is easy.
The whole architecture of the system takes the configuration file as the basis of the system, and new services and service parameters are realized in a configurable mode.
(4) High performance
Considering that the system is large in application scale, the increase of future functional services of the platform and the development of computer technology are considered, the system fully considers the performance of the system during design so as to ensure that the system can still normally work under the conditions of large data volume and severe environment and ensure the high efficiency and smoothness of the system at present and in a certain period in the future. The software design in the embodiment of the invention is based on MQTT message middleware and Java system infrastructure.
(5) Security
The communication adopts an HTTP mode, system maintenance personnel regularly change a system login password, and the running state of service and the utilization rate of a CPU and a memory can be checked in real time in system monitoring. The method comprises the steps of storing sensitive information and performing data encryption processing on the sensitive information by using an SHA (256-bit) asymmetric encryption algorithm.
The embodiment of the invention also provides a simulation test device for the power internet of things equipment, and the simulation test device is described in the following embodiments. Because the principle of the device for solving the problems is similar to the simulation test method of the power internet of things equipment, the implementation of the device can refer to the implementation of the simulation test method of the 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 the object model attribute parameters uploaded by the power device.
An extracting module 402, configured to extract device information of the electrical device from the object model attribute parameters.
And a searching module 403, configured to search, according to the device information, a pre-stored special object model corresponding to the power device.
And the parameter matching module 404 is configured to match the object model attribute parameters with object model reference parameters included in the special object model.
And the parameter matching module 404 is further configured to determine that the power device passes the simulation test and allow access to the internet of things management platform when matching is successful.
In one implementation manner of the embodiment of the present invention, the apparatus 400 further includes:
the template providing module 405 is used for providing a general object model template corresponding to the equipment type for the power equipment after being connected with the power equipment, so that the power equipment can download the general object model template corresponding to the equipment type of the power equipment, and edit and modify the general object model template into a special object model matched with the power equipment according to the general object model template, wherein the special object model comprises a reference parameter and a value range of the power equipment object model;
the receiving module 401 is further configured to receive a special object model that is uploaded by the power device and is adapted to the power device.
In one implementation manner of the embodiment of the present invention, the apparatus 400 further includes:
a checking module 406, configured to perform security checking and data format checking on each special object model, where the data format checking is used to determine whether a data format of the special object model is the same as a predefined data format;
the storage module 407 is configured to store a corresponding relationship between the device information of the electrical device and the dedicated object model when the dedicated object model passes the security verification and the data format verification.
In an implementation manner 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 that of the object model reference parameters and the parameter values are within the value range of the same object model reference parameter, determining that the power equipment passes the simulation test.
In one implementation manner of the embodiment of the present invention, the apparatus 400 further includes:
and a sending module 408, configured to send the object model reference parameters of the power device that passes the simulation test to the internet of things management platform.
In the embodiment of the invention, before the power equipment is connected to the Internet of things management platform, the power equipment is subjected to simulation test, whether the object model attribute parameters uploaded by the power equipment are matched with the pre-stored object model reference parameters of the power equipment is tested, and after the matching is successful, the parameters and data uploaded by the power equipment are confirmed to be correct, and the power equipment can be connected to the Internet of things management platform after the simulation test. Therefore, before the power equipment is formally connected into the IOT management platform, whether the power equipment has problems or not is determined through parameter data uploaded by the power equipment, the power equipment with possible problems can be found in time, the power equipment without problems is connected into the IOT management platform, the IOT 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 IOT management platform can be reduced.
An embodiment of the present invention further provides a computer device, and fig. 5 is a schematic diagram of a computer device in an embodiment of the present invention, where the computer device is capable of implementing all steps in the simulation test method for the 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;
the processor 501, the memory 502 and the communication interface 503 complete mutual communication through the communication bus 504; the communication interface 503 is used for implementing information transmission between related devices;
the processor 501 is configured to call a computer program in the memory 502, and when the processor executes the computer program, the simulation test method for the power internet of things device in the above embodiments is implemented.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the simulation test method of the power internet of things equipment.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A simulation test method for power Internet of things equipment is characterized by comprising the following steps:
receiving object model attribute parameters uploaded by the power equipment;
extracting equipment information of the power 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 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, and allowing the power equipment to access the Internet of things management platform.
2. The method of claim 1, wherein prior to searching for a pre-stored specific object model corresponding to the power device from the device information, the method further comprises:
after the system is connected with the power equipment, providing a general object model template corresponding to the equipment type for the power equipment, downloading the general object model template corresponding to the equipment type by the power equipment, editing and modifying the general object model template into a special object model matched with the special object model according to the general object model template, wherein the special object model comprises a reference parameter and a value range of the object model of the power equipment;
and receiving a special object model which is uploaded by the electric power equipment and is adapted to the electric power equipment.
3. The method of claim 2, wherein after receiving the special object model uploaded by the power device and adapted to the power device, the method further comprises:
performing safety verification and data format verification on each special object model, wherein the data format verification 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 safety verification and the data format verification, storing the corresponding relation between the equipment information of the electric power equipment and the special object model.
4. The method of claim 1, wherein matching the object model attribute parameters with object model reference parameters contained in the dedicated object model, and if the matching is successful, determining that the electrical equipment passes the simulation test comprises:
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 that of the object model reference parameters and the parameter values are within the value range of the same object model reference parameter, determining that the power equipment passes the simulation test.
5. The method of any of claims 1 to 4, wherein after determining that the electrical device passes the simulation test, the method further comprises:
and sending the object model reference parameters of the power equipment passing the simulation test to the Internet of things management platform.
6. The utility model provides an electric power thing networking equipment simulation test device which characterized in that, the device includes:
the receiving module is used for receiving the object model attribute parameters uploaded by the power equipment;
the extraction module is used for extracting the equipment information of the electric power equipment from the object model attribute parameters;
the searching module is used for searching a prestored 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;
and the parameter matching module is also used for determining that the power equipment passes the simulation test and allowing the power equipment to access the Internet of things management platform when the matching is successful.
7. The apparatus of claim 6, further comprising:
the template providing module is used for providing a general object model template corresponding to the equipment type for the power equipment after the power equipment is connected with the power equipment, so that the power equipment can download the general object model template corresponding to the equipment type of the power equipment, and edit and modify the general object model template into a special object model matched with the power equipment according to the general object model template, wherein the special object model comprises a reference parameter and a value range of the object model of the power equipment;
the receiving module is further used for receiving the special object model which is uploaded by the power equipment and is matched with the power equipment.
8. The apparatus of claim 7, further comprising:
the verification module is used for performing 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 a predefined data format;
and the storage module is used for storing the corresponding relation between the equipment information of the electric power equipment and the special object model when the special object model passes the safety verification and the data format verification.
9. The apparatus of claim 6, wherein the parameter matching module 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 that of the object model reference parameters and the parameter values are within the value range of the same object model reference parameter, determining that the power equipment passes the simulation test.
10. The apparatus of any one of claims 6 to 9, further comprising:
and the sending module is used for sending the object model reference parameters of the power equipment passing the simulation test to the Internet of things management platform.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the computer program.
12. 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 5.
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 true CN112988485A (en) 2021-06-18
CN112988485B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419920A (en) * 2021-06-28 2021-09-21 国网山东省电力公司电力科学研究院 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
CN114157524A (en) * 2021-11-29 2022-03-08 云知声(上海)智能科技有限公司 Multi-equipment one-stop implementation device and method for intelligent space
CN114282343A (en) * 2021-11-10 2022-04-05 国电南瑞科技股份有限公司 Equipment modeling method and system suitable for power Internet of things
CN114513536A (en) * 2022-01-18 2022-05-17 成都网域探行科技有限公司 Internet of things safety management analysis method
CN114936062A (en) * 2021-12-09 2022-08-23 腾讯科技(深圳)有限公司 Method, device, equipment, system and storage medium for automatically debugging equipment
CN115514656A (en) * 2022-09-30 2022-12-23 美的集团股份有限公司 Object model adaptation method and device

Citations (10)

* 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
US20150161904A1 (en) * 2013-12-11 2015-06-11 Lockheed Martin Corporation Simulation platform module
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
US20180131576A1 (en) * 2016-11-10 2018-05-10 Sap Se Thing modeler for internet of things
US20190068454A1 (en) * 2017-08-23 2019-02-28 Sap Se Device model to thing model mapping
US20190356737A1 (en) * 2018-05-18 2019-11-21 Sap Se Change management using a thing-model on an internet-of-things platform
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

Patent Citations (10)

* 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
US20150161904A1 (en) * 2013-12-11 2015-06-11 Lockheed Martin Corporation Simulation platform module
WO2018006789A1 (en) * 2016-07-04 2018-01-11 中兴通讯股份有限公司 Parameter checking method and apparatus, and network management server and computer storage medium
US20180131576A1 (en) * 2016-11-10 2018-05-10 Sap Se Thing modeler for internet of things
US20190068454A1 (en) * 2017-08-23 2019-02-28 Sap Se Device model to thing model mapping
CN107947907A (en) * 2017-11-24 2018-04-20 北京泰德东腾通信技术有限公司 Arrowband internet-of-things terminal Non-Access Stratum safe mode conformance test method and system
US20190356737A1 (en) * 2018-05-18 2019-11-21 Sap Se Change management using a thing-model on an internet-of-things platform
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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419920A (en) * 2021-06-28 2021-09-21 国网山东省电力公司电力科学研究院 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
CN113590471B (en) * 2021-07-05 2024-05-24 陕西银河时代清洁能源有限公司 Communication terminal equipment simulation system and application method thereof
CN114282343A (en) * 2021-11-10 2022-04-05 国电南瑞科技股份有限公司 Equipment modeling method and system suitable for power Internet of things
CN114282343B (en) * 2021-11-10 2023-07-21 国电南瑞科技股份有限公司 Equipment modeling method and system suitable for electric power Internet of things
CN114157524A (en) * 2021-11-29 2022-03-08 云知声(上海)智能科技有限公司 Multi-equipment one-stop implementation device and method for intelligent space
CN114157524B (en) * 2021-11-29 2023-04-21 云知声(上海)智能科技有限公司 Multi-equipment one-stop implementation device and method for intelligent space
CN114936062A (en) * 2021-12-09 2022-08-23 腾讯科技(深圳)有限公司 Method, device, equipment, system and storage medium for automatically debugging equipment
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
CN114513536A (en) * 2022-01-18 2022-05-17 成都网域探行科技有限公司 Internet of things safety management analysis method
CN115514656A (en) * 2022-09-30 2022-12-23 美的集团股份有限公司 Object model adaptation method and device
CN115514656B (en) * 2022-09-30 2024-03-29 美的集团股份有限公司 Object model adaptation method and device

Also Published As

Publication number Publication date
CN112988485B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN108566290B (en) Service configuration management method, system, storage medium and server
CN110598280B (en) Equipment simulation system and method and computer readable storage medium
CN113630372A (en) Cloud edge coordination system for edge computing
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
US8819488B1 (en) Architecture for end-to-end testing of long-running, multi-stage asynchronous data processing services
CN112600889B (en) Internet of things simulation platform and simulation method
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN107168844B (en) Performance monitoring method and device
CN116155771A (en) Network anomaly test method, device, equipment, storage medium and program
CN110932918A (en) Log data acquisition method and device and storage medium
CN111651352B (en) Warehouse code merging method and device
CN104899134A (en) Automatic domain name registration server testing system and method
CN115242894A (en) Data processing method, data processing device, storage medium and computer equipment
CN114172978A (en) Multi-protocol equipment access method and related device
CN116974948B (en) Service system testing method, system, equipment and medium
CN109218338B (en) Information processing system, method and device
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN115705190A (en) Method and device for determining dependence degree
CN113791792A (en) Application calling information acquisition method and device and storage medium
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
CN115811778A (en) Service processing method, device, storage medium and equipment
CN114385503A (en) Interface test method, device, equipment and storage medium
CN113778709A (en) Interface calling method, device, server and storage medium
CN112527453A (en) Virtualization information simulation system, method and computer-readable storage medium

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