CN113784456A - Device connection method, device and storage medium - Google Patents

Device connection method, device and storage medium Download PDF

Info

Publication number
CN113784456A
CN113784456A CN202010604399.XA CN202010604399A CN113784456A CN 113784456 A CN113784456 A CN 113784456A CN 202010604399 A CN202010604399 A CN 202010604399A CN 113784456 A CN113784456 A CN 113784456A
Authority
CN
China
Prior art keywords
wireless network
connection
intelligent
password
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010604399.XA
Other languages
Chinese (zh)
Inventor
陈世文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010604399.XA priority Critical patent/CN113784456A/en
Publication of CN113784456A publication Critical patent/CN113784456A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a device connection method, a device and a storage medium, wherein the method comprises the following steps: the terminal equipment establishes a first connection with the intelligent equipment according to a preset connection password of the intelligent equipment and displays identification information of the intelligent equipment; the method comprises the steps that in response to the selection operation of identification information of the intelligent device, the terminal device sends indication information to the intelligent device, the intelligent device is connected with the first wireless network according to the name of the first wireless network and the password of the first wireless network indicated by the indication information, and when the terminal device detects that the intelligent device is connected to the first wireless network, the intelligent device is determined to be a device currently managed by the terminal device.

Description

Device connection method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a device connection method, a device connection device and a storage medium.
Background
The intelligent household appliance can be connected with a terminal device (such as a mobile phone) of a user, and the user can control the intelligent household appliance through the mobile phone. Taking the intelligent camera as an example, the user can control the intelligent camera to be opened at a fixed time every day through the mobile phone, or the user can remotely control the intelligent camera to be opened through the mobile phone when leaving home.
The initial connection process of the current mobile phone and the intelligent household appliance is as follows: the user selects the equipment to be connected, the name and the password of the wifi connected with the mobile phone at present are input, the client generates a two-dimensional code at the moment, and the intelligent household appliance scans the two-dimensional code. And then, the intelligent household appliance sends a section of encrypted sound wave to the mobile phone, the mobile phone plays the encrypted sound wave to the intelligent household appliance, and the intelligent household appliance completes connection with the mobile phone after the sound wave is successfully analyzed.
In the process of implementing the application, the inventor finds that at least the following problems exist in the prior art, and the connection process of the mobile phone and the intelligent household appliance is complex at present.
Disclosure of Invention
The embodiment of the application provides a device connection method, a device and a storage medium, so as to simplify the connection process of intelligent equipment and terminal equipment.
In a first aspect, an embodiment of the present application provides an apparatus connection method, including:
establishing a first connection with the intelligent equipment according to a preset connection password of the intelligent equipment, and displaying identification information of the intelligent equipment;
in response to detecting the selection operation of the identification information of the intelligent device, sending indication information to the intelligent device, wherein the indication information is used for indicating the name of a first wireless network and the password of the first wireless network;
when the intelligent device is detected to be connected to the first wireless network, the intelligent device is determined to be a device currently managed by the terminal device.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: the terminal equipment establishes a first connection with the intelligent equipment according to a preset connection password of the intelligent equipment and displays identification information of the intelligent equipment; the method comprises the steps that in response to the selection operation of identification information of the intelligent device, the terminal device sends indication information to the intelligent device, the intelligent device is connected with the first wireless network according to the name of the first wireless network and the password of the first wireless network, which are indicated by the indication information, and when the terminal device detects that the intelligent device is connected to the first wireless network, the intelligent device is determined to be a device currently managed by the terminal device, and the initial connection between the terminal device and the intelligent device is completed. Compared with the prior art, the method and the device have the advantages that two-dimensional code verification is not needed, operations such as sound wave configuration are not needed, the user only needs to select the intelligent device to be connected, the intelligent device can be connected with the terminal device, the connection process is simple, the connection efficiency is high, and user experience is improved.
In a possible implementation manner of the first aspect, when detecting that the smart device is connected to the first wireless network, the terminal device may display identification information of the smart device in a user equipment list of the terminal device. The intelligent device is convenient for the user to control the intelligent device through the terminal device next time.
In a possible implementation manner of the first aspect, the sending, by the terminal device, the indication information to the smart device in response to detecting a selection operation of the identification information of the smart device includes:
responding to the selection operation of the user on the identification information of the intelligent device, and displaying a dialog box, wherein the dialog box is used for instructing the user to input the name of the first wireless network and the password of the first wireless network;
and when detecting the name of the first wireless network and the password of the first wireless network input by the user in the dialog box, sending indication information to the intelligent equipment.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: the security of the first wireless network can be improved and tampering can be prevented by inputting the name of the first wireless network and the password of the first wireless network by a user.
Optionally, the first connection is a bluetooth connection or a second wireless network connection.
In a possible implementation manner of the first aspect, when the first connection is the second wireless network connection, the preset connection password is a password of the second wireless network, and the access point of the second wireless network is the smart device, the terminal device establishes the first connection with the smart device according to the preset connection password input by the user at the client, including:
the terminal equipment receives broadcast information from the intelligent equipment, wherein the broadcast information is used for broadcasting the name of a second wireless network of the intelligent equipment;
sending a broadcast request according to the name of the second wireless network and the password of the second wireless network input by the user, wherein the broadcast request comprises the name of the second wireless network and the password of the second wireless network; optionally, the broadcast request is a user datagram protocol UDP broadcast request.
And receiving response information from the intelligent equipment, connecting to the second wireless network according to the response information, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: the intelligent device broadcasts the name of the second wireless network of the intelligent device, so that the terminal device can establish first connection with the intelligent device according to the second wireless network broadcasted by the intelligent device, the connection process is simple and reliable, and a reliable foundation is laid for the subsequent communication between the terminal device and the intelligent device, and the intelligent device is connected to the first wireless network.
In a possible implementation manner of the first aspect, the displaying a dialog box in response to detecting a selection operation of the identification information of the smart device includes:
and responding to the detection of the selection operation of the identification information of the intelligent equipment, and displaying a dialog box after establishing a second connection with the intelligent equipment through three-way handshake. Therefore, the communication reliability of the terminal equipment and the intelligent equipment can be further improved.
Optionally, the second connection is a transmission control protocol TCP connection.
In a second aspect, an embodiment of the present application provides an apparatus connection method, which is applied to an intelligent apparatus, and includes:
establishing a first connection with a terminal device;
receiving indication information from the terminal equipment, wherein the indication information is used for indicating the name of a first wireless network and the password of the first wireless network;
and connecting the first wireless network according to the name of the first wireless network and the password of the first wireless network.
Optionally, the first connection is a bluetooth connection or a wireless network connection.
In a possible implementation manner of the second aspect, the establishing a first connection with a terminal device when the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and the access point of the second wireless network is the smart device includes:
sending broadcast information, wherein the broadcast information is used for broadcasting the name of a second wireless network of the intelligent equipment;
receiving a broadcast request from the terminal device, the broadcast request including a name of the second wireless network and a password of the second wireless network;
and authenticating the name of the second wireless network and the password of the second wireless network, and sending response information to the terminal equipment after the authentication is passed, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network.
Optionally, the broadcast request is a user datagram protocol UDP broadcast request.
In a possible implementation manner of the second aspect, the receiving the indication information from the terminal device includes:
and through three-way handshake, after establishing second connection with the terminal equipment, receiving indication information from the terminal equipment.
In one possible implementation manner of the second aspect, the method further includes:
and stopping sending the broadcast information after receiving the indication information.
Optionally, the method further includes: and under the condition of connecting to the first wireless network, sending third information to a server, wherein the third information is used for indicating at least one of the equipment information of the terminal equipment, the equipment information of the intelligent equipment and the information of the first wireless network.
Optionally, the second connection is a transmission control protocol TCP connection.
The beneficial effects of the device connection method provided by the second aspect and each possible implementation manner of the second aspect may refer to the beneficial effects brought by each possible implementation manner of the first aspect and the first aspect, which are not described herein again.
In a third aspect, an embodiment of the present application provides an apparatus connecting device, including:
the processing unit is used for establishing first connection with the intelligent equipment according to a preset connection password of the intelligent equipment;
the display unit is used for displaying the identification information of the intelligent equipment;
the receiving and sending unit is used for responding to the selection operation of the identification information of the intelligent equipment and sending indication information to the intelligent equipment, wherein the indication information is used for indicating the name of the first wireless network and the password of the first wireless network;
the processing unit is further configured to determine that the intelligent device is a device currently managed by the terminal device when it is detected that the intelligent device is connected to the first wireless network.
In a possible implementation manner, the processing unit is further configured to display identification information of the smart device in a user equipment list of the terminal device when it is detected that the smart device is connected to the first wireless network.
In a possible implementation manner, the display unit is further configured to display a dialog box in response to a user selecting operation on the identification information of the smart device, wherein the dialog box is used for instructing the user to input a name of the first wireless network and a password of the first wireless network;
and the transceiving unit is specifically used for sending indication information to the intelligent device when detecting the name of the first wireless network and the password of the first wireless network, which are input by the user in the dialog box.
Optionally, the first connection is a bluetooth connection or a second wireless network connection.
In one possible implementation manner, the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and an access point of the second wireless network is an intelligent device;
at this time, the transceiving unit is further configured to receive broadcast information from the intelligent device, where the broadcast information is used to broadcast a name of a second wireless network of the intelligent device; sending a broadcast request according to the name of the second wireless network and the password of the second wireless network input by a user, wherein the broadcast request comprises the name of the second wireless network and the password of the second wireless network; receiving response information from the intelligent equipment, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network;
and the processing unit is also used for connecting to the second wireless network according to the response information.
Optionally, the broadcast request is a user datagram protocol UDP broadcast request.
In a possible implementation manner, the processing unit is specifically configured to control the display unit to display the dialog box after establishing the second connection with the smart device through three-way handshake in response to detecting the selection operation on the identification information of the smart device.
Optionally, the second connection is a transmission control protocol TCP connection.
In a fourth aspect, an embodiment of the present application provides an apparatus connecting device, including:
the processing unit is used for establishing a first connection with the terminal equipment;
the receiving and sending unit is used for receiving indication information from the terminal equipment, and the indication information is used for indicating the name of the first wireless network and the password of the first wireless network;
and the processing unit is also used for connecting the first wireless network according to the name of the first wireless network and the password of the first wireless network.
Optionally, the first connection is a bluetooth connection or a second wireless network connection.
In a possible implementation manner, the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and when an access point of the second wireless network is an intelligent device;
at this time, the transceiving unit is further configured to send broadcast information, where the broadcast information is used to broadcast a name of a second wireless network of the intelligent device; receiving a broadcast request from the terminal device, wherein the broadcast request comprises a name of the second wireless network and a password of the second wireless network;
and the processing unit is also used for authenticating the name of the second wireless network and the password of the second wireless network, and controlling the transceiver unit to send response information to the terminal equipment after the authentication is passed, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network.
Optionally, the broadcast request is a user datagram protocol UDP broadcast request.
In a possible implementation manner, the processing unit is specifically configured to control the transceiver unit to receive the indication information from the terminal device after establishing the second connection with the terminal device through three-way handshake.
Optionally, the second connection is a transmission control protocol TCP connection.
In a possible implementation manner, the transceiver unit is further configured to stop sending the broadcast information after receiving the indication information.
In a possible implementation manner, the transceiver unit is further configured to send, to the server, third information when the smart device is connected to the first wireless network, where the third information is used to indicate at least one of device information of the terminal device, device information of the smart device, and information of the first wireless network.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory for storing a computer program;
the processor is configured to execute the computer program to implement the device connection method according to any one of the first aspect.
In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory for storing a computer program;
the processor is configured to execute the computer program to implement the device connection method according to any one of the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium includes computer instructions, and when the instructions are executed by a computer, the computer is enabled to implement the device connection method according to any one of the first aspect and/or the second aspect.
In an eighth aspect, the present application provides a computer program product, where the computer program product includes a computer program, the computer program is stored in a readable storage medium, the computer program can be read by at least one processor of a computer from the readable storage medium, and the at least one processor executes the computer program to make the computer implement the device connection method according to any one of the first aspect and/or the second aspect.
According to the device connection method, the device and the storage medium, the terminal device establishes a first connection with the intelligent device according to a preset connection password of the intelligent device, and displays identification information of the intelligent device, then, in response to detection of selection operation of the identification information of the intelligent device, the terminal device sends indication information to the intelligent device, the intelligent device is connected with the first wireless network according to the name of the first wireless network and the password of the first wireless network, which are indicated by the indication information, the terminal device determines that the intelligent device is a device currently managed by the terminal device when detecting that the intelligent device is connected to the first wireless network, and initial connection of the terminal device and the intelligent device is completed. Compared with the prior art, the method of the embodiment of the application does not need two-dimensional code verification, does not need operations such as sound wave configuration and the like, the user can realize connection of the intelligent device and the terminal device only by selecting the intelligent device to be connected, the connection process is simple, and user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a device connection method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a user interface according to an embodiment of the present application;
FIG. 4 is a schematic view of another user interface according to an embodiment of the present application;
FIG. 5 is a schematic view of another user interface according to an embodiment of the present application;
FIG. 6 is a schematic view of another user interface according to an embodiment of the present application;
fig. 7 is another schematic flow chart of a device connection method according to an embodiment of the present application;
FIG. 8 is a schematic view of another user interface according to an embodiment of the present application;
FIG. 9 is a schematic view of another user interface according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of an apparatus connecting device according to an embodiment of the present disclosure;
FIG. 11 is a schematic structural diagram of an apparatus connecting device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 13 is a block diagram of an intelligent device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be understood that in the embodiment of the present application, "B corresponding to a" means that B is associated with a. In one implementation, B may be determined from a. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. The term "plurality" herein means two or more. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
The terms "first," "second," and the like in the description and claims of this application and in the above-described drawings distinguish between similar or identical items that are substantially identical in function and function. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
The following description will first be made of terms specific to embodiments of the present application.
The User Datagram Protocol (UDP) is a connectionless transport layer Protocol in an Open System Interconnection (OSI) reference model, and is mainly used in transmission that does not require packet sequence arrival, inspection and sequencing of the packet transmission sequence are completed by an application layer, and a transaction-oriented simple unreliable information transfer service is provided.
The Transmission Control Protocol (TCP) is a connection-oriented, reliable transport layer communication Protocol based on a byte stream.
Bluetooth Low Energy (BLE) is a personal area network technology designed and sold by the Bluetooth technical alliance, and is intended to be used for emerging applications in the fields of medical care, sports fitness, beacons, security, home entertainment and the like.
The Service Set Identifier (SSID) may be understood as a name of a wireless network defined by a user.
Fig. 1 is a schematic view of an application scenario related to an embodiment of the present application, as shown in fig. 1, including: terminal equipment, router, smart machine and server.
The terminal equipment: the wireless terminal device can be a wireless terminal device or a wired terminal device, and the wireless terminal device can be a device with a wireless transceiving function, can be deployed on land, and comprises indoor or outdoor, handheld or vehicle-mounted; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal device in industrial control (industrial control), a wireless terminal device in self driving (self driving), a wireless terminal device in remote medical treatment (remote medical), a wireless terminal device in smart grid (smart grid), a wireless terminal device in transportation safety (transportation safety), a wireless terminal device in smart city (smart city), a wireless terminal device in smart home (smart home), and the like, which are not limited herein. It can be understood that, in the embodiment of the present application, the terminal device may also be referred to as a User Equipment (UE).
The intelligent device can be an intelligent household appliance, such as an intelligent refrigerator, an intelligent camera, a sweeping robot, intelligent monitoring and the like.
The server can be a merchant server corresponding to the intelligent device and can also be a cloud server.
The terminal equipment is in the coverage of a first wireless network (namely, wifi at home), and can be connected with the intelligent equipment through a router at the home of a user. The terminal equipment is outside the coverage range of the first wireless network, the server can be connected through a mobile network or other wireless networks, the server is connected with a router in a house through a broadband, and the router is connected with the intelligent equipment, so that the connection between the terminal equipment and the intelligent equipment is realized.
The initial connection process of the current terminal equipment and the intelligent equipment is as follows: the user selects the equipment to be connected, the name and the password of the wireless network currently connected with the terminal equipment are input, the corresponding client generates a two-dimensional code, and the intelligent household appliance scans the two-dimensional code. And then, the intelligent device sends a section of encrypted sound wave to the terminal device, the terminal device plays the encrypted sound wave to the intelligent device, and the intelligent device completes connection with the terminal device after successfully analyzing the sound wave.
In the process of implementing the application, the inventor finds that at least the following problems exist in the prior art, at present, in the connection process of the mobile phone and the intelligent household appliance, a user needs to input the name and the password of a family wireless network, generate a two-dimensional code and enable the intelligent device to perform operations such as scanning, clicking to select the connection device, sound wave configuration and the like, the whole process is complex and tedious, and the user experience is poor.
In order to solve the foregoing technical problem, in the device connection method provided in this embodiment of the present application, the terminal device establishes a first connection with the intelligent device according to a preset connection password of the intelligent device, and displays identification information of the intelligent device, then, in response to detecting a selection operation of the identification information of the intelligent device, the terminal device sends instruction information to the intelligent device, and the intelligent device connects the first wireless network according to a name of the first wireless network and a password of the first wireless network, which are indicated by the instruction information, to complete an initial connection between the terminal device and the intelligent device. Compared with the prior art, the method and the device have the advantages that two-dimensional code verification is not needed, operations such as sound wave configuration are not needed, the user only needs to select the intelligent device to be connected, the intelligent device can be connected with the terminal device, the connection process is simple, and user experience is improved.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a device connection method according to an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application includes:
s101, the terminal device establishes a first connection with the intelligent device according to a preset connection password of the intelligent device and displays identification information of the intelligent device.
The first connection of the embodiment of the present application may be understood as a temporary connection. Optionally, the first connection may be a bluetooth connection or a wireless network connection.
Optionally, the wireless network in the embodiment of the present application may be wifi.
Fig. 3 is a schematic diagram of a user interface according to an embodiment of the present application, where a user downloads and installs a client corresponding to an intelligent device, and when the user opens the client for the first time, the user interface shown in fig. 3 is displayed, and the user may input a preset connection password in the user interface shown in fig. 3, and click a confirmation option, thereby establishing a first connection with the intelligent device.
When the first connection may be a bluetooth connection, the preset connection password input in fig. 3 is a bluetooth connection password.
When the first connection is a wireless network connection, the preset connection password input in fig. 3 is a password of the second bluetooth.
The ways in which the user obtains the preset connection password of the smart device include, but are not limited to, the following:
in a first mode, a user may obtain a preset connection password of the smart device from a specification of the smart device, for example, the specification of the smart device records the preset connection password of the smart device, or the specification includes a two-dimensional code, and the terminal device may obtain the preset connection password of the smart device by scanning the two-dimensional code.
In a second mode, a preset connection password of the smart device is set on the smart device, for example, the preset connection password of the smart device is recorded on a shell of the smart device, or a two-dimensional code is set on the shell of the smart device, and the terminal device can obtain the preset connection password of the smart device by scanning the two-dimensional code.
And in the third mode, the client of the intelligent device automatically fills in the preset connection password of the intelligent device.
As shown in fig. 3, the user or the client inputs a preset connection password of the smart device, and after clicking the confirmation option, the user jumps to the user interface shown in fig. 4 to display the identification information of the smart device.
Wherein the identification information of the smart device is displayed including at least one of: an icon of the smart device, a name of the smart device, a code of the smart device (e.g., the smart device is a camera, the code of which is C, the smart device is a TV series, the code of which is TV).
Optionally, the client may control other intelligent devices besides the intelligent device in the embodiment of the present application, for example, the client may control a plurality of intelligent devices of the merchant a. In this way, when the preset connection passwords of the plurality of intelligent devices are consistent, assuming that the preset connection passwords of the intelligent device a and the intelligent device B are consistent, referring to step S101 above, when the terminal device establishes the first connection with the intelligent device a, the terminal device also establishes the first connection with the intelligent device B. Thus, the user interface shown in FIG. 4 includes the icon and name of smart device A and the icon and name of smart device B.
And S102, responding to the detected selection operation of the identification information of the intelligent equipment, and sending indication information to the intelligent equipment by the terminal equipment.
The indication information is used for indicating the name of the first wireless network and the password of the first wireless network. The first wireless network may be understood as a home wireless network, i.e. a wireless network originating from a home router.
The indication information indicates the name of the first wireless network and the password of the first wireless network, and the indication information carries the name of the first wireless network and the password of the first wireless network, or indicates the name of the first wireless network and the password of the first wireless network to the smart device through other manners.
In the user interface shown in fig. 4, the user selects the smart device to be connected, for example, the user selects the smart device to be connected as smart device a, so that the user can click on the identification information of smart device a to select to connect smart device a. After detecting the selection operation input by the user to the identification information of the intelligent device A, the terminal device responds to the selection operation and sends indication information to the intelligent device through the first connection (for example, through Bluetooth or a second wireless network), wherein the indication information is used for indicating the name of the first wireless network and the password of the first wireless network.
In the following, ways for the terminal device to obtain the name of the first wireless network and the password of the first wireless network are described, and it should be noted that the ways for the terminal device to obtain the name of the first wireless network and the password of the first wireless network in the embodiment of the present application include, but are not limited to, the following:
in the first mode, the user inputs the name of the first wireless network and the password of the first wireless network into the terminal device in the process of connecting the terminal device with the first wireless network, so that the name of the first wireless network and the password of the first wireless network can be stored in the terminal device. As shown in fig. 4, after the user clicks the identification information of the smart device, the terminal device may carry the name of the first wireless network and the password of the first wireless network in the indication information and send the indication information to the smart device.
In the second mode, as shown in fig. 4, the user performs a selection operation on the identification information of the smart device, for example, the user clicks the identification information of the smart device a. As shown in fig. 5, in response to a user's selection operation of the identification information of the smart device a, the terminal device displays a dialog box for instructing the user to input a name of the first wireless network and a password of the first wireless network. The user may enter the name of the first wireless network and the password of the first wireless network in the dialog box. The terminal device sends indication information to the intelligent device A when detecting the name of the first wireless network and the password of the first wireless network input by the user in the dialog box.
In a possible implementation manner of the second implementation manner, the displaying, by the terminal device, the dialog box in response to detecting the selection operation of the identification information of the smart device includes: and responding to the detection of the selection operation of the identification information of the intelligent device, and displaying a dialog box after establishing a second connection with the intelligent device through three-way handshake. That is, after the user clicks the smart device a in fig. 4, the terminal device and the smart device handshake three times to establish the second connection. And after the second connection is successful, the terminal equipment controls the client to pop up a dialog box, so that the user inputs the name of the first wireless network and the password of the first wireless network in the dialog box.
Optionally, the second connection is a TCP connection.
TCP is a transmission control protocol of the host to the host layer, provides reliable connection services, and establishes a connection using three handshake acknowledgements.
The bit code, namely the TCP zone bit, has 6 marks: SYN (synchronization, establishment of online), ACK (acknowledgement), PSH (push), FIN (end), RST (reset), RG (urgent).
The Sequence number is a Sequence number, and the acknowledgement number is an acknowledgment number.
Taking terminal equipment and intelligent equipment as examples, the following simple introduction is made to three-way handshake:
first handshake: the terminal equipment sends a data packet with a bit code of SYN 1 and a Sequence number of 1234567 to the intelligent equipment, and the intelligent equipment knows the bit code of SYN 1 and requires to establish online;
second handshake: after receiving the request, the smart device confirms the connection information, and sends acknowledgement number (seq +1 of the terminal device), syn 1, ack 1, and randomly generates a packet with seq 7654321 to the terminal device.
Third handshake: after receiving the ack number, the terminal device checks whether the ack number is correct, that is, whether the seq number +1 sent for the first time and the bit code ack is 1, if the ack number is correct, the terminal device sends the ack number (seq +1 of the intelligent device) again, and the ack number is 1, and the intelligent device confirms that the connection establishment is successful when the seq value and the ack number are 1 after receiving the ack number.
And finishing the three-way handshake, establishing TCP connection between the terminal equipment and the intelligent equipment, and transmitting data, namely, sending indication information for indicating the name of the first wireless network and the password of the first wireless network to the intelligent equipment by the terminal equipment.
Optionally, in order to improve the security of information transmission, the terminal device encrypts the name of the first wireless network and the password of the first wireless network, and then sends the encrypted name and password to the intelligent device.
S103, the intelligent device is connected with the first wireless network according to the name of the first wireless network and the password of the first wireless network.
Specifically, after receiving the indication information sent by the terminal device, the intelligent device analyzes the indication information to obtain the name of the first wireless network and the password of the first wireless network indicated by the indication information. The smart device then attempts to handover to the first wireless network.
In some embodiments, upon determining that the smart device is connected to the first wireless network, at least one of the device information of the terminal device, the device information of the smart device, and the information of the first wireless network may be transmitted to the server. The modes of sending the information to the server include two modes:
in the first mode, the terminal device sends second information to the server, where the second information is used to indicate at least one of device information of the terminal device, device information of the smart device, and information of the first wireless network.
The device information of the terminal device may include: user name, equipment name of the terminal equipment, model of the terminal equipment and the like. The device information of the smart device includes: the device name of the intelligent device, the model of the intelligent device and the like. The information of the first wireless network includes: a name of the first wireless network and/or a password of the first wireless network.
In a second mode, the smart device sends third information to the server when being connected to the first wireless network, wherein the third information is used for indicating at least one of the device information of the terminal device, the device information of the smart device and the information of the first wireless network.
S104, when the terminal device detects that the intelligent device is connected to the first wireless network, the intelligent device is determined to be the device currently managed by the terminal device.
In the embodiment of the application, the initial connection between the terminal device and the intelligent device is realized through the steps from S101 to S104, and in subsequent applications, a user can control the intelligent device through the terminal device.
In some embodiments, as shown in fig. 6, the terminal device may display identification information of the smart device in a user device list of the terminal device upon detecting that the smart device is connected to the first wireless network.
The following describes a process of controlling the intelligent device by the terminal device:
in case 1, when the terminal device is in the coverage of the first wireless network, for example, when the user is at home, both the terminal device and the smart device are connected to the first wireless network, and when the user determines to control the smart device a, the user selects the identification information of the smart device a in the user device list shown in fig. 6, and sends a message to the smart device a through the router as shown in fig. 1. The intelligent device A can also send a message to the terminal device through the router.
In case 2, when the terminal device is not in the coverage of the first wireless network, for example, when the user is in a company, as shown in fig. 1, the terminal device sends a message sent to the intelligent device to the server through the mobile network or other wireless networks, the server sends the message to the router through the broadband, the router forwards the message to the intelligent device, and the intelligent device may send the message to the terminal device, thereby implementing communication between the terminal device and the intelligent device.
According to the device connection method provided by the embodiment of the application, the terminal device establishes first connection with the intelligent device according to a preset connection password of the intelligent device, and displays identification information of the intelligent device, then, in response to the selection operation of detecting the identification information of the intelligent device, the terminal device sends indication information to the intelligent device, the intelligent device is connected with the first wireless network according to the name of the first wireless network indicated by the indication information and the password of the first wireless network, and when the terminal device detects that the intelligent device is connected to the first wireless network, the terminal device determines that the intelligent device is a device currently managed by the terminal device, and primary connection between the terminal device and the intelligent device is completed. Compared with the prior art, the method of the embodiment of the application does not need two-dimensional code verification, does not need operations such as sound wave configuration and the like, the user can realize connection of the intelligent device and the terminal device only by selecting the intelligent device to be connected, the connection process is simple, and user experience is improved.
The following describes a process of establishing a first connection between the terminal device and the intelligent device when the first connection is used as a second wireless network connection.
Fig. 7 is another schematic flow chart of a device connection method according to an embodiment of the present application. As shown in fig. 7, the method of the embodiment of the present application includes:
s201, the intelligent device sends broadcast information.
The broadcast information is used for broadcasting the name of a second wireless network of the intelligent device, and an access point of the second wireless network is the intelligent device.
Optionally, the intelligent device may start a monitoring function, for example, start a UDP monitoring function, for monitoring information including a name of the second wireless network, for example, for monitoring a broadcast request sent by the terminal device, in addition to starting the broadcast function and sending the broadcast information.
S202, the terminal equipment sends a broadcast request according to the name of the second wireless network and the password of the second wireless network input by the user.
The password of the second wireless network is the preset connection password described in the above S101, wherein the obtaining manner of the preset connection password may refer to the description in the above S101, and is not described herein again.
The broadcast request includes a name of the second wireless network and a password of the second wireless network, and the broadcast request is used for requesting access to the second wireless network.
Optionally, the broadcast request is a UDP broadcast request.
In some embodiments, after the user inputs a preset connection password (i.e., a password of the second wireless network) in the user interface shown in fig. 3, the user may adjust to the interface shown in fig. 8, and after the user clicks the scan option, the terminal device sends a broadcast request to the smart device according to the name of the second wireless network and the password of the second wireless network input by the user.
S203, the intelligent device authenticates the name of the second wireless network and the password of the second wireless network, and sends response information to the terminal device after the authentication is passed.
And S204, the terminal equipment is connected to the second wireless network according to the response information.
After monitoring the broadcast request sent by the terminal equipment, the intelligent equipment analyzes the broadcast request, obtains the name of the second wireless network and the password of the second wireless network carried by the broadcast request, and matches the carried name of the second wireless network and the password of the second wireless network with the name of the second wireless network and the password of the second wireless network stored by the intelligent equipment. And if the matching is successful, sending response information to the terminal equipment, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network. And if the matching fails, not sending information to the terminal equipment or sending indication information of the failure of the matching.
And after receiving the response information sent by the intelligent equipment, the terminal equipment is connected to the second wireless network.
After the above steps S201 to S204, the terminal device establishes a first connection with the smart device, and then, the following steps S205 to S207 are performed.
And S205, the terminal equipment displays the identification information of the intelligent equipment.
S206, in response to the detection of the selection operation of the identification information of the intelligent device, the terminal device sends indication information to the intelligent device.
The indication information is used for indicating the name of the first wireless network and the password of the first wireless network.
S207, the intelligent device is connected with the first wireless network according to the name of the first wireless network and the password of the first wireless network.
And when the intelligent equipment receives the indication information sent by the terminal equipment, stopping sending the broadcast information and stopping UDP monitoring.
The intelligent device tries to switch to the first wireless network according to the name of the first wireless network and the password of the first wireless network, and if the intelligent device fails to try to switch to the first wireless network, the intelligent device restarts the UDP monitoring and continues to send the broadcast information, and retries the steps from S201 to S207.
S208, when the terminal device detects that the intelligent device is connected to the first wireless network, the intelligent device is determined to be the device currently managed by the terminal device.
And finishing initial connection between the terminal equipment and the intelligent equipment according to the steps S201 to S208.
In some embodiments, if a user has multiple intelligent devices, if a certain intelligent device is disconnected from a terminal device, as shown in fig. 1, since all the intelligent devices are connected to a router, the client can scan the offline intelligent device through UDP port scanning. For example, as shown in fig. 9, the intelligent device a is disconnected from the terminal device, so that when the user opens the client again or refreshes the client interface, the client scans the offline intelligent device a through the UDP port. Then, the steps S206 to S208 are executed, the user selects the identification information of the intelligent device a shown in fig. 9, the terminal device sends the indication information to the intelligent device, and the intelligent device is connected to the first wireless network according to the indication information, so that when the terminal device controls a plurality of intelligent devices, when a certain intelligent device is offline, the terminal device can be quickly and conveniently connected to the offline intelligent device again.
According to the equipment connection method, when the first connection is a second wireless network connection, the preset connection password is the password of the second wireless network, and the access point of the second wireless network is intelligent equipment, the intelligent equipment sends broadcast information which is used for broadcasting the name of the second wireless network of the intelligent equipment; the terminal equipment is connected to the second wireless network according to the name of the second wireless network and the password of the second wireless network input by the user, so that the first connection between the terminal equipment and the intelligent equipment is realized. Meanwhile, when the terminal device controls a plurality of intelligent devices, when a certain intelligent device is off-line, the terminal device can be quickly and conveniently connected with the off-line intelligent device again through port scanning.
Fig. 10 is a schematic structural diagram of an apparatus connection device according to an embodiment of the present application. The device connection apparatus may be a terminal device or a component (e.g., an integrated circuit, a chip, etc.) of a terminal device. As shown in fig. 10, the device connecting apparatus 100 may include: a processing unit 110, a display-like unit 120, and a transceiving unit 130.
The processing unit 110 is configured to establish a first connection with the intelligent device according to a preset connection password of the intelligent device;
a display unit 120 for displaying identification information of the smart device;
a transceiving unit 130, configured to send, in response to detecting a selection operation of identification information of the smart device, indication information to the smart device, where the indication information is used to indicate a name of the first wireless network and a password of the first wireless network;
the processing unit 110 is further configured to determine that the smart device is a device currently managed by the terminal device when it is detected that the smart device is connected to the first wireless network.
In a possible implementation manner, the processing unit 110 is further configured to display identification information of the smart device in a user equipment list of the terminal device when it is detected that the smart device is connected to the first wireless network.
In a possible implementation manner, the display unit 120 is further configured to display a dialog box in response to a selection operation of the user on the identification information of the smart device, where the dialog box is used to instruct the user to input a name of the first wireless network and a password of the first wireless network;
the transceiving unit 130 is specifically configured to send instruction information to the smart device when detecting the name of the first wireless network and the password of the first wireless network, which are input by the user in the dialog box.
Optionally, the first connection is a bluetooth connection or a second wireless network connection.
In one possible implementation manner, the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and an access point of the second wireless network is an intelligent device;
at this time, the transceiving unit 130 is further configured to receive broadcast information from the smart device, where the broadcast information is used to broadcast a name of a second wireless network of the smart device; sending a broadcast request according to the name of the second wireless network and the password of the second wireless network input by a user, wherein the broadcast request comprises the name of the second wireless network and the password of the second wireless network; receiving response information from the intelligent equipment, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network;
the processing unit 110 is further configured to connect to the second wireless network according to the response information.
Optionally, the broadcast request is a user datagram protocol UDP broadcast request.
In one possible implementation, the processing unit 110 is specifically configured to control the display unit 120 to display a dialog box after establishing the second connection with the smart device through three-way handshake in response to detecting the selection operation on the identification information of the smart device.
Optionally, the second connection is a transmission control protocol TCP connection.
The device connection apparatus in the embodiments of the present application may be configured to implement the technical solutions of the terminal devices in the above embodiments of the methods, and the implementation principles and technical effects thereof are similar and will not be described herein again.
Fig. 11 is a schematic structural diagram of an apparatus connection device according to an embodiment of the present application. The device connection apparatus may be a smart device or may be a component (e.g., an integrated circuit, a chip, etc.) of a smart device. As shown in fig. 11, the device connecting apparatus 200 may include: a processing unit 210 and a transceiving unit 220.
A processing unit 210, configured to establish a first connection with a terminal device;
a transceiving unit 220, configured to receive indication information from a terminal device, where the indication information is used to indicate a name of a first wireless network and a password of the first wireless network;
the processing unit 210 is further configured to connect to the first wireless network according to the name of the first wireless network and the password of the first wireless network.
Optionally, the first connection is a bluetooth connection or a second wireless network connection.
In a possible implementation manner, the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and when an access point of the second wireless network is an intelligent device;
at this time, the transceiving unit 220 is further configured to send broadcast information, where the broadcast information is used to broadcast a name of a second wireless network of the smart device; receiving a broadcast request from the terminal device, wherein the broadcast request comprises a name of the second wireless network and a password of the second wireless network;
the processing unit 210 is further configured to authenticate the name of the second wireless network and the password of the second wireless network, and after the authentication is passed, control the transceiver unit 220 to send response information to the terminal device, where the response information is used to indicate that the terminal device is connected to the second wireless network.
Optionally, the broadcast request is a user datagram protocol UDP broadcast request.
In a possible implementation manner, the processing unit 210 is specifically configured to control the transceiver unit 220 to receive the indication information from the terminal device after establishing the second connection with the terminal device through three-way handshake.
Optionally, the second connection is a transmission control protocol TCP connection.
In a possible implementation manner, the transceiving unit 220 is further configured to stop sending the broadcast information after receiving the indication information.
In a possible implementation manner, the transceiving unit 220 is further configured to send third information to the server when the smart device is connected to the first wireless network, where the third information is used to indicate at least one of device information of the terminal device, device information of the smart device, and information of the first wireless network.
The device connection apparatus according to the embodiment of the present application may be configured to implement the technical solutions of the intelligent devices in the foregoing method embodiments, and the implementation principles and technical effects thereof are similar and will not be described herein again.
Fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 600 may implement the functions executed by the terminal device in the above method embodiments, and the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
In one possible design, the terminal device 600 includes a processor 601, a transceiver 602, and a memory 603 in its structure, and the processor 601 is configured to support the terminal device 600 to perform the corresponding functions in the above-described method. The transceiver 602 is used to support communication between the terminal device 600 and other terminal devices or network devices. The terminal device 600 may further comprise a memory 603, which memory 603 is adapted to be coupled to the processor 601 and to store program instructions and data necessary for the terminal device 600.
When the terminal device 600 is powered on, the processor 601 may read the program instructions and data in the memory 603, interpret and execute the program instructions, and process the data of the program instructions. When data is transmitted, the processor 601 performs baseband processing on the data to be transmitted, and outputs a baseband signal to the transceiver 602, and the transceiver 602 performs radio frequency processing on the baseband signal and transmits the radio frequency signal to the outside in the form of electromagnetic waves through the antenna. When data is transmitted to the terminal device, the transceiver 602 receives a radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor 601, and the processor 601 converts the baseband signal into data and processes the data.
Those skilled in the art will appreciate that fig. 12 shows only one memory 603 and one processor 601 for ease of illustration. In an actual terminal device 600, there may be multiple processors 601 and multiple memories 603. The memory 603 may also be referred to as a storage medium or a storage device, etc., which is not limited in this application.
The terminal device of the embodiment of the application can be used for executing the technical scheme of the terminal device in the embodiments of the methods, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 13 is a block diagram of an intelligent device according to an embodiment of the present application, where the intelligent device is configured to execute the device connection method according to the foregoing embodiment, and refer to the description in the foregoing method embodiment specifically.
Referring to fig. 13, the smart device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the device connection method embodiments described above.
The smart device 1900 may also include a power component 1926 configured to perform power management of the smart device 1900, a wired or wireless network interface 1950 configured to connect the smart device 1900 to a network, and an input/output (I/O) interface 1958. The smart device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as memory 1932, including instructions executable by the processing component 1922 of the smart device 1900 to perform the device connection method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A device connection method is applied to a terminal device and comprises the following steps:
establishing a first connection with the intelligent equipment according to a preset connection password of the intelligent equipment, and displaying identification information of the intelligent equipment;
in response to detecting the selection operation of the identification information of the intelligent device, sending indication information to the intelligent device, wherein the indication information is used for indicating the name of a first wireless network and the password of the first wireless network;
when the intelligent device is detected to be connected to the first wireless network, the intelligent device is determined to be a device currently managed by the terminal device.
2. The method of claim 1, further comprising:
and when the intelligent equipment is detected to be connected to the first wireless network, displaying the identification information of the intelligent equipment in a user equipment list of the terminal equipment.
3. The method of claim 1, wherein sending the indication information to the smart device in response to detecting the selection operation of the identification information of the smart device comprises:
responding to the selection operation of a user on the identification information of the intelligent device, and displaying a dialog box, wherein the dialog box is used for instructing the user to input the name of the first wireless network and the password of the first wireless network;
and when detecting the name of the first wireless network and the password of the first wireless network input by the user in the dialog box, sending indication information to the intelligent equipment.
4. The method of claim 1, wherein the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and the access point of the second wireless network is the smart device; the method for establishing a first connection with the intelligent device according to the preset connection password input by the user at the client comprises the following steps:
receiving broadcast information from the intelligent device, wherein the broadcast information is used for broadcasting the name of a second wireless network of the intelligent device;
sending a broadcast request according to the name of the second wireless network and the password of the second wireless network input by the user, wherein the broadcast request comprises the name of the second wireless network and the password of the second wireless network;
and receiving response information from the intelligent equipment, connecting to the second wireless network according to the response information, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network.
5. The method of claim 4, wherein displaying a dialog box in response to detecting the selection of the identification information of the smart device comprises:
and responding to the detection of the selection operation of the identification information of the intelligent equipment, and displaying a dialog box after establishing a second connection with the intelligent equipment through three-way handshake.
6. The method according to claim 5, wherein the second connection is a transmission control protocol, TCP, connection and/or wherein the broadcast request is a user datagram protocol, UDP, broadcast request.
7. The equipment connection method is applied to intelligent equipment and comprises the following steps:
establishing a first connection with a terminal device;
receiving indication information from the terminal equipment, wherein the indication information is used for indicating the name of a first wireless network and the password of the first wireless network;
and connecting the first wireless network according to the name of the first wireless network and the password of the first wireless network.
8. The method according to claim 7, wherein the establishing the first connection with the terminal device when the first connection is a second wireless network connection, the preset connection password is a password of the second wireless network, and the access point of the second wireless network is the smart device comprises:
sending broadcast information, wherein the broadcast information is used for broadcasting the name of a second wireless network of the intelligent equipment;
receiving a broadcast request from the terminal device, the broadcast request including a name of the second wireless network and a password of the second wireless network;
and authenticating the name of the second wireless network and the password of the second wireless network, and sending response information to the terminal equipment after the authentication is passed, wherein the response information is used for indicating the terminal equipment to be connected to the second wireless network.
9. The method of claim 8, wherein the receiving the indication information from the terminal device comprises:
and through three-way handshake, after establishing second connection with the terminal equipment, receiving indication information from the terminal equipment.
10. The method according to any one of claims 7-9, further comprising:
and under the condition of connecting to the first wireless network, sending third information to a server, wherein the third information is used for indicating at least one of the equipment information of the terminal equipment, the equipment information of the intelligent equipment and the information of the first wireless network.
11. The method according to claim 9, wherein the second connection is a transmission control protocol, TCP, connection and/or wherein the broadcast request is a user datagram protocol, UDP, broadcast request.
12. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to: executing the instructions to implement the device connection method of any one of claims 1 to 6 above or to implement the device connection method of any one of claims 7 to 11 above.
13. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the device connection method of any one of claims 1 to 11.
CN202010604399.XA 2020-06-29 2020-06-29 Device connection method, device and storage medium Pending CN113784456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010604399.XA CN113784456A (en) 2020-06-29 2020-06-29 Device connection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010604399.XA CN113784456A (en) 2020-06-29 2020-06-29 Device connection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113784456A true CN113784456A (en) 2021-12-10

Family

ID=78835221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010604399.XA Pending CN113784456A (en) 2020-06-29 2020-06-29 Device connection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113784456A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466427A (en) * 2022-02-15 2022-05-10 深圳海翼智新科技有限公司 Network access method, terminal equipment, intelligent equipment and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466427A (en) * 2022-02-15 2022-05-10 深圳海翼智新科技有限公司 Network access method, terminal equipment, intelligent equipment and system

Similar Documents

Publication Publication Date Title
EP3484196B1 (en) Method and apparatus for registering wireless device in wireless communication system
EP3151628B1 (en) Method, device and system for accessing a wireless network
WO2018157512A1 (en) Method for connecting to network, mobile terminal, electronic device, and graphical user interface
CN105323824B (en) Electronic equipment assisting WIFI equipment in networking, WIFI equipment and method
KR101885500B1 (en) Porting wifi settings
CN108882337B (en) Method for network configuration
CN105578470A (en) Method for accessing to network by device of internet of things, device and system
CN103563453A (en) Method and apparatus for sharing connectivity settings via social networks
US11343122B2 (en) Wireless extender with on-boarding SSID for simple and extensible onboarding
JP2021090205A (en) WI-FI hotspot connection method and terminal
TWI508609B (en) Network configuration method and wireless networking system
CN105069875A (en) Electronic key, electronic devices and electronic device networking/pairing method
CN110290570A (en) Wireless network access method and relevant device, storage device
US11956843B2 (en) Electronic device supporting addition of secondary node, and method therefor
CN109495979A (en) Wireless network connecting method and device
CN113784456A (en) Device connection method, device and storage medium
JP6555265B2 (en) Processing device, information processing device, information processing system, processing method, and information processing method
WO2012026932A1 (en) Method and apparatus for over-the-air configuration of a wireless device
CN113132997A (en) Communication method, device and system of intelligent household equipment
WO2022095709A1 (en) Device network configuration method and apparatus
CN112449305A (en) WiFi connection method, control method, mobile terminal, equipment and server
CN114338356B (en) Network repairing method, electronic equipment and mobile equipment
CN110621024B (en) Automatic distribution method of AP (Access Point) equipment in WIFI (Wireless Fidelity) park
Lee Non-connection wireless IoT network control using WiFi and bluetooth beacon
US20230345245A1 (en) Methods, devices and systems for automatically adding devices to network using wireless positioning techniques

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination