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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com