Internet of Things equipment management method and gateway for intelligent manufacturing environment
Through the combination of device discovery service and REST interface, the compatibility problem of IoT device management is solved, the registration and data format conversion of devices with different protocols are realized, and the compatibility of IoT device management is improved.
Patent Information
- Application Number
- CN202410765859.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for traditional IoT gateways to achieve compatibility management of different IoT devices in smart manufacturing environments, leading to interoperability issues.
Discover MQTT devices or DPWS devices through the device discovery service, register and interact with them, upload operating data through the REST interface, and implement data format conversion to provide a common data format and improve compatibility.
It greatly improves the compatibility of IoT device management and ensures interoperability between different communication protocols and devices.
Smart Images

Figure CN118612252A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things device management, and in particular to an Internet of Things device management method and a gateway for an intelligent manufacturing environment. Background Art
[0002] With the advancement of science and technology, intelligent manufacturing has emerged, and intelligent manufacturing relies on the Internet of Things (IoT). IoT refers to the technology of connecting various IoT devices to the Internet to realize data collection, exchange and analysis. The application areas of IoT include smart homes, smart cities, smart factories, smart medical care, etc.
[0003] An IoT gateway is a hardware or software solution that connects IoT devices to the cloud. It can achieve functions such as conversion of different communication protocols, data preprocessing, device management and security control. The IoT gateway is one of the core components of the IoT system. It can improve the reliability, efficiency and flexibility of the IoT. However, since IoT devices produced by different manufacturers use different communication technologies and data formats, traditional IoT gateways have interoperability issues when managing various IoT devices, that is, compatibility issues.
[0004] Therefore, how to provide an IoT device management method and gateway for an intelligent manufacturing environment to improve the compatibility of IoT device management has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an Internet of Things device management method and a gateway for an intelligent manufacturing environment, so as to improve the compatibility of Internet of Things device management.
[0006] In a first aspect, the present invention provides an Internet of Things device management method for an intelligent manufacturing environment, comprising the following steps:
[0007] Step S1: discovering IoT devices whose device type is MQTT device or DPWS device and whose communication protocol is IP protocol or non-IP protocol through device discovery service;
[0008] Step S2: register the discovered IoT devices through the device discovery service, and store the generated registration information in the device information database;
[0009] Step S3: The device manager interacts with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device;
[0010] Step S4: Upload the operation data to the server via the REST interface.
[0011] Furthermore, in step S1, the IoT device whose device type is MQTT device or DPWS device discovered through the device discovery service is specifically:
[0012] MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UU ID, and UR I.
[0013] The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
[0014] Furthermore, the step S2 is specifically as follows:
[0015] Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
[0016] Furthermore, the step S3 is specifically as follows:
[0017] The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database; when the IoT device is a DPWS device, the device manager interacts with the IoT device through the registration information and the DPWS client, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database.
[0018] Furthermore, in step S4, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; and the POST method is used to receive requests from users.
[0019] In a second aspect, the present invention provides an Internet of Things device management gateway for an intelligent manufacturing environment, comprising the following modules:
[0020] The IoT device discovery module is used to discover IoT devices whose device types are MQTT devices or DPWS devices and whose communication protocols are IP protocols or non-IP protocols through the device discovery service;
[0021] The IoT device registration module is used to register the IoT devices discovered through the device discovery service and store the generated registration information in the device information database;
[0022] An IoT device interaction module is used for the device manager to interact with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device;
[0023] The operation data uploading module is used to upload the operation data to the server through the REST interface.
[0024] Further, in the IoT device discovery module, the IoT device whose device type is MQTT device or DPWS device discovered through the device discovery service is specifically:
[0025] MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UU ID, and UR I.
[0026] The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
[0027] Furthermore, the IoT device registration module is specifically used for:
[0028] Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
[0029] Furthermore, the IoT device interaction module is specifically used for:
[0030] The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database; when the IoT device is a DPWS device, the device manager interacts with the IoT device through the registration information and the DPWS client, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database.
[0031] Furthermore, in the operation data upload module, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; and the POST method is used to receive requirements from users.
[0032] The advantages of the present invention are:
[0033] Through the device discovery service, IoT devices with device types of MQTT devices or DPWS devices and communication protocols of IP protocols or non-IP protocols are discovered, the discovered IoT devices are registered, and the generated registration information is stored in the device information database; the device manager interacts with the IoT devices through the registration information stored in the device information database, obtains the operating data of the IoT devices, and uploads the operating data to the server through the REST interface; that is, IoT devices with different communication protocols are discovered through the device discovery service based on the DPWS protocol, and each discovered IoT device is registered. In the process of interacting with the IoT devices, the format of the acquired operating data is converted, that is, the operating data is abstracted and converted into a common data format to provide interoperability between heterogeneous devices, ultimately greatly improving the compatibility of IoT device management. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0035] Figure 1 It is a flow chart of a method for managing Internet of Things devices in an intelligent manufacturing environment according to the present invention.
[0036] Figure 2 It is a structural schematic diagram of an Internet of Things device management gateway for an intelligent manufacturing environment of the present invention. DETAILED DESCRIPTION
[0037] The technical solution in the embodiments of the present application has the following overall idea: discover IoT devices with different communication protocols through a device discovery service based on the DPWS protocol, register each discovered IoT device, and during the interaction with the IoT devices, convert the format of the acquired operation data, that is, abstract the operation data and convert it into a common data format to provide interoperability between heterogeneous devices, thereby improving the compatibility of IoT device management.
[0038] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of the present invention is a method for managing IoT devices in an intelligent manufacturing environment, comprising the following steps:
[0039] Step S1, discovering an IoT device whose device type is an MQTT device or a DPWS device and whose communication protocol is an IP protocol or a non-IP protocol (such as Bluetooth) through a device discovery service; the device discovery service discovers IoT devices based on the DPWS protocol, and the DPWS protocol supports dynamic device discovery to search for the required IoT devices;
[0040] Step S2: register the discovered IoT devices through the device discovery service, and store the generated registration information in the device information database;
[0041] Step S3: The device manager interacts with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device;
[0042] Step S4: Upload the operation data to the server through the REST interface. When a control request message is received from the server, a control message is generated and a corresponding actuator is selected, and the control message is sent through the interface of the actuator.
[0043] In step S1, the IoT device whose device type is MQTT device or DPWS device discovered by the device discovery service is specifically:
[0044] MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UU ID, and UR I.
[0045] The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
[0046] Some IoT devices cannot support the DPWS-based SOAP protocol due to resource constraints. In order to automatically register these IoT devices, an automatic configuration mechanism is also required, which requires the IoT devices to broadcast UDP in the local network and automatically register when the IoT devices are detected.
[0047] MQTT devices are IoT devices that support the MQTT protocol. The MQTT protocol is a communication protocol suitable for resource-constrained devices. It transmits information on the TCP / IP network through a publish / subscribe mechanism. The MQTT protocol is a one-to-many messaging communication protocol. It is a lightweight and asymmetric communication protocol, so it is suitable for IoT devices that use different protocols. In order to use the MQTT protocol to aggregate the original operating data, the device manager assigns a specific MQTT topic to each IoT device.
[0048] DPWS devices are IoT devices that support the DPWS protocol. The DPWS protocol defines a profile to enable Web service messaging, discovery, description, and event processing on resource-constrained devices. It is based on the Web Service Description Language (WDSL) and the Simple Object Access Protocol (SOAP).
[0049] The step S2 is specifically as follows:
[0050] Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
[0051] The step S3 is specifically as follows:
[0052] The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database; when the IoT device is a DPWS device, the device manager interacts with the IoT device through the registration information and the DPWS client, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database.
[0053] Since the operation data generated by these IoT devices are heterogeneous, such as data structure, function, etc., it is difficult to reuse the operation data and device access; to solve this problem, the present invention abstracts the original operation data, that is, converts the operation data into a common data format through a device manager, that is, performs format conversion to provide interoperability between heterogeneous devices. In order to facilitate access to the abstract operation data, a device information database is used to manage it.
[0054] Use the MQTT protocol to access registered IoT devices. Configure the MQTT topic based on the registration information of the IoT device so that the target device (IoT device) can connect to the MQTT server. The device discovery service sends a confirmation message containing the MQTT topic to the target device. According to the MQTT topic, IoT devices can be controlled and sensed through the publish / subscribe mechanism of the MQTT protocol. Different types of IoT devices have different topic structures for MQTT topics. For actuators that can have an impact on the environment, publish MQTT topics to provide status information, and subscribe to MQTT topics to receive device control messages. For sensors, publish MQTT topics to provide sensor values, while subscribing to MQTT topics may be required to receive messages when users want to change the status of the device. Then, IoT devices communicate through MQTT topics.
[0055] In step S4, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; the POST method is used to receive requirements from users. The REST interface is used to reuse the received and aggregated operation data of the IoT devices.
[0056] A preferred embodiment of the Internet of Things device management gateway for a smart manufacturing environment of the present invention includes the following modules:
[0057] The IoT device discovery module is used to discover IoT devices whose device types are MQTT devices or DPWS devices and whose communication protocols are IP protocols or non-IP protocols (such as Bluetooth) through a device discovery service; the device discovery service discovers IoT devices based on the DPWS protocol, and the DPWS protocol supports dynamic device discovery to search for required IoT devices;
[0058] The IoT device registration module is used to register the IoT devices discovered through the device discovery service and store the generated registration information in the device information database;
[0059] An IoT device interaction module is used for the device manager to interact with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device;
[0060] The operation data uploading module is used to upload the operation data to the server through the REST interface. When a control request message is received from the server, a control message is generated and a corresponding actuator is selected, and the control message is sent through the interface of the actuator.
[0061] In the IoT device discovery module, the IoT device whose device type is MQTT device or DPWS device discovered by the device discovery service is specifically:
[0062] MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UU ID, and UR I.
[0063] The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
[0064] Some IoT devices cannot support the DPWS-based SOAP protocol due to resource constraints. In order to automatically register these IoT devices, an automatic configuration mechanism is also required, which requires the IoT devices to broadcast UDP in the local network and automatically register when the IoT devices are detected.
[0065] MQTT devices are IoT devices that support the MQTT protocol. The MQTT protocol is a communication protocol suitable for resource-constrained devices. It transmits information on the TCP / IP network through a publish / subscribe mechanism. The MQTT protocol is a one-to-many messaging communication protocol. It is a lightweight and asymmetric communication protocol, so it is suitable for IoT devices that use different protocols. In order to use the MQTT protocol to aggregate the original operating data, the device manager assigns a specific MQTT topic to each IoT device.
[0066] DPWS devices are IoT devices that support the DPWS protocol. The DPWS protocol defines a profile to enable Web service messaging, discovery, description, and event processing on resource-constrained devices. It is based on the Web Service Description Language (WDSL) and the Simple Object Access Protocol (SOAP).
[0067] The IoT device registration module is specifically used for:
[0068] Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
[0069] The IoT device interaction module is specifically used for:
[0070] The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database; when the IoT device is a DPWS device, the device manager interacts with the IoT device through the registration information and the DPWS client, obtains the operating data of the IoT device, converts the format of the operating data, and stores the operating data after format conversion in the device information database.
[0071] Since the operation data generated by these IoT devices are heterogeneous, such as data structure, function, etc., it is difficult to reuse the operation data and device access; to solve this problem, the present invention abstracts the original operation data, that is, converts the operation data into a common data format through a device manager, that is, performs format conversion to provide interoperability between heterogeneous devices. In order to facilitate access to the abstract operation data, a device information database is used to manage it.
[0072] Use the MQTT protocol to access registered IoT devices. Configure the MQTT topic based on the registration information of the IoT device so that the target device (IoT device) can connect to the MQTT server. The device discovery service sends a confirmation message containing the MQTT topic to the target device. According to the MQTT topic, IoT devices can be controlled and sensed through the publish / subscribe mechanism of the MQTT protocol. Different types of IoT devices have different topic structures for MQTT topics. For actuators that can have an impact on the environment, publish MQTT topics to provide status information, and subscribe to MQTT topics to receive device control messages. For sensors, publish MQTT topics to provide sensor values, while subscribing to MQTT topics may be required to receive messages when users want to change the status of the device. Then, IoT devices communicate through MQTT topics.
[0073] In the operation data upload module, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; the POST method is used to receive requirements from users. The REST interface is used to reuse the operation data of the IoT devices received and aggregated.
[0074] In summary, the advantages of the present invention are:
[0075] Through the device discovery service, IoT devices with device types of MQTT devices or DPWS devices and communication protocols of IP protocols or non-IP protocols are discovered, the discovered IoT devices are registered, and the generated registration information is stored in the device information database; the device manager interacts with the IoT devices through the registration information stored in the device information database, obtains the operating data of the IoT devices, and uploads the operating data to the server through the REST interface; that is, IoT devices with different communication protocols are discovered through the device discovery service based on the DPWS protocol, and each discovered IoT device is registered. In the process of interacting with the IoT devices, the format of the acquired operating data is converted, that is, the operating data is abstracted and converted into a common data format to provide interoperability between heterogeneous devices, ultimately greatly improving the compatibility of IoT device management.
[0076] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A method for managing IoT devices in a smart manufacturing environment, Features: The steps include: Step S1: discovering IoT devices whose device type is MQTT device or DPWS device and whose communication protocol is IP protocol or non-IP protocol through device discovery service; Step S2: register the discovered IoT devices through the device discovery service, and store the generated registration information in the device information database; Step S3: The device manager interacts with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device; Step S4: Upload the operation data to the server via the REST interface.
2. A method for managing IoT devices in an intelligent manufacturing environment as claimed in claim 1, Features: In step S1, the IoT device whose device type is MQTT device or DPWS device discovered by the device discovery service is specifically: MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UUID identifier, and URI. The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
3. The method for managing IoT devices in an intelligent manufacturing environment according to claim 1, Features: The step S2 is specifically as follows: Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
4. The method for managing IoT devices in an intelligent manufacturing environment according to claim 1, Features: The step S3 is specifically as follows: The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operation data of the IoT device, performs format conversion on the operation data, and stores the format-converted operation data in the device information database. When the IoT device is a DPWS device, the registration information and the DPWS client are used to interact with the IoT device, and the operation data of the IoT device is obtained, the operation data is formatted, and the format-converted operation data is stored in the device information database.
5. The method for managing IoT devices in an intelligent manufacturing environment according to claim 1, Features: In step S4, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; and the POST method is used to receive requirements from users.
6. An IoT device management gateway for smart manufacturing environments, Features: Includes the following modules: The IoT device discovery module is used to discover IoT devices whose device types are MQTT devices or DPWS devices and whose communication protocols are IP protocols or non-IP protocols through the device discovery service; The IoT device registration module is used to register the IoT devices discovered through the device discovery service and store the generated registration information in the device information database; An IoT device interaction module is used for the device manager to interact with the IoT device through the registration information stored in the device information database to obtain the operation data of the IoT device; The operation data uploading module is used to upload the operation data to the server through the REST interface.
7. An Internet of Things device management gateway for an intelligent manufacturing environment as claimed in claim 6, Features: In the IoT device discovery module, the IoT device whose device type is MQTT device or DPWS device discovered by the device discovery service is specifically: MQTT devices broadcast device information via UDP multicast in the local network, and DPWS devices broadcast device information via SOAP-over-UDP. The device information is in JSON format and includes at least the device name, device type, communication UUID identifier, and URI. The device discovery service monitors broadcasts in real time to discover IoT devices whose device types are MQTT devices or DPWS devices.
8. An Internet of Things device management gateway for an intelligent manufacturing environment as claimed in claim 6, Features: The IoT device registration module is specifically used for: Through the device discovery service, IoT devices are automatically registered based on the device information obtained during the discovery process. IP addresses are automatically assigned to registered IoT devices through the DHCP server, and the registration information generated during the IoT device registration process is stored in the device information database in real time.
9. An Internet of Things device management gateway for an intelligent manufacturing environment as claimed in claim 6, Features: The IoT device interaction module is specifically used for: The device manager obtains the registration information of the IoT device to be interacted with through the device information database. When the IoT device is an MQTT device, the device manager interacts with the IoT device through the registration information and the MQTT agent, obtains the operation data of the IoT device, performs format conversion on the operation data, and stores the format-converted operation data in the device information database. When the IoT device is a DPWS device, the registration information and the DPWS client are used to interact with the IoT device, and the operation data of the IoT device is obtained, the operation data is formatted, and the format-converted operation data is stored in the device information database.
10. An Internet of Things device management gateway for an intelligent manufacturing environment as claimed in claim 6, Features: In the operation data upload module, the REST interface supports the GET method and the POST method; the GET method is used to provide aggregated data; and the POST method is used to receive requirements from users.
