CN111683125A - Novel fusion terminal operation and distribution information sharing method and system based on MQTT protocol - Google Patents

Novel fusion terminal operation and distribution information sharing method and system based on MQTT protocol Download PDF

Info

Publication number
CN111683125A
CN111683125A CN202010454079.0A CN202010454079A CN111683125A CN 111683125 A CN111683125 A CN 111683125A CN 202010454079 A CN202010454079 A CN 202010454079A CN 111683125 A CN111683125 A CN 111683125A
Authority
CN
China
Prior art keywords
data
mqtt
application
service
registration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010454079.0A
Other languages
Chinese (zh)
Other versions
CN111683125B (en
Inventor
岳友
李宽宏
蔡月明
张强
陈琛
陈娜
周强
欧传刚
张艺琼
徐靖涛
徐晨
吴乃骅
邹宇航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
NARI Group Corp
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Fuzhou Power Supply Co of State Grid Fujian Electric Power Co Ltd
State Grid Electric Power Research Institute
Nanjing Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
NARI Group Corp
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Fuzhou Power Supply Co of State Grid Fujian Electric Power Co Ltd
State Grid Electric Power Research Institute
Nanjing Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, NARI Group Corp, Nari Technology Co Ltd, NARI Nanjing Control System Co Ltd, Fuzhou Power Supply Co of State Grid Fujian Electric Power Co Ltd, State Grid Electric Power Research Institute, Nanjing Power Supply Co of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010454079.0A priority Critical patent/CN111683125B/en
Publication of CN111683125A publication Critical patent/CN111683125A/en
Application granted granted Critical
Publication of CN111683125B publication Critical patent/CN111683125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention discloses a novel fusion terminal marketing and distribution information sharing method based on an MQTT protocol, wherein an MQTT service is deployed on a terminal host, and a power distribution service application, a marketing service application and a shared database application are connected to the MQTT service through an IP and a port number; the method realizes cross-container and cross-terminal data real-time sharing based on the MQTT protocol, and realizes plug and play of application shared data service by establishing a shared database. The novel power distribution station area fusion terminal operation and distribution information sharing method based on the MQTT protocol solves the difficult problem of sharing of data among containers and multiple applications of the novel power distribution station area fusion terminal, and has the functions of active registration and data sharing, application decoupling and plug-and-play. The method has the advantages of flexible deployment and data sharing as required, and can be used as a bridge for marketing and distribution fusion, thereby comprehensively improving the lean management level of the low-voltage distribution network.

Description

Novel fusion terminal operation and distribution information sharing method and system based on MQTT protocol
Technical Field
The invention relates to a novel fusion terminal marketing and distribution information sharing method based on an MQTT protocol, and belongs to the technical field of information acquisition and sharing of power distribution transformer areas.
Background
Novel distribution station district fuses terminal has solved distribution station district side and has installed intelligent distribution terminal and concentrator simultaneously, the increase cost that brings, function repetition and increase fortune dimension work load scheduling problem. However, based on business and security requirements, containerization of the converged terminal software applications is required, and the power distribution business and the marketing business applications are respectively deployed in different containers. Because hardware memories occupied by the virtual machines are different, the traditional memory sharing technology cannot be used, and the problem of how to share data is also brought.
At present, a socket method is adopted to break through data sharing between containers, but the socket is a transport layer protocol and needs to be used in cooperation with an application layer protocol. The application layer protocol selection mainly has two modes, one is a self-defined protocol, and is not beneficial to large-scale popularization; the other format adopts a communication protocol which forms a standard at present, the standard protocol of the internet industry has high requirements on the computing capacity of the terminal, and the application layer communication protocols IEC104, IEC101 and the like of the power industry aim to realize point-to-point data sharing between the terminal and the main site, and the data content and the type are strictly limited, so that the method is not suitable for real-time data sharing and plug and play among multiple application programs. Therefore, a method for instant messaging with limited computing power and fast sharing among multiple applications is needed.
Disclosure of Invention
The purpose is as follows: in order to solve the problem of data sharing among different containers and different application software in a power distribution station area fusion terminal, the invention provides a novel fusion terminal operation and distribution information sharing method based on an MQTT protocol, cross-container and cross-terminal data real-time sharing is realized based on the MQTT protocol, and plug-and-play of application sharing data service is realized by establishing a sharing database; as a bridge of marketing and distribution integration, the lean management level of the low-voltage distribution network is comprehensively improved.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a novel fusion terminal marketing and distribution information sharing method based on MQTT protocol comprises the following steps:
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to a shared database application subscribing the registration request topic;
the MQTT service of the terminal host receives the registration response message, and transfers the registration response message to a power distribution service application or a marketing service application subscribing the registration response topic;
the MQTT service of the terminal host receives the push request message and transfers the push request message to a shared database application subscribing data push topic;
the MQTT service of the terminal host receives the invitation request message and transfers the invitation request message to a shared database application subscribing the data invitation request topic;
and the MQTT service of the terminal host receives the enrollment response message and transfers the enrollment response message to the power distribution service application or the marketing service application of the subscription data enrollment response topic.
Preferably, the content of the registration request message includes at least one of the following: message identity authentication code, time stamp, equipment type, equipment address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a timestamp and a registration result;
the content of the push request message comprises at least one of the following: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the specific content of the enrollment request message includes at least one of the following: a message identity authentication code, a timestamp, a device type, a device address and a data name set;
the specific content of the enrollment response message includes at least one of the following: a message authentication code, a timestamp, a device type, a device address, and a shared data item.
Preferably, the service capability description includes at least one of: data name, data type, storage type, value range and unit; the data type comprises at least one of remote measurement, remote signaling, remote pulse and remote control; the storage type comprises a real-time type and a recording type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
A novel fusion terminal marketing and distribution information sharing method based on MQTT protocol comprises the following steps:
the method comprises the steps that a power distribution service application or a marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and a registration request message is issued to an MQTT service through an MQTT publish interface;
the shared database application establishes a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues the registration response message to the MQTT service through an MQTT publish interface;
the method comprises the steps that a power distribution service application or a marketing service application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and a push request message is issued to an MQTT service through an MQTT publish interface; the shared database application updates the shared data items according to the content in the push request message;
the method comprises the steps that a power distribution service application or a marketing service application generates a data recruitment request topic based on an MQTT protocol instant message interaction mechanism, and publishes a recruitment request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes shared data items needing to be read in the request message, extracts shared data, generates a data reading response topic, issues a reading response message to the MQTT service through the MQTT public interface, and the power distribution service application or the marketing service application analyzes the reading response message to obtain the shared data items and extracts the shared data.
Preferably, the topic name is composed of a plurality of hierarchies, and the hierarchies are divided by slashes and comprise invariant parts reflecting the functions of the subject and variant parts of the key information.
As a preferred scheme, the content of the registration request topic is "vendor name/application name/request/shared database application name/registration";
the content of the registration response topic is "vendor name/application name/response/shared database application name/registration";
the content of the data push topic is "application name/push/shared database application name/data type";
the content of the data enrollment request topic is "application name/request/shared database application name/storage type";
the content of the data enrollment response topic is "application name/response/shared database application name/storage type".
Preferably, the content of the registration request message includes at least one of the following: message identity authentication code, time stamp, equipment type, equipment address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a timestamp and a registration result;
the content of the push request message comprises at least one of the following: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the specific content of the enrollment request message includes at least one of the following: a message identity authentication code, a timestamp, a device type, a device address and a data name set;
the specific content of the enrollment response message includes at least one of the following: a message authentication code, a timestamp, a device type, a device address, and a shared data item.
Preferably, the service capability description includes at least one of: data name, data type, storage type, value range and unit; the data type comprises at least one of remote measurement, remote signaling, remote pulse and remote control; the storage type comprises a real-time type and a recording type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
Preferably, the step of pushing the shared data by the power distribution service application or the marketing service application further comprises the following steps:
and the power distribution service application or the marketing service application actively pushes all shared data to the shared database application at regular time, or actively pushes all shared data to the shared database application when the change of the shared data exceeds a threshold value.
Preferably, the step of recruiting and reading the shared data by the power distribution service application or the marketing service application further comprises the steps of:
the distribution service application or the marketing service application can selectively attract and read all data or part of the data, and key information of equipment types, equipment addresses and data names is given when part of the data is attracted and read.
Novel fusion terminal marketing and distribution information sharing system based on MQTT protocol comprises: a terminal host, a power distribution service application, a marketing service application, a shared database application,
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to a shared database application subscribing the registration request topic;
the MQTT service of the terminal host receives the registration response message, and transfers the registration response message to a power distribution service application or a marketing service application subscribing the registration response topic;
the MQTT service of the terminal host receives the push request message and transfers the push request message to a shared database application subscribing data push topic;
the MQTT service of the terminal host receives the invitation request message and transfers the invitation request message to a shared database application subscribing the data invitation request topic;
the MQTT service of the terminal host receives the enrollment response message, and transfers the enrollment response message to the power distribution service application or the marketing service application of the subscription data enrollment response topic;
the method comprises the steps that a power distribution service application or a marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and a registration request message is issued to an MQTT service through an MQTT publish interface;
the shared database application establishes a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues the registration response message to the MQTT service through an MQTT publish interface;
the method comprises the steps that a power distribution service application or a marketing service application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and a push request message is issued to an MQTT service through an MQTT publish interface; the shared database application updates the shared data items according to the content in the push request message;
the method comprises the steps that a power distribution service application or a marketing service application generates a data recruitment request topic based on an MQTT protocol instant message interaction mechanism, and publishes a recruitment request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes shared data items needing to be read in the request message, extracts shared data, generates a data reading response topic, issues a reading response message to the MQTT service through the MQTT public interface, and the power distribution service application or the marketing service application analyzes the reading response message to obtain the shared data items and extracts the shared data.
Has the advantages that: the novel fusion terminal operation and distribution information sharing method based on the MQTT protocol utilizes the IP technology in the MQTT protocol, can penetrate through containers to complete data sharing between the containers, and simultaneously, the issuing/subscribing message mode can effectively relieve coupling between applications and provides good expansibility. The novel power distribution station fusion terminal container and multi-application data sharing problem is solved, and the novel power distribution station fusion terminal container has an active registration and data sharing function, application decoupling and plug-and-play. The method has the advantages of flexible deployment and data sharing as required, and can be used as a bridge for marketing and distribution fusion, thereby comprehensively improving the lean management level of the low-voltage distribution network.
Drawings
FIG. 1 is a diagram illustrating sharing data according to the present invention.
Fig. 2 is a schematic diagram of APP deployment according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings.
As shown in fig. 1, a specific embodiment of the present invention is: a novel fusion terminal operation and distribution information sharing method based on an MQTT protocol comprises the following steps.
S01, arranging MQTT service on the terminal host, and connecting the power distribution service application, the marketing service application and the shared database application to the MQTT service through IP and port numbers;
s02, the power distribution service application or the marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism, the registration request message is issued to an MQTT service through an MQTT publish interface, and the MQTT service transfers the registration request message to a shared database application subscribing the registration request topic;
s03, the shared database application establishes a table according to the content classification in the registration request message, responds to the registration, generates a registration response topic, issues the registration response message to the MQTT service through the MQTT publish interface, the MQTT service transfers the registration response message to the power distribution service application or the marketing service application subscribing the registration response topic, and when the response result is successful, the registration is completed;
s04, the power distribution service application or the marketing service application generates a data push topic based on an MQTT protocol instant message interaction mechanism, a push request message is issued to an MQTT service through an MQTT publish interface, and the MQTT service transfers the push request message to a shared database application subscribing the data push topic; the shared database application updates the shared data items according to the content in the push request message;
s05, generating a data solicitation request topic by power distribution service application or marketing service application based on an MQTT protocol instant message interaction mechanism, issuing a solicitation request message to an MQTT service through an MQTT publish interface, and transferring the solicitation request message to a shared database application subscribing the data solicitation request topic by the MQTT service;
s06, the shared database application analyzes the shared data items needing to be read in the request message, extracts the shared data, generates a data reading response topic, issues the reading response message to the MQTT service through the MQTT publication interface, the MQTT service transfers the reading response message to the power distribution service application or the marketing service application subscribing the data reading response topic, and the power distribution service application or the marketing service application analyzes the reading response message to obtain the shared data, and finally realizes data sharing.
The topic comprises: the method comprises the following steps of registering a request topic, registering a response topic, pushing data topic, calling and reading data topic and calling and reading response topic, wherein various topic names are composed of a plurality of hierarchies and are divided by slashes, and comprise invariant parts reflecting theme functions (such as registration, pushing, calling, request and response) and variable parts reflecting key information (such as manufacturer names, application names and data types); the method comprises the following specific steps:
the specific content of the registration request topic is 'vendor name/application name/request/shared database application name/registration';
the specific content of the registration response topic is 'vendor name/application name/response/shared database application name/registration';
the specific content of the data push topic is "application name/push/shared database application name/data type";
the specific content of the data enrollment request topic is "application name/request/shared database application name/storage type"; the storage type includes a real-time type and a recording type.
The specific content of the data enrollment response topic is "application name/response/shared database application name/storage type".
The specific content of the registration request message includes: message identity authentication code, time stamp, equipment type, equipment address, service capability description; the service capability description comprises: data name, data type, storage type, value range and unit; the data types comprise remote measurement, remote signaling, remote pulse and remote control.
The specific content of the registration response message includes: a message identity authentication code, a timestamp and a registration result; the registration result comprises registration success and registration failure.
The specific content of the push request message includes: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item; the shared data item includes a data name and a data value.
The specific content of the enrollment request message includes: a message authentication code, a timestamp, a device type, a device address, and a set of data names.
The specific content of the enrollment response message includes: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item; the shared data item includes a data name and a data value.
The method for pushing the shared data by the power distribution service application or the marketing service application further comprises the following steps: and the power distribution service application or the marketing service application actively pushes all shared data to the shared database application at regular time, or actively pushes all shared data to the shared database application when the change of the shared data exceeds a threshold value.
The step of recruiting and reading the shared data by the power distribution service application or the marketing service application further comprises the following steps: the power distribution business application or the marketing business application can select to attract and read all data or part of data, and key information of equipment type, equipment address and data name is given when part of data is attracted and read;
as shown in fig. 2, the power distribution service application may be divided into three major types, namely, basic data application, operation and maintenance management application, and user service application, and mainly includes applications such as distribution transformer monitoring application, active fault reporting application, and active fault first-aid repair. The marketing service application mainly comprises electricity utilization acquisition application, active reporting application, electricity stealing analysis application and the like. The implementation of these business applications does not leave the coordination data sharing. For example, in power distribution business applications, the implementation of a power stealing analysis application in active repair applications and marketing business applications requires analysis of data collected by a basic data application in power distribution business applications and a power consumption collection application in marketing business applications.
In embodiment 2, an MQTT service is built by using mosquitto, and the MQTT service is used as MQTT message bus agent software to carry power distribution service applications and marketing service applications. Demonstrating the application process of the distribution service for sharing the leakage protection voltage data to the marketing service:
step 1: the power distribution service application, the marketing service application and the shared database application are connected with MQTTservice on the terminal host, the IP address of the terminal host is 127.0.0.1, and the port number is 1883;
step 2: the power distribution service application sends a registration request message to MQTT service, the registration request topic is NARI/app 1/request/database/request, NARI is vendor name, app1 is power distribution service application name, database is shared database name, request represents that the message is a request message, request represents that the message is a registration message, the message body is { "token": 234 "," timetag ": 2019-03-01T09:30:09.230+ 0800", "dev _ type": rcd "," dev _ addr ": 00000001", "body" [ { "name": PhV _ phsA "," saitjype ": current", "real _ type", "data _ type": yc "," unit ": V", "500": min "{" 0 "{" 36max "{" type ": PhV", "data _ type": yc "," unit ": V", "max": 500 "," min ": 0" }, the JSON data format in the message body, "token" is the message authentication code, the message is sent and replied consistently, "timestamp" is the timestamp, which indicates the message publishing time, "dev _ type" is the device type, "rcd" indicates that the device is the leakage protection switch, "dev _ addr" is the device address, "body" is the service capability description, "name" is the data name, "PhV _ phsA" and "PhV _ phsB" indicate the device a phase and B phase voltages, respectively, "save _ type" is the storage type, "real" indicates the real-time data, "data _ type" is the data type, "yc" is the telemetry data type, "unit" is the data unit, "max" is the maximum value of the data, and "min" is the minimum value of the data.
And step 3: shared database application subscription topic: NARI/app1/request/database/register, receiving an active registration request message forwarded by MQTT service, analyzing a message body by a shared database, establishing a table in a classified manner, generating a registration response topic of database/response/app1/register, app1 of a power distribution service application name, database of a shared database name, response of the message is indicated as a response message, register of the message is indicated as a registration message, message bodies of { "token": 234 "," timestamp ": 2019-03-01T09:30:09.330+ 0800" "," result ": OK" }, result of the registration of the message body, OK of the registration result, and failure of the registration of the FAIL.
And 4, step 4: the application of the power distribution service subscribes to topic: database/response/app1/register, receiving an active registration response message forwarded by MQTTservice, stopping registration, starting to push shared data to MQTT service, generating data push topic as app 1/info/database/realdata, 1 as a power distribution service application name, database as a shared database name, info as a message that the message does not need to reply as a push message, realdata as a requested data storage type as real-time data, push message body as { "token": 235 "," timetag ": 2019-03-01T09:30:09.230+ 0800", "dev _ type": rcd "," dev _ dr ": 000000000001", "body" { "name": PhV _ sa "," phval "{" 220.10 "{" authentication ": PhV": topy ": 220.11 as an identity code, "timestamp" is a timestamp and represents the message publishing time, "dev _ type" is a device type, "rcd" represents that the device is a leakage protection switch, "dev _ addr" is a device address, and the content in the body "is a data name and a corresponding data value.
And 5: shared data application subscription topic: the app 1/in/database/realdata receives and stores the shared data message which is forwarded by the MQTTservice and contains the power distribution application;
step 6: the method comprises the following steps that marketing business application sends a data recruitment request message to MQTT service, wherein the data recruitment request topic is app2/request/database/realdata, app2 is a marketing business application name, the database is a shared database name, the request represents that the message is a request message, the realdata represents that the requested data storage type is real-time data, and the message body is { "token": "236", "timeframe": "2019-03-01T 09:33:09.430+ 0800", "dev _ type": "rcd", "dev _ addr": "000000000001", "body": [ "PhV _ phsA", "PhV _ phsB" ] }; "token" is the message identity authentication code, "timestamp" is the timestamp, represents the message release time, "dev _ type" is the device type, "rcd" represents this device is the leakage protection switch, "dev _ addr" is the device address, "body" content is the data name of the request.
And 7: shared data application subscription topic: app2/request/database/realdata, receives a message forwarded by MQTTservice containing a shared data item to be requested of a marketing application, extracts data, and responds to the shared data to read that topic is database/response/app2/realdata, app2 is a marketing service application name, database is a shared database name, request indicates that the message is a request message, realdata indicates that the data storage type of the request is real-time data, the message body is { "token": 234 "," timetag ": 2019-03-01T09:33:09.460+ 0800", "dev _ type": rcd "," dev _ addr ": 000000000001", "body" [ { "name": PhV _ sAph { "220.10": time ": PhV": timestamp ": 220.11 {" uestyp "}," 220.11 ": 220.11 {" uestyammy ": 220.11" }, indicating the message release time, "dev _ type" is the device type, "rcd" indicates that the device is a leakage protection switch, "dev _ addr" is the device address, and the content in the "body" is the requested data name and the corresponding data value;
and 8: marketing application subscription topic: and (4) receiving the data base/response/app2/realdata, analyzing and obtaining the shared data which is forwarded by the MQTT service and contains the shared data required by the marketing application, wherein the numerical value is consistent with the numerical value pushed by the power distribution application in the step 4.
The step is referred to as the method for acquiring the power distribution application sharing real-time data by the marketing application, and similarly, the step can be referred to for sharing the real-time data and the record type data among other applications.
The invention may be stored in a computer readable storage medium, storing the following templates:
as will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (11)

1. A novel fusion terminal marketing and distribution information sharing method based on MQTT protocol is characterized by comprising the following steps: the method comprises the following steps:
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to a shared database application subscribing the registration request topic;
the MQTT service of the terminal host receives the registration response message, and transfers the registration response message to a power distribution service application or a marketing service application subscribing the registration response topic;
the MQTT service of the terminal host receives the push request message and transfers the push request message to a shared database application subscribing data push topic;
the MQTT service of the terminal host receives the invitation request message and transfers the invitation request message to a shared database application subscribing the data invitation request topic;
and the MQTT service of the terminal host receives the enrollment response message and transfers the enrollment response message to the power distribution service application or the marketing service application of the subscription data enrollment response topic.
2. The novel operation and distribution information sharing method for the power distribution station fusion terminal based on the MQTT protocol, which is characterized in that: the content of the registration request message includes at least one of: message identity authentication code, time stamp, equipment type, equipment address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a timestamp and a registration result;
the content of the push request message comprises at least one of the following: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the specific content of the enrollment request message includes at least one of the following: a message identity authentication code, a timestamp, a device type, a device address and a data name set;
the specific content of the enrollment response message includes at least one of the following: a message authentication code, a timestamp, a device type, a device address, and a shared data item.
3. The novel operation and distribution information sharing method for the power distribution station fusion terminal based on the MQTT protocol, which is characterized in that: the service capability description comprises at least one of: data name, data type, storage type, value range and unit; the data type comprises at least one of remote measurement, remote signaling, remote pulse and remote control; the storage type comprises a real-time type and a recording type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
4. A novel fusion terminal marketing and distribution information sharing method based on MQTT protocol is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the steps that a power distribution service application or a marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and a registration request message is issued to an MQTT service through an MQTT publish interface;
the shared database application establishes a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues the registration response message to the MQTT service through an MQTT publish interface;
the method comprises the steps that a power distribution service application or a marketing service application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and a push request message is issued to an MQTT service through an MQTT publish interface; the shared database application updates the shared data items according to the content in the push request message;
the method comprises the steps that a power distribution service application or a marketing service application generates a data recruitment request topic based on an MQTT protocol instant message interaction mechanism, and publishes a recruitment request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes shared data items needing to be read in the request message, extracts shared data, generates a data reading response topic, issues a reading response message to the MQTT service through the MQTT public interface, and the power distribution service application or the marketing service application analyzes the reading response message to obtain the shared data items and extracts the shared data.
5. The MQTT protocol-based novel distribution station convergence terminal operation and distribution information sharing method is characterized in that: the topic name is composed of multiple levels, divided by slashes, including invariant portions reflecting the subject function and variant portions of key information.
6. The MQTT protocol-based novel distribution area convergence terminal operation and distribution information sharing method is characterized in that: the content of the registration request topic is "vendor name/application name/request/shared database application name/registration";
the content of the registration response topic is "vendor name/application name/response/shared database application name/registration";
the content of the data push topic is "application name/push/shared database application name/data type";
the content of the data enrollment request topic is "application name/request/shared database application name/storage type";
the content of the data enrollment response topic is "application name/response/shared database application name/storage type".
7. The MQTT protocol-based novel distribution station convergence terminal operation and distribution information sharing method is characterized in that: the content of the registration request message includes at least one of: message identity authentication code, time stamp, equipment type, equipment address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a timestamp and a registration result;
the content of the push request message comprises at least one of the following: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the specific content of the enrollment request message includes at least one of the following: a message identity authentication code, a timestamp, a device type, a device address and a data name set;
the specific content of the enrollment response message includes at least one of the following: a message authentication code, a timestamp, a device type, a device address, and a shared data item.
8. The MQTT protocol-based novel distribution area convergence terminal operation and distribution information sharing method is characterized in that: the service capability description comprises at least one of: data name, data type, storage type, value range and unit; the data type comprises at least one of remote measurement, remote signaling, remote pulse and remote control; the storage type comprises a real-time type and a recording type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
9. The MQTT protocol-based novel distribution station convergence terminal operation and distribution information sharing method is characterized in that: the step of pushing the shared data by the power distribution business application or the marketing business application further comprises the following steps:
and the power distribution service application or the marketing service application actively pushes all shared data to the shared database application at regular time, or actively pushes all shared data to the shared database application when the change of the shared data exceeds a threshold value.
10. The MQTT protocol-based novel distribution station convergence terminal operation and distribution information sharing method is characterized in that: the step of recruiting the shared data by the power distribution service application or the marketing service application further comprises the steps of:
the distribution service application or the marketing service application can selectively attract and read all data or part of the data, and key information of equipment types, equipment addresses and data names is given when part of the data is attracted and read.
11. Novel fusion terminal operation and distribution information sharing system based on MQTT protocol is characterized in that: the method comprises the following steps: a terminal host, a power distribution service application, a marketing service application, a shared database application,
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to a shared database application subscribing the registration request topic;
the MQTT service of the terminal host receives the registration response message, and transfers the registration response message to a power distribution service application or a marketing service application subscribing the registration response topic;
the MQTT service of the terminal host receives the push request message and transfers the push request message to a shared database application subscribing data push topic;
the MQTT service of the terminal host receives the invitation request message and transfers the invitation request message to a shared database application subscribing the data invitation request topic;
the MQTT service of the terminal host receives the enrollment response message, and transfers the enrollment response message to the power distribution service application or the marketing service application of the subscription data enrollment response topic;
the method comprises the steps that a power distribution service application or a marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and a registration request message is issued to an MQTT service through an MQTT publish interface;
the shared database application establishes a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues the registration response message to the MQTT service through an MQTT publish interface;
the method comprises the steps that a power distribution service application or a marketing service application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and a push request message is issued to an MQTT service through an MQTT publish interface; the shared database application updates the shared data items according to the content in the push request message;
the method comprises the steps that a power distribution service application or a marketing service application generates a data recruitment request topic based on an MQTT protocol instant message interaction mechanism, and publishes a recruitment request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes shared data items needing to be read in the request message, extracts shared data, generates a data reading response topic, issues a reading response message to the MQTT service through the MQTT public interface, and the power distribution service application or the marketing service application analyzes the reading response message to obtain the shared data items and extracts the shared data.
CN202010454079.0A 2020-05-26 2020-05-26 Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol Active CN111683125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010454079.0A CN111683125B (en) 2020-05-26 2020-05-26 Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010454079.0A CN111683125B (en) 2020-05-26 2020-05-26 Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol

Publications (2)

Publication Number Publication Date
CN111683125A true CN111683125A (en) 2020-09-18
CN111683125B CN111683125B (en) 2023-10-31

Family

ID=72453841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010454079.0A Active CN111683125B (en) 2020-05-26 2020-05-26 Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol

Country Status (1)

Country Link
CN (1) CN111683125B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637270A (en) * 2020-12-01 2021-04-09 青岛联众芯云科技有限公司 Special transformer acquisition terminal system based on MQTT message and communication method
CN112737112A (en) * 2020-12-24 2021-04-30 广州南方电力集团科技发展有限公司 Full scene data acquisition system and method for intelligent monitoring terminal of power distribution station area
CN113742101A (en) * 2021-08-27 2021-12-03 烽火通信科技股份有限公司 Data intercommunication method, device, equipment and readable storage medium
US20220206772A1 (en) * 2020-12-30 2022-06-30 Accenture Global Solutions Limited Scalable, robust, and secure multi-tenant edge architecture for mission-critical applications

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656847A (en) * 2014-11-13 2016-06-08 中国科学院沈阳计算技术研究所有限公司 SIP (Session Initiation Protocol)/MQTT (Message Queuing Telemetry Transport) protocol conversion gateway system and control method thereof for mobile device
US20180167476A1 (en) * 2016-12-12 2018-06-14 Sap Se Meta broker for publish-subscribe-based messaging
CN109245295A (en) * 2018-08-31 2019-01-18 中国科学院广州能源研究所 Photovoltaic power station monitoring system based on MQTT agreement
CN110442814A (en) * 2019-06-19 2019-11-12 中国电力科学研究院有限公司 A kind of data interaction system and method for ubiquitous electric power Intelligent terminal for Internet of things
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN111046021A (en) * 2019-11-30 2020-04-21 许昌许继软件技术有限公司 Internet of things type distribution transformer terminal application development platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656847A (en) * 2014-11-13 2016-06-08 中国科学院沈阳计算技术研究所有限公司 SIP (Session Initiation Protocol)/MQTT (Message Queuing Telemetry Transport) protocol conversion gateway system and control method thereof for mobile device
US20180167476A1 (en) * 2016-12-12 2018-06-14 Sap Se Meta broker for publish-subscribe-based messaging
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN109245295A (en) * 2018-08-31 2019-01-18 中国科学院广州能源研究所 Photovoltaic power station monitoring system based on MQTT agreement
CN110442814A (en) * 2019-06-19 2019-11-12 中国电力科学研究院有限公司 A kind of data interaction system and method for ubiquitous electric power Intelligent terminal for Internet of things
CN111046021A (en) * 2019-11-30 2020-04-21 许昌许继软件技术有限公司 Internet of things type distribution transformer terminal application development platform

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637270A (en) * 2020-12-01 2021-04-09 青岛联众芯云科技有限公司 Special transformer acquisition terminal system based on MQTT message and communication method
CN112737112A (en) * 2020-12-24 2021-04-30 广州南方电力集团科技发展有限公司 Full scene data acquisition system and method for intelligent monitoring terminal of power distribution station area
US20220206772A1 (en) * 2020-12-30 2022-06-30 Accenture Global Solutions Limited Scalable, robust, and secure multi-tenant edge architecture for mission-critical applications
CN113742101A (en) * 2021-08-27 2021-12-03 烽火通信科技股份有限公司 Data intercommunication method, device, equipment and readable storage medium
CN113742101B (en) * 2021-08-27 2023-08-01 烽火通信科技股份有限公司 Data intercommunication method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN111683125B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN111683125A (en) Novel fusion terminal operation and distribution information sharing method and system based on MQTT protocol
EP2888858B1 (en) Method and apparatus of generalized network controller for a software defined network (sdn)
CN108881354B (en) Push information storage method and device, server and computer storage medium
WO2004004283A1 (en) Opc server redirection manager
CN105103128A (en) Optimizing handling of virtual machine mobility in data center environments
CN110851278A (en) Distribution network automation master station mobile application service management method and system based on micro-service architecture
CN112953982B (en) Service processing method, service configuration method and related device
CN102438042B (en) Dynamic parameter synchronizing method and system of multipoint access device
CN110008267B (en) Data processing system and method
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN103428260A (en) System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN111970363B (en) Data processing method and device based on Internet of things
CN102014129B (en) Method and device for registering in CoAP network
CN111629059B (en) Cluster communication method, system, equipment and computer readable storage medium
CN115941426B (en) Multi-service resource collaboration method, system and computer equipment
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN105049515A (en) Power distribution monitoring system and data interaction method thereof
CN103023740B (en) A kind of information interactive bus system and electric data transmission method
CN104657240B (en) The Failure Control method and device of more kernel operating systems
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN212463256U (en) Wireless terminal equipment of Internet of things and communication module
KR20150142761A (en) Agent system for operating intelligent system of digital substation and method for operating the same
CN112884171A (en) Electrician equipment and repair change management system based on active identification code carrier technology
CN111193614A (en) Cross-regional server system and method for connecting different regional network environments in the world
CN113612817B (en) Decentralizing intelligent networking system and method for multiple bins

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant