CN114531437B - MQTT-based non-homologous uplink data processing method and device - Google Patents

MQTT-based non-homologous uplink data processing method and device Download PDF

Info

Publication number
CN114531437B
CN114531437B CN202210150766.2A CN202210150766A CN114531437B CN 114531437 B CN114531437 B CN 114531437B CN 202210150766 A CN202210150766 A CN 202210150766A CN 114531437 B CN114531437 B CN 114531437B
Authority
CN
China
Prior art keywords
plug
mqtt
data
homologous
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210150766.2A
Other languages
Chinese (zh)
Other versions
CN114531437A (en
Inventor
杜鹏跃
于军伟
王路宽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mgjia Beijing Technology Co ltd
Original Assignee
Mgjia Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mgjia Beijing Technology Co ltd filed Critical Mgjia Beijing Technology Co ltd
Priority to CN202210150766.2A priority Critical patent/CN114531437B/en
Publication of CN114531437A publication Critical patent/CN114531437A/en
Application granted granted Critical
Publication of CN114531437B publication Critical patent/CN114531437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a non-homologous uplink data processing method and device based on MQTT. The method is applied to a management end of a non-homologous uplink data system based on MQTT, and comprises the following steps: when data based on the MQTT is received, determining the type of executing the plug-in change command according to the received data based on the MQTT; according to the type of the plug-in change command, changing the corresponding plug-in template to form a target plug-in; and starting a data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT. According to the scheme, the corresponding plug-in is generated to process the corresponding non-homologous uplink data, and for different non-homologous uplink data, the MQTT channel system does not need to be independently re-developed, so that the processing efficiency of the non-homologous uplink data is improved, and the reusability of the existing channel system is improved.

Description

MQTT-based non-homologous uplink data processing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a non-homologous uplink data processing method and device based on MQTT.
Background
Message Queue Telemetry Transport (MQTT) is a messaging protocol based on the publish/subscribe paradigm under the ISO standard, which operates over the TCP/IP suite of protocols, and is a publish/subscribe messaging protocol designed for remote devices with poor hardware performance and in situations of poor network conditions. Based on the protocol advantage of MQTT, more and more intelligent hardware supporting the networking function realize the functions of equipment networking, data interaction and the like based on the MQTT protocol.
The MQTT channel system established by the MQTT protocol comprises the functions of externally providing equipment connection, data reporting, data issuing and the like. At present, in many scenes, networking equipment needs to report data to a cloud continuously, corresponding equipment can be connected to the cloud through an MQTT channel system, the equipment assembles original data according to a predefined format and packages the original data into an MQTT message body, and then the data can be reported to the cloud based on an MQTT protocol. After receiving the data, the MQTT channel platform extracts original binary data from the MQTT message body, analyzes the binary data according to a format negotiated with equipment in advance, and performs subsequent operations such as storage, forwarding and the like according to specific requirements after the analysis is completed.
However, the format and content of the uplink data at the device side are different, and different devices and similar devices of different manufacturers report data according to the specific format and content. Therefore, the format of the uplink data corresponding to the device needs to be determined, which is convenient for the channel system to perform data analysis after receiving the data, and the cloud channel system generally needs to perform subsequent processing on the data after successfully analyzing the data reported by the device, for example: storing data (storing the analyzed data into databases such as MySQL, redis, cassandra, mongoDB, hive, HBase and the like), forwarding data (sending the data through protocols such as Kafka, pulsar, MQTT, rabbitMQ, rocktetMQ, HTTP API and the like), carrying out primary processing on the original data, and then carrying out the operation through corresponding rules. Because different manufacturers have different corresponding data processing requirements and different corresponding data processing modes, the channel system cannot well meet the different data processing requirements corresponding to the different manufacturers.
If the corresponding MQTT channel system is provided according to the different data processing requirements corresponding to different manufacturers, because the total cardinality of the different data processing requirements corresponding to the different manufacturers is larger, more resources are required to be paid for each manufacturer or each requirement to be independently re-developed, and the reusability of the existing channel system is reduced.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the technical problem in the prior art that the reusability of the existing channel system is relatively low, thereby providing a method and an apparatus for processing non-homologous uplink data based on MQTT.
In a first aspect, an embodiment of the present invention provides a method for processing non-homologous uplink data based on MQTT, which is applied to a management end of a non-homologous uplink data system based on MQTT, and includes:
when data based on the MQTT is received, determining the type of executing the plug-in change command according to the received data based on the MQTT;
according to the type of the plug-in change command, changing the corresponding plug-in template to form a target plug-in;
and starting the data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT.
Preferably, the method for processing non-homologous uplink data based on MQTT further comprises determining to execute a plug-in modification command according to the received data based on MQTT;
the determining to execute the plug-in change command according to the received data based on the MQTT includes:
judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
if not, it is determined to execute the plug-in change command.
Preferably, the modifying the corresponding plug-in template according to the type of the plug-in modification command to form the target plug-in includes:
according to the type of the plug-in change command, changing the original data processing module of the corresponding plug-in template, or adding a new data processing module on the basis of the original data processing module to form a target plug-in;
further comprising:
and deleting the same module as the data processing module in the target plug-in from the MQTT channel.
Preferably, the data processing module is configured to initialize, destroy, combine, sort, and operate on data.
Preferably, the type of the plug-in change command comprises an update existing plug-in command and a create new plug-in command;
according to the type of the plug-in change command, changing the corresponding plug-in template to form a target plug-in, wherein the method comprises the following steps:
if the type of the plug-in change command is an existing plug-in command, downloading a historical plug-in with the highest data matching degree based on the MQTT as a target plug-in template; the goodness of fit is the number of the same type of data in the received data based on the MQTT and the input data of the historical plug-in;
changing the target plug-in template according to the data based on the MQTT and the first target processing mode to form a target plug-in;
if the type of the plug-in change command is a create new plug-in command, then:
downloading a preset plug-in template from a preset server;
and forming a target plug-in according to the data based on the MQTT and the second target processing mode and a preset plug-in template.
Preferably, the method for processing non-homologous uplink data based on MQTT further includes:
and packaging the target plug-in to form a target plug-in data packet, and uploading the target plug-in data packet to a cloud.
In a second aspect, an embodiment of the present invention further provides a device for processing non-homologous uplink data based on MQTT, which is applied to a management end of a non-homologous uplink data system based on MQTT, and includes:
the determining module is used for determining the type of the plug-in changing command according to the received data based on the MQTT when the data based on the MQTT is received;
the definition module is used for changing the corresponding plug-in template according to the type of the plug-in changing command so as to form a target plug-in;
and the processing module is used for starting the data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT.
Preferably, the MQTT-based non-homologous uplink data processing apparatus further includes:
the change module is used for determining and executing a plug-in change command according to the received data based on the MQTT;
the determining to execute the plug-in change command according to the received data based on the MQTT includes:
judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
if not, it is determined to execute the plug-in change command.
In a third aspect, a computer device provided according to an embodiment of the present invention includes: the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions, so as to implement the MQTT-based non-homologous uplink data processing method according to any one of the first aspect.
In a fourth aspect, a non-transitory computer-readable storage medium is provided according to an embodiment of the present invention, and the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions, when executed by a processor, implement the MQTT-based non-homologous uplink data processing method according to any one of the first aspects.
The method and the device for processing the non-homologous uplink data based on the MQTT have the following beneficial effects that:
according to the non-homologous uplink data processing method and device based on the MQTT, the type of the plug-in changing command is determined to be executed according to the received non-homologous uplink data based on the MQTT by receiving the non-homologous data based on the MQTT, and the corresponding plug-in template is changed according to the type of the plug-in changing command to form the target plug-in; and starting a data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT. The corresponding non-homologous uplink data are processed by generating the corresponding plug-in, for different non-homologous uplink data, the MQTT channel system does not need to be separately re-developed, and the plug-in for processing the data only needs to be changed, so that the corresponding processing requirement can be met, the processing efficiency of the non-homologous uplink data is improved, the processing flexibility of the non-homologous uplink data is enhanced, the processing efficiency of the non-homologous data with a large base number is ensured, and the reusability of the existing channel system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a non-homologous uplink data processing method based on MQTT according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for processing non-homologous uplink data based on MQTT according to an embodiment of the present invention;
fig. 3 is a block diagram of a non-homologous uplink data processing device based on MQTT according to an embodiment of the present invention;
fig. 4 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in a specific case to those of ordinary skill in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Although the processes described below include multiple operations that occur in a particular order, it should be clearly understood that the processes may include more or fewer operations that are performed sequentially or in parallel.
Example 1
Fig. 1 is a flowchart of a recovery point target adjustment backup method according to an embodiment of the present invention, and an embodiment of the present invention provides a non-homologous uplink data processing method based on MQTT, which is applied to a management end of a non-homologous uplink data system based on MQTT, and as shown in fig. 1, the method includes the following steps:
step S101, when data based on MQTT is received, determining the type of executing a plug-in change command according to the received data based on the MQTT;
s102, changing a corresponding plug-in template according to the type of a plug-in changing command to form a target plug-in;
step S103, starting a data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT.
In the above embodiment, specifically, when data based on MQTT is received, the type of the plug-in change command to be executed is determined according to the received data based on MQTT, that is, for uplink data of non-identical sources, corresponding data processing requirements are different, and a part corresponding to data processing in the existing MQTT channel system is separated to replace a plug-in pair applied to processing data. For non-homologous upstream data, the corresponding data processing requirements are different, and therefore, for non-homologous upstream data, the corresponding plug-ins for processing data are also different. When the management end of the MQTT-based non-homologous uplink data system receives the MQTT-based non-homologous uplink data, the type of the plug-in change command needs to be determined and executed according to the received MQTT-based non-homologous uplink data. For example, manufacturer a has independently developed an autopilot system, applied to an automobile a _ a, and performs data processing on the uplink data of four radars for automobile sensing and monitoring through an MQTT system, that is, a management terminal receives the uplink data of the four radars, however, after a series of subsequent safety detection experiments, manufacturer a finds that the data amount of the four radars is insufficient, and still needs to add two radars. After two radars are correspondingly added, the management terminal correspondingly receives the data of six radars ascending, namely the data to be processed belongs to the data of six different radars ascending. In the data processing of the four radar uplink data for the automobile sensing monitoring through the MQTT system, the four radar uplink data are processed through the created processing plug-in corresponding to the four radar uplink data, and at the moment, the data received by the corresponding management end is the six non-homologous radar uplink data, so that the corresponding data processing requirements and processing modes are different from the processing requirements and processing modes of the four radar data. Therefore, when uplink data of six non-homologous radars based on MQTT are received, the type of executing the plugin modification command needs to be determined according to the received uplink data of the six radars. For example, determining the type of executing the plug-in change command may be to update an existing plug-in command, i.e., add a new data processing module on the basis of a plug-in corresponding to data upstream of four radars, e.g., add a data processing module for two radars added. And changing the corresponding plug-in template according to the type of the plug-in change command to form a target plug-in, namely changing the plug-ins corresponding to the data uplink by the four radars to form the target plug-in suitable for the uplink data of the six non-homologous radars. And after the target plug-in is formed, starting a data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT.
In the above embodiment, specifically, the type of the plug-in change command is determined according to the received non-homologous uplink data based on the MQTT by receiving the non-homologous data based on the MQTT, and the corresponding plug-in template is changed according to the type of the plug-in change command to form the target plug-in; and starting a data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT. The corresponding non-homologous uplink data are processed by generating the corresponding plug-in, for different non-homologous uplink data, the MQTT channel system does not need to be separately re-developed, and the plug-in for processing the data only needs to be changed, so that the corresponding processing requirement can be met, the processing efficiency of the non-homologous uplink data is improved, the processing flexibility of the non-homologous uplink data is enhanced, the processing efficiency of the non-homologous data with a large base number is ensured, and the reusability of the existing channel system is improved.
In an optional implementation manner, referring to fig. 2, the method for processing non-homologous uplink data based on MQTT further includes:
and step S104, determining to execute a plug-in change command according to the received data based on the MQTT.
The determining to execute the plug-in change command according to the received data based on the MQTT includes:
1) Judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
2) If not, it is determined to execute the plug-in change command.
In the above embodiment, specifically, the plug-in change command is determined to be executed according to the received data based on MQTT, that is, when there is no processing plug-in corresponding to the current uplink data, the plug-in change command needs to be executed. Conversely, if there is a corresponding plug-in, the plug-in may be directly applied to process the current uplink data. For example, in addition to the above example, if the management side receives uplink data of four radars of another car a _ b, it is determined whether or not a corresponding processing plug-in is stored, and if the car model of the car is identical to that of a _ b and that of a _ a, and only the arrangement is different, that is, the a _ b and a _ a are different only in terms of whether or not the interior is luxurious, and there is no difference in terms of the car type and the radar position setting, it can be determined that a corresponding plug-in exists, that is, a processing plug-in corresponding to the uplink data of the four radars of a _ b, that is, the above-mentioned "plug-in corresponding to uplink data of four radars" is stored, and then data processing can be performed by directly using the existing plug-in. If the management end receives uplink data of the four radars of the automobile A _ c, however, the models of the automobile A _ c and the automobile A _ a are completely different, the models of the automobiles are completely different (the length, the width and the height are completely different) and the positions of the four radars are not consistent, determining that no corresponding processing plug-in exists, and correspondingly determining to execute and update the existing plug-in command. For example, the plug-in change command may be a command modified on the basis of the processing plug-in of the four radar upstream data corresponding to a _ a. If the manufacturer B correspondingly produces the automobile B _ a, which is also provided with four radars, and the automobile B _ a is completely different from the automobile a _ a, it is determined that the corresponding processing plugin does not exist, and the management end of the manufacturer B correspondingly determines to execute a plugin change command when receiving the uplink data of the four non-homologous radars of the corresponding automobile B _ a, and the corresponding plugin change command can be a command for creating a new plugin.
In the above embodiment, by determining to execute the plug-in change command according to the received data based on MQTT and determining whether the corresponding processing plug-in exists, repeated change of the plug-in is avoided, the processing efficiency of the non-homologous uplink data is improved, and the flexibility of data processing is further improved. The efficiency of processing the non-homologous data with large base number is ensured, and the reusability of the existing channel system is further improved.
In an optional embodiment, the modifying the corresponding plug-in template according to the type of the plug-in modification command to form the target plug-in includes:
according to the type of the plug-in change command, changing the original data processing module of the corresponding plug-in template, or adding a new data processing module on the basis of the original data processing module to form a target plug-in;
further comprising:
and deleting the same module as the data processing module in the target plug-in from the MQTT channel.
In the above embodiments, specifically, the plug-in changes the corresponding subdivided function type, including creating, deleting, upgrading, denoising, and the like, where "creating, deleting, upgrading, denoising" is merely a general expression for describing the change of the corresponding function. Specifically, taking "upgrade" as an example, a corresponding plug-in is selected from existing plug-ins, and the selected plug-in is modified to perform "upgrade" to form a corresponding target plug-in, that is, to update the existing plug-ins to obtain the target plug-in.
In the above embodiment, the corresponding plug-in template is changed according to the type of the plug-in change command, the corresponding data processing module is changed or a new data processing module is added to form the target plug-in, and similarly, the corresponding data processing module is deleted or disabled to form the corresponding target plug-in, which is not described herein again. The data processing function of the channel system is reduced by deleting the module which is the same as the data processing module in the target plug-in from the MQTT channel, non-homologous uplink data does not need to be processed through the data processing function of the channel system but is processed through the data processing function of the corresponding plug-in, the channel system only needs to carry out data transmission, the data transmission and the data processing function are divided, when the function related to the data processing needs to be modified, the channel system does not need to be modified, only the corresponding plug-in needs to be modified, the modification of the channel system is reduced, the stability of the channel system is improved, the flexibility of the data processing is improved, and the reusability of the existing channel system is further improved.
In an optional embodiment, the data processing module is configured to initialize, destroy, combine, sort, and operate on data.
In the above embodiment, specifically, the data processing module is configured to initialize, destroy, combine, sort, and operate data, that is, the functions of the data processing module include but are not limited to:
data initialization, which is used for initializing the data to be processed;
data destruction, which is used for deleting and destroying the target destruction data;
the data combination is used for combining and merging related item data, for example, after two radars are additionally arranged, the original data statistics function can be combined with the newly-added data statistics of the two radars through the data combination function, so that the subsequent data processing of six radars can be performed;
and the data operation is used for processing the data set of the related item to obtain a corresponding data processing result.
In an alternative embodiment of the method according to the invention,
the type of the plug-in change command comprises an update existing plug-in command and a create new plug-in command;
according to the type of the plug-in change command, changing the corresponding plug-in template to form a target plug-in, comprising:
if the type of the plug-in change command is an existing plug-in command, downloading a historical plug-in with the highest data matching degree based on the MQTT as a target plug-in template; the goodness of fit is the number of the same type of data in the received data based on the MQTT and the input data of the historical plug-in;
changing the target plug-in template according to the data based on the MQTT and the first target processing mode to form a target plug-in;
if the type of the plug-in change command is a create new plug-in command, then:
downloading a preset plug-in template from a preset server;
and forming a target plug-in according to the data based on the MQTT and the second target processing mode and a preset plug-in template.
In the foregoing embodiment, specifically, if there are plug-ins of the same type or plug-ins of similar function modules, it may be determined that the type of the plug-in change command is an update existing plug-in command, and the plug-in change command is applied to update processing of non-homologous uplink data, and may be changed on the existing plug-ins, so as to reduce workload of corresponding change plug-ins in data processing update. Further, if the type of the plug-in change command is an existing plug-in update command, downloading a historical plug-in with the highest data matching degree based on the MQTT as a first plug-in template; and the goodness of fit is the number of the same type of data in the received data based on the MQTT and the input data of the historical plug-ins, and a corresponding processing mode is determined according to the corresponding non-homologous uplink data and the corresponding data processing requirements so as to change the historical plug-ins with the highest goodness of fit to obtain the target plug-ins.
On the other hand, if the corresponding plug-in of the same type does not exist, or the corresponding plug-in of the non-homologous uplink data is primarily developed, after the corresponding non-homologous uplink data is received, the type of the plug-in change command is determined to be a command for creating a new plug-in, and the preset plug-in template is downloaded from the preset server, for example, the preset plug-in template can be downloaded from the cloud server. And after the preset plug-in template is obtained, determining a processing mode for generating the plug-in according to the received corresponding non-homologous uplink data and the corresponding data processing requirement so as to generate the target plug-in based on the preset plug-in template.
In the above embodiment, specifically, by distinguishing the type of the plug-in change command, the type of the corresponding plug-in change command is determined according to the actually corresponding non-homologous uplink data, and then it is determined whether to update the plug-in based on the existing plug-in or to create a new plug-in by downloading a preset plug-in template from the corresponding preset server, so that the efficiency of forming a target plug-in when the plug-in is used for data processing on the non-homologous uplink data is improved, and the situation that the preset plug-in is repeatedly downloaded to create a new plug-in is avoided. The efficiency of processing the non-homologous uplink data by using the plug-in is further improved, and the flexibility of data processing is further improved. The efficiency of processing the non-homologous data with large base number is ensured, and the reusability of the existing channel system is further improved.
In an optional embodiment, the method for processing non-homologous uplink data based on MQTT further includes:
and packaging the target plug-in to form a target plug-in data packet, and uploading the target plug-in data packet to a cloud.
In the above embodiment, specifically, the target plug-in data packet is uploaded to the cloud, so that different management ends of corresponding non-homologous uplink data systems are facilitated, and when corresponding non-homologous uplink data is received, the corresponding target plug-in is called from the cloud to process the corresponding non-homologous uplink data. The target plug-in is convenient to apply to different management ends, so that the use efficiency of the target plug-in is improved, the repeated generation of the target plug-in is avoided, the processing efficiency of non-homologous uplink data is improved, and the reusability of the existing channel system is further improved.
Example 2
The embodiment provides a non-homologous uplink data processing device based on MQTT, which is applied to a management end of a non-homologous uplink data system based on MQTT, and as shown in fig. 3, the non-homologous uplink data processing device based on MQTT includes:
the determining module 31 is configured to, when receiving data based on MQTT, determine a type of executing a plug-in change command according to the received data based on MQTT;
a definition module 32, configured to modify a corresponding plug-in template according to the type of the plug-in modification command to form a target plug-in;
and the processing module 33 is configured to start the data packet corresponding to the target plug-in, process the non-homologous uplink data in the MQTT by using the data packet corresponding to the target plug-in, and return a processing result through the MQTT.
In an optional embodiment, the MQTT-based non-homologous uplink data processing apparatus further includes:
the change module is used for determining and executing a plug-in change command according to the received data based on the MQTT;
the determining to execute the plug-in change command according to the received data based on the MQTT includes:
judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
if not, it is determined to execute the plug-in change command.
The MQTT-based non-homologous uplink data processing apparatus according to the embodiment of the present application may be used in the MQTT-based non-homologous uplink data processing method implemented in the above embodiment 1, and the implementation principle and the technical effect are similar for the relevant details with reference to the above method embodiment, and are not described herein again.
It should be noted that: in the above embodiment, when the MQTT-based non-homologous uplink data processing device performs MQTT-based non-homologous uplink data processing, only the division of the functional modules is used for illustration, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the MQTT-based non-homologous uplink data processing device is divided into different functional modules to complete all or part of the above-described functions. In addition, the above-mentioned non-homologous uplink data processing device based on MQTT provided by the embodiment and the non-homologous uplink data processing method based on MQTT belong to the same concept, and the specific implementation process thereof is described in detail in the method embodiment and is not described herein again.
Example 3
Referring to fig. 4, an embodiment of the present invention further provides a computer device, which may be a desktop computer, a notebook computer, a palm computer, a cloud server, or other computer devices. The computer device may include, but is not limited to, a processor and a memory, where the processor and the memory may be connected by a bus or other means.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), an embedded Neural Network Processor (NPU), other dedicated deep learning coprocessor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the above-described method embodiments. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The one or more modules are stored in the memory and, when executed by the processor, perform the methods of the above-described method embodiments.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer-executable instructions, which are capable of executing the method in the above method embodiments. The non-transitory computer readable storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the non-transitory computer readable storage medium may also include a combination of memories of the above kind.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, computer device or non-transitory computer readable storage medium, all relating to or including a computer program product.
Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The features of the above-described embodiments may be arbitrarily combined, and for the sake of brevity, all possible combinations of the features in the above-described embodiments are not described, but should be construed as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
Obviously, the above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that various other changes and modifications could be made by those skilled in the art without departing from the spirit of the application and from the foregoing description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications derived therefrom are intended to be within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A non-homologous uplink data processing method based on MQTT is applied to a management end of a non-homologous uplink data system based on MQTT, and is characterized by comprising the following steps:
when data based on the MQTT is received, determining the type of executing the plug-in change command according to the received data based on the MQTT;
according to the type of the plug-in change command, changing the corresponding plug-in template to form a target plug-in;
starting a data packet corresponding to the target plug-in, processing non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT;
the type of the plug-in change command comprises an update existing plug-in command and a create new plug-in command;
the method for changing the corresponding plug-in template according to the type of the plug-in changing command to form the target plug-in comprises the following steps:
if the type of the plug-in change command is an existing plug-in command, downloading a historical plug-in with the highest data matching degree based on the MQTT as a target plug-in template; the goodness of fit is the number of the same type of data in the received data based on the MQTT and the input data of the historical plug-in;
changing the target plug-in template according to the data based on the MQTT and the first target processing mode to form a target plug-in;
if the type of the plug-in change command is a create new plug-in command, then:
downloading a preset plug-in template from a preset server;
and forming a target plug-in according to the data based on the MQTT and the second target processing mode and a preset plug-in template.
2. The method for processing non-homologous uplink data based on MQTT according to claim 1, further comprising determining to execute a plug-in modification command according to the received MQTT-based data;
the determining to execute the plug-in change command according to the received data based on the MQTT includes:
judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
if not, it is determined to execute the plug-in change command.
3. The method for processing non-homologous uplink data based on MQTT according to claim 1 or 2, wherein the modifying the corresponding plug-in template according to the type of the plug-in modification command to form the target plug-in comprises:
according to the type of the plug-in change command, changing the original data processing module of the corresponding plug-in template, or adding a new data processing module on the basis of the original data processing module to form a target plug-in;
further comprising:
and deleting the same module as the data processing module in the target plug-in from the MQTT channel.
4. The MQTT-based non-homologous uplink data processing method according to claim 3, wherein the data processing module is used for initializing, destroying, combining, sorting and operating data.
5. The method for processing non-homologous uplink data based on MQTT according to claim 1, further comprising:
and packaging the target plug-in to form a target plug-in data packet, and uploading the target plug-in data packet to a cloud.
6. A non-homologous uplink data processing device based on MQTT is applied to a management end of a non-homologous uplink data system based on MQTT, and is characterized by comprising the following components:
the determining module is used for determining the type of the plug-in changing command according to the received data based on the MQTT when the data based on the MQTT is received;
the definition module is used for changing the corresponding plug-in template according to the type of the plug-in changing command so as to form a target plug-in;
the type of the plug-in change command comprises an update existing plug-in command and a create new plug-in command;
the changing the corresponding plug-in template according to the type of the plug-in changing command to form the target plug-in comprises:
if the type of the plug-in change command is an update existing plug-in command, downloading a historical plug-in with the highest data matching degree based on the MQTT as a target plug-in template; the goodness of fit is the number of the same type of data in the received data based on the MQTT and the input data of the historical plug-in;
changing the target plug-in template according to the data based on the MQTT and the first target processing mode to form a target plug-in;
if the type of the plug-in change command is a create new plug-in command, then:
downloading a preset plug-in template from a preset server;
forming a target plug-in according to the data based on the MQTT and a second target processing mode and a preset plug-in template;
and the processing module is used for starting the data packet corresponding to the target plug-in, processing the non-homologous uplink data in the MQTT by adopting the data packet corresponding to the target plug-in, and returning a processing result through the MQTT.
7. The MQTT-based non-homologous uplink data processing apparatus according to claim 6, wherein the apparatus further comprises:
the change module is used for determining and executing a plug-in change command according to the received data based on the MQTT;
the determining to execute the plug-in change command according to the received data based on the MQTT includes:
judging whether a processing plug-in corresponding to the uplink data based on the MQTT is stored or not;
if not, it is determined to execute the plug-in change command.
8. A computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected with each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the MQTT-based non-homologous uplink data processing method according to any one of claims 1 to 5.
9. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a processor, implement the MQTT-based non-homologous upstream data processing method according to any one of claims 1 to 5.
CN202210150766.2A 2022-02-14 2022-02-14 MQTT-based non-homologous uplink data processing method and device Active CN114531437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210150766.2A CN114531437B (en) 2022-02-14 2022-02-14 MQTT-based non-homologous uplink data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210150766.2A CN114531437B (en) 2022-02-14 2022-02-14 MQTT-based non-homologous uplink data processing method and device

Publications (2)

Publication Number Publication Date
CN114531437A CN114531437A (en) 2022-05-24
CN114531437B true CN114531437B (en) 2023-02-17

Family

ID=81622111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210150766.2A Active CN114531437B (en) 2022-02-14 2022-02-14 MQTT-based non-homologous uplink data processing method and device

Country Status (1)

Country Link
CN (1) CN114531437B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729238A (en) * 2017-10-09 2018-02-23 郑州云海信息技术有限公司 A kind of plug-in unit adjustment method, system, device and computer-readable recording medium
CN109743202A (en) * 2018-12-26 2019-05-10 中国联合网络通信集团有限公司 Management method, device, equipment and the readable storage medium storing program for executing of data
CN109739868A (en) * 2019-01-08 2019-05-10 深圳市网心科技有限公司 A kind of data processing method and its relevant device
CN110019434A (en) * 2018-08-23 2019-07-16 深圳市信锐网科技术有限公司 Internet of things data processing method, device, platform and storage medium
WO2021008258A1 (en) * 2019-07-15 2021-01-21 北京一流科技有限公司 Data flow acceleration member in data processing path of coprocessor and method thereof
CN112925811A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Data processing method, device, equipment, storage medium and program product
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN113535134A (en) * 2021-08-20 2021-10-22 华润电力技术研究院有限公司 System, method and device for processing wind turbine data middling platform and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852971B (en) * 2015-04-24 2020-11-10 青岛海尔智能家电科技有限公司 Plug-in protocol device and data communication method based on plug-in protocol
CN113726579A (en) * 2021-09-02 2021-11-30 国网信息通信产业集团有限公司 Method and device for realizing power Internet of things communication protocol plug-in

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729238A (en) * 2017-10-09 2018-02-23 郑州云海信息技术有限公司 A kind of plug-in unit adjustment method, system, device and computer-readable recording medium
CN110019434A (en) * 2018-08-23 2019-07-16 深圳市信锐网科技术有限公司 Internet of things data processing method, device, platform and storage medium
CN109743202A (en) * 2018-12-26 2019-05-10 中国联合网络通信集团有限公司 Management method, device, equipment and the readable storage medium storing program for executing of data
CN109739868A (en) * 2019-01-08 2019-05-10 深圳市网心科技有限公司 A kind of data processing method and its relevant device
WO2021008258A1 (en) * 2019-07-15 2021-01-21 北京一流科技有限公司 Data flow acceleration member in data processing path of coprocessor and method thereof
CN112925811A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Data processing method, device, equipment, storage medium and program product
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN113535134A (en) * 2021-08-20 2021-10-22 华润电力技术研究院有限公司 System, method and device for processing wind turbine data middling platform and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于Rhinoceros平台的FLAC3D复杂三维边坡建模技术研究;王楠等;《中国水运(下半月)》;20190315(第03期);全文 *
基于Web的平台/插件式CAPP***研究;张胜文等;《中国机械工程》;20130225(第04期);全文 *
插件结构软件在卫星地面***中的应用;周冰等;《计算机工程》;20100120(第02期);全文 *

Also Published As

Publication number Publication date
CN114531437A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
US20240152354A1 (en) Self-healing learning system for one or more controllers
US20200311559A1 (en) Optimized decision tree machine learning for resource-constrained devices
DE102020201015A1 (en) TECHNOLOGIES FOR DISTRIBUTING ITERATIVE CALCULATIONS IN HETEROGENIC COMPUTER ENVIRONMENTS
CN111464627B (en) Data processing method, edge server, center server and processing system
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
US20230281513A1 (en) Data model training method and apparatus
US20170156018A1 (en) Method And Electronic Device For Online Tuning Application
CN113329070A (en) Method, device and equipment for acquiring vehicle operation data and storage medium
CN114298284A (en) Network model conversion method, device, system, storage medium and electronic device
US20240152756A1 (en) Streamlined development and deployment of autoencoders
CN114531437B (en) MQTT-based non-homologous uplink data processing method and device
CN115914215A (en) Remote upgrading method, device and system for vehicle-mounted switch
CN114371855A (en) Upgrading method, system and device of vehicle automatic driving system and electronic equipment
CN107454456B (en) Management control method and system for floating layer elements
US11775819B2 (en) Automated configuration determinations for data center devices using artificial intelligence techniques
CN108306757B (en) Programmable data plane virtual layer construction method and storage medium
CN112769935B (en) Equipment upgrading method and device, storage medium and electronic device
EP4203488A1 (en) Parameter configuration method and related system
CN113986289A (en) Firmware upgrading method and device for edge computing gateway
CN112699934B (en) Alarm classification method and device and electronic equipment
CN112148333B (en) Block chain server firmware updating system
CN115087042A (en) 5G private network data distribution method, device, equipment and storage medium
CN110580172B (en) Configuration rule verification method and device, storage medium and electronic device
CN114500508A (en) Gas meter upgrading method and device and electronic equipment
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration

Legal Events

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