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

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

Info

Publication number
CN111683125B
CN111683125B CN202010454079.0A CN202010454079A CN111683125B CN 111683125 B CN111683125 B CN 111683125B CN 202010454079 A CN202010454079 A CN 202010454079A CN 111683125 B CN111683125 B CN 111683125B
Authority
CN
China
Prior art keywords
mqtt
application
data
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.)
Active
Application number
CN202010454079.0A
Other languages
Chinese (zh)
Other versions
CN111683125A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a novel fusion terminal marketing and distribution information sharing method based on an MQTT protocol, which comprises the steps of deploying MQTT service on a terminal host, and connecting a power distribution service application, a marketing service application and a shared database application to the MQTT service through an IP and a port number; the MQTT-based real-time sharing of the cross-container and cross-terminal data is realized, and the plug-and-play of the application sharing data service is realized by establishing a sharing database. The novel distribution transformer substation fusion terminal marketing and distribution information sharing method based on the MQTT protocol solves the problem of sharing data among containers and multiple applications of the novel distribution transformer substation fusion terminal, has the function of actively registering and sharing the data, and is applicable to decoupling and plug and play. The application has flexible deployment and data sharing as required, and is used as a bridge for marketing and distribution integration, thereby comprehensively improving the lean management level of the low-voltage distribution network.

Description

Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol
Technical Field
The application 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 areas.
Background
The novel power distribution area fusion terminal solves the problems of increased cost, repeated functions, increased operation and maintenance workload and the like caused by simultaneously installing the intelligent power distribution transformer terminal and the concentrator at the power distribution area side. However, convergence terminal software applications are required to be containerized based on business and security requirements, with distribution business and marketing business applications deployed in different containers, respectively. Because the hardware memory occupied by the virtual machine is different, the traditional memory sharing technology cannot be used, and the difficulty of how to share the data is also brought.
At present, a socket mode is adopted as a mode breaking through data sharing among containers, but the socket is a transmission layer protocol and needs to be matched with an application layer protocol for use. The application layer protocol is selected in two modes, one is a custom protocol, which is not beneficial to large-scale popularization; the other format adopts the communication protocol which is formed into a standard at present, the standard protocol of the internet industry has higher requirements on the computing capacity of the terminal, and the application layer communication protocols IEC104, IEC101 and the like of the power industry are used for realizing the point-to-point data sharing between the terminal and the master station, and the data content and the type are strictly limited and are not suitable for real-time data sharing and plug-and-play among multiple application programs. Therefore, there is a need for an instant messaging method that is suitable for instant messaging with limited computing power and that can be rapidly shared among multiple applications.
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 fusion terminal, the application provides a novel fusion terminal marketing and distribution information sharing method based on an MQTT protocol, which realizes real-time sharing of data across containers and across terminals based on the MQTT protocol and realizes plug and play of application sharing data service by establishing a sharing database; as a bridge for marketing and distribution integration, the lean management level of the low-voltage power distribution network is comprehensively improved.
The technical scheme is as follows: in order to solve the technical problems, the application adopts the following technical scheme:
the novel fusion terminal marketing and distribution information sharing method based on the 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 the 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 the distribution service application or 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 the shared database application subscribing the data push topic;
the MQTT service of the terminal host receives the solicited-read request message and transfers the solicited-read request message to the shared database application subscribing the data solicited-read request topic;
the MQTT service of the terminal host receives the solicitation response message and transfers the solicitation response message to the distribution service application or marketing service application subscribing the data solicitation response topic.
Preferably, the content of the registration request message includes at least one of the following: message identity authentication code, timestamp, device type, device address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a time stamp and a registration result;
the content of the push request message includes at least one of: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the concrete content of the solicitation message comprises at least one of the following: a set of message identity authentication codes, time stamps, device types, device addresses, and data names;
the concrete content of the solicited response message comprises at least one of the following components: message authentication code, timestamp, device type, device address, and shared data item.
Preferably, the service capability description includes at least one of the following: data name, data type, storage type, value range and unit; the data type comprises at least one of telemetry, remote signaling, remote pulse and remote control; the storage type includes a real-time type and a record type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
The novel fusion terminal marketing and distribution information sharing method based on the MQTT protocol comprises the following steps:
the power distribution service application or the marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and issues a registration request message to an MQTT service through an MQTT publishing interface;
the shared database application builds a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues a registration response message to the MQTT service through the MQTT publish interface;
the power distribution business application or marketing business application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and issues a push request message to an MQTT service through an MQTT publish interface; the shared database application updates the shared data item according to the content in the push request message;
the power distribution service application or marketing service application generates a data solicitation reading request topic based on an MQTT protocol instant message interaction mechanism, and issues a solicitation reading request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes the shared data item to be read in the request message, extracts the shared data, generates a data read request topic, issues a read request message to the MQTT service through the MQTT publishing interface, and the distribution service application or marketing service application analyzes the read request message to acquire the shared data item and extracts the shared data.
Preferably, the topic name is composed of a plurality of hierarchies, divided in a slash, and the hierarchies include a constant part reflecting the theme function and a variable part 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 solicitation request topic is 'application name/request/shared database application name/storage type';
the content of the data solicitation 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, timestamp, device type, device address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a time stamp and a registration result;
the content of the push request message includes at least one of: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the concrete content of the solicitation message comprises at least one of the following: a set of message identity authentication codes, time stamps, device types, device addresses, and data names;
the concrete content of the solicited response message comprises at least one of the following components: message authentication code, timestamp, device type, device address, and shared data item.
Preferably, the service capability description includes at least one of the following: data name, data type, storage type, value range and unit; the data type comprises at least one of telemetry, remote signaling, remote pulse and remote control; the storage type includes a real-time type and a record type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
Preferably, the power distribution business application or the marketing business application pushing the shared data further comprises the following steps:
the distribution service application or the marketing service application actively pushes all the shared data to the shared database application at regular time, or actively pushes all the shared data to the shared database application when the change of the shared data exceeds a threshold value.
Preferably, the power distribution service application or the marketing service application recruits shared data further comprising the steps of:
the distribution service application or marketing service application can choose to call all or part of the data, and when part of the data is called, the key information of the type of the equipment, the address of the equipment and the name of the data is given.
Novel converged terminal marketing and distribution information sharing system based on MQTT protocol comprises: end hosts, distribution service applications, marketing service applications, shared database applications,
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to the 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 the distribution service application or 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 the shared database application subscribing the data push topic;
the MQTT service of the terminal host receives the solicited-read request message and transfers the solicited-read request message to the shared database application subscribing the data solicited-read request topic;
the MQTT service of the terminal host receives the solicited-reading response message and transfers the solicited-reading response message to the distribution service application or marketing service application subscribing the data solicited-reading response topic;
the power distribution service application or the marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and issues a registration request message to an MQTT service through an MQTT publishing interface;
the shared database application builds a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues a registration response message to the MQTT service through the MQTT publish interface;
the power distribution business application or marketing business application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and issues a push request message to an MQTT service through an MQTT publish interface; the shared database application updates the shared data item according to the content in the push request message;
the power distribution service application or marketing service application generates a data solicitation reading request topic based on an MQTT protocol instant message interaction mechanism, and issues a solicitation reading request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes the shared data item to be read in the request message, extracts the shared data, generates a data read request topic, issues a read request message to the MQTT service through the MQTT publishing interface, and the distribution service application or marketing service application analyzes the read request message to acquire the shared data item and extracts the shared data.
The beneficial effects are that: according to the novel fusion terminal marketing and distribution information sharing method based on the MQTT protocol, the containers can be penetrated by utilizing the IP technology in the MQTT protocol to finish data sharing among the containers, and meanwhile, the release/subscription message mode can effectively release coupling among applications, so that good expansibility is provided. The method solves the problem of sharing data between containers of the novel power distribution station fusion terminal and multiple applications, has the function of actively registering and sharing data, and is applicable to decoupling and plug-and-play. The application has flexible deployment and data sharing as required, and is used as a bridge for marketing and distribution integration, thereby comprehensively improving the lean management level of the low-voltage distribution network.
Drawings
FIG. 1 is a diagram of shared data according to the present application.
Fig. 2 is a schematic diagram of APP deployment for the present application.
Detailed Description
The application will be further described with reference to the accompanying drawings.
As shown in fig. 1, one embodiment of the present application is as follows: a novel fusion terminal marketing and distribution information sharing method based on an MQTT protocol comprises the following steps.
S01, 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;
s02, the power distribution service application or the marketing service application respectively generates a registration request topic based on an MQTT protocol instant message interaction mechanism, issues a registration request message to an MQTT service through an MQTT publishing interface, and the MQTT service transfers the registration request message to a shared database application subscribing the registration request topic;
s03, establishing a table by the shared database application according to the content classification in the registration request message, responding to registration, generating a registration response topic, issuing a registration response message to the MQTT service through the MQTT publishing interface, and transmitting the registration response message to a power distribution service application or a marketing service application subscribing the registration response topic by the MQTT service, wherein the registration is completed when the response result is successful;
s04, the power distribution business application or marketing business application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and issues a push request message to an MQTT service through an MQTT push 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 item according to the content in the push request message;
s05, the distribution service application or marketing service application generates a data solicitation request topic based on an MQTT protocol instant message interaction mechanism, and issues a solicitation request message to an MQTT service through an MQTT publish interface, and the MQTT service transfers the solicitation request message to a shared database application subscribing the data solicitation request topic;
s06, the shared database application analyzes the shared data item to be read in the request message, extracts the shared data, generates a data read-in response topic, issues the read-in response message to the MQTT service through the MQTT public interface, and transfers the read-in response message to a power distribution service application or a marketing service application subscribing the data read-in response topic, and the power distribution service application or the marketing service application analyzes the read-in response message to acquire the shared data, thereby finally realizing data sharing.
The topic includes: registration request topic, registration response topic, data push topic, data solicit-read request topic, data solicit-read response topic, various topic names are composed of multiple levels, divided in a slash, including a constant part reflecting the subject function (e.g., registration, push, solicit-read, request, response) and a variable part of key information (e.g., vendor name, application name, data type); the method comprises the following steps:
the specific content of the registration request topic is 'manufacturer name/application name/request/shared database application name/registration';
the specific content of the registration response topic is 'manufacturer 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 concrete content of the data solicitation and reading 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 concrete content of the data recruitment response topic is 'application name/response/shared database application name/storage type'.
The specific content of the registration request message comprises: message identity authentication code, timestamp, device type, device address, service capability description; the service capability description includes: data name, data type, storage type, value range and unit; the data types include telemetry, remote signaling, remote pulse and remote control.
The specific content of the registration response message comprises: a message identity authentication code, a time stamp and a registration result; the registration result includes registration success and registration failure.
The specific content of the push request message comprises: 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 concrete contents of the solicitation request message include: a message authentication code, a timestamp, a device type, a device address, and a set of data names.
The concrete contents of the solicitation response message include: 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 power distribution business application or marketing business application pushing shared data further comprises the steps of: the distribution service application or the marketing service application actively pushes all the shared data to the shared database application at regular time, or actively pushes all the shared data to the shared database application when the change of the shared data exceeds a threshold value.
The power distribution business application or marketing business application recruits shared data further comprising the steps of: the distribution service application or the marketing service application can choose to read all data or part of data, and when part of data is read, key information of equipment type, equipment address and data name is given;
as shown in fig. 2, the distribution service applications can be divided into three categories, namely, basic data applications, operation and maintenance management applications and user service applications, and mainly include distribution transformer monitoring applications, fault active reporting applications, fault active rush repair applications and the like. The marketing business application mainly comprises a power consumption acquisition application, an active reporting application, a power stealing analysis application and the like. The implementation of these business applications is not separated from the provisioning data sharing. The implementation of electricity stealing analysis applications in active rush repair applications and marketing business applications, such as in power distribution business applications, requires analysis of data collected by basic data applications in power distribution business applications and electricity collection applications in marketing business applications.
Example 2, using mosquitto to build MQTT service as MQTT message bus proxy software, carries power distribution and marketing business applications. Demonstrating the distribution business application sharing leakage protection voltage data to the marketing business application process:
step 1: the distribution service application, the marketing service application and the shared database application are connected with the MQTT service 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 distribution service application sends a registration request message to the MQTT service, wherein the registration request topic is NARI/app 1/request/database/regsubscriber, NARI is manufacturer name, app1 is distribution service application name, database is shared database name, request indicates that the message is a request message, regsubscriber indicates that the message is a registration message, and message body is { "token": "234", "timestamp": "2019-03-01T09:30:09.230+0800", "dev_type": "rcd", "dev_addr", "000000000001", "body" [ { "name": "PhV _phsA", "save_type": real "," data_type ": yc", "unit": V "," max ": 500", "min": "0" }, { "name": "PhV _phsB", "save_type": real "," data_type ": yc", "unit": "V", "max": 500"," min ": 0" }, JSON data format in message body, "token" is message identity authentication code, message transmission and reply are consistent, "timestamp" indicates message release time, "dev_type" is device type, "rcd" indicates this device is drain protection switch, "dev_addr" is device address, "body" is service capability description "PhV" and "body" is data_type "yc", "unit" V "," max ": 500", "min" is 0 "}," is data type "and" unit "data type" is data type "real-time", and "data type" real-time "is data type" data "maximum value" and "real-time type" data "unit" data_max "respectively.
Step 3: shared database application subscription topic: NARI/app1/request/database/register, receiving the initiative registration request message forwarded by MQTT service, sharing database, analyzing message body, classifying and building table, generating registration response topic as database/response/app1/register, app1 as distribution service application name, database as shared database name, response as response message, regsiter as registration message, issuing message body { token ": 234", "timestamp": 9-03-01T09:30:09.330+0800"," result ": OK" } "," result "as registration result," OK "as registration success," FAIL "as registration failure.
Step 4: distribution service application subscription topic: the method comprises the steps that a database/response/app1/register receives an active registration response message forwarded by an MQTT service, registration is stopped, shared data is pushed to the MQTT service, data push topic is generated as app 1/index/database/realdata, app1 is a power distribution service application name, database is a shared database name, index indicates that the message is a push message and does not need to be replied, realdata indicates that the requested data storage type is real-time data, and a push message body is { "token"; "235", "timestamp": "2019-03-01T09:30:09.230+0800", "dev_type": "rcd", "dev_addr": "000000000001", "body" [ { "name": "PhV _phsA", "value": "220.10" }, { "name": "PhV _phsB", "value": "220.11" }, "token" is a message identity authentication code, "timestamp" is a timestamp, indicating the message release time, "dev_type" is a device type, "rcd" indicates that the device is a drain protection switch, "dev_addr" is a device address, "body" content is a data name and a corresponding data value.
Step 5: shared data application subscription topic: the app 1/form/database/realdata receives and stores the shared data message which is forwarded by the MQTT service and contains the power distribution application;
step 6: the marketing business application sends a data solicitation request message to the MQTT service, wherein the data solicitation request topic is app2/request/database/realdata, app2 is the marketing business application name, database is the shared database name, request indicates that the message is a request message, realdata indicates that the requested data storage type is real-time data, the message body is { "token": 236, "time": 2019-03-01T09:33:09.430+0800, "" dev_type ": rcd," "dev_addr": 000000000001, "" body ": [" PhV _phsA, "" PhV _phsB "] }," token "is a message identity authentication code," time stamp "indicates that 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 name and" the requested data content is the device address.
Step 7: shared data application subscription topic: the app2/request/database/realdata receives a message forwarded by the MQTT service and containing a shared data item to be requested by a marketing application, extracts data, and responds to the shared data to read the topic as database/response/app2/realdata, app2 as marketing service application name, database as shared database name, request as request message, realdata as request data storage type as real-time data, message body as { "token": 234"," timestamp ": 2019-03-0109:33:09.460+0800", "dev_type": rcd "," dev_addr ": 000000000000000000000001": [ { name ": phV _phsA", "value" } "220.10" } "name" { PhV _phsB "," value ": 220.11" } as request data storage type as real-time data, message body as { "token": 234"," timestamp ": 10" and "timestamp" type as request data "device" ("timestamp" ("address" device and "timestamp" device ": 10": 0000000000000000000000000000000000000000000000000001 "}";
step 8: marketing application subscribes to topic: and (3) receiving a message which is forwarded by the MQTT service and contains the shared data required by the marketing application and is requested by the marketing application by the database/response/app2/realdata, analyzing to obtain the shared data, wherein the value is consistent with the value pushed by the power distribution application in the step (4).
The method for the marketing application to acquire the power distribution application sharing real-time data is realized, and the method can refer to the steps in the same way for sharing the real-time data and the recorded data among other applications.
Instructions for the software application that may be stored on a computer readable storage medium, please save the following templates:
it will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 aspects of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the application without departing from the spirit and scope of the application, which is intended to be covered by the claims.

Claims (8)

1. The novel fusion terminal marketing and distribution information sharing method based on the MQTT protocol is characterized by comprising the following steps of: 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 the 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 the distribution service application or 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 the shared database application subscribing the data push topic;
the MQTT service of the terminal host receives the solicited-read request message and transfers the solicited-read request message to the shared database application subscribing the data solicited-read request topic;
the MQTT service of the terminal host receives the solicited-reading response message and transfers the solicited-reading response message to the distribution service application or marketing service application subscribing the data solicited-reading response topic;
the method comprises the steps that 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 power distribution service application or the marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and issues a registration request message to an MQTT service through an MQTT publishing interface;
the shared database application builds a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues a registration response message to the MQTT service through the MQTT publish interface;
the power distribution business application or marketing business application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and issues a push request message to an MQTT service through an MQTT publish interface; the shared database application updates the shared data item according to the content in the push request message;
the power distribution service application or marketing service application generates a data solicitation reading request topic based on an MQTT protocol instant message interaction mechanism, and issues a solicitation reading request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes the shared data item to be read in the request message, extracts the shared data, generates a data read request topic, issues a read request message to the MQTT service through the MQTT publishing interface, and the distribution service application or marketing service application analyzes the read request message to acquire the shared data item and extracts the shared data.
2. The novel fusion terminal marketing information sharing method based on the MQTT protocol according to claim 1 is characterized in that: the content of the registration request message includes at least one of: message identity authentication code, timestamp, device type, device address, service capability description;
the content of the registration response message includes at least one of: a message identity authentication code, a time stamp and a registration result;
the content of the push request message includes at least one of: a message identity authentication code, a timestamp, a device type, a device address, and a shared data item;
the concrete content of the solicitation message comprises at least one of the following: a set of message identity authentication codes, time stamps, device types, device addresses, and data names;
the concrete content of the solicited response message comprises at least one of the following components: message authentication code, timestamp, device type, device address, and shared data item.
3. The novel fusion terminal marketing information sharing method based on the MQTT protocol as claimed in claim 2, which is characterized in that: 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 telemetry, remote signaling, remote pulse and remote control; the storage type includes a real-time type and a record type; the registration result comprises registration success and registration failure; the shared data item includes a data name and a data value.
4. The novel fusion terminal marketing information sharing method based on the MQTT protocol according to claim 1 is characterized in that: the topic name consists of multiple hierarchies, divided in slacks, that include a constant portion reflecting the theme's functionality and a variable portion of key information.
5. The novel fusion terminal marketing information sharing method based on the MQTT protocol according to claim 4 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 solicitation request topic is 'application name/request/shared database application name/storage type';
the content of the data solicitation response topic is 'application name/response/shared database application name/storage type'.
6. The novel fusion terminal marketing information sharing method based on the MQTT protocol according to claim 1 is characterized in that: the power distribution business application or marketing business application pushing the shared data further comprises the steps of:
the distribution service application or the marketing service application actively pushes all the shared data to the shared database application at regular time, or actively pushes all the shared data to the shared database application when the change of the shared data exceeds a threshold value.
7. The novel fusion terminal marketing information sharing method based on the MQTT protocol according to claim 1 is characterized in that: the power distribution business application or marketing business application recruiting shared data further comprises the steps of:
the distribution service application or marketing service application can choose to call all or part of the data, and when part of the data is called, the key information of the type of the equipment, the address of the equipment and the name of the data is given.
8. Novel converged terminal marketing and distribution information sharing system based on MQTT protocol is characterized in that: comprising the following steps: end hosts, distribution service applications, marketing service applications, shared database applications,
the MQTT service of the terminal host receives the registration request message and transfers the registration request message to the 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 the distribution service application or 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 the shared database application subscribing the data push topic;
the MQTT service of the terminal host receives the solicited-read request message and transfers the solicited-read request message to the shared database application subscribing the data solicited-read request topic;
the MQTT service of the terminal host receives the solicited-reading response message and transfers the solicited-reading response message to the distribution service application or marketing service application subscribing the data solicited-reading response topic;
the power distribution service application or the marketing service application generates a registration request topic based on an MQTT protocol instant message interaction mechanism respectively, and issues a registration request message to an MQTT service through an MQTT publishing interface;
the shared database application builds a table according to the content classification in the registration request message, responds to registration, generates a registration response topic, and issues a registration response message to the MQTT service through the MQTT publish interface;
the power distribution business application or marketing business application generates a data push topic based on an MQTT protocol instant message interaction mechanism, and issues a push request message to an MQTT service through an MQTT publish interface; the shared database application updates the shared data item according to the content in the push request message;
the power distribution service application or marketing service application generates a data solicitation reading request topic based on an MQTT protocol instant message interaction mechanism, and issues a solicitation reading request message to an MQTT service through an MQTT publish interface;
the shared database application analyzes the shared data item to be read in the request message, extracts the shared data, generates a data read request topic, issues a read request message to the MQTT service through the MQTT publishing interface, and the distribution service application or marketing service application analyzes the read request message to acquire the shared data item 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 CN111683125A (en) 2020-09-18
CN111683125B true 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)

Families Citing this family (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
US20220206772A1 (en) * 2020-12-30 2022-06-30 Accenture Global Solutions Limited Scalable, robust, and secure multi-tenant edge architecture for mission-critical applications
CN113742101B (en) * 2021-08-27 2023-08-01 烽火通信科技股份有限公司 Data intercommunication method, device, equipment and readable storage medium

Citations (5)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10645181B2 (en) * 2016-12-12 2020-05-05 Sap Se Meta broker for publish-subscribe-based messaging

Patent Citations (5)

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

Also Published As

Publication number Publication date
CN111683125A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN111683125B (en) Novel fusion terminal marketing and distribution information sharing method and system based on MQTT protocol
EP2460258B1 (en) Method and device for auto-generating goose signal connection topology from substation level
Loy et al. Open control networks: LonWorks/EIA 709 technology
CN112542888B (en) Method for realizing plug and play of intelligent power distribution and utilization equipment
CN105207366B (en) Distribution terminal plug and play model configuration tool and its implementation based on IEC61850
CN101702690A (en) Method for carrying out human-computer interaction by embedded equipment through internet instant messaging system
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN108306804A (en) A kind of Ethercat main station controllers and its communication means and system
CN111970363B (en) Data processing method and device based on Internet of things
CN110008267B (en) Data processing system and method
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN112235325B (en) Method and system for performing access control on functional module connected with intelligent terminal
CN104219175A (en) Data exchanging and service invocation system and data exchanging and service invocation method
Cavalieri Meeting real-time constraints in CAN
CN116743886A (en) Industrial control equipment data acquisition system based on Internet of things
CN112783049B (en) Lamp networking remote control system based on little service
CN212463256U (en) Wireless terminal equipment of Internet of things and communication module
CN112527453B (en) Virtualization information simulation system, method and computer-readable storage medium
CN103312552A (en) Data simulation method, data simulation machine and communication system of data simulation machine
KR20180037487A (en) Method and recording medium for compatibility between iec61850 and opc ua
CN101640667A (en) Process execution method, process execution system and configuration equipment and configuration method of process execution system
CN111193614A (en) Cross-regional server system and method for connecting different regional network environments in the world
CN105577433A (en) ACS cluster management method, apparatus and system
CN109525415A (en) A kind of Intelligent power distribution terminal topological model motor synchronizing method and self-synchronous device
CN111988310B (en) IEC61850 protocol-based data acquisition method and device

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