CN111182065A - Message processing method and device based on MQTT protocol and computer equipment - Google Patents

Message processing method and device based on MQTT protocol and computer equipment Download PDF

Info

Publication number
CN111182065A
CN111182065A CN201911405333.1A CN201911405333A CN111182065A CN 111182065 A CN111182065 A CN 111182065A CN 201911405333 A CN201911405333 A CN 201911405333A CN 111182065 A CN111182065 A CN 111182065A
Authority
CN
China
Prior art keywords
message
equipment
control message
server
response
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
CN201911405333.1A
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.)
Miracle Intelligent Network Co ltd
Original Assignee
Miracle Intelligent Network 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 Miracle Intelligent Network Co ltd filed Critical Miracle Intelligent Network Co ltd
Priority to CN201911405333.1A priority Critical patent/CN111182065A/en
Publication of CN111182065A publication Critical patent/CN111182065A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a message processing method and device based on an MQTT protocol, computer equipment and a storage medium. The method comprises the following steps: acquiring a device control message generated by a trigger operation on a page, wherein the device control message carries a first message identifier and a first message theme, and sending the device control message to a server so that the server sends the device control message to a device subscribed with the first message theme; blocking a thread corresponding to the equipment control message, and receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier; and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain an execution result corresponding to the equipment control message. By adopting the method, the execution result corresponding to the equipment control message can be confirmed in time.

Description

Message processing method and device based on MQTT protocol and computer equipment
Technical Field
The application relates to the field of internet of things, in particular to a message processing method and device based on an MQTT protocol, computer equipment and a storage medium.
Background
The internet of things is an extended and expanded network on the basis of the internet, various devices are combined with the internet to form a huge network, and the interconnection and intercommunication of people, machines and objects at any time and any place are realized. Communication between various devices and the unified communication platform needs to be performed based on a communication protocol, and the MQTT (Message Queuing telemetry transport) protocol is a commonly used internet of things communication protocol. MQTT is a client and server based publish/subscribe transport protocol.
In the conventional technology, when the device communicates with the unified communication platform through an MQTT protocol, a user sends a device control command to a specified theme of a server through the unified communication platform, the device subscribes to the specified theme, and then the device receives the device control command and executes a corresponding action. In the whole communication process, only a simple equipment control command is sent on the unified communication platform, and an operation result corresponding to the equipment control command cannot be confirmed in time.
Disclosure of Invention
In view of the above, it is necessary to provide a message processing method and apparatus based on MQTT protocol, a computer device and a storage medium, which can check an execution result corresponding to a device control message in time.
A message processing method based on MQTT protocol, the method comprising:
acquiring a device control message generated by a trigger operation on a page, wherein the device control message carries a first message identifier and a first message theme;
sending the device control message to a server so that the server sends the device control message to devices subscribed to the first message topic;
blocking a thread corresponding to the equipment control message;
receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier;
and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain the execution result corresponding to the equipment control message.
A message processing device based on MQTT protocol, the device comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a device control message generated by triggering operation on a page, and the device control message carries a first message identifier and a first message theme;
a sending module, configured to send the device control message to a server, so that the server sends the device control message to a device subscribed to the first message topic;
the blocking module is used for blocking the thread corresponding to the equipment control message;
a receiving module, configured to receive an equipment response message sent by the server, where the equipment response message carries a second message identifier;
and the matching module is used for matching the first message identifier with the second message identifier, and when the matching is successful, the blocking state of the thread corresponding to the equipment control message is released, and the equipment response message is analyzed to obtain the execution result corresponding to the equipment control message.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a device control message generated by a trigger operation on a page, wherein the device control message carries a first message identifier and a first message theme;
sending the device control message to a server so that the server sends the device control message to devices subscribed to the first message topic;
blocking a thread corresponding to the equipment control message;
receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier;
and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain the execution result corresponding to the equipment control message.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a device control message generated by a trigger operation on a page, wherein the device control message carries a first message identifier and a first message theme;
sending the device control message to a server so that the server sends the device control message to devices subscribed to the first message topic;
blocking a thread corresponding to the equipment control message;
receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier;
and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain the execution result corresponding to the equipment control message.
According to the message processing method, the message processing device, the computer equipment and the storage medium based on the MQTT protocol, the equipment control message generated by triggering operation on the page is acquired, and the equipment control message carries the first message identifier and the first message theme and is sent to the server, so that the server sends the equipment control message to the equipment subscribing the first message theme; blocking a thread corresponding to the equipment control message, and receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier; and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain an execution result corresponding to the equipment control message. Therefore, after the terminal sends the equipment control message, the thread corresponding to the equipment control message is blocked, and the equipment response message corresponding to the equipment control message is synchronously waited. The blocking state of the equipment control message can be released only when the equipment response message corresponding to the equipment control message is received, so that the terminal can be ensured to receive the equipment response message corresponding to the equipment control message and confirm the execution result corresponding to the equipment control message in time.
A message processing method based on MQTT protocol, the method comprising:
receiving an equipment control message sent by a server, wherein the equipment control message carries a first message identifier, and a thread corresponding to the equipment control message is blocked by a terminal sending the equipment control message to the server;
storing the first message identification;
executing corresponding operation according to the equipment control message to obtain an execution result;
generating an equipment response message according to the execution result and the first message identifier, wherein the equipment response message carries a second message theme;
and sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
A message processing apparatus based on MQTT protocol, the apparatus comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a device control message sent by a server, the device control message carries a first message identifier, and a thread corresponding to the device control message is blocked by a terminal which sends the device control message to the server;
the storage module is used for storing the first message identifier;
the execution module is used for executing corresponding operation according to the equipment control message to obtain an execution result;
a message generating module, configured to generate a device response message according to the execution result and the first message identifier, where the device response message carries a second message theme;
and the sending module is used for sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, and the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving an equipment control message sent by a server, wherein the equipment control message carries a first message identifier, and a thread corresponding to the equipment control message is blocked by a terminal sending the equipment control message to the server;
storing the first message identification;
executing corresponding operation according to the equipment control message to obtain an execution result;
generating an equipment response message according to the execution result and the first message identifier, wherein the equipment response message carries a second message theme;
and sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving an equipment control message sent by a server, wherein the equipment control message carries a first message identifier, and a thread corresponding to the equipment control message is blocked by a terminal sending the equipment control message to the server;
storing the first message identification;
executing corresponding operation according to the equipment control message to obtain an execution result;
generating an equipment response message according to the execution result and the first message identifier, wherein the equipment response message carries a second message theme;
and sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
According to the message processing method and device based on the MQTT protocol, the computer equipment and the storage medium, the equipment control message sent by the server is received, the equipment control message carries the first message identifier, and the thread corresponding to the equipment control message is blocked by the terminal sending the equipment control message to the server; storing the first message identification, and executing corresponding operation according to the equipment control message to obtain an execution result; generating a device response message according to the execution result and the first message identifier, wherein the device response message carries a second message theme; and sending the equipment response message to the server so that the server sends the equipment response result to the terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message. Therefore, corresponding operation is executed according to the equipment control message to obtain an execution result, and the equipment response message is generated according to the execution result and the first message identifier carried by the equipment control message, so that the terminal can identify the equipment response message corresponding to the equipment control message according to the message identifier, further remove the blocking state of the equipment control message, and timely confirm the execution result corresponding to the equipment control message.
Drawings
FIG. 1 is a diagram of an application environment of a message processing method based on MQTT protocol in one embodiment;
FIG. 2 is a flow chart illustrating a message processing method based on MQTT protocol according to an embodiment;
FIG. 3 is a timing diagram of a message processing method based on the MQTT protocol in one embodiment;
FIG. 4 is a schematic flow chart illustrating a message processing method based on the MQTT protocol according to another embodiment;
FIG. 5 is a block diagram of a message processing device based on the MQTT protocol in one embodiment;
FIG. 6 is a block diagram of a message processing device based on MQTT protocol in another embodiment;
FIG. 7 is a block diagram of a message processing device based on MQTT protocol in another embodiment;
FIG. 8 is a block diagram of a message processing device based on MQTT protocol in a further embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another.
The message processing method based on the MQTT protocol provided by the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, the application environment includes a terminal 102, a server 104, and a device 106. The terminal 102 and the server 104 communicate over a network, and the server 104 and the device 106 communicate over the network. The terminal 102 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. The device 106 may be at least one of a home camera, a cell phone, a tablet computer, or a smart watch, among other smart devices.
Specifically, the terminal 102 may display a page, and generate a device control message through a trigger operation generated on the page, where the device control message carries a first message identifier and a first message theme. The terminal 102 sends the device control message to the server 104, and after receiving the device control message, the server 104 sends the device control message to the device 106 subscribing to the first message topic. The terminal 102 blocks the thread corresponding to the device control message. The terminal 102 receives a device response message sent by the server, where the device response message carries the second message identifier. The terminal 102 matches the first message identifier with the second message identifier, and when the matching is successful, the blocking state of the thread corresponding to the device control message is released, and the device response message is analyzed to obtain the execution result corresponding to the device control message. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
In one embodiment, as shown in fig. 2, a message processing method based on MQTT protocol is provided, which is described by taking the example that the method is applied to the terminal in fig. 1, and includes the following steps:
s202, acquiring a device control message generated by a trigger operation on the page, wherein the device control message carries a first message identifier and a first message theme.
The MQTT (Message queue Telemetry Transport) protocol is a lightweight instant messaging protocol based on a publish/subscribe paradigm of a client and a server. The MQTT Protocol is an application layer Protocol operating on top of the Transmission Control Protocol (TCP). The MQTT protocol involves three identities: publishers, servers, and subscribers. Wherein, the publisher and the subscriber are both clients. Publishers publish topics to servers and subscribers subscribe to the servers for the topics. The server is responsible for the transmission of information between the publishers and subscribers and information management. The publisher can publish messages on different topics, and the subscriber can receive messages sent by the server. The publisher may be a subscriber at the same time. Messages between publishers and subscribers are passed through the server, so the server can decouple between publishers and subscribers.
The device control message is a message with a control function, and is used for controlling the device to execute corresponding operations. The message identifier is an identifier for uniquely identifying the device control message, and may specifically include a character string of at least one character of letters, numbers, and symbols. The message subject is a label used to indicate the corresponding receiving end of the message. The message theme is stored in the server, and the server sends the message carrying the message theme to the terminal or the device subscribing the message theme. The first message topic may be used to indicate to the receiving device to which the device control message corresponds.
Specifically, the terminal runs with device control software, and the terminal can display a device control page through the device control software and display a control for triggering a device control message in the device control page. When a trigger operation acting on the control is detected, the terminal may generate a device control message. The trigger operation may be a single-click operation, a double-click operation, a long-press operation, a voice operation, or the like.
In one embodiment, an EXMQTT tool (extended Message queue telemetry transmission extension tool) is integrated in the terminal, and the EXMQTT tool can be used for solving the problem of asynchronous Message synchronous waiting return result and controlling the equipment at the Web end to realize the MQTT Message synchronous waiting response result. The EXMQTT tool is built based on the MQTT connection library of the current programming language and Redis (Remote Dictionary service). The Redis may be configured to cache the device control message and the device response message, and may further provide a corresponding interface to send the device control message and receive the device response message. And triggering the equipment selection control and the control content selection control by the user on an equipment control page of the terminal. When the triggering operation of the user is detected, the terminal generates a device control message according to the device and the control content selected by the user by using an EXMQTT tool, and adds a message identifier in the device control message. The terminal uses the EXMQTT tool to send the device control message to the server through the corresponding interface.
In one embodiment, the device control message may be a control of a single function of the device. The terminal sends a device control message to the server, and after the server sends the device control message to the corresponding device, the device can execute corresponding actions according to the device control message to start or close a single function.
In one embodiment, the device control message may also be one time control of multiple functions of the device. The terminal sends a device control message to the server, and the server sends the device control message to the corresponding device. After receiving the device control message, the device executes a plurality of actions in sequence according to a preset action execution sequence or a random sequence so as to start or close a plurality of functions. For example, when the device is a camera, the device control message may be used to control the camera to turn on a wireless network connection, then turn on an infrared light and turn on media data recording. The media data may specifically be audio data and/or video data.
S204, the equipment control message is sent to the server, so that the server sends the equipment control message to the equipment subscribed with the first message theme.
Specifically, the terminal transmits the device control message to the server. Because the device control message carries the first message topic, the server can search the device subscribed to the first message topic and send the device control message to the device subscribed to the first message topic. After receiving the device control message, the device may perform a corresponding operation according to the device control message.
And S206, blocking the thread corresponding to the equipment control message.
The blocking means that the thread corresponding to the device control message is suspended before the device response message corresponding to the device control message is received.
Specifically, the terminal blocks a thread corresponding to the device control message and waits for a device response message corresponding to the device control message. And the terminal continuously inquires the equipment response message with the message identifier consistent with the message identifier carried by the equipment control message in the cache through endless loop.
In one embodiment, when the terminal calls the corresponding interface to send the device control message by using the EXMQTT tool, the thread corresponding to the device control message is blocked to wait for the corresponding device response message. And the terminal continuously inquires the device response message matched with the device control message in the cache through dead cycle by using an EXMQTT tool, and the device control message is matched with the device response message through a message identifier.
And S208, receiving a device response message sent by the server, wherein the device response message carries the second message identifier.
The device response message is a message with a response function, and is used for replying to the device control message.
Specifically, the terminal receives the device response message sent by the server, and stores the received device response message in the cache. The device response message carries the second message identifier.
In one embodiment, the terminal receives the device response message and stores the received device response message in a cache using the EXMQTT tool.
S210, matching the first message identification with the second message identification, when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain the execution result corresponding to the equipment control message.
Specifically, the terminal may send a plurality of device control messages to the server, and the terminal may also receive a plurality of device response messages. Since the device control message and the device response message both carry the message identifier, the terminal can identify the device response message corresponding to the device control message through the message identifier. The terminal matches the second message identification of the equipment response message with the first message identification of the equipment control message, when the second message identification is the same as the first message identification, the matching is successful, and the equipment response message corresponds to the equipment control message. Therefore, the terminal releases the blocking state of the thread corresponding to the equipment control message, analyzes the thread according to the appointed field based on the programming language format corresponding to the equipment response message to obtain a corresponding execution result, feeds the execution result back to the user, and displays the execution result at the terminal. The execution result may specifically be an execution success or an execution failure.
In one embodiment, the programming language format corresponding to the device response message may be JSON (JavaScript object Notation). JSON is a lightweight data exchange format. JSON is easy for users to read and write, is easy for computer analysis and generation, and can effectively improve the network transmission efficiency. When the programming language format corresponding to the device response message is JSON, the device response message includes a message header, a message identifier, and a status code. The status code is a digital code for indicating a response status of the device to the device control message after the device receives the device control message, i.e., an execution result of the device to the device control message. The device response message is analyzed to obtain a status code, and a corresponding execution result can be determined according to the status code. Corresponding status codes may be preset for different execution results.
In one embodiment, the terminal uses the EXMQTT tool to look up in the cache for a device response message whose message identification is consistent with the first message identification of the device control message. And when the corresponding equipment response message is found, the terminal analyzes the equipment response message by using the EXMQTT tool to obtain the state code of the equipment response message.
In the message processing method based on the MQTT protocol, the device control message generated by triggering operation on the page is acquired, and the device control message carries the first message identifier and the first message theme and is sent to the server, so that the server sends the device control message to the device subscribing the first message theme; blocking a thread corresponding to the equipment control message, and receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier; and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain an execution result corresponding to the equipment control message. Therefore, after the terminal sends the equipment control message, the thread corresponding to the equipment control message is blocked, and the equipment response message corresponding to the equipment control message is synchronously waited. The blocking state of the equipment control message can be released only when the equipment response message corresponding to the equipment control message is received, so that the terminal can be ensured to receive the equipment response message corresponding to the equipment control message and confirm the execution result corresponding to the equipment control message in time.
In one embodiment, before step S202, the method for processing messages based on MQTT protocol includes: acquiring a terminal identifier; and sending the terminal identification as a second message theme to the server, and subscribing the second message theme so as to send the device response message to the terminal corresponding to the terminal identification when the server receives the device response message carrying the second message theme.
The terminal identifier is an identifier used for uniquely identifying the terminal, and may specifically include a character string of at least one character of letters, numbers, and symbols.
Specifically, the terminal searches for its own terminal identifier in the locally stored data. The terminal sends the terminal identification as a message topic to the server and subscribes the message topic to the server. After receiving the message theme, the server stores the message theme locally. After receiving the device response message sent by the device, the subsequent server may search, in the locally stored data, for a terminal that subscribes to the message topic according to the message topic carried by the device response message, and send the device response message to the terminal.
In the embodiment, the terminal identifier is used as a message topic and is sent to the server, and the message topic is subscribed, so that when the server receives the device response message carrying the message topic, the device response message can be conveniently and quickly sent to the terminal corresponding to the terminal identifier.
In one embodiment, before step S210, the method for processing messages based on MQTT protocol includes: acquiring the expiration time of the equipment control message, and acquiring the current time; and when the current time is greater than the expiration time, releasing the blocking state of the thread corresponding to the equipment control message.
Specifically, the expiration time of the device control message may be set in advance. If the current time is longer than the expiration time of the device control message, the terminal does not receive the device response message corresponding to the device control message all the time, and the terminal can actively remove the blocking state of the thread corresponding to the device control message. Further, after the blocking state is released, the execution result can be automatically determined to be the execution failure, and failure display information is generated to prompt the user equipment to respond to the overtime and execute the failure.
In one embodiment, the server does not receive the device response message sent by the device due to a device failure, and thus the terminal does not receive the device response message sent by the server. Or, the terminal and the server are disconnected due to the network abnormality, and the terminal cannot receive the device response message sent by the server. When the terminal cannot receive the device response message, the device control message cannot be matched with the corresponding device response message all the time, and the thread corresponding to the device control message can be kept in a blocking state all the time, so that the burden of the terminal is greatly increased. Therefore, the expiration time of the equipment control message is set, and if the current time is greater than the expiration time of the equipment control message, the terminal actively releases the blocking state of the thread corresponding to the equipment control message.
In one embodiment, the expiration time may be set according to a control object corresponding to the device control message. Because the performances of the devices of different models are different and the response time is also different, the corresponding expiration time can be set for the devices of different models.
In the above embodiment, the expiration time of the device control message is obtained, the current time is obtained, and when the current time is greater than the expiration time, the blocking state of the thread corresponding to the device control message is released. Therefore, when equipment failure or network failure occurs, the blocking state of the thread corresponding to the equipment control message can be actively released, so that the burden of the terminal is reduced, and the waste of terminal resources is avoided.
In one embodiment, after step S210, the method for processing messages based on MQTT protocol includes: and determining the response state of the equipment according to the execution result, and generating display information according to the response state of the equipment, wherein the display mode of the display information comprises at least one of video, image and voice, and the response state of the equipment comprises a response success state and a response failure state.
The response success state refers to that the equipment successfully executes corresponding operation within the effective time according to the equipment control message after receiving the equipment control message. The response failure state means that the device does not successfully execute corresponding operation within the valid time after receiving the device control message.
Specifically, the terminal determines the device response state according to an execution result obtained by analyzing the device response message. And generating corresponding display information according to the equipment response state and displaying to prompt the user equipment to control the response result of the message. For example, a user sends a device control message for turning on an infrared lamp of a camera to a server through a terminal. When the terminal receives the equipment response message corresponding to the equipment control message sent by the server, the equipment response message is analyzed to obtain a corresponding execution result. When the execution result is that the execution is successful, the response state of the equipment is determined to be a response success state, and success display information can be generated according to the response success state so as to prompt a user to successfully turn on an infrared lamp of the camera. When the execution result is that the execution fails, the response state of the equipment is determined to be the response failure state, and failure display information can be generated according to the response failure state so as to prompt the user that the infrared lamp of the camera fails to be turned on. The display mode of the display information comprises at least one of video, image and voice.
In one embodiment, the presentation information may further include a transmission time and specific content of the device control message, so that the user can quickly identify the device control message corresponding to the execution result.
In the above embodiment, the device response state is determined according to the execution result, and the display information is generated according to the device response state, where the display mode of the display information includes at least one of video, image, and voice, and the device response state includes a response success state and a response failure state. Therefore, the execution result corresponding to the equipment control message can be quickly and conveniently determined according to the display information, and the working efficiency is improved.
As shown in fig. 3, fig. 3 is a timing diagram of a message processing method based on MQTT protocol in an embodiment, where the timing diagram includes a terminal 102, a server 104, and a device 106.
The device sends the device identification of the device to the server as a first message topic and subscribes to the first message topic. And the terminal sends the terminal identification of the terminal to the server as a second message theme and subscribes the second message theme. And the terminal sends a device control message to the server, wherein the device control message carries the first message subject and the first message identifier. The terminal blocks the thread corresponding to the equipment control message and continuously inquires whether the equipment response message with the message identifier consistent with the message identifier of the equipment control message exists in the cache through endless loop. The server queries the equipment subscribed to the first message topic according to the equipment control message, and sends the equipment control message to the equipment subscribed to the first message topic. And after receiving the equipment control message, the equipment records the first message identifier, and executes corresponding operation according to the equipment control message to obtain an execution result. And the equipment generates an equipment response message according to the execution result and the first message identifier. And the equipment sends the equipment response message to the server, wherein the equipment response message carries the second message theme. And the server queries the terminal subscribed to the second message topic according to the equipment response message and sends the equipment response message to the terminal subscribed to the second message topic. And after receiving the equipment response message, the terminal stores the equipment response message into a cache. And the terminal searches the equipment response message matched with the equipment control message in the cache according to the message identifier of the equipment control message. And when the message identification of the equipment response message is the same as the message identification of the equipment control message, the equipment response message and the equipment control message are successfully matched. And when the matching is successful, the terminal releases the blocking state of the thread corresponding to the successfully matched equipment control message, and analyzes the successfully matched equipment response message to obtain an execution result. Further, the terminal may determine a device response state according to the execution result, and generate display information according to the device response state, where the display mode of the display information includes at least one of video, image, and voice, and the device response state includes a response success state and a response failure state.
In one embodiment, as shown in fig. 4, a message processing method based on MQTT protocol is provided, which is described by taking the example that the method is applied to the device in fig. 1, and includes the following steps:
s402, receiving a device control message sent by the server, wherein the device control message carries a first message identifier, and a thread corresponding to the device control message is blocked by a terminal sending the device control message to the server.
Specifically, the terminal sends a device control message to the server, and after receiving the device control message, the server locally searches for a device subscribing to the message topic according to the message topic carried by the device control message, and then sends the device control message to the device subscribing to the message topic. The device may receive a device control message sent by the server. The device control message carries a first message identifier, and a thread corresponding to the device control message is blocked at the terminal.
S404, storing the first message identification.
Specifically, after receiving the device control message, the device stores a first message identifier carried in the device control message.
And S406, executing corresponding operation according to the equipment control message to obtain an execution result.
Specifically, after receiving the device control message, the device may execute a corresponding action in response to the device control message, and obtain a corresponding execution result. For example, the device control message may be used to control the camera to turn on the infrared lamp, and the device corresponding to the device control message is the camera. And after receiving the equipment control message, the camera records the message identifier carried by the equipment control message, and starts the infrared lamp according to the equipment control message. And if the infrared lamp is successfully turned on by the camera, the execution result is successful. And if the infrared lamp is failed to be turned on by the camera, the execution result is execution failure.
In one embodiment, the device control message carries a timeout duration. And adding the overtime duration of the equipment control message and the receiving time of the equipment receiving the equipment control message to obtain the effective time of the equipment control message. And if the current time exceeds the effective time and the equipment does not successfully execute the corresponding operation, determining that the execution result is execution failure.
S408, generating a device response message according to the execution result and the first message identifier, wherein the device response message carries the second message theme.
Specifically, after the execution result is obtained, the device generates a device response message according to the execution result and the first message identifier. The device response message carries a second message theme, and the second message theme is used for indicating a receiving terminal corresponding to the device response message.
S410, sending the equipment response message to the server so that the server sends the equipment response result to the terminal subscribed with the second message theme, and the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
Specifically, the device sends a device response message to the server. The server can locally search a terminal subscribed with the message theme and send the device response message to the terminal subscribed with the message theme, so that the terminal matches the corresponding device control message through the message identifier after receiving the device response message, and further releases the blocking state of the thread corresponding to the device control message.
According to the message processing method and device based on the MQTT protocol, the computer equipment and the storage medium, the equipment control message sent by the server is received, the equipment control message carries the first message identifier, and the thread corresponding to the equipment control message is blocked by the terminal sending the equipment control message to the server; storing the first message identification, and executing corresponding operation according to the equipment control message to obtain an execution result; generating a device response message according to the execution result and the first message identifier, wherein the device response message carries a second message theme; and sending the equipment response message to the server so that the server sends the equipment response result to the terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message. Therefore, corresponding operation is executed according to the equipment control message to obtain an execution result, and the equipment response message is generated according to the execution result and the first message identifier carried by the equipment control message, so that the terminal can identify the equipment response message corresponding to the equipment control message according to the message identifier, further remove the blocking state of the equipment control message, and timely confirm the execution result corresponding to the equipment control message.
In one embodiment, before step S402, the method for processing messages based on MQTT protocol further includes: acquiring an equipment identifier; and sending the equipment identification as a first message theme to the server, and subscribing the first message theme so as to send the equipment control message to the equipment corresponding to the equipment identification when the server receives the equipment control message carrying the first message theme.
The device identifier is an identifier used for uniquely identifying the device, and may specifically include a character string of at least one character of letters, numbers, and symbols.
In one embodiment, the device identifier may specifically be a SN (Serial Number) corresponding to the device. The serial number can be generated by the equipment producer according to the production date of the equipment, the product model of the equipment, the serial number and other information when the equipment producer produces the equipment.
Specifically, the device searches for its own device identifier in locally stored data. The device sends the device identification as a message topic to the server and subscribes the message topic to the server. After receiving the message theme, the server stores the message theme locally. After receiving the device control message sent by the terminal, the subsequent server may search the terminal subscribed to the message topic in the locally stored data according to the message topic carried by the device control message, and send the device control message to the terminal.
In the embodiment, the device identifier is used as a message topic and is sent to the server, and the message topic is subscribed, so that the device control message can be conveniently and quickly sent to the device corresponding to the device identifier when the server receives the device control message carrying the message topic.
It should be understood that the steps in the above-described flowcharts are shown in order as indicated by the arrows, but the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a message processing apparatus based on MQTT protocol, the apparatus comprising: an obtaining module 502, a sending module 504, a blocking module 506, a receiving module 508, and a matching module 510.
The obtaining module 502 is configured to obtain a device control message generated by a trigger operation on a page, where the device control message carries a first message identifier and a first message theme.
A sending module 504, configured to send the device control message to the server, so that the server sends the device control message to the device subscribed to the first message topic.
And a blocking module 506, configured to block a thread corresponding to the device control message.
The receiving module 508 is configured to receive a device response message sent by the server, where the device response message carries the second message identifier.
The matching module 510 is configured to match the first message identifier with the second message identifier, and when the matching is successful, remove the blocking state of the thread corresponding to the device control message, and analyze the device response message to obtain an execution result corresponding to the device control message.
In one embodiment, the obtaining module 502 is further configured to obtain a terminal identifier; and sending the terminal identification as a second message theme to the server, and subscribing the second message theme so as to send the device response message to the terminal corresponding to the terminal identification when the server receives the device response message carrying the second message theme.
In one embodiment, as shown in fig. 6, the apparatus further comprises: the display module 511 is configured to determine a device response state according to the execution result, and generate display information according to the device response state, where a display manner of the display information includes at least one of a video, an image, and a voice, and the device response state includes a response success state and a response failure state.
In one embodiment, the matching module 510 is further configured to obtain an expiration time of the device control message, obtain a current time; and when the current time is greater than the expiration time, releasing the blocking state of the thread corresponding to the equipment control message.
The message processing device based on the MQTT protocol obtains the device control message generated by the trigger operation on the page, wherein the device control message carries the first message identifier and the first message theme, and sends the device control message to the server, so that the server sends the device control message to the device subscribed with the first message theme; blocking a thread corresponding to the equipment control message, and receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier; and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain an execution result corresponding to the equipment control message. Therefore, after the terminal sends the equipment control message, the thread corresponding to the equipment control message is blocked, and the equipment response message corresponding to the equipment control message is synchronously waited. The blocking state of the equipment control message can be released only when the equipment response message corresponding to the equipment control message is received, so that the terminal can be ensured to receive the equipment response message corresponding to the equipment control message and confirm the execution result corresponding to the equipment control message in time.
In one embodiment, as shown in fig. 7, there is provided yet another MQTT protocol-based message processing apparatus, including: a receiving module 702, a storing module 704, an executing module 706, a message generating module 708, and a sending module 710.
A receiving module 702, configured to receive a device control message sent by a server, where the device control message carries a first message identifier, and a thread corresponding to the device control message is blocked by a terminal that sends the device control message to the server;
a storage module 704, configured to store the first message identifier;
an executing module 706, configured to execute a corresponding operation according to the device control message, so as to obtain an execution result;
a message generating module 708, configured to generate a device response message according to the execution result and the first message identifier, where the device response message carries a second message theme;
the sending module 710 is configured to send the device response message to the server, so that the server sends the device response result to the terminal subscribed to the second message topic, so that the terminal releases the blocking state of the device control message after receiving the device response message.
In one embodiment, as shown in fig. 8, the apparatus further comprises: an obtaining module 701, configured to obtain a device identifier; and sending the equipment identification as a first message theme to the server, and subscribing the first message theme so as to send the equipment control message to the equipment corresponding to the equipment identification when the server receives the equipment control message carrying the first message theme.
The message processing device based on the MQTT protocol receives the equipment control message sent by the server, the equipment control message carries the first message identifier, and the thread corresponding to the equipment control message is blocked by the terminal which sends the equipment control message to the server; storing the first message identification, and executing corresponding operation according to the equipment control message to obtain an execution result; generating a device response message according to the execution result and the first message identifier, wherein the device response message carries a second message theme; and sending the equipment response message to the server so that the server sends the equipment response result to the terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message. Therefore, corresponding operation is executed according to the equipment control message to obtain an execution result, and the equipment response message is generated according to the execution result and the first message identifier carried by the equipment control message, so that the terminal can identify the equipment response message corresponding to the equipment control message according to the message identifier, further remove the blocking state of the equipment control message, and timely confirm the execution result corresponding to the equipment control message.
For the specific limitation of the message processing device based on MQTT protocol, reference may be made to the above limitation on the message processing method based on MQTT protocol, and details are not repeated here. The modules in the message processing device based on MQTT protocol may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal or a device, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a message processing method based on MQTT protocol. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the above-described MQTT protocol-based message processing method. The steps of the MQTT protocol-based message processing method herein may be steps in the MQTT protocol-based message processing methods of the above-described embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, causes the processor to carry out the steps of the above-mentioned MQTT protocol-based message processing method. The steps of the MQTT protocol-based message processing method herein may be steps in the MQTT protocol-based message processing methods of the above-described embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
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, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A message processing method based on MQTT protocol, the method comprising:
acquiring a device control message generated by a trigger operation on a page, wherein the device control message carries a first message identifier and a first message theme;
sending the device control message to a server so that the server sends the device control message to devices subscribed to the first message topic;
blocking a thread corresponding to the equipment control message;
receiving an equipment response message sent by the server, wherein the equipment response message carries a second message identifier;
and matching the first message identification with the second message identification, and when the matching is successful, releasing the blocking state of the thread corresponding to the equipment control message, and analyzing the equipment response message to obtain the execution result corresponding to the equipment control message.
2. The method of claim 1, wherein the obtaining of the device control message generated by the trigger operation on the page is preceded by:
acquiring a terminal identifier;
and sending the terminal identification as a second message theme to the server, and subscribing the second message theme so as to send the device response message to the terminal corresponding to the terminal identification when the server receives the device response message carrying the second message theme.
3. The method according to claim 1, wherein the matching the first message identifier and the second message identifier, when the matching is successful, the blocking status of the thread corresponding to the device control message is released, the device response message is analyzed, and after the execution result corresponding to the device control message is obtained, the method further comprises:
and determining a device response state according to the execution result, and generating display information according to the device response state, wherein the display mode of the display information comprises at least one of video, image and voice, and the device response state comprises a response success state, a response failure state and a no response state.
4. The method of claim 1, wherein prior to matching the first message identification with the second message identification, the method further comprises:
acquiring the expiration time of the equipment control message, and acquiring the current time;
and when the current time is greater than the expiration time, releasing the blocking state of the thread corresponding to the equipment control message.
5. A message processing method based on MQTT protocol, the method comprising:
receiving an equipment control message sent by a server, wherein the equipment control message carries a first message identifier, and a thread corresponding to the equipment control message is blocked by a terminal sending the equipment control message to the server;
storing the first message identification;
executing corresponding operation according to the equipment control message to obtain an execution result;
generating an equipment response message according to the execution result and the first message identifier, wherein the equipment response message carries a second message theme;
and sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, so that the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
6. The method of claim 5, wherein before the receiving the device control message sent by the server, the method further comprises:
acquiring an equipment identifier;
and sending the equipment identification as a first message theme to the server, and subscribing the first message theme so as to send the equipment control message to equipment corresponding to the equipment identification when the server receives the equipment control message carrying the first message theme.
7. A message processing apparatus based on MQTT protocol, the apparatus comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a device control message generated by triggering operation on a page, and the device control message carries a first message identifier and a first message theme;
a sending module, configured to send the device control message to a server, so that the server sends the device control message to a device subscribed to the first message topic;
the blocking module is used for blocking the thread corresponding to the equipment control message;
a receiving module, configured to receive an equipment response message sent by the server, where the equipment response message carries a second message identifier;
and the matching module is used for matching the first message identifier with the second message identifier, and when the matching is successful, the blocking state of the thread corresponding to the equipment control message is released, and the equipment response message is analyzed to obtain the execution result corresponding to the equipment control message.
8. A message processing apparatus based on MQTT protocol, the apparatus comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a device control message sent by a server, the device control message carries a first message identifier, and a thread corresponding to the device control message is blocked by a terminal which sends the device control message to the server;
the storage module is used for storing the first message identifier;
the execution module is used for executing corresponding operation according to the equipment control message to obtain an execution result;
a message generating module, configured to generate a device response message according to the execution result and the first message identifier, where the device response message carries a second message theme;
and the sending module is used for sending the equipment response message to a server so that the server sends the equipment response result to a terminal subscribed with the second message theme, and the terminal releases the blocking state of the equipment control message after receiving the equipment response message.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911405333.1A 2019-12-30 2019-12-30 Message processing method and device based on MQTT protocol and computer equipment Pending CN111182065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911405333.1A CN111182065A (en) 2019-12-30 2019-12-30 Message processing method and device based on MQTT protocol and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911405333.1A CN111182065A (en) 2019-12-30 2019-12-30 Message processing method and device based on MQTT protocol and computer equipment

Publications (1)

Publication Number Publication Date
CN111182065A true CN111182065A (en) 2020-05-19

Family

ID=70650546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911405333.1A Pending CN111182065A (en) 2019-12-30 2019-12-30 Message processing method and device based on MQTT protocol and computer equipment

Country Status (1)

Country Link
CN (1) CN111182065A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333262A (en) * 2020-10-30 2021-02-05 平安付科技服务有限公司 Data updating prompting method and device, computer equipment and readable storage medium
CN112738245A (en) * 2020-12-28 2021-04-30 青岛海尔科技有限公司 Method and device for determining equipment response information, storage medium and electronic device
CN113347151A (en) * 2021-04-28 2021-09-03 厦门海迈科技股份有限公司 Data interaction method based on socket shared memory
CN113454969A (en) * 2020-12-31 2021-09-28 商汤国际私人有限公司 Information interaction method and device, equipment, system and storage medium
CN113900834A (en) * 2021-09-24 2022-01-07 天津同阳科技发展有限公司 Data processing method, device, equipment and storage medium based on Internet of things technology
CN115378989A (en) * 2022-08-10 2022-11-22 上海黑眸智能科技有限责任公司 MQTT topic subscription system, method, terminal and medium based on wake-up channel

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147620A (en) * 2017-04-19 2017-09-08 武汉票据交易中心有限公司 A kind of interacting message processing method, client and service end
CN107248978A (en) * 2017-05-27 2017-10-13 武汉票据交易中心有限公司 A kind of message method for processing interception and system
CN109088723A (en) * 2018-10-26 2018-12-25 四川长虹电器股份有限公司 A kind of long-range control method based on MQTT agreement
CN109274730A (en) * 2018-09-04 2019-01-25 上海联寓智能科技有限公司 The optimization method and device that Internet of things system, MQTT message are transmitted
CN109495375A (en) * 2018-11-02 2019-03-19 广州小鹏汽车科技有限公司 Processing method, device, electronic equipment and the storage medium of MQTT message
CN110557398A (en) * 2019-09-12 2019-12-10 金蝶软件(中国)有限公司 Service request control method, device, system, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147620A (en) * 2017-04-19 2017-09-08 武汉票据交易中心有限公司 A kind of interacting message processing method, client and service end
CN107248978A (en) * 2017-05-27 2017-10-13 武汉票据交易中心有限公司 A kind of message method for processing interception and system
CN109274730A (en) * 2018-09-04 2019-01-25 上海联寓智能科技有限公司 The optimization method and device that Internet of things system, MQTT message are transmitted
CN109088723A (en) * 2018-10-26 2018-12-25 四川长虹电器股份有限公司 A kind of long-range control method based on MQTT agreement
CN109495375A (en) * 2018-11-02 2019-03-19 广州小鹏汽车科技有限公司 Processing method, device, electronic equipment and the storage medium of MQTT message
CN110557398A (en) * 2019-09-12 2019-12-10 金蝶软件(中国)有限公司 Service request control method, device, system, computer equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333262A (en) * 2020-10-30 2021-02-05 平安付科技服务有限公司 Data updating prompting method and device, computer equipment and readable storage medium
CN112738245A (en) * 2020-12-28 2021-04-30 青岛海尔科技有限公司 Method and device for determining equipment response information, storage medium and electronic device
CN112738245B (en) * 2020-12-28 2023-03-28 青岛海尔科技有限公司 Method and device for determining equipment response information, storage medium and electronic device
CN113454969A (en) * 2020-12-31 2021-09-28 商汤国际私人有限公司 Information interaction method and device, equipment, system and storage medium
CN113454969B (en) * 2020-12-31 2023-09-19 商汤国际私人有限公司 Information interaction method, device, equipment, system and storage medium
CN113347151A (en) * 2021-04-28 2021-09-03 厦门海迈科技股份有限公司 Data interaction method based on socket shared memory
CN113900834A (en) * 2021-09-24 2022-01-07 天津同阳科技发展有限公司 Data processing method, device, equipment and storage medium based on Internet of things technology
CN113900834B (en) * 2021-09-24 2023-02-14 天津同阳科技发展有限公司 Data processing method, device, equipment and storage medium based on Internet of things technology
CN115378989A (en) * 2022-08-10 2022-11-22 上海黑眸智能科技有限责任公司 MQTT topic subscription system, method, terminal and medium based on wake-up channel
CN115378989B (en) * 2022-08-10 2023-08-15 深圳华芯信息技术股份有限公司 MQTT theme subscription system, method, terminal and medium based on wake-up channel

Similar Documents

Publication Publication Date Title
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
US11070648B2 (en) Offline client replay and sync
CN109766253B (en) Performance data sending method and device, computer equipment and storage medium
CN110908778B (en) Task deployment method, system and storage medium
CN110750222A (en) Printing method, printing device, computer equipment and storage medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN114124861A (en) Message group sending method and device, computer equipment and storage medium
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN110661851A (en) Data exchange method and device
CN111222153B (en) Application program authority management method and device and storage medium
CN106095886B (en) Data processing method and device
JP7353076B2 (en) Methods, computer programs, computer equipment and server systems for collecting conversation-related data
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN115297105B (en) File transmission method, device, computer equipment and storage medium
CN111327680A (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN115330396A (en) Payment state acquisition method and device, computer equipment and storage medium
CN110620672A (en) Multi-person session data processing method and device, computer equipment and storage medium
CN112131026A (en) Information processing method based on cross-platform framework, computer equipment and storage medium
CN107644043B (en) Internet bank quick navigation setting method and system
CN112306337B (en) Conference same screen system, method and device, computer equipment and storage medium
CN112995259B (en) Business information pushing method, device, system, equipment and storage medium
CN111355782B (en) Equipment management method and device, storage medium and electronic equipment
CN115905738A (en) Application memory snapshot obtaining method and device and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200519