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

Pending Publication Date: 2022-08-05
ANHUI ZENITH ELECTRICITY & ELECTRONICS
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problems of low efficiency of inter-process message communication, low transmission reliability, high program coupling, and high difficulty in secondary development; the present invention provides a MQTT (Message Queuing Telemetry Transport, message queue Communication method between energy controller processes of telemetry transmission) message protocol, and system and terminal implementing the method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Inter-process communication method of energy controller based on MQTT message protocol
  • Inter-process communication method of energy controller based on MQTT message protocol
  • Inter-process communication method of energy controller based on MQTT message protocol

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the field of electric power communication, and particularly relates to an inter-process communication method of an energy controller based on an MQTT message protocol, and a system and a terminal for implementing the method. According to the method, free communication can be realized among the processes of the energy controller. The implementation process of the communication method comprises a system construction stage, a service subscription stage, a message publishing stage and a message pushing stage. The MQTT client sets a corresponding theme type, a priority attribute and a broadcast attribute for message content generated by each process, and then sends the message content to the MQTT server. The MQTT server collects the information published by each process, and then analyzes each message; and then priority ranking is carried out firstly, then a subscriber of the subject content published by the current process is retrieved, and the message content of the current message is pushed to the subscriber. According to the method, the problems of low inter-process message communication efficiency, low transmission reliability, high program coupling, high secondary development difficulty and the like of the energy controller are solved.

Description

technical field [0001] The invention belongs to the field of electric power communication, and in particular relates to an inter-process communication method of an energy controller based on an MQTT message protocol, as well as a system and a terminal for implementing the method. Background technique [0002] Energy control and monitoring terminal unit (ECU) is a public change or special change The station area is used to implement metering and sensing equipment on the customer side and the distribution side. The device has multiple functions such as data collection, intelligent cost control, clock synchronization, precise metering, orderly charging, energy consumption management, circuit status inspection, household change relationship identification, and power outage reporting. It is the core device in the smart grid. [0003] The energy controller is rich in functions, and each management process needs to exchange information during the running process. The existing i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L51/214H04L51/226H04L67/12
CPCH04L67/12Y02E40/70
Inventor 岳浩蒋小三张赢
Owner ANHUI ZENITH ELECTRICITY & ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products