Check patentability & draft patents in minutes with Patsnap Eureka AI!

A mqtt protocol communication method for synchronous request response

A protocol communication and synchronous request technology, applied in the field of network communication, can solve the problems such as the inability to realize the request and response synchronous communication, and the inability of the MQTT protocol to meet the development needs of the Internet of Things technology.

Active Publication Date: 2020-11-06
NANJING TETRAELC ELECTRONICS TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However if image 3 As shown, because this MQTT protocol is based on asynchronous communication, it cannot realize synchronous communication of request response. Therefore, the above defects make the traditional MQTT protocol more and more unable to meet the development needs of Internet of Things technology.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A mqtt protocol communication method for synchronous request response
  • A mqtt protocol communication method for synchronous request response
  • A mqtt protocol communication method for synchronous request response

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The technical solutions of the present invention will be described in detail below, but the protection scope of the present invention is not limited to the embodiments.

[0030] Such as figure 2 and Figure 5 As shown, the present embodiment relates to an MQTT proxy server and several MQTT clients, each MQTT client establishes a TCP connection for publishing and subscribing topics with the MQTT proxy server, and a TCP connection publishes and subscribes, i.e. a Message connection; each The MQTT client also sets up another TCP connection for synchronous communication with the MQTT proxy server, that is, the Service connection; the MQTT protocol adds a control message with a value of 15 for requesting SERVICEREQ / responding to SERVICERSP.

[0031] The request SERVICEREQ / response SERVICERSP control message includes a fixed header Fixed header, a variable header Variable header and a payload Payload.

[0032] In the request SERVICEREQ / response SERVICERSP control message o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an MQTT protocol communication method for realizing synchronous request response, which belongs to the network communication technology. Each MQTT client and an MQTT proxy server set up another TCP connection for synchronous communication, that is, a Service connection; and increases the value A control packet of 15 used to request SERVICEREQ / response SERVICERSP. The present invention supports synchronous communication by extending the service protocol, and the TCP connection between each MQTT client and the MQTT proxy server is used as a channel for synchronous requests, so that the MQTT proxy server realizes synchronous communication between clients by forwarding transparent transmission, Support request / response synchronous request, and can be backward compatible with the current MQTT protocol.

Description

technical field [0001] The invention belongs to network communication technology, in particular to an MQTT protocol communication method for realizing synchronous request response. Background technique [0002] In the existing Internet of Things technology, through the MQTT protocol, even if the corresponding devices work in a low-bandwidth and unreliable network environment, they can effectively interact with network data, thereby enabling remote sensors and control devices to communicate with the server in a timely manner. [0003] However, the current MQTT communication topology such as figure 1 As shown, the MQTT client and the MQTT proxy server only establish a TCP connection for publishing and subscribing topics. This connection is called a Message connection. However if image 3 As shown, since this MQTT protocol is based on asynchronous communication, it cannot realize synchronous communication of request and response. Therefore, the above defects make the traditio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/141H04L67/145H04L67/143H04L67/146H04L67/568H04L67/5682
Inventor 王顺刘爽闵济海叶增军姜红杉
Owner NANJING TETRAELC ELECTRONICS TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More