CN116192656A - Simulation platform and simulation method based on Internet of things management system - Google Patents

Simulation platform and simulation method based on Internet of things management system Download PDF

Info

Publication number
CN116192656A
CN116192656A CN202211703530.3A CN202211703530A CN116192656A CN 116192656 A CN116192656 A CN 116192656A CN 202211703530 A CN202211703530 A CN 202211703530A CN 116192656 A CN116192656 A CN 116192656A
Authority
CN
China
Prior art keywords
internet
simulation
things
terminal
management system
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.)
Pending
Application number
CN202211703530.3A
Other languages
Chinese (zh)
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.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology 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 Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202211703530.3A priority Critical patent/CN116192656A/en
Publication of CN116192656A publication Critical patent/CN116192656A/en
Pending legal-status Critical Current

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
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a simulation platform and a simulation method based on an Internet of things management system, which can be widely applied to the technical field of Internet of things. According to the invention, the terminal simulation system and the Internet of things platform automation system are arranged, the protocol forwarding module and the terminal simulation module are arranged in the terminal simulation system, and the southbound module and the northbound module are arranged in the Internet of things platform automation system, so that in the simulation test process, the southbound module is interacted with the Internet of things management system, the constructed message template issuing instruction is sent to the protocol forwarding module, the protocol forwarding module determines the target protocol according to the message template issuing instruction, and the target protocol is forwarded to the corresponding terminal simulator, so that the terminal simulator simulates real equipment operation according to the content of the target protocol, and therefore simulation test is carried out without using real equipment, and the test cost is effectively reduced.

Description

Simulation platform and simulation method based on Internet of things management system
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a simulation platform and a simulation method based on an Internet of things management system.
Background
In the related art, development and test of the terminal access of the internet of things platform are required to depend on real equipment for development, debugging and test, however, equipment access protocols are numerous, and equipment access of the same protocol also has different encryption modes and data formats, so that the debugging and test processes of a plurality of test equipment cannot be completed by adopting one real equipment, and the test cost is high.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the simulation platform and the simulation method based on the Internet of things management system can effectively reduce the test cost.
In one aspect, an embodiment of the present invention provides a simulation platform based on an internet of things management system, including:
the terminal simulation system comprises a protocol forwarding module and a terminal simulation module, wherein the terminal simulation module comprises a plurality of types of terminal simulators, the protocol forwarding module is used for determining a target protocol according to a message template issuing instruction and forwarding the target protocol to the corresponding terminal simulator, and the terminal simulator simulates real equipment operation according to the content of the target protocol;
the system comprises an internet of things platform automation system, wherein the internet of things platform automation system comprises a southbound module and a northbound module, and the southbound module is used for sending the constructed message template issuing instruction to the protocol forwarding module and receiving the simulation state data of the terminal simulator; the north direction module is connected with the Internet of things management system and is used for forwarding the simulation state data sent by the south direction module to the Internet of things management system.
In some embodiments, the terminal simulation system is built by java.
In some embodiments, the internet of things platform automation system is built from python+rf+selenium.
In some embodiments, the terminal simulator comprises HTTP, TCP, MQTT, LWM2M, JT/T808, tlink, modbus.
In some embodiments, the simulating real device operation according to the content of the target protocol comprises:
and simulating equipment login, event reporting, data reporting or instruction issuing response according to the content of the target protocol.
On the other hand, the embodiment of the invention provides a simulation method based on an Internet of things management system, wherein the method is applied to the system and comprises the following steps of:
starting a terminal simulation system, and starting monitoring simulation;
starting an animal networking platform automation system, and executing equipment registration use cases;
the terminal simulation system receives a device login instruction and simulates device login operation according to the device login instruction;
and the automated system of the Internet of things platform checks whether the equipment login is successful or not and generates a simulation report.
In some embodiments, the starting the internet of things platform automation system, executing the device registration use case, includes:
creating product equipment in an Internet of things management system;
acquiring the product equipment parameters;
constructing a message template;
and sending the instruction corresponding to the product equipment parameter to a protocol forwarding module through the message template.
In some embodiments, the product device parameter comprises a product master key, a device ID, or a device key.
In some embodiments, the terminal simulation system receives a device login instruction, simulates a device login operation according to the device login instruction, and includes:
the terminal simulation system receives the equipment login instruction, judges the protocol type according to the protocol forwarding module and forwards the protocol type to the corresponding terminal simulator;
and the terminal simulator receives the equipment login information, verifies whether the product master key, the equipment ID and the equipment key exist or not, and if yes, executes the simulated equipment login operation.
In some embodiments, the internet of things platform automation system checks whether the device login is successful, including:
and the automatic system of the platform of the Internet of things receives the information returned by the terminal simulator and checks whether the state of the equipment is activated.
The simulation platform based on the Internet of things management system provided by the embodiment of the invention has the following beneficial effects:
the terminal simulation system and the Internet of things platform automation system are arranged, the protocol forwarding module and the terminal simulation module are arranged in the terminal simulation system, and the southbound module and the northbound module are arranged in the Internet of things platform automation system, so that in the simulation test process, after the northbound module interacts with the Internet of things management system, the constructed message template issuing instruction is sent to the protocol forwarding module through the southbound module, the protocol forwarding module determines a target protocol according to the message template issuing instruction, and forwards the target protocol to the corresponding terminal simulator, so that the terminal simulator simulates real equipment operation according to the content of the target protocol, and therefore simulation test is carried out without using real equipment, and the test cost is effectively reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention is further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a schematic diagram of a simulation platform based on an Internet of things management system according to an embodiment of the invention;
fig. 2 is a flowchart of a simulation method based on an internet of things management system according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that references to orientation descriptions such as upper, lower, front, rear, left, right, etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements 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 of the present invention, the meaning of a number is one or more, the meaning of a number is two or more, and greater than, less than, exceeding, etc. are understood to exclude the present number, and the meaning of a number is understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
In the description of the present invention, the descriptions of the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The internet of things refers to connecting any object with a network through information sensing equipment according to a stipulated protocol, and carrying out information exchange and communication on the object through an information transmission medium so as to realize the functions of intelligent identification, positioning, tracking, supervision and the like. Along with the development of the internet of things technology, more and more terminal devices are accessed into an internet of things platform, in the prior art, development and test of the internet of things platform terminal access are required to depend on real devices for development, debugging and test, as the devices have more access protocols, HTTP, TCP, MQTT, LWM2M, JT/T808, tlink, modbus and the like are involved, and the devices with the same protocol are also different in encryption mode and data format, so that all real devices cannot be integrated.
Based on the above, the simulation platform based on the Internet of things management system provided by the embodiment of the invention can simulate real equipment to perform operations such as equipment login, data reporting, event reporting, instruction issuing response and the like, and can realize the life cycle function development test of the Internet of things management system equipment without the real equipment, thereby improving the research and development speed and the test efficiency.
Referring to fig. 1, an embodiment of the invention provides a simulation platform based on an internet of things management system, which comprises a terminal simulation system and an internet of things platform automation system. In this embodiment, the terminal simulation system may be built by java. Specifically, java is a portal object-oriented programming language. The java language has the characteristics of strong functions, simplicity, easiness in use, simplicity, object-oriented property, distributed property and the like, and can write desktop application programs, web application programs, distributed systems, embedded system application programs and the like. The internet of things platform automation system can be built by python+rf+selenium. Specifically, python is a widely used interpreted, high-level and general-purpose programming language. Python provides an efficient, high-level data structure that can also be easily and efficiently programmed towards objects. Python grammar and dynamic type, as well as the nature of interpreted languages, make it a programming language for writing scripts and rapidly developing applications on most platforms. Selenium is a pool of Python. RF (Robot Framework) is open source software which is based on Python language to write an automatic test framework, can write test cases, has good expandability, belongs to keyword driving and also has data driving.
In this embodiment, the terminal simulation system includes a protocol forwarding module and a terminal simulation module, and the terminal simulation module includes several types of terminal simulators. The protocol forwarding module is used for determining a target protocol according to the message template issuing instruction and forwarding the target protocol to the corresponding terminal simulator so that the terminal simulator simulates the operation of real equipment according to the content of the target protocol. The system comprises an Internet of things platform automation system and a terminal simulator, wherein the Internet of things platform automation system comprises a southward module and a northbound module, the southward module is used for sending a constructed message template issuing instruction to the protocol forwarding module and receiving simulation state data of the terminal simulator; the north direction module is connected with the Internet of things management system and is used for forwarding the simulation state data sent by the south direction module to the Internet of things management system or the Internet of things management platform. Specifically, the real device operation includes operation processes such as device login, event reporting, data reporting or instruction issuing response.
In this embodiment, the terminal simulator includes HTTP, TCP, MQTT, LWM2M, JT/T808, tlink, modbus. In particular, HTTP (HyperText Transfer Protocol ) is an application layer protocol for distributed, collaborative and hypermedia information systems, which is the basis for data communication over the world wide web and is also the most widely used network transfer protocol for the internet. HTTP was originally designed to provide a method of publishing and receiving HTML pages. TCP (Transmission Control Protocol ) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol, defined by IETF RFC 793. In the simplified OSI model of computer networks, TCP performs the functions specified by the fourth transport layer, and User Datagram Protocol (UDP) is another important transport protocol within the same layer. In the internet protocol suite (Internet protocol suite), the TCP layer is an intermediate layer that sits above the IP layer and below the application layer. MQTT (Message Queuing Telemetry Transport, message queue telemetry transport) is an instant messaging protocol developed by IBM and is likely to be an important component of the internet of things. The MQTT holds all platforms, can connect almost all networking items and the outside, and is used as a communication protocol for sensors and actuators. LWM2M (light M2M, lightweight M2M) is a Lightweight, standard and general device management protocol for the internet of things, and can be used for rapidly deploying the internet of things service in a client/server mode. Modbus is a bus protocol of an industrial communication system. The proposal is a common language applied to electronic controllers. Through the Modbus protocol, controllers may communicate with each other, with controllers via a network (e.g., ethernet) and other devices. It has become a common industry standard. With Modbus protocol, control devices produced by different manufacturers can be connected into an industrial network to perform centralized monitoring. Modbus defines a message structure that a controller can recognize for use, regardless of the network over which they communicate. When communicating over a Modbus network, the Modbus protocol determines what actions each controller needs to know their device address, identify messages sent by address, and determine what actions to take. If a response is required, the controller will generate feedback information and issue using the Modbus protocol. On other networks, messages containing the Modbus protocol are converted into a frame or packet structure for use on the network. This translation also extends the methods of resolving node addresses, routing paths, and error detection according to the particular network.
When the system shown in fig. 1 is applied to actual simulation operation, taking device login as an example, as shown in fig. 2, an embodiment of the present invention provides a simulation method based on an internet of things management system, including but not limited to the following steps:
step S210, starting a terminal simulation system, and starting monitoring simulation;
step S220, starting an automated system of the platform of the Internet of things, and executing equipment registration use cases;
in the embodiment of the application, first, product equipment is created in an internet of things management system, and product equipment parameters are obtained. The product device parameters include a product master key, a device ID, or a device key. Meanwhile, a message template is constructed, and then an instruction corresponding to the product equipment parameter is sent to a protocol forwarding module of the terminal simulation system through the message template.
Step S230, the terminal simulation system receives a device login instruction and simulates a device login operation according to the device login instruction;
in the embodiment of the application, after the terminal simulation system receives the equipment login instruction, the protocol type is judged through the protocol forwarding module, and the protocol of the corresponding protocol type is forwarded to the corresponding terminal simulator, so that the terminal simulator can simulate the real operation process of the equipment. Specifically, after receiving the equipment login information, the terminal simulator verifies whether the product master key, the equipment ID and the equipment key exist, if so, the terminal simulator executes the simulated equipment login operation, and returns a simulation result to the Internet of things management system, so that a tester can conveniently know simulation test data.
And step 240, the automation system of the internet of things platform checks whether the equipment login is successful or not and generates a simulation report.
In the embodiment of the application, the Internet of things platform automation system receives information returned by the terminal simulator, checks whether the equipment state is activated, and generates a simulation report according to a check result and a simulation test result.
In summary, it can be known that the simulation platform based on the internet of things management system provided by the embodiment of the application can simulate real equipment to develop, debug and test without depending on the real equipment, and support multiple protocols, so that different equipment access requirements are met, the test period is shortened, the research and development efficiency is greatly improved, and the problems that the test method in the prior art needs to depend on the real equipment, the test efficiency is low, and the research and development speed is slow are solved.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.

Claims (10)

1. Simulation platform based on thing networking management system, characterized by comprising:
the terminal simulation system comprises a protocol forwarding module and a terminal simulation module, wherein the terminal simulation module comprises a plurality of types of terminal simulators, the protocol forwarding module is used for determining a target protocol according to a message template issuing instruction and forwarding the target protocol to the corresponding terminal simulator, and the terminal simulator simulates real equipment operation according to the content of the target protocol;
the system comprises an internet of things platform automation system, wherein the internet of things platform automation system comprises a southbound module and a northbound module, and the southbound module is used for sending the constructed message template issuing instruction to the protocol forwarding module and receiving the simulation state data of the terminal simulator; the north direction module is connected with the Internet of things management system and is used for forwarding the simulation state data sent by the south direction module to the Internet of things management system.
2. The simulation platform based on the internet of things management system according to claim 1, wherein the terminal simulation system is built through java.
3. The simulation platform based on the internet of things management system according to claim 1, wherein the internet of things platform automation system is built through python+rf+selenium.
4. The simulation platform based on the internet of things management system according to claim 1, wherein the terminal simulator comprises HTTP, TCP, MQTT, LWM2M, JT/T808, tlink, modbus.
5. The simulation platform based on the internet of things management system according to claim 1, wherein the simulating real device operation according to the content of the target protocol comprises:
and simulating equipment login, event reporting, data reporting or instruction issuing response according to the content of the target protocol.
6. A simulation method based on an internet of things management system, wherein the method is applied to the system of any one of claims 1-5, the method comprising the steps of:
starting a terminal simulation system, and starting monitoring simulation;
starting an animal networking platform automation system, and executing equipment registration use cases;
the terminal simulation system receives a device login instruction and simulates device login operation according to the device login instruction;
and the automated system of the Internet of things platform checks whether the equipment login is successful or not and generates a simulation report.
7. The simulation method based on the internet of things management system according to claim 6, wherein the starting the internet of things platform automation system, executing the device registration use case, comprises:
creating product equipment in an Internet of things management system;
acquiring the product equipment parameters;
constructing a message template;
and sending the instruction corresponding to the product equipment parameter to a protocol forwarding module through the message template.
8. The simulation method based on the internet of things management system according to claim 7, wherein the product device parameter includes a product master key, a device ID, or a device key.
9. The simulation method based on the internet of things management system according to claim 6, wherein the terminal simulation system receives a device login instruction, simulates a device login operation according to the device login instruction, and comprises:
the terminal simulation system receives the equipment login instruction, judges the protocol type according to the protocol forwarding module and forwards the protocol type to the corresponding terminal simulator;
and the terminal simulator receives the equipment login information, verifies whether the product master key, the equipment ID and the equipment key exist or not, and if yes, executes the simulated equipment login operation.
10. The simulation method based on the internet of things management system according to claim 8, wherein the internet of things platform automation system checks whether the device login is successful, comprising:
and the automatic system of the platform of the Internet of things receives the information returned by the terminal simulator and checks whether the state of the equipment is activated.
CN202211703530.3A 2022-12-29 2022-12-29 Simulation platform and simulation method based on Internet of things management system Pending CN116192656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211703530.3A CN116192656A (en) 2022-12-29 2022-12-29 Simulation platform and simulation method based on Internet of things management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211703530.3A CN116192656A (en) 2022-12-29 2022-12-29 Simulation platform and simulation method based on Internet of things management system

Publications (1)

Publication Number Publication Date
CN116192656A true CN116192656A (en) 2023-05-30

Family

ID=86431885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211703530.3A Pending CN116192656A (en) 2022-12-29 2022-12-29 Simulation platform and simulation method based on Internet of things management system

Country Status (1)

Country Link
CN (1) CN116192656A (en)

Similar Documents

Publication Publication Date Title
Wang et al. Integrating Building Management System and facilities management on the Internet
Milenkovic Internet of Things: Concepts and System Design
US8209213B2 (en) Method for the construction and execution of a distributed workflow in a communication system
US7370236B2 (en) Method for remotely diagnosing devices
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
Atmoko et al. Online monitoring & controlling industrial arm robot using mqtt protocol
US20080168425A1 (en) Software testing techniques for stack-based environments
Morla et al. Evaluating a location-based application: A hybrid test and simulation environment
US20080208979A1 (en) Dispatching client requests to appropriate server-side methods
Šišlák et al. A-globe: Agent development platform with inaccessibility and mobility support
US20160173349A1 (en) Simulator for testing a gateway device
CN114465940A (en) Vehicle-mounted test system, method and storage medium
US20160218952A1 (en) Testing by simulation using variations of real-time traffic
CN117278661B (en) Industrial Internet of things multi-protocol analysis method and system
Pereira et al. A Platform for IEEE 1451 standard’s education, development and validation for industry 4.0
CN116192656A (en) Simulation platform and simulation method based on Internet of things management system
WO2024140914A1 (en) Simulation platform and simulation method based on internet-of-things management system
CN113934432A (en) Method, apparatus, and storage medium for deploying a machine learning model
CN108173957A (en) A kind of Http interfaces rapid configuration joint debugging platform
CN113315769A (en) Industrial control asset information collection method and device
Peniak et al. Extended gateway model for OPC UA/IoT device integration
Matabuena et al. Educational platform for communications using the MQTT protocol
Lindén A latency comparison of IoT protocols in MES
CN110830274A (en) Communication equipment simulation method and device
Wang et al. A comparative study to evaluate the performance of communication protocols for process industry

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