Inter-process communication method of energy controller based on MQTT message protocol
A communication method and controller technology, applied in system integration technology, transmission system, electrical components, etc., can solve the problems of low efficiency of inter-process message communication, high difficulty in secondary development, high program coupling, etc., and achieve network environment and hardware Low performance requirements, reduce the impact of task execution process, and improve the effect of coupling relationship
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] This embodiment provides an inter-process communication method of an energy controller based on the MQTT message protocol, and the communication method is used to implement free communication among various processes of the energy controller. It should be emphasized that the inter-process messages in this embodiment use the MQTT protocol, work on the TCP / IP protocol suite, and use the JSON protocol as the data exchange format, and the inter-process messages are sent and received in an asynchronous mode. Specifically, as figure 1 As shown, the implementation process of the communication method includes the following contents:
[0041] 1. System construction stage:
[0042] Build an inter-process communication system that includes an MQTT client and an MQTT server. Among them, the MQTT client is used to receive messages generated by each process and send the messages to the MQTT server. The MQTT server is used to manage all received messages and push the messages to th...
Embodiment 2
[0076] This embodiment provides that the present invention also includes a communication system between energy controller processes based on MQTT message protocol. The communication system adopts the communication method between energy controller processes based on MQTT message protocol in Embodiment 1. Undirected free communication between arbitrary processes in the controller. like figure 2 As shown, the communication system includes two parts: a process end and a server end, and the information exchange process between the two uses an asynchronous communication mode.
[0077] The process side includes a message collection module and a message reception module. The message collection module is used to obtain the messages to be published generated by each process in each energy controller, and then takes the name of the process that publishes the current message as the topic type of the current message, and sets a broadcast attribute and a priority attribute for each messag...
Embodiment 3
[0083] This embodiment provides that the present invention also includes an inter-process communication terminal of an energy controller based on the MQTT message protocol. The communication terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, it implements the steps of the MQTT message protocol-based inter-process communication method of the energy controller as in Embodiment 1; and further implements undirected free communication between any processes in the energy controller.
[0084] The computer equipment can be a smart phone, tablet computer, notebook computer, desktop computer, rack server, blade server, tower server or rack server (including an independent server, or a combination of multiple servers that can execute programs) server cluster), etc. The computer device in this embodiment at least includes, but is not limited to, a memory and a processor that can be com...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com