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

MQTT protocol communication method for realizing synchronization request response

A protocol communication and synchronous request technology, which is applied in the field of network communication, can solve the problems that the MQTT protocol cannot meet the development needs of Internet of Things technology, and cannot realize synchronous communication of request and response.

Active Publication Date: 2020-09-18
NANJING TETRAELC ELECTRONICS TECH CO LTD
View PDF6 Cites 1 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
  • MQTT protocol communication method for realizing synchronization request response
  • MQTT protocol communication method for realizing synchronization request response
  • MQTT protocol communication method for realizing synchronization 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 with 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 ...

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, and is characterized in that a TCP connection, namely Service connection, for synchronous communication is additionally arranged between each MQTT client and an MQTT proxy server; the control message is used for requesting the SERVEICEREQ / responding to the SERVEICERSP, and the added value of the control message is 15. According to the invention, synchronous communication is supported by expanding a service protocol; TCP connection between each MQTT client and the MQTT proxy server is used as a channel of a synchronization request, so that the MQTT proxy server realizes synchronous communication between the clients by forwarding unvarnished transmission, supports the request / response synchronization request, and can be downwards 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 Applications(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