Modeling data acquisition method and system based on Internet of Things platform
By using object model description language and data access services on the Internet of Things platform, the problem of inconsistent data collection interfaces and changes in equipment data forms in the field of industrial manufacturing is solved, and the uniformity and adaptability of the system collection interface are achieved.
Patent Information
- Application Number
- CN202410045533.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology is not unified in the data collection interface in the field of industrial manufacturing. When the form of data collected by the equipment changes, the collection system cannot adaptively adjust, and the system collection interface cannot be unified and automated.
Using a model-based data collection method based on the Internet of Things platform, the device's object model description information is transmitted to the Internet of Things platform through data access services and object model description languages. The platform collects data through object model analysis and realizes automatic data format registration of the device. unified with the interface.
This eliminates the need to manually configure device data collection protocol parameters. The system can adapt to changes in device data collection formats and realize the unification and automation of data collection interfaces.
Smart Images

Figure CN118869726A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a modeling data collection method and system based on an Internet of Things platform. Background Art
[0002] Patent document CN108650325A discloses an industrial data collection method, related equipment and system. When the method is applied to a gateway device, it includes: receiving industrial data collected by the collection end; determining data screening rules, screening the industrial data according to the data screening rules to obtain target data; uploading the target data to a cloud server. The cloud server is used to receive the configuration information of the industrial data sent by the gateway device; generating data screening rules according to the configuration information of the industrial data, and sending the data screening rules to the gateway device.
[0003] This invention filters data by timeout, source IP address, destination IP address and other features before uploading. However, this invention has no model concept and can only filter specific points. It cannot adapt to points without filtering features, and cannot be adaptively adjusted to accurately control each collection point. This invention can only control the screening of points without the idea of modeling. It cannot control the complex logic of the device's services, alarms, etc. while controlling the device's collection points. This invention needs to configure the filtering rules each time it is copied, and cannot be quickly copied to similar device scenarios in batches through modeling. Summary of the invention
[0004] In view of the defects in the prior art, the object of the present invention is to provide a modeling data collection method and system based on the Internet of Things platform.
[0005] A modeling data collection method based on an Internet of Things platform provided by the present invention includes:
[0006] Step S1: enable data access service to exchange data with underlying devices through a pre-customized protocol;
[0007] Step S2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device object model description information after successful authentication;
[0008] Step S3: Sending data information to the Internet of Things platform through the data sending module;
[0009] Step S4: Receive the command issued by the Internet of Things platform through the command receiving module.
[0010] Preferably, in step S1:
[0011] On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2.
[0012] Step S1.1: Read the access service authentication parameters in the platform on the IoT platform M1 side. The access service is deployed outside the platform. Perform the authentication management process. Store the data access service authentication parameters that allow access in advance on the IoT platform, including the data access service ID number, data access service description and access authentication token. Start the access authentication service and listen for registration authentication requests on the default port.
[0013] Step S1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information;
[0014] Step S1.3: The registration and authentication module reads the configured service parameters, and sends the authentication and registration information to the platform according to the IoT platform address and registration service port;
[0015] Step S1.4: The access authentication module receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, and compares the information with the corresponding information stored in the platform. If they are consistent, a registration success is returned to the data access service; if they are inconsistent, a registration failure is returned to the data access service;
[0016] The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, step S1.2 is executed again and the registration information is sent again; if the registration is successful, step S2 is entered.
[0017] Preferably, in step S2:
[0018] Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points;
[0019] Step S2.1: Analyze the characteristics of the devices for which data collection is required, and establish a physical model description configuration file according to the physical model description method. Perform physical model description abstraction on each device. The physical model description of the device is divided into device attributes, device services, and device events.
[0020] Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type.
[0021] Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters.
[0022] Device events: describe abnormal or alarm behaviors that may occur in the device;
[0023] After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2;
[0024] Step S2.2: After the Internet of Things platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the Internet of Things platform M1, and the device object model information is registered in batches;
[0025] After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
[0026] Preferably, in step S3:
[0027] Step S3.1: After completing the model registration work, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name. Collection point name;
[0028] Step S3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
[0029] Preferably, in step S4:
[0030] Step S4.1: Control of data access service in the application, the control command issuing module in the IoT platform M1 is responsible for issuing commands;
[0031] Step S4.2: The command receiving module receives the issued control command, determines the type of the command, and executes different actions according to different commands.
[0032] A modeling data acquisition system based on an Internet of Things platform provided by the present invention includes:
[0033] Module M1: enables data access services and exchanges data with underlying devices through pre-customized protocols;
[0034] Module M2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device model description information after successful authentication;
[0035] Module M3: Send data information to the Internet of Things platform through the data sending module;
[0036] Module M4: Receives commands issued by the IoT platform through the command receiving module.
[0037] Preferably, in the module M1:
[0038] On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2.
[0039] Module M1.1: Read the access service authentication parameters in the IoT platform M1. The access service is deployed outside the platform. The authentication management process is performed. The data access service authentication parameters that are allowed to be accessed are stored in advance in the IoT platform, including the data access service ID number, data access service description and access authentication token. The access authentication service is started and the registration authentication request is listened to on the default port.
[0040] Module M1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information;
[0041] Module M1.3: The registration and authentication module reads the configured service parameters, and sends authentication and registration information to the platform according to the IoT platform address and registration service port;
[0042] Module M1.4: Access authentication module, receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, compares the information with the corresponding information stored in the platform, and returns a successful registration to the data access service if they are consistent, otherwise returns a failed registration to the data access service;
[0043] The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, module M1.2 is re-executed and the registration information is sent again; if the registration is successful, module M2 is entered.
[0044] Preferably, in the module M2:
[0045] Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points;
[0046] Module M2.1: Analyze the characteristics of the devices for which data collection is required, establish a physical model description configuration file based on the physical model description method, and perform physical model description abstraction for each device. The physical model description of the device is divided into device attributes, device services, and device events;
[0047] Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type.
[0048] Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters.
[0049] Device events: describe abnormal or alarm behaviors that may occur in the device;
[0050] After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2;
[0051] Module M2.2: After the IoT platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the IoT platform M1, and the device object model information is registered in batches;
[0052] After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
[0053] Preferably, in the module M3:
[0054] Module M3.1: After completing the model registration, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name and collection point name;
[0055] Module M3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
[0056] Preferably, in the module M4:
[0057] Module M4.1: Control of data access services in applications. The control command issuing module in the IoT platform M1 is responsible for issuing commands.
[0058] Module M4.2: The command receiving module receives the control commands issued, determines the command type, and performs different actions according to different commands.
[0059] Compared with the prior art, the present invention has the following beneficial effects:
[0060] 1. The present invention solves the problem of inconsistent data acquisition interfaces and the inability of the acquisition system to adaptively adjust when the data acquisition form of the equipment changes in large-scale systems in the industrial manufacturing field by designing a solution that describes the equipment acquisition interface in a modeling language;
[0061] 2. The present invention realizes that there is no need to manually configure the device data acquisition protocol parameters on the control platform, and the device automatically completes the data format registration, realizes the unification of the system acquisition interface, and adapts to the changes in the device data acquisition format. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0063] Figure 1 This is a system architecture block diagram of the present invention;
[0064] Figure 2 It is a schematic diagram of the overall process of the present invention;
[0065] Figure 3 It is a schematic diagram of the overall interaction process of the present invention;
[0066] Figure 4 Describe the schematic diagram for the device object model. DETAILED DESCRIPTION
[0067] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0068] Embodiment 1:
[0069] The present invention describes a modeling adaptive device data collection method based on an Internet of Things platform. In the field of the Internet of Things, such as industrial monitoring scenarios, the monitoring system often needs to collect the operating status data of the device to determine whether the device is currently operating normally. Various control instructions are sent to the device according to the operating information of the device to adjust the operating status of the device. However, in some fields, especially the manufacturing industry, due to the diversity of manufactured products, it is often necessary to customize and improve the production equipment or use professional customized equipment for production. This leads to the monitoring system often being unable to collect such system data through standard data acquisition protocols such as MODBUS, OPCUA and other protocols. The device often requires private protocols or other forms for data collection, which leads to the appearance of inconsistent interfaces in large-scale systems, affecting the system architecture design, and the acquisition system cannot be adaptively adjusted when the form of the device data collection changes during the application process. In view of this situation, the present invention proposes a method of adding a data access service in front of the device to be collected, using a physical model description language in the data access service to abstract the physical model of the device, and forwarding the physical model describing the device and the device collection data to the Internet of Things platform by the access service, and the platform implements the scheme of parsing the collected data through the physical model description information.
[0070] The present invention proposes a solution for describing the device acquisition interface in a modeling language, which solves the problem of inconsistent data acquisition interfaces and the inability of the acquisition system to adaptively adjust when the form of the device data acquisition changes in large-scale data acquisition systems in the industrial manufacturing field. It is realized that there is no need to manually configure the device data acquisition protocol parameters on the control platform, and the device automatically completes the data format registration, realizes the unification of the system acquisition interface, and adapts to the changes in the device data acquisition format. The present invention mainly includes two parts: one is the Internet of Things platform, and the other is the data access service.
[0071] According to a modeling data collection method based on an Internet of Things platform provided by the present invention, Figure 1-Figure 4 As shown, including:
[0072] Step S1: enable data access service to exchange data with underlying devices through a pre-customized protocol;
[0073] Specifically, in step S1:
[0074] On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2.
[0075] Step S1.1: Read the access service authentication parameters in the platform on the IoT platform M1 side. The access service is deployed outside the platform. Perform the authentication management process. Store the data access service authentication parameters that allow access in advance on the IoT platform, including the data access service ID number, data access service description and access authentication token. Start the access authentication service and listen for registration authentication requests on the default port.
[0076] Step S1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information;
[0077] Step S1.3: The registration and authentication module reads the configured service parameters, and sends the authentication and registration information to the platform according to the IoT platform address and registration service port;
[0078] Step S1.4: The access authentication module receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, and compares the information with the corresponding information stored in the platform. If they are consistent, a registration success is returned to the data access service; if they are inconsistent, a registration failure is returned to the data access service;
[0079] The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, step S1.2 is executed again and the registration information is sent again; if the registration is successful, step S2 is entered.
[0080] Step S2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device object model description information after successful authentication;
[0081] Specifically, in step S2:
[0082] Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points;
[0083] Step S2.1: Analyze the characteristics of the devices for which data collection is required, and establish a physical model description configuration file according to the physical model description method. Perform physical model description abstraction on each device. The physical model description of the device is divided into device attributes, device services, and device events.
[0084] Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type.
[0085] Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters.
[0086] Device events: describe abnormal or alarm behaviors that may occur in the device;
[0087] After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2;
[0088] Step S2.2: After the Internet of Things platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the Internet of Things platform M1, and the device object model information is registered in batches;
[0089] After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
[0090] Step S3: Sending data information to the Internet of Things platform through the data sending module;
[0091] Specifically, in step S3:
[0092] Step S3.1: After completing the model registration work, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name. Collection point name;
[0093] Step S3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
[0094] Step S4: Receive the command issued by the Internet of Things platform through the command receiving module.
[0095] Specifically, in step S4:
[0096] Step S4.1: Control of data access service in the application, the control command issuing module in the IoT platform M1 is responsible for issuing commands;
[0097] Step S4.2: The command receiving module receives the issued control command, determines the type of the command, and executes different actions according to different commands.
[0098] Embodiment 2:
[0099] Embodiment 2 is a preferred example of Embodiment 1, and is used to illustrate the present invention in more detail.
[0100] The present invention also provides a modeling data acquisition system based on an Internet of Things platform. The modeling data acquisition system based on the Internet of Things platform can be implemented by executing the process steps of the modeling data acquisition method based on the Internet of Things platform, that is, those skilled in the art can understand the modeling data acquisition method based on the Internet of Things platform as a preferred implementation of the modeling data acquisition system based on the Internet of Things platform.
[0101] A modeling data acquisition system based on an Internet of Things platform provided by the present invention includes:
[0102] Module M1: enables data access services and exchanges data with underlying devices through pre-customized protocols;
[0103] Specifically, in the module M1:
[0104] On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2.
[0105] Module M1.1: Read the access service authentication parameters in the IoT platform M1. The access service is deployed outside the platform. The authentication management process is performed. The data access service authentication parameters that are allowed to be accessed are stored in advance in the IoT platform, including the data access service ID number, data access service description and access authentication token. The access authentication service is started and the registration authentication request is listened to on the default port.
[0106] Module M1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information;
[0107] Module M1.3: The registration and authentication module reads the configured service parameters, and sends authentication and registration information to the platform according to the IoT platform address and registration service port;
[0108] Module M1.4: Access authentication module, receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, compares the information with the corresponding information stored in the platform, and returns a successful registration to the data access service if they are consistent, otherwise returns a failed registration to the data access service;
[0109] The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, module M1.2 is re-executed and the registration information is sent again; if the registration is successful, module M2 is entered.
[0110] Module M2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device model description information after successful authentication;
[0111] Specifically, in the module M2:
[0112] Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points;
[0113] Module M2.1: Analyze the characteristics of the devices for which data collection is required, establish a physical model description configuration file based on the physical model description method, and perform physical model description abstraction for each device. The physical model description of the device is divided into device attributes, device services, and device events;
[0114] Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type.
[0115] Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters.
[0116] Device events: describe abnormal or alarm behaviors that may occur in the device;
[0117] After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2;
[0118] Module M2.2: After the IoT platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the IoT platform M1, and the device object model information is registered in batches;
[0119] After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
[0120] Module M3: Send data information to the Internet of Things platform through the data sending module;
[0121] Specifically, in the module M3:
[0122] Module M3.1: After completing the model registration, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name and collection point name;
[0123] Module M3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
[0124] Module M4: Receives commands issued by the IoT platform through the command receiving module.
[0125] Specifically, in the module M4:
[0126] Module M4.1: Control of data access services in applications. The control command issuing module in the IoT platform M1 is responsible for issuing commands.
[0127] Module M4.2: The command receiving module receives the control commands issued, determines the command type, and performs different actions according to different commands.
[0128] Embodiment 3:
[0129] Embodiment 3 is a preferred example of Embodiment 1, and is used to illustrate the present invention in more detail.
[0130] The present invention mainly includes two parts, one is the Internet of Things platform, and the other is the data access service, wherein the Internet of Things platform can be deployed in the cloud or in the intranet, and the data access service is deployed in a server connected to the device network. The Internet of Things platform side includes 6 modules, wherein the access authentication module is responsible for managing the authority identification and authentication of different data access services connected to the Internet of Things platform, the object model registration module receives the object model description information sent by the data access service and registers it on the platform, and forwards it to the object model parsing module at the same time, which parses the object model information and sends the parsed new message to the data receiving module, and the data receiving module parses the data sent by the device according to the object model description information.
[0131] The present invention includes a data access service, which exchanges data with the underlying device through a customized protocol, then sends authentication information to the Internet of Things platform for access authentication through a registration authentication module, sends device model description information after successful authentication, then sends data information to the Internet of Things platform through a data sending module, and simultaneously receives commands issued by the Internet of Things platform through a command receiving module.
[0132] Step 1: Implementation steps such as Figure 2 As described in, on the IoT platform M1 side, the access authentication service is started first, and the access service ID and service authentication token created in the platform are read. At the same time, the data access service M2 first configures the data access service parameters itself in the configuration file, such as the access ID number, IoT platform address and port, authentication token, etc., and then sends registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the return authentication result information to the registration authentication module M200 in the data access service M2.
[0133] Step 2: Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file for it according to the physical model description method. The file describes the device's attributes, services, and events to characterize the device's available state for collection and the services it can provide. After configuration, the file is stored in the physical model configuration module M201 in the data access service M2. After the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1. After receiving the physical model information, the physical model registration module M101 will call the physical model parsing module, and then the Internet of Things platform will establish a device instance through the physical model and establish mapping rules between attributes and device collection points.
[0134] Step 3: After completing the model registration, the data access service M2 collects device data through private protocols, file exchange, memory sharing, etc., and the data sending module M202 in the data access service M2 sends it in batches in the form of device name. Collection point name. The data receiving module M102 in the Internet of Things platform M1 receives the data collection information sent by the data sending module M202, and automatically parses the collected data and associates it with the device attributes according to the mapping rules of the device attributes and device collection points provided by the object model parsing module M104, and sends the parsed data to the data display module M103, which displays the data.
[0135] Step 4: In applications, there are often control requirements for data access services, such as remote control of data access service start, stop, and send update model commands. The control command sending module M105 in the IoT platform M1 is responsible for sending commands, and the command receiving module M203 is responsible for receiving the sent control commands, judging the command type, and performing different actions according to different commands.
[0136] The step 1 comprises the following steps:
[0137] Step 1.1: As attached Figure 3 As shown, the IoT platform M1 first performs step S100 to read the access service authentication parameters in the platform. Since the access service is deployed outside the platform, an authentication management process is required. In this design, the IoT platform stores the data access service authentication parameters that allow access in advance, such as the data access service ID number, data access service description, access authentication token, etc.
[0138]
[0139] Then start the access authentication service and listen for registration authentication requests on the default port.
[0140] Step 1.2: As described in step S200, on the data access service M2 side, first configure the parameters required for the operation of the data access service itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, the data service port and other information.
[0141] Step 1.3: As described in step S201, the registration and authentication module M200 reads the service parameters configured in the previous step, and sends the authentication registration information to the platform according to the IoT platform address and registration service port. The information structure example is as follows:
[0142] {
[0143] type:register,
[0144] connector_id:183454355,
[0145] token:NzY0Y2ZkNGUtNjVmNS00NzAyLTkyZmUtMDZiM2Q3NTY5NzVi#
[0146] }
[0147] Step 1.4: As described in step S101, the access authentication module M100 receives the registration information sent by the registration authentication module M200, extracts the data access service ID and authentication token from it, and compares these information with the corresponding information stored in the platform. If they are consistent, the registration success is returned to the data access service, and if they are inconsistent, the registration failure is returned to the data access service. As described in step S202, the registration authentication module M200 receives the registration result information sent by the Internet of Things platform M1. If the registration fails, step S200 is re-executed and the registration information is sent again. If the registration is successful, go to step 2.
[0148] Step 2: includes the following steps
[0149] Step 2.1: Analyze the characteristics of the device for which data collection is required, and create a physical model description configuration file for it according to the physical model description method, such as Figure 4 Each of the devices can be described and abstracted by a physical model. The physical model description of the device is mainly divided into three dimensions: device attributes, device services, and device events.
[0150] Device attributes mainly describe the status point information of the device. The status of the device is represented by the information of different status points of the device, such as the opening and closing of a component, the running and stopping of a function, etc. The device attributes can be expressed in the form of attribute name + type.
[0151]
[0152] Device services mainly describe what functions a device can provide to the outside world. For example, for a lighting device, it can provide the functions of starting and stopping lighting, and a transportation device can provide the functions of moving forward, backward, left, and right. Each functional service can accept parameters. Device services can be expressed in the following forms:
[0153]
[0154] Equipment events mainly describe the abnormal or alarm behaviors of the equipment. For example, a transport equipment may have insufficient power or abnormal steering function. Equipment events can be described as
[0155]
[0156] After performing physical model analysis on the device, step S203 is executed to store the physical model file describing the device in the physical model configuration module M201 in the data access service M2.
[0157] Step 2.2: After the IoT platform M1 notifies the registration and authentication module M200 of successful authentication, the registration and authentication module sends the device object model information to the IoT platform M1. The device object model information can be registered in batches as follows:
[0158]
[0159] After receiving the object model information, the object model registration module M101 will call the object model parsing module. Then the Internet of Things platform will establish a device instance through the object model and establish mapping rules between attributes and device data collection points. By default, the attribute name and data collection point are consistent.
[0160] Step 3: includes the following steps
[0161] Step 3.1: After completing the model registration work, as in step S206, the data access service M2 collects device data through private protocols, file exchange, memory sharing, etc.
[0162]
[0163] The data sending module M202 in the data access service M2 sends the data in batches in the form of device name and collection point name.
[0164] Step 3.2: The data receiving module M102 in the Internet of Things platform M1 receives the data collection information sent by the data sending module M202, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module M104, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module M103, which displays the data, namely steps S105 and S107.
[0165] Step 4: includes the following steps
[0166] Step 4.1: In applications, there are often control requirements for data access services, such as remote control of data access service start, stop, and send update model commands. The control command sending module M105 in the IoT platform M1 is responsible for sending commands, and the command sending format is similar:
[0167]
[0168] Step 4.2: The command receiving module M203 is responsible for receiving the issued control command, determining the type of the command, and executing different actions according to different commands, such as step S209.
[0169] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0170] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A modeling data collection method based on the Internet of Things platform, characterized in that: include: Step S1: enable data access service to exchange data with underlying devices through a pre-customized protocol; Step S2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device object model description information after successful authentication; Step S3: Sending data information to the Internet of Things platform through the data sending module; Step S4: Receive the command issued by the Internet of Things platform through the command receiving module.
2. The modeling data collection method based on the Internet of Things platform according to claim 1 is characterized in that: In step S1: On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2. Step S1.1: Read the access service authentication parameters in the platform on the IoT platform M1 side. The access service is deployed outside the platform. Perform the authentication management process. Store the data access service authentication parameters that allow access in advance on the IoT platform, including the data access service ID number, data access service description and access authentication token. Start the access authentication service and listen for registration authentication requests on the default port. Step S1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information; Step S1.3: The registration and authentication module reads the configured service parameters, and sends the authentication and registration information to the platform according to the IoT platform address and registration service port; Step S1.4: The access authentication module receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, and compares the information with the corresponding information stored in the platform. If they are consistent, a registration success is returned to the data access service; if they are inconsistent, a registration failure is returned to the data access service; The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, step S1.2 is executed again and the registration information is sent again; if the registration is successful, step S2 is entered.
3. The modeling data collection method based on the Internet of Things platform according to claim 1 is characterized in that: In step S2: Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points; Step S2.1: Analyze the characteristics of the devices for which data collection is required, and establish a physical model description configuration file according to the physical model description method. Perform physical model description abstraction on each device. The physical model description of the device is divided into device attributes, device services, and device events. Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type. Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters. Device events: describe abnormal or alarm behaviors that may occur in the device; After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2; Step S2.2: After the Internet of Things platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the Internet of Things platform M1, and the device object model information is registered in batches; After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
4. The modeling data collection method based on the Internet of Things platform according to claim 1 is characterized in that: In step S3: Step S3.1: After completing the model registration work, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name. Collection point name; Step S3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
5. The modeling data collection method based on the Internet of Things platform according to claim 1 is characterized in that: In step S4: Step S4.1: Control of data access service in the application, the control command issuing module in the IoT platform M1 is responsible for issuing commands; Step S4.2: The command receiving module receives the issued control command, determines the type of the command, and executes different actions according to different commands.
6. A modeling data acquisition system based on the Internet of Things platform, characterized in that: include: Module M1: enables data access services and exchanges data with underlying devices through pre-customized protocols; Module M2: Send authentication information to the IoT platform for access authentication through the registration authentication module, and send device model description information after successful authentication; Module M3: Send data information to the Internet of Things platform through the data sending module; Module M4: Receives commands issued by the IoT platform through the command receiving module.
7. The modeling data acquisition system based on the Internet of Things platform according to claim 6 is characterized in that: In the module M1: On the IoT platform M1 side, start the access authentication service, read the access service ID and service authentication token created in the platform, and at the same time, in the data access service M2, configure the data access service parameters in the configuration file, including the access ID number, IoT platform address and port, and authentication token, and send registration information to the IoT platform M1. The access authentication module in the IoT platform M1 receives and parses the registration information, and sends the returned authentication result information to the registration authentication module M200 in the data access service M2. Module M1.1: Read the access service authentication parameters in the IoT platform M1. The access service is deployed outside the platform. The authentication management process is performed. The data access service authentication parameters that are allowed to be accessed are stored in advance in the IoT platform, including the data access service ID number, data access service description and access authentication token. The access authentication service is started and the registration authentication request is listened to on the default port. Module M1.2: On the data access service M2 side, configure the parameters required for the data access service to run itself, including the data access service ID number, the access authentication token obtained in advance from the management platform, the IoT platform address, the registration service port, and the data service port information; Module M1.3: The registration and authentication module reads the configured service parameters, and sends authentication and registration information to the platform according to the IoT platform address and registration service port; Module M1.4: Access authentication module, receives the registration information sent by the registration authentication module, extracts the data access service ID and authentication token, compares the information with the corresponding information stored in the platform, and returns a successful registration to the data access service if they are consistent, otherwise returns a failed registration to the data access service; The registration and authentication module receives the registration result information sent by the Internet of Things platform M1. If the registration fails, module M1.2 is re-executed and the registration information is sent again; if the registration is successful, module M2 is entered.
8. The modeling data acquisition system based on the Internet of Things platform according to claim 6 is characterized in that: In the module M2: Analyze the characteristics of the device that needs to collect data, and establish a physical model description configuration file based on the physical model description method. The file describes the device's attributes, services, and events to represent the state that the device can collect and the services that it can provide. After configuration, the file is stored in the physical model configuration module in the data access service M2; after the Internet of Things platform M1 notifies the registration and authentication module M200 of the successful authentication, the registration and authentication module sends the device physical model information to the Internet of Things platform M1; after the physical model registration module M101 receives the physical model information, it calls the physical model parsing module, and the Internet of Things platform establishes a device instance through the physical model, and establishes a mapping rule between attributes and device collection points; Module M2.1: Analyze the characteristics of the devices for which data collection is required, establish a physical model description configuration file based on the physical model description method, and perform physical model description abstraction for each device. The physical model description of the device is divided into device attributes, device services, and device events; Device attributes: describe the status point information of the device. The status of the device is represented by the information of different status points of the device. The device attributes are represented by the attribute name and type. Device service: describes the functions provided by the device to the outside world. Each functional service accepts parameters. Device events: describe abnormal or alarm behaviors that may occur in the device; After analyzing the physical model of the device, the physical model file describing the device is stored in the physical model configuration module in the data access service M2; Module M2.2: After the IoT platform M1 notifies the registration and authentication module of successful authentication, the registration and authentication module sends the device object model information to the IoT platform M1, and the device object model information is registered in batches; After receiving the object model information, the object model registration module calls the object model parsing module. The IoT platform creates a device instance through the object model and establishes mapping rules between attributes and device data collection points. By default, the attribute name and data collection point remain consistent.
9. The modeling data acquisition system based on the Internet of Things platform according to claim 6 is characterized in that: In the module M3: Module M3.1: After completing the model registration, the data access service M2 collects device data through private protocols, file exchange, and memory sharing; and the data sending module in the data access service M2 sends the data in batches in the form of device name and collection point name; Module M3.2: The data receiving module in the Internet of Things platform M1 receives the data collection information sent by the data sending module, and automatically parses the collected data according to the mapping rules between the device attributes and the device collection points provided by the object model parsing module, realizes the association between the device attributes and the collection points, and sends the parsed data to the data display module, which displays the data.
10. The modeling data acquisition system based on the Internet of Things platform according to claim 6 is characterized in that: In the module M4: Module M4.1: Control of data access services in applications. The control command issuing module in the IoT platform M1 is responsible for issuing commands. Module M4.2: The command receiving module receives the control commands issued, determines the command type, and performs different actions according to different commands.
