CN113206763B - Simulation test system and method suitable for Internet of things management platform - Google Patents

Simulation test system and method suitable for Internet of things management platform Download PDF

Info

Publication number
CN113206763B
CN113206763B CN202110576357.4A CN202110576357A CN113206763B CN 113206763 B CN113206763 B CN 113206763B CN 202110576357 A CN202110576357 A CN 202110576357A CN 113206763 B CN113206763 B CN 113206763B
Authority
CN
China
Prior art keywords
internet
management platform
product model
data
management module
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
CN202110576357.4A
Other languages
Chinese (zh)
Other versions
CN113206763A (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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Shandong Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Shandong 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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Shandong Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202110576357.4A priority Critical patent/CN113206763B/en
Publication of CN113206763A publication Critical patent/CN113206763A/en
Application granted granted Critical
Publication of CN113206763B publication Critical patent/CN113206763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention belongs to the technical field of information networks, and discloses a simulation test system suitable for an internet of things management platform, which comprises: the system comprises a product model management module, an edge device management module, a command management module, a message management module and a log management module; the product model management module is used for analyzing and analyzing a product model file provided by a manufacturer; the side equipment management module is used for testing whether the intelligent fusion terminal supports the MQTT protocol or not and has the function of connecting with the Internet of things management platform or not; the equipment management module is used for simulating the operation of the management of the sub-equipment on the Internet of things management platform; the command management module is used for simulating command issuing of the equipment of the Internet of things management platform. The simulation test system provided by the invention simulates a test environment, realizes the full-flow joint debugging test of the terminal accessing the Internet of things management platform, and can directly access the Internet of things management platform after the test is passed, thereby improving the access debugging efficiency of the Internet of things management platform.

Description

Simulation test system and method suitable for Internet of things management platform
Technical Field
The invention relates to the technical field of information networks, in particular to a simulation test system suitable for an internet of things management platform and a simulation test method suitable for the internet of things management platform.
Background
Currently, innovative development of the internet of things and new industrial revolution are in a historical intersection phase, international competition of various countries for participating in development of the internet of things is intensified day by day, the global industry of the internet of things is in a high-speed development stage, and related new technologies and new applications are also in a large range.
The problems of weak core basic capability, high external dependence of high-end products, insufficient original innovation capability and the like of the Internet of things industry in China exist for a long time. In addition, as the industry and the application of the internet of things are developed rapidly, some new problems are highlighted increasingly. The method has the advantages that firstly, the industrial integration and leading capability is insufficient, the tap enterprises which integrate upstream and downstream resources of an industrial chain and lead the coordinated development of the industry are lacked in China, and the industrial chain has weak cooperativity; and secondly, the safety problem of the Internet of things is increasingly prominent. Hundreds of millions of devices are accessed to the internet of things, so that security attacks on user privacy, basic network environments and the like are increased continuously, risk assessment, security evaluation and the like of the internet of things are immature, and the device becomes an important restriction factor for popularization and application of the internet of things. Thirdly, the standard system is still imperfect. Some important standards are slow in development progress, difficult to make and advance across industrial application standards, and still difficult to meet the urgent needs of the industry and the requirements of large-scale application.
In the process of advancing the construction of the intelligent Internet of things system by the national power grid company, the common problem of the development of the Internet of things technology is faced: the integration problem of the whole industrial chain for the application of the Internet of things is solved; the electric power Internet of things is safe; a heterogeneous access problem; risk assessment and safety assessment are immature; standard specifications and framework systems are imperfect; lack of industry profile data accumulation, etc.
The main problems faced by implementation and development of new energy internet services include basic data loss, platform loss, high operation and maintenance cost, different terminal devices, non-uniform protocols, loss of safety evaluation means, difficult equipment management, system closure, complex access scene, difficult field deployment and the like, and a set of popularization and verifiable intelligent physical association simulation verification test system facing an active power distribution and utilization system is lacked.
Disclosure of Invention
In order to overcome the defects in the prior art, the embodiment of the invention provides a simulation test system and a simulation test method suitable for an internet of things management platform. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the embodiment of the invention, a simulation test system suitable for an internet of things management platform is provided.
In some optional embodiments, the simulation test system adapted to the internet of things management platform includes:
the system comprises a product model management module, an edge device management module, a command management module, a message management module and a log management module;
the product model management module is used for analyzing and analyzing a product model file provided by a manufacturer and testing whether the format of the product model file meets the format requirement of the Internet of things management platform;
the side equipment management module is used for testing whether the intelligent fusion terminal supports the MQTT protocol or not and has the function of connecting with the Internet of things management platform or not;
the equipment management module is used for simulating the operation of the management of the sub-equipment on the Internet of things management platform, and testing the registration function and the data reporting function of the intelligent fusion terminal sub-equipment;
the command management module is used for simulating the command issuing of the equipment of the Internet of things management platform and realizing the function test that the fusion terminal receives the issued command;
the message management module is used for recording messages or data processing results received or transmitted by the simulation test system and assisting a debugging user in checking failure reasons, debugging and modifying;
the log management module is used for recording log information of the simulation test system and displaying the log information in the debugging process in real time.
Optionally, the product model management module includes a product model importing unit, a product model service viewing unit, and a product model exporting unit;
the product model importing unit is used for testing whether the format of the product model file meets the requirements of the Internet of things management platform, if the importing is successful, the product model file is identified to be capable of being imported into the Internet of things management platform normally, otherwise, the format of the product model file needs to be changed;
the product model service checking unit is used for analyzing the product model file, checking whether the content of the product model file is wrongly compiled or not, if the analysis is successful, indicating that the content of the product model file is not wrongly compiled, and if not, checking the content of the product model file;
the product model export unit is used for exporting the product model files in the simulation test system, and the product model files passing the test can be directly imported into the Internet of things management platform after being exported.
Optionally, the edge device management module includes an add client unit and a disconnect unit;
the adding client unit creates a gateway identifier, a user name and a password which are connected with the intelligent fusion terminal through a creating side device client; the side equipment management module provides a connection IP and a port number; the intelligent fusion terminal configures relevant connection information and accesses a network; checking whether the side equipment client is normally online or not in the side equipment list information of the side equipment management module, and verifying whether the intelligent fusion terminal can be connected with the Internet of things management platform or not; by disconnecting the connection unit, the simulation test system actively disconnects the connection of the intelligent fusion terminal, and checks whether the intelligent fusion terminal can be actively connected to the online after refreshing, so that the disconnection reconnection function of the intelligent fusion terminal is tested.
Optionally, the device management module includes a device information list module, a device reported data viewing module, and a device reported data analyzing module;
the equipment information list module is used for testing whether the intelligent fusion terminal can normally register the sub-equipment information and can normally report the data value acquired by the sub-equipment;
the device reported data checking module is used for checking the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the frequency setting of the reported data information is proper or not, and checking whether the reported data information is correct or not;
the device reported data analysis module is used for analyzing the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the reported data information meets the format requirement or not, and testing whether the product model is reasonable in design or not.
Optionally, the command management module includes a configuration subject unit, a issuing unit, and a sending unit after Json verification;
the configuration subject unit is used for simulating the command editing function of the Internet of things management platform and editing and issuing specific command contents;
the issuing unit is used for simulating a command issuing function of the Internet of things management platform, issuing the edited command information to a specified intelligent fusion terminal, and testing a command receiving function of the intelligent fusion terminal;
and the Json post-verification sending unit is used for verifying whether the command information edited by the test has errors in format or not and assisting the business user of the Internet of things management platform to debug the command information.
Optionally, the log management module includes a real-time log unit and a log recording unit;
the log recording unit records log information of the simulation test system;
and the real-time log unit displays the log information in the debugging process of the simulation test system on an interface in real time and observes background information in real time.
Optionally, the simulation test system adapted to the internet of things management platform has a system architecture including: the system comprises a basic application component, an application service component, a cloud service component and a data storage service component;
the basic application components comprise five types of applications of Shiro, Oshi, GateWayAPI, Hystrix and Nacos, and provide system basic support;
the database storage service component comprises three data integration storage service components of Mysql, MongoDB and Redis, and provides database storage service;
the cloud service components comprise three types of cloud service components, namely FastDfs, MqttBroker and Git, and provide resource storage and message forwarding services;
the application service components are provided by application service middleware.
Optionally, the basic application component, the application service component, the cloud service component, and the data storage service component adopt a distributed or micro-service architecture design, a system function is divided into a plurality of independently deployed modules, each module is deployed in a corresponding node, and communication and dependency among the modules are completed through API service, message queues, configuration synchronization, and database clusters.
Optionally, the application service component includes:
the southbound MQTT protocol module is used for supporting the southbound access test of the equipment, analyzing the access data of the equipment conforming to the protocol and simulating the response data of the Internet of things management platform;
the north API module is used for supporting the north interface test of the equipment and simulating the data response of the Internet of things management platform;
the edge computing framework MQTT protocol module is developed according to an interface protocol, inspects a message format in the process of accessing and testing the equipment, simulates response data of an internet of things management platform, and provides functions of equipment, data, a container and application management;
and the expansion protocol module is used for performing module abstraction on the function expansion of the system.
Optionally, the database storage service component uses mysql as a basic data storage component, Mongodb stores system service data, and Redis as a data caching layer.
Optionally, the database storage service component adopts a master-slave storage architecture to separate read operations and write operations to different databases.
According to a second aspect of the embodiment of the invention, a simulation test method suitable for an internet of things management platform is provided, and a simulation test is performed based on the system.
In some alternative embodiments, the method comprises the steps of:
the method comprises the following steps: compiling a product model file according to a provided product model file template, importing the product model file through a product model management module, and testing whether the format and the like of the compiled product model file meet the requirements of an internet of things management platform;
step two: the method comprises the steps that side equipment information is created through a side equipment management module, the IP and port number of the side equipment information and a service address are provided for an intelligent fusion terminal, the intelligent fusion terminal configures connection information, a connection network is started, and then whether the intelligent fusion terminal supports an MQTT protocol or not is verified, whether the intelligent fusion terminal can be automatically on-line or not is verified, and whether the intelligent fusion terminal is accessed to a thing-connected management platform according to the technical standard specification of the thing-connected management platform or not is verified;
step three: testing the functions of registering the sub-equipment and reporting the data message of the intelligent fusion terminal through the equipment management module;
step four: testing whether the intelligent fusion terminal receives a command and a response command according to the standard technical specification of the Internet of things management platform through a command management module;
step five: checking whether the data information reported by the intelligent fusion terminal to be tested is correct or not through a message management module, and checking whether the frequency of reporting the data information meets the requirement or not;
step six: checking interactive information and interactive data between the simulation test system and the intelligent fusion terminal through a log management module, and checking whether a mode of connecting an internet of things management platform meets the technical specification requirement of the national power grid company intelligent internet of things system standard;
step seven: and exporting the product model at the product model management module through the tested intelligent fusion terminal.
Optionally, in the second step, when the access function of the intelligent integrated terminal is debugged, a real-time log interface is opened, background log information is checked in real time, and problem location is performed.
Optionally, in the third step, the intelligent convergence terminal accesses the simulation test system, adds the sub-device information through the MQTT protocol, and checks whether the device management area of the simulation test system has newly added sub-device information;
the intelligent fusion terminal reports data information through an MQTT protocol and checks the reported data of the sub-equipment information;
and when the sub-equipment registration function and the data reporting function of the terminal are debugged, opening a real-time log interface, checking background log information in real time, positioning problems and checking whether the reported data is complete.
Optionally, in the fourth step, by configuring the subject unit, sequentially selecting the issued commands Topic, then editing the issued command message body, selecting the issued unit or verifying the post-Json sending unit, and checking whether the intelligent fusion terminal correctly receives the issued commands; and when the debugging intelligent integration terminal receives the function of issuing the command, opening a real-time log interface, checking background log information in real time and positioning the problem.
According to a third aspect of the invention, a computer device is provided.
In some embodiments, the computer device comprises a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the above method when executing the computer program.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the simulation test system simulates a test environment, so that the full-process joint debugging test of the terminal accessing the Internet of things management platform is realized, the terminal can be directly accessed to the Internet of things management platform after the test is passed, and the access debugging efficiency of the Internet of things management platform is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a functional block diagram illustrating a simulation test system adapted to an IOT management platform in accordance with an exemplary embodiment;
FIG. 2 is an architectural block diagram illustrating a simulation test system adapted to an IOT management platform in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram of a computer device shown in accordance with an example embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments herein to enable those skilled in the art to practice them. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the embodiments herein includes the full breadth of the claims, as well as all available equivalents of the claims. The terms "first," "second," and the like, herein are used solely to distinguish one element from another without requiring or implying any actual such relationship or order between such elements. In fact, a first element could be termed a second element, and vice versa. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a structure, apparatus, or device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such structure, apparatus, or device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in structures, devices or equipment comprising the element. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like herein, as used herein, are defined as orientations or positional relationships based on the orientation or positional relationship shown in the drawings, and are used for convenience in describing and simplifying the description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention. In the description herein, unless otherwise specified and limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may include, for example, mechanical or electrical connections, communications between two elements, direct connections, and indirect connections via intermediary media, where the specific meaning of the terms is understood by those skilled in the art as appropriate.
Herein, the term "plurality" means two or more, unless otherwise specified.
Herein, the character "/" indicates that the preceding and following objects are in an "or" relationship. For example, A/B represents: a or B.
Herein, the term "and/or" is an associative relation describing an object, and means that there may be three relations. For example, a and/or B, represents: a or B, or A and B.
Fig. 1 shows an alternative embodiment of the simulation test system adapted to the internet of things management platform of the present invention.
In this optional embodiment, the simulation test system includes: the system comprises a product model management module, a side equipment management module, an equipment management module, a command management module, a message management module and a log management module, wherein all the functional modules are matched with one another, the labor division is clear, the functions are complementary, and the access detection and verification of the equipment are completed together.
The product model management module is used for testing whether a product model provided by a verification manufacturer meets the requirements of a national power grid company Internet of things management platform or not, and mainly comprises a product model importing unit, a product model service checking unit and a product model exporting unit. Product model files provided by manufacturers are imported into the simulation test system, the product model management module analyzes and resolves the product model files, tests verify whether the product model file formats of the manufacturers are correct, and after the product model files passing the tests are directly exported, the product model files are imported into the Internet of things management platform to be directly used without repeated deletion and modification. By building the product model management module and aiming at a product model provided by a manufacturer, whether the product model file meets the format requirement of the Internet of things management platform or not is verified in advance, the success rate of importing the product model file into the Internet of things management platform is improved, the working efficiency is improved, and the pressure of the Internet of things management platform is reduced.
And the product model importing unit is used for verifying whether the format of the product model file meets the requirement of the Internet of things management platform, if the importing is successful, the product model file is identified to be capable of being imported into the Internet of things management platform normally, and otherwise, the format of the product model file needs to be changed.
The product model service checking unit is used for analyzing the product model file, checking whether the content of the product model file is wrongly compiled, if the analysis is successful, indicating that the content of the product model file is not wrongly compiled, and if not, checking the content of the product model file.
The product model export unit is used for exporting the product model files in the simulation test system, and the product model files passing the test verification can be directly imported into the Internet of things management platform after being exported without modification and adjustment.
The side equipment management module is used for testing and verifying whether the intelligent fusion terminal supports the MQTT protocol or not and whether the intelligent fusion terminal has the function of connecting with the IOT management platform or not. The side equipment management module comprises an adding client unit and a disconnecting unit, wherein the adding client unit creates a gateway identifier, a user name and a password which can be connected with the intelligent fusion terminal by creating a side equipment client; the edge device management module provides connection IP and port numbers. And the intelligent fusion terminal configures the relevant connection information and accesses the network. Checking whether the side equipment client is normally online or not in the side equipment list information of the side equipment management module, so as to verify whether the intelligent fusion terminal can be connected with the Internet of things management platform or not; through the disconnection function, the simulation test system actively disconnects the connection of the intelligent fusion terminal, and checks whether the intelligent fusion terminal can be actively connected to the line after refreshing, so that the disconnection reconnection function of the intelligent fusion terminal is tested and verified. Through the construction of the side equipment management module, the simulation operation of the intelligent fusion terminal accessing the Internet of things management platform is realized, the intelligent fusion terminal accessing debugging work is decoupled from the Internet of things management platform, and the terminal accessing time is shortened.
The equipment management module is used for simulating the operation of the management of the sub-equipment on the Internet of things management platform, and the detection and verification of the registration function and the data reporting function of the intelligent integrated terminal sub-equipment are realized. The device management module comprises a device information list module, a device reported data checking module and a device reported data analysis module. The equipment information list module is used for testing whether the intelligent fusion terminal can normally register the sub-equipment information or not and can normally report the data value acquired by the sub-equipment or not; the device reported data checking module is used for checking the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the frequency setting of the reported data information is proper or not, and checking whether the reported data information is correct or not; the device reported data analysis module is used for analyzing the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the reported data information meets the format requirement, and testing whether the product model is reasonable in design. Through the construction of the equipment management module, the simulation operation of the management of the sub-equipment on the IOT management platform is realized, the detection and verification of the registration function and the data reporting function of the intelligent integrated terminal sub-equipment are realized, the problems are found as soon as possible, and the time period for accessing the IOT management platform is shortened.
The command management module is used for simulating the command issuing of the equipment of the Internet of things management platform and realizing the function test verification that the fusion terminal receives the issued command. The command management module comprises a configuration subject unit, a issuing unit and a sending unit after Json verification. The configuration subject unit is used for simulating the command editing function of the Internet of things management platform and editing and issuing specific command contents; the issuing unit is used for simulating a command issuing function of the Internet of things management platform, issuing the edited command information to a specified intelligent fusion terminal, and testing a command receiving function of the intelligent fusion terminal; and the Json post-verification sending unit is used for verifying whether the command information edited by the test has errors in format or not and assisting the business user of the Internet of things management platform to debug the command information. Through the construction of the command management module, command issuing of the equipment of the Internet of things management platform is simulated, and functional test verification that the fusion terminal receives the issued command is realized.
The message management module is used for recording messages or data processing results received or transmitted by the simulation test system and assisting a debugging user in checking failure reasons, debugging and modifying in detail. The message management function module comprises a message detail list unit and a publishing content viewing unit. By building the message management module, the data reporting frequency and the integrity and accuracy of the reported data of the fusion terminal can be tested and verified conveniently, and the basic functions of the fusion terminal can be tested comprehensively.
The log management module is used for recording the log information of the simulation test system in detail, displaying the log information in the debugging process in real time, facilitating the quick positioning of a user and solving the problem. Through the construction log management module, the background interactive log of the system is printed in real time and completely recorded, so that problems can be found in time conveniently in the joint debugging process, the problems can be located conveniently, the background server log does not need to be searched to locate the problems, and the debugging working efficiency is improved.
The log management module comprises a real-time log unit and a log recording unit, the log recording unit records log information of the simulation test system in detail, the real-time log unit displays the log information in the debugging process of the simulation test system on an interface in real time, background information can be observed in real time, a user can conveniently locate problems, the user can conveniently find hidden problems, and the debugging period is shortened.
The simulation test system simulates a test environment, so that the full-process joint debugging test of the terminal accessing the Internet of things management platform is realized, the terminal can be directly accessed to the Internet of things management platform after the test is passed, and the access debugging efficiency of the Internet of things management platform is improved.
Optionally, the simulation test system further includes a northbound interface module, which supports the northbound interface test function and simulates a data response of the internet of things management platform. Optionally, the northbound interface module includes a northbound API interface.
Optionally, the simulation test system further includes a protocol analysis module, configured to support a southbound access test of the device, perform access data analysis on the device conforming to the protocol, and simulate response data of the internet of things management platform. Optionally, the protocol is "south interface protocol of hua is internet of things management platform".
Fig. 2 shows an embodiment of the system architecture of the simulation test system adapted to the internet of things management platform.
In this embodiment, the system architecture of the simulation test system adapted to the internet of things management platform includes: the system comprises a basic application component, an application service component, a cloud service component and a data storage service component; the basic application components comprise Shiro, Oshi, GateWay API, Hystrix and Nacos 5 applications and provide system basic support; the database storage service component comprises three data integration storage service components of Mysql, MongoDB and Redis, and provides database storage service; the cloud service components comprise three cloud service components of FastDfs, MqttBroker and Git and provide resource storage and message forwarding services; the application service component is provided by application service middleware and comprises: the device comprises a protocol analysis module, a northbound interface module, an edge computing framework MQTT protocol module and an expansion protocol module.
In the basic application component, the Shiro security framework is used for providing functions of authentication, authorization, encryption, session management and the like, and ensuring the safe operation of the system; the Oshi system monitoring component is used for acquiring real-time system information, intelligently warning and reminding, and monitoring the dimensions of a CPU (central processing unit), a memory, a disk, a network, a thread, a JVM (java virtual machine) memory, a JVM GC and the like of a host; the GateWay API GateWay is used for providing a unique external authorized access entrance, and the GateWay API is responsible for request forwarding, synthesis and protocol conversion. All requests from the client pass through the gateway API, and then the requests are routed to the corresponding microservices; hystrix isolation provides an isolated thread environment for each dependent component, current limiting, fusing and degrading processing of component threads can be realized, and accidental attacks can be prevented; and the Nacos registration center configuration center is used for realizing service configuration integrated management and dynamically refreshing configuration information.
In the data storage service component, mysql is used as a basic data storage component; the Mongobb stores the system service data, increases the data storage expansibility, and provides convenient data migration functions, such as Topic debugging records, operation records and other data; redis is used as a data cache layer of the system, the IO access times of the DB persistent layer are reduced, and the response time of the system is optimized.
In the cloud service component, the FastDfs distributed file system is used for managing files, and the functions of the FastDfs distributed file system comprise: the fast Dfs distributed file system is mainly used for storing files such as container mirror images, app program packages and object models; the MqttBroker server bears the mqtt protocol processing, the platform communicates with the southbound equipment, and the platform is supported to subscribe southbound information; git is a version control component of the system, and has finer code control workflow, thereby ensuring the stability and consistency of system versions.
The application service component further comprises: the basic business service module provides basic function support for the system, processes business data and stores the business data in a lasting way; the protocol analysis module is used for supporting southbound access test of equipment, analyzing access data of the equipment conforming to the protocol, and simulating response data of the IOT management platform, for example, the protocol is south interface protocol of the IOT management platform in Hua; the northbound interface module supports a northbound interface test function and simulates data response of the internet of things management platform, and optionally, the northbound interface module comprises a northbound API (application programming interface); the edge computing framework MQTT protocol module is developed according to an interface protocol, inspects a message format in the process of accessing and testing equipment, simulates response data of an internet of things management platform, and provides equipment, data, a container and an application management function, for example, the interface protocol is 'national grid Limited company edge internet of things agent and internet of things management platform interaction protocol specification'; the APP application store module can manage shelf loading, offline, uploading and downloading of the APPs. The module is decoupled with the edge computing framework, provides an independent interface and supports protocols of various types of edge computing frameworks; the container management module is used for providing uploading, shelving, offline and downloading functions of the containers; the extension protocol module is used for abstracting the function extension of the system, such as 698 protocol, 104 protocol and the like.
Optionally, in the system architecture, each component is designed by adopting a distributed micro-service architecture, the system function is divided into a plurality of modules which can be independently deployed, the modules are deployed into corresponding nodes, and the communication and dependence among the modules are realized through API service, message queues, configuration synchronization and database clusters to complete external services.
Optionally, the database storage service component adopts a one-master two-slave storage architecture, and separates read operation and write operation to different databases, so as to avoid performance bottleneck of a master server; when the main server performs write operation, the query performance of the query application server is not influenced, the blockage is reduced, and the concurrency is improved. Optionally, the basic data has multiple disaster recovery copies, so that data security is improved, and meanwhile, when the main server fails, the system can be switched to other servers immediately, so that system availability is improved.
Optionally, the Redis component in the database storage service is deployed as a high-availability database, so that read-write separation is realized, write operation is performed on the master data node, and the slave database shares read operation, thereby improving the throughput of read operation and the efficiency of write operation. In addition, the high-availability database can effectively avoid the influence on the service brought by system upgrading or changing. In addition, the high-availability database comprises a plurality of slave databases, and disaster recovery backup requirements of data can be effectively met under the condition of ensuring the performance of the master node.
Based on the simulation test system, the invention provides a simulation test method, which comprises the following steps:
the method comprises the following steps: compiling a product model file according to the provided product model file template, importing the product model file through a product model management module, and testing and verifying whether the format and the like of the compiled product model file meet the requirements of an internet of things management platform.
Step two: the method comprises the steps that side equipment information is created through a side equipment management module, the IP and port number of the side equipment information and a service address are provided for an intelligent fusion terminal, the intelligent fusion terminal configures connection information, a connection network is started, then, whether the intelligent fusion terminal supports an MQTT protocol or not is tested and verified, whether the intelligent fusion terminal can be automatically on-line or not is judged, and whether the intelligent fusion terminal is accessed to a thing connection management platform according to the technical standard specification of the thing connection management platform or not is judged. When the access function of the intelligent integration terminal is debugged, a real-time log interface can be opened, background log information can be checked in real time, problem location is facilitated, and the problem which cannot be seen by a foreground can be found conveniently.
Step three: and testing and verifying the functions of registering the sub-equipment and reporting the data message of the intelligent convergence terminal through the equipment management module. The intelligent fusion terminal is accessed into the simulation test system, adds the sub-device information through the MQTT protocol, and checks whether the device management area of the simulation test system has the newly added sub-device information; the intelligent fusion terminal reports data information through an MQTT protocol and checks the reported data of the sub-equipment information. When the sub-equipment registration function and the data reporting function of the terminal are debugged, a real-time log interface can be opened, background log information can be checked in real time, problem positioning is facilitated, problems which cannot be seen by a foreground can be found conveniently, and whether reported data are complete or not can be checked conveniently.
Step four: and testing and verifying whether the intelligent fusion terminal receives the command and the response command according to the standard technical specification of the Internet of things management platform through the command management module. And sequentially selecting the issued commands Topic through a configuration theme module, then editing an issued command message body, selecting an issuing unit or a sending unit after Json verification, and checking whether the intelligent fusion terminal correctly receives the issued commands. When the debugging intelligent fusion terminal receives the function of issuing the command, a real-time log interface can be opened, background log information can be checked in real time, problem location is facilitated, and the problem which cannot be seen by a foreground can be found conveniently.
Step five: and checking whether the data information reported by the intelligent fusion terminal to be tested is correct or not and checking whether the frequency of reporting the data information meets the requirement or not through the message management module.
Step six: and checking interactive information and interactive data between the simulation test system and the intelligent fusion terminal through the log management module, and checking whether the mode of connecting the Internet of things management platform meets the standard technical specification requirements of the intelligent Internet of things system of the national power grid company.
Step seven: and exporting the product model at the product model management module through the tested intelligent fusion terminal. The exported product model file can be directly imported into the IOT management platform without being changed, and the intelligent integration terminal configuration file is changed into the connection information corresponding to the IOT management platform so that the IOT management platform can be accessed to work.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing static information and dynamic information data. The network interface of the computer device is used for communicating with an external terminal through a network connection. Which computer program is executed by a processor to carry out the steps in the above-described method embodiments.
It will be appreciated by those skilled in the art that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with the inventive arrangements and is not intended to limit the computing devices to which the inventive arrangements may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, performs the steps of the above method embodiments.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The present invention is not limited to the structures that have been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A simulation test system suitable for an Internet of things management platform is characterized by comprising:
the system comprises a product model management module, an edge device management module, a command management module, a message management module and a log management module;
the product model management module is used for analyzing and analyzing a product model file provided by a manufacturer and testing whether the format of the product model file meets the format requirement of the Internet of things management platform;
the side equipment management module is used for testing whether the intelligent fusion terminal supports the MQTT protocol or not and has the function of connecting with the Internet of things management platform or not; the side equipment management module comprises an adding client unit and a disconnecting unit; the adding client unit creates a gateway identifier, a user name and a password which are connected with the intelligent fusion terminal through a creating side device client; the side equipment management module provides a connection IP and a port number; the intelligent fusion terminal configures relevant connection information and accesses a network; checking whether the side equipment client is normally online or not in the side equipment list information of the side equipment management module, and verifying whether the intelligent fusion terminal can be connected with the Internet of things management platform or not; by disconnecting the connection unit, the simulation test system actively disconnects the connection of the intelligent fusion terminal, and checks whether the intelligent fusion terminal can be actively connected with the online after refreshing, so as to test the disconnection reconnection function of the intelligent fusion terminal;
the equipment management module is used for simulating the management of the sub-equipment on the Internet of things management platform, and testing the registration function and the data reporting function of the intelligent fusion terminal sub-equipment is realized;
the command management module is used for simulating the command issuing of the equipment of the Internet of things management platform and realizing the function test that the fusion terminal receives the issued command; the command management module comprises a configuration theme unit, a issuing unit and a Json verification post-sending unit; the configuration subject unit is used for simulating the command editing function of the Internet of things management platform and editing and issuing specific command contents; the issuing unit is used for simulating a command issuing function of the Internet of things management platform, issuing the edited command information to a specified intelligent fusion terminal, and testing a command receiving function of the intelligent fusion terminal; the Json post-verification sending unit is used for verifying whether the command information edited by the test has errors in format or not and assisting the business user of the Internet of things management platform to debug the command information;
the message management module is used for recording messages or data processing results received or transmitted by the simulation test system and assisting a debugging user in checking failure reasons, debugging and modifying;
the log management module is used for recording log information of the simulation test system and displaying the log information in the debugging process in real time.
2. The simulation test system adapted to the IOT management platform of claim 1,
the product model management module comprises a product model import unit, a product model service viewing unit and a product model export unit;
the product model importing unit is used for testing whether the format of a product model file meets the requirements of the Internet of things management platform, if the importing is successful, the product model file is identified to be capable of being imported into the Internet of things management platform normally, and otherwise, the format of the product model file needs to be changed;
the product model service checking unit is used for analyzing the product model file, checking whether the content of the product model file is wrongly compiled or not, if the analysis is successful, indicating that the content of the product model file is not wrongly compiled, and if not, checking the content of the product model file;
the product model export unit is used for exporting the product model files in the simulation test system, and the product model files passing the test can be directly imported into the Internet of things management platform after being exported.
3. The simulation test system adapted to the IOT management platform of claim 1,
the equipment management module comprises an equipment information list module, an equipment reported data viewing module and an equipment reported data analyzing module;
the equipment information list module is used for testing whether the intelligent fusion terminal can normally register the sub-equipment information or not and can normally report the data value acquired by the sub-equipment or not;
the device reported data checking module is used for checking the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the frequency setting of the reported data information is proper or not, and checking whether the reported data information is correct or not;
the device reported data analysis module is used for analyzing the collected data information reported by the APP of the collected data in the intelligent fusion terminal, checking whether the reported data information meets the format requirement or not, and testing whether the product model is reasonable in design or not.
4. The simulation test system adapted to the IOT management platform of claim 1,
the log management module comprises a real-time log unit and a log recording unit;
the log recording unit records log information of the simulation test system;
and the real-time log unit displays the log information in the debugging process of the simulation test system on an interface in real time and observes background information in real time.
5. The simulation test system adapted to the internet of things management platform according to any one of claims 1 to 4, wherein the system architecture comprises: the system comprises a basic application component, an application service component, a cloud service component and a data storage service component;
the basic application components comprise five types of applications of Shiro, Oshi, GateWay API, Hystrix and Nacos, and provide system basic support;
the database storage service component comprises three data integration storage service components of Mysql, MongoDB and Redis, and provides database storage service;
the cloud service components comprise three cloud service components of FastDfs, MqttBroker and Git and provide resource storage and message forwarding services;
the application service components are provided by application service middleware.
6. The simulation test system adapted to the IOT platform of claim 5,
the basic application component, the application service component, the cloud service component and the data storage service component adopt a distributed micro-service architecture design, system functions are divided into a plurality of independently deployed modules, the modules are deployed in corresponding nodes, and communication and dependence among the modules are achieved through API service, message queues, configuration synchronization and database clusters.
7. The simulation test system adapted to the IOT platform of claim 5,
the application service component comprises:
the protocol analysis module is used for supporting the southbound access test of the equipment, analyzing access data of the equipment conforming to the protocol and simulating response data of the IOT management platform;
the north interface module is used for supporting the north interface test of the equipment and simulating the data response of the Internet of things management platform;
the edge computing framework MQTT protocol module is developed according to an interface protocol, inspects a message format in the process of accessing and testing the equipment, simulates response data of an internet of things management platform, and provides functions of equipment, data, a container and application management;
and the extension protocol module is used for performing module abstraction on the function extension of the system.
8. The simulation test system adapted to the IOT platform of claim 5,
the database storage service component uses mysql as a basic data storage component, Mongodb stores system service data, and Redis as a data cache layer.
9. The simulation test system adapted to the IOT platform of claim 5,
the database storage service component adopts a main storage framework and a secondary storage framework to separate read operation and write operation into different databases.
10. A simulation test method suitable for an Internet of things management platform is characterized in that a simulation test is carried out based on the system of any one of claims 1 to 4, and the method comprises the following steps:
the method comprises the following steps: compiling a product model file according to the provided product model file template, importing the product model file through a product model management module, and testing whether the format of the compiled product model file meets the requirements of an internet of things management platform;
step two: the method comprises the steps that side equipment information is created through a side equipment management module, the IP and port number of the side equipment information and a service address are provided for an intelligent fusion terminal, the intelligent fusion terminal configures connection information, a connection network is started, and then whether the intelligent fusion terminal supports an MQTT protocol or not is verified, whether the intelligent fusion terminal can be automatically on-line or not is verified, and whether the intelligent fusion terminal is accessed to a thing-connected management platform according to the technical standard specification of the thing-connected management platform or not is verified;
step three: testing the functions of registering the sub-equipment and reporting the data message of the intelligent fusion terminal through the equipment management module;
step four: testing whether the intelligent fusion terminal receives a command and a response command according to the standard technical specification of the internet of things management platform through a command management module;
step five: checking whether the data information reported by the intelligent fusion terminal to be tested is correct or not through a message management module, and checking whether the frequency of reporting the data information meets the requirement or not;
step six: checking interactive information and interactive data between the simulation test system and the intelligent fusion terminal through a log management module, and checking whether a mode of connecting an internet of things management platform meets the technical specification requirement of the national power grid company intelligent internet of things system standard;
step seven: and exporting the product model at the product model management module through the tested intelligent fusion terminal.
11. The simulation test method suitable for the internet of things management platform according to claim 10, wherein in the second step, when the access function of the intelligent fusion terminal is debugged, a real-time log interface is opened, background log information is checked in real time, and problem location is performed.
12. The simulation test method adapted to the internet of things management platform according to claim 10, wherein in the third step, the intelligent convergence terminal accesses the simulation test system, adds the sub-device information through MQTT protocol, and checks whether the device management area of the simulation test system has the newly added sub-device information;
the intelligent fusion terminal reports data information through an MQTT protocol and checks the reported data of the sub-equipment information;
and when the functions of registering the sub-equipment and reporting the data of the terminal are debugged, opening a real-time log interface, checking background log information in real time, positioning problems and checking whether the reported data is complete or not.
13. The simulation test method suitable for the internet of things management platform according to claim 10, wherein in the fourth step, by configuring the subject unit, the issued commands Topic are sequentially selected, then the issued command message body is edited, the issuing unit is selected or the sending unit after Json is verified, and whether the intelligent fusion terminal correctly receives the issued commands is checked; and when the debugging intelligent fusion terminal receives the function of issuing the command, opening a real-time log interface, checking background log information in real time and positioning the problem.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 10 to 13 when executing the computer program.
CN202110576357.4A 2021-05-26 2021-05-26 Simulation test system and method suitable for Internet of things management platform Active CN113206763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110576357.4A CN113206763B (en) 2021-05-26 2021-05-26 Simulation test system and method suitable for Internet of things management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110576357.4A CN113206763B (en) 2021-05-26 2021-05-26 Simulation test system and method suitable for Internet of things management platform

Publications (2)

Publication Number Publication Date
CN113206763A CN113206763A (en) 2021-08-03
CN113206763B true CN113206763B (en) 2022-09-06

Family

ID=77023097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110576357.4A Active CN113206763B (en) 2021-05-26 2021-05-26 Simulation test system and method suitable for Internet of things management platform

Country Status (1)

Country Link
CN (1) CN113206763B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113708997B (en) * 2021-08-23 2023-05-30 国电南瑞科技股份有限公司 Simulation detection system and method suitable for cloud edge interaction protocol consistency detection of power distribution Internet of things
CN113904954B (en) * 2021-08-27 2023-09-01 深圳市有方科技股份有限公司 System for testing wireless communication module
CN113890903A (en) * 2021-09-27 2022-01-04 中信科移动通信技术股份有限公司 Alarm information management system and method
CN114189532B (en) * 2021-10-11 2023-02-03 西安电子科技大学 Mass connection control strategy and instruction distribution method
CN114244698B (en) * 2021-11-24 2024-01-05 中盈优创资讯科技有限公司 CPE management configuration method based on MQTT
CN114172973B (en) * 2021-11-30 2023-12-19 深圳市国电科技通信有限公司 Data conversion processing method based on MQTT protocol and 698 protocol and electronic equipment
CN114745409A (en) * 2022-03-02 2022-07-12 山东鲁软数字科技有限公司 Remote control method for intelligent Internet of things equipment
CN115174458B (en) * 2022-06-29 2024-04-19 北京天融信网络安全技术有限公司 Test method and device for simulating Internet of things gateway online
CN115361323A (en) * 2022-08-17 2022-11-18 深圳供电局有限公司 Intelligent gateway intercommunication interconnection test system
CN116939018B (en) * 2023-09-14 2024-01-23 浙江华宇钠电新能源科技有限公司 General Internet of things PaaS platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636131A (en) * 2019-09-25 2019-12-31 北京中广瑞波科技股份有限公司 Internet of things testing system based on cloud technology
CN112738042A (en) * 2020-12-22 2021-04-30 上海上实龙创智能科技股份有限公司 Internet of things equipment model based on MQTT protocol and data penetration method thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463492B (en) * 2014-12-23 2017-12-26 国家电网公司 A kind of operation management method of power system cloud emulation platform
US9979606B2 (en) * 2015-03-04 2018-05-22 Qualcomm Incorporated Behavioral analysis to automate direct and indirect local monitoring of internet of things device health
US20180164371A1 (en) * 2016-12-12 2018-06-14 Qualcomm Incorporated Apparatus and method for providing debug information via power rail in power state where debug interface is disabled
CN110188578A (en) * 2019-05-27 2019-08-30 上海上湖信息技术有限公司 A kind of method and apparatus of automatic shield information
CN110598280B (en) * 2019-08-28 2023-06-16 杭州友电科技有限公司 Equipment simulation system and method and computer readable storage medium
CN111784282A (en) * 2020-06-10 2020-10-16 深圳市时耕科技有限公司 Comprehensive management platform for intelligent venue
CN112600889B (en) * 2020-12-03 2023-01-17 北京中电普华信息技术有限公司 Internet of things simulation platform and simulation method
CN112583941B (en) * 2021-02-24 2021-05-28 国网江苏省电力有限公司信息通信分公司 Method for supporting access of multiple power terminals, unit node and power Internet of things

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636131A (en) * 2019-09-25 2019-12-31 北京中广瑞波科技股份有限公司 Internet of things testing system based on cloud technology
CN112738042A (en) * 2020-12-22 2021-04-30 上海上实龙创智能科技股份有限公司 Internet of things equipment model based on MQTT protocol and data penetration method thereof

Also Published As

Publication number Publication date
CN113206763A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN113206763B (en) Simulation test system and method suitable for Internet of things management platform
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN103391222A (en) System and method for monitoring web service
CN110995545B (en) Cloud network configuration testing method and device
CN112631846A (en) Fault drilling method and device, computer equipment and storage medium
Bass et al. Eliciting operations requirements for applications
CN112241360A (en) Test case generation method, device, equipment and storage medium
WO2021086523A1 (en) Support ticket platform for improving network infrastructures
CN110063042A (en) A kind of response method and its terminal of database failure
CN111414614B (en) Override detection method and auxiliary device
CN104899134A (en) Automatic domain name registration server testing system and method
CN112527247A (en) LED display control system simulation method, device and system
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
US7321561B2 (en) Verification of connections between devices in a network
CN111526028B (en) Data processing method, device and equipment
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN114598680B (en) Domain name management method, device and storage medium
CN116132344A (en) Container service debugging method and device based on K8s cluster and electronic equipment
CN115454851A (en) Interface regression testing method and device, storage medium and electronic device
CN114978923A (en) Fault drilling method, device and system
CN116132250A (en) Operation and maintenance system, operation and maintenance method, storage medium and electronic equipment
CN113485927A (en) Test data generation method, device, equipment and storage medium
CN114510460A (en) Database system capacity expansion method and device, electronic equipment and storage medium
CN111488306A (en) Attack and defense architecture system and construction method thereof

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