CN114390033A - Loop state patrol instrument acquisition system and method based on extensible communication protocol - Google Patents

Loop state patrol instrument acquisition system and method based on extensible communication protocol Download PDF

Info

Publication number
CN114390033A
CN114390033A CN202111631573.0A CN202111631573A CN114390033A CN 114390033 A CN114390033 A CN 114390033A CN 202111631573 A CN202111631573 A CN 202111631573A CN 114390033 A CN114390033 A CN 114390033A
Authority
CN
China
Prior art keywords
module
subscription
mqtt
data
loop state
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.)
Pending
Application number
CN202111631573.0A
Other languages
Chinese (zh)
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
State Grid Tianjin Electric Power Co Ltd
Marketing Service Center of State Grid Tianjin Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Tianjin Electric Power Co Ltd
Marketing Service Center of State Grid Tianjin 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, State Grid Tianjin Electric Power Co Ltd, Marketing Service Center of State Grid Tianjin Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202111631573.0A priority Critical patent/CN114390033A/en
Publication of CN114390033A publication Critical patent/CN114390033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a loop state patrol instrument acquisition system and method based on an extensible communication protocol, which comprises the following steps: the system comprises a client module, an MQTT Broker server module and a loop state patrol instrument module; the client module is used for sending subscription information and receiving subscription result data; the MQTT Broker server-side module is used for assembling and sending subscription information, and receiving, checking, analyzing and forwarding subscription result data; the MQTT Broker server module is also connected with the loop state polling instrument module and used for receiving subscription result data returned by the loop state polling instrument module, analyzing the subscription result data into a data format which can be identified by the client module and sending the data to the client module. The invention adopts 698 object-oriented protocol, is based on MQTT communication protocol, can realize real-time transmission of data through 4G network, and realizes large-scale and high-speed transmission of data.

Description

Loop state patrol instrument acquisition system and method based on extensible communication protocol
Technical Field
The invention belongs to the technical field of loop state polling instruments and electric energy collection, and relates to a loop state polling instrument information collection system and a loop state polling instrument information collection method, in particular to a loop state polling instrument collection system and a loop state polling instrument collection method based on an extensible communication protocol.
Background
The electricity utilization information acquisition system covered by the national network at the end of 2014 has realized the comprehensive coverage of all the users and the gateways of the special transformer, realizes the online monitoring of the metering device and the real-time acquisition of important information such as the load, the electric quantity, the voltage and the like of the users of the special transformer, can timely, completely and accurately provide basic data for the advanced analysis and the auxiliary decision-making research of the related system, and provides a solid information foundation for realizing the intelligent two-way interaction of the loop state inspection instrument.
MQTT (Message Queuing Telemetry Transport) is a "lightweight" communication protocol based on publish/subscribe (publish/subscribe) mode, which is built on TCP/IP protocol and published by IBM in 1999. The MQTT has the greatest advantage that a connected remote device can be provided with real-time reliable message service with very little code and limited bandwidth. As an instant messaging protocol with low cost and low bandwidth occupation, the method has wide application in the aspects of Internet of things, small-sized equipment, mobile application and the like.
The power grid enterprise realizes comprehensive acquisition and monitoring of various power utilization information through the power utilization information acquisition system, but the traditional loop state polling instrument does not have the function of uploading data in real time.
Upon search, no prior art documents that are the same or similar to the present invention have been found.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a loop state polling instrument acquisition system and method based on an extensible communication protocol, which are based on a novel loop state polling instrument, adopt 698 object-oriented protocols, and realize real-time data transmission through a 4G network based on an MQTT communication protocol so as to realize large-scale and high-speed data transmission.
The invention solves the practical problem by adopting the following technical scheme:
a loop state patrolling instrument information acquisition system based on an extensible communication protocol comprises the following components: the system comprises a client module, an MQTT Broker server module and a loop state patrol instrument module; the client module is connected with the MQTT Broker server module and used for sending subscription information and receiving subscription result data; the MQTT Broker server-side module is used for assembling and sending subscription information, and receiving, checking, analyzing and forwarding subscription result data; the MQTT Broker server module is also connected with the loop state polling instrument module and used for receiving subscription result data returned by the loop state polling instrument module, analyzing the subscription result data into a data format which can be identified by the client module and sending the data to the client module.
Moreover, the MQTT Broker server module includes: the system comprises a communication preposition module, an equipment ledger management module and a protocol analysis module; the communication preposition module is used for receiving subscription result data returned by the loop state polling instrument module, and the output end of the communication preposition module is connected with the equipment standing book management module and used for sending the received subscription result data to the equipment standing book management module for inspection; the output end of the equipment standing book management module is connected with the protocol analysis module and used for sending the subscription result data passing the validity check to the protocol analysis module, and the protocol analysis module is used for forwarding the analyzed subscription result data to the corresponding client.
A loop state patrol instrument information acquisition method based on an extensible communication protocol comprises the following steps:
step 1, designing a subscription command message complete set and defining a subscription message topic, wherein the subscription message topic is used for defining the content of the data information which can be subscribed by an MQTT Broker server side and subscribing the topic of the data to a loop state polling instrument in a unified way;
step 2, developing configuration parameters for subscribing data for each loop state polling instrument, establishing connection between an MQTT Broker server and each loop state polling instrument, and subscribing data of each loop state polling instrument by a client through the MQTT Broker server;
step 3, selecting an interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state patrol instrument, and designing a subscription message assembly format to realize the transmission of subscription messages and subscription results between the client and the loop state patrol instrument based on the MQTT-Broker server;
step 4, the loop state polling instrument acquires corresponding power consumption information data according to subscription information sent by the MQTT-Broker server, and transmits the acquisition result back to the MQTT-Broker server;
and 5, receiving 698 message format acquisition results by the MQTT-Broker server, and performing data processing and analysis.
And 6, the MQTT-Broker server forwards the analyzed result information of the client subscription data to the matched client subscription.
The step 1 specifically includes:
(1) designing a subscription command message set for defining the content of data information which can be subscribed by a client;
(2) and defining a subscription message topic, and attaching a label to the subscription message, so that the MQTT Broker server can conveniently identify the subscription information.
Moreover, the specific steps of the step 2 include
(1) The client sends the designed subscription message in the step 1 through an MQTT Broker server, and is used for subscribing the data of each loop state polling instrument;
(2) developing configuration parameters for subscribing data for each loop state polling instrument, configuring communication parameters such as an ip address, a port number, a heartbeat cycle and virtual private network parameters used when a table module dials a network for a network operator, and establishing connection between an MQTT Broker server and each loop state polling instrument; wherein, Ip address, port number make the loop state patrol and examine the appearance and can connect MQTT Broker.
The step 3 specifically includes:
(1) selecting a south interface protocol to use a POST method in a 698 protocol as an interface protocol between an MQTT-Broker server and a client and between the MQTT-Broker server and a loop state polling instrument;
(2) the MQTT-Broker server encapsulates the subscription request parameters in 698 request data by using a POST method, assembles the request parameters into a 698 message format, and sends the subscription message to the loop state polling instrument in a name/value mode.
Moreover, the specific method in the step 4 is as follows:
and the loop state polling instrument receives subscription information in a 698 message format sent by the MQTT-Broker server, acquires corresponding power utilization information data, and transmits the acquisition result back to the MQTT-Broker server in the 698 message format.
Further, the specific steps of step 5 include:
(1) the MQTT-Broker server receives the 698 message format acquisition result obtained in the step 4 through a communication front-end module, distinguishes protocol layers and access ports of a plurality of accessed loop state polling instrument devices through a protocol framing module function, transmits different subscription data results to topic corresponding to kafka, and finally uses a load balancing dynamic configuration function to connect data analysis service;
(2) registering a standing book on a visual interface for the accessed loop state inspection instrument equipment, and if the accessed equipment does not establish the equipment standing book, the output assembly defaults the equipment as illegal equipment; for the accessed equipment, the information of the state inspection instrument of the direct-connection loop is transmitted to a PMS (permanent magnet synchronous motor) system through a management processing module, and the PMS system directly manages the equipment;
(3) the MQTT-Broker server receives the processed and verified acquisition result data from the kafka through a protocol analysis module, and analyzes the data from 698 message format into a data format which can be recognized by the client.
The invention has the advantages and beneficial effects that:
1. the invention provides an information acquisition system and an information acquisition transmission method of a loop state inspection instrument based on an extensible communication protocol, aiming at the problem that the traditional loop state inspection instrument does not have the function of uploading data in real time, the invention adopts an MQTT +698 (object-oriented protocol) mode for the data overall structure of the loop state inspection instrument, realizes the communication between a master station system and a novel intelligent meter through a 4G network based on the MQTT protocol, and has the characteristics of large data transmission quantity, high transmission speed and the like.
2. The invention can realize mass data transmission. The invention uses the POST method in the 698 protocol as the interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state polling instrument based on the southward interface protocol, has no limit to the size of transmitted data, can effectively expand the communication bandwidth, increase the data throughput and realize the mass transmission of data.
3. The invention can improve the data transmission speed. The invention is based on MQTT protocol, uploads the power consumption information of the user to the power consumption information acquisition system of the national power grid company based on 4G network through a publish/subscribe mode in 698 message format, can reduce the workload of information transmission, strengthen the network data processing capability, improve the data transmission efficiency, and realize the high-efficiency bidirectional data transmission of the power consumption data between MQTT Broker and the loop state polling instrument.
Drawings
FIG. 1 is a schematic diagram of a loop state inspection instrument information acquisition system based on an extensible communication protocol according to the present invention;
fig. 2 is a detailed example of topic according to the present invention.
Detailed Description
The embodiments of the invention will be described in further detail below with reference to the accompanying drawings:
the invention provides a loop state inspection instrument information acquisition system and an information acquisition transmission method based on an extensible communication protocol, which adopt an MQTT +698 (object-oriented protocol) mode, realize the large-scale acquisition of loop state inspection instrument information through a 4G network based on the MQTT protocol, and transmit the loop state inspection instrument information to a power utilization information acquisition system of a national power grid company at a high speed.
A loop status data logger information collection system based on an extensible communication protocol, as shown in fig. 1, comprising: the system comprises a client module, an MQTT Broker server module and a loop state patrol instrument module; the client module is connected with the MQTT Broker server module and used for sending subscription information and receiving subscription result data; the MQTT Broker server-side module is used for assembling and sending subscription information, and receiving, checking, analyzing and forwarding subscription result data; the MQTT Broker server module is also connected with the loop state polling instrument module and used for receiving subscription result data returned by the loop state polling instrument module, analyzing the subscription result data into a data format which can be identified by the client module and sending the data to the client module.
In this embodiment, the MQTT Broker server module includes: the system comprises a communication preposition module, an equipment ledger management module and a protocol analysis module; the communication preposition module is used for receiving subscription result data returned by the loop state polling instrument module, and the output end of the communication preposition module is connected with the equipment standing book management module and used for sending the received subscription result data to the equipment standing book management module for inspection; the output end of the equipment standing book management module is connected with the protocol analysis module and used for sending the subscription result data passing the validity check to the protocol analysis module, and the protocol analysis module is used for forwarding the analyzed subscription result data to the corresponding client.
The functions and functions of the modules are further explained as follows:
the client module is used for sending subscription information and receiving subscription result data; the output end of the client module is connected with the MQTT Broker server module and is used for sending subscription information to the MQTT Broker server module and subscribing the required data; the client module input end is connected with the MQTT Broker server module and is used for receiving subscription result data returned by the MQTT Broker server module.
The MQTT Broker server-side module is used for assembling and sending subscription information, receiving, checking, analyzing and forwarding subscription result data and comprises three sub-modules, namely a communication front-end module, an equipment ledger management module and a protocol analysis module; the input end of the MQTT Broker server module is connected with the client module and used for receiving subscription information sent by the client module; the output end of the MQTT Broker server module is connected with the loop state polling instrument module and is used for assembling the subscription information received from the client module into a 698 message format and sending the message format to the loop state polling instrument module; the input end of the MQTT Broker server module is connected with the loop state polling instrument module and used for receiving subscription result data returned by the loop state polling instrument module; the output end of the MQTT Broker server module is connected with the client module and used for analyzing the subscription result data returned by the loop state polling instrument module from 698 message into a data format which can be identified by the client module and sending the data format to the client module;
the communication preposition module is used for receiving subscription result data returned by the loop state polling instrument module; the input end of the communication preposition module is connected with the loop state polling instrument module and is used for receiving subscription result data returned by the loop state polling instrument module; the output end of the communication preposition module is connected with the equipment standing book management module and used for sending the received subscription result data to the equipment standing book management module for inspection.
The equipment standing book management module is used for checking the legality of the subscription result data; the input end of the equipment standing book management module is connected with the communication preposition module and is used for receiving subscription result data sent by the communication preposition module and checking the validity of the data; the output end of the equipment standing book management module is connected with the protocol analysis module and used for sending the subscription result data passing the validity check to the protocol analysis module.
The protocol analysis module is used for analyzing the subscription result data and forwarding the analyzed subscription result data to the client module; the input end of the protocol analysis module is connected with the equipment standing book management module and is used for receiving and analyzing subscription result data sent by the equipment standing book management module; the output end of the protocol analysis module is connected with the client module and used for forwarding the analyzed subscription result data to the corresponding client.
The loop state polling instrument module is used for receiving subscription information, collecting subscription data and returning subscription result data; the input end of the loop state polling instrument module is connected with the MQTT Broker service end module and is used for receiving subscription information which is assembled into 698 message format by the MQTT Broker service end module and collecting subscription data; the output end of the loop state polling instrument module is connected with the MQTT Broker service end module and is used for transmitting the collected subscription result data back to the MQTT Broker service end module.
A loop state inspection instrument information acquisition and transmission method based on an extensible communication protocol comprises the following steps:
step 1: and designing a subscription message.
Designing a subscription command message complete set and defining a subscription message topic, wherein the subscription command message complete set is used for defining the content of the data information which can be subscribed by the MQTT Broker server side and uniformly subscribing the topic of the data to the loop state polling instrument.
Step 2: and subscribing data.
And developing configuration parameters for subscribing data for each loop state polling instrument, establishing connection between an MQTT Broker server and each loop state polling instrument, and subscribing data of each loop state polling instrument by a client through the MQTT Broker server.
And step 3: and (5) subscribing the message assembly and sending.
Interface protocols between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state polling instrument are selected, and a subscription message assembly format is designed, so that transmission of subscription messages and subscription results between the client and the loop state polling instrument based on the MQTT-Broker server is realized.
And 4, step 4: and collecting power utilization data.
And the loop state polling instrument acquires corresponding power utilization information data according to subscription information sent by the MQTT-Broker server and transmits the acquisition result back to the MQTT-Broker server.
And 5: and analyzing the subscription result data.
And the MQTT-Broker server receives 698 message format acquisition results and performs data processing and analysis.
Step 6: and forwarding the subscription data.
And the MQTT-Broker server forwards the analyzed data result information of the client subscription to the matched client subscription.
Further, the step 1 specifically comprises:
the MQTT Broker server designs a complete set of command messages required by data subscription actions and defines a subscription message topic, so that the client can clearly subscribe data information content, and the MQTT Broker server can subscribe the topic of data to the loop state polling instrument.
Step 11: subscription command message set design
And designing a subscription command message set for determining the content of the data information which can be subscribed by the client. And subscribing a loop state patrol instrument data acquisition class, a file transmission class, a control class, clock synchronization, reset, parameter query, parameter configuration, parameter activation and other message sets to the MQTT Broker server side through the SUBSCRIBE message. The MQTT Broker server side subscribes to a command message complete set required by the data of the loop state polling instrument for the first time, and can subsequently subscribe to a message subset according to actual requirements. After receiving the subscription data result returned by the loop state polling instrument, the MQTT Broker server needs to respectively reply a back message to the loop state polling instrument.
Step 12: subscription message topic definition
Defining a subscription message topic, and attaching a tag to the subscription message in step 11, so that the MQTT Broker server can identify the subscription information. The subscription message topic is a label attached to the subscription application message and is matched with the subscription data, the topic is known by the MQTT Broker server, and the client can subscribe the data through the server, and the server sends a copy of the matched distribution subscription data, namely, the application message is subscribed to each matched client. The topic to be defined comprises a calling instruction which is used for acquiring a prepositive issue, an MQTT data packet which corresponds to the calling instruction and is used for a loop state inspection instrument to reply, a power failure event which is used for the loop state inspection instrument to actively report, loop state inspection instrument error data and original data of load identification data which is used for the loop state inspection instrument to actively report. A specific example of topic is shown in figure 2. Thereby realizing subscription message design.
Further, the step 2 specifically comprises:
and (3) the client sends the designed subscription message in the step (1) through the MQTT Broker server to subscribe the data of each loop state polling instrument. The development of configuration parameters for subscribing data for each loop state polling instrument is a precondition of data subscription, so communication parameters such as an ip address, a port number, a heartbeat cycle and virtual private network parameters used when a table module dials a network for a network operator of an MQTT Broker terminal need to be configured, and the connection between the MQTT Broker server terminal and each loop state polling instrument is established. Wherein, Ip address, port number make the loop state patrol and examine the appearance and can connect MQTT Broker. The heartbeat cycle is used by the master station to detect whether the loop state polling instrument is on-line. Thereby enabling data subscription.
Further, the step 3 specifically comprises:
selecting an interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state patrol instrument, designing a subscription message assembly format for standardizing the connection mode between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state patrol instrument, unifying information transmission formats, facilitating the MQTT-Broker server to send the subscription message in the step 2 to the loop state patrol instrument, realizing network connection between the MQTT-Broker and the loop state patrol instrument, receiving an application message issued by the loop state patrol instrument, processing subscription of the loop state patrol instrument and canceling subscription request.
Step 31: interface protocol selection
And selecting an interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state patrol instrument, and normalizing the transmission channel of the subscription message in the step 2. The south interface protocol is selected to use a POST method in a 698 protocol as an interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state polling instrument, the size of transmitted data is not limited, the transmitted data cannot be displayed in URL, and a large amount of data can be transmitted.
Step 32: 698 message assembly
Based on the interface protocol in the step 31, the MQTT-Broker server designs a subscription message assembly format, unifies the sending format of the subscription message in the step 2, and realizes barrier-free transmission of data information. The MQTT-Broker server encapsulates the subscription request parameters in 698 request data by using a POST method, assembles the request parameters into a 698 message format, and sends the subscription message to the loop state polling instrument in a name/value mode. The message contains the following structure: (1) the message header is used for displaying the content and the attribute of the request or the response which needs to be processed by the server or the client; (2) CR + LF, which is a carriage return line-changing symbol; (3) a message body which is data to be transmitted; (4) a request line containing a method for the request, a request URI and an HTTP version; (5) a status line containing a status code indicating a response result, a reason phrase, and an HTTP version; (6) header fields: each type of header containing various conditions and attributes that represent requests and responses. Thereby realizing subscription message assembly and transmission.
Further, the step 4 specifically includes:
and the loop state polling instrument receives the subscription information in 698 message format sent by the MQTT-Broker server in the step 32, acquires corresponding power utilization information data, and transmits the acquisition result back to the MQTT-Broker server in 698 message format. Therefore, the electricity utilization data acquisition is realized.
Further, the step 5 specifically includes:
and (4) receiving the 698 message format acquisition result data returned by the loop state inspection instrument in the step 4 by the MQTT-Broker server, carrying out perfect inspection and analysis on the data, and processing the data into a format which can be identified by the client.
Step 51: data access
The MQTT-Broker server receives the 698 message format acquisition result obtained in the step 4 through a communication preposition module, distinguishes protocol layers and access ports of a plurality of accessed loop state polling instrument devices through a protocol framing module function, transmits different subscription data results to a topic corresponding to kafka, and finally uses a load balancing dynamic configuration function to connect data analysis services, so that the bandwidth of a network communication preposition can be effectively expanded, the data throughput is increased, the network data processing capability is enhanced, and the data analysis efficiency is improved.
Step 52: data processing
And confirming whether the accessed acquisition result in the step 51 is legal or not through the equipment standing book management module. And registering a standing book on a visual interface for the accessed loop state inspection instrument equipment, and if the accessed equipment does not establish the equipment standing book, the output assembly defaults that the equipment is illegal. The equipment standing book information also provides data support for the accessed equipment management, and for the accessed equipment, the information of the direct-connection loop state polling instrument is transmitted to the PMS through the management processing module, and the PMS directly manages the equipment.
Step 53: data parsing
The MQTT-Broker server receives the data of the acquisition result processed and verified in step 52 from the kafka through a protocol analysis module, and analyzes the data from 698 message format into a data format recognizable by the client. Thereby completing the subscription result data parsing.
Further, the step 6 specifically includes:
and the MQTT-Broker server forwards the client subscription data result information analyzed in the step 53 to the matched client for subscription. The protocol preprocessing micro-service component is adopted, protocol support is provided for 698 protocol service in a micro-service deployment mode in an expansion mode, the protocols of a main station of the power consumption information acquisition system and a main service station are unified, and the analyzed subscription data result information is sent to the matched client for subscription through kafka, so that the subscription data interaction between the MQTT-Broker server of the main power consumption information acquisition system and the main service station is realized. Thereby completing the subscription data forwarding.
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.

Claims (8)

1. The utility model provides a circuit state patrols and examines appearance collection system based on extensible communication protocol which characterized in that: the method comprises the following steps: the system comprises a client module, an MQTT Broker server module and a loop state patrol instrument module; the client module is connected with the MQTT Broker server module and used for sending subscription information and receiving subscription result data; the MQTT Broker server-side module is used for assembling and sending subscription information, and receiving, checking, analyzing and forwarding subscription result data; the MQTT Broker server module is also connected with the loop state polling instrument module and used for receiving subscription result data returned by the loop state polling instrument module, analyzing the subscription result data into a data format which can be identified by the client module and sending the data to the client module.
2. The system according to claim 1, wherein the acquisition system comprises: the MQTT Broker server module comprises: the system comprises a communication preposition module, an equipment ledger management module and a protocol analysis module; the communication preposition module is used for receiving subscription result data returned by the loop state polling instrument module, and the output end of the communication preposition module is connected with the equipment standing book management module and used for sending the received subscription result data to the equipment standing book management module for inspection; the output end of the equipment standing book management module is connected with the protocol analysis module and used for sending the subscription result data passing the validity check to the protocol analysis module, and the protocol analysis module is used for forwarding the analyzed subscription result data to the corresponding client.
3. A loop state patrol instrument acquisition method based on an extensible communication protocol is characterized by comprising the following steps: the method comprises the following steps:
step 1, designing a subscription command message complete set and defining a subscription message topic, wherein the subscription message topic is used for defining the content of the data information which can be subscribed by an MQTT Broker server side and subscribing the topic of the data to a loop state polling instrument in a unified way;
step 2, developing configuration parameters for subscribing data for each loop state polling instrument, establishing connection between an MQTT Broker server and each loop state polling instrument, and subscribing data of each loop state polling instrument by a client through the MQTT Broker server;
step 3, selecting an interface protocol between the MQTT-Broker server and the client and between the MQTT-Broker server and the loop state patrol instrument, and designing a subscription message assembly format to realize the transmission of subscription messages and subscription results between the client and the loop state patrol instrument based on the MQTT-Broker server;
step 4, the loop state polling instrument acquires corresponding power consumption information data according to subscription information sent by the MQTT-Broker server, and transmits the acquisition result back to the MQTT-Broker server;
and 5, receiving 698 message format acquisition results by the MQTT-Broker server, and performing data processing and analysis.
And 6, the MQTT-Broker server forwards the analyzed result information of the client subscription data to the matched client subscription.
4. The method for acquiring the loop state patrol instrument based on the extensible communication protocol according to claim 3, wherein the method comprises the following steps: the step 1 specifically comprises the following steps:
(1) designing a subscription command message set for defining the content of data information which can be subscribed by a client;
(2) and defining a subscription message topic, and attaching a label to the subscription message, so that the MQTT Broker server can conveniently identify the subscription information.
5. The method for acquiring the loop state patrol instrument based on the extensible communication protocol according to claim 3, wherein the method comprises the following steps: the specific steps of the step 2 comprise
(1) The client sends the designed subscription message in the step 1 through an MQTT Broker server, and is used for subscribing the data of each loop state polling instrument;
(2) developing configuration parameters for subscribing data for each loop state polling instrument, configuring communication parameters such as an ip address, a port number, a heartbeat cycle and virtual private network parameters used when a table module dials a network for a network operator, and establishing connection between an MQTT Broker server and each loop state polling instrument; wherein, Ip address, port number make the loop state patrol and examine the appearance and can connect MQTT Broker.
6. The method for acquiring the loop state patrol instrument based on the extensible communication protocol according to claim 3, wherein the method comprises the following steps: the step 3 specifically comprises the following steps:
(1) selecting a south interface protocol to use a POST method in a 698 protocol as an interface protocol between an MQTT-Broker server and a client and between the MQTT-Broker server and a loop state polling instrument;
(2) the MQTT-Broker server encapsulates the subscription request parameters in 698 request data by using a POST method, assembles the request parameters into a 698 message format, and sends the subscription message to the loop state polling instrument in a name/value mode.
7. The method for acquiring the loop state patrol instrument based on the extensible communication protocol according to claim 3, wherein the method comprises the following steps: the specific method in the step 4 comprises the following steps:
and the loop state polling instrument receives subscription information in a 698 message format sent by the MQTT-Broker server, acquires corresponding power utilization information data, and transmits the acquisition result back to the MQTT-Broker server in the 698 message format.
8. The method for acquiring the loop state patrol instrument based on the extensible communication protocol according to claim 3, wherein the method comprises the following steps: the specific steps of the step 5 comprise:
(1) the MQTT-Broker server receives the 698 message format acquisition result obtained in the step 4 through a communication front-end module, distinguishes protocol layers and access ports of a plurality of accessed loop state polling instrument devices through a protocol framing module function, transmits different subscription data results to topic corresponding to kafka, and finally uses a load balancing dynamic configuration function to connect data analysis service;
(2) registering a standing book on a visual interface for the accessed loop state inspection instrument equipment, and if the accessed equipment does not establish the equipment standing book, the output assembly defaults the equipment as illegal equipment; for the accessed equipment, the information of the state inspection instrument of the direct-connection loop is transmitted to a PMS (permanent magnet synchronous motor) system through a management processing module, and the PMS system directly manages the equipment;
(3) the MQTT-Broker server receives the processed and verified acquisition result data from the kafka through a protocol analysis module, and analyzes the data from 698 message format into a data format which can be recognized by the client.
CN202111631573.0A 2021-12-28 2021-12-28 Loop state patrol instrument acquisition system and method based on extensible communication protocol Pending CN114390033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111631573.0A CN114390033A (en) 2021-12-28 2021-12-28 Loop state patrol instrument acquisition system and method based on extensible communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111631573.0A CN114390033A (en) 2021-12-28 2021-12-28 Loop state patrol instrument acquisition system and method based on extensible communication protocol

Publications (1)

Publication Number Publication Date
CN114390033A true CN114390033A (en) 2022-04-22

Family

ID=81199031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111631573.0A Pending CN114390033A (en) 2021-12-28 2021-12-28 Loop state patrol instrument acquisition system and method based on extensible communication protocol

Country Status (1)

Country Link
CN (1) CN114390033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396824A (en) * 2022-07-13 2022-11-25 深圳市酷开网络科技股份有限公司 Network configuration method and device based on Bluetooth, computer equipment and medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
CN110222091A (en) * 2019-06-10 2019-09-10 帷幄匠心科技(杭州)有限公司 A kind of mass data real-time statistic analysis method
CN110336736A (en) * 2019-05-27 2019-10-15 四川长虹电器股份有限公司 The shared method subscribed to is realized based on MQTT server cluster
EP3580944A1 (en) * 2017-02-09 2019-12-18 Orange Technique for administrating a subscription to an operator
KR102093314B1 (en) * 2018-11-05 2020-03-25 유비라커산업(주) System and method for transporting message using MQTT protocol
KR102123314B1 (en) * 2019-02-18 2020-06-17 금오공과대학교 산학협력단 MMS-based Industrial Internet of Things platform using unidirectional data transfer technique
CN111669372A (en) * 2020-05-20 2020-09-15 北京亿度物联科技有限公司 Internet of things protocol fusion method for electricity utilization collection master station
CN211557493U (en) * 2020-01-15 2020-09-22 北京国电通网络技术有限公司 Edge thing allies oneself with communication analytic device
CN112104720A (en) * 2020-09-03 2020-12-18 国电南瑞科技股份有限公司 MQTT double-Broker data interaction method and system suitable for edge Internet of things terminal
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN112511388A (en) * 2020-10-26 2021-03-16 国网宁夏电力有限公司 Method for home Internet of things and Internet of things terminal
CN112637270A (en) * 2020-12-01 2021-04-09 青岛联众芯云科技有限公司 Special transformer acquisition terminal system based on MQTT message and communication method
CN213279693U (en) * 2020-10-26 2021-05-25 国网宁夏电力有限公司 Internet of things terminal
CN113157449A (en) * 2021-04-16 2021-07-23 上海寰果信息科技有限公司 Real-time stream data analysis processing method based on MQTT
CN113452667A (en) * 2021-03-05 2021-09-28 浙江华云信息科技有限公司 Edge Internet of things terminal access method suitable for multiple protocol types

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3580944A1 (en) * 2017-02-09 2019-12-18 Orange Technique for administrating a subscription to an operator
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
WO2019205907A1 (en) * 2018-04-27 2019-10-31 电子科技大学中山学院 Intelligent device communication platform based on mqtt message protocol
KR102093314B1 (en) * 2018-11-05 2020-03-25 유비라커산업(주) System and method for transporting message using MQTT protocol
KR102123314B1 (en) * 2019-02-18 2020-06-17 금오공과대학교 산학협력단 MMS-based Industrial Internet of Things platform using unidirectional data transfer technique
CN110336736A (en) * 2019-05-27 2019-10-15 四川长虹电器股份有限公司 The shared method subscribed to is realized based on MQTT server cluster
CN110222091A (en) * 2019-06-10 2019-09-10 帷幄匠心科技(杭州)有限公司 A kind of mass data real-time statistic analysis method
CN211557493U (en) * 2020-01-15 2020-09-22 北京国电通网络技术有限公司 Edge thing allies oneself with communication analytic device
CN111669372A (en) * 2020-05-20 2020-09-15 北京亿度物联科技有限公司 Internet of things protocol fusion method for electricity utilization collection master station
CN112104720A (en) * 2020-09-03 2020-12-18 国电南瑞科技股份有限公司 MQTT double-Broker data interaction method and system suitable for edge Internet of things terminal
CN112511388A (en) * 2020-10-26 2021-03-16 国网宁夏电力有限公司 Method for home Internet of things and Internet of things terminal
CN213279693U (en) * 2020-10-26 2021-05-25 国网宁夏电力有限公司 Internet of things terminal
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN112637270A (en) * 2020-12-01 2021-04-09 青岛联众芯云科技有限公司 Special transformer acquisition terminal system based on MQTT message and communication method
CN113452667A (en) * 2021-03-05 2021-09-28 浙江华云信息科技有限公司 Edge Internet of things terminal access method suitable for multiple protocol types
CN113157449A (en) * 2021-04-16 2021-07-23 上海寰果信息科技有限公司 Real-time stream data analysis processing method based on MQTT

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚丹;谢雪松;杨建军;HAN FEI;WANG SHUAI;: "基于MQTT协议的物联网通信系统的研究与实现", 信息通信, no. 03 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396824A (en) * 2022-07-13 2022-11-25 深圳市酷开网络科技股份有限公司 Network configuration method and device based on Bluetooth, computer equipment and medium
CN115396824B (en) * 2022-07-13 2023-11-21 深圳市酷开网络科技股份有限公司 Bluetooth-based network configuration method, device, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
CN100405784C (en) Method and apparatus for monitoring traffic in a network
CN111835826A (en) Cloud edge cooperative linkage system suitable for smart internet of things system
CN110554856A (en) Micro-service treatment system
CN112511218B (en) Satellite ground station monitoring system based on microservice
CN112925646A (en) Electric power data edge calculation system and calculation method
CN106484611A (en) Fuzz testing method and apparatus based on automation protocol adaptation
CN114401284B (en) Real-time data acquisition and transmission system and method for fixed pollution source treatment working condition
KR102345082B1 (en) Cloud based iec61850 information processing method
Wang et al. Design of IoT-based energy efficiency management system for building ceramics production line
CN114390033A (en) Loop state patrol instrument acquisition system and method based on extensible communication protocol
CN112702430B (en) Data transmission method based on cloud edge mode and Web technology
Xiao et al. The design of an intelligent high-speed loom industry interconnection remote monitoring system
KR20210060223A (en) METHOD FOR CONVERTING MULTIPLE IoT PROTOCOLS TO IEC61850
CN115858672A (en) Power terminal management method and device, electronic equipment and storage medium
Yang et al. Design issues for communication protocols conversion scheme of IoT devices
CN209088989U (en) A kind of data acquisition gateway
CN110866614B (en) GSP-based transparent operation and maintenance method and system for intelligent substation automation equipment
CN112687267A (en) Internet of things data semantic processing system
CN117354400B (en) Acquisition and analysis service system for Beidou short message
CN114401123A (en) Novel intelligent meter acquisition system based on extensible communication protocol and access method
Yang et al. Design and implementation of photovoltaic power generation management system based on NB-IoT
CN112115140B (en) Universal full-text search engine real-time data synchronization method and device
Zhang et al. Transparent Access Architecture for Intelligent Dispatching and Control System
Wang et al. Interoperability Structure of Smart Water Conservancy Based on Internet of Things

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