CN118264935A - Onboard software networking and remote control telemetry system and method based on MQTT - Google Patents

Onboard software networking and remote control telemetry system and method based on MQTT Download PDF

Info

Publication number
CN118264935A
CN118264935A CN202311678843.2A CN202311678843A CN118264935A CN 118264935 A CN118264935 A CN 118264935A CN 202311678843 A CN202311678843 A CN 202311678843A CN 118264935 A CN118264935 A CN 118264935A
Authority
CN
China
Prior art keywords
data
remote
node
cluster
telemetry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311678843.2A
Other languages
Chinese (zh)
Inventor
李昌
蒋友毅
史晶晶
童庆波
马可锌
张驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AVIC Chengdu Aircraft Design and Research Institute
Original Assignee
AVIC Chengdu Aircraft Design and Research Institute
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 AVIC Chengdu Aircraft Design and Research Institute filed Critical AVIC Chengdu Aircraft Design and Research Institute
Priority to CN202311678843.2A priority Critical patent/CN118264935A/en
Publication of CN118264935A publication Critical patent/CN118264935A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention provides an onboard software test data monitoring technology based on an MQTT, which relates to the field of remote data transmission and networking and comprises the following steps: step S1: adding nodes at an MQTT cloud server end, and configuring a data stream; step S2: connecting the acquisition node with the MQTT cloud server; step S3: remote data networking and transmission; and S4, analyzing and processing the telemetry data by the telemetry and remote control nodes in the telemetry and remote control cluster (4). The invention realizes the data interaction among different remote airborne software in the trans-regional industrial field and reduces the video delay of image transmission to millisecond level by the on-line remote measurement and remote control of the whole airborne system software; the development, production and maintenance of cross-regional departments are possible; the method solves the bottleneck of traditional tcp networking and multi-node data forwarding, greatly improves the production debugging efficiency, reduces the operation and maintenance cost, breaks through the limitations and the sealing property of the research, the production and the maintenance of the traditional industrial field, and has wide practicability and high flexibility.

Description

Onboard software networking and remote control telemetry system and method based on MQTT
Technical Field
The invention relates to the field of remote data transmission, in particular to an onboard software networking and remote control telemetry system and method based on an MQTT.
Background
Along with the rapid development of mobile internet, internet of things and cloud computing technology, a prologue of a mobile cloud era is opened, data are clouded, and remote monitoring is also attracting more and more the sight of people. The traditional industrial control field research, production and maintenance modes have limitations and sealing, the manual field operation and maintenance cost is high, the efficiency is low, the time and the labor are wasted, and the faults cannot be treated in time.
MQTT (Message Queuing Telemetry Transport, message queue telemetry transport protocol), is a client-server based message publish/subscribe transport protocol that builds on the TCP/IP protocol. This has the advantage that a real-time reliable message service can be provided for a remote connection device with very little code and limited bandwidth. The MQTT protocol provides one-to-many message distribution, which can reduce the application's coupling. Therefore, a user can complete one-to-many message publishing and subscribing by writing a very small amount of application codes, and three main categories exist in the protocol: publishers (Publisher), subscribers (subscribers) and servers (broaders). The method comprises the steps that a publisher and subscribers of the MQTT message are clients, the server plays a role in message transfer, and the message published by the publisher is forwarded to all subscribers subscribing the topic in the MQTT network; the publisher can publish all topics within the authority of the publisher, and the message publisher can be a subscriber of the message, and the published message can be subscribed by a plurality of subscribers at the same time, so that the decoupling of the producer and the consumer is realized.
Under the background, the application and the extension of the MQTT protocol enable the data of the remote terminal 1 to be uploaded to the MQTT cloud server 3, and then the data are converged to the appointed client software by utilizing the inter-cloud data circulation method to realize the data interaction, or the client software analyzes and processes the data and then performs graphical and modularized display. For abnormal data or fault problems, a remote control instruction can be issued to the MQTT network through a remote debugging module of client software and then forwarded to the target remote machine 1 so as to accurately and timely process the abnormal problems. The production efficiency is greatly improved, the operation and maintenance cost is saved, and the existing limitations and sealing performance of the traditional industrial field research, production and maintenance modes are broken.
Disclosure of Invention
The technical problems of the invention are as follows:
The traditional industrial control field research, production and maintenance modes have limitations and sealing, the manual field operation and maintenance cost is high, the efficiency is low, the time and the labor are wasted, and the faults cannot be treated in time.
The purpose of the invention is that:
The invention aims to provide an onboard software test data monitoring technology based on an MQTT, which solves the problems of short board, real-time data mining value and operation and maintenance cost of the current technology for monitoring real-time data of a remote machine 1.
The technical scheme of the invention is as follows:
On the one hand, the invention provides an MQTT-based airborne software networking and remote control telemetry system, which comprises remote airborne display software, remote airborne display control software, remote airborne digital management software, an MQTT cloud server 3 in a data acquisition cluster 2, a telemetry and remote control node in a telemetry and remote control cluster 4 and an MQTT cloud server 3. The MQTT cloud server 3 in the data acquisition cluster 2 and the telemetry and remote control nodes in the telemetry and remote control cluster 4 are respectively connected with the MQTT cloud server 3 for the MQTT client. The MQTT cloud server 3 in the data acquisition cluster 2 and the target airborne software are deployed in the same remote environment and are responsible for interacting with the MQTT cloud servers 3 in other acquisition clusters 2 and the remote control and telemetry nodes in the remote control cluster 4, and real-time data release of the remote airborne software is transmitted into the MQTT network and relevant data of the MQTT cloud servers 3 in other acquisition clusters 2 in the subscription network and relevant control data released by the remote control and telemetry nodes in the remote control cluster 4. The telemetry and remote control nodes in the telemetry and remote control cluster 4 are responsible for the visualization, analysis and remote control of telemetry data. The MQTT cloud server 3 is responsible for processing MQTT network networking and data flow. Each node realizes a unique data channel through a specified theme, and realizes data interaction among various types of airborne software in the network and remote monitoring of the telemetry and remote control nodes in the telemetry and remote control cluster 4.
The MQTT cloud server 3 in the data acquisition cluster 2 is connected with the MQTT cloud server 31 in the remote airborne software connection acquisition cluster 2, the MQTT cloud server 32 in the acquisition cluster 2 is connected with Beijing laboratory remote airborne display control software, the MQTT cloud server 33 in the acquisition cluster 2 is connected with the western security laboratory remote airborne digital tube software, the remote airborne software uploads own data to the MQTT cloud server 3 in the acquisition cluster 2, and the MQTT cloud server 3 in the acquisition cluster 2 encapsulates common data according to data types, data lengths and channel numbers, and specific data and encodes and encapsulates image data through base 64. And then according to the configuration of the node configuration and the theme and the service quality, the data is packaged into a message to be published into the MQTT network. The MQTT cloud server 3 generates unique data channels from the MQTT cloud server 3 in each acquisition cluster 2 and from the MQTT cloud server 3 in the acquisition cluster 2 to remote control and remote control nodes in the remote control cluster 4 according to the theme, so that data can be subjected to data interaction among department airborne software in different areas and remote control of the whole airborne software system by the remote control and remote control nodes in the remote control cluster 4.
After the remote telemetry nodes in the telemetry and remote control cluster 4 are connected to the MQTT network, data corresponding to the airborne software can be obtained and packaged and sent by the MQTT cloud server 3 in the acquisition cluster 2, the remote telemetry nodes in the telemetry and remote control cluster 4 analyze the data according to the data types and then transmit the data to the data persistence module and the data visualization module of the telemetry and remote control nodes in the telemetry and remote control cluster 4, the data persistence module classifies the data according to the data types and stores the data into corresponding database tables for persistence processing so as to analyze and process the abnormal data of the airborne software in the later period, the data visualization module converts the analyzed data into patterns, forms such as tables and the like to be visualized and presented to a UI interface, and after the data analysis module analyzes the data, the analysis result or the abnormal data is displayed to the UI interface to be displayed in an alarm mode so as to facilitate the remote measurement and analysis of the remote airborne software by a debugger. When remote control is carried out, the remote control module encapsulates the debugging instruction of the equipment according to the theme, the service quality and the control instruction format and then issues the debugging instruction into a network, the control instruction stream is transferred to the MQTT cloud server 3 in the acquisition cluster 2 through the MQTT cloud server 3, and the MQTT cloud server 3 in the acquisition cluster 2 analyzes and then issues the control instruction into the airborne software connected with the MQTT cloud server so as to realize remote control of the remote airborne software.
The remote airborne software realizes data interaction among the transregional airborne software through the MQTT cloud server 3 and the MQTT cloud server 3 in the acquisition cluster 2 and the data transmission network, and carries out real-time data monitoring on the whole network data through the remote control telemetry nodes in the telemetry and remote control cluster 4.
On the other hand, the invention provides an onboard software networking and remote control telemetry method based on MQTT, which comprises the following steps:
step S1, adding nodes at an MQTT cloud server 3 end;
step S2, configuring a data stream at an MQTT cloud server 3 end;
Step S3, connecting an MQTT cloud server 3 in the acquisition cluster 2, a remote control and telemetry node in the remote control and telemetry cluster 4 and the MQTT cloud server 3;
Step S4, remote data transmission;
step S5, analyzing and processing the remote data by the remote sensing and controlling nodes in the remote sensing and controlling cluster 4;
Step S6, the remote control node in the remote control cluster 4 performs debugging control on the remote machine 1.
The invention has the advantages and beneficial effects that:
According to the invention, data interaction among different remote airborne software in a transregional industrial field and on-line remote measurement and remote control of the whole airborne system software are realized through the MQTT client node and the MQTT cloud server 3, so that video delay of image transmission is reduced to millisecond level; the development, production and maintenance of cross-regional departments are possible; the method solves the bottleneck of traditional tcp networking and multi-node data forwarding, greatly improves the production debugging efficiency, reduces the operation and maintenance cost, breaks through the limitations and the sealing property of the research, the production and the maintenance of the traditional industrial field, and has wide practicability and high flexibility. The specific advantages are as follows:
1) The remote control system can remotely measure and control a plurality of remote machines 1 in a cross-region manner in real time, and the remote data monitoring is accurate in operation, so that the problem of difficult field operation is solved, the manpower resources are reduced, and the operation and maintenance cost is reduced.
2) And the data is gathered and visually presented, and the graphical interface is simple to operate and control.
3) The acquisition module can be embedded equipment or an all-digital simulation system, and has good expansibility, high flexibility and strong applicability.
4) The base64 coding-based image transmission technology reduces the 1-2 second delay of traditional video transmission to the millisecond level.
5) Based on a publish-subscribe mode, a data receiving-transmitting channel is built through topic, so that the problems of complex networking by means of tcp node forwarding networking and network collapse caused by overlarge load when the data volume is large are solved.
6) The MQTT cloud service end is built based on EMQX technology, supports the connection of millions of client devices, and the data transmission network supports the real-time receiving, moving, processing and distributing of millions of MQTT messages per second, and the time delay of message distribution and delivery is lower than 1 millisecond.
7) The cloud server is adopted to carry out MQTT networking and message receiving and transmitting, so that the current situation that inter-regional department joint debugging is difficult is solved, the distance limitation is broken, complex network wiring is avoided, the constraint of any infrastructure or network limitation is avoided, and the maintenance of operation and maintenance personnel is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the drawings required to be used in the embodiments of the present invention, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an MQTT-based on-board software networking and telemetry system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an onboard software networking and remote control telemetry method based on MQTT according to an embodiment of the present invention.
Wherein: the remote terminal 1, the acquisition cluster 2, the MQTT cloud server 3 and the telemetry and remote control cluster 4;
Remote onboard software 11, remote onboard software 12, and remote onboard software 13;
Acquisition node 21, acquisition nodes 22, … …, acquisition node 2n;
Remote telemetry node 41, remote telemetry node 42 … … remote telemetry node 4n.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without making any inventive effort are intended to fall within the scope of the present invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other, and the embodiments may be referred to and cited with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a schematic diagram of an MQTT-based on-board software networking and remote telemetry system according to an embodiment of the present invention.
As shown in fig. 1, the whole system consists of a remote machine 1, an acquisition cluster 2, an MQTT cloud server 3 and a telemetry and remote control cluster 4. The remote machine 1 is composed of remote onboard software distributed in different areas with different functions, such as: the remote airborne display software 11 is deployed in the Shanghai for displaying related functions, the remote airborne display control software 12 is deployed in the Hangzhou for displaying related functions of the system, the remote airborne digital management software 13 is deployed in the Beijing for displaying related functions of the system, and the remote airborne software 11, the remote airborne software 12 and the remote airborne software 13 jointly construct an airborne system. Acquisition cluster 2 is made up of acquisition node 21, acquisition node 22 … …, acquisition node 2 n. The acquisition node acquires real-time data of the remote machine 11 onboard software and uploads the data to the MQTT cloud server 3, and analyzes a remote control instruction of the MQTT cloud server 3 to control the remote machine 1. The MQTT cloud server 3 is responsible for inter-cloud networking, and realizes data flow among all airborne software so as to establish an airborne software system and data interaction between the airborne software system and a remote control telemetry node. The remote telemetry cluster 4 is composed of a remote telemetry node 41, a remote telemetry node 42 and a remote telemetry node 4n, wherein the remote telemetry node is responsible for analyzing real-time data of an onboard software system and monitoring and analyzing the telemetry data and issuing a remote command to remotely control the remote machine 4.
Each node function: remote machine 1, acquisition cluster 2, MQTT cloud server 3, remote measuring and remote controlling cluster 4
An onboard software networking and remote control and telemetry device based on an MQTT (multicast router), which is characterized by comprising: a remote machine 1, an acquisition cluster 2, an MQTT cloud server 3 and a remote measuring and controlling cluster 4,
Wherein the remote machine 1 comprises a remote machine node, for example: remote onboard display software 11, remote onboard display control software 12 and remote onboard digital management software 13. All the airborne software is a subsystem of the airborne system, and data interaction is carried out among the three through the MQTT network, so that the service function of the airborne system is realized together. Multiple sets of on-board software systems may be incorporated into the network.
The acquisition cluster 2 comprises: the acquisition node (which can be connected with the far-end physical equipment, the far-end semi-physical equipment and the far-end virtual equipment) acquires real-time data of the far-end machine 1 equipment and uploads the real-time data to the MQTT cloud server 3, and analyzes a control instruction of the MQTT cloud server 3 so as to control the far-end machine 1 node.
The data acquisition node is connected with the remote airborne software and the acquisition node 21 is connected with remote airborne display software of a Shanghai laboratory, the acquisition node 22 is connected with remote airborne display control software of a Hangzhou laboratory, the acquisition node 23 is connected with remote airborne digital pipe software of a Beijing laboratory, the remote machine 1 node uploads data of the data acquisition node to the acquisition node, the acquisition node encapsulates specific data according to data types and data lengths and channel numbers, and the image data is encapsulated in a coding mode through a base 64. And then according to the configuration of the node configuration and the theme and the service quality, the data is packaged into a message to be published into the MQTT network. The MQTT cloud server 3 generates unique data channels from each acquisition node to each remote control telemetry node according to the theme, so that data can be interacted among airborne software in different areas and the remote control telemetry cluster 4 node can remotely monitor the whole airborne software system.
The MQTT cloud server 3 is responsible for system networking, establishes a data flow channel in a network layer, and realizes data flow among devices of the remote terminal 1 and data interaction between an airborne system formed by the remote terminal 1 and a remote control telemetry cluster 4 node.
The MQTT cloud server 3 creates an acquisition node 21 of remote onboard display software, an acquisition node 22 of remote onboard display control software, an acquisition node 23 of remote onboard digital tube and a remote telemetry cluster 4 node. And configuring relevant parameters such as node type, networking mode, data format, verification mode and the like. After the configuration is completed, the server side generates a corresponding certificate for each node. The MQTT cloud server terminal writes a data analysis script through configuration data sources (acquisition nodes i and topic) and data purposes (node names and ids of a remote telemetry cluster (4)) to generate a bidirectional data flow channel between the acquisition cluster 2 nodes and the remote telemetry cluster 4 nodes. Acquiring certificates generated when the MQTT cloud server 3 creates the nodes, converting the certificates into secret keys, filling secret key information in the MQTT modules of the acquisition cluster 2 nodes and the remote telemetry cluster 4 nodes, and configuring parameters such as heartbeat, topic and the like of the remote telemetry cluster 4 nodes and the MQTT cloud server 3 to realize connection of the acquisition cluster 2 nodes and the MQTT cloud server end 3 of the remote telemetry cluster 4 nodes.
The remote control telemetry cluster 4 acquires and analyzes real-time data of each remote machine 1 node in the network layer, visually displays the real-time data to a ui interface, and persistently stores the real-time data in a database. And (5) carrying out alarm display on the abnormal data and remotely controlling the node of the remote machine 1.
After the remote telemetry cluster 4 nodes are connected to the MQTT network, data corresponding to the remote machine 1 nodes can be obtained through the encapsulation of the acquisition cluster 2 nodes, the remote telemetry cluster 4 nodes analyze the data according to the data types and then transmit the data to a data persistence module and a data visualization module of the remote telemetry cluster 4 nodes, the data persistence module classifies the data according to the data types and then stores the data into a corresponding database table for persistence processing so as to analyze and process the abnormal data of airborne software at a later stage, the data visualization module converts the analyzed data into graph and graph such as a bar graph and a line graph and form such as a table, the graph is visualized and presented to a UI interface, and after analyzing the data, the data analysis module displays analysis results to the UI interface and displays abnormal data alarms so as to facilitate the debugging personnel to analyze the remote telemetry data of the remote machine 1 nodes. When remote control is carried out, a remote control module encapsulates a debugging instruction of equipment according to a theme, service quality and a control instruction format and then issues the debugging instruction into a network, the control instruction flow is transferred to each acquisition node of the acquisition cluster 2 through the MQTT cloud server, and the acquisition nodes analyze and then issue the control instruction into a remote machine 1 node connected with the acquisition nodes, so that remote control of the remote machine 1 node is realized.
Fig. 2 is a schematic diagram of an onboard software networking and remote control telemetry method based on MQTT according to an embodiment of the present invention.
As shown in fig. 2, the method specifically includes the following steps:
And S1, adding nodes at the end of the MQTT cloud server 3.
Specifically, an MQTT cloud server 31 in an acquisition cluster 2 of remote airborne display software, an MQTT cloud server 32 in the acquisition cluster 2 of remote airborne display control software, an MQTT cloud server 33 in the acquisition cluster 2 of remote airborne digital management and a telemetry and remote control node in a client telemetry and remote control cluster 4 are created at an MQTT cloud server 3. And configuring relevant parameters such as node type, networking mode, data format, verification mode and the like. After the configuration is completed, the server side generates a corresponding certificate for each node.
Step S2, configuring a data stream at an MQTT cloud server 3 end;
The MQTT cloud server 3 end composes a data analysis script (var data=payload ("json"); writeIotTopic (1000,/i 3vphepD vH/devTest/user/myTopic "), data) by configuring the MQTT cloud servers 3i and topic in the data source acquisition cluster 2, and the name and id of a telemetry and remote control node in the data destination telemetry and remote control cluster 4, so as to generate a bidirectional data flow channel between the MQTT cloud server 3 in the remote acquisition cluster 2 and the telemetry and remote control node in the telemetry and remote control cluster 4.
Step S3, connecting an MQTT cloud server 3 in the acquisition cluster 2, a remote control and telemetry node in the remote control and telemetry cluster 4 and the MQTT cloud server 3;
Acquiring certificates generated when the MQTT cloud server 3 creates the nodes in the step S1, converting the certificates into secret keys, filling secret key information in the MQTT cloud server 3 in the acquisition cluster 2 and the MQTT modules of the telemetry and remote control nodes in the telemetry and remote control cluster 4, and configuring parameters such as heartbeat and topic of the MQTT client and the server to realize the connection between the MQTT cloud server 3 in the acquisition cluster 2 and the MQTT client of the control node and the MQTT cloud server 3. The acquisition software and the monitoring software are both MQT modules and are built, and the monitoring software is combined with a Chart module of the QT, a custom control and a mysql database to realize the lasting preservation, modularization and visual display of data.
And S4, remote data transmission.
The remote on-board software is connected with the MQTT cloud server 3 in the acquisition cluster 2. Defining the data types as follows, uploading the data to an MQTT cloud server 3 in an acquisition cluster 2 by a remote machine 1 according to the data type classification, packaging the data according to the data type, the data length and the channel number after the analysis of the MQTT cloud server 3 in the acquisition cluster 2, and then publishing the can, 1553b, gpio, serial port and other data through an MQTT client according to the theme configured by the MQTT cloud server 3 in the acquisition cluster 2, wherein the MQTT cloud server 3 forwards the data of the MQTT cloud server 3 in the acquisition cluster 2 to the telemetry and remote control nodes in the MQTT cloud servers 3 or the telemetry and remote control clusters 4 in other acquisition clusters 2 according to the data circulation channel configured in the step 2. The remote onboard display, drive-by-wire and digital management software can realize data interaction among the onboard software, and research, development and production personnel can carry out cross-regional production debugging on the onboard system. When the remote control node in the remote control cluster 4 needs to control the remote machine 1, the remote control node in the remote control cluster 4 frames a control instruction and then uploads the control instruction to the MQTT cloud server 3, the cloud server transmits data to the MQTT cloud server 3 in the target acquisition cluster 2 through a data stream channel, and the control instruction is transmitted to the remote machine 1 connected with the data stream channel through the MQTT cloud server 3 in the acquisition cluster 2.
Data channel type enumeration of MQTT cloud server 3 in typedef enum_DataType {// acquisition Cluster 2
DATATYPESERIAL =0x1,// serial type data
DATATYPENET =0x2,// network type data
DATATYPECAN =0x3,// CAN type data
DataType 1553b=0x4,// 1553B type data
DataTypeDIO =0x5,// digital quantity type data
DataTypeAIO =0x6,// analog type data
DataTypeJDQ =0x7,// relay type data
DATATYPESPI =0x8,// SPI type data
DATATYPEIIC =0x9,// IIC type data
DataTypeStorage = 0xa// memory type data
DATATYPES5, analyzing and processing remote data by a telemetry and remote control node in the telemetry and remote control cluster 4;
When the telemetry and remote control nodes in the telemetry and remote control cluster 4 receive the data of the MQTT cloud server 3, the data are classified according to the message header, can data, gpio data, 1553B data, serial port data and the like are analyzed according to the protocol frame and then sent to the database module and the data visualization module of the monitoring node, and the database module stores the appointed data for persistence processing. The visualization module converts the response data into visual display of the chart, sets a threshold value for the concerned data, sends a signal when the data is abnormal, and displays corresponding alarm information according to the signal type after receiving the signal by a display interface of a telemetry and remote control node in the telemetry and remote control cluster 4.
Step S6, the remote control node in the remote control cluster 4 performs debugging control on the remote machine 1;
The remote control module in the remote control nodes in the remote control cluster 4 comprises related control instructions for controlling the remote machine 1, the remote control nodes in the remote control cluster 4 are packaged according to the types of the control instructions issued by the service quality and the configuration theme, the service quality, and the formats of the control instructions, the operation and maintenance personnel select the packaged control instructions on the remote debugging module interface, the remote control nodes in the remote control cluster 4 issue the instructions to the MQTT cloud server 3 in the remote acquisition cluster 2 through a data flow channel configured by the MQTT cloud server 3, the MQTT cloud server 3 in the acquisition cluster 2 analyzes according to the MQTT data format and then issues the data package to remote record software connected with the MQTT cloud server, and the response information of the on-board software is received to feed the remote control nodes in the remote control cluster 4 back the data package. And the operation and maintenance personnel remotely maintain according to the feedback information, so that remote control of remote airborne software is realized.
Control type enumeration of typedef enum_ ControlType {// control node
ControlTypeConnect =0x05,// system connection
ControlTypeDisConnect = 0x10,// disconnect
ControlTypeQueryBeatCycle = 0x15,// query beat period
ControlTypeQueryStatus = 0x20,// state of query node
ControlTypePause = 0x25,// simulation pause
ControlTypeContinue = 0x30,// simulation continued
ControlTypeStop = 0x35,// simulation stopped
ControlTypeBeat =0x40// beat data
}ControlType;
According to the invention, data interaction among different remote airborne software in a transregional industrial field and on-line remote measurement and remote control of the whole airborne system software are realized through the MQTT client node and the MQTT cloud server 3, so that video delay of image transmission is reduced to millisecond level; the development, production and maintenance of cross-regional departments are possible; the method solves the bottleneck of traditional tcp networking and multi-node data forwarding, greatly improves the production debugging efficiency, reduces the operation and maintenance cost, breaks through the limitations and the sealing property of the research, the production and the maintenance of the traditional industrial field, and has wide practicability and high flexibility.
It should be noted that, the above-mentioned flow operations may be applied in combination to different extents, and for brevity, various implementation manners of combination will not be described again, and those skilled in the art may flexibly adjust the order of the above-mentioned operation steps according to actual needs, or flexibly combine the above-mentioned steps.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered in the scope of the present invention.

Claims (10)

1. An MQTT-based on-board software networking and remote control telemetry system, comprising: remote end machine (1), collection cluster (2), MQTT cloud server (3), telemetering measurement remote control cluster (4), wherein:
The remote terminal (1) comprises: remote on-board software with different functions distributed in different areas:
The acquisition cluster (2) comprises: the acquisition node (21), the acquisition node (22), the acquisition node (2 n) are used for connecting the remote machine (1), uploading important data of the remote machine (1) to the MQTT cloud server (3), and sending a control instruction issued by the remote control and telemetry cluster (4) to the remote machine (1);
The acquisition cluster (2) acquires real-time data of the onboard software of the remote terminal (1), uploads the data to the MQTT cloud server (3) and analyzes a remote control instruction of the MQTT cloud server (3) to control the remote terminal (1);
The MQTT cloud server (3) is responsible for inter-cloud networking and realizes data flow among all airborne software so as to establish an airborne software system and data interaction between the airborne software system and a remote control telemetry node;
The remote telemetry cluster (4) comprises: the remote control telemetry node (41) and the remote control telemetry node (42) … … are used for remote control of the telemetry node (4 n), and the remote control telemetry node is responsible for analyzing real-time data of an onboard software system, monitoring and analyzing the telemetry data and issuing a remote control command to remotely control the remote machine (4).
2. The system according to claim 1, wherein the remote machine (1) comprises:
remote airborne display software (11) deployed in a first region for responsible display related functions for that region;
remote onboard display control software (12) deployed in a second region for taking charge of system display control related functions of the region;
The remote airborne digital management software (13) is deployed in a third region and is used for taking charge of the related functions of the system digital management in the region, the remote airborne software (11), the remote airborne software (12) and the remote airborne software (13) jointly construct an airborne system to become a subsystem of the airborne system, and data interaction is carried out among the three systems through an MQTT network to jointly realize the service functions of the airborne system.
3. The system of claim 1, wherein:
The acquisition cluster (2) comprises: each acquisition node which can be connected with the remote physical equipment, the remote semi-physical equipment and the remote virtual equipment;
each acquisition node acquires real-time data of the remote machine (1) equipment and uploads the real-time data to the MQTT cloud server (3), and analyzes a control instruction of the MQTT cloud server (3) so as to control the remote machine (1) node;
the data acquisition node is connected with remote airborne software:
the acquisition node (21) is connected with remote airborne display software of the first region;
The acquisition node (22) is connected with remote-end machine-mounted display control software in the second area;
The acquisition node (23) is connected with remote airborne digital management software of a laboratory in a third region;
the node of the remote machine (1) firstly uploads the data of the node to each acquisition node, and the acquisition node encapsulates the common data according to the data type, the data length and the channel number, and encapsulates the specific data and encodes the image data through base 64;
According to the configuration of the node configuration, according to the theme and the service quality, the data are packaged into a message to be published into an MQTT network; the MQTT cloud server (3) generates unique data channels from each acquisition node to each remote control telemetry node according to the theme, so that data can be interacted among airborne software in different areas and the remote control telemetry cluster (4) node can remotely monitor the whole airborne software system.
4. The system of claim 1, wherein:
The MQTT cloud server (3) is responsible for system networking, establishes a data flow channel in a network layer, and realizes data flow among devices of the remote terminal (1) and data interaction between an airborne system formed by the remote terminal (1) and nodes of the remote control telemetry cluster (4);
The MQTT cloud server (3) creates a collection node (21) of remote airborne display software, a collection node (22) of remote airborne display control software, a collection node (23) of remote airborne digital pipe and a remote control telemetry cluster (4) node; configuring relevant parameters of node type, networking mode, data format and verification mode; after the configuration is completed, the server side generates a corresponding certificate for each node; the MQTT cloud server terminal writes a data analysis script through configuration data sources and data purposes to generate a bidirectional data flow channel between the nodes of the acquisition cluster (2) and the nodes of the remote control telemetry cluster (4); the method comprises the steps of obtaining certificates generated when an MQTT cloud server (3) creates a node and converting the certificates into secret keys, filling secret key information in MQTT modules of an acquisition cluster (2) node and a remote control telemetry cluster (4) node, and configuring heartbeat and topic parameters of the remote control telemetry cluster (4) node and the MQTT cloud server (3) to realize connection of the acquisition cluster (2) node and the MQTT cloud server end (3) of the remote control telemetry cluster (4) node.
5. The system of claim 1, wherein:
And the remote control telemetry cluster (4) is used for acquiring and analyzing real-time data of each remote machine (1) node in the network layer, displaying the real-time data on a ui interface in a visual way, and storing the real-time data in a database in a lasting way. Alarm display is carried out on the abnormal data, and remote control is carried out on the remote machine (1) node;
After the remote telemetry cluster (4) nodes are connected to the MQTT network, data corresponding to the remote machine (1) nodes can be obtained and packaged and sent by the acquisition cluster (2) nodes, the remote telemetry cluster (4) nodes analyze the data according to the data types and then transmit the data to a data persistence module and a data visualization module of the remote telemetry cluster (4) nodes, the data persistence module classifies the data according to the data types and then stores the data into a corresponding database table for later analysis processing of abnormal data of airborne software, the data visualization module converts the analyzed data into a graph, a line graph, a table and other graphical visualizations and presents the graph to a UI interface, and after the data analysis module analyzes the data, the analysis result is displayed to the UI interface and an abnormal data alarm is displayed, so that a debugger can conveniently analyze the remote telemetry data of the remote machine (1) nodes;
When remote control is carried out, a remote control module encapsulates a debugging instruction of equipment according to a theme, service quality and a control instruction format and then issues the debugging instruction into a network, the control instruction flow is transferred to each acquisition node of an acquisition cluster (2) through an MQTT cloud server, and the acquisition nodes analyze and then issue the control instruction into a remote machine (1) node connected with the acquisition nodes, so that remote control of the remote machine (1) node is realized.
6. The method for networking and remote control and telemetry of the onboard software based on the MQTT is characterized by comprising the following steps of:
step S1, adding nodes at an MQTT cloud server (3) end;
s2, configuring a data stream at an MQTT cloud server (3);
step S3, connecting an MQTT cloud server (3) in the acquisition cluster (2), a remote control and telemetry node in the telemetry and remote control cluster (4) and the MQTT cloud server (3);
Step S4, remote data transmission;
s5, analyzing and processing remote data by a telemetry and remote control node in the telemetry and remote control cluster (4);
And S6, debugging and controlling the remote machine (1) by the telemetry and remote control node in the telemetry and remote control cluster (4).
7. The method according to claim 1, wherein step S1 comprises:
Creating an MQTT cloud server (3) in an acquisition cluster (2) of remote airborne display software at an MQTT cloud server (3) end, an MQTT cloud server (3) in the acquisition cluster (2) of remote airborne display control software, an MQTT cloud server (3) in the acquisition cluster (2) of remote airborne digital management, and a telemetry and remote control node in a client telemetry and remote control cluster (4);
And configuring relevant parameters such as node type, networking mode, data format, verification mode and the like. After the configuration is completed, the server side generates a corresponding certificate for each node.
8. The method according to claim 1, wherein step S2 comprises:
The MQTT cloud server (3) end configures the MQTT cloud server (3) i and topic data sources in the acquisition cluster (2), telemeters and remotes node names and id data in the telemetering and remoting cluster (4), and writes a data analysis script (var data=payload ('json');
writeIotTopic (1000, "/i 3vphepD vH/devTest/user/myTopic", "ata); ) And generating a bidirectional data flow channel between the MQTT cloud server (3) in the remote acquisition cluster (2) and the telemetry and remote control nodes in the telemetry and remote control cluster (4).
9. The method according to claim 1, wherein step S3 comprises:
Acquiring certificates generated when the MQTT cloud server (3) in the step S1 creates the node and converting the certificates into secret keys, filling secret key information in the MQTT cloud server (3) in the acquisition cluster (2) and the MQTT modules of the telemetry and remote control nodes in the telemetry and remote control cluster (4), and configuring parameters such as heartbeat and topic of the MQTT client and the server so as to realize connection between the MQTT cloud server (3) in the acquisition cluster (2) and the MQTT client of the control node and the MQTT cloud server (3). The acquisition software and the monitoring software are both MQT modules and are built, and the monitoring software is combined with a Chart module of the QT, a custom control and a mysql database to realize the lasting preservation, modularization and visual display of data.
10. The method according to claim 1, wherein step S4 comprises:
connecting remote airborne software with an MQTT cloud server (3) in the acquisition cluster (2);
The remote terminal (1) uploads data to the MQTT cloud server (3) in the acquisition cluster (2) according to data type classification, and the MQTT cloud server (3) in the acquisition cluster (2) analyzes the data and encapsulates the data according to the data type, the data length, the channel number and specific data;
According to the theme configured by the MQTT cloud server (3) in the acquisition cluster (2), the service quality issues data such as can, 1553b, gpio, serial ports and the like through the MQTT client, and the MQTT cloud server (3) forwards the data of the MQTT cloud server (3) in the acquisition cluster (2) to the MQTT cloud servers (3) in other acquisition clusters (2) or telemetry and remote control nodes in a telemetry and remote control cluster (4) according to the data circulation channel configured in the step (2);
when a telemetry and remote control node in a telemetry and remote control cluster (4) needs to control a remote machine (1), the telemetry and remote control node in the telemetry and remote control cluster (4) frames a control instruction and then uploads the control instruction to an MQTT cloud server (3), the cloud server transmits data to the MQTT cloud server (3) in a target acquisition cluster (2) through a data flow channel, and the control instruction is transmitted to the remote machine (1) connected with the data flow channel through the MQTT cloud server (3) in the acquisition cluster (2);
The step S5 comprises the following steps:
When a telemetry and remote control node in a telemetry and remote control cluster (4) receives data of an MQTT cloud server (3), classifying the data according to a message header, analyzing can data, gpio data, 1553B data, serial port data and the like according to protocol frames, and then sending the analyzed can data, gpio data, 1553B data, serial port data and the like to a database module and a data visualization module of a monitoring node, wherein the database module stores appointed data for persistence treatment;
The visualization module converts the response data into visual display of a chart, and sets a threshold value for the data concerned;
When the data is abnormal, a signal is sent, and after the signal is received by a display interface of a telemetry and remote control node in the telemetry and remote control cluster (4), corresponding alarm information is displayed according to the signal type.
The remote control module in the remote control nodes in the remote control cluster (4) comprises related control instructions for controlling the remote machine (1), and the remote control nodes in the remote control cluster (4) are packaged according to the theme, the service quality and the format of the control instructions by combining the type of the issued control instructions through the configured theme;
The remote debugging module interface selects the encapsulated control instruction, and a telemetry and remote control node in the telemetry and remote control cluster (4) issues the instruction to an MQTT network, and a data flow channel configured by the MQTT cloud server (3) reaches the MQTT cloud server (3) in the remote acquisition cluster (2);
the MQTT cloud server (3) in the acquisition cluster (2) analyzes according to the MQTT data format and then transmits the data to remote record software connected with the MQTT cloud server, response information of the airborne software is received, the data is packaged and fed back to a remote control telemetry node in the telemetry and remote control cluster (4), and therefore remote control of the remote airborne software is achieved.
CN202311678843.2A 2023-12-07 2023-12-07 Onboard software networking and remote control telemetry system and method based on MQTT Pending CN118264935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311678843.2A CN118264935A (en) 2023-12-07 2023-12-07 Onboard software networking and remote control telemetry system and method based on MQTT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311678843.2A CN118264935A (en) 2023-12-07 2023-12-07 Onboard software networking and remote control telemetry system and method based on MQTT

Publications (1)

Publication Number Publication Date
CN118264935A true CN118264935A (en) 2024-06-28

Family

ID=91604492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311678843.2A Pending CN118264935A (en) 2023-12-07 2023-12-07 Onboard software networking and remote control telemetry system and method based on MQTT

Country Status (1)

Country Link
CN (1) CN118264935A (en)

Similar Documents

Publication Publication Date Title
US11825547B2 (en) System, method and apparatus for virtual building management
US11734213B2 (en) Integration of multiple communication physical layers and protocols in a process control input/output device
US11128726B2 (en) Transmission method
US11812288B2 (en) System, method and apparatus for presentation of sensor information to a building control system
US20200336925A1 (en) System, Method and Apparatus for Managing Disruption in a Sensor Network Application
US10147292B2 (en) Train smoke and fire alarm communication method based on independent modules combination and 3U chassis structure
CN111314339B (en) Data transmission method and device
CN113377091B (en) Carrier rocket test launch control system
CN112202789A (en) Method and system for processing panoramic sensing data of transformer substation
Cupek et al. An OPC UA server as a gateway that shares CAN network data and engineering knowledge
CN112003753B (en) Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway
CN118264935A (en) Onboard software networking and remote control telemetry system and method based on MQTT
CN109819010A (en) Method for sending from data-message to electronic receiving equipment, associated electrical sending device and computer program
CN113848834B (en) Workshop equipment access system and method based on edge cloud cooperation
US20220048253A1 (en) Data Aggregation and Analytics for Digital Manufacturing
CN108243232B (en) Industrial network information interconnection method and system
CN206640613U (en) A kind of equipment runs intelligent and safe monitoring system
JP6496874B1 (en) Communications system
US11144026B2 (en) Plant-monitoring autonomous control system
Guo et al. Web-based IoT and Robot SCADA using MQTT protocol
CN112615930B (en) Multi-node data synchronous distribution method, device, equipment and storage medium
CN117075046A (en) Radar centralized control method and system
CN114357960A (en) Data speed limit system based on self-defined report
CN110213378A (en) A kind of distribution of real-time data acquisition task and management method and system
CN117914972A (en) Equipment data interaction method and device based on Internet of things

Legal Events

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