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

Method for establishing connection, client and server

A technology for establishing a connection and a client, applied in the field of communication, can solve the problems of session kicking, session replay, security to be improved, etc.

Active Publication Date: 2019-04-05
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the above process, since the user name and password are transmitted in plain text, its security needs to be improved; moreover, the above process is prone to session replay, resulting in the risk of the original session being kicked out

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
  • Method for establishing connection, client and server
  • Method for establishing connection, client and server
  • Method for establishing connection, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] The following describes a method for establishing a connection provided by the embodiment of this application. The method for establishing a connection is applied to the client. Please refer to figure 1 , the method for establishing a connection in the embodiment of the present application includes:

[0046] In step 101, a device password and a device ID associated with the client are obtained;

[0047] In the embodiment of the present application, each smart home device is configured with a corresponding client when it leaves the factory, which enables each smart home device to perform data interaction with a preset server, and helps users better manage each smart home device. Optionally, after the above-mentioned smart home device is installed, the client of the above-mentioned smart home device can be activated on the Internet to generate a device password and a device ID of the client. When the above-mentioned client needs to establish a connection with the above-m...

Embodiment 2

[0062] Another method for establishing a connection provided by the embodiment of this application is described below. The method for establishing a connection is applied to the server. Please refer to figure 2 , the method for establishing a connection in the embodiment of the present application includes:

[0063] In step 201, receive and parse the connection establishment request sent by the client, and obtain the password to be verified, the user name to be verified and the device ID of the above client;

[0064] In the embodiment of the present application, the above server is always in a state of waiting to receive the request sent by the client. When the server receives the connection establishment request sent by the client, it will analyze the connection establishment request to obtain the client's password to be verified, user name to be verified and device ID carried in the connection establishment request.

[0065] In step 202, a device password associated with t...

Embodiment 3

[0101] A client provided by the embodiment of the present application is described below. see Figure 4 , the above client 400 includes:

[0102] A device parameter obtaining unit 401, configured to obtain a device password and a device ID associated with the client;

[0103] The password-to-be-verified generating unit 402 is configured to perform a hash operation on the device password to obtain the password to be verified;

[0104] A user name to be verified generating unit 403, configured to generate a user name to be verified based on the device password and the current time stamp;

[0105] The request sending unit 404 is configured to send a connection establishment request to the server based on the password to be verified, the user name to be verified, and the device ID, so that the server establishes a connection with the client after successfully verifying the connection establishment request.

[0106] Optionally, the above-mentioned device parameter acquisition un...

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 application discloses a method for establishing a connection, a client and a server. The method for establishing a connection includes the following steps: acquiring a device password and a deviceID associated with a client; hashing the device password to obtain a password to be verified; generating a user name to be verified based on the device password and the current timestamp; and sendinga connection establishment request to a server based on the password to be verified, the user name to be verified and the device ID so that the server can establish a connection with the client afterverifying the connection establishment request. Through the scheme of the application, encrypted transmission of the user name and password during the establishment of a connection is realized, and the security of the connection establishment process is improved.

Description

technical field [0001] The present application belongs to the technical field of communication, and in particular relates to a method for establishing a connection, a client, a server and a computer-readable storage medium. Background technique [0002] As an instant messaging protocol, MQTT (Message Queuing Telemetry Transport) is an important part of the Internet of Things. This protocol supports all platforms and can connect all networked objects with the outside world. It is usually used as a communication protocol for sensors and actuators. Based on the MQTT protocol, the username and password of the client can be sent through the username (username) field and the password (password) field of the CONNECT message to implement authentication of the MQTT session. However, in the above process, since the user name and password are transmitted in plain text, its security needs to be improved; moreover, the above process is prone to session replay, resulting in the risk of t...

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/06H04L9/06
CPCH04L9/0643H04L63/083H04L63/0876H04L2463/121
Inventor 刘龙威常城吕永猛刘康
Owner HANGZHOU TUYA INFORMATION TECH CO LTD
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