Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MQTT connection method and system of low-end limited equipment, terminal and server

A connection method and server technology, applied in transmission systems, electrical components, etc., can solve problems such as unsupportable, increased equipment power consumption, increased manufacturing costs, etc., and achieve the effect of expanding the range of choices

Inactive Publication Date: 2018-06-15
SHENZHEN FANHAI SANJIANG TECH DEV
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, based on cost or power consumption considerations, many smart devices use low-end limited MCUs as control chips, and their relatively poor computing power and storage capacity cannot support the use of TLS to connect to MQTT
If an MCU with high computing power is used, although TLS can be realized, it will increase the power consumption of the device and increase the manufacturing cost, thus losing market competitiveness
Currently there is no solution and specific implementation for this situation

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 connection method and system of low-end limited equipment, terminal and server
  • MQTT connection method and system of low-end limited equipment, terminal and server
  • MQTT connection method and system of low-end limited equipment, terminal and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0055] Such as figure 1As shown, the MQTT connection method of the low-end limited device of the present application, an implementation thereof, includes the following steps:

[0056] Step 102: The terminal and the server share a key, and the server records the key of the terminal and the encryption and decryption algorithm matching the computing capability of the terminal; the server in this application is a server supporting the MQTT protocol.

[0057] Step 104: The terminal connects to the server, and sends an MQTT CONNECT message to the server, and the parameters of the MQTT CONNECT message are signed by a key.

[0058] Step 106: The terminal publishes a message to the subscribed topic, and the message payload is encrypted using an encryption and decryption algorithm.

[0059] Step 108: After receiving the message of the subscribed topic sent by the server, the terminal decrypts it according to the encryption and decryption algorithm, and then performs business processing...

Embodiment 2

[0067] Such as figure 2 As shown, another embodiment of the MQTT connection method of the low-end limited device of the present application includes the following steps:

[0068] Step 202: The terminal and the server share a key, and the server records the key of the terminal and the encryption and decryption algorithm matching the computing capability of the terminal.

[0069] Step 204: After receiving the MQTT CONNECT message sent by the terminal, the server verifies the legitimacy of the terminal, and the parameters of the MQTT CONNECT message are signed by the key.

[0070] Step 206: When the server receives the message published by the terminal through the topic, it decrypts the received message payload according to the decryption algorithm, and then performs subsequent processing on the plaintext message payload.

[0071] Step 208: The server encrypts the message payload of the message to be forwarded to the terminal according to the encryption algorithm according to t...

Embodiment 3

[0086] Such as image 3 As shown, the MQTT connection method of the low-end limited device of the present application, an implementation thereof, includes the following steps:

[0087] Step 302: The terminal and the server share a key, and the server records the key of the terminal and the encryption and decryption algorithm matching the computing capability of the terminal.

[0088] Step 304: The terminal connects to the server, and sends an MQTT CONNECT message to the server, and the parameters of the MQTT CONNECT message are signed by the key.

[0089] Step 306: After receiving the CONNECT message sent by the terminal, the server verifies the legitimacy of the terminal.

[0090] Step 308: The terminal publishes a message to the subscribed topic, and the message payload is encrypted using an encryption and decryption algorithm.

[0091] Step 310: When the server receives the message published by the terminal through the topic, it decrypts the received message payload accor...

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 connection method and an MQTT connection system of low-end limited equipment. The method comprises the steps as follows: a terminal and a server share a key, the serverrecords the key of the terminal and an encryption and decryption algorithm; the terminal is connected with the server, and sends an MQTT CONNECT message to the server, and an MQTT CONNECT message parameter is signed by the key; the terminal publishes the message to a subscribed subject, and a message load uses the encryption and decryption algorithm for encryption; and after receiving the messageof the subscribed subject sent by the server, the terminal decrypts according to the encryption and decryption algorithm, and then performs service processing according to the message load of plaintext. The encryption and decryption algorithm, such as DES, 3DES and AES, or a private encryption algorithm matched with the computing capacity of the terminal is used, so that the access of the limitedequipment to the MQTT also has certain security through transforming an MQTT server under the condition of being unable to use TLS, and thus the selection range is expanded when the equipment is designed and manufactured.

Description

technical field [0001] The present application relates to the field of Internet of Things communication security, in particular to an MQTT connection method, system, terminal and server for low-end limited devices. Background technique [0002] MQTT is a widely used IoT communication protocol. It uses a publish / subscribe mechanism to realize real-time message exchange between IoT devices and between devices and people. After the client connects to the MQTT server, it needs to maintain a TCP connection. Through this connection, it can send a message to a topic, or subscribe to the messages of several topics. When these topics have messages, they can be notified in real time. [0003] By default, messages on an MQTT connection are transmitted in clear text. For applications that require security, the specification recommends the use of TLS. The MQTT agent programs (such as Mosca and Mosquitto) implemented by open source currently only provide the above two connection impleme...

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
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/0428H04L63/08H04L63/126H04L67/14
Inventor 刘章平吴思欣
Owner SHENZHEN FANHAI SANJIANG TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products