Intelligent industrial gateway system based on credential environment
By introducing device management, protocol conversion, data acquisition and monitoring configuration modules into the intelligent industrial gateway system, the compatibility and security problems of traditional industrial gateway systems in the information creation environment are solved, and the independent capability in the information creation environment is achieved Control and compatibility reduces integration costs, and provides flexible deployment mode and strong scalability.
Patent Information
- Application Number
- CN202411571763.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-11-06
AI Technical Summary
Traditional industrial gateway systems have poor compatibility in the information innovation environment and cannot operate stably, which is difficult to meet the security requirements of industrial IoT data acquisition. They also have poor compatibility with microservice architecture software platforms and have high integration costs.
Design an intelligent industrial gateway system based on the information innovation environment, including device management module, protocol conversion module, data acquisition module, push configuration module and monitoring configuration module, supporting a variety of CPU chips, operating systems and databases, and through the HTTP/Dubbo protocol Transformation and MQTT protocol push data, and realize real-time monitoring and alarming, compatible with multiple deployment modes.
It realizes independent controllability and wide compatibility in the information innovation environment, ensures the security of industrial IoT data acquisition, reduces integration costs, and provides flexible deployment mode and strong scalability.
Smart Images

Figure CN119071136A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of intelligent manufacturing technology and information technology, and in particular to an intelligent industrial gateway system based on an information technology environment. Background Art
[0002] The number of smart production line applications that make production processes flexible, intelligent, and agile through real-time data collection, online monitoring, and automatic control is increasing. The software part of the smart production line communicates data with hardware devices through industrial control protocols to perform equipment control and data collection operations. However, there are many types of hardware devices, and the industrial control protocols required for data communication with them are also diverse, which causes many inconveniences for the interaction between software systems and hardware devices. At this time, industrial gateways are usually used to convert protocols to achieve data communication between software systems and hardware devices.
[0004] Microservices are a very popular software architecture approach in recent years and are considered an important trend in modern application development. Microservice architecture splits an application into a series of small, autonomous services, each of which runs in an independent process and communicates using lightweight communication mechanisms (such as HTTP REST API, gRPC, etc.). These services can be developed, tested, deployed, and expanded independently, thereby improving the flexibility, scalability, and maintainability of the system.
[0005] Traditional intelligent industrial gateways have the following problems: 1. Traditional industrial gateway systems often fail to fully consider the particularities of the trusted computing environment during design, resulting in poor compatibility in actual applications and inability to operate stably in the trusted computing environment. It is difficult to meet the security requirements for industrial Internet of Things data collection, and it is even more difficult to meet the requirements of enterprises for domestic substitution of CPU chips, operating systems, databases, and middleware.
[0006] 2. Traditional industrial gateway systems generally adopt a monolithic architecture and independent deployment mode, which is not compatible with the microservice architecture software platform, and it is even more impossible to quickly build a unified platform to share basic functions such as permissions and roles, and basic data such as users. Data communication between the two requires system integration, which has poor compatibility with the microservice architecture software platform and high integration costs.
[0007] Among the existing related technologies, there is no effective solution for the industrial gateway system that is compatible with the trusted innovation environment, can meet the security requirements of industrial Internet of Things data collection, and can be compatible with both the microservice architecture software platform and the independent deployment mode. Summary of the invention
[0008] The problem to be solved by the present invention is to provide an intelligent industrial gateway system based on an ICT environment, which is used to solve the problem that the industrial gateway system has poor compatibility with products in the ICT field and cannot be compatible with a microservice architecture software platform and deployed in an independent system mode at the same time.
[0009] The present invention adopts the following technical solution: an intelligent industrial gateway system based on a trust-based innovation environment, comprising: a device management module, a protocol conversion module, a data acquisition module, a push configuration module, and a monitoring configuration module; The device management module represents the hardware units in the form of data by creating a basic information model, and adds and stores the basic information of the hardware units that need to communicate; The protocol conversion module converts the industrial control protocol supported by each hardware unit into the Http / Dubbo protocol according to the basic information of the hardware unit; The data acquisition module is used to create and execute acquisition tasks, collect data corresponding to the basic information of the hardware unit, and store the latest data in the cache middleware; The push configuration module pushes the data collected by the collection module to the outside through the MQTT protocol, and configures the MQTT message topic and message service quality; The monitoring configuration module is used to configure monitoring rules, monitor the basic information of the hardware unit in real time, and generate corresponding alarm information based on the data that triggers the alarm rules, and push it to the outside through the push configuration module; The deployment modes of the intelligent industrial gateway system include independent system deployment mode, integrated system deployment mode, and multi-gateway system deployment mode. It is compatible with a variety of trusted or non-trusted environments consisting of a variety of CPU chips, operating systems, databases, and middleware.
[0010] Specifically, the hardware unit is an actual hardware device or a virtual hardware device, and the basic information includes the hardware unit code, name, device model, communication protocol, connection address IP, connection port, connection timeout, and corresponding timeout; Specifically, the device management module creates a basic information model, including the following sub-steps: S1.1. Add or import hardware units that need to communicate, and set and store basic information of the hardware units according to the industrial control protocols supported by the hardware units; S1.2, create control point information, and map the register information and data acquisition point information of the hardware unit supporting different communication protocols: the hardware unit stores the data generated during operation through the register, and establishes or imports several control point information corresponding to the hardware unit register in the basic information. Each control point information corresponds to a register information of the hardware unit, including: the Chinese name of the address bit, the English name, the data type, the register address, the parameter authority, and the function code in the Modbus protocol, the device slave station number, etc.; S1.3. Modify, delete, and query the basic information and / or control point information of the added hardware units as needed.
[0011] Specifically, industrial control protocols include Modbus TCP, Modbus RTU, MQTT, OPC UA, OpenProtocol and S7. The caller is a sub-service or software system of the microservice system. The industrial control protocol supported by each hardware unit is converted into the Http / Dubbo protocol, including the following sub-steps: S2.1. The caller sends the action, device code, and request parameter data to the protocol conversion module via HTTP / Dubbo protocol; S2.2, after receiving the data information sent by the caller, the protocol conversion module queries the basic information of the hardware unit and the control point data information in the basic information model through the device code, and then converts the data into an industrial control protocol message and sends it to the hardware unit; S2.3, after receiving the request message, the hardware unit responds and returns a response message to the protocol conversion module; S2.4, after receiving the response message, the protocol conversion module stores the read data; S2.5. The protocol conversion module packages the data into Json format data and returns it to the caller.
[0012] Specifically, the data collection module creates and executes data collection tasks as follows: S3.1. Create a new data collection task, set the collection task name, collection interval time, and collection interval unit; S3.2. Bind the data collection task by selecting the basic information of the hardware unit stored in the device management module; S3.3, execute the data collection task, and cyclically collect the basic information of the hardware units bound to the task in the device management module according to the set collection interval time; S3.4. Store the latest data result of the data collection task in the cache middleware, waiting for subsequent processing.
[0013] Specifically, the push configuration module includes a configuration management unit and a configuration data processing unit, which are used to create a connection configuration with the MQTT Server, push the data collected by the collection module to the external MQTT Server through the MQTT protocol, configure the push information to be pushed to the MQTT Server, and configure the MQTT message topic and message service quality. The method is as follows: S4.1. The configuration management unit creates and sets the push configuration, including: configuration code, configuration name, communication protocol, connection address, port number, connection timeout, response time, authentication account, authentication password; and configures the MQTT message topic and message service quality; S4.2. Select a hardware unit from the created push task and establish a binding relationship with the push configuration; S4.3, obtaining the latest data collection results of the hardware unit bound to the push configuration from the cache middleware, and returning it to the configuration data processing unit for processing; S4.4. The configuration data processing unit encapsulates the latest data of the hardware unit according to a preset JSON data format; S4.5. The MQTT Server establishes a connection with a plurality of consumer units, and each consumer unit subscribes to messages on a designated topic through the MQTT Server.
[0014] Specifically, the monitoring configuration module includes: a monitoring rule management unit, an alarm triggering unit and an alarm push configuration unit, which are used to set monitoring rules for the hardware device data collected in the data acquisition module, trigger an alarm when the monitoring rule is triggered, and use the MQTT protocol at the same time, select the MQTT server configuration that has been created in the push configuration module, and push the alarm information to the outside.
[0015] Specifically, the monitoring configuration module includes the following sub-steps: S5.1. Create a new monitoring rule in the monitoring rule management unit, and set the monitoring name, monitoring field, monitoring rule, monitoring threshold, threshold unit, monitoring interval, and urgency; S5.2, select one or more hardware units corresponding to the data collection task, and bind them to the monitoring rules created in step S5.1; S5.3, the alarm trigger unit cyclically obtains the latest data collection results of the hardware unit from the cache middleware according to the hardware unit information bound to the monitoring rule and the set monitoring interval; S5.4. Compare the monitored fields in the collected results with the set thresholds according to the monitoring rules. If the monitoring rules are triggered, an alarm message is generated; S5.5. The alarm push configuration unit creates a new alarm push configuration, sets the push protocol, selects a push configuration in the configuration management unit as the alarm push configuration, and sets the push interval; S5.6. Push the alarm message data to the MQTT Server one by one through the MQTT protocol according to the push configuration.
[0016] Preferably, in the independent system deployment mode, the intelligent industrial gateway system is deployed as an independent system with independent authentication, user management, and menu functions; the heterogeneous software system or digital twin program acts as the protocol conversion request initiator through the Http protocol, and / or as an MQTT message consumer unit to subscribe to push data or alarm message data; In the integrated system deployment mode, the intelligent industrial gateway system is deployed as a sub-service of the microservice architecture software built on the SpringCloud Alibaba and Dubbo frameworks, sharing the API gateway, registration center, cache middleware, permissions, users, menu functions and data with the original microservice software to form a unified platform; The multi-gateway system deployment mode includes multiple intelligent industrial gateway systems deployed in independent system mode, connecting multiple hardware units to form a distributed deployment architecture. Multiple intelligent industrial gateway systems are connected through the MQTT Server, which receives and transmits MQTT messages to the data centralized storage service, and stores the data in the data warehouse after data processing.
[0017] Specifically, the industrial gateway system is compatible with a variety of CPU chips, operating systems, databases and middleware consisting of a trustworthy innovation environment, as follows: CPU chips include: Haiguang, Zhaoxin, Kunpeng, and Loongson; Operating systems include: Kylin Advanced Server Operating System, Tongxin Server Operating System, and Fangde High-Reliability Server Operating System; Databases include: DAMO database management system, Shenzhou general database management system, Hangao security version database system, and Renmin University Jincang database management system; The middleware includes cache middleware and application middleware. The cache middleware includes the DAMO New Cloud cache database software, and the application middleware includes the Eastern Telecom application server software TongWeb and the Eastern Telecom load balancing software TongHttpServer.
[0018] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects: 1. Autonomous and controllable: The intelligent industrial gateway system of the present invention is compatible with the trusted computing environment composed of domestic chips, operating systems, databases, and middleware products, realizes autonomous control of key technologies, and can ensure the security of data collection under the industrial Internet of Things; at the same time, because it has completed compatibility mutual recognition with a variety of trusted computing products, it has a relatively wide compatibility in the trusted computing field and can meet the convenience of migration between different trusted computing environments.
[0019] 2. Strong scalability: The intelligent industrial gateway system of the present invention supports a variety of communication protocols and interfaces, and can add new communication protocol support as needed, and can flexibly communicate data with different types of industrial equipment and systems or PLCs.
[0020] 3. Flexible deployment: The intelligent industrial gateway system of the present invention can be deployed as an independent system with independent authentication, user management, and menu functions. It can be used as data communication middleware between hardware devices and multiple heterogeneous systems. It can also be deployed as a sub-service of the microservice architecture software built on the SpringCloud Alibaba and Dubbo frameworks, sharing the API gateway, registration center, cache middleware and other middleware, as well as basic functions and data such as permissions, users, and menus with the original microservice software to form a unified platform, reduce integration costs, and provide better system compatibility and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a structure diagram of a trust-based innovation environment deployment for the intelligent industrial gateway system of the present invention; Figure 2 This is a diagram of a multi-trust environment compatible deployment structure of the intelligent industrial gateway system of the present invention; Figure 3 This is a diagram of the deployment structure of the non-trusted innovation environment of the intelligent industrial gateway system of the present invention; Figure 4 This is a structural diagram of the device management module of the intelligent industrial gateway system of the present invention; Figure 5 This is a structural diagram of the protocol conversion module of the intelligent industrial gateway system of the present invention; Figure 6 This is a structural diagram of the data acquisition module of the intelligent industrial gateway system of the present invention; Figure 7 This is a diagram of the push configuration module structure of the intelligent industrial gateway system of the present invention; Figure 8 This is a structural diagram of the monitoring configuration module of the intelligent industrial gateway system of the present invention; Fig. 9 This is a structural diagram of the independent system deployment mode of the intelligent industrial gateway system of the present invention; Fig.10 This is a structural diagram of the deployment mode of the intelligent industrial gateway system fusion system of the present invention; Fig.11 This is a structural diagram of the multi-gateway system deployment model of the intelligent industrial gateway system of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the application is further elaborated in detail below in conjunction with the accompanying drawings. The described embodiments are only a part of the embodiments involved in the present invention. All non-innovative embodiments of other researchers in the field on this embodiment belong to the protection scope of the present invention. At the same time, for the step numbering in the embodiment of the present invention, it is only set for the convenience of explanation, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0023] In one embodiment of the present invention, Figure 1 As shown, the intelligent industrial gateway system based on the trusted innovation environment includes: equipment management module, protocol conversion module, data acquisition module, push configuration module, and monitoring configuration module.
[0024] The specific information innovation environment of this embodiment is as follows: the CPU chip adopts Hygon C86 5386 chip, the operating system is Kylin Advanced Server Operating System V10 SP3, the database is DAMO Database Management System V8, the Web back-end service container middleware is Eastern TongWeb7.0, the Web front-end service container middleware is Eastern TongHttpServer6.0, and the cache middleware is DAMO cache database software V1.0.
[0025] The intelligent industrial gateway system involved in this embodiment is compatible with a variety of information and innovation products, such as Figure 2 As shown, the CPU chip, operating system, database, and middleware shown in the figure can form a variety of combinations of trusted computing deployment environments to deploy the trusted computing intelligent industrial gateway system involved in the present invention.
[0026] CPU chips include but are not limited to: Hygon and Zhaoxin CPUs based on X86 architecture, Kunpeng CPUs based on Arm architecture, and CPUs based on other independent architectures, such as Loongson, etc. Operating systems include but are not limited to: Kylin Advanced Server Operating System, Tongxin Server Operating System, and Zhongke Fangde High-Trust Server Operating System; Databases include but are not limited to: DAMO database management system, SUNZHOU general database management system, HANGO security version database system, and NPC Golden Warehouse database management system; Middleware includes but is not limited to: TongWeb, TongHttpServer, and DAMO New Cloud cache database software.
[0027] It should be noted that the intelligent industrial gateway system involved in the present invention is not limited to the innovation environment of this embodiment, but can also support a variety of non-innovation environments, such as Figure 3 As shown in the figure, the CPU chips shown in the figure include Intel and AMD, the operating systems include Windows and Linux, the databases include Oracle, Mysql, PostgreSQL, and the middleware includes Nginx, Tocmat, and Redis. A variety of combined deployment environments can be formed to deploy the intelligent industrial gateway system involved in the present invention.
[0028] Furthermore, the device management module of the intelligent industrial gateway system of this embodiment is used to add and store basic information of hardware units that need to communicate, and map the register information of hardware units supporting different communication protocols and the corresponding data collection point information.
[0029] like Figure 4 As shown, the hardware unit is a hardware unit that supports the Modbus TCP communication protocol, and can represent a hardware device in the physical world, including a PLC device or other hardware devices, or can be a virtual hardware device, such as a virtual device simulated by simulation software.
[0030] A basic information model corresponding to the hardware unit is established in the device management module to represent the hardware unit in the form of data.
[0031] To create a basic information model in the device management module, follow the following process: Step S1.1, create basic information of the hardware unit, which is used to store the hardware unit's code, name, communication protocol, device model, connection address IP, port number, connection timeout, and corresponding timeout; Optionally, basic information of new hardware units can be created by importing from Excel.
[0032] Step S1.2, the hardware unit stores the data generated by the hardware unit during operation through registers. The register address is usually expressed in hexadecimal. The corresponding control point information is established in the basic information to store the Chinese name, English name, Modbus TCP protocol function code, data type, register address (hexadecimal), device slave station number, and parameter permissions of the register address bit.
[0033] The starting address of a register in the hardware unit corresponds to the description of a control point information in the device management module. The two are mutually corresponding. Each basic information can correspond to multiple new control point information.
[0034] Step S1.2: Delete, edit, and query the stored basic information and / or control point information according to actual needs.
[0035] Optionally, new control point information can be created by importing it from Excel. For different hardware units and different communication protocols, the basic information and control point information may be different.
[0036] The protocol conversion module of the intelligent industrial gateway system of this embodiment is used to convert the software communication protocol into the industrial control protocol according to the basic information of the hardware unit to complete the data collection or hardware device control action; like Figure 5 As shown, the caller of the protocol conversion module can be a sub-service of a microservice system, or a software system, and the hardware unit information is the corresponding basic information model in the device management module.
[0037] The process of HTTP / Dubbo converting Modbus TCP is as follows: Step S2.1: The caller sends the action, device code, and request parameter data to the protocol conversion module via the HTTP / Dubbo protocol.
[0038] For example, the request parameters for reading all control point data are: { "action": "READ", "code": "Test01" } Among them, the device code is "Test01" and the action is "READ".
[0039] The corresponding control point data name is "exitConveyor", the function code is "01", the register start address is "02H", the data type is Boolean (length 1 byte), and the request parameters for writing the point to "true" are: { "action": "WRITE", "code": "Test01", "requestData": { "exitConveyor": true } } Step S2.2: After receiving the data information sent by the caller, the protocol conversion module first queries the basic information of the hardware unit and the control point data information in the basic information model through the device code, and then converts the data into a Modbus TCP protocol message and sends it to the hardware unit. The content is as follows: Request message: 00 01 00 00 00 06 01 01 00 02 00 01 00 01: Transaction identifier 00 00: Modbus TCP protocol 00 06: followed by 00 06 bytes of data 01: Unit identifier 01: Function code (read coil) 00 02: The address where the data to be read starts.
[0040] 00 01: The data read length is 1 register address.
[0041] Step S2.3: After receiving the request message, the hardware unit responds and returns a response message as follows: Response message: 00 01 00 00 00 04 01 01 01 01 00 01: Transaction identifier 00 00: Modbus TCP protocol 00 04: followed by 00 04 bytes of data 01: Unit identifier 01: Function code 01: There is 01 bytes of data behind 01: The data value read Step S2.4: After receiving the response message, the protocol conversion module temporarily stores the read data and repeats steps S2.2 to S2.3 until all the data of all points are read or written; Step S2.5: The protocol conversion module packages the data into Json format data and returns it to the caller.
[0042] The data acquisition module of the intelligent industrial gateway system of this embodiment is as follows: Figure 6 As shown, it is used to store the results of data collection in the cache middleware. The specific method is as follows.
[0043] Step S3.1, create a new data collection task, and set the collection task name, collection interval time, and collection interval unit; Step S3.2, by selecting the basic information of the hardware unit stored in the device management module, bind the data collection task; Step S3.3, execute the data collection task, and cyclically collect the basic information of the hardware units bound to the task in the device management module according to the set collection interval time; Step S3.4: Store the latest data result of the data collection task in the cache middleware, waiting for subsequent processing.
[0044] Optionally, you can query, edit, and delete data collection tasks.
[0045] Optionally, you can add or delete devices bound to the data collection task.
[0046] Optionally, the data collection task can be started or stopped.
[0047] The push configuration module of the intelligent industrial gateway system of this embodiment is used to create a connection configuration with the MQTT Server and push messages to the MQTT Server. Figure 7 As shown, the push configuration module includes a configuration management unit and a configuration data processing unit. The MQTT Server connects several MQTT message consumer units. The consumer units can be heterogeneous software systems or digital twin programs, etc.
[0048] The data collection module creates several data collection tasks and stores the latest collection results in the cache middleware. The push configuration module pushes MQTT messages as follows: Step S4.1, the configuration management unit creates and sets the push configuration, including: configuration code, configuration name, communication protocol, connection address, port number, connection timeout, response time, identity authentication account, and identity authentication password; Step S4.2, select a hardware unit from the created push task and establish a binding relationship with the push configuration; This embodiment uses the MQTT protocol as the push protocol, and can set the topic of the MQTT message and the level of the message service quality QoS; Step S4.3, obtaining the latest data collection results of the hardware unit bound to the push configuration from the cache middleware, and returning it to the configuration data processing unit for processing; Step S4.4, the configuration data processing unit encapsulates the latest data of the hardware unit according to the preset JSON data format; This embodiment adopts the MQTT protocol as the push protocol, and pushes the MQTT message to the MQTT Server according to the MQTT message topic and the message service quality level set in step S4.2.
[0049] Step S4.5: The consumer unit subscribes to messages on the specified topic through the MQTT Server.
[0050] Optionally, you can query, edit, and delete the push configuration.
[0051] Optionally, you can add or delete devices bound to the push configuration.
[0052] Optionally, the push protocol is not limited to the MQTT protocol, and only relevant configuration is required.
[0053] The monitoring configuration module of the intelligent industrial gateway system of this embodiment is as follows: Figure 8 As shown, it includes a monitoring rule management unit and an alarm message management unit, and the alarm message management unit further includes an alarm triggering unit and an alarm push configuration unit.
[0054] The monitoring configuration module is specifically processed as follows: Step S5.1: The monitoring rule management unit creates a new monitoring rule, and sets the monitoring name, monitoring field, monitoring rule, monitoring threshold, threshold unit, monitoring interval (unit: seconds), and urgency.
[0055] Optionally, the monitoring rule can be set to equal to, not equal to, greater than, greater than or equal to, less than, or less than or equal to.
[0056] Step S5.2: Select a hardware unit corresponding to the data collection task and bind it to the monitoring rule created in step S5.1.
[0057] Optionally, in step S5.2, multiple hardware units corresponding to the data collection tasks can be selected and bound to the monitoring rules created in step S5.1.
[0058] Step S5.3, the alarm triggering unit cyclically obtains the latest data collection results of the hardware unit from the cache middleware according to the hardware unit information bound to the monitoring rule and the set monitoring interval; Step S5.4: compare the monitored fields in the collected results with the set thresholds according to the monitoring rules. If the monitoring rules are triggered, an alarm message is generated; Step S5.5: Create a new alarm push configuration in the alarm push configuration unit, set the push protocol, and select Figure 7 Use a push configuration as the alarm push configuration and set the push interval; Step S5.6: Push the alarm message data one by one according to the push configuration.
[0059] In this embodiment, the MQTT protocol is used for push, and the alarm message is pushed to the MQTT Server. Each consumer unit subscribes to a specified topic through the MQTT Server.
[0060] Optionally, the monitoring configuration module can query, edit, and delete the monitoring configuration, and can add and delete hardware unit devices bound to the monitoring configuration.
[0061] The deployment modes of the intelligent industrial gateway system of the present invention include independent system deployment mode, integrated system deployment mode and multi-gateway system deployment mode, and are compatible with a variety of trusted innovation environments or non-trusted innovation environments consisting of a variety of CPU chips, operating systems, databases and middleware.
[0062] In one application of the present invention, the deployment mode adopted is an independent system deployment mode, such as Fig. 9 As shown, in the independent system deployment mode, the intelligent industrial gateway system has independent user management and authority management functions.
[0063] exist Fig. 9 In the figure, hardware unit 1 to hardware unit n represent multiple hardware devices in the physical world, which can be PLCs or other hardware devices, or virtual hardware devices, such as virtual devices simulated by simulation software; MQTT Server is used to receive and transmit MQTT messages; software system 1 to software system n can be heterogeneous software systems or digital twin programs, etc., which can be consumer units of MQTT messages or initiators of protocol conversion requests.
[0064] In the independent system deployment mode, the processing flow of the intelligent industrial gateway system is as follows: Step S6.1, heterogeneous software systems Software System 1 to Software System n call the protocol conversion function of the intelligent industrial gateway system through the Http protocol; Step S6.2: The intelligent industrial gateway system collects data or controls equipment on the hardware unit; Step S6.3, the intelligent industrial gateway system sends the data collection results of the hardware unit to the MQTT Server with a specified topic; Step S6.4: The consumer unit subscribes to a message on a specified topic through the MQTT Server.
[0065] In another application of the present invention, the deployment mode adopted is a fusion system deployment mode, such as Fig.10 As shown, in the fusion system deployment mode, the intelligent industrial gateway system is deployed in microservice mode.
[0066] exist Fig.10 In the figure, hardware unit 1 to hardware unit n represent multiple hardware devices in the physical world, which may be PLC or other hardware devices, or virtual hardware devices, such as virtual devices simulated by simulation software.
[0067] The microservice architecture software system is built based on the SpringCloud Alibaba and Dubbo frameworks, including: intelligent industrial gateway service, API gateway SpringCloud Alibaba Gateway, registration center SpringCloud AlibabaNacos, and cache middleware redis; the intelligent industrial gateway service is a sub-service of the microservice model, including several basic services and business services.
[0068] In the fusion system deployment mode, the intelligent industrial gateway system processing flow is as follows: Step S7.1, the intelligent industrial gateway service is configured and registered to the registration center after the service is started; Step S7.2, after the API gateway is configured, it can proxy and forward the Http request to the smart industrial gateway service; Step S7.3: The business service calls the protocol conversion interface of the intelligent industrial gateway service through the registration center via the Dubbo protocol to implement data collection and equipment control operations.
[0069] In particular, the intelligent industrial gateway system of the present invention can also be used in combination, such as Fig.11 As shown, the hardware unit represents a hardware device in the physical world, which may be a PLC or other hardware device, or a virtual hardware device, such as a virtual device simulated by simulation software.
[0070] Intelligent industrial gateway system 1 to intelligent industrial gateway system n are multiple intelligent industrial gateway systems deployed in independent system mode, which constitute a distributed deployment architecture as a whole; MQTT Server connects each intelligent industrial gateway system to receive and transmit MQTT messages to the data centralized storage service, and the data centralized storage service is connected to the data warehouse.
[0071] Combined intelligent industrial gateway system, the processing flow is as follows: Step S8.1, each intelligent industrial gateway system collects data from the hardware units by establishing a data collection task; Step S8.2, each intelligent industrial gateway system pushes the collected data to the MQTT Server by setting a specified topic through push configuration; Step S8.3: The centralized data storage service subscribes to the MQTT message, processes it, and stores it in the data warehouse for subsequent data analysis and report presentation.
[0072] It can be seen that the intelligent industrial gateway system of the present invention is compatible with the trust creation environment composed of domestic chips, operating systems, databases, and middleware products, realizes the autonomous control of key technologies, has a relatively wide compatibility in the trust creation field, can meet the convenience of migration between different trust creation environments, supports a variety of communication protocols and interfaces, and can flexibly communicate data with different types of industrial equipment and systems or PLCs. At the same time, the intelligent industrial gateway system of the present invention is flexible to deploy, and can be deployed as an independent system, or as a sub-service of the microservice architecture software built based on the SpringCloud Alibaba and Dubbo frameworks, forming a unified platform, reducing integration costs, and providing better system compatibility and user experience.
[0073] The above embodiments of the present application are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solutions described in the above embodiments can still be modified, or some of the features thereof can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An intelligent industrial gateway system based on a trusted innovation environment, characterized in that: include: Device management module, protocol conversion module, data acquisition module, push configuration module, monitoring configuration module; The device management module represents the hardware units in the form of data by creating a basic information model, and adds and stores basic information of the hardware units that need to communicate; The protocol conversion module converts the industrial control protocol supported by each hardware unit into the Http / Dubbo protocol according to the basic information of the hardware unit; The data acquisition module is used to create and execute acquisition tasks, collect data corresponding to the basic information of the hardware unit in real time, and store the latest data in the cache middleware; The push configuration module pushes the data collected by the collection module to the outside through the MQTT protocol, and configures the MQTT message topic and message service quality; The monitoring configuration module is used to configure monitoring rules, monitor the collected data corresponding to the basic information of the hardware unit in real time, and generate corresponding alarm information for the data that triggers the alarm rule, and push it to the outside through the push configuration module; The deployment modes of the intelligent industrial gateway system include: independent system deployment mode, integrated system deployment mode, and multi-gateway system deployment mode, which are compatible with trusted or non-trusted environments consisting of a variety of CPU chips, operating systems, databases, and middleware.
2. According to claim 1, the intelligent industrial gateway system based on the trust innovation environment is characterized in that: The hardware unit is an actual hardware device or a virtual hardware device, and the basic information includes: hardware unit code, name, device model, communication protocol, connection address IP, connection port, connection timeout, and corresponding timeout.
3. According to claim 2, the intelligent industrial gateway system based on the trust innovation environment is characterized in that: The device management module creates a basic information model, including the following sub-steps: S1.
1. Add or import hardware units that need to communicate, and set and store basic information of the hardware units according to the industrial control protocols supported by the hardware units; S1.2, create control point information, and map the hardware unit register information and data acquisition point information supporting different communication protocols: the hardware unit stores the data generated during operation through registers, and establishes or imports several control point information corresponding to the hardware unit registers in the basic information. Each control point information corresponds to a register information of the hardware unit, including the Chinese name of the address bit, English name, data type, register address, parameter authority, and function code and device slave station number in the Modbus protocol; S1.
3. Modify, delete, and query the basic information and / or control point information of the added hardware units as needed.
4. The intelligent industrial gateway system based on the trusted innovation environment according to claim 1 is characterized in that: The industrial control protocols include: Modbus TCP, Modbus RTU, MQTT, OPC UA, OpenProtocol and S7, and the caller is a sub-service or software system of the microservice system; The industrial control protocol supported by each hardware unit is converted to the Http / Dubbo protocol, including the following sub-steps: S2.
1. The caller sends the action, device code, and request parameter data to the protocol conversion module via HTTP / Dubbo protocol; S2.2, after receiving the data information sent by the caller, the protocol conversion module queries the basic information of the hardware unit and the control point data information in the basic information model through the device code, and then converts the data into the corresponding industrial control protocol message and sends it to the hardware unit; S2.3, after receiving the request message, the hardware unit responds and returns a response message to the protocol conversion module; S2.4, after receiving the response message, the protocol conversion module stores the read data; S2.
5. The protocol conversion module packages the read data into Json format data and returns it to the caller.
5. According to claim 1, the intelligent industrial gateway system based on the trust innovation environment is characterized in that: The data acquisition module creates and executes data acquisition tasks as follows: S3.
1. Create a new data collection task, set the collection task name, collection interval time, and collection interval unit; S3.
2. Bind the data collection task by selecting the basic information of the hardware unit stored in the device management module; S3.3, execute the data collection task, and cyclically collect the data corresponding to the basic information of the hardware unit bound to the task in the device management module according to the set collection interval time; S3.
4. Store the latest data result of the data collection task in the cache middleware, waiting for subsequent processing.
6. The intelligent industrial gateway system based on the trusted innovation environment according to claim 1 is characterized in that: The push configuration module includes a configuration management unit and a configuration data processing unit, which are used to create a connection configuration with the MQTT Server, push the data collected by the collection module to the external MQTT Server through the MQTT protocol, configure the push information to be pushed to the MQTT Server, and configure the MQTT message topic and message service quality. The method is as follows: S4.
1. The configuration management unit creates and sets the push configuration, including: configuration code, configuration name, communication protocol, connection address, port number, connection timeout, response time, authentication account, authentication password; and configures the MQTT message topic and message service quality; S4.
2. Select a hardware unit from the created push task and establish a binding relationship with the push configuration; S4.3, obtaining the latest data collection results of the hardware unit bound to the push configuration from the cache middleware, and returning it to the configuration data processing unit for processing; S4.
4. The configuration data processing unit encapsulates the latest data of the hardware unit according to a preset JSON data format; S4.
5. The MQTT Server establishes a connection with a plurality of consumer units, and each consumer unit subscribes to messages on a designated topic through the MQTT Server.
7. The intelligent industrial gateway system based on the trust innovation environment according to claim 6 is characterized in that: The monitoring configuration module includes a monitoring rule management unit, an alarm triggering unit and an alarm push configuration unit, which are used to set monitoring rules for the hardware device data collected in the data acquisition module, trigger an alarm when the monitoring rule is triggered, and at the same time, use the MQTT protocol and select the MQTT server configuration that has been created in the push configuration module to push alarm information to the outside.
8. The intelligent industrial gateway system based on the trust innovation environment according to claim 7 is characterized in that: The specific processing of the monitoring configuration module includes the following sub-steps: S5.
1. Create a new monitoring rule in the monitoring rule management unit, and set the monitoring name, monitoring field, monitoring rule, monitoring threshold, threshold unit, monitoring interval, and urgency; S5.2, select one or more hardware units corresponding to the data collection task, and bind them to the monitoring rules created in step S5.1; S5.3, the alarm trigger unit cyclically obtains the latest data collection results of the hardware unit from the cache middleware according to the hardware unit information bound to the monitoring rule and the set monitoring interval; S5.
4. Compare the monitored fields in the collected results with the set thresholds according to the monitoring rules. If the monitoring rules are triggered, an alarm message is generated; S5.
5. The alarm push configuration unit creates a new alarm push configuration, sets the push protocol, selects a push configuration in the configuration management unit as the alarm push configuration, and sets the push interval; S5.
6. Push the alarm message data to the MQTT Server one by one through the MQTT protocol according to the push configuration.
9. The intelligent industrial gateway system based on the trust innovation environment according to claim 1 is characterized in that: In the independent system deployment mode, the intelligent industrial gateway system is deployed as an independent system with independent authentication, user management, and menu functions; Heterogeneous software systems or digital twin programs use the HTTP protocol as the initiator of protocol conversion requests, and / or as an MQTT message consumer unit to subscribe to push data or alarm message data; In the fusion system deployment mode, the intelligent industrial gateway system is deployed as a sub-service of the microservice architecture software built on the SpringCloud Alibaba and Dubbo frameworks, sharing the API gateway, registration center, cache middleware, permissions, users, menu functions and data with the original microservice software to form a unified platform; The multi-gateway system deployment mode includes multiple intelligent industrial gateway systems deployed in independent system mode, connecting multiple hardware units to form a distributed deployment architecture as a whole. Multiple intelligent industrial gateway systems are connected through the MQTT Server, receiving and transmitting MQTT messages to the data centralized storage service, and storing them in the data warehouse after data processing.
10. The intelligent industrial gateway system based on the trusted innovation environment according to claim 1 is characterized in that: The industrial gateway system is compatible with a variety of CPU chips, operating systems, databases and middleware environments, as follows: CPU chips include: Haiguang, Zhaoxin, Kunpeng, and Loongson; Operating systems include: Kylin Advanced Server Operating System, Tongxin Server Operating System, and Fangde High-Reliability Server Operating System; Databases include: DAMO database management system, Shenzhou general database management system, Hangao security version database system, and Renmin University Jincang database management system; The middleware includes cache middleware and application middleware. The cache middleware includes the DAMO New Cloud cache database software, and the application middleware includes the Eastern Telecom application server software TongWeb and the Eastern Telecom load balancing software TongHttpServer.
Citation Information
Patent Citations
Internet of Things intelligent gateway for multi-data protocol conversion
CN106878163A
Method for accessing intelligent hardware to Internet of Things cloud platform
CN109889551A
Micro-service development management system
CN115242644A
Service analysis system and method based on access flow of API (Application Program Interface) gateway in credential environment
CN115766527A
Internet of Things data processing system based on multi-protocol equipment access
CN118101791A
Cited By
4G and Modbus multi-protocol conversion gateway and method
CN121037466A
Equipment state acquisition and management method supporting multiple transmission modes
CN122137775A
A device state acquisition and management method supporting multiple transmission modes
CN122137775B
