CN116546117A - Method and system for analyzing MQTT protocol of intelligent fusion terminal - Google Patents

Method and system for analyzing MQTT protocol of intelligent fusion terminal Download PDF

Info

Publication number
CN116546117A
CN116546117A CN202310815233.6A CN202310815233A CN116546117A CN 116546117 A CN116546117 A CN 116546117A CN 202310815233 A CN202310815233 A CN 202310815233A CN 116546117 A CN116546117 A CN 116546117A
Authority
CN
China
Prior art keywords
signal
data
sub
equipment
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310815233.6A
Other languages
Chinese (zh)
Other versions
CN116546117B (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.)
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
Beijing Smartchip Microelectronics Technology 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 Beijing Smartchip Microelectronics Technology Co Ltd filed Critical Beijing Smartchip Microelectronics Technology Co Ltd
Priority to CN202310815233.6A priority Critical patent/CN116546117B/en
Publication of CN116546117A publication Critical patent/CN116546117A/en
Application granted granted Critical
Publication of CN116546117B publication Critical patent/CN116546117B/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
    • 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
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the invention provides an intelligent fusion terminal MQTT protocol analysis method and system, and belongs to the technical field of power distribution Internet of things. The method is executed by the intelligent fusion terminal, and comprises the following steps: determining a service type in response to the protocol trigger signal; corresponding data signals are collected based on the determined service types, and the data signals are processed based on an MQTT protocol based on an agent module, so that processed signals are obtained; based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal; and recovering the feedback signal based on the proxy module. The scheme of the invention realizes the service data interaction function between the intelligent fusion terminal and different types of object management platforms, and ensures the compatibility requirement of system construction.

Description

Method and system for analyzing MQTT protocol of intelligent fusion terminal
Technical Field
The invention relates to the technical field of power distribution Internet of things, in particular to an intelligent fusion terminal MQTT protocol analysis method, an intelligent fusion terminal MQTT protocol analysis system, an intelligent fusion terminal and an Internet of things management platform.
Background
The intelligent fusion terminal is an edge proxy device integrating distribution and power consumption of a collection area based on research and development of an independent chip, is core equipment of the low-voltage distribution Internet of things, can flexibly access and collect operation data of various low-voltage intelligent equipment such as intelligent electric meters, various power consumption collection terminals, charging piles, three-phase imbalance treatment devices, leakage protectors and the like, realizes plug and play among the equipment, interconnection and intercommunication, supports the homologous collection of distribution and power consumption data, powerfully promotes the rapid landing of the distribution Internet of things, and improves the power supply stability. Along with the continuous depth of power distribution internet of things construction, the problem that the traditional interaction part of intelligent fusion terminal and cloud main station has single function and poor compatibility in the in-service use, can not meet the requirement of a novel power system.
In the existing scheme, the power distribution Internet of things is promoted and built in a plurality of provincial stations, the interaction method of the intelligent fusion terminal and the cloud master station in actual use is single in function, and the original fusion terminal uplink communication mode in actual use cannot adapt to the power distribution Internet of things because of poor compatibility of the cloud master stations in different areas, and the requirements of a novel power system cannot be met. Aiming at the problem of poor compatibility between an intelligent fusion terminal and a cloud master station in the existing power distribution Internet of things construction scheme, a new intelligent fusion terminal protocol analysis scheme needs to be created.
Disclosure of Invention
The embodiment of the invention aims to provide an intelligent fusion terminal MQTT protocol analysis method and system, which are used for at least solving the problem of poor compatibility between an intelligent fusion terminal and a cloud master station in the existing power distribution Internet of things construction scheme.
In order to achieve the above object, a first aspect of the present invention provides a method for parsing MQTT protocol of an intelligent fusion terminal, where the method is executed by the intelligent fusion terminal, and the method includes: determining a service type in response to the protocol trigger signal; corresponding data signals are collected based on the determined service types, and the data signals are processed based on an MQTT protocol based on an agent module, so that processed signals are obtained; based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal; and recovering the feedback signal based on the proxy module.
Optionally, the protocol trigger signal includes: a sub-equipment registration signal, a sub-equipment state update signal, a sub-equipment data active reporting signal and a sub-equipment data calling signal; the sub-equipment registration signal is a protocol trigger signal actively triggered by the intelligent fusion terminal when a new sub-equipment is accessed; the state update signal of the sub-equipment is a protocol trigger signal actively triggered by the intelligent fusion terminal when the state update requirement of the sub-equipment exists; the sub-equipment data active report signal is a protocol trigger signal actively triggered by the intelligent fusion terminal after the sub-equipment acquires a signal meeting the report trigger condition; the sub-equipment data calling signal is a protocol trigger signal triggered by the Internet of things management platform when the Internet of things management platform has signal subscription requirements.
Optionally, the acquiring the corresponding data signal based on the determined service type includes: if the current triggered protocol signal is a sub-equipment registration signal, the acquired data signal is a state message of a new sub-equipment; if the current triggered protocol signal is a sub-equipment state updating signal, the acquired data signal is a state message of the corresponding sub-equipment; if the current triggered protocol signal is the data active reporting signal of the sub-equipment, the acquired data signal is the data of the signal which is acquired by the sub-equipment and accords with the reporting triggering condition; if the currently triggered protocol signal is a sub-equipment data calling signal, the acquired data signal is subscription data which is subscribed based on the Internet of things management platform and acquired by the corresponding sub-equipment.
Optionally, the agent-based module transmits the processed signal to an internet of things management platform, so that the internet of things management platform generates the feedback signal based on the processed signal, and the method includes: if the currently triggered protocol signal is a sub-equipment registration signal or a sub-equipment state update signal, the state message is processed based on the MQTT protocol based on the proxy module and then transmitted to the Internet of things management platform; the internet of things management platform generates corresponding feedback signals based on the following rules: based on the state message processed by the MQTT protocol, the unique device ID of the new sub-device or the updated sub-device is used as a feedback signal.
Optionally, the agent-based module transmits the processed signal to an internet of things management platform, so that the internet of things management platform generates the feedback signal based on the processed signal, and the method includes: if the current triggered protocol signal is a sub-equipment data active reporting signal or a sub-equipment data calling signal, the data or subscription data collected by the sub-equipment based on the proxy module is processed based on the MQTT protocol and then transmitted to the Internet of things management platform; the internet of things management platform generates corresponding feedback signals based on the following rules: downloading signal data or subscription data processed based on an MQTT protocol based on a proxy module, checking the signal data or subscription data, and judging whether the signal data or subscription data meets the data checking requirement; and determining that the signal data or the subscription data meets the auditing requirement, and generating a corresponding successful receiving signal as a feedback signal.
The second aspect of the invention provides an intelligent fusion terminal MQTT protocol analysis method, which is executed by an Internet of things management platform and comprises the following steps: determining a service type in response to the protocol trigger signal; based on the determined service type, establishing data interaction connection with the intelligent fusion terminal through the proxy module; generating a corresponding feedback signal based on the service data corresponding to the service type received by the proxy module, and transmitting the feedback signal to the intelligent fusion terminal through the proxy module; the service data is generated by the intelligent fusion terminal through the following rules: and acquiring corresponding data signals based on the determined service types, processing the data signals based on the MQTT protocol based on the proxy module, and taking the processed signals as service data.
Optionally, the protocol trigger signal includes: a sub-equipment registration signal, a sub-equipment state update signal, a sub-equipment data active reporting signal and a sub-equipment data calling signal; the sub-equipment registration signal is a protocol trigger signal actively triggered by the intelligent fusion terminal when a new sub-equipment is accessed; the state update signal of the sub-equipment is a protocol trigger signal actively triggered by the intelligent fusion terminal when the state update requirement of the sub-equipment exists; the sub-equipment data active report signal is a protocol trigger signal actively triggered by the intelligent fusion terminal after the sub-equipment acquires a signal meeting the report trigger condition; the sub-equipment data calling signal is a protocol trigger signal triggered by the Internet of things management platform when the Internet of things management platform has signal subscription requirements.
Optionally, the acquiring the corresponding data signal based on the determined service type includes: if the current triggered protocol signal is a sub-equipment registration signal, the acquired data signal is a state message of a new sub-equipment; if the current triggered protocol signal is a sub-equipment state updating signal, the acquired data signal is a state message of the corresponding sub-equipment; if the current triggered protocol signal is the data active reporting signal of the sub-equipment, the acquired data signal is the data of the signal which is acquired by the sub-equipment and accords with the reporting triggering condition; if the currently triggered protocol signal is a sub-equipment data calling signal, the acquired data signal is subscription data which is subscribed based on the Internet of things management platform and acquired by the corresponding sub-equipment.
Optionally, after receiving the service data corresponding to the service type, the proxy module generates a corresponding feedback signal, which includes: if the currently triggered protocol signal is a sub-device registration signal or a sub-device status update signal, then: receiving a state message processed based on an MQTT protocol based on an agent module; based on the received state message processed based on the MQTT protocol, the unique device ID of the new sub-device or the updated sub-device is used as a feedback signal.
Optionally, after receiving the service data corresponding to the service type, the proxy module generates a corresponding feedback signal, which includes: if the current triggered protocol signal is a slave device data active reporting signal or a slave device data calling signal, then: receiving signal data or subscription data processed based on an MQTT protocol based on an agent module; based on the agent module, downloading signal data or subscription data processed based on an MQTT protocol, checking the signal data or subscription data, and judging whether the signal data or subscription data meets the data checking requirement; and determining that the signal data or the subscription data meets the auditing requirement, and generating a corresponding successful receiving signal as a feedback signal.
A third aspect of the present invention provides an intelligent fusion terminal, including: the response unit is used for responding to the protocol trigger signal and determining the service type; the acquisition unit is used for acquiring corresponding data signals based on the determined service type; the data center unit is used for processing the data signals based on the MQTT protocol based on the proxy module to obtain processed signals; a transmission unit configured to: based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal; and recovering the feedback signal based on the proxy module.
A fourth aspect of the present invention provides an internet of things management platform, including: the triggering unit is used for responding to the protocol triggering signal and determining the service type; the management unit is used for establishing data interaction connection with the intelligent fusion terminal through the proxy module based on the determined service type; the processing unit is used for generating a corresponding feedback signal based on the service data corresponding to the service type received by the proxy module and transmitting the feedback signal to the intelligent fusion terminal through the proxy module; the service data is generated by the intelligent fusion terminal through the following rules: and acquiring corresponding data signals based on the determined service types, processing the data signals based on the MQTT protocol based on the proxy module, and taking the processed signals as service data.
The invention provides an intelligent fusion terminal MQTT protocol analysis system, which comprises the intelligent fusion terminal and the Internet of things management platform; the system also comprises an agent module, wherein the agent module is used for establishing data interaction connection between the intelligent fusion terminal and the Internet of things management platform and processing interaction data signals between the intelligent fusion terminal and the Internet of things management platform based on an MQTT protocol.
On the other hand, the invention provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the computer runs on the computer, the computer executes the intelligent fusion terminal MQTT protocol analysis method.
Through the technical scheme, the agent module provided by the invention is innovative aiming at common service scenes of the intelligent fusion terminal, and can process interaction data between the intelligent fusion terminal and the Internet of things management platform in the cloud master station based on the MQTT protocol, so that the acquired signals are data processed by the MQTT protocol no matter the intelligent fusion terminal or the Internet of things management platform, the data format of the interaction is unified no matter the intelligent fusion terminal is, the service data interaction function between the intelligent fusion terminal and different types of Internet of things platforms is realized, and the compatibility requirement of system construction is ensured.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 is a flow chart of steps of an analysis method of an MQTT protocol of an intelligent fusion terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intelligent fusion terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an internet of things management platform according to an embodiment of the present invention;
fig. 4 is a system structure diagram of an MQTT protocol parsing system of an intelligent fusion terminal according to an embodiment of the present invention.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
The intelligent fusion terminal is an edge proxy device integrating distribution and power consumption of a collection area based on research and development of an independent chip, is core equipment of the low-voltage distribution Internet of things, can flexibly access and collect operation data of various low-voltage intelligent equipment such as intelligent electric meters, various power consumption collection terminals, charging piles, three-phase imbalance treatment devices, leakage protectors and the like, realizes plug and play among the equipment, interconnection and intercommunication, supports the homologous collection of distribution and power consumption data, powerfully promotes the rapid landing of the distribution Internet of things, and improves the power supply stability. Along with the continuous depth of power distribution internet of things construction, the problem that the traditional interaction part of intelligent fusion terminal and cloud main station has single function and poor compatibility in the in-service use, can not meet the requirement of a novel power system.
In the existing scheme, the power distribution Internet of things is promoted and built in a plurality of provincial stations, the interaction method of the intelligent fusion terminal and the cloud master station in actual use is single in function, and the original fusion terminal uplink communication mode in actual use cannot adapt to the power distribution Internet of things because of poor compatibility of the cloud master stations in different areas, and the requirements of a novel power system cannot be met.
Aiming at the problem of poor compatibility between an intelligent fusion terminal and a cloud master station in the existing power distribution Internet of things construction scheme, the scheme of the invention provides a novel intelligent fusion terminal MQTT protocol analysis method, and the scheme of the invention aims at common service scenes of the intelligent fusion terminal, and creatively provides a proxy module which can process interaction data between the intelligent fusion terminal and an Internet of things management platform in the cloud master station based on the MQTT protocol, so that the acquired signals are all data processed by the MQTT protocol no matter what intelligent fusion terminal is, the final interaction data format is uniform, the service data interaction function between the intelligent fusion terminal and different types of Internet of things platforms is realized, and the compatibility requirement of system construction is met.
Fig. 1 is a flow chart of a method for analyzing an MQTT protocol of an intelligent fusion terminal according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides an MQTT protocol parsing method of an intelligent fusion terminal, where the method includes:
step S10: in response to the protocol trigger signal, a traffic type is determined.
Specifically, in the construction of the power distribution internet of things, various service interaction possibilities exist between the corresponding intelligent fusion terminal and the internet of things management platform, and data acquisition and reporting are carried out after the intelligent fusion terminal is constructed, so that the data interaction with the internet of things management platform is needed. The method aims to realize the compatibility of the whole system, ensure that the service can be automatically perceived under any service condition, execute correct service response rules based on corresponding service, solve the problem of the networking construction compatibility of the power distribution network, and ensure the stable and normal operation of the system.
Preferably, the protocol trigger signal includes: one or more of a sub-device registration signal, a sub-device state update signal, a sub-device data active reporting signal and a sub-device data recall signal; the sub-equipment registration signal is a protocol trigger signal actively triggered by the intelligent fusion terminal when a new sub-equipment is accessed; the state update signal of the sub-equipment is a protocol trigger signal actively triggered by the intelligent fusion terminal when the state update requirement of the sub-equipment exists; the sub-equipment data active report signal is a protocol trigger signal actively triggered by the intelligent fusion terminal after the sub-equipment acquires a signal meeting the report trigger condition; the sub-equipment data calling signal is a protocol trigger signal actively triggered by the Internet of things management platform when the Internet of things management platform has signal subscription requirements.
In a possible implementation manner, when a new piece of sub-equipment is accessed, after the new piece of sub-equipment is accessed to the intelligent fusion equipment, the identity of the sub-equipment needs to be authenticated, and the sub-equipment is configured in the system so as to be managed by a subsequent internet of things management platform. Similarly, when the state of the sub-device is updated, the previous configuration information and the new information will be different, so as to avoid the follow-up failure to normally drive the sub-device to work. The scheme of the invention can automatically trigger the protocol trigger signal when the new sub-equipment is accessed or the existing state of the accessed sub-equipment is updated. Based on the triggered signal, the sub-equipment needs to acquire own state information so as to transmit the information to the internet of things management platform, so that the internet of things management platform can perform sub-equipment state information configuration and file reservation, and the corresponding sub-equipment can be managed normally.
Step S20: and acquiring corresponding data signals based on the determined service types, and processing the data based on the MQTT protocol based on the proxy module to obtain processed signals.
Specifically, the acquiring the corresponding data signal based on the determined service type includes: if the current triggered protocol signal is a sub-equipment registration signal, the acquired data signal is a state message of the new sub-equipment; if the current triggered protocol signal is a sub-equipment state updating signal, the acquired data signal is a state message of the corresponding sub-equipment; if the current triggered protocol signal is the data active reporting signal of the sub-equipment, the acquired data signal is the data of the signal which is acquired by the sub-equipment and accords with the reporting triggering condition; if the currently triggered protocol signal is a sub-equipment data calling signal, the acquired data signal is subscribed based on the Internet of things management platform and based on the subscription data acquired by the corresponding sub-equipment.
In the embodiment of the invention, different service data, such as new sub-equipment access, need to be acquired for different service types, and because the state information of the new sub-equipment needs to be configured and kept, the corresponding state information of the new sub-equipment needs to be acquired. And for subscription information requirements, corresponding subscription data needs to be acquired to ensure that the internet of things management platform can normally receive interest information. The scheme of the invention automatically determines the service type based on the trigger signal, and then automatically collects the corresponding data signal based on the determined service type, so that the universality of the scheme can be ensured, and the scheme provided by the scheme of the invention can meet the requirements of any service scene.
Furthermore, when different intelligent fusion terminals are accessed, the existing scheme can cause incompatible conditions because of different manufacturers, scenes and the like, and in order to solve the problem, the scheme of the invention aims to create a scheme capable of carrying out data interaction based on the same protocol under any scene. The protocol can be processed to be consistent based on the scheme of the invention even if the protocol is incompatible, so that the compatibility of the whole system construction is realized, and the normal application in any scene is ensured. Based on the above, the agent module is additionally arranged between the intelligent fusion terminal and the Internet of things management platform, and can be arranged on the Internet of things management platform side or the intelligent fusion terminal side to realize data interaction of the intelligent fusion terminal and the Internet of things management platform. The intelligent fusion terminal or the Internet of things management platform is used for transmitting data to the proxy module when the data interaction requirement exists on the other side, the proxy module processes the data based on the MQTT protocol and then transmits the processed output to the other side, so that the unified protocols of the intelligent fusion terminal and the Internet of things management platform are realized, and the system compatibility is ensured.
The MQTT (Message Queuing Telemetry Transport, message queue telemetry transport protocol) is a "lightweight" communication protocol based on publish/subscribe (TCP/IP) mode, and is built on the TCP/IP protocol. The biggest advantage of MQTT is that it provides real-time reliable messaging services to connected remote devices with very little code and limited bandwidth. The scheme of the invention fully utilizes the advantages thereof, performs unified selection of the corresponding protocols, realizes system compatibility and improves the data interaction efficiency.
Step S30: based on the agent module, the processed signals are transmitted to an Internet of things management platform, so that the Internet of things management platform generates feedback signals based on the processed signals.
Specifically, based on the proxy module, the processing signal is transmitted to an internet of things management platform, so that the internet of things management platform generates a feedback signal based on the processing signal, and the processing method comprises the following steps: if the currently triggered protocol signal is a sub-equipment registration signal or a sub-equipment state update signal, the state message is processed based on the MQTT protocol based on the proxy module and then transmitted to the Internet of things management platform; the internet of things management platform generates corresponding feedback signals based on the following rules: and returning the unique equipment ID of the new sub-equipment or the updated sub-equipment based on the received state message processed based on the MQTT protocol, and taking the unique equipment ID as a feedback signal.
Further, the agent-based module transmits the processed signal to an internet of things management platform, so that the internet of things management platform generates a feedback signal based on the processed signal, and the agent-based module comprises: if the current triggered protocol signal is a sub-equipment data active reporting signal or a sub-equipment data calling signal, the signal data or subscription data is processed based on an MQTT protocol based on the proxy module and then transmitted to the Internet of things management platform; the internet of things management platform generates corresponding feedback signals based on the following rules: based on the agent module, downloading signal data or subscription data processed based on an MQTT protocol, checking the signal data or subscription data, and judging whether the signal data or subscription data meets the data checking requirement; and when the signal data or the subscription data meets the auditing requirement, generating a corresponding receiving success signal, and taking the receiving success signal as a feedback signal.
Step S40: and the intelligent fusion terminal recovers the feedback signal based on the agent module.
In a possible implementation manner, the MQTT protocol analysis is performed through the proxy module, and the proxy module is configured with the agentpp, so that data interaction between the object management platform and the intelligent fusion terminal is realized, and the realization functions comprise sub-equipment registration, sub-equipment state update and sub-equipment data active reporting, and specifically comprise the following contents:
1) Kid device registration/status update: firstly, periodically detecting whether a new sub-equipment state message appears from a data center, and reporting the message to the data center when the new sub-equipment is accessed or the upper and lower states of the sub-equipment are changed; then, the message is processed by the Agentapp according to the MQTT protocol, and the processed sub-equipment adding/state updating request message is sent to the Internet of things management platform; finally, the internet of things management platform sends a response message to the Agentapp after receiving the request and returns a unique sub-device ID, the Agentapp records after receiving the response message, the registration/state update of the sub-device is completed, and then the internet of things management platform can perform corresponding operation on the sub-device.
2) The data of the sub-equipment is actively reported: first, the collection class app or the advanced app will send data to a designated topic according to MQTT protocol when a specific event is triggered or there is specific data to be immediately reported. Then, the Agentapp subscribes the part of data by analyzing the MQTT protocol and sends the part of data to the Internet of things management platform through a message.
3) And (3) reading data of the sub-equipment: firstly, an internet of things management platform issues a calling instruction message to an Agentapp; then, the Agentapp processes the message according to the MQTT protocol after receiving the message, so that the message is transmitted to the data center; then, the data center feeds back the information required to be called after receiving the message, and sends the information to the Agentapp in a message mode; finally, the Agentapp receives the message and returns the message to the Internet of things management platform after processing.
In the embodiment of the invention, the scheme innovatively provides the method and the system for analyzing the MQTT protocol of the intelligent fusion terminal, realizes the service data interaction function with the object management platform, can be used for interfacing with the novel Internet of things management platform of each city and meets the supplement protocols and customized data copying strategies of different degrees of marketing and distribution service software based on the national network standard protocol. The scheme of the invention is innovatively based on the Agentapp part of the intelligent fusion terminal, and the message is analyzed and generated based on the MQTT protocol, so as to be responsible for data interaction between the object management platform and the intelligent fusion terminal.
Fig. 2 is a schematic structural diagram of an intelligent fusion terminal according to an embodiment of the present invention. As shown in fig. 2, an embodiment of the present invention provides an intelligent fusion terminal, where the intelligent fusion terminal includes: the response unit is used for responding to the protocol trigger signal and determining the service type; the acquisition unit is used for acquiring corresponding data signals based on the determined service type; the data center unit is used for processing the data based on the MQTT protocol based on the proxy module to obtain a processed signal; a transmission unit configured to: based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal; and recovering the feedback signal based on the proxy module.
Fig. 3 is a schematic structural diagram of an internet of things management platform according to an embodiment of the present invention. As shown in fig. 3, an embodiment of the present invention provides an internet of things management platform, where the internet of things management platform includes: the triggering unit is used for responding to the protocol triggering signal and determining the service type; the management unit is used for establishing data interaction connection with the intelligent fusion terminal through the proxy module based on the determined service type; the processing unit is used for generating a corresponding feedback signal based on the service data corresponding to the service type received by the proxy module and transmitting the feedback signal to the intelligent fusion terminal through the proxy module; the service data is generated by the intelligent fusion terminal through the following rules: and acquiring corresponding data signals based on the determined service types, processing the data based on the MQTT protocol based on the proxy module to obtain processed signals, and taking the processed signals as service data.
Fig. 4 is a schematic structural diagram of an MQTT protocol parsing system of an intelligent fusion terminal according to an embodiment of the present invention. As shown in fig. 4, the embodiment of the invention provides an intelligent fusion terminal MQTT protocol analysis system, which comprises the intelligent fusion terminal and the internet of things management platform; the system also comprises an agent module, wherein the agent module is used for establishing data interaction connection between the intelligent fusion terminal and the Internet of things management platform and processing interaction data between the intelligent fusion terminal and the Internet of things management platform based on an MQTT protocol.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the computer runs on the computer, the computer executes the method for analyzing the MQTT protocol of the intelligent fusion terminal.
Those skilled in the art will appreciate that all or part of the steps in a method for implementing the above embodiments may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a single-chip microcomputer, chip or processor (processor) to perform all or part of the steps in a method according to the embodiments of the invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The alternative embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the embodiments of the present invention are not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the embodiments of the present invention within the scope of the technical concept of the embodiments of the present invention, and all the simple modifications belong to the protection scope of the embodiments of the present invention. In addition, the specific features described in the above embodiments may be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the various possible combinations of embodiments of the invention are not described in detail.
In addition, any combination of the various embodiments of the present invention may be made, so long as it does not deviate from the idea of the embodiments of the present invention, and it should also be regarded as what is disclosed in the embodiments of the present invention.

Claims (14)

1. An intelligent fusion terminal MQTT protocol analysis method, which is characterized in that the method is executed by an intelligent fusion terminal, and the method comprises the following steps:
determining a service type in response to the protocol trigger signal;
corresponding data signals are collected based on the determined service types, and the data signals are processed based on an MQTT protocol based on an agent module, so that processed signals are obtained;
based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal;
and recovering the feedback signal based on the proxy module.
2. The method of claim 1, wherein the protocol trigger signal comprises:
a sub-equipment registration signal, a sub-equipment state update signal, a sub-equipment data active reporting signal and a sub-equipment data calling signal;
the sub-equipment registration signal is a protocol trigger signal actively triggered by the intelligent fusion terminal when a new sub-equipment is accessed;
the state update signal of the sub-equipment is a protocol trigger signal actively triggered by the intelligent fusion terminal when the state update requirement of the sub-equipment exists;
the sub-equipment data active report signal is a protocol trigger signal actively triggered by the intelligent fusion terminal after the sub-equipment acquires a signal meeting the report trigger condition;
the sub-equipment data calling signal is a protocol trigger signal triggered by the Internet of things management platform when the Internet of things management platform has signal subscription requirements.
3. The method of claim 2, wherein the acquiring the corresponding data signal based on the determined traffic type comprises:
if the current triggered protocol signal is a sub-equipment registration signal, the acquired data signal is a state message of a new sub-equipment;
if the current triggered protocol signal is a sub-equipment state updating signal, the acquired data signal is a state message of the corresponding sub-equipment;
if the current triggered protocol signal is the data active reporting signal of the sub-equipment, the acquired data signal is the data of the signal which is acquired by the sub-equipment and accords with the reporting triggering condition;
if the currently triggered protocol signal is a sub-equipment data calling signal, the acquired data signal is subscription data which is subscribed based on the Internet of things management platform and acquired by the corresponding sub-equipment.
4. The method of claim 3, wherein the proxy module transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal, comprising:
if the currently triggered protocol signal is a sub-equipment registration signal or a sub-equipment state update signal, the state message is processed based on the MQTT protocol based on the proxy module and then transmitted to the Internet of things management platform;
the internet of things management platform generates corresponding feedback signals based on the following rules:
based on the state message processed by the MQTT protocol, the unique device ID of the new sub-device or the updated sub-device is used as a feedback signal.
5. The method of claim 3, wherein the proxy module transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal, comprising:
if the current triggered protocol signal is a sub-equipment data active reporting signal or a sub-equipment data calling signal, the data or subscription data collected by the sub-equipment based on the proxy module is processed based on the MQTT protocol and then transmitted to the Internet of things management platform;
the internet of things management platform generates corresponding feedback signals based on the following rules:
downloading signal data or subscription data processed based on an MQTT protocol based on a proxy module, checking the signal data or subscription data, and judging whether the signal data or subscription data meets the data checking requirement; and determining that the signal data or the subscription data meets the auditing requirement, and generating a corresponding successful receiving signal as a feedback signal.
6. The method is characterized by being executed by an Internet of things management platform, and comprises the following steps:
determining a service type in response to the protocol trigger signal;
based on the determined service type, establishing data interaction connection with the intelligent fusion terminal through the proxy module;
generating a corresponding feedback signal based on the service data corresponding to the service type received by the proxy module, and transmitting the feedback signal to the intelligent fusion terminal through the proxy module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the service data is generated by the intelligent fusion terminal through the following rules:
and acquiring corresponding data signals based on the determined service types, processing the data signals based on the MQTT protocol based on the proxy module, and taking the processed signals as service data.
7. The method of claim 6, wherein the protocol trigger signal comprises:
a sub-equipment registration signal, a sub-equipment state update signal, a sub-equipment data active reporting signal and a sub-equipment data calling signal;
the sub-equipment registration signal is a protocol trigger signal actively triggered by the intelligent fusion terminal when a new sub-equipment is accessed;
the state update signal of the sub-equipment is a protocol trigger signal actively triggered by the intelligent fusion terminal when the state update requirement of the sub-equipment exists;
the sub-equipment data active report signal is a protocol trigger signal actively triggered by the intelligent fusion terminal after the sub-equipment acquires a signal meeting the report trigger condition;
the sub-equipment data calling signal is a protocol trigger signal triggered by the Internet of things management platform when the Internet of things management platform has signal subscription requirements.
8. The method of claim 7, wherein the acquiring the corresponding data signal based on the determined traffic type comprises:
if the current triggered protocol signal is a sub-equipment registration signal, the acquired data signal is a state message of a new sub-equipment;
if the current triggered protocol signal is a sub-equipment state updating signal, the acquired data signal is a state message of the corresponding sub-equipment;
if the current triggered protocol signal is the data active reporting signal of the sub-equipment, the acquired data signal is the data of the signal which is acquired by the sub-equipment and accords with the reporting triggering condition;
if the currently triggered protocol signal is a sub-equipment data calling signal, the acquired data signal is subscription data which is subscribed based on the Internet of things management platform and acquired by the corresponding sub-equipment.
9. The method of claim 8, wherein generating the corresponding feedback signal based on the proxy module receiving the service data corresponding to the service type comprises:
if the currently triggered protocol signal is a sub-device registration signal or a sub-device status update signal, then:
receiving a state message processed based on an MQTT protocol based on an agent module;
based on the received state message processed based on the MQTT protocol, the unique device ID of the new sub-device or the updated sub-device is used as a feedback signal.
10. The method of claim 8, wherein generating the corresponding feedback signal based on the proxy module receiving the service data corresponding to the service type comprises:
if the current triggered protocol signal is a slave device data active reporting signal or a slave device data calling signal, then:
receiving signal data or subscription data processed based on an MQTT protocol based on an agent module;
based on the agent module, downloading signal data or subscription data processed based on an MQTT protocol, checking the signal data or subscription data, and judging whether the signal data or subscription data meets the data checking requirement;
and determining that the signal data or the subscription data meets the auditing requirement, and generating a corresponding successful receiving signal as a feedback signal.
11. An intelligent fusion terminal, characterized in that, the intelligent fusion terminal includes:
the response unit is used for responding to the protocol trigger signal and determining the service type;
the acquisition unit is used for acquiring corresponding data signals based on the determined service type;
the data center unit is used for processing the data signals based on the MQTT protocol based on the proxy module to obtain processed signals;
a transmission unit configured to:
based on the agent module, transmitting the processed signal to an internet of things management platform for the internet of things management platform to generate a feedback signal based on the processed signal;
and recovering the feedback signal based on the proxy module.
12. The utility model provides an thing networking management platform which characterized in that, thing networking management platform includes:
the triggering unit is used for responding to the protocol triggering signal and determining the service type;
the management unit is used for establishing data interaction connection with the intelligent fusion terminal through the proxy module based on the determined service type;
the processing unit is used for generating a corresponding feedback signal based on the service data corresponding to the service type received by the proxy module and transmitting the feedback signal to the intelligent fusion terminal through the proxy module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the service data is generated by the intelligent fusion terminal through the following rules:
and acquiring corresponding data signals based on the determined service types, processing the data signals based on the MQTT protocol based on the proxy module, and taking the processed signals as service data.
13. An intelligent fusion terminal MQTT protocol analysis system is characterized in that the system comprises the intelligent fusion terminal according to claim 11 and the Internet of things management platform according to claim 12;
the system also comprises an agent module, wherein the agent module is used for establishing data interaction connection between the intelligent fusion terminal and the Internet of things management platform and processing interaction data signals between the intelligent fusion terminal and the Internet of things management platform based on an MQTT protocol.
14. A computer readable storage medium having instructions stored thereon, which when run on a computer cause the computer to perform the intelligent fusion terminal MQTT protocol parsing method of any one of claims 1-10.
CN202310815233.6A 2023-07-05 2023-07-05 Method and system for analyzing MQTT protocol of intelligent fusion terminal Active CN116546117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310815233.6A CN116546117B (en) 2023-07-05 2023-07-05 Method and system for analyzing MQTT protocol of intelligent fusion terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310815233.6A CN116546117B (en) 2023-07-05 2023-07-05 Method and system for analyzing MQTT protocol of intelligent fusion terminal

Publications (2)

Publication Number Publication Date
CN116546117A true CN116546117A (en) 2023-08-04
CN116546117B CN116546117B (en) 2023-12-22

Family

ID=87456412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310815233.6A Active CN116546117B (en) 2023-07-05 2023-07-05 Method and system for analyzing MQTT protocol of intelligent fusion terminal

Country Status (1)

Country Link
CN (1) CN116546117B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835826A (en) * 2020-06-09 2020-10-27 国网信息通信产业集团有限公司 Cloud edge cooperative linkage system suitable for smart internet of things system
CN212367305U (en) * 2020-06-04 2021-01-15 北京智芯微电子科技有限公司 Electric power thing of perception equipment allies oneself with management device
CN113572853A (en) * 2021-08-03 2021-10-29 上海紫邦电气技术有限公司 Method and system for forming Internet of things cloud platform based on MQTT
WO2022002075A1 (en) * 2020-06-29 2022-01-06 北京智芯微电子科技有限公司 Edge computing-based internet-of-things proxy apparatus and data decision method
CN114584614A (en) * 2022-01-17 2022-06-03 北京智芯微电子科技有限公司 Information interaction method used between intelligent terminal and acquisition terminal
CN114915642A (en) * 2022-05-09 2022-08-16 安徽农业大学 Multi-user multi-terminal Internet of things sensing and control system based on cloud platform
WO2023000797A1 (en) * 2021-07-23 2023-01-26 石家庄科林电气股份有限公司 Hplc-based plug and play method for power distribution internet of things device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN212367305U (en) * 2020-06-04 2021-01-15 北京智芯微电子科技有限公司 Electric power thing of perception equipment allies oneself with management device
CN111835826A (en) * 2020-06-09 2020-10-27 国网信息通信产业集团有限公司 Cloud edge cooperative linkage system suitable for smart internet of things system
WO2022002075A1 (en) * 2020-06-29 2022-01-06 北京智芯微电子科技有限公司 Edge computing-based internet-of-things proxy apparatus and data decision method
WO2023000797A1 (en) * 2021-07-23 2023-01-26 石家庄科林电气股份有限公司 Hplc-based plug and play method for power distribution internet of things device
CN113572853A (en) * 2021-08-03 2021-10-29 上海紫邦电气技术有限公司 Method and system for forming Internet of things cloud platform based on MQTT
CN114584614A (en) * 2022-01-17 2022-06-03 北京智芯微电子科技有限公司 Information interaction method used between intelligent terminal and acquisition terminal
CN114915642A (en) * 2022-05-09 2022-08-16 安徽农业大学 Multi-user multi-terminal Internet of things sensing and control system based on cloud platform

Also Published As

Publication number Publication date
CN116546117B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN109450704B (en) Plug-and-play intelligent distribution transformer terminal and distribution data communication system
CN103096435B (en) Connect keeping method, device and mobile terminal
CN111835826A (en) Cloud edge cooperative linkage system suitable for smart internet of things system
CN111586120B (en) Internet of things gateway equipment, data transmission method, storage medium and installation method
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
CN109039731B (en) Network management northbound interface alarm self-adapting method
US20180359322A1 (en) Service element host selection
CN111884938B (en) Router information acquisition method and device
CN116546117B (en) Method and system for analyzing MQTT protocol of intelligent fusion terminal
JP2001292467A (en) Operation and maintenance method for base station utilizing remote procedure call
CN111465086B (en) Method and device for sending and receiving wake-up signal and electronic device
CN103686863A (en) Control signaling transfer method and control signaling transfer system
CN109039427B (en) Ship monitoring management device
CN114697282B (en) Message processing method and system, storage medium and electronic device
US20090028117A1 (en) Providing network connectivity and service state information to application servers
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN104541557A (en) Integrated paging technique
CN114844738A (en) Data management method based on service gateway
CN107466018A (en) The data transferring method and terminal device of a kind of terminal device
CN111193611A (en) Client side fault monitoring method using MAS machine
CN105432057A (en) Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method
CN114268856B (en) Method for communication between three-phase intelligent gateway and control master station
CN115915174B (en) Network state information acquisition method and device
WO2024027440A1 (en) Data sending method, device, and system, storage medium, and electronic device
CN115150406B (en) Cross-data center distributed ESB configuration management system

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