An industrial communication management system and method based on microservice architecture under industrial Internet

By adopting an industrial communication management system with a microservice architecture under the industrial Internet, it provides user-defined protocol access and unified protocol access methods, solves the device layer access problem in the existing technology, and realizes protocol plug-in management and multi-device management. Access improves the reusability and ease of deployment of the system.

CN115442446BActive Publication Date: 2024-10-29CHINA THREE GORGES CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211055146.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-10-29
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

It is difficult for existing industrial communication systems to achieve simple and easy deployment, system reusability, flexible protocol plug-in management and multi-device access when accessing at the device layer. Moreover, development is difficult and support is poor.

Method used

The industrial communication management system adopts the microservice architecture under the industrial Internet, including front-end interface module, message processing module, data processing module, protocol management module, custom protocol module and equipment management module, and provides user-defined protocol interface through remote procedure calling. Input, use serialized data structure files to unify protocol access and data packaging, reduce the difficulty of device access and maintenance, and expand protocol and device types.

Benefits of technology

It realizes flexible management of protocol plug-ins, reduces the difficulty of device access and maintenance, expands the types of communication equipment, and improves the reusability and ease of deployment of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442446B_ABST
    Figure CN115442446B_ABST
Patent Text Reader

Abstract

The present invention discloses an industrial communication management system and method of a microservice architecture under the industrial Internet, the system comprising: a front-end interface module collects user information; a message processing module inputs user information into a message queue to generate an interface message queue; a data processing module extracts queue header information of the interface message queue, and unpacks the interface message queue based on the message type in the queue header information to generate user data; a protocol management module transmits user data to a custom protocol module using a remote procedure call; the custom protocol module extracts the data type and data format of a serialized data structure file, and uses the data type and data format to convert the user-defined protocol into an industrial protocol; and a device management module performs device management based on user data. This method also expands the types of access protocols, realizes flexible management of protocol plug-ins, thereby expanding the types of communication equipment and improving reusability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial communication technology, and in particular to an industrial communication management system and method of a microservice architecture under the Industrial Internet. Background Art

[0002] With the development of the industrial Internet, various intelligent collectors, controllers, edge computing and other technologies have begun to be integrated into all aspects of the industrial production process. The access of various intelligent devices has brought about a wide variety of industrial protocols. To achieve compatibility of various intelligent devices, a large number of different industrial protocols need to be implemented. The custom development of these protocols, sustainable management and flexible management of multiple devices have become a key difficulty in the development of industrial production software. At the same time, in order to create industrial communication software that is simple to deploy, lightweight, easy to use, intelligent and easy to maintain, various industrial software manufacturers and Internet of Things manufacturers have begun to consider Internet technologies such as microservice architecture when designing product architecture.

[0003] Microservice is a design style in system architecture. Its main purpose is to split an originally independent system into multiple small services. These small services run in their own independent processes. The services communicate and collaborate through RESTful API (RESTful-style interface, a set of protocols to regulate the interaction between various forms of front-end and the same back-end). Each small service that is split into maintains its own data storage independently. It is small, independent, light and loose, with the characteristics of componentization, loose coupling, autonomy and decentralization. These microservices can be written in different languages.

[0004] There are two main design ideas for the communication systems currently connected to the device layer: one is to still design and develop industrial control as a single service system and design a complete monitoring system; under this design mode, it is extremely difficult for users to customize the development protocol and run and debug the customized development protocol; the system is closed and only supports specific protocols, and the support for different types of equipment is poor; users need to deploy a complete monitoring system during deployment, and due to the complex internal topology of the system and incomplete encapsulation, it is difficult for users to deploy.

[0005] The second is to separate the system and the monitoring platform. This design idea is only adopted by a few open source systems. Although these systems have separated the device communication and the original monitoring software, they still design data display, data transmission, protocol analysis, and device management as a whole. It is still not lightweight and simple enough, and there are still major defects in how to manage user-defined development protocols. Users must download the complete source code of the communication system before developing the protocol. The development is difficult and the code maintenance is difficult; the support for different types of equipment is also poor.

[0006] It can be seen that under these two ideas, it is impossible to solve the problems of simple and easy deployment, system reusability, flexible management of protocol plug-ins and multi-device access without increasing too much development workload. Summary of the invention

[0007] Therefore, the technical problem to be solved by the present invention is to overcome the defects of the communication system accessed to the device layer in the prior art that cannot solve the problems of simple and easy deployment, system reusability, flexible management of protocol plug-ins and multi-device access without increasing too much development workload, thereby providing an industrial communication management system and method with a microservice architecture under the Industrial Internet.

[0008] The embodiment of the present invention provides an industrial communication management system of a microservice architecture under the industrial Internet, including:

[0009] Front-end interface module, message processing module, data processing module, protocol management module, custom protocol module and device management module;

[0010] The front-end interface module is used to collect user information and send the user information to the message processing module;

[0011] The message processing module is used to input user information into the message queue, generate an interface message queue, and send the interface message queue to the data processing module;

[0012] The data processing module is connected to the message processing module, the protocol management module and the device management module respectively, and is used to extract the queue header information of the interface message queue, and unpack the interface message queue based on the message type in the queue header information to generate user data;

[0013] A protocol management module, used to transfer user data to a custom protocol module by using a remote procedure call;

[0014] A custom protocol module is used to obtain a user-defined protocol and a serialized data structure file based on user data, extract the data type and data format of the serialized data structure file, and convert the user-defined protocol into an industrial protocol using the data type and data format, and transmit the industrial protocol to the device through the protocol management module;

[0015] The device management module is used to manage devices based on user data.

[0016] The present invention provides an industrial communication management system with a microservice architecture under the industrial Internet, which provides an access method for user-defined protocols through remote procedure calls, so that users can be provided with protocol management functions while communicating normally; the protocol access conditions are specified through serialized data structure files, the protocol access method and data packaging method are unified, the difficulty of device access and maintenance is reduced, the types of access protocols are expanded, and flexible management of protocol plug-ins is realized, thereby expanding the types of communication equipment and improving reusability.

[0017] Optionally, the data processing module is further configured to transfer the user data to the protocol management module when the message type is a protocol type; and to transfer the user data to the device management module when the message type is a device message.

[0018] Optionally, it also includes: a protocol processing module; the protocol processing module connects the front-end interface module and the custom protocol module;

[0019] The front-end interface module obtains the serialized data structure file and the protocol token; the protocol processing module generates a remote procedure call server based on the serialized data structure file for the remote procedure call client, and inputs the custom protocol development code and the protocol token into the remote procedure call client, generates a user-defined protocol, and transmits the user-defined protocol to the custom protocol module.

[0020] Optionally, it further includes: a database module; the database module is connected to the data processing module;

[0021] The database module calls the display data based on the user data and transmits the display data to the data processing module. The data processing module transmits the display data to the front-end interface module through the message processing module for display.

[0022] Optionally, the database module includes: a real-time database unit, a configuration database unit and a historical database unit;

[0023] A real-time database unit, used to store real-time data of the device according to time sequence;

[0024] A configuration database unit, used to store configuration data, user data and device management data;

[0025] The historical database unit is used to store historical data using a distributed file storage method.

[0026] Optionally, the serialized data structure file uses a protobuf file.

[0027] Optionally, the remote procedure call method adopts the gRPC method.

[0028] In the second aspect of the present application, an industrial communication management method of a microservice architecture under the industrial Internet is also proposed, including:

[0029] The front-end interface module collects user information and sends the user information to the message processing module;

[0030] The message processing module inputs the user information into the message queue, generates an interface message queue, and sends the interface message queue to the data processing module;

[0031] The data processing module extracts the queue header information of the interface message queue, and unpacks the interface message queue based on the message type in the queue header information to generate user data;

[0032] The protocol management module transfers user data to the custom protocol module using remote procedure call;

[0033] The custom protocol module obtains the user-defined protocol and serialized data structure file based on the user data, extracts the data type and data format of the serialized data structure file, and converts the user-defined protocol into an industrial protocol by using the data type and data format, and transmits the industrial protocol to the device through the protocol management module;

[0034] The device management module manages devices based on user data.

[0035] Optionally, the data processing module extracts queue header information of the interface message queue, and unpacks the interface message queue based on the message type in the queue header information to generate user data, including:

[0036] When the message type is a protocol type, the user data is transmitted to the protocol management module; when the message type is a device message, the user data is transmitted to the device management module.

[0037] Optionally, it also includes:

[0038] The front-end interface module obtains the serialized data structure file and the protocol token. The protocol processing module generates a remote procedure call server based on the serialized data structure file for the remote procedure call client, and inputs the custom protocol development code and the protocol token into the remote procedure call client to generate a user-defined protocol, and transmits the user-defined protocol to the custom protocol module.

[0039] Optionally, it also includes:

[0040] The database module calls the display data based on the user data and transmits the display data to the data processing module. The data processing module transmits the display data to the front-end interface module through the message processing module for display.

[0041] Optionally, the database module calls the display data based on the user data, transmits the display data to the data processing module, and the data processing module transmits the display data to the front-end interface module through the message processing module for display, further comprising:

[0042] The real-time database unit stores the real-time data of the device according to the time sequence;

[0043] The configuration database unit stores configuration data, user data and device management data;

[0044] The historical database unit uses a distributed file storage method to store historical data.

[0045] Optionally, the serialized data structure file uses a protobuf file.

[0046] Optionally, the remote procedure call method adopts the gRPC method.

[0047] In the third aspect of the present application, a computer device is also proposed, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes a program, and the processor is configured to call the computer program to execute the method of the first aspect above.

[0048] In a fourth aspect of the present application, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 This is a principle block diagram of an industrial communication management system with a microservice architecture under the industrial Internet in Example 1 of the present invention;

[0051] Figure 2 This is a schematic diagram of a user-defined protocol flexible access system in Example 1 of the present invention;

[0052] Figure 3 is a principle block diagram of the database module 8 in Embodiment 1 of the present invention;

[0053] Figure 4 This is a flow chart of an industrial communication management method of a microservice architecture under the industrial Internet in Example 2 of the present invention;

[0054] Figure 5 This is a flowchart of step S407 in embodiment 2 of the present invention. DETAILED DESCRIPTION

[0055] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0057] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0058] Example 1

[0059] This embodiment provides an industrial communication management system based on a microservice architecture under the industrial Internet. Figure 1 As shown, it includes: a front-end interface module 1, a message processing module 2, a data processing module 3, a protocol management module 4, a custom protocol module 5 and a device management module 6;

[0060] The front-end interface module 1 is used to collect user information and send the user information to the message processing module 2.

[0061] Specifically, the front-end interface module 1 sends user information to the message processing module 2 via the RESTFUL API;

[0062] Furthermore, the front-end interface module 1 and the message processing module 2 perform data transmission via the hypertext transfer protocol (http).

[0063] The message processing module 2 is used to input the user information into a message queue, generate an interface message queue, and send the interface message queue to the data processing module 3.

[0064] Specifically, the message processing module 2 uses the address and type of the user information as queue header information, encapsulates the content of the user information in the form of a message queue, and then generates an interface message queue.

[0065] The data processing module 3 is respectively connected to the message processing module 2, the protocol management module 4 and the device management module 6, and is used to extract the queue header information of the interface message queue, and unpack the interface message queue based on the message type in the queue header information to generate user data.

[0066] Specifically, the data processing module 3 is further configured to transmit the user data to the protocol management module 4 when the message type is a protocol type; and transmit the user data to the device management module 6 when the message type is a device message.

[0067] Furthermore, the data processing module 3 executes the corresponding program according to the specific message header (i.e., the queue header information; the message header of the sent message will indicate what type of operation the message processing module 2 has received, such as adding a device, issuing an instruction to the device, etc.), and unpacks the interface message queue; if it is an operation on the device or database, the message will be unpacked, and the corresponding database will be added, deleted, modified, and checked; if it is an operation on the protocol, the interface message queue will be unpacked first, and packaged in the format of the corresponding protocol (i.e., the user-defined protocol), and the user data will be transmitted to the custom protocol module 5 via gRPC.

[0068] The protocol management module 4 is used to transmit the user data to the custom protocol module 5 by remote procedure call.

[0069] Specifically, the above-mentioned remote procedure call method adopts the gRPC method (gRPC is a high-performance, open source and general RPC (Remote Procedure Call) framework, based on protobuf (Protocol Buffers, a tool for serializing structured data, realizing data storage and exchange, independent of programming language and development platform) serialization protocol development, and supports many development languages), wherein the gRPC method is oriented to the server and mobile terminals, based on HTTP / 2 (the latest version of the Hypertext Transfer Protocol) design, bringing features such as bidirectional streaming, flow control, header compression, and multiple multiplexing requests on a single TCP (Transmission Control Protocol) connection, which makes it perform better on mobile devices, save power and space.

[0070] The above-mentioned custom protocol module 5 is used to obtain the user-defined protocol and serialized data structure file based on the above-mentioned user data, extract the data type and data format of the above-mentioned serialized data structure file, and use the above-mentioned data type and the above-mentioned data format to convert the above-mentioned user-defined protocol into an industrial protocol, and transmit the above-mentioned industrial protocol to the device through the above-mentioned protocol management module 4 (it can be transmitted to different types of devices according to different protocols).

[0071] Specifically, the serialized data structure file uses a protobuf file.

[0072] Furthermore, the custom protocol module 5 remotely calls the send_data function (calling function) provided by the system, converts the data into the data type and format corresponding to the protobuf file in the system, and then transmits it to the protocol management module 4. The protocol management module 4 sends the data to the data processing module 3 through the message queue.

[0073] The device management module 6 is used to perform device management based on the user data.

[0074] Specifically, the device management module 6 provides management for devices connected to the system, including adding, deleting, modifying and checking device information, as well as establishing a device shadow model, building a point table, and managing the device life cycle (connection, startup, restart, shutdown, deletion).

[0075] The above-mentioned industrial communication management system with a microservice architecture under the industrial Internet decouples each module through the design method of microservices to build a general industrial communication management framework with a microservice architecture under the industrial Internet, so as to more flexibly access third-party applications and data sources; and provides access methods for user-defined protocols in the form of gRPC, so that users can use the public communication methods provided by the system while providing users with protocol management functions; the protocol access conditions are specified through protobuf, the protocol access method and the data packaging method are unified, the difficulty of system access and maintenance is reduced, and the types of protocols that the system can access are expanded, thereby expanding the types of communication equipment and improving the reusability of the system; finally, each service module is managed in the form of a container, the system is lightweight, well encapsulated, easy to deploy, easy to transplant, and has low operation and maintenance difficulty.

[0076] Preferably, it also includes: a protocol processing module 7; the protocol processing module 7 is connected to the front-end interface module 1 and the custom protocol module 5;

[0077] The front-end interface module 1 obtains the serialized data structure file and the protocol token; the protocol processing module 7 generates a remote procedure call server based on the serialized data structure file for the remote procedure call client, and inputs the custom protocol development code and the protocol token into the remote procedure call client to generate the user-defined protocol, and transmits the user-defined protocol to the custom protocol module 5.

[0078] Specifically, Figure 2 As shown, the front-end interface module 1 downloads the protobuf file provided by the system, which includes the management of the device life cycle, how to link to the platform, and provides basic communication classes that can be called remotely (including establishing network ports, serial port links, data packaging, etc.); the protocol processing module 7 generates the corresponding gRPC server and gRPC client according to the language of the protobuf file and the user-developed protocol; the protocol processing module 7 supplements the user-defined protocol development code in the generated gRPC client; the front-end interface module 1 applies for the user-defined token (token, mark) of the protocol that needs to access the system, and puts the token into the gRPC client code; on the front-end interface, the protocol management module 4 selects the new protocol, fills in the token and the name of the new protocol, and uploads the program to the custom protocol module 5, and then the custom protocol can be selected and used.

[0079] The following is a specific embodiment to illustrate the process of using the protocol processing module 7 to write a custom modbus protocol (modbus protocol is a universal language applied to electronic controllers) to access the system, and the process is as follows:

[0080] (1) Download the protobuf file provided by this system through the front-end interface module 1;

[0081] (2) Install protoc (protoc is a compiler for protobuf files), vcpkg (vcpkg is a cross-platform open source package manager for C and C++ libraries developed by the Microsoft C++ team) and gRPC in the protocol processing module 7, and execute the corresponding commands by the c++ command according to the programming language used by the user. The specific c++ commands are:

[0082] export PATH=<path to install gRPC> / bin:$PATH;

[0083] PROTO_PATH = <the path where your proto file is located>;

[0084] protoc-I. / src--gRPC_out=. / src / --plugin=protoc-gen-gRPC=`whichgRPC_cpp_plugin`$PROTO_PATH;

[0085] protoc-I. / src--cpp_out=. / src / / $PROTO_PATH

[0086] Then, the gRPC client and server programs are generated according to the protobuf files provided by the system. The current gRPC client program includes the management of the device life cycle, how to connect to the platform, and all the functions that can be called remotely, including the establishment of network ports, serial port links, data packaging, etc.

[0087] (3) Write a gRPC client program in C++, call the remotely callable functions provided by the system, write a custom modbus protocol, and convert the data type according to the data format requirements in the protobuf file provided by the system, thereby specifying the format of the data received by the system;

[0088] (4) Apply for a token for the modbus protocol to access the system through the front-end interface module 1, which is equivalent to applying for an ID for the modbus protocol in the system, and fill in the name of the access protocol in the interface to complete the access application for the newly added modbus protocol; and upload the JSON (JavaScript Object Notation, JS object notation, a lightweight data exchange format) file containing the gRPC client program of the protocol and the basic system of protocol parameter configuration to the server where the system is located;

[0089] (5) The user selects the modbus protocol just uploaded in the front-end interface module 1.

[0090] Preferably, it also includes: a database module 8; the database module 8 is connected to the data processing module 3;

[0091] The database module 8 calls the display data based on the user data, and transmits the display data to the data processing module 3. The data processing module 3 transmits the display data to the front-end interface module 1 through the message processing module 2 for display.

[0092] Furthermore, when the system is started, the data processing module 3 extracts user configuration information, user information, and the latest historical data from the database module 8 (including the historical database unit and the configuration database unit).

[0093] Preferably, if Figure 3 As shown, the above database module 8 includes: a real-time database unit 9, a configuration database unit 10 and a historical database unit 11;

[0094] The real-time database unit 9 is used to store the real-time data of the device according to the time sequence.

[0095] Specifically, the message processing module 2 communicates with the data processing module 3, retrieves the data points (ie, user data) selected by the user to be displayed from the real-time database unit 9, and then forwards them to the front-end interface module 1 for display.

[0096] Furthermore, the data processing module 3 will push the full amount of data to the real-time database unit 9 to update the real-time database 9, and push the full amount of data to the historical database unit 11 for backup.

[0097] The configuration database unit 10 is used to store configuration data, the above-mentioned user data and device management data.

[0098] Specifically, the configuration database unit 10 uses a relational database to store system-related configuration information, user information, device management information, etc.

[0099] The historical database unit 11 is used to store historical data in a distributed file storage manner.

[0100] Specifically, the distributed file storage method uses mongodb (distributed document storage database) to store historical data.

[0101] Example 2

[0102] This embodiment provides an industrial communication management method of a microservice architecture under the industrial Internet, such as Figure 4 As shown, including:

[0103] S401. The front-end interface module collects user information and sends the user information to the message processing module.

[0104] Specifically, the front-end interface module sends user information to the message processing module through the RESTFUL API;

[0105] Furthermore, the front-end interface module and the message processing module perform data transmission via the Hypertext Transfer Protocol (http).

[0106] S402: The message processing module inputs the user information into a message queue, generates an interface message queue, and sends the interface message queue to a data processing module.

[0107] Specifically, the message processing module uses the address and type of the user information as queue header information, encapsulates the content of the user information in the form of a message queue, and then generates an interface message queue.

[0108] S403: The data processing module extracts queue header information of the interface message queue, and unpacks the interface message queue based on the message type in the queue header information to generate user data.

[0109] Specifically, the data processing module is further used to transfer the user data to the protocol management module when the message type is a protocol type; and to transfer the user data to the device management module when the message type is a device message.

[0110] Furthermore, the data processing module executes the corresponding program according to the specific message header (i.e., the queue header information; the message header of the sent message will indicate what type of operation the message processing module has received, such as adding a device, issuing an instruction to the device, etc.) and unpacks the interface message queue; if it is an operation on a device or database, the message will be unpacked, and the corresponding database will be added, deleted, modified, and checked; if it is an operation on the protocol, the interface message queue will be unpacked first, and packaged in the format of the corresponding protocol (i.e., the user-defined protocol), and the user data will be transmitted to the custom protocol module through gRPC.

[0111] S404: The protocol management module transmits the user data to the custom protocol module by using a remote procedure call.

[0112] Specifically, the above-mentioned remote procedure call method adopts the gRPC method (gRPC is a high-performance, open source and general RPC (Remote Procedure Call) framework, based on protobuf (Protocol Buffers, a tool for serializing structured data, realizing data storage and exchange, independent of programming language and development platform) serialization protocol development, and supports many development languages), wherein the gRPC method is oriented to the server and mobile terminals, based on HTTP / 2 (the latest version of the Hypertext Transfer Protocol) design, bringing features such as bidirectional streaming, flow control, header compression, and multiple multiplexing requests on a single TCP (Transmission Control Protocol) connection, which makes it perform better on mobile devices, save power and space.

[0113] S405. The custom protocol module obtains the user-defined protocol and the serialized data structure file based on the user data, extracts the data type and data format of the serialized data structure file, and converts the user-defined protocol into an industrial protocol using the data type and the data format, and transmits the industrial protocol to the device through the protocol management module.

[0114] Specifically, the serialized data structure file uses a protobuf file.

[0115] Furthermore, the custom protocol module remotely calls the send_data function (calling function) provided by the system, converts the data into the data type and format corresponding to the protobuf file in the system, and then transmits it to the protocol management module. The protocol management module sends the data to the data processing module through the message queue.

[0116] S406: The device management module performs device management based on the above user data.

[0117] Specifically, the device management module provides management for devices connected to the system, including adding, deleting, modifying and checking device information, as well as establishing a device shadow model, building a point table, and managing the device life cycle (connection, startup, restart, shutdown, deletion).

[0118] The above-mentioned industrial communication management method of microservice architecture under the industrial Internet decouples the modules between the system through the design method of microservices to enable more flexible access to third-party applications and data sources; and provides access methods for user-defined protocols in the form of gRPC, so that users can use the public communication methods provided by the system while providing users with protocol management functions; the protocol access conditions are specified through protobuf, the protocol access method and the data packaging method are unified, the difficulty of system access and maintenance is reduced, and the types of protocols that the system can access are expanded, thereby expanding the types of communication equipment and improving the reusability of the system; finally, each service module is managed in the form of a container, the system is lightweight, well encapsulated, easy to deploy, easy to transplant, and has low operation and maintenance difficulty.

[0119] Preferably, it also includes:

[0120] The front-end interface module obtains the serialized data structure file and the protocol token. The protocol processing module generates a remote procedure call server based on the serialized data structure file for the remote procedure call client, and inputs the custom protocol development code and the protocol token into the remote procedure call client to generate the user-defined protocol, and transmits the user-defined protocol to the custom protocol module.

[0121] Specifically, Figure 2As shown, the front-end interface module downloads the protobuf file provided by the system, which includes the management of the device life cycle, how to link to the platform, and provides basic communication classes that can be called remotely (including establishing network ports, serial port links, data packaging, etc.); the protocol processing module generates the corresponding gRPC server and gRPC client according to the protobuf file and the language of the user-developed protocol; the protocol processing module supplements the user-defined protocol development code in the generated gRPC client; apply for the user-defined token (token, mark) of the protocol that needs to access the system through the front-end interface module, and put the token into the gRPC client code; select the new protocol in the protocol management module on the front-end interface, fill in the token and the name of the new protocol, upload the program to the custom protocol module, and then you can select and use the custom protocol.

[0122] Preferably, it also includes:

[0123] S407: The database module calls the display data based on the user data, and transmits the display data to the data processing module. The data processing module transmits the display data to the front-end interface module through the message processing module for display.

[0124] Furthermore, when the system is started, the data processing module extracts user configuration information, user information, and the latest historical data from the database module (including the historical database unit and the configuration database unit).

[0125] Preferably, if Figure 5 As shown, step S407, that is, the database module calls the display data based on the user data, transmits the display data to the data processing module, and the data processing module transmits the display data to the front-end interface module through the message processing module for display, further comprising:

[0126] S4071. The real-time database unit stores the real-time data of the device according to the time sequence.

[0127] Specifically, the message processing module communicates with the data processing module, retrieves the data points (ie, user data) selected by the user to be displayed from the real-time database unit, and then forwards them to the front-end interface module for display.

[0128] Furthermore, the data processing module will push the full amount of data to the real-time database unit to update the real-time database unit, and push the full amount of data to the historical database unit for backup.

[0129] S4072. The configuration database unit stores the configuration data, the above user data and the device management data.

[0130] Specifically, the configuration database unit uses a relational database to store system-related configuration information, user information, device management information, etc.

[0131] S4073. The historical database unit stores historical data using a distributed file storage method.

[0132] Specifically, the distributed file storage method uses mongodb (distributed document storage database) to store historical data.

[0133] Example 3

[0134] This embodiment provides a computer device, including a memory and a processor, wherein the processor is used to read instructions stored in the memory to execute an industrial communication management method of a microservice architecture under an industrial Internet in any of the above method embodiments.

[0135] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0136] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0137] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0139] Example 4

[0140] This embodiment provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions can execute an industrial communication management method for a microservice architecture under an industrial Internet in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0141] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. An industrial communication management system based on microservice architecture under the industrial Internet, characterized in that: include: Front-end interface module, message processing module, data processing module, protocol management module, custom protocol module and device management module; The front-end interface module is used to collect user information and send the user information to the message processing module; The message processing module is used to input the user information into a message queue, generate an interface message queue, and send the interface message queue to the data processing module; The data processing module is connected to the message processing module, the protocol management module and the device management module respectively, and is used to extract the queue header information of the interface message queue, and unpack the interface message queue based on the message type in the queue header information to generate user data; The protocol management module is used to transfer the user data to the custom protocol module by using a remote procedure call method; the remote procedure call method adopts a gRPC method; The custom protocol module is used to obtain a user-defined protocol and a serialized data structure file based on the user data, extract a data type and a data format of the serialized data structure file, and convert the user-defined protocol into an industrial protocol using the data type and the data format, and transmit the industrial protocol to the device through the protocol management module; The serialized data structure file adopts a protobuf file; The device management module is used to manage the device based on the user data; It also includes: a protocol processing module; the protocol processing module is connected to the front-end interface module and the custom protocol module; The front-end interface module obtains the serialized data structure file and the protocol token; the protocol processing module generates a remote procedure call server for a remote procedure call client based on the serialized data structure file, and inputs the custom protocol development code and the protocol token into the remote procedure call client to generate the user-defined protocol, and transmits the user-defined protocol to the custom protocol module; wherein, the front-end interface module downloads the protobuf file provided by the system; the protocol processing module generates the corresponding gRPC server and gRPC client according to the language of the protobuf file and the user-developed protocol; the protocol processing module supplements the generated gRPC client with the user-defined protocol development code; applies for the user-defined protocol token that needs to access the system through the front-end interface module, and puts the protocol token into the gRPC client code; selects the newly added protocol in the protocol management module on the front-end interface, fills in the protocol token and the name of the newly added protocol, uploads the program to the custom protocol module, and selects and uses the custom protocol.

2. The industrial communication management system of the microservice architecture under the industrial Internet according to claim 1 is characterized in that: The data processing module is further configured to transfer the user data to the protocol management module when the message type is a protocol type; and to transfer the user data to the device management module when the message type is a device message.

3. The industrial communication management system of the microservice architecture under the industrial Internet according to claim 1 is characterized in that: Also includes: Database module; The database module is connected to the data processing module; The database module calls the display data based on the user data and transmits the display data to the data processing module. The data processing module transmits the display data to the front-end interface module through the message processing module for display.

4. The industrial communication management system of the microservice architecture under the industrial Internet according to claim 3 is characterized in that: The database module includes: a real-time database unit, a configuration database unit and a historical database unit; The real-time database unit is used to store device real-time data according to the time sequence; The configuration database unit is used to store configuration data, the user data and device management data; The historical database unit is used to store historical data in a distributed file storage manner.

5. An industrial communication management method for microservice architecture under industrial Internet, characterized in that: include: The front-end interface module collects user information and sends the user information to the message processing module; The message processing module inputs the user information into a message queue, generates an interface message queue, and sends the interface message queue to the data processing module; The data processing module extracts the queue header information of the interface message queue, and unpacks the interface message queue based on the message type in the queue header information to generate user data; The protocol management module transmits the user data to the custom protocol module by using a remote procedure call method; the remote procedure call method adopts a gRPC method; The custom protocol module obtains a user-defined protocol and a serialized data structure file based on the user data, extracts a data type and a data format of the serialized data structure file, and converts the user-defined protocol into an industrial protocol using the data type and the data format, and transmits the industrial protocol to the device through the protocol management module; The serialized data structure file adopts a protobuf file; The device management module performs device management based on the user data; Also includes: The front-end interface module obtains the serialized data structure file and the protocol token; the protocol processing module generates a remote procedure call server for a remote procedure call client based on the serialized data structure file, and inputs the custom protocol development code and the protocol token into the remote procedure call client to generate the user-defined protocol, and transmits the user-defined protocol to the custom protocol module; wherein, the front-end interface module downloads the protobuf file provided by the system; the protocol processing module generates the corresponding gRPC server and gRPC client according to the language of the protobuf file and the user-developed protocol; the protocol processing module supplements the generated gRPC client with the user-defined protocol development code; applies for the user-defined protocol token that needs to access the system through the front-end interface module, and puts the protocol token into the gRPC client code; selects the newly added protocol in the protocol management module on the front-end interface, fills in the protocol token and the name of the newly added protocol, uploads the program to the custom protocol module, and selects and uses the custom protocol.

6. A computer device, characterized in that: The system comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is configured to call the computer program to execute the steps of the method as claimed in claim 5.

7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the steps of the method as claimed in claim 5 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for distributed data processing, electronic device and computer storage medium

    CN108984316A

  • Platform for integrating heterogeneous industrial internet equipment and construction method thereof

    CN114615301A