Power grid scene multimode heterogeneous network interconnection and intercommunication method and system based on MQTT protocol

Through the MQTT protocol and smart gateway technology, the interconnection problem between multi-mode heterogeneous networks is solved, the efficient, reliable data transmission and security of the power grid monitoring system are realized, and it is adapted to the low-bandwidth and high-latency environment in remote areas.

CN118869831APending Publication Date: 2024-10-29STATE GRID JILIN ELECTRIC POWER COMPANY LIMITED +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410592760.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing technology, the interconnection and interoperability problems of multi-mode heterogeneous networks have not been fully solved, especially the problems of low compatibility and low efficiency in data transmission between different communication formats.

Method used

The MQTT protocol is used as the communication framework. Through intelligent gateway design, a unified message data frame structure and a differentiated data frame structure conversion mechanism are established to realize the interconnection and information transmission of multi-mode heterogeneous networks. The Raspberry Pi is used as the intelligent gateway hardware platform. Deploy an MQTT proxy server to support mapping of WIFI and public network data frame structures.

Benefits of technology

It achieves seamless communication and data exchange between multi-mode heterogeneous networks, reduces system maintenance costs and operational risks, improves the overall efficiency and accuracy of the monitoring system, ensures the stability and security of data transmission, and adapts to remote locations. Regional low bandwidth, high latency environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869831A_ABST
    Figure CN118869831A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of network interconnection and intercommunication, and discloses a power grid scene multimode heterogeneous network interconnection and intercommunication method and system based on an MQTT protocol, and the method comprises the following steps: building a unified message data frame based on MQTT; differentiated data frame structure conversion oriented to the MQTT protocol is carried out; and designing an intelligent gateway. The objective of the invention is to provide an innovative communication system fusion scheme to meet communication requirements of a power grid scene in a multimode heterogeneous network. The innovation point of the invention is that an MQTT protocol is adopted as a communication framework, further optimization and expansion are carried out on the basis of the MQTT protocol, and a universal protocol conversion mechanism is designed and is suitable for various communication devices and systems in power grid Internet of Things services. The technology not only can simplify system integration and management, but also can reduce the maintenance cost and operation risk of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network interconnection, and in particular, relates to a method and system for interconnecting multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol. Background Art

[0002] In the process of data conversion between heterogeneous networks, the data frame first reaches the intelligent message processing module, and the source network and destination network protocol mapping of this message are obtained through protocol signaling identification at the task adaptation layer. Then, the source payload data is parsed according to the protocol mapping at the network transmission optimization layer, the payload data is compressed, and the data is mapped to the destination network protocol payload format, and then the data is transmitted through the heterogeneous link basic layer. After evaluation and analysis, a unified data frame structure based on the message queue telemetry transmission (MQTT) protocol is established to realize data transmission between different standards through the (MQTT) protocol.

[0003] MQTT is a lightweight, scalable communication protocol based on the TCP / IP protocol under the IS0 standard, which was released by IBM in 1999. Different from the request / response mode of the HTTP protocol, the biggest feature of MQTT is that the communication between machines adopts the publish / subscribe mode. This mode is very streamlined and does not add unnecessary functions. Therefore, it can provide reliable data communication services for remote devices with very little code and limited bandwidth. To implement MQTT, communication between the client and the server is required. The client includes the publisher and the subscriber. The publisher can also be a subscriber, and the proxy is the server.

[0004] MOTT has designed a mechanism to ensure stable information transmission, including three QoS levels: QoS0, which means that the message sent by the publisher is received by the subscriber at most once, that is, the publisher only publishes a data packet once, regardless of whether the subscriber can receive it, which is suitable for those not very important data; QoS1, which means that the message sent by the publisher is received by the subscriber at least once, ensuring that the subscriber can definitely receive the message, which is completed by responding to the reply, but when the publisher does not receive the feedback from the subscriber, it will continue to send messages; ③QoS2, which means that the message sent by the sender can be received by the subscriber and can only be received once, and the subscriber and the sender cache the message related information at the same time to ensure that the message will not be repeated. The message communicated between the client and the server includes two parts: Topic and Payload. Both publishing and subscribing to messages require the selection of a message topic, which is similar to a local area network. Only devices that subscribe to the topic can receive the payload information of the message. Subscribers can use the wildcard + to match messages. The wildcard + can replace any single-layer topic. The wildcard # is only allowed at the end of the topic and can replace any number of layers of topics. The payload part can be understood as the content of the message, which is the part that subscribers need to use.

[0005] IoT communication based on MQTT uses control messages to transmit messages. During the data transmission process of MQTT, MQTT control messages can be divided into three parts. Fixed header, present in all MQTT data packets, indicates the data packet type and the packet class identifier; Variable header, present in some MQTT data packets. The data packet type determines whether the variable header exists and its specific content; Payload, present in some MQTT data packets, indicates the specific content received by the client, such as Figure 1 shown.

[0006] Each MQTT control message includes a fixed header, which consists of two bytes. The first byte, bits 7-4, indicates the type of the control message; the last 4 bits, bits 3-0, are specific flags of the control message. The MQTT control message contains a variable header, which is located between the fixed header and the message body. The variable header content indicates the data packet type. The third part of the MQTT control message is the message body, which is only included in some types of messages. CONNECT, the message body content mainly includes: the client's ClientlD, the subscribed Topic, Message, and the username and password, SUBSCRIBE, the message body content is a series of pre-subscribed target topics and QoS, SUBACK, the message body content is the server's confirmation and reply to the topic and 0oS applied by SUBSCRIBE, UNSUBSCRIBE is the mark of unsubscribing, and the message body content is the topic to be subscribed.

[0007] Through the above analysis, the problems and defects of the prior art are as follows:

[0008] In the existing technology, the application of multi-mode heterogeneous networks is becoming more and more extensive, but the interconnection and interoperability issues between different communication standards have not been fully resolved. Summary of the invention

[0009] In view of the problems existing in the prior art, the present invention provides a method and system for interconnecting multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol.

[0010] The present invention is implemented in this way: the MQTT message data frame structure is customized according to the application scenario requirements of remote power grid monitoring, and multi-mode heterogeneous network interconnection and information transmission are carried out through an intelligent gateway (MQTT agent). Monitoring nodes (sensors) and patrol nodes (drones) in different networks can also subscribe to the required data and read and convert them through the intelligent gateway, providing a new solution to the problem of difficult power grid monitoring in remote areas. A method for interconnecting multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol includes:

[0011] Step 1: Establish a unified message data frame based on MQTT;

[0012] Step 2: Differentiated data frame structure conversion for MQTT protocol;

[0013] Step 3: Intelligent gateway design.

[0014] Further, the unified message data frame based on MQTT is established:

[0015] (1) Establish a unified message data frame structure based on MQTT for business;

[0016] (2) Define the frame structure and the meaning of different fields.

[0017] Furthermore, the business-oriented unified message data frame structure based on MQTT is established:

[0018] Business type: identifies the business type to which the message belongs;

[0019] Device ID: A unique identifier that identifies the device or sensor to which the message belongs;

[0020] Timestamp: records the time when the message was generated, usually in UTC time format;

[0021] Location information: includes the device's geographic location, including longitude and latitude coordinates;

[0022] Data field: contains specific business data, including current, voltage, and power information of power equipment; environmental parameters and image data of drone sensors;

[0023] Data length: record the length of the data field;

[0024] Check field: used to check the integrity and accuracy of the message, usually calculated using CRC or other check algorithms.

[0025] Furthermore, the differentiated data frame structure conversion for the MQTT protocol:

[0026] Map the WIFI and public network data frame structures to the MQTT frames;

[0027] A Wi-Fi frame consists of:

[0028] Frame control field: contains the frame type, subtype and other control information;

[0029] Address field: includes the MAC addresses of the receiver and transmitter;

[0030] Sequence control field: used to manage the order and integrity of data frames;

[0031] Frame body field: contains the actual transmitted data, including IP data packets;

[0032] FCS field: used to detect whether an error occurs during frame transmission;

[0033] Public network frame structure:

[0034] Preamble field: used to synchronize the receiver and transmitter clocks;

[0035] Frame start flag field: marks the beginning of the frame;

[0036] Destination address field: indicates the MAC address of the receiver of the frame;

[0037] Source address field: indicates the MAC address of the sender of the frame;

[0038] Type field: indicates the type of data in the frame, including IP data packets and ARP requests;

[0039] Data field: the actual data transmitted;

[0040] FCS field: used to detect whether an error occurs during frame transmission.

[0041] Furthermore, the intelligent gateway is designed as follows:

[0042] 1) Hardware platform design;

[0043] Raspberry Pi 4B is used as the smart gateway hardware development platform;

[0044] 2) Software MQTT agent platform deployment.

[0045] Further, the software MQTT agent platform deploys:

[0046] On the Raspberry Pi, an MQTT server is established according to the SIoT construction method. The default user name (user) is: siot and the default password (pwd) is: dfrobot. The user name, password and Web port information can be modified through the config.json file.

[0047] Another object of the present invention is to provide a multi-mode heterogeneous network interconnection system for power grid scenarios based on the MQTT protocol, including:

[0048] A data frame building module is used to build a unified message data frame based on MQTT;

[0049] The structure conversion module is used for the differentiated data frame structure conversion for the MQTT protocol;

[0050] Gateway design module, used for intelligent gateway design.

[0051] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the multi-mode heterogeneous network interconnection method in a power grid scenario based on the MQTT protocol.

[0052] Another object of the present invention is to provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the multi-mode heterogeneous network interconnection method in a power grid scenario based on the MQTT protocol.

[0053] Another object of the present invention is to provide an information data processing terminal, which is used to implement the multi-mode heterogeneous network interconnection system of the power grid scenario based on the MQTT protocol.

[0054] In combination with the above technical solutions and the technical problems solved, please analyze the advantages and positive effects of the technical solutions to be protected by the present invention from the following aspects:

[0055] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems. The specific description is as follows:

[0056] The purpose of the present invention is to meet the communication needs of power grid scenarios in multi-mode heterogeneous networks by proposing an innovative communication format fusion solution.

[0057] The innovation of the present invention is that it adopts the MQTT protocol as the communication framework, and further optimizes and expands it on this basis, and designs a universal protocol conversion mechanism, which is suitable for various communication devices and systems in the power grid Internet of Things business. This technology can not only simplify system integration and management, but also reduce the maintenance cost and operation risk of the system. It realizes seamless communication and data exchange between power grid monitoring equipment, and improves the overall efficiency and accuracy of the monitoring system. In the monitoring of power grids in remote areas, the application of the MQTT protocol effectively responds to the challenges of low bandwidth and high latency environments, and ensures the stability and timeliness of data transmission. Combined with TLS / SSL encryption and authentication mechanisms, the security of remote access is ensured, providing reliable protection for the protection of power grid monitoring data. A flexible and scalable monitoring system architecture has been constructed, laying a solid foundation for future system upgrades and functional expansions.

[0058] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:

[0059] This invention proposes an innovative communication mode fusion solution for remote area power grid monitoring, aiming to solve the communication problems existing in the prior art, especially for the communication needs of power grid scenarios in multi-mode heterogeneous networks. By deploying sensors at remote power grid nodes, using Raspberry Pi as an intelligent gateway (MQTT agent), and accessing the intelligent gateway to subscribe to MQTT topics to obtain power grid node sensor data during drone inspections, the goal of multi-network interconnection is achieved.

[0060] The key to this innovative solution is to use the MQTT protocol as the communication framework, and to deeply optimize and expand it. Among them, the present invention introduces a universal protocol conversion mechanism, making it applicable to various communication devices and systems in the power grid Internet of Things business. This technological breakthrough not only simplifies the integration and management of the system, but also significantly reduces the maintenance cost and operation risk of the system.

[0061] Specifically, the present invention solves the following key technical problems:

[0062] Communication protocol compatibility: Existing power grid monitoring systems often use different communication protocols, resulting in the inability of devices to communicate with each other. The present invention effectively solves the compatibility problem between multiple communication protocols by introducing a universal protocol conversion mechanism, and realizes seamless connection and data exchange between devices.

[0063] Adaptation to low-bandwidth, high-latency environments: Power grid monitoring in remote areas often faces challenges of low network bandwidth and high latency, which are difficult to adapt to with traditional communication methods. This invention utilizes the lightweight characteristics of the MQTT protocol and the data caching and compression technology of the intelligent gateway to effectively address this challenge and ensure the timeliness and accuracy of the data.

[0064] Flexibility and scalability of the system: The power grid monitoring system needs to have good flexibility and scalability to cope with the ever-changing monitoring needs. The present invention realizes the modular design and rapid deployment of the system through the combination of intelligent gateway and MQTT protocol, providing strong support for the flexibility and scalability of the system.

[0065] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:

[0066] (1) The expected benefits and commercial value of the technical solution of the present invention after transformation are:

[0067] Improve the efficiency and accuracy of power grid monitoring: By realizing real-time data transmission and analysis, the present invention can improve the efficiency and accuracy of power grid monitoring, help power companies and related institutions to discover and solve problems more promptly, thereby reducing power outages and power losses, and improving the stability and reliability of power grid operation.

[0068] Reduced operation and maintenance costs and manpower input: The technical solution of the present invention simplifies the operation process of the monitoring system, improves the flexibility and reliability of remote control, and reduces the cost of system maintenance and operation. By reducing manpower input and improving efficiency, the operating costs of power companies can be significantly reduced.

[0069] Expanding the monitoring service market: Based on the technical solution of the present invention, more intelligent power grid monitoring products and services can be developed to meet the needs of different customer groups. This will help expand the monitoring service market, attract more customers and partners, and increase revenue sources.

[0070] Technology transfer and cooperation opportunities: The technical solution of this invention is highly innovative and practical, and may attract the attention of other power companies, scientific research institutions or technology companies. Through technology transfer or cooperative development, additional technology licensing fees, cooperation income or market share can be obtained, increasing commercial value.

[0071] (2) Whether the technical solution of the present invention solves the technical problems that people have been eager to solve but have never been able to solve successfully:

[0072] Reliability and flexibility of remote control: In the past, remote control of power grids was difficult in terms of security, stability and flexibility. This invention ensures the safe, reliable and flexible transmission of control commands through a remote control mechanism based on the MQTT protocol, successfully solving technical problems that were previously difficult to solve.

[0073] System scalability and compatibility: In the past, power grid monitoring systems often faced challenges in hardware and software compatibility and system scalability. This invention designs a flexible system architecture and MQTT topic structure, which enables easy expansion of sensor nodes and monitoring centers, solving technical problems that have not been overcome before.

[0074] Real-time monitoring and response capabilities: In the past, the ability of remote power grids to monitor and respond quickly to emergencies was often limited. This invention achieves instant monitoring and rapid response to the status of remote power grids through real-time data transmission and analysis, solving problems that were previously difficult to overcome technically.

[0075] (3) Whether the technical solution of the present invention overcomes technical prejudice:

[0076] Overcoming the limitations of traditional monitoring methods: Traditional power grid monitoring methods may be limited by data transmission speed, real-time and flexibility. The present invention adopts a monitoring solution based on the MQTT protocol, which effectively overcomes the limitations of traditional monitoring methods through real-time data transmission and flexible topic structure.

[0077] Overcoming hidden dangers in communication security: In traditional monitoring systems, there may be hidden dangers in the security of data transmission, such as the risk of data being stolen or tampered with. The present invention adopts TLS / SSL encryption and authentication mechanism to ensure the security of data during transmission and overcome technical prejudices in communication security.

[0078] Overcoming the challenges of system scalability: In traditional monitoring systems, system scalability may be limited by hardware devices and communication protocols. The present invention designs a flexible system architecture and MQTT topic structure, which enables the system to easily expand sensor nodes and monitoring centers, overcoming the challenges of system scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 It is a flow chart of a multi-mode heterogeneous network interconnection method in a power grid scenario based on the MQTT protocol provided by an embodiment of the present invention.

[0080] Figure 2 It is a diagram of the MQTT protocol frame structure provided by an embodiment of the present invention.

[0081] Figure 3 This is a diagram of a multi-service Internet of Things communication network architecture provided by an embodiment of the present invention.

[0082] Figure 4 It is a schematic diagram of heterogeneous network message intercommunication provided by an embodiment of the present invention.

[0083] Figure 5 It is a hardware design diagram of the intelligent gateway provided by an embodiment of the present invention.

[0084] Figure 6 It is a flow chart of end-to-end message transmission provided by an embodiment of the present invention.

[0085] Figure 7 This is a diagram of the MQTT gateway management interface provided by an embodiment of the present invention.

[0086] Figure 8 This is a diagram for realizing topic publishing by a terminal node provided in an embodiment of the present invention.

[0087] Fig. 9 This is a diagram of data received by a receiving node provided in an embodiment of the present invention.

[0088] Fig.10It is a structural block diagram of a multi-mode heterogeneous network interconnection system for a power grid scenario based on the MQTT protocol provided by an embodiment of the present invention.

[0089] Fig.11 It is a position relationship diagram of the node agent monitoring device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0090] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0091] 1. Explanatory Examples In order to enable those skilled in the art to fully understand how to implement the present invention, this section provides an illustrative example that expands and describes the technical solution of the claims.

[0092] like Figure 1 As shown, a method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol provided by an embodiment of the present invention includes the following steps:

[0093] S101: Establish a unified message data frame based on MQTT

[0094] The establishment of a unified message unit is a data structure or format used to transmit and exchange data between different systems, protocols or networks. Its purpose is to achieve unified representation and interoperability of data and simplify the process of data exchange. The unified message unit usually has the following characteristics:

[0095] a) Structural consistency: The unified message unit defines a consistent data structure, including field name, position, length, data type, etc. This ensures that data can be accurately parsed and interpreted when data is exchanged between different systems.

[0096] b) Data format standardization: The unified message unit defines the format and encoding of data to ensure the consistency and parsability of data during transmission. Common data formats include binary format, XML, JSON, etc.

[0097] c) Data semantics definition: The unified message unit defines the meaning and semantics of the data, including the meaning, value range, and unit of the field. This ensures that the data is correctly interpreted and used between different systems.

[0098] d) Scalability: The unified message unit usually has a certain degree of scalability, and new fields can be added or existing fields can be expanded as needed to adapt to different application scenarios and changes in requirements.

[0099] e) Compatibility: The design of the unified message unit takes into account the compatibility between different systems and protocols, and can perform data conversion and mapping to achieve data exchange and interoperability between different systems.

[0100] Step 1.1: Establish a unified message data frame structure based on MQTT for business

[0101] According to the MQTT3.1 protocol, the assignment of fixed headers and variable headers is defined by the MQTT protocol, and the contents of fixed headers and variable headers of different function packages are also different. However, the payload field can be specifically defined according to different application scenarios, so the following design is made based on three typical power application scenarios:

[0102] Business Type: Identifies the business type to which the message belongs, which can be power emergency communication, drone circuit inspection, or personnel status monitoring, etc. The purpose of this field is to enable the receiver to perform corresponding data processing and analysis based on the business type.

[0103] Device ID: A unique identifier that identifies the device or sensor to which the message belongs. Each device or sensor should have a unique ID to uniquely identify it in the network.

[0104] Timestamp: records the time when the message was generated, usually in UTC time format. Timestamps are very important for real-time monitoring and data analysis, and can be used to determine the timing and accuracy of data.

[0105] Location information: includes the geographical location information of the device, such as longitude and latitude coordinates. In drone circuit inspection and personnel status monitoring, location information is crucial to determine the location of equipment or personnel.

[0106] Data field (Data): Contains specific business data, such as current, voltage, and power information of power equipment; environmental parameters and image data of drone sensors; heart rate, body temperature, and motion status of personnel status monitoring equipment, etc. Depending on the type of business, the data field may contain multiple subfields, each of which has a specific meaning and data type.

[0107] Data Length: Records the length of the data field so that the receiver can accurately parse the data. This field is usually optional, but may be necessary in some cases, especially when the length of the data field is not fixed. The Remaining Length Field is used in the MQTT fixed header to indicate the length of the remaining message, which includes the length of the payload. But sometimes, there may be multiple data fields in the payload, or the length of the data field is not fixed. In this case, the Remaining Length Field cannot directly determine the specific length of the data field. Therefore, in some cases, including a data length field can more clearly indicate the length of the data field, making it easier for the receiver to parse the data. Although the length of the data field can be determined by the Remaining Length Field in some cases, including a data length field can provide more flexibility and reliability when designing a general frame structure, especially when the length of the data field is not fixed or there are multiple data fields. This design can make the parsing of messages simpler and more reliable, and help avoid problems such as parsing errors and data truncation. Therefore, when designing the frame structure of the MQTT payload, you can consider whether to include a data length field based on specific needs and scenarios.

[0108] Checksum: used to check the integrity and accuracy of the message, usually calculated using CRC or other checksum algorithms. The checksum can ensure that the message has not been tampered with or damaged during transmission.

[0109] Step 1.2: Define the frame structure and the meaning of different fields

[0110] According to the above data frame structure, each field is defined in detail:

[0111] Business Type:

[0112] Number of bits: 8 bits (1 byte)

[0113] Length: 1 byte

[0114] Description: The service type field is used to identify the service type to which the message belongs. It is usually represented by one byte and can support 256 different service types. It is similar to the service port number field of the TCP protocol and is used to distinguish different service types.

[0115] Device ID:

[0116] Number of digits: Variable (variable length)

[0117] Length: Depends on the encoding scheme of the device ID, usually ranging from a few bytes to dozens of bytes

[0118] Description: The device ID field is used to uniquely identify the device or sensor to which the message belongs. The length is variable and is usually determined by the specific encoding scheme. It is similar to the client ID field in the MQTT protocol, but may be longer.

[0119] Timestamp:

[0120] Number of bits: 64 bits (8 bytes)

[0121] Length: 8 bytes

[0122] Description: The timestamp field is used to record the time when the message was generated. It is usually represented by a 64-bit integer to indicate the number of milliseconds from 0:0:0:0 on January 1, 1970 to the present. This is similar to the representation of the UNIX timestamp.

[0123] Location:

[0124] Number of digits: Variable (variable length)

[0125] Length: depends on the encoding scheme of the location information, usually ranging from a few bytes to dozens of bytes

[0126] Description: The location information field includes the device's geographic location information, such as longitude and latitude coordinates. The length is variable and is usually determined by the specific encoding scheme. It may include longitude, latitude, altitude, etc.

[0127] Data field:

[0128] Number of digits: Variable (variable length)

[0129] Length: Depends on the encoding scheme of the data field and the presence or absence of the length field

[0130] Description: The data field contains specific business data, such as current, voltage, and power information of power equipment; environmental parameters and image data of drone sensors; heart rate, body temperature, and motion status of personnel status monitoring equipment, etc. The length is variable and is usually determined by the specific encoding scheme.

[0131] Data Length:

[0132] Number of bits: 16 bits (2 bytes)

[0133] Length: 2 bytes

[0134] Description: The data length field is used to record the length of the data field. The length field itself is fixed in length and usually uses a 16-bit integer to represent the length of the data field. This field is optional, but may be necessary in some cases, especially when the length of the data field is not fixed.

[0135] Checksum field:

[0136] Number of bits: 32 bits (4 bytes)

[0137] Length: 4 bytes

[0138] Description: The checksum field is used to check the integrity and accuracy of the message, for example, using a 32-bit cyclic redundancy check (CRC) or other checksum algorithms.

[0139] Table 1 Unified frame format based on power business

[0140]

[0141]

[0142] S102: Differentiated data frame structure conversion for MQTT protocol

[0143] In the multimodal power Internet of Things scenario, different terminal devices use different protocol specifications, so it is necessary to adapt multiple types of communication protocols. There are three basic communication protocol adaptation ideas. The first is the mutual call method, that is, one communication protocol completely calls another protocol for function implementation and information transmission. The second is the tunnel encapsulation method, in which the data packet of one protocol is encapsulated in the data packet of another protocol. The third is the message middleware method, which uses middleware, also known as the proxy method, to decouple different platforms and devices, shield the specific details of different communication protocols, and realize communication between heterogeneous communication protocols.

[0144] Mutual call method: In order to realize the functions that the current protocol does not have, you can use the functions provided by another protocol to realize it. For example, since the Transmission Control Protocol (TCP) does not have the function of network addressing, it is necessary to call the Internet Protocol (IP) for addressing, and IP technology must also call the Point to Point Protocol (PPP) protocol to complete the task of link data transmission.

[0145] Tunnel encapsulation method: add a message header to all message contents of a protocol, package and encapsulate them, and then transmit them. After the transmission is completed, the encapsulated information is unpacked and the core content of all messages is submitted to the processing logic module for processing. The module that implements protocol conversion does not need to process the internal functions of the protocol. It only needs to package and transmit data packets, and then unpack and submit them to the processing module.

[0146] Message middleware method: Through a centralized message broker, communication decoupling between heterogeneous protocol devices is achieved. For the power Internet of Things, message middleware is mainly implemented based on the publish / subscribe model. In the publish / subscribe model, each device can be a receiver and sender of messages, and these devices are loosely coupled. Since there is no need to establish a direct connection between devices, the sending of messages does not need to wait until the receiver is online, and messages can also be sent to dormant devices.

[0147] Here we choose to use message middleware to interconnect heterogeneous networks (WIFI LAN, mesh wireless network, public network). The steps are as follows:

[0148] The rule set for data frame conversion through unified message data units is used to convert and map different data frame formats. This can achieve data exchange and interoperability between different protocols or networks. The specific rule sets are: Frame format parsing: According to the format and protocol specifications of the source data frame, parse the meaning and value of each field. Field mapping: Map the fields in the source data frame to the corresponding fields of the target data frame. This includes field names,

[0149] Mapping of position, length, data type, etc. Field conversion: Convert data format, encoding method or unit of some fields as needed. Field addition or deletion: Add or delete some fields according to the requirements of the target data frame. This may involve some protocol-specific control fields or identifiers.

[0150] Checksum calculation: Recalculate and update the checksum field according to the checksum algorithm of the target data frame.

[0151] Data compression or expansion: Compress or expand data as needed to adapt to the capacity or format requirements of the target data.

[0152] Byte order adjustment: reorder or adjust bytes according to the byte order requirements of the target data frame

[0153] Data frame assembly: Reassemble the transformed fields and data into the format of the target data frame.

[0154] Step 2.1: Map the WIFI and public network data frame structure to the MQTT frame

[0155] The Wi-Fi frame structure is commonly used to transmit data in a wireless local area network (WLAN). It is based on the IEEE 802.11 standard and defines a series of different types of frames, including management frames, control frames, and data frames. Generally speaking, a Wi-Fi frame includes the following fields:

[0156] Frame Control Field: Contains the frame type, subtype, and other control information.

[0157] Address Fields: Contains the MAC addresses of the receiver and transmitter.

[0158] Sequence Control Field: Used to manage the order and integrity of data frames.

[0159] Frame Body Field: Contains the actual transmitted data, such as IP data packets.

[0160] FCS field (Frame Check Sequence): used to detect whether an error occurs during frame transmission.

[0161] Public network frame structure:

[0162] The public network frame structure usually refers to the frame format used when transmitting data on the public Internet, such as Ethernet, fiber optic networks, etc. Ethernet frames are the most common one.

[0163] Preamble field: used to synchronize the clocks of the receiver and transmitter.

[0164] Start Frame Delimiter: marks the beginning of the frame.

[0165] Destination address field (Destination MAC Address): indicates the MAC address of the receiver of the frame.

[0166] Source MAC Address: Indicates the MAC address of the sender of the frame.

[0167] Type field (Type): Indicates the data type in the frame, such as IP data packet, ARP request, etc.

[0168] Data field: the actual data transmitted.

[0169] FCS field (Frame Check Sequence): used to detect whether an error occurs during frame transmission.

[0170] Middleware design:

[0171] (1) Wi-Fi frame to MQTT mapping:

[0172] The destination address and source address of the Wi-Fi frame can be mapped to the topic of MQTT, for example, the destination address corresponds to the publishing topic, and the source address corresponds to the subscription topic.

[0173] The frame body of the Wi-Fi frame can be directly used as the MQTT message body.

[0174] Other control fields can be used to define MQTT properties such as QoS and RetainFlag.

[0175] (2) Mapping of public network frames to MQTT:

[0176] The destination address and source address of the public network frame can also be mapped to the MQTT topic.

[0177] The type field of the public network frame can be used to define the message type and then mapped to different topics.

[0178] The data field of the public network frame can be directly used as the MQTT message body.

[0179] Similarly, other fields can be used to define MQTT properties such as QoS and Retain Flag.

[0180] S103: Intelligent Gateway (MQTT Agent) Design

[0181] The smart gateway architecture is based on the IoT framework, which divides the network into four key parts: application layer, network layer, transport layer, and perception layer. The application layer is dedicated to presenting data to users and sending control instructions to devices. The network layer and transport layer act as a bridge between the application layer and the perception layer, responsible for data transmission and processing, and are the core of the entire network. The perception layer focuses more on hardware modules, consisting of a variety of sensors, responsible for collecting data and executing instructions. This layered structure provides great scalability and flexibility for the gateway system.

[0182] Step 3.1: Hardware platform design

[0183] Raspberry Pi 4B is used as the intelligent gateway hardware development platform, the structure is as follows Figure 5As shown. Raspberry Pi is based on the ARM core, with onboard USB and Ethernet interfaces, multi-channel GPIO interfaces, wireless network cards, and supports multiple communication protocols. At the same time, it supports multiple Linux-based operating systems, inherits the good portability of Linux, supports development in languages ​​such as Python, and facilitates the development and customization of system applications. We have built a smart gateway hardware platform by taking advantage of the portable and scalable features of embedded devices, which not only reduces the size of the service agent, but also uses the expansion of Quectel's 4G and 5G modules to enable the MQTT agent (gateway) to support multiple networks, thereby realizing the function of interconnection and communication between heterogeneous networks.

[0184] Step 3.2: Software MQTT Agent Platform Deployment

[0185] On the Raspberry Pi, an MQTT server is established according to the SIoT construction method. The default user name (user) is: siot and the default password (pwd) is: dfrobot. The user name, password, web port and other information can be modified through the config.json file. The platform provides a simple management interface, where you can enter your own Topic and the maximum number of messages to query the messages corresponding to the Topic. Sort by activity time (last use time). The device management functions are divided into viewing messages, clearing messages, deleting devices, adding notes, etc. View messages: You can view historical messages according to Topic and download them all. Clear messages: Clear all messages of the corresponding Topic. Find the device you want to view in the "Device List" interface, and click "View Messages" in the Operation column to access it. By default, you can see the recent 100 messages (in reverse order). You can click the "Export Query Results" button to generate an Excel file online, with the default name "Message Data.xls". You can send strings within 255 characters, including Chinese. Access by clicking "Send Message" in the upper menu bar. The format of Topic is: project ID / device name. For example: UAV / . After the message is sent successfully, the system will automatically create "project" and "device" according to the Topic. If the project and device already exist, data will be added to this device. The design of the relevant business service level is QoS0. The gateway uses a multi-process end-to-end data transmission method. The specific workflow is as follows: Figure 6 Shown

[0186] like Fig.10 As shown, an embodiment of the present invention provides a multi-mode heterogeneous network interconnection system for power grid scenarios based on the MQTT protocol, including:

[0187] A data frame building module is used to build a unified message data frame based on MQTT;

[0188] The structure conversion module is used for the differentiated data frame structure conversion for the MQTT protocol;

[0189] Gateway design module, used for intelligent gateway design.

[0190] A computer device is provided in an embodiment of the present invention, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for interconnection and interoperability of multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol.

[0191] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for interconnecting and communicating multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol.

[0192] An embodiment of the present invention provides an information data processing terminal, which is used to implement the multi-mode heterogeneous network interconnection system of the power grid scenario based on the MQTT protocol.

[0193] in Figure 3 This is a diagram of a multi-service Internet of Things communication network architecture provided by an embodiment of the present invention;

[0194] Figure 4 It is a schematic diagram of heterogeneous network message intercommunication provided by an embodiment of the present invention;

[0195] Figure 5 It is a hardware design diagram of the intelligent gateway provided by an embodiment of the present invention;

[0196] Figure 6 is a flow chart of end-to-end message transmission provided by an embodiment of the present invention;

[0197] Figure 7 This is a diagram of the MQTT gateway management interface provided by an embodiment of the present invention;

[0198] Figure 8 This is a diagram for implementing a topic release by a terminal node provided in an embodiment of the present invention;

[0199] Fig. 9 A receiving node receiving data diagram provided by an embodiment of the present invention;

[0200] Step 1: Establish a unified message data frame based on MQTT

[0201] The establishment of a unified message unit is a data structure or format designed to simplify the data exchange process between different systems, protocols or networks. It enables accurate interpretation and exchange of data between different systems by defining consistent data structures, formats and semantics, and has certain scalability and compatibility.

[0202] Step 1.1: Establish a unified message data frame structure based on MQTT for business

[0203] According to the MQTT3.1 protocol, for applications in the power sector, we have designed a unified message structure, which includes key elements such as business type, device ID, timestamp, location information and data field. The business type identifies the purpose of the message, the device ID uniquely identifies the source device of the message, the timestamp records the time when the message was generated, the location information provides the geographic location of the device, and the data field contains specific business data, such as power parameters or sensor data. In order to ensure the integrity and accuracy of the message, a check field is added to the message for verification and validation.

[0204] Step 1.2: Define the frame structure and the meaning of different fields

[0205] According to the above data frame structure, each field is defined in detail:

[0206] Business Type:

[0207] Number of bits: 8 bits (1 byte)

[0208] Length: 1 byte

[0209] Description: The service type field is used to identify the service type to which the message belongs. It is usually represented by one byte and can support 256 different service types. It is similar to the service port number field of the TCP protocol and is used to distinguish different service types.

[0210] Device ID:

[0211] Number of digits: Variable (variable length)

[0212] Length: Depends on the encoding scheme of the device ID, usually ranging from a few bytes to dozens of bytes

[0213] Description: The device ID field is used to uniquely identify the device or sensor to which the message belongs. The length is variable and is usually determined by the specific encoding scheme. It is similar to the client ID field in the MQTT protocol, but may be longer.

[0214] Timestamp:

[0215] Number of bits: 64 bits (8 bytes)

[0216] Length: 8 bytes

[0217] Description: The timestamp field is used to record the time when the message was generated. It is usually represented by a 64-bit integer to indicate the number of milliseconds from 0:0:0:0 on January 1, 1970 to the present. This is similar to the representation of the UNIX timestamp.

[0218] Location:

[0219] Number of digits: Variable (variable length)

[0220] Length: depends on the encoding scheme of the location information, usually ranging from a few bytes to dozens of bytes

[0221] Description: The location information field includes the device's geographic location information, such as longitude and latitude coordinates. The length is variable and is usually determined by the specific encoding scheme. It may include longitude, latitude, altitude, etc.

[0222] Data field:

[0223] Number of digits: Variable (variable length)

[0224] Length: Depends on the encoding scheme of the data field and the presence or absence of the length field

[0225] Description: The data field contains specific business data, such as current, voltage, and power information of power equipment; environmental parameters and image data of drone sensors; heart rate, body temperature, and motion status of personnel status monitoring equipment, etc. The length is variable and is usually determined by the specific encoding scheme.

[0226] Data Length:

[0227] Number of bits: 16 bits (2 bytes)

[0228] Length: 2 bytes

[0229] Description: The data length field is used to record the length of the data field. The length field itself is fixed in length and usually uses a 16-bit integer to represent the length of the data field. This field is optional, but may be necessary in some cases, especially when the length of the data field is not fixed.

[0230] Checksum field:

[0231] Number of bits: 32 bits (4 bytes)

[0232] Length: 4 bytes

[0233] Description: The checksum field is used to check the integrity and accuracy of the message, for example, using a 32-bit cyclic redundancy check (CRC) or other checksum algorithms.

[0234] Here we take the drone inspection application as an example to show some business type code definitions:

[0235]

[0236] Step 2: Differentiated data frame structure conversion for MQTT protocol

[0237] In the multimodal power Internet of Things scenario, protocol adaptation is required because different terminal devices use different communication protocols. There are usually three adaptation methods: mutual calling, tunnel encapsulation and message middleware. The mutual calling method is to realize the required function by calling the function of another protocol; the tunnel encapsulation method is to encapsulate the data packet of one protocol in the data packet of another protocol for transmission; the message middleware realizes the decoupled communication between heterogeneous devices through the message agent. In the power Internet of Things, the message middleware method is chosen to interconnect heterogeneous networks, and the data frame conversion is performed through the unified message data unit, including frame format parsing, field mapping, field conversion, field addition or deletion, checksum calculation, data compression or expansion, byte order adjustment and data frame assembly.

[0238] Step 2.1: Map the WIFI and public network data frame structure to the MQTT frame

[0239] When designing middleware to map Wi-Fi and public network frame structures to the MQTT protocol, there are several key points to consider:

[0240] Mapping of Wi-Fi frames to MQTT:

[0241] Destination address and source address mapping: The destination address and source address of the Wi-Fi frame can be directly mapped to the MQTT topic. For example, the destination address corresponds to the publishing topic, and the source address corresponds to the subscription topic, thereby realizing the sending and receiving of messages.

[0242] Frame body as message body: The frame body of the Wi-Fi frame can be directly transmitted as the body of the MQTT message without additional processing.

[0243] Control field conversion: Other control fields in the Wi-Fi frame can be used to define properties such as the quality level (QoS) and retention flag (RetainFlag) of the MQTT message, thereby ensuring the transmission reliability and semantic consistency of the message.

[0244] Mapping of public network frames to MQTT:

[0245] Destination address and source address mapping: Similar to Wi-Fi frames, the destination address and source address of public network frames can also be mapped to MQTT topics to enable message sending and receiving.

[0246] The type field determines the message type: The type field in the public network frame can be used to determine the type or type of the message, and then map different types of messages to different MQTT topics, thereby achieving message classification and distribution.

[0247] Data field as message body: The data field of the public network frame can be directly transmitted as the body of the MQTT message to facilitate processing and parsing in the MQTT network.

[0248] Control field conversion: Similar to Wi-Fi frames, other fields in public network frames can be used to define QoS, Retain Flag and other attributes of MQTT messages to ensure the transmission quality and semantic consistency of messages.

[0249] Through this mapping method, data formats in different network environments can be converted into a unified MQTT message format, thereby realizing cross-network communication and data exchange.

[0250] Step 3: Smart Gateway (MQTT Agent) Design

[0251] The smart gateway architecture is based on the IoT framework and divides the entire network into four key parts: application layer, network layer, transport layer, and perception layer. The application layer is dedicated to presenting data to users and enabling user interaction by sending control instructions to devices. The network layer and transport layer act as a bridge between the application layer and the perception layer, responsible for data transmission and processing, and are the core of the entire network. The perception layer focuses on hardware modules, consisting of various sensors, responsible for data collection and execution of instructions. This layered structure provides great scalability and flexibility for the smart gateway system, enabling it to adapt to different application scenarios and changes in demand.

[0252] Step 3.1: Hardware platform design

[0253] Raspberry Pi 4B is used as the intelligent gateway hardware development platform, the structure is as follows Figure 2 As shown. Raspberry Pi is based on the ARM core, with onboard USB and Ethernet interfaces, multi-channel GPIO interfaces, wireless network cards, and supports multiple communication protocols. At the same time, it supports multiple Linux-based operating systems, inherits the good portability of Linux, supports development in languages ​​such as Python, and facilitates the development and customization of system applications. We have built a smart gateway hardware platform by taking advantage of the portable and scalable features of embedded devices, which not only reduces the size of the service agent, but also uses the expansion of Quectel's 4G and 5G modules to enable the MQTT agent (gateway) to support multiple networks, thereby realizing the function of interconnection and communication between heterogeneous networks.

[0254] Step 3.2: Software MQTT Agent Platform Deployment

[0255] Build a SIoT server on the Raspberry Pi as an MQTT gateway, and connect to the Quectel 4G5G module to support public network transmission. Then use a Raspberry Pi that supports the public network as a terminal node to receive sensor data and publish it according to the designed frame structure to the MQTT gateway. Then the computer node that supports WIFI in the control station subscribes to the topic to receive data. As shown in the example in the figure, the message contains ID, location (latitude and longitude), time, power level, and various sensor data. As shown in the figure, the publishing node uses the UAV / state topic as the sending topic, and the service level is QoS0. The subscribing node subscribes to the information received by the node, realizing the heterogeneous network intercommunication technology based on the MQTT smart gateway.

[0256] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0257] 2. Application Examples: In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the technical solution of the claims on specific products or related technologies.

[0258] 1. System architecture design

[0259] In the power grid monitoring application, the present invention adopts a distributed system architecture, which includes the following components:

[0260] Sensor nodes: Sensor nodes installed at different locations are responsible for collecting various data of the power grid, such as voltage, current, frequency, temperature, humidity, longitude and latitude, etc.

[0261] Gateway nodes: These nodes are responsible for receiving data sent by sensor nodes and sending it to the MQTT agent. Gateway nodes are usually connected to sensor nodes and have processing capabilities to pre-process and filter data. The present invention uses Raspberry Pi 4B as a gateway node to connect to sensors and obtain their data.

[0262] MQTT agent: MQTT agent is a middleware that receives data from gateway nodes and distributes it to clients that have subscribed to relevant topics. The present invention deploys a local MQTT proxy server on the intelligent gateway module Raspberry Pi 4B to publish and upload sensor data.

[0263] Monitoring Center: This is one or more applications used to monitor the status of the power grid and subscribe to MQTT topics to receive real-time data.

[0264] 2. Data collection and transmission

[0265] The sensor nodes periodically collect grid data and send them to the gateway node.

[0266] The gateway node publishes the collected data to the specified topic through the MQTT protocol.

[0267] After receiving the data, the MQTT agent sends the data to the corresponding monitoring center based on the subscription relationship.

[0268] 3. Real-time monitoring and analysis

[0269] The monitoring center subscribes to the relevant MQTT topics to receive real-time data.

[0270] After receiving the data, the monitoring center can monitor, visualize and store the status of the power grid in real time. Based on pre-set thresholds, the monitoring center can trigger alarms or take automated measures to deal with abnormal situations.

[0271] 4. Remote Control

[0272] In the monitoring center, operators can control certain parameters of the power grid by publishing MQTT messages, such as adjusting voltage, switching switches, etc.

[0273] The control command is sent to the corresponding gateway node through the MQTT agent, and then transmitted to the actual execution device to realize the remote control function.

[0274] 3. Evidence of the effects of the embodiments. The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with the data, charts, etc. of the test process.

[0275] like Fig.11Sensor nodes shown: The sensor nodes are distributed in different locations and are responsible for collecting various data of the power grid to achieve comprehensive monitoring. The data collected by the sensor nodes include voltage, current, frequency, temperature, humidity, longitude and latitude, etc., ensuring a comprehensive understanding of the power grid status.

[0276] Gateway node: The gateway node receives and processes sensor data, reducing the amount of transmitted data and improving network utilization. Using the Raspberry Pi 4B as a gateway node, data preprocessing and filtering can be performed on the node, reducing the amount of data transmitted from the sensor node to the MQTT broker.

[0277] MQTT proxy: MQTT proxy middleware is responsible for data distribution, improving the efficiency and reliability of data transmission. The present invention deploys a local MQTT proxy server on the Raspberry Pi 4B, achieving efficient publishing and uploading of sensor data and reducing the delay of data transmission.

[0278] Monitoring center: The monitoring center subscribes to MQTT topics to achieve real-time monitoring and analysis of the power grid status. The monitoring center receives real-time data and can trigger alarms or automated measures based on preset thresholds to effectively respond to abnormal situations and ensure safe operation of the power grid.

[0279] 1. Data collection and transmission

[0280] Sensor node data collection: Sensor nodes collect data regularly to ensure the timeliness and accuracy of the data. The collected data includes key parameters such as voltage and current, which provide basic data for subsequent analysis and control.

[0281] Gateway node data transmission: Gateway nodes publish data through the MQTT protocol, achieving efficient data transmission. The MQTT protocol can ensure the reliability and stability of data and ensure that data can be accurately transmitted to the monitoring center.

[0282] 2. Real-time monitoring and analysis

[0283] Real-time monitoring: The monitoring center subscribes to the MQTT topic, receives real-time grid data, and promptly detects abnormal situations. Real-time monitoring can quickly respond to changes in grid status and ensure the stability and safety of grid operation.

[0284] Visual analysis: The monitoring center conducts visual analysis on the received data to help users understand the power grid status more intuitively. Through visual analysis, users can more clearly understand the changing trends of various parameters of the power grid and provide a reference for decision-making.

[0285] 3. Remote Control

[0286] Remote control: The monitoring center can remotely control the power grid parameters by publishing MQTT messages. Operators can send control commands through the monitoring center to remotely adjust and manage the power grid, improving the flexibility and efficiency of power grid operation.

[0287] According to the above process, experimental verification is carried out. Figure 5 As shown in the figure, the Raspberry Pi is expanded to support mesh, 4G, WIFI and other networks, and used as an intelligent gateway to receive edge sensor data. At the same time, an MQTT-based sIOT server is built on the Raspberry Pi as an MQTT proxy platform, and then the MQTT topic publishing program is executed on the sensor node to upload the data to the MQTT proxy. Then, the shell script is executed on the control station client node to complete the data set subscription download. The test results are shown in the figure. Figure 8 ,As shown in Figure 9, the results show that the subscriber can accurately receive the topic message from the publisher.

[0288] To determine the stability of data transmission, the publisher initiated 500 to 3000 message pushes, and the test results are shown in the table. The data loss rate during transmission is 0, and the transmission time gradually increases with the increase in the number of samples.

[0289] Table 1 Data transmission test results

[0290]

[0291] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A method for interconnecting multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol. It is characterized in that The following steps are involved: Step 1: Establish a unified message data frame based on MQTT; Step 2: Differentiated data frame structure conversion for MQTT protocol; Step 3: Intelligent gateway design.

2. The method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol as claimed in claim 1, It is characterized in that The establishment of a unified message data frame based on MQTT: (1) Establish a unified message data frame structure based on MQTT for business; (2) Define the frame structure and the meaning of different fields.

3. The method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol as claimed in claim 2, It is characterized in that The business-oriented unified message data frame structure based on MQTT is established: Business type: identifies the business type to which the message belongs; Device ID: A unique identifier that identifies the device or sensor to which the message belongs; Timestamp: records the time when the message was generated, usually in UTC time format; Location information: includes the device's geographic location, including longitude and latitude coordinates; Data field: contains specific business data, including current, voltage, and power information of power equipment; environmental parameters and image data of drone sensors; Data length: record the length of the data field; Check field: used to check the integrity and accuracy of the message, usually calculated using CRC or other check algorithms.

4. The method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol as claimed in claim 1, It is characterized in that The differentiated data frame structure conversion for the MQTT protocol: Map the WIFI and public network data frame structures to the MQTT frames; A Wi-Fi frame consists of: Frame control field: contains the frame type, subtype and other control information; Address field: includes the MAC addresses of the receiver and transmitter; Sequence control field: used to manage the order and integrity of data frames; Frame body field: contains the actual transmitted data, including IP data packets; FCS field: used to detect whether an error occurs during frame transmission; Public network frame structure: Preamble field: used to synchronize the receiver and transmitter clocks; Frame start flag field: marks the beginning of the frame; Destination address field: indicates the MAC address of the receiver of the frame; Source address field: indicates the MAC address of the sender of the frame; Type field: indicates the type of data in the frame, including IP data packets and ARP requests; Data field: the actual data transmitted; FCS field: used to detect whether an error occurs during frame transmission.

5. The method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol as claimed in claim 1, It is characterized in that The intelligent gateway design: 1) Hardware platform design; Raspberry Pi 4B is used as the smart gateway hardware development platform; 2) Software MQTT agent platform deployment.

6. The method for interconnecting and communicating multi-mode heterogeneous networks in a power grid scenario based on the MQTT protocol as claimed in claim 5, It is characterized in that The software MQTT agent platform is deployed as follows: On the Raspberry Pi, an MQTT server is established according to the SIoT construction method. The default user name (user) is: siot and the default password (pwd) is: dfrobot. The user name, password and Web port information can be modified through the config.json file.

7. A system for interconnecting and communicating multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol, which implements the method for interconnecting and communicating multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol as claimed in any one of claims 1 to 6, It is characterized in that The MQTT-based multi-mode heterogeneous network interconnection system for power grid scenarios includes: A data frame building module is used to build a unified message data frame based on MQTT; The structure conversion module is used for the differentiated data frame structure conversion for the MQTT protocol; Gateway design module, used for intelligent gateway design.

8. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the multi-mode heterogeneous network interconnection method for power grid scenarios based on the MQTT protocol as described in any one of claims 1-6.

9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method for interconnecting and communicating multi-mode heterogeneous networks in power grid scenarios based on the MQTT protocol as described in any one of claims 1 to 6.

10. An information data processing terminal, It is characterized in that The information data processing terminal is used to implement the multi-mode heterogeneous network interconnection system for power grid scenarios based on the MQTT protocol as described in claim 7.

Citation Information

Cited By

  • Intelligent operation and maintenance communication method based on JSON format

    CN119892871A

  • Underground power distribution room communication system and method based on heterogeneous network and multi-mode fusion

    CN120980104A

  • Communication System and Method for Underground Power Distribution Room Based on Heterogeneous Networks and Multimodal Fusion

    CN120980104B