An internet of things practical training system and method
The device management and function building subsystems in the IoT training system solve the problem of combining IoT teaching with engineering project applications. They enable data association and control between simulation and real scenarios, support the creation of virtual devices, and achieve seamless integration of IoT training with engineering projects, thus promoting the integration of industry, academia, and research.
Patent Information
- Application Number
- CN202310426543.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-04-19
AI Technical Summary
Currently, there is a lack of platforms that integrate IoT teaching with engineering project applications, making it difficult for students to participate in the construction of engineering projects.
An IoT training system is provided, including a device management subsystem, a function building subsystem, and an operation subsystem. A simulation scenario is built through a function editing platform to realize data association and control between the first device model and real IoT devices. It supports the creation of virtual devices and data flow configuration, and achieves seamless connection between simulation scenario and real scenario.
It achieves a seamless connection between IoT training and engineering projects, allowing students to apply the developed software and hardware solutions in a real environment, thus realizing the integration of industry, academia, and research.
Smart Images

Figure CN116504111B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things, and particularly relates to an Internet of Things practical training system and method. BACKGROUND
[0002] With the popularity of the Internet of Things, the Internet of Things is widely applied in a smart campus. The application of the Internet of Things includes Internet of Things related teaching and real Internet of Things project application. The Internet of Things teaching mainly uses teaching aids and derived courses related to Bluetooth, Wireless Fidelity (WiFi), ZigBee technology and the like, and is inclined to basic principles and basic practice. The Internet of Things project application is too inclined to engineering application, and students are difficult to participate in the construction of engineering projects. At present, there is no platform combining the Internet of Things teaching and the Internet of Things engineering project application. SUMMARY
[0003] To solve the existing technical problems, the present application provides an Internet of Things practical training system and method.
[0004] To achieve the above-mentioned purposes, the technical scheme of the present application is as follows:
[0005] In a first aspect, the present application provides an Internet of Things practical training system, comprising a device management subsystem, a function building subsystem and a running subsystem; wherein,
[0006] The device management subsystem is configured to manage the Internet of Things devices and interact with the Internet of Things devices.
[0007] The function building subsystem is configured to build a simulation scene based on a function editing platform.
[0008] The running subsystem is configured to demonstrate the built simulation scene.
[0009] The function building subsystem is further configured to obtain a first device model related to the simulation scene based on the function editing platform, and associate the demonstration data of the first device model in the simulation scene with the interaction data of a first Internet of Things device managed by the device management subsystem.
[0010] In the scheme, the demonstration data includes first device data and / or first control data; the device management subsystem is configured to obtain second device data of the first Internet of Things device; the function building subsystem is configured to determine the first device data based on the second device data; and / or, the function building subsystem is configured to obtain first control data of the first device model based on the function editing platform; and the device management subsystem is configured to determine second control data sent to the first Internet of Things device based on the first control data.
[0011] In the scheme, the device management subsystem is further configured to send the interaction data of the associated first Internet of Things device to an Internet of Things application platform.
[0012] In the scheme, the device management subsystem is configured to obtain transmission data of the first Internet of Things device, analyze the transmission data, and obtain second device data of the first Internet of Things device based on the analyzed transmission data.
[0013] In the scheme, the function building subsystem is configured to associate the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem based on the identification information of the first Internet of Things device.
[0014] In the scheme, the device management subsystem is further configured to create a corresponding virtual device based on an Internet of Things device, and generate device data of the virtual device; and the function building subsystem is further configured to obtain a second device model related to the simulation scene based on the function editing platform, and associate demonstration data of the second device model in the simulation scene with device data of the virtual device generated by the device management subsystem.
[0015] In the scheme, the device management subsystem is configured to determine a data flow configuration rule of a corresponding virtual device according to device data of an Internet of Things device, and generate device data of the virtual device based on the data flow configuration rule.
[0016] In the scheme, the function building subsystem is further configured to generate a device model library of the function editing platform based on the Internet of Things devices managed by the device management subsystem; and the first device model and / or the second device model are built based on the device model library.
[0017] In the scheme, the simulation scene includes at least one function page; and the function building subsystem is further configured to perform display configuration and / or data configuration on each function page included in the simulation scene.
[0018] In a second aspect, the embodiments of the present application also provide an Internet of Things practical training method, applied to the Internet of Things practical training system described in the foregoing embodiments; the method comprises:
[0019] The device management subsystem manages the Internet of Things devices and interacts with the Internet of Things devices;
[0020] The function building subsystem builds the simulation scene based on the function editing platform;
[0021] The running subsystem demonstrates the built simulation scene;
[0022] The function building subsystem obtains the first device model related to the simulation scene based on the function editing platform, and associates the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem.
[0023] In the foregoing scheme, the demonstration data comprises first device data and / or first control data; the association of the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem comprises: the device management subsystem obtains second device data of the first Internet of Things device; the function building subsystem determines the first device data based on the second device data; and / or, the function building subsystem obtains first control data of the first device model based on the function editing platform; the device management subsystem determines second control data sent to the first Internet of Things device based on the first control data.
[0024] In the foregoing scheme, the method further comprises: the device management subsystem sends the associated interaction data of the first Internet of Things device to an Internet of Things application platform.
[0025] In the foregoing scheme, the device management subsystem obtains second device data of the first Internet of Things device, comprising: the device management subsystem obtains transmission data of the first Internet of Things device, analyzes the transmission data, and obtains the second device data of the first Internet of Things device based on the analyzed transmission data.
[0026] In the foregoing scheme, the association of the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem comprises: the function building subsystem associates the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem based on the identification information of the first Internet of Things device.
[0027] In the scheme, the method further comprises: the device management subsystem creates a corresponding virtual device based on the Internet of Things device, and generates device data of the virtual device; the function building subsystem obtains a second device model related to the simulation scene based on the function editing platform, and associates demonstration data of the second device model in the simulation scene with the device data of the virtual device generated by the device management subsystem.
[0028] In the scheme, the generation of the device data of the virtual device comprises: the device management subsystem determines a data flow configuration rule of the corresponding virtual device according to device data of the Internet of Things device, and generates the device data of the virtual device based on the data flow configuration rule.
[0029] In the scheme, the method further comprises: the function building subsystem generates a device model library of the function editing platform based on the Internet of Things device managed by the device management subsystem; and the first device model and / or the second device model are built based on the device model library.
[0030] In the scheme, the simulation scene comprises at least one function page; and the function building subsystem builds the simulation scene based on the function editing platform, comprising: the function building subsystem performs display configuration and / or data configuration on each function page included in the simulation scene.
[0031] The embodiment of the application provides an Internet of Things practical training system and method, which builds a required simulation scene by using a function building subsystem, supports demonstration by using a first device model, simultaneously associates the first device model with a real Internet of Things device, and maps a virtual simulation control process on the real Internet of Things device to establish real interaction control, realizes real application of practical training content, realizes seamless connection of Internet of Things practical training and Internet of Things projects, and realizes real combination of production, learning and research. BRIEF DESCRIPTION OF DRAWINGS
[0032] Figure 1 FIG. 1 is a schematic diagram of a composition structure of an Internet of Things practical training system according to an embodiment of the application;
[0033] Figure 2 FIG. 2 is an example diagram of an editing interface of a function editing platform according to an embodiment of the application;
[0034] Figure 3 FIG. 3 is a schematic diagram of a flow of an Internet of Things practical training method according to an embodiment of the application;
[0035] Figure 4 FIG. 4 is a schematic diagram of an example architecture of an Internet of Things practical training system according to an embodiment of the application;
[0036] Figure 5A flowchart of a process of connecting a device model with an Internet of Things device for the Internet of Things practical training system of the embodiment of the present application;
[0037] Figure 6 An example diagram of a simulation scene built for the Internet of Things practical training system of the embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings, and the described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0039] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0040] In the following description, the terms "first / second / third" are only to distinguish similar objects, and do not represent a specific order of the objects, and it can be understood that "first / second / third" can be interchanged with a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0042] In order to better understand the embodiments of the present application, the following are described through some scenario embodiments:
[0043] In one embodiment, the Internet of Things practical training system can be used for teaching and learning, testing before device online, or engineering project application testing, etc.
[0044] In one embodiment, the Internet of Things practical training system includes a function editing platform for virtual simulation of a scene. The function editing platform can provide a model library and / or animation interaction. The model library can allow students to design works using various elements according to needs. The animation interaction can enable interaction between works. For example, the Internet of Things practical training system can be a smart classroom or a smart campus page for a campus scene, and the elements in the scene can include various walls, tables, light-emitting diode (LED) lights, air conditioners, etc., and the interaction between scene elements is realized by animation design.
[0045] The application will be described in further detail below with reference to the drawings and specific embodiments.
[0046] The application provides an Internet of Things practical training system. Figure 1 A schematic diagram of the composition structure of the Internet of Things practical training system of the application is shown in Figure 1 The Internet of Things practical training system 10 includes a device management subsystem 11, a function building subsystem 12 and a running subsystem 13; wherein,
[0047] The device management subsystem 11 is configured to manage Internet of Things devices and interact with the Internet of Things devices.
[0048] The function building subsystem 12 is configured to build a simulation scene based on a function editing platform.
[0049] The running subsystem 13 is configured to demonstrate the built simulation scene.
[0050] The function building subsystem 12 is further configured to obtain a first device model related to the simulation scene based on the function editing platform, and associate the demonstration data of the first device model in the simulation scene with the interaction data of a first Internet of Things device managed by the device management subsystem 11.
[0051] Optionally, the Internet of Things practical training system can adopt a browser and server architecture (Browser / Server Architecture, B / S architecture), wherein the Internet of Things practical training system can run on a cloud server and can be accessed and logged in through a browser or an application program.
[0052] In an embodiment, the device management subsystem 11 is responsible for at least the management of Internet of Things devices, can support the connection of various Internet of Things devices, and can be used for device analysis, device registration, virtual device, data push management and the like of Internet of Things devices. As an example, the device management subsystem 11 can be implemented based on an Internet of Things platform.
[0053] In an embodiment, the function building subsystem 12 is responsible for building a function page corresponding to a simulation scene, and can be used for data configuration, display configuration, variable configuration, basic setting, rule configuration and / or animation interaction and the like of the function page.
[0054] In an embodiment, the running subsystem 13 is responsible for running the built simulation scene, and can be used for scene page display, device running monitoring, virtual human-computer interaction and the like.
[0055] In an embodiment, the simulation scene can be a campus scene, a classroom scene, etc., and the first device model related to the simulation scene can be a virtual simulation device model in the simulation scene built based on the function editing platform, such as a virtual simulation device model for demonstration. In a classroom scene, the first device model can be a virtual simulation device model of an Internet of Things device such as a temperature and humidity sensor, an intelligent switch for controlling an LED lamp, an air conditioner controller, etc. As an example, the first device model is obtained based on a first operation on the function editing platform, which can include a click operation, a key operation, a touch screen operation, or a voice operation of a user through an external device, etc.
[0056] In an embodiment, the demonstration data of the first device model in the simulation scene is, for example, related data of the first device model running in the simulation scene, which can include output type data, control type data, attribute type data, etc. For example, for a first device model simulating a temperature and humidity sensor, the demonstration data can include output temperature data, humidity data, etc., and for a first device model simulating an intelligent switch, the demonstration data can include switch state data, data for controlling the switch state, etc.
[0057] In an embodiment, the demonstration data of the first device model can be generated based on a virtual device in the device management subsystem. That is, the device management subsystem can also manage virtual devices generated based on Internet of Things devices and configure corresponding virtual device data, thereby generating the demonstration data of the first device model.
[0058] In an embodiment, the interaction data of the first Internet of Things device is, for example, related data obtained by the device management subsystem 11 in the process of data interaction with the first Internet of Things device, which can include device running data, device attribute data, control data for controlling the first Internet of Things device, etc. In this embodiment, the first Internet of Things device is any one of at least one Internet of Things device managed by the device management subsystem 11, and the first Internet of Things device is of the same type as the first device model, such as the same device model.
[0059] In an embodiment, the function building subsystem 12 associates the demonstration data of the first device model with the same type of data in the interaction data of the first Internet of Things device.
[0060] The Internet of Things practical training system provided by the embodiment of the application can provide a function editing platform, build a required simulation scene by using a function building subsystem, support demonstration by a virtual device model, can associate the virtual device model and a real Internet of Things device, can map a control process of virtual simulation on a real Internet of Things device, establish real interactive control, can further dock running data of a practical training process to a real Internet of Things project application, realize real application of practical training content, realize seamless connection of Internet of Things practical training and Internet of Things projects, and achieve real combination of production, learning and research.
[0061] In an optional embodiment of the application, the demonstration data includes first device data and / or first control data; the device management subsystem 11 is configured to obtain second device data of the first Internet of Things device; the function building subsystem 12 is configured to determine the first device data based on the second device data; and / or, the function building subsystem 12 is configured to obtain first control data of the first device model based on the function editing platform; and the device management subsystem 11 is configured to determine second control data sent to the first Internet of Things device based on the first control data.
[0062] In this embodiment, the first device data includes device data of the first device model in the simulation scene for demonstration, and the first control data includes data for controlling the first device model in the simulation scene. That is, the first device data can be understood as a mapping of second device data generated in a real running process of the first Internet of Things device associated with the first device model in the simulation scene, and the first control data can be understood as a mapping of second control data for controlling the real running of the first Internet of Things device associated with the first device model in the simulation scene. Correspondingly, the interactive data between the device management subsystem and the first Internet of Things device includes second device data and / or second control data, that is, the second device data is device data generated in the actual running of the first Internet of Things device, and the second control data is control data for controlling the first Internet of Things device.
[0063] In an embodiment, the device management subsystem 11 obtains second device data of the first Internet of Things device based on data interaction with the first Internet of Things device, and the function building subsystem 12 determines first device data of the first device model for demonstration in the simulation scene based on the second device data. In this embodiment, the device management subsystem can push running data of a real Internet of Things device to the function building subsystem after docking the real Internet of Things device, to realize data display of the real Internet of Things device.
[0064] In an embodiment, the function building subsystem 12 obtains first control data of the first device model based on the function editing platform, and the device management subsystem 11 determines second control data sent to the first Internet of Things device based on the first control data. In this embodiment, after the device management subsystem interfaces with the real Internet of Things device, the user can issue the control data of the first device model based on the function editing platform to the real Internet of Things device to realize the downlink control of the Internet of Things device.
[0065] The Internet of Things training system can associate the device model with the real Internet of Things device, realize the data collection and control of the Internet of Things device based on the training system, and demonstrate the real data.
[0066] In an optional embodiment of the present application, the device management subsystem 11 is further configured to send the interaction data of the associated first Internet of Things device to the Internet of Things application platform. In this way, the demonstration of the first device model in the simulation scene and the interaction control of the first Internet of Things device in the real scene can be associated, the data synchronization of the simulation scene and the real Internet of Things device can be realized, and the device running data can be pushed to the Internet of Things application of the real project.
[0067] In an embodiment, the device management subsystem 11 can push the corresponding data to the Internet of Things application platform or application software of the real project by means of data pushing or interface calling.
[0068] The Internet of Things training system can support pushing the data to the Internet of Things application platform or application software of the real project by means of data pushing after the device management subsystem interfaces with the real Internet of Things device. The software and hardware scheme developed by the students based on the Internet of Things training system can be directly used in the real environment under the condition of meeting the engineering application, and the combination of production, teaching and research is realized.
[0069] In an optional embodiment of the present application, the device management subsystem 11 is configured to obtain transmission data of the first Internet of Things device, analyze the transmission data, and obtain second device data of the first Internet of Things device based on the analyzed transmission data.
[0070] In this embodiment, the device management subsystem 11 can also analyze the Internet of Things device to obtain the device data of the Internet of Things device. For example, the device management subsystem 11 can analyze the transmission data based on the communication protocol of the first Internet of Things device.
[0071] In an optional embodiment of the present application, the function building subsystem 12 is configured to associate the demonstration data of the second device model in the simulation scene with the device data of the virtual device generated by the device management subsystem 11 based on the identification information of the first Internet of Things device.
[0072] In the present embodiment, the identification information can be a device number, a device model number, a device identification number, or the like. Optionally, the device management subsystem 11 can also register the Internet of Things device to obtain the identification information of the Internet of Things device, such as the device number. For example, when registering the device, the user can fill in the device product number provided by the device itself in the device management subsystem. Thus, after the user associates the model with the device on the function editing platform, the user can associate the corresponding device model with the real device based on the device product number.
[0073] In an optional embodiment of the present application, the device management subsystem 11 is configured to create a corresponding virtual device based on the Internet of Things device and generate device data of the virtual device. The function building subsystem 12 is configured to obtain a second device model related to the simulation scene based on the function editing platform and associate the demonstration data of the second device model in the simulation scene with the device data of the virtual device generated by the device management subsystem 11.
[0074] In the present embodiment, in order to facilitate the practical training debugging, the Internet of Things practical training system also supports the management of virtual devices and generates virtual device data streams, the content of which is consistent with the real device data streams. The function building subsystem can demonstrate the device data of the virtual device in the simulation scene by associating the demonstration data of the second device model with the device data of the virtual device.
[0075] In an embodiment, the demonstration data of the second device model can include third device data. The function building subsystem determines the third device data of the second device model for demonstration in the simulation scene based on the device data of the virtual device.
[0076] In an optional embodiment of the present application, the device management subsystem 11 is configured to determine a data stream configuration rule of the corresponding virtual device according to the device data of the Internet of Things device and generate the device data of the virtual device based on the data stream configuration rule. In the present embodiment, the device management subsystem 11 can support the configuration of a virtual data stream generation mechanism of the virtual device corresponding to the Internet of Things device.
[0077] In an embodiment, the device management subsystem 11 can also register the virtual device, push data, and the like. Optionally, the virtual device can be configured with identification information, such as a device number created by the device management subsystem when creating the virtual device.
[0078] In an optional embodiment of the present invention, the function building subsystem 12 is further configured to generate a device model library for the function editing platform based on the IoT devices managed by the device management subsystem 11; the first device model and / or the second device model are built based on the device model library.
[0079] In one embodiment, the function building subsystem can also generate a device model library for the function editing platform based on user-defined methods. That is, the function editing platform in this embodiment can support users accessing custom device models and real-world IoT device models.
[0080] Figure 2 This is an example diagram of the editing interface of the function editing platform according to an embodiment of the present invention, such as... Figure 2 As shown, this exemplary editing interface mainly consists of four parts: the top is the menu bar, the left is the material library, the middle is the page editing box, and the right is the page and component list.
[0081] The menu bar contains information components such as File, Edit, Configuration, and Tools, which are used to perform basic page editing and configuration operations.
[0082] The resource library can be hierarchically divided into components such as the page library, model library, and element library. The page library integrates page templates, allowing users to generate a page in the page editing box through selection. The generated page can be used for quick editing of a specific simulation scenario page, such as a smart classroom or smart campus page for a campus scenario. The model library includes various physical models of scenarios and IoT device models (i.e., the device model library). It is a collection of commonly used models. For example, in a smart classroom scenario, physical models often include walls, tables, LED lights, and air conditioners, while IoT devices include temperature and humidity sensors, smart switches for controlling LED lights, and air conditioner controllers for controlling air conditioners. Models can be quickly added and edited on the page through the model library. The element library is a collection of the most basic elements, including lines, rectangles, text, curves, and images. It offers the highest flexibility and can be added directly to the page. Users can also generate custom model libraries by combining frequently used elements for later use. The page editing box is used to edit the specific content of the page.
[0083] Figure 2 Only one of the page list and component list can be displayed at a time. You can select the corresponding list to display by clicking on "Page Directory" or "Component Directory".
[0084] based on Figure 2The function editing platform shown can select a first device model from a model library when editing a simulation scene page, and then can associate the first device model with a real Internet of Things device to realize data acquisition and downlink control of the real Internet of Things device.
[0085] The Internet of Things practical training system of the embodiment can provide a rich model library according to a scene theme, can enable a user to quickly build a simulation scene page, and realizes the function of the corresponding application scene.
[0086] In an embodiment, the function building subsystem and the device management subsystem can be bound according to a project dimension. Only devices in the device management subsystem that belong to the same project are visible to the function building subsystem, the association of a device model and a real device can be realized through an associated device number, and the device management subsystem and the function building subsystem of different projects are independent of each other, and the devices are not visible.
[0087] In an optional embodiment of the present application, the simulation scene includes at least one function page; the function building subsystem 12 is further configured to perform display configuration and / or data configuration on each function page included in the simulation scene.
[0088] In the embodiment, one simulation scene can be composed of one or more function pages, and each function page can include display configuration and / or data configuration. The display configuration is used for configuration of a front-end display page, is used for configuration of specific content displayed in the page, and can include basic settings and animation interaction, etc. The basic settings are used for setting model types, layout positions, sizes, background colors, etc. displayed, and the animation interaction is used for animation interaction configuration between training scene content and a computer input device, between scene content and scene content, and between pages. The data configuration is used for configuration of data variables and control rules. The data variable is an intermediate quantity connecting a front-end display page and a back-end control logic, and can also be a bridge for communication between different devices (for example, different Internet of Things devices, different device models, and device models and Internet of Things devices). Through the data variable, a rule engine can be configured, an alarm rule can be generated, and device linkage control can be realized, etc.
[0089] The embodiment of the present application further provides an Internet of Things practical training method, which is applied to the Internet of Things practical training system described in the foregoing embodiments. Figure 3 A flowchart of the Internet of Things practical training method of the embodiment of the present application is shown in FIG. 2. Figure 3 As shown in FIG. 2, the method includes the following steps.
[0090] In step 201, the device management subsystem manages an Internet of Things device and performs data interaction with the Internet of Things device.
[0091] In step 202, the function building subsystem builds the simulation scene based on the function editing platform; wherein the function building subsystem obtains the first device model related to the simulation scene based on the function editing platform, and associates the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem;
[0092] In step 203, the running subsystem demonstrates the built simulation scene.
[0093] The Internet of Things training method of the embodiment of the application belongs to the same concept as the Internet of Things training system of the foregoing embodiment, and the specific implementation process can be seen from the system embodiment, which will not be described here.
[0094] In an optional embodiment of the application, the demonstration data includes first device data and / or first control data; the association of the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem includes: the device management subsystem obtains second device data of the first Internet of Things device; the function building subsystem determines the first device data based on the second device data; and / or, the function building subsystem obtains first control data of the first device model based on the function editing platform; the device management subsystem determines second control data sent to the first Internet of Things device based on the first control data
[0095] In an optional embodiment of the application, the method further includes: the device management subsystem sends the associated interaction data of the first Internet of Things device to an Internet of Things application platform.
[0096] In an optional embodiment of the application, the device management subsystem obtains second device data of the first Internet of Things device, including: the device management subsystem obtains transmission data of the first Internet of Things device, analyzes the transmission data, and obtains the second device data of the first Internet of Things device based on the analyzed transmission data.
[0097] In an optional embodiment of the application, the association of the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem includes: the function building subsystem associates the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem based on the identification information of the first Internet of Things device.
[0098] In an optional embodiment of the present application, the method further comprises: the device management subsystem creating a corresponding virtual device based on the Internet of Things device, and generating device data of the virtual device; and the function building subsystem obtaining a second device model related to the simulation scene based on the function editing platform, and associating demonstration data of the second device model in the simulation scene with the device data of the virtual device generated by the device management subsystem.
[0099] In an optional embodiment of the present application, the generation of the device data of the virtual device comprises: the device management subsystem determining a data flow configuration rule of the corresponding virtual device according to device data of the Internet of Things device, and generating the device data of the virtual device based on the data flow configuration rule.
[0100] In an optional embodiment of the present application, the method further comprises: the function building subsystem generating a device model library of the function editing platform based on the Internet of Things devices managed by the device management subsystem; and the first device model and / or the second device model are built based on the device model library.
[0101] In an optional embodiment of the present application, the simulation scene comprises at least one function page; and the function building subsystem builds the simulation scene based on the function editing platform, comprising: the function building subsystem performs display configuration and / or data configuration on each function page included in the simulation scene.
[0102] The Internet of Things training scheme of the embodiments of the present application will be described below in combination with specific application scenarios.
[0103] Figure 4 An exemplary architecture diagram of the Internet of Things training system of the embodiments of the present application is shown in FIG. 3. Figure 4 As shown in FIG. 3, the Internet of Things training system 30 is composed of a device management subsystem 31, a function building subsystem 32 and a running subsystem 33. The device management subsystem 31 can be responsible for the management of the Internet of Things devices, and implements device analysis, device registration, virtual device, data push management and the like of the Internet of Things devices, and supports interfacing with various Internet of Things devices. The function building subsystem 32 can be responsible for building corresponding simulation scenes, and utilizes the Internet of Things devices and device models in the simulation scenes for association and data interaction. The running subsystem 33 can be used for running the built simulation scenes, including scene page display, device running monitoring, virtual human-computer interaction and the like.
[0104] The Internet of Things training system 30 in the present example supports interfacing with various real Internet of Things devices 40.
[0105] The Internet of Things training system 20 of the present example also supports pushing the running data of the interfaced Internet of Things device to the Internet of Things application platform 50, for example, pushing the corresponding data to the Internet of Things application platform (or application software) of the real project through data pushing or interface calling.
[0106] Figure 5 The flowchart of interfacing the device model with the Internet of Things device for the Internet of Things training system of the present example is shown in Figure 5 , which includes:
[0107] Step 601, define the product model of the hardware device in the device management subsystem, and fill in the product basic information.
[0108] Step 602, define the product model in the device management subsystem, and obtain the device data according to the product communication protocol analysis.
[0109] Step 603, configure the virtual data flow generation mechanism corresponding to the product model.
[0110] Step 604, register and activate the virtual device in the device management subsystem, generate the corresponding virtual device data, and realize the function display of the function editing platform.
[0111] Step 605, set the device model in the simulation scene to the real hardware device, display the real data and / or downlink control hardware device.
[0112] The steps 601 to 605 will be described in detail below by taking the Internet of Things training system 30 shown in Figure 4 as an example, which builds a smart campus Internet of Things monitoring page for the campus scene.
[0113] In step 601, various Internet of Things devices can be added in the device management subsystem 31, such as temperature and humidity sensors, intelligent switches for controlling LED lights, air conditioner controllers for controlling air conditioners, human body infrared sensors for detecting whether there is a person, etc., and the product basic information of each Internet of Things device is added, such as device model, device type, device number, device function information, device configuration information, etc.
[0114] In step 602, the device data is obtained by analyzing the device transmission data according to the communication protocol.
[0115] Taking the temperature and humidity sensor as an example, Table 1 is an example of the functional parameters of the temperature and humidity sensor after analysis. The most core function of the temperature and humidity sensor is to monitor temperature and humidity, and therefore the two most important parameters are temperature and humidity. Optionally, the device management subsystem 31 can define and write an analysis program through the device physical model of the temperature and humidity sensor to analyze the device, for example, to convert the received 16 hexadecimal data into more readable JavaScript Object Notation (JSON) field data. For example, the device reports data of "1838". According to the product communication application protocol, it can be determined that the first byte of the reported data represents temperature and the second byte represents humidity, and the temperature and humidity data do not need to be operated in various ways. The 16 hexadecimal value represents the real temperature and humidity physical value. Therefore, the temperature can be analyzed to be 24°C, the humidity can be analyzed to be 56%, and it can also be converted into JSON format, for example:
[0116]
[0117] Table 1
[0118] Serial number Parameter description Attribute field Attribute value Physical meaning 1 Temperature temperature 24 24℃ 2 Humidity humidity 56 56%
[0119] In step 603, based on the device data obtained by analysis, a corresponding virtual data flow generation mechanism can be configured to generate a data flow of a virtual device, the content of which is consistent with the data flow reported by the real device.
[0120] In step 604, the virtual device can also be registered in the device management subsystem 31, and the virtual data flow of the virtual device can be generated based on the virtual data flow generation mechanism, thereby realizing the function display of the function editing platform. For example, the virtual device corresponding to the temperature and humidity sensor can include two attributes of temperature and humidity, and the virtual data of the two attributes can be configured to generate a virtual data flow. After the virtual device is associated with the device model obtained based on the function editing platform, the configured temperature and humidity (unit: °C) and humidity value (unit: %) can be automatically reported in the simulation scene.
[0121] In step 605, the demonstration data of the device model in the simulation scene is associated with the data of the real hardware device. Optionally, the association can be realized based on the identification information (such as the device number) corresponding to the device.
[0122] Exemplarily, a temperature and humidity sensor device model can be added to the function editing platform, placed at the corresponding spatial position, and associated with a specific temperature and humidity sensor device through the device number to obtain device data. At the same time, the device data content can be displayed through the animation interaction of the device model. For example, it can be set to default display the temperature and humidity sensor data, or it can be set to display the device data only when the mouse is placed on or clicks the device model. Alarms can also be configured through rule configuration in the function editing platform. For example, for the temperature and humidity sensors in the school computer room, when its temperature value exceeds a certain value, such as 65 °C, an alarm is triggered, and the alarm information or alarm log is displayed on the corresponding function page.
[0123] In addition to temperature and humidity sensors, for example, intelligent switch devices can also be added to control LED lights. A model of an intelligent switch can be added to the page based on the function editing platform, and then it can be associated with an intelligent switch device in a device management subsystem through the device number. Further, data association can be performed between the intelligent switch device and the intelligent switch model in the simulation scenario. For example, when the intelligent switch is pressed down, the switch state attribute in the intelligent switch model is set to on, for example, configuring the data {"key_on_off": 1}, and when the switch is pressed down, the switch state attribute in the intelligent switch model is set to off, for example, configuring the data {"key_on_off": 0}; at the same time, the LED light model can also be associated. For example, the state of the LED light model is also associated with the field key_on_off, and it is set that when key_on_off = 1, the LED light model in the simulation scenario is displayed brightly, and when key_on_off = 0, the LED light model in the simulation scenario is displayed in gray, so as to realize the training test of the LED light.
[0124] Figure 6 An example diagram of the simulation scenario built for the Internet of Things training system of the embodiment of the present invention is as Figure 6 shown. In this training system, the Internet of Things device models in the scenario can be associated with real hardware device numbers, so as to realize the display of real device data, alarm information, and linkage control between devices, etc. For example Figure 6 the information such as "Internet of Things device status", "alarm situation", "device operation statistics", "alarm log", "energy consumption statistics", etc.
[0125] The Internet of Things training system 30 also supports docking with the Internet of Things application platform. For example, relevant fire data can be accessed by connecting to a fire host, and energy consumption statistics can be realized by connecting to meters (electric meters and water meters). After the connection is established, the training data can be pushed to the Internet of Things application platform or application software of a real project through data push. Thus, if the Internet of Things application implemented by students based on the training system meets the engineering application conditions, they can apply to use it in real engineering application projects, realizing the combination of production, learning, and research.
[0126] The embodiment of the present application further provides a server, comprising a processor and a memory for storing a computer program capable of running on the processor, when the processor runs the computer program, the steps of the method in the foregoing one or more technical solutions are executed.
[0127] The embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium stores computer executable instructions, after the computer executable instructions are executed by the processor, the method in the foregoing one or more technical solutions can be realized.
[0128] The computer storage medium provided by the embodiment can be a non-transient storage medium. In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented by other ways. The device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division mode, for example, a plurality of units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the indirect combination or communication connection between the components or units shown or discussed can be through some interface, indirect combination or communication connection of the devices or units can be electrical, mechanical or other forms.
[0129] The units described above as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units: according to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0130] In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be a unit alone, or two or more units can be integrated into one unit: the integrated unit can be realized in the form of hardware, or in the form of hardware plus software functional unit.
[0131] In some cases, any two of the above technical features can be combined into a new method technical solution without conflict.
[0132] In some cases, any two of the above technical features can be combined into a new device technical solution without conflict.
[0133] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions, and the foregoing program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed. The foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An Internet of Things practical training system, characterized in that, The system comprises a device management subsystem, a function building subsystem and a running subsystem; wherein The device management subsystem is configured to manage the Internet of Things devices and interact with the Internet of Things devices; The function building subsystem is configured to build a simulation scene based on a function editing platform; The running subsystem is configured to demonstrate the built simulation scene; The function building subsystem is further configured to obtain a first device model related to the simulation scene based on the function editing platform, and associate demonstration data of the first device model in the simulation scene with interaction data of a first Internet of Things device managed by the device management subsystem; The demonstration data comprises first device data and / or first control data; the device management subsystem is configured to obtain second device data of the first Internet of Things device; the function building subsystem is configured to determine the first device data based on the second device data; and / or The function building subsystem is configured to obtain first control data of the first device model based on the function editing platform; the device management subsystem is configured to determine second control data sent to the first Internet of Things device based on the first control data; The interaction data comprises second device data and / or second control data; the first device data is a mapping of the second device data generated in a real running process of a first Internet of Things device associated with a first device model in a simulation scene; and the first control data is a mapping of second control data used to control the real running of the first Internet of Things device associated with the first device model in the simulation scene; The device management subsystem is further configured to send the associated interaction data of the first Internet of Things device to an Internet of Things application platform by means of data pushing or interface calling.
2. The system of claim 1, wherein, The device management subsystem is configured to obtain transmission data of the first Internet of Things device, analyze the transmission data, and obtain second device data of the first Internet of Things device based on the analyzed transmission data.
3. The system of any one of claims 1 to 2, wherein, The function building subsystem is configured to associate the demonstration data of the first device model in the simulation scene with the interaction data of the first Internet of Things device managed by the device management subsystem based on identification information of the first Internet of Things device.
4. The system of claim 1, wherein, The device management subsystem is further configured to create a corresponding virtual device based on an Internet of Things device, and generate device data of the virtual device; The function building subsystem is further configured to obtain a second device model related to the simulation scene based on the function editing platform, and associate demonstration data of the second device model in the simulation scene with device data of the virtual device generated by the device management subsystem.
5. The system of claim 4, wherein, The device management subsystem is configured to determine a data flow configuration rule of the corresponding virtual device according to device data of an Internet of Things device, and generate device data of the virtual device based on the data flow configuration rule.
6. The system of claim 4, wherein, The function building subsystem is further configured to generate a device model library of the function editing platform based on the IoT devices managed by the device management subsystem; and the first device model and / or the second device model are built based on the device model library.
7. The system of claim 1, wherein, The simulation scene includes at least one function page; and the function building subsystem is further configured to perform display configuration and / or data configuration on each function page included in the simulation scene.
8. An Internet of Things practical training method, characterized in that, The method is applied to the IoT training system of any one of claims 1 to 7; and the method includes: The device management subsystem manages the IoT devices and performs data interaction with the IoT devices; The function building subsystem builds a simulation scene based on a function editing platform; The running subsystem demonstrates the built simulation scene; The function building subsystem obtains a first device model related to the simulation scene based on the function editing platform, and associates demonstration data of the first device model in the simulation scene with interaction data of a first IoT device managed by the device management subsystem; The demonstration data includes first device data and / or first control data; the device management subsystem is configured to obtain second device data of the first IoT device; and the function building subsystem is configured to determine the first device data based on the second device data; and / or The function building subsystem is configured to obtain first control data of the first device model based on the function editing platform; and the device management subsystem is configured to determine second control data sent to the first IoT device based on the first control data; The interaction data includes second device data and / or second control data; the first device data is mapping of the second device data generated in a real running process of a first IoT device associated with the first device model in the simulation scene; and the first control data is mapping of the second control data used to control the real running of the first IoT device associated with the first device model in the simulation scene; The device management subsystem is further configured to send the associated interaction data of the first IoT device to an IoT application platform in a manner of data pushing or interface calling.
Citation Information
Patent Citations
Internet of Things system building method and device, electronic equipment and storage medium
CN114398693A