[go: up one dir, main page]

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
simulation
internet
terminal
things
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.)
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
Priority to PCT/CN2023/142771 priority patent/WO2024140914A1/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

本发明公开了一种基于物联网管理系统的仿真平台和仿真方法,可广泛应用于物联网技术领域。本发明通过设置终端模拟系统和物联网平台自动化系统,并在终端模拟系统内设置协议转发模块和终端模拟模块,在物联网平台自动化系统内设置南向模块和北向模块,从而在模拟测试过程中,可以通过北向模块与物联网管理系统交互后,通过南向模块将构建的消息模板下发指令发送到协议转发模块,通过协议转发模块根据消息模板下发指令确定目标协议,并将目标协议转发到对应的终端模拟器,使得终端模拟器根据目标协议的内容模拟真实设备操作,从而无需使用真实设备进行模拟测试,有效降低测试成本。

Figure 202211703530

The invention discloses a simulation platform and a simulation method based on an Internet of Things management system, which can be widely used in the technical field of the Internet of Things. The present invention sets the terminal simulation system and the Internet of Things platform automation system, and sets the protocol forwarding module and the terminal simulation module in the terminal simulation system, and sets the southbound module and the northbound module in the Internet of Things platform automation system, so that during the simulation test process , after interacting with the IoT management system through the northbound module, the constructed message template can be sent to the protocol forwarding module through the southbound module, and the protocol forwarding module can issue instructions according to the message template to determine the target protocol and forward the target protocol To the corresponding terminal emulator, so that the terminal emulator simulates the operation of the real device according to the content of the target protocol, so that there is no need to use the real device for the simulation test, effectively reducing the test cost.

Figure 202211703530

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 the management system of the Internet of Things.

背景技术Background technique

相关技术中,物联网平台终端接入的开发测试需要依赖真实的设备进行开发调试和测试,但是,设备接入协议众多,并且相同协议的设备接入也存在加密方式和数据格式的不同,因此,无法采用一个真实设备完成多个测试设备的调试和测试过程,导致测试成本较高。In related technologies, the development and testing of terminal access on the Internet of Things platform needs to rely on real devices for development, debugging and testing. However, there are many device access protocols, and device access of the same protocol also has different encryption methods and data formats. Therefore, , it is impossible to use one real device to complete the debugging and testing process of multiple test devices, resulting in higher test costs.

发明内容Contents of the invention

本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提出一种基于物联网管理系统的仿真平台和仿真方法,能够有效降低测试成本。The present invention aims to solve at least one of the technical problems existing in the prior art. For this reason, the present invention proposes a simulation platform and a simulation method based on the management system of the Internet of Things, which can effectively reduce the test cost.

一方面,本发明实施例提供了一种基于物联网管理系统的仿真平台,包括:On the one hand, the embodiment of the present invention provides a simulation platform based on the Internet of Things management system, including:

终端模拟系统,所述终端模拟系统包括协议转发模块和终端模拟模块,所述终端模拟模块包括若干个类型的终端模拟器,所述协议转发模块用于根据消息模板下发指令确定目标协议,并将所述目标协议转发到对应的所述终端模拟器,所述终端模拟器根据所述目标协议的内容模拟真实设备操作;A terminal simulation system, the terminal simulation system includes a protocol forwarding module and a terminal simulation module, the terminal simulation module includes several types of terminal simulators, the protocol forwarding module is used to issue instructions according to message templates to determine the target protocol, and Forwarding the target protocol to the corresponding terminal emulator, the terminal emulator simulates real device operation according to the content of the target protocol;

物联网平台自动化系统,所述物联网平台自动化系统包括南向模块和北向模块,所述南向模块用于将构建的所述消息模板下发指令发送到所述协议转发模块,并接收所述终端模拟器的模拟状态数据;所述北向模块与物联网管理系统连接,用于将所述南向模块发送的模拟状态数据转发到所述物联网管理系统。The IoT platform automation system, the IoT platform automation system includes a southbound module and a northbound module, the southbound module is used to send the constructed message template instruction to the protocol forwarding module, and receive the The simulated state data of the terminal emulator; the northbound module is connected to the Internet of Things management system, and is used to forward the simulated state data sent by the southbound module to the Internet of Things management system.

在一些实施例中,所述终端模拟系统通过java搭建。In some embodiments, the terminal simulation system is built by java.

在一些实施例中,所述物联网平台自动化系统通过python+RF+selenium搭建。In some embodiments, the IoT platform automation system is built by python+RF+selenium.

在一些实施例中,所述终端模拟器包括HTTP、TCP、MQTT、LWM2M、JT/T808、Tlink、Modbus。In some embodiments, the terminal emulator includes HTTP, TCP, MQTT, LWM2M, JT/T808, Tlink, Modbus.

在一些实施例中,所述根据所述目标协议的内容模拟真实设备操作,包括:In some embodiments, the simulating real device operation according to the content of the target protocol includes:

根据所述目标协议的内容模拟设备登录、事件上报、数据上报或指令下发响应。According to the content of the target protocol, simulate device login, event reporting, data reporting or instruction issuing response.

另一方面,本发明实施例提供了一种基于物联网管理系统的仿真方法,所述方法应用于所述系统,所述方法包括以下步骤:On the other hand, an embodiment of the present invention provides a simulation method based on an Internet of Things management system, the method is applied to the system, and the method includes the following steps:

启动终端模拟系统启动,开启监听模拟;Start the terminal simulation system to start, and start the monitoring simulation;

启动物联网平台自动化系统,执行设备登录用例;Start the automation system of the IoT platform and execute the device login use case;

终端模拟系统接收设备登录指令,根据所述设备登录指令模拟设备登录操作;The terminal simulation system receives the device login instruction, and simulates the device login operation according to the device login instruction;

物联网平台自动化系统校验设备登录是否成功,并生成仿真报告。The IoT platform automation system verifies whether the device login is successful and generates a simulation report.

在一些实施例中,所述启动物联网平台自动化系统,执行设备登录用例,包括:In some embodiments, the starting the IoT platform automation system to execute the device login use case includes:

在物联网管理系统创建产品设备;Create product equipment in the IoT management system;

获取所述产品设备参数;Obtain the device parameters of the product;

构建消息模板;Build message templates;

通过所述消息模板将所述产品设备参数对应的指令发送到协议转发模块。Send the instruction corresponding to the product device parameter to the protocol forwarding module through the message template.

在一些实施例中,所述产品设备参数包括产品万能钥匙、设备ID或设备钥匙。In some embodiments, the product device parameters include a product master key, a device ID or a device key.

在一些实施例中,所述终端模拟系统接收设备登录指令,根据所述设备登录指令模拟设备登录操作,包括:In some embodiments, the terminal simulation system receives a device login instruction, and simulates a device login operation according to the device login instruction, including:

终端模拟系统接收设备登录指令,根据协议转发模块判断协议类型,并转发至对应的终端模拟器;The terminal simulation system receives the device login command, judges the protocol type according to the protocol forwarding module, and forwards it to the corresponding terminal simulator;

终端模拟器接收到设备登录信息,验证产品万能钥匙、设备ID、设备钥匙是否存在,若是,则执行模拟设备登录操作。The terminal emulator receives the device login information, verifies whether the product master key, device ID, and device key exist, and if so, performs a simulated device login operation.

在一些实施例中,所述物联网平台自动化系统校验设备登录是否成功,包括:In some embodiments, the automation system of the Internet of Things platform checks whether the device login is successful, including:

物联网平台自动化系统接收终端模拟器返回的信息,校验设备状态是否已激活状态。The IoT platform automation system receives the information returned by the terminal emulator, and verifies whether the device status is activated.

本发明实施例提供的一种基于物联网管理系统的仿真平台,具有如下有益效果:A simulation platform based on the Internet of Things management system provided by the embodiment of the present invention has the following beneficial effects:

通过设置终端模拟系统和物联网平台自动化系统,并在终端模拟系统内设置协议转发模块和终端模拟模块,在物联网平台自动化系统内设置南向模块和北向模块,从而在模拟测试过程中,可以通过北向模块与物联网管理系统交互后,通过南向模块将构建的消息模板下发指令发送到协议转发模块,通过协议转发模块根据消息模板下发指令确定目标协议,并将目标协议转发到对应的终端模拟器,使得终端模拟器根据目标协议的内容模拟真实设备操作,从而无需使用真实设备进行模拟测试,有效降低测试成本。By setting up the terminal simulation system and the automation system of the Internet of Things platform, and setting the protocol forwarding module and the terminal simulation module in the terminal simulation system, and setting the southbound module and the northbound module in the automation system of the Internet of Things platform, during the simulation test, you can After interacting with the IoT management system through the northbound module, the constructed message template is sent to the protocol forwarding module through the southbound module, and the target protocol is determined by the protocol forwarding module according to the message template, and the target protocol is forwarded to the corresponding The terminal emulator enables the terminal emulator to simulate the operation of the real device according to the content of the target protocol, so that there is no need to use the real device for the simulation test, which effectively reduces the test cost.

本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

下面结合附图和实施例对本发明做进一步的说明,其中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, wherein:

图1为本发明实施例一种基于物联网管理系统的仿真平台的示意图;Fig. 1 is a schematic diagram of a simulation platform based on an Internet of Things management system according to an embodiment of the present invention;

图2为本发明实施例一种基于物联网管理系统的仿真方法的流程图。FIG. 2 is a flow chart of a simulation method based on an Internet of Things management system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

在本发明的描述中,需要理解的是,涉及到方位描述,例如上、下、前、后、左、右等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc. indicated orientations or positional relationships are based on the orientations or positional relationships shown in the drawings, and are only In order to facilitate the description of the present invention and simplify the description, it does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.

在本发明的描述中,若干的含义是一个以上,多个的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, several means more than one, and multiple means more than two. Greater than, less than, exceeding, etc. are understood as not including the original number, and above, below, within, etc. are understood as including the original number. If the description of the first and second is only for the purpose of distinguishing the technical features, it cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features relation.

本发明的描述中,除非另有明确的限定,设置、安装、连接等词语应做广义理解,所属技术领域技术人员可以结合技术方案的具体内容合理确定上述词语在本发明中的具体含义。In the description of the present invention, unless otherwise clearly defined, words such as setting, installation, and connection should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.

本发明的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the present invention, reference to the terms "one embodiment," "some embodiments," "exemplary embodiments," "examples," "specific examples," or "some examples" is intended to mean that the embodiments are A specific feature, structure, material, or characteristic described by 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 embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

物联网是指通过信息传感设备,按约定的协议,将任何物体与网络相连接,物体通过信息传播媒介进行信息交换和通信,以实现智能化识别、定位、跟踪、监管等功能。随着物联网技术的发展,越来越多的终端设备接入到物联网平台中,现有的技术中,物联网平台终端接入的开发测试需要依赖真实的设备进行开发调试和测试,因设备接入协议多,涉及HTTP、TCP、MQTT、LWM2M、JT/T808、Tlink、Modbus等等,且相同协议的设备接入也存在加密方式和数据格式的不同,无法集齐所有真实的设备。The Internet of Things refers to the connection of any object with the network according to the agreed agreement through information sensing equipment, and the object exchanges information and communicates through the information transmission medium to realize intelligent identification, positioning, tracking, supervision and other functions. With the development of the Internet of Things technology, more and more terminal devices are connected to the Internet of Things platform. In the existing technology, the development and testing of terminal access to the Internet of Things platform needs to rely on real devices for development, debugging and testing. There are many access protocols, involving HTTP, TCP, MQTT, LWM2M, JT/T808, Tlink, Modbus, etc., and the access of devices with the same protocol also has different encryption methods and data formats, so it is impossible to collect all real devices.

基于此,本发明实施例一种基于物联网管理系统的仿真平台,通过该仿真平台可模拟真实的设备进行设备登录、数据上报、事件上报、指令下发响应等操作,无需真实设备,即可实现物联网管理系统设备生命周期功能开发测试,提高研发速度和测试效率。Based on this, the embodiment of the present invention is a simulation platform based on the Internet of Things management system. Through this simulation platform, real devices can be simulated to perform operations such as device login, data reporting, event reporting, and command issuance and response, without real devices. Realize the development and testing of the equipment life cycle function of the Internet of Things management system, and improve the speed of research and development and the efficiency of testing.

参照图1,本发明实施例提供了一种基于物联网管理系统的仿真平台,包括终端模拟系统和物联网平台自动化系统。在本实施例中,终端模拟系统可以通过java搭建。具体地,java是一门面向对象的编程语言。java语言具有功能强大和简单易用两个特征,具有简单性、面向对象、分布式等特点,可以编写桌面应用程序、Web应用程序、分布式系统和嵌入式系统应用程序等。物联网平台自动化系统可以通过python+RF+selenium搭建。具体地,Python是一种广泛使用的解释型、高级和通用的编程语言。Python提供了高效的高级数据结构,还能简单有效地面向对象编程。Python语法和动态类型,以及解释型语言的本质,使它成为多数平台上写脚本和快速开发应用的编程语言。Selenium是一个Python库。RF(Robot Framework)是一款开源软件,其基于Python语言编写自动化测试框架,能够进行测试用例编写,具有良好的可扩展性,属于关键字驱动,也具备数据驱动。Referring to FIG. 1 , an embodiment of the present invention provides a simulation platform based on an Internet of Things management system, including a terminal simulation system and an Internet of Things platform automation system. In this embodiment, the terminal simulation system can be built by java. Specifically, java is an object-oriented programming language. The Java language has two characteristics of powerful functions and ease of use. It has the characteristics of simplicity, object-oriented, and distributed. It can write desktop applications, Web applications, distributed systems, and embedded system applications. The IoT platform automation system can be built through python+RF+selenium. Specifically, Python is a widely used interpreted, high-level, and general-purpose programming language. Python provides efficient high-level data structures and simple and effective object-oriented programming. Python's syntax and dynamic typing, as well as the interpreted nature of the language, make it a programming language for scripting and rapid application development on most platforms. Selenium is a Python library. RF (Robot Framework) is an open source software. It writes an automated test framework based on the Python language. It can write test cases and has good scalability. It is keyword-driven and also data-driven.

在本实施例中,终端模拟系统包括协议转发模块和终端模拟模块,终端模拟模块包括若干个类型的终端模拟器。协议转发模块用于根据消息模板下发指令确定目标协议,并将目标协议转发到对应的终端模拟器,使终端模拟器根据目标协议的内容模拟真实设备操作。物联网平台自动化系统包括南向模块和北向模块,南向模块用于将构建的消息模板下发指令发送到所述协议转发模块,并接收终端模拟器的模拟状态数据;北向模块与物联网管理系统连接,用于将南向模块发送的模拟状态数据转发到物联网管理系统或物联网管理平台。具体地,真实设备操作包括设备登录、事件上报、数据上报或指令下发响应等操作过程。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 to issue instructions according to the message template to determine the target protocol, and forward the target protocol to the corresponding terminal emulator, so that the terminal emulator simulates the real device operation according to the content of the target protocol. The automation system of the Internet of Things platform includes a southbound module and a northbound module. The southbound module is used to send instructions from the constructed message template to the protocol forwarding module and receive the simulated state data of the terminal emulator; the northbound module is connected with the Internet of Things management System connection, used to forward the simulated status data sent by the southbound module to the IoT management system or IoT management platform. Specifically, real device operations include device login, event reporting, data reporting, or instruction sending and response.

在本实施例中,终端模拟器包括HTTP、TCP、MQTT、LWM2M、JT/T808、Tlink、Modbus。具体地,HTTP(HyperText Transfer Protocol,超文本传输协议)是一种用于分布式、协作式和超媒体信息系统的应用层协议,是万维网的数据通信的基础,也是互联网应用最为广泛的一种网络传输协议。最初设计HTTP的目的是为了提供一种发布和接收HTML页面的方法。TCP(Transmission Control Protocol,传输控制协议)是一种面向连接的、可靠的、基于字节流的传输层通信协议,由IETF的RFC793定义。在简化的计算机网络OSI模型中,TCP完成第四层传输层所指定的功能,用户数据报协议(UDP)是同一层内另一个重要的传输协议。在因特网协议族(Internet protocol suite)中,TCP层是位于IP层之上,应用层之下的中间层。MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)是IBM开发的一个即时通讯协议,有可能成为物联网的重要组成部分。MQTT持所有平台,几乎可以把所有联网物品和外部连接起来,被用来当做传感器和致动器的通信协议。LWM2M(LightweightM2M,轻量级M2M)是一种轻量级的、标准通用的物联网设备管理协议,可用于快速部署客户端/服务器模式的物联网业务。Modbus是一个工业通信系统的总线协议。议是应用于电子控制器上的一种通用语言。通过Modbus协议,控制器相互之间、控制器经由网络(例如以太网)和其它设备之间可以通信。它已经成为一通用工业标准。有了Modbus协议,不同厂商生产的控制设备可以连成工业网络,进行集中监控。Modbus定义了一个控制器能认识使用的消息结构,而不管它们是经过何种网络进行通信的。当在一Modbus网络上通信时,Modbus协议决定了每个控制器须要知道它们的设备地址,识别按地址发来的消息,决定要产生何种行动。如果需要回应,控制器将生成反馈信息并用Modbus协议发出。在其它网络上,包含了Modbus协议的消息转换为在此网络上使用的帧或包结构。这种转换也扩展了根据具体的网络解决节地址、路由路径及错误检测的方法。In this embodiment, the terminal emulator includes HTTP, TCP, MQTT, LWM2M, JT/T808, Tlink, and Modbus. Specifically, HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) is an application layer protocol for distributed, collaborative and hypermedia information systems. It is the basis of data communication on the World Wide Web and the most widely used Internet Network transport protocol. HTTP was originally designed to provide a way to publish and receive HTML pages. TCP (Transmission Control Protocol, Transmission Control Protocol) is a connection-oriented, reliable, byte stream-based transport layer communication protocol defined by RFC793 of the IETF. In the simplified OSI model of computer networks, TCP completes the functions specified by the fourth layer transport layer, and User Datagram Protocol (UDP) is another important transport protocol in the same layer. In the Internet protocol suite (Internet protocol suite), the TCP layer is an intermediate layer located above the IP layer and below the application layer. MQTT (Message Queuing Telemetry Transport) is an instant messaging protocol developed by IBM, which may become an important part of the Internet of Things. MQTT supports all platforms, can connect almost all networked objects with the outside world, and is used as a communication protocol for sensors and actuators. LWM2M (Lightweight M2M, lightweight M2M) is a lightweight, standard and common IoT device management protocol, which can be used for rapid deployment of client/server mode IoT services. Modbus is a bus protocol for industrial communication systems. Protocol is a common language applied to electronic controllers. Through the Modbus protocol, the controllers can communicate with each other, the controllers via the network (such as Ethernet) and other devices. It has become a common industry standard. With the Modbus protocol, control devices produced by different manufacturers can be connected into an industrial network for centralized monitoring. Modbus defines a message structure that controllers can recognize and use regardless of the network over which they communicate. When communicating on a Modbus network, the Modbus protocol determines that each controller needs to know their device address, identify the message sent by the address, and decide what action to take. If a response is required, the controller will generate a feedback message and send it using the Modbus protocol. On other networks, messages involving the Modbus protocol are converted to the frame or packet structure used on this network. This conversion also extends the method of resolving node addresses, routing paths, and error detection according to the specific network.

当图1所示系统应用于实际模拟操作时,以设备登录为例,如图2所示,本发明实施例提供了一种基于物联网管理系统的仿真方法,包括但不限于以下步骤:When the system shown in Figure 1 is applied to the actual simulation operation, taking device login as an example, as shown in Figure 2, the embodiment of the present invention provides a simulation method based on the Internet of Things management system, including but not limited to the following steps:

步骤S210、启动终端模拟系统启动,开启监听模拟;Step S210, start the terminal simulation system to start, and start the monitoring simulation;

步骤S220、启动物联网平台自动化系统,执行设备登录用例;Step S220, start the IoT platform automation system, and execute the device login use case;

在本申请实施例中,首先在物联网管理系统创建产品设备,并获取产品设备参数。其中,产品设备参数包括产品万能钥匙MasterKey、设备ID或设备钥匙。同时构建消息模板,再通过消息模板将产品设备参数对应的指令发送到终端模拟系统的协议转发模块上。In the embodiment of this application, first create a product device in the Internet of Things management system, and obtain product device parameters. Wherein, the product device parameters include the product master key MasterKey, device ID or device key. At the same time, a message template is constructed, and then the instructions corresponding to the product device parameters are sent to the protocol forwarding module of the terminal simulation system through the message template.

步骤S230、终端模拟系统接收设备登录指令,根据设备登录指令模拟设备登录操作;Step S230, the terminal simulation system receives the device login instruction, and simulates the device login operation according to the device login instruction;

在本申请实施例中,首先终端模拟系统接收设备登录指令后,通过协议转发模块判断协议类型,将对应协议类型的协议转发至对应的终端模拟器,使得终端模拟器可以模拟设备真实操作过程。具体地,终端模拟器在接收到设备登录信息后,验证产品万能钥匙、设备ID、设备钥匙是否存在,若存在且信息真实,则执行模拟设备登录操作,并将仿真结果返回到物联网管理系统,从而便于测试人员了解仿真测试数据。In this embodiment of the application, firstly, after receiving the device login instruction, the terminal emulation system judges the protocol type through the protocol forwarding module, and forwards the protocol corresponding to the protocol type to the corresponding terminal emulator, so that the terminal emulator can simulate the real operation process of the device. Specifically, after receiving the device login information, the terminal emulator verifies whether the product master key, device ID, and device key exist. If it exists and the information is true, it performs a simulated device login operation and returns the simulation result to the IoT management system. , so that it is convenient for testers to understand the simulation test data.

步骤S240、物联网平台自动化系统校验设备登录是否成功,并生成仿真报告。Step S240, the automation system of the Internet of Things platform checks whether the device login is successful, and generates a simulation report.

在本申请实施例中,物联网平台自动化系统接收终端模拟器返回的信息,校验设备状态是否已激活状态,并根据校验结果和仿真测试结果生成仿真报告。In this embodiment of the application, the automation system of the Internet of Things platform receives the information returned by the terminal simulator, verifies whether the device status is activated, and generates a simulation report according to the verification result and the simulation test result.

综上可知,本申请实施例提供的一种基于物联网管理系统的仿真平台,无需依赖真实设备,即可模拟真实设备进行开发调试和测试,且支持多种协议,满足不同设备接入需求,缩短测试周期,大大提升了研发效率,解决了现有技术的测试方法需要依赖真实设备的问题,测试效率低,研发速度慢的问题。In summary, the embodiment of the present application provides a simulation platform based on the Internet of Things management system, which can simulate real devices for development, debugging and testing without relying on real devices, and supports multiple protocols to meet the access requirements of different devices. Shorten the test cycle, greatly improve the efficiency of research and development, and solve the problem that the test method of the existing technology needs to rely on real equipment, low test efficiency, and slow development speed.

上面结合附图对本发明实施例作了详细说明,但是本发明不限于上述实施例,在所属技术领域普通技术人员所具备的知识范围内,还可以在不脱离本发明宗旨的前提下作出各种变化。此外,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互组合。The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments, and within the scope of knowledge of those of ordinary skill in the art, various modifications can be made without departing from the spirit of the present invention. Variety. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other if there is no 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 (2)

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
PCT/CN2023/142771 WO2024140914A1 (en) 2022-12-29 2023-12-28 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 (2)

Country Link
CN (1) CN116192656A (en)
WO (1) WO2024140914A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024140914A1 (en) * 2022-12-29 2024-07-04 天翼物联科技有限公司 Simulation platform and simulation method based on internet-of-things management system
CN118827451A (en) * 2024-04-01 2024-10-22 中移物联网有限公司 Test system, method, device, storage medium and computer program product

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119011631B (en) * 2024-10-21 2024-12-31 北京万相信息技术有限公司 Automatic discovery internet of things protocol access device and access method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014063543A1 (en) * 2012-10-22 2014-05-01 中兴通讯股份有限公司 Implementation method and device for virtual southbound interface and internet of things management platform
US20190068455A1 (en) * 2017-08-31 2019-02-28 Artis Consulting, L.P. System and Method for IoT Device Signal Simulation
CN112600889A (en) * 2020-12-03 2021-04-02 北京中电普华信息技术有限公司 Internet of things simulation platform and simulation method
CN114374632A (en) * 2022-01-10 2022-04-19 北京中电兴发科技有限公司 Internet of things data platform multi-protocol test efficiency improvement method
CN114928565A (en) * 2022-01-29 2022-08-19 浙江浩瀚能源科技有限公司 Internet of things testing method and system for simulating hardware equipment
CN114944998A (en) * 2022-03-14 2022-08-26 华南理工大学 Internet of things system testing method and device based on simulator

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092771A (en) * 2019-12-24 2020-05-01 浙江航天恒嘉数据科技有限公司 Internet of things simulation test platform
CN113872820B (en) * 2020-06-30 2023-05-05 中国电信股份有限公司 Internet of things service simulation method, system and related equipment
US20220156433A1 (en) * 2020-11-13 2022-05-19 Rockwell Automation Technologies, Inc. Industrial network communication emulation
CN113162823B (en) * 2021-04-06 2022-10-21 广州鲁邦通物联网科技股份有限公司 A kind of APP test simulation system and Internet of things simulation test method
CN116192656A (en) * 2022-12-29 2023-05-30 天翼物联科技有限公司 Simulation platform and simulation method based on Internet of things management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014063543A1 (en) * 2012-10-22 2014-05-01 中兴通讯股份有限公司 Implementation method and device for virtual southbound interface and internet of things management platform
US20190068455A1 (en) * 2017-08-31 2019-02-28 Artis Consulting, L.P. System and Method for IoT Device Signal Simulation
CN112600889A (en) * 2020-12-03 2021-04-02 北京中电普华信息技术有限公司 Internet of things simulation platform and simulation method
CN114374632A (en) * 2022-01-10 2022-04-19 北京中电兴发科技有限公司 Internet of things data platform multi-protocol test efficiency improvement method
CN114928565A (en) * 2022-01-29 2022-08-19 浙江浩瀚能源科技有限公司 Internet of things testing method and system for simulating hardware equipment
CN114944998A (en) * 2022-03-14 2022-08-26 华南理工大学 Internet of things system testing method and device based on simulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024140914A1 (en) * 2022-12-29 2024-07-04 天翼物联科技有限公司 Simulation platform and simulation method based on internet-of-things management system
CN118827451A (en) * 2024-04-01 2024-10-22 中移物联网有限公司 Test system, method, device, storage medium and computer program product

Also Published As

Publication number Publication date
WO2024140914A1 (en) 2024-07-04

Similar Documents

Publication Publication Date Title
CN116192656A (en) Simulation platform and simulation method based on Internet of things management system
Milenkovic Internet of things: concepts and system design
CN106936932B (en) A way to access robot software packages via cloud service protocol
CN111897300B (en) OPC-UA-based software/hardware joint simulation system and self-adaptive coordination method thereof
US8726298B1 (en) Cloud-based instrument driver system
CN112988485B (en) Simulation test methods and devices for power Internet of Things equipment
CN110495149B (en) Data transmission method and device
US20160173349A1 (en) Simulator for testing a gateway device
CN118509471A (en) A method for connecting a device with an Internet of Things platform using a large language model
CN109684195A (en) Electronic device, script conversion method and storage medium
US9800490B2 (en) Testing by simulation using variations of real-time traffic
Li et al. Native Network Digital Twin Architecture for 6G: From Design to Practice
US9819741B1 (en) Device for sensor simulation using constrained application protocol
Peniak et al. Extended gateway model for OPC UA/IoT device integration
CN114553941B (en) A service dialing test method and device based on RPC communication
Bogomazov et al. Implementation of Information and Measurement Systems at the Base of Specialized Internet Protocols
CN116980443A (en) Remote operation and maintenance mechanism for lightweight desktop Internet of things equipment
US11216424B2 (en) Dynamically rendering an application programming interface for internet of things applications
CN117426079A (en) Automated application service detection for configuring industrial communication networks
CN111106975B (en) A test method, device and computer-readable storage medium
Steffen et al. A novel interface between the linux kernel and ns-3 for assessing target software in wlan-systems
CN110830274A (en) Communication equipment simulation method and device
Lekidis Automated Code Generation for Industrial Applications Based on Configurable Programming Models
Tong et al. DeviceNetSim: DeviceNet Network Behavior Simulator Based on Protocol Feature and State Modeling
Vavrečková Compatibility of IR Colonies and Protocols for Communication between IoT devices

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