CN107241679B - Connection establishing method, information sending method, message sending method and device - Google Patents

Connection establishing method, information sending method, message sending method and device Download PDF

Info

Publication number
CN107241679B
CN107241679B CN201610186125.7A CN201610186125A CN107241679B CN 107241679 B CN107241679 B CN 107241679B CN 201610186125 A CN201610186125 A CN 201610186125A CN 107241679 B CN107241679 B CN 107241679B
Authority
CN
China
Prior art keywords
equipment
information
access point
connection
working state
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.)
Active
Application number
CN201610186125.7A
Other languages
Chinese (zh)
Other versions
CN107241679A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610186125.7A priority Critical patent/CN107241679B/en
Publication of CN107241679A publication Critical patent/CN107241679A/en
Application granted granted Critical
Publication of CN107241679B publication Critical patent/CN107241679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Abstract

The application discloses a connection establishing method, which is used for providing a scheme for establishing connection between Internet of things equipment and a wireless access point. The method comprises the following steps: establishing a wireless connection between a first device and a second device; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier; receiving the distribution network information sent by the second equipment through the wireless connection established between the first equipment and the second equipment; and establishing connection with the wireless access point by utilizing the distribution network information. The application also discloses a connection establishing device.

Description

Connection establishing method, information sending method, message sending method and device
Technical Field
The present application relates to the field of internet of things technology, and in particular, to a connection establishment method, an information sending method, and an information sending device.
Background
With the continuous development of the intelligent home system, more and more intelligent home devices enter the family of the user, and great convenience is brought to the daily life of people.
The technology of the internet of things is a key for realizing an intelligent home system, the internet of things is an internet with connected objects, namely, different internet of things devices are connected together by using communication networks such as a local area network or the internet, so that the connection between the objects is formed, and the informationization, remote management control and intelligentization network are realized.
In the process of establishing the internet of things, it is an important step that the internet of things equipment accesses a wireless network through a wireless access point.
In order to enable an internet of things device to access a wireless network through a wireless access point, in the prior art, a Service Set Identifier (SSID) and an access password (password) of the wireless access point (access point, AP) are often input into the internet of things device, so that the internet of things device is triggered to access the wireless access point according to the SSID and the password of the wireless access point, and then is connected to the wireless network. However, since most of the internet of things devices do not have a keyboard or a touch display screen for inputting the SSID and the password, how to input the SSID and the password into the internet of things device to be networked so as to establish a connection between the internet of things device and the wireless access point becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a connection establishing method, which is used for providing a scheme for establishing connection between Internet of things equipment and a wireless access point.
The embodiment of the application also provides an information sending method, which is used for providing a scheme for establishing connection between the Internet of things equipment and the wireless access point.
The embodiment of the application also provides a message sending method, which is used for providing a scheme for establishing connection between the Internet of things equipment and the wireless access point.
The embodiment of the application also provides a connection establishing device, which is used for providing a scheme for establishing connection between the Internet of things equipment and the wireless access point.
The embodiment of the application also provides an information sending device, which is used for providing a scheme for establishing connection between the Internet of things equipment and the wireless access point.
The embodiment of the application also provides a message sending device, which is used for providing a scheme for establishing connection between the Internet of things equipment and the wireless access point.
The embodiment of the application adopts the following technical scheme:
a method of connection establishment, comprising:
establishing a wireless connection between a first device and a second device; the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point; receiving the distribution network information sent by the second equipment through the wireless connection established between the first equipment and the second equipment; and establishing connection with the wireless access point by utilizing the distribution network information.
An information transmission method, comprising:
establishing a wireless connection between the second device and the first device; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point; and sending the distribution network information of the wireless access point stored by the second equipment to the first equipment through the wireless connection established between the first equipment and the second equipment.
A method for sending a message, comprising:
after the authentication information of the first equipment, which is sent by the second equipment, passes the authentication, a notification message for indicating the second equipment to send the distribution network information of the wireless access point to the first equipment is generated; sending the notification message to a second device; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identification of the wireless access point.
A connection establishment apparatus comprising:
a connection establishing unit for establishing a wireless connection with a second device; the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
the information receiving unit is used for receiving the distribution network information of the wireless access point, which is sent by the second equipment through the wireless connection established between the connection establishing device and the second equipment;
and the networking unit is used for utilizing the distribution network information to connect with the wireless access point.
An information transmission apparatus comprising:
a connection establishing unit for establishing a wireless connection between the information transmitting apparatus and the first device; the information sending device stores distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
and the information sending unit is used for sending the distribution network information to the first equipment through the wireless connection established between the first equipment and the information sending device.
A message transmitting apparatus comprising:
the notification message generating unit is used for generating a notification message used for indicating the second equipment to send the distribution network information of the wireless access point to the first equipment after the authentication information of the first equipment, which is sent by the second equipment, passes the authentication;
a notification message sending unit, configured to send the notification message to a second device; and the second equipment stores the distribution network information of the wireless access point.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
due to the fact that the wireless connection between the first device and the second device is established, and further through the wireless connection, the first device can receive the distribution network information of the wireless access point sent by the second device and establish connection with the wireless access point by means of the distribution network information, even if the first device does not have an information input device such as a keyboard and a touch screen, the purposes that the first device obtains the distribution network information of the wireless access point and establishes connection with the wireless access point according to the distribution network information can be achieved by the scheme.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a specific implementation of a connection establishment method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a specific connection manner of a device in a connection establishment method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a specific connection manner of a device in a connection establishment method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a connection establishment apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an information sending apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a message sending apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
The embodiment of the application provides a connection establishing method, which is used for providing a scheme for establishing connection between Internet of things equipment and a wireless access point.
The execution main body of the connection establishment method provided by the embodiment of the application can be the intelligent household equipment to be networked, such as an intelligent air conditioner, an intelligent refrigerator, an intelligent water dispenser, an intelligent microwave oven, an intelligent electric cooker, an intelligent electromagnetic oven and the like. For convenience of description, the following description will be made of an embodiment of the method taking the main implementation of the method as an example of the first apparatus. It is to be understood that the implementation of the method as embodied in the first apparatus is merely an exemplary illustration and should not be construed as limiting the method.
The specific implementation flow diagram of the method is shown in fig. 1, and mainly comprises the following steps:
step 11, the first device establishes wireless connection with the second device;
the first device and the second device are both internet of things devices provided with wireless network cards, namely the first device and the second device can both access the internet by using the wireless network cards; the first device and the second device may be, for example, smart home devices, personal computers, mobile phones, tablet computers, and the like.
The second device stores distribution network information of the wireless access point; the distribution network information at least includes a Service Set Identifier (SSID) of the wireless access point, and when a user sets an access Password for the wireless access point, the distribution network information may further include an access Password (Password) Set by the user, and in consideration of network security of the user, the wireless access point is generally provided with the access Password, so that the subsequent distribution network information includes: SSID and Password, and these two information are presented as examples.
It should be noted that the wireless connection between the first device and the second device may be established in various ways, for example, but not limited to, the following three ways:
mode 1: establishing a wireless connection between the first device and the second device based on a Wi-Fi technology;
mode 2: establishing a wireless connection between a first device and a second device based on Bluetooth technology; since the bluetooth technology is a mature related technology, detailed descriptions of specific implementation manners for establishing wireless connection based on the bluetooth technology are omitted.
Mode 3: establishing a wireless connection between the first device and the second device based on Near Field Communication (NFC) technology. Since the NFC technology is already a mature related technology, detailed descriptions of specific implementation manners for establishing a wireless connection based on the NFC technology are omitted.
Generally, the internet of things of the smart home devices can be connected with other different smart home devices by using communication networks such as a local area network or the internet, so as to realize remote management control of the smart home devices. In order to enable the smart home devices to access a local area network or the internet, a wireless network card is arranged on each of the general smart home devices.
In this case, the wireless connection between the first device and the second device is often established based on the Wi-Fi protocol. In the following embodiments of the present application, a connection establishment method provided by the present application is mainly described by taking a wireless connection between a first device and a second device, which is established based on a Wi-Fi protocol as an example.
In order to establish a wireless connection between the first device and the second device based on the Wi-Fi protocol, the wireless access point function of the wireless network card of the second device is in an on state. The wireless access point function of the wireless network card being in the on state may mean that the wireless network card that the device passes simulates a wireless access point (e.g., a wireless router), that is, what we often refer to is network sharing (hot spot sharing). Specifically, how to start a hotspot sharing (STA + AP) mode by the wireless network card is a mature related technology, and is not described herein again.
In the embodiment of the present application, the second device may currently maintain a connection with the wireless access point, or the second device may disconnect from the wireless access point. The wireless access point may be a wireless access point to which the user desires the first device to connect. The wireless access point may be a wireless router; or may be other devices with a network sharing function different from the second device, such as a mobile phone that starts the network sharing function or a notebook computer that starts the network sharing function.
Generally, the user expects that the first device can persistently and stably access the internet using the wireless access point. Considering that when a mobile phone with a network sharing function is started or a notebook computer with the network sharing function is started to serve as a wireless access point, the first device cannot access the internet when the mobile phone is not placed indoors as the mobile phone is generally carried by a user; when the notebook computer is in a power-off state, the first device cannot access the internet, and thus the wireless access point is generally referred to as a wireless router.
Generally, the wireless network card often has both a data receiving function and a data transmitting function, and when the wireless network card of the second device works in the STA + AP mode, the second device may broadcast a data packet through the wireless network card, and at this time, the second device is equivalent to an analog wireless access point; on the other hand, the first device may listen to a data packet broadcast by a wireless access point (e.g., a wireless router or a second device operating in a softAP mode) through the wireless network card, and may further establish a wireless connection with the wireless access point.
It should be noted that the data packet broadcast by the radio access point generally includes: data packets used to indicate the presence of the wireless access point and to locate the wireless access point, such as: beacon Frame (Beacon Frame); and data packets used to respond to device-sent access requests received by the wireless access point, such as: probe Response frame (Probe Response). The beacon frame and the probe response frame often carry characteristic information of the wireless access point, such as: the SSID of the wireless Access point, or information of the brand, the model, and the physical Address (Media Access Control Address) of the device as the wireless Access point, and so on. For example, if the second device is an intelligent air conditioner with brand a information, when the intelligent air conditioner simulates a wireless access point, a data packet broadcast by the simulated wireless access point may include an identifier of the brand a information of the air conditioner.
It should be noted that the first device may store feature information of a specific second device. The feature information of the second device stored in the first device may be preset by a manufacturer of the first device. Specifically, the manufacturer of the first device may store feature information of the second device capable of simulating the wireless access point in the first device. The manufacturer may be a manufacturer that produces both the second device and the first device, or a manufacturer that has a cooperative relationship with a manufacturer that produces the second device even though the manufacturer does not produce the second device, and can acquire the feature information of the second device.
In consideration of the fact that in practical applications, a plurality of routers may be installed in a user home or office, that is, a first device may often listen to data packets broadcasted by more than one wireless access point, and when other devices except a second device are used as the wireless access points, the first device may not be assisted to establish a connection with the wireless router. Therefore, in order to enable the first device to accurately select the second device as the connection object, in an embodiment, a specific implementation manner of step 11 may include: the method comprises the steps that a first device judges that a data packet containing the same characteristic information of a second device is monitored according to the characteristic information of the second device which is pre-stored and is used as a connection establishment object, and then establishes wireless connection between the first device and the second device; or the first equipment receives a selection instruction of the user for the characteristic information of the second equipment contained in the characteristic information set displayed by the first equipment, and responds to the selection instruction to establish wireless connection between the first equipment and the second equipment; the feature information included in the feature information set is the feature information included in the data packet monitored by the first device.
For example, assuming that the first device is an intelligent refrigerator, the characteristic information pre-stored by the intelligent refrigerator is "alb", and the intelligent refrigerator respectively monitors: the data packet A broadcasted by the wireless access point A, the data packet B broadcasted by the wireless access point B and the data packet C broadcasted by the wireless access point simulated by the intelligent air conditioner; and if the characteristic information contained in the data packet A is 'AA', the characteristic information contained in the data packet B is 'BB', and the characteristic information contained in the data packet C is 'alb', the intelligent refrigerator can determine the intelligent air conditioner as a connection object according to the pre-stored characteristic information and establish wireless connection with the intelligent air conditioner.
For another example, still assume that the first device is an intelligent refrigerator, which respectively monitors: the data packet A containing the characteristic information of the intelligent air conditioner and the data packet B containing the characteristic information of the intelligent electric cooker are displayed on a display interface of the intelligent refrigerator, a user inputs a selection instruction for selecting the characteristic information containing the intelligent air conditioner to the intelligent refrigerator through specified operation (such as click operation), and then the intelligent refrigerator responds to the received selection instruction and establishes wireless connection with the intelligent air conditioner.
Generally, when the second device is used as the analog wireless access point, an access password of the analog wireless access point may be set, and in this case, the first device establishes a wireless connection with the second device, which may specifically include: the first equipment determines a password generation algorithm mapped with the characteristic information of the second equipment from prestored access password generation algorithms, and generates an access password according to the determined password generation algorithm; and the first equipment establishes wireless connection between the first equipment and the second equipment by using the generated access password.
Step 12, the first device receives the distribution network information of the wireless access point, which is sent by the second device through the wireless connection established between the first device and the second device;
taking the second device as the networked smart home device used in the home of the user as an example, the smart home devices may establish connection with the wireless router used by the user, and thus the smart home devices may obtain and store the access password of the wireless router used by the user and the name of the wireless router. The smart home device (i.e., the first device) newly purchased by the user may receive the access password of the wireless router and the name of the wireless router, which are sent by the networked smart home device, by establishing a wireless connection with the networked smart home device.
In actual use, the following may occur:
the user A uses the connected intelligent air conditioner (i.e. as the second device) as the wireless access point for connecting with the newly purchased intelligent refrigerator (i.e. as the first device), the characteristic information contained in the data packet broadcasted by the intelligent air conditioner as the wireless access point is the manufacturer identifier "aaa" of the intelligent refrigerator, and the characteristic information pre-stored in the intelligent electric cooker is also "aaa" because the intelligent electric cooker newly purchased by the neighbor user B of the user A is the same manufacturer as the intelligent air conditioner. Under the condition, when the intelligent electric rice cooker can receive the data packet broadcasted by the intelligent air conditioner, the intelligent electric rice cooker can possibly establish wireless connection with the intelligent refrigerator, at the moment, if the intelligent air conditioner directly sends the service set identifier and the access password of the wireless access point (such as a wireless router) to the intelligent electric rice cooker, and then the intelligent electric rice cooker can access the wireless router by using the identifier and the access password of the wireless router, so that the load of the wireless router is increased.
To avoid the above problem, in one embodiment, the second device may authenticate the first device before sending the distribution network information of the wireless access point to the first device. Then, the specific implementation manner of step 12 may include: the method comprises the steps that a first device sends authentication information of the first device to a second device through wireless connection established between the first device and the second device, and receives distribution network information of a wireless access point sent by the second device after the authentication information is verified; the distribution network information sent by the second device is sent through the wireless connection established between the first device and the second device.
The authentication information of the first device may include, for example, at least one of the following two types of information:
information 1: device characteristic information of the first device;
the device characteristic information of the first device may include, for example: at least one of a manufacturer of the first device, information of a model of the first device, a MAC address of the first device, and the like.
When the authentication information of the first device sent by the first device to the second device is the device feature information of the first device, and when the device feature information of the first device is the same as the feature information of the device which is prestored in the second device and allows the connection to be established with the wireless access point, the second device passes the authentication of the first device; and when the device characteristic information of the first device is different from the characteristic information of the device which is prestored in the second device and is allowed to establish connection with the wireless access point, the second device does not pass the authentication of the first device.
Information 2: operating state information of the first device;
the working state information of the first device is information representing the working state of the intelligent air conditioner. Taking the first device as an example of the intelligent air conditioner, the working state information of the first device may include: the current working mode of the intelligent air conditioner is ' refrigeration mode ', ' current refrigeration temperature: 17 degrees "and" current wind speed: level 4 ", etc.
When the first device sends the authentication information of the first device to the second device as the working state information of the first device, the second device may send the working state information of the first device to a mobile terminal (for example, a mobile phone) bound to the second device for display, so that a user may determine a working state according to the working state information of the first device displayed on the mobile phone and the working state determined by the user actually observing the device (for example, the first device) expected to be networked, determine whether the working state information displayed on the mobile phone conforms to the working state determined by the user through observation, and according to the determination result, the user may input a command corresponding to the determination result to the mobile phone to trigger the mobile phone to send back the authentication result corresponding to the determination result to the second device. It should be noted that, for example, if the device expected to be networked is an intelligent air conditioner, if the working state information "cooling mode" displayed on the mobile phone does not match the working state "heating" determined by the user actually observing the intelligent air conditioner, the user may input an instruction to the mobile phone by selecting the "verification failed" option displayed on the mobile phone.
It should be noted that, the above-mentioned second device sends the operating state information of the first device to the mobile terminal bound to the second device, and the specific implementation manner may include: the second equipment directly sends the working state information of the first equipment to a mobile terminal which is bound with the second equipment and establishes connection with the second equipment; or the second device uploads the working state information of the first device to the server, so that the server sends the working state information of the first device to the mobile terminal bound with the second device. For the former way, the second device may pre-store the binding relationship between the second device and the mobile terminal, so as to determine the mobile terminal as a receiver of the working state information of the first device according to the binding relationship; for the latter way, the server may pre-store the binding relationship between the second device and the mobile terminal, so as to determine the mobile terminal as the receiver of the operating state information of the first device according to the binding relationship. In this embodiment of the application, the second device and the mobile terminal have a binding relationship, for example, a mapping relationship established between a unique identifier of the second device and an identifier of the mobile terminal may be referred to. The unique identifier of the second device may be a device number of the second device; the identifier of the mobile terminal may be a user account and a password stored in an APP installed on the mobile terminal. The APP may be, for example, an APP having a function of displaying operating state information of the internet of things device and a function of sending a control instruction of the internet of things device to the server.
When the authentication information of the first device, which is sent by the first device to the second device, includes device feature information of the first device and working state information of the first device, the first device sends the authentication information of the first device to the second device, and receives the identifier and the access password of the wireless router, which are sent by the second device after the authentication information passes, where the method specifically includes: sending device feature information of the first device to the second device through the wireless connection; after receiving a first notification message that the second device passes the verification of the device feature information of the first device, sending the working state information of the first device to the second device; and receiving the distribution network information of the wireless router sent by the second equipment after the working state information is verified.
Because the authentication information of the first device can pass the authentication of the second device only when the authentication information of the first device is the same as the authentication information of the device which the user desires to network, the authentication operation can be executed to ensure that the first device can receive the identification and the access password of the wireless router sent by the second device only when the first device is the device which the user desires to network, thereby avoiding the leakage of the identification and the access password of the wireless router used by the user.
And step 13, the first device establishes connection with the wireless access point by using the distribution network information of the wireless access point, which is received by executing the step 12.
It should be noted that, after the first device establishes a connection with the wireless router by using the identifier and the access password of the wireless router, in order to avoid resource waste, the first device may disconnect the wireless connection established by performing step 11 with the second device.
It should be further noted that, in order to ensure that the user can obtain the working state information of the first device after networking is completed at any time, in an embodiment, after the first device establishes a connection with the wireless router by using the received identifier and access password of the wireless router, the first device may send the working state information of the first device to the wireless access point, so that the wireless router uploads the working state information to the server, and then the user can access the server by using a mobile phone or a computer to obtain the working state information of the first device.
Due to the fact that the wireless connection between the first device and the second device is established, and further through the wireless connection, the first device can receive the identification and the access password of the wireless access point sent by the second device and establish connection with the wireless access point by means of the identification and the access password, even if the first device does not have an information input device such as a keyboard and a touch screen, the purposes that the first device obtains the distribution network information of the wireless access point and establishes connection between the first device and the wireless access point according to the distribution network information can be achieved by the scheme.
A specific implementation manner for establishing connection between the intelligent air conditioner and the wireless router based on the connection establishment method provided above is described below by taking the first device as the "intelligent air conditioner", the second device as the "intelligent refrigerator" capable of operating in the STA + AP mode, the wireless access point as the wireless router, and the mobile terminal bound to the second device as the mobile phone.
According to the connection establishment method, the intelligent refrigerator, the intelligent air conditioner, the wireless router and the mobile phone can achieve the purpose of establishing connection between the intelligent air conditioner and the wireless router through assistance of the intelligent refrigerator by establishing connection as shown in fig. 2.
The specific implementation process may include:
the method comprises the following steps: the user sets the intelligent refrigerator which is accessed to the wireless router into an STA + AP mode, so that the intelligent refrigerator simulates a wireless access point.
Step two: and the user starts the intelligent air conditioner and waits for the intelligent air conditioner to establish wireless connection with the intelligent refrigerator.
Step three: the intelligent air conditioner sends the current working state information (for example, the current refrigerating temperature of the intelligent air conditioner is 17 ℃) of the intelligent air conditioner to the intelligent refrigerator through the wireless connection established between the intelligent air conditioner and the intelligent refrigerator.
Step four: the intelligent refrigerator uploads the current working state information of the intelligent air conditioner to the server through the wireless router, and then the current working state information of the intelligent air conditioner can be sent to the user mobile phone bound with the second device through the server.
Step five: the user mobile phone displays the received current working state information of the intelligent air conditioner sent by the server to a user, and provides a control interface for adjusting the working state of the intelligent air conditioner. The user triggers a command for controlling the temperature adjustment of the intelligent air conditioner by performing a specified operation (such as clicking or sliding) on the control interface (assuming that the triggered control command is 'temperature adjustment to 19 degrees'), uploads the command to the server through the mobile phone and sends the command to the intelligent refrigerator, so that the intelligent refrigerator sends the command to the intelligent air conditioner.
Step six: when the user checks that the temperature of the intelligent air conditioner is adjusted to 19 ℃, the user can input an identity confirmation instruction of the intelligent air conditioner through the mobile phone, and then the server can send a message sending notice to the intelligent refrigerator according to the identity confirmation instruction, so that the intelligent refrigerator sends the name of the wireless router and the access password to the intelligent air conditioner.
Step seven: the intelligent air conditioner is connected with the wireless router according to the received name and the access password of the wireless router, and meanwhile, the intelligent air conditioner is disconnected from the wireless connection with the intelligent refrigerator. Then the connections established between the smart refrigerator, the smart air conditioner, the wireless router, and the cell phone are as shown in fig. 3.
The following further describes an information sending method and a message sending method provided by the embodiments of the present application. Specifically, the information sending method provided by the embodiment of the present application includes the following two steps:
step a: establishing a wireless connection between the second device and the first device;
the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identification of the wireless access point.
In one embodiment, the specific implementation manner of step a may include: judging whether a condition for allowing the second equipment to establish wireless connection with the first equipment exists at present; if the judgment result is yes, the wireless connection between the second equipment and the first equipment is established.
Wherein the condition for allowing the second device to establish a wireless connection with the first device comprises:
the number of the devices which establish wireless connection with the second device does not exceed the preset maximum connection number and the feature information of the first device is not in a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
It should be noted that, when the second device serves as the wireless access point, due to the influence of the performance of the wireless network card of the second device (for example, performance such as transmission rate of the wireless network card, transmission protocol of the wireless network card, and transmission distance of the wireless network card), the number of other devices that can establish wireless connection with the second device is often limited, in order to ensure that the function of the second device serving as the wireless access point can be normally used, the user often sets an upper limit of the maximum number of connectable devices for the second device, and after the number of devices that establish wireless connection with the second device reaches the set upper limit of the device connection number, the second device will not continue to establish connection with other devices. Therefore, after the second device receives the connection request sent by the first device, it is often first necessary to determine whether the number of devices currently establishing wireless connection with the second device exceeds the preset maximum upper limit of the number of connectable devices.
It should be further noted that the second device has a blacklist function, and the second device may not establish a wireless connection with a device whose characteristic information is stored in the blacklist. The feature information of the device stored in the black list may include, but is not limited to: information of the brand of the device, information of the model, and a MAC address, etc. The feature information stored in the blacklist may be set and stored by a user, or may be set and stored by the second device according to the identity authentication information of the device that fails in the identity authentication after the second device performs the identity authentication on the device that establishes the wireless connection.
The second device performs identity authentication on the device establishing the wireless connection, specifically, before sending the service set identifier and the access password of the wireless access point to the first device, to avoid leakage of the identifier and the access password of the wireless access point of the user, the second device performs identity authentication on the first device. Specifically, the method for the second device to authenticate the first device is described in detail in step b, and is not described herein again.
Step b: and sending the distribution network information of the wireless access point stored by the second equipment to the first equipment through the wireless connection established between the first equipment and the second equipment.
It should be noted that, in order to avoid the leakage of the identifier and the access password of the wireless router of the user, when the second device sends the identifier and the access password of the wireless router to the first device through the wireless connection, the second device first needs to perform identity authentication on the first device. Then, the specific implementation manner of step b may include: receiving authentication information of first equipment, which is sent by the first equipment through wireless connection established between the first equipment and second equipment, and sending distribution network information of the wireless access point to the first equipment through the wireless connection established between the first equipment and the second equipment after the authentication information of the first equipment is verified.
The authentication information of the first device may include at least one of the following two types of information:
information 1: device characteristic information of the first device;
the device characteristic information of the first device may include, for example: the information of the manufacturer of the first device, the model of the first device, the MAC address of the first device, and the like.
Then, when the first device sends the authentication information of the first device to the second device, the authentication information of the first device is: when the device feature information of the first device is received, the second device may compare the received device feature information of the first device with locally stored device feature information, and verify the device feature information of the first device. Or the second device may send the received device feature information of the first device to the authentication device, and receive a verification result of the device feature information sent back by the authentication device.
Information 2: operating state information of the first device;
taking the first device as an example of the intelligent air conditioner, the working state information of the first device may include: the "refrigeration mode" and "refrigeration temperature of this intelligent air conditioner: 17 degrees "and" wind speed: level 4 ″, and the like, and information on the operating state of the smart air conditioner.
When the first device sends the authentication information of the first device to the second device, the second device may send the working state information of the first device to a mobile terminal (for example, a mobile phone) bound to the second device for display, so that the user may compare the working state information of the first device displayed on the mobile phone with the working state information of the device that the user actually desires to be networked with, select the authentication result of the first device, and send the authentication result of the first device back to the second device through the mobile phone.
When the second device receives authentication information sent by the first device, where the authentication information includes device feature information of the first device and operating state information of the first device, the second device receives authentication information of the first device sent by the first device through the wireless connection, and sends distribution network information of the wireless access point to the first device through the wireless connection when the authentication information of the first device passes, where the distribution network information may specifically include: the second equipment receives the equipment characteristic information of the first equipment, which is sent by the first equipment through the wireless connection, and sends a first notification message to the first equipment after the equipment characteristic information of the first equipment is verified; and the second equipment receives the working state information of the first equipment, which is sent by the first equipment according to the first notification message, and sends the distribution network information of the wireless access point to the first equipment after the working state information of the first equipment is verified.
Specifically, the authentication information of the first device may be verified by the second device, or may also be sent to the authentication device by the second device for verification.
The authentication device may, for example, comprise: a server or a mobile terminal bound with the second device.
It should be noted that, after the second device is connected to the internet through the wireless router, the user may use a mobile terminal, such as a mobile phone or a tablet computer, to establish a binding relationship with the second device through the internet, and store the binding relationship in the server, so that the mobile terminals may be called mobile terminals bound with the second device.
It should be further noted that, when the second device fails to verify the authentication information of the first device, the second device disconnects the wireless connection established with the first device, and adds the feature information of the first device to a blacklist, so that the second device rejects to connect the first device according to the blacklist.
Specifically, the message sending method provided by the embodiment of the present application includes the following two steps:
step A: after the authentication information of the first equipment, which is sent by the second equipment, passes the authentication, a notification message for indicating the second equipment to send the distribution network information of the wireless access point to the first equipment is generated;
and the second equipment stores the distribution network information of the wireless access point.
The identity verification information of the first device may specifically include, but is not limited to, at least one of the following messages: device characteristic information of the first device; operating state information of the first device.
When the authentication information of the first device includes device feature information of the first device and operating state information of the first device, after the authentication information of the first device sent by the second device is verified, a notification message for instructing the second device to send an identifier of a wireless access point and an access password to the first device is generated, which may specifically include: after the device characteristic information of the first device sent by the second device passes verification, sending a second notification message to the second device; and receiving the working state information of the first equipment, which is sent by the second equipment according to the second notification message, and generating distribution network information for indicating the second equipment to send the wireless access point to the first equipment after the working state information of the first equipment is verified.
Specifically, the authentication information of the first device may be authenticated by a server; or, the authentication may be sent to the mobile terminal bound to the second device for authentication.
It should be noted that, the server may send the working state information of the first device to the mobile terminal bound to the second device, receive a control instruction from the user to the first device through the mobile terminal, send the control instruction to the first device, and complete the verification of the authentication information according to whether the first device executes an instruction operation triggered by the control instruction, specifically, the method provided in this embodiment of the present application may include: sending the working state information of the first equipment to a mobile terminal bound with second equipment for displaying; receiving an operation instruction which is sent by a mobile terminal and aims at first equipment, and sending the operation instruction to second equipment so that the second equipment sends the operation instruction to the first equipment through wireless connection which is established between the second equipment and the first equipment; receiving changed working state information of the first equipment sent by the second equipment; the changed working state information of the first equipment, which is sent by the second equipment, is the information of the working state of the first equipment after the working state of the first equipment is changed according to the received operation instruction aiming at the first equipment; and sending the changed working state information of the first equipment to the mobile terminal so as to trigger the mobile equipment to display the changed working state information of the first equipment and return an identity verification result aiming at the first equipment.
For example, assuming that a first device is a smart air conditioner, a second device is a smart refrigerator, and a mobile terminal bound to the second device is a mobile phone, the smart air conditioner sends working state information (for example, "temperature 17 degrees") to the smart refrigerator through a wireless connection established with the smart refrigerator, the smart refrigerator uploads the received working state information of the smart air conditioner to a server, and sends the working state information to a user mobile phone through the server, at this time, the user mobile phone pushes the working state information to a user through a specified Application program (APP), and simultaneously, an operation interface for controlling the smart air conditioner is provided by the APP like the user, so that the user can input a control command (for example, temperature is adjusted to 19 degrees) to the smart air conditioner through the operation interface of the mobile phone APP and send the control command to the smart air conditioner through the server, when the intelligent air conditioner is installed at the home of the user, the user can observe that the temperature of the air conditioner installed at the home rises to 19 ℃, so that the intelligent air conditioner connected with the intelligent refrigerator can be determined to belong to the user, the user can send a message for confirming the identity of the intelligent air conditioner to the server through the mobile terminal, and the server can confirm that the verification of the identity verification information of the intelligent air conditioner passes according to the received identity confirmation message.
It should be noted that, when the working state information of the first device is sent to the mobile terminal bound to the second device for verification, and after the verification is passed, the binding relationship between the first device and the mobile terminal is saved.
And B: and sending the notification message to the second device.
The second equipment sends the identification of the wireless access point and the access password to the first equipment according to the notification message sent by the server, so that the first equipment can establish connection with the wireless access point according to the identification of the wireless access point and the access password, and the first equipment is networked.
By adopting the method provided by the embodiment 1 of the application, as the wireless connection between the first device and the second device is established, and then through the wireless connection, the first device can receive the distribution network information of the wireless access point sent by the second device, and utilize the distribution network information to establish connection with the wireless access point, even if the first device does not have an information input device such as a keyboard and a touch screen, the purpose of enabling the first device to acquire the distribution network information of the wireless access point and establish connection with the wireless access point according to the distribution network information can be achieved by adopting the scheme.
Example 2
The embodiment of the application provides a connection establishing device, which is used for providing a scheme for establishing connection between Internet of things equipment and a wireless access point. The specific structural diagram of the device is shown in fig. 4, and the device comprises: a connection establishing unit 21, an information receiving unit 22 and a networking unit 23.
The connection establishing unit 21 is configured to establish a wireless connection between a first device and a second device; the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
the information receiving unit 22 is configured to receive distribution network information of the wireless access point, which is sent by a second device through the wireless connection;
and the networking unit 23 is configured to establish a connection with the wireless access point by using the distribution network information.
In one embodiment, the information receiving unit 22 is configured to: through the wireless connection, sending authentication information of the first equipment to the second equipment, and receiving the distribution network information of the wireless access point, which is sent by the second equipment after the authentication information is verified; the distribution network information sent by the second device is sent through the wireless connection established between the first device and the second device.
In one embodiment, the authentication information of the first device includes at least one of the following information: device characteristic information of the first device; operating state information of the first device.
In one embodiment, the information receiving unit 22 is configured to: sending device feature information of the first device to the second device through the wireless connection; after receiving a first notification message that the second device passes the verification of the device feature information of the first device, sending the working state information of the first device to the second device; receiving distribution network information of the wireless access point, which is sent by second equipment after the working state information is verified; the distribution network information sent by the second device is sent through the wireless connection established between the first device and the second device.
In one embodiment, the networking unit 23 is configured to: and after establishing connection with the wireless access point by using the distribution network information, sending the working state information of the first equipment to the wireless access point so that the wireless access point uploads the working state information to a server.
In one embodiment, the wireless connection between the connection establishing means and the second arrangement comprises at least one of: establishing a wireless connection between the first device and the second device based on a Wi-Fi technology; establishing a wireless connection between a first device and a second device based on Bluetooth technology; establishing a wireless connection between the first device and the second device based on Near Field Communication (NFC) technology.
In one embodiment, the connection establishing unit 21 is configured to: according to the pre-stored characteristic information of the second equipment serving as a connection establishment object, after a data packet containing the same characteristic information of the second equipment is judged to be monitored, the wireless connection between the first equipment and the second equipment is established; or receiving a selection instruction of the user for the feature information of the second device contained in the feature information set displayed by the first device, and establishing wireless connection between the first device and the second device in response to the selection instruction; the feature information included in the feature information set is the feature information included in the data packet monitored by the first device.
In one embodiment, the connection establishing unit 21 is configured to: determining a password generation algorithm mapped with the characteristic information of the second equipment from prestored access password generation algorithms, and generating an access password according to the determined password generation algorithm; and establishing wireless connection between the first equipment and the second equipment by using the generated access password.
In one embodiment, the feature information of the second device includes at least one of the following information: information of a brand of the second device; information of a model of the second device; the MAC address of the second device.
In one embodiment, the networking unit 23 is further configured to: and after the first equipment establishes connection with the wireless access point by using the identifier and the access password, disconnecting the wireless connection established with the second equipment.
By adopting the device provided by the embodiment 2 of the application, as the wireless connection between the first device and the second device is established, and then the first device can receive the distribution network information of the wireless access point sent by the second device through the wireless connection, and utilize the distribution network information to establish the connection with the wireless access point, even if the first device does not have an information input device such as a keyboard and a touch screen, the purpose of enabling the first device to acquire the distribution network information of the wireless access point and establishing the connection with the wireless access point according to the distribution network information can be achieved by adopting the scheme.
Example 3
The embodiment of the application provides an information sending device, which is used for providing a scheme for establishing connection between Internet of things equipment and a wireless access point. The specific structural diagram of the device is shown in fig. 5, and the device comprises: a connection establishing unit 31 and an information transmitting unit 32.
The connection establishing unit 31 is configured to receive a connection request sent by a first device, and establish a wireless connection with the first device when it is determined that the connection request is allowed to be executed; the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
and an information sending unit 32, configured to send, to the first device, the distribution network information of the wireless access point stored by the second device through the wireless connection.
In one embodiment, the connection establishing unit 31 is configured to determine whether a condition for allowing the second device to establish a wireless connection with the first device currently exists; if the judgment result is yes, the wireless connection between the second equipment and the first equipment is established.
In one embodiment, the condition for allowing the second device to establish a wireless connection with the first device includes: the number of the devices which establish wireless connection with the second device does not exceed the preset maximum connection number and the feature information of the first device is not in a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
In one embodiment, the connection establishing unit 31 is configured to: receiving authentication information of the first equipment, which is sent by the first equipment through wireless connection established between the first equipment and the information sending device, and sending the distribution network information of the wireless access point, which is stored by the second equipment, to the first equipment through the wireless connection established between the first equipment and the information sending device after the authentication information of the first equipment is verified.
In one embodiment, the authentication information of the first device includes at least one of the following information: device characteristic information of the first device; operating state information of the first device.
In one embodiment, the authentication information of the first device includes at least one of the following information: device characteristic information of the first device; operating state information of the first device.
In one embodiment, the information sending unit 32 is configured to: receiving the device characteristic information of the first device, which is sent by the first device through the wireless connection, and sending a first notification message to the first device after the device characteristic information of the first device is verified; and receiving the working state information of the first equipment, which is sent by the first equipment according to the first notification message, and sending the distribution network information of the wireless access point, which is stored by the second equipment, to the first equipment after the working state information of the first equipment is verified.
In one embodiment, the authentication information of the first device is authenticated by the second device; or, the authentication request is sent to the authentication device for authentication.
In one embodiment, the authentication device includes: and the mobile terminal is bound with the second equipment.
In one embodiment, the system further comprises a connection disconnection unit for: if the authentication of the identity authentication information of the first equipment by the information sending unit is not passed, disconnecting the wireless connection established with the first equipment, and adding the characteristic information of the first equipment into a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
By adopting the device provided by the embodiment 3 of the application, as the wireless connection between the first device and the second device is established, and then the first device can receive the distribution network information of the wireless access point sent by the second device through the wireless connection, and utilize the distribution network information to establish the connection with the wireless access point, even if the first device does not have an information input device such as a keyboard and a touch screen, the purpose of enabling the first device to acquire the distribution network information of the wireless access point and establishing the connection with the wireless access point according to the distribution network information can be achieved by adopting the scheme.
Example 4
The application embodiment provides a message sending device, which is used for providing a scheme for enabling an internet of things device to establish connection with a wireless access point. The specific structural diagram of the device is shown in fig. 6, and the device comprises: a notification message generating unit 41 and a notification message transmitting unit 42.
The notification message generating unit 42 is configured to generate a notification message used for instructing the second device to send the distribution network information of the wireless access point to the first device after the authentication information of the first device sent by the second device passes the authentication;
a notification message sending unit 42, configured to send the notification message to the second device; the second device stores distribution network information of the wireless access point; the distribution network information comprises a service set identification of the wireless access point.
In one embodiment, the authentication information of the first device includes at least one of the following information: device characteristic information of the first device; operating state information of the first device.
In one embodiment, the notification message generating unit 41 is configured to: after the verification of the device characteristic information of the first device, which is sent by the second device, passes, sending a second notification message to the second device; and receiving the working state information of the first equipment, which is sent by the second equipment according to the second notification message, and generating a notification message for indicating the second equipment to send the distribution network information of the wireless access point to the first equipment after the working state information of the first equipment is verified.
In one embodiment, the authentication information of the first device is authenticated by a server; or, the authentication is sent to the mobile terminal bound with the second device for authentication.
In one embodiment, the notification message generating unit 41 is configured to: the working state information of the first equipment is sent to a mobile terminal bound with second equipment, so that the mobile terminal displays the working state information on a display interface; receiving a first equipment operation instruction sent by the mobile terminal, and sending the first equipment operation instruction to second equipment so that the second equipment sends the first equipment operation instruction to the first equipment through wireless connection established with the first equipment; receiving changed working state information of the first equipment sent by the second equipment; the changed working state information of the first equipment sent by the second equipment is obtained by the first equipment changing the working state according to the received operation instruction of the first equipment and sending the changed working state information to the second equipment; sending the changed working state information of the first equipment to a mobile terminal bound with second equipment, so that the mobile terminal displays the changed working state information of the first equipment on a display interface; and receiving a verification result sent by the mobile terminal after verifying the working state information of the first equipment.
In one embodiment, the notification message sending unit 42 is configured to: and after sending a notification message to a second device, storing the binding relationship between the first device and the mobile terminal.
By adopting the device provided by the embodiment 4 of the application, as the wireless connection between the first device and the second device is established, and then the first device can receive the distribution network information of the wireless access point sent by the second device through the wireless connection, and utilize the identification and the access password to establish the connection with the wireless access point, even if the first device does not have an information input device such as a keyboard and a touch screen, the purpose of enabling the first device to acquire the distribution network information of the wireless access point and establishing the connection with the wireless access point according to the distribution network information can be achieved by adopting the scheme.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (25)

1. A method for establishing a connection, comprising:
establishing a wireless connection between a first device and a second device; the first equipment and the second equipment comprise intelligent household equipment; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
sending the device characteristic information of the first device to the second device through the wireless connection established between the first device and the second device;
after receiving a first notification message that the second device passes the verification of the device feature information of the first device, sending the working state information of the first device to the second device;
receiving the distribution network information sent by the second equipment after the working state information is verified; the distribution network information is sent by the second device when the first device and the second device are determined to belong to the same user;
establishing connection with the wireless access point by using the distribution network information;
and sending the working state information of the first equipment to the wireless access point so that the wireless access point uploads the working state information to a server.
2. The method of claim 1, wherein establishing a wireless connection between a first device and a second device comprises at least one of:
establishing a wireless connection between the first device and the second device based on a Wi-Fi technology;
establishing a wireless connection between a first device and a second device based on Bluetooth technology;
establishing a wireless connection between the first device and the second device based on Near Field Communication (NFC) technology.
3. The method of claim 1 or 2, wherein establishing the wireless connection between the first device and the second device comprises:
according to the pre-stored characteristic information of the second equipment serving as a connection establishment object, after a data packet containing the same characteristic information of the second equipment is judged to be monitored, the wireless connection between the first equipment and the second equipment is established; or
Receiving a selection instruction of a user for the feature information of the second device contained in the feature information set displayed by the first device, and establishing wireless connection between the first device and the second device in response to the selection instruction; the feature information included in the feature information set is the feature information included in the data packet monitored by the first device.
4. The method of claim 3, wherein establishing the wireless connection between the first device and the second device comprises:
determining a password generation algorithm mapped with the characteristic information of the second equipment from prestored access password generation algorithms, and generating an access password according to the determined password generation algorithm;
and establishing wireless connection between the first equipment and the second equipment by using the generated access password.
5. The method of claim 3, wherein the feature information of the second device comprises at least one of:
information of a brand of the second device;
information of a model of the second device;
the media access control, MAC, address of the second device.
6. The method of claim 1, wherein after establishing the connection with the wireless access point using the distribution network information, the method further comprises:
the wireless connection established between the first device and the second device is disconnected.
7. An information transmission method, comprising:
establishing a wireless connection between the second device and the first device; the first equipment and the second equipment comprise intelligent household equipment; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
receiving device characteristic information of first equipment, which is sent by the first equipment through wireless connection established between the first equipment and second equipment; if the device characteristic information is verified, sending a first notification message to the first device;
and receiving the working state information of the first equipment sent by the first equipment according to the first notification message, and sending the distribution network information of the wireless access point stored by the second equipment to the first equipment through the wireless connection established between the first equipment and the second equipment after the working state information of the first equipment is verified, so that the first equipment establishes connection with the wireless access point by using the distribution network information, and sending the working state information of the first equipment to the wireless access point, so that the wireless access point uploads the working state information to a server.
8. The method of claim 7, wherein establishing a wireless connection between the second device and the first device comprises:
judging whether a condition for allowing the second equipment to establish wireless connection with the first equipment exists at present;
if the judgment result is yes, the wireless connection between the second equipment and the first equipment is established.
9. The method of claim 8, wherein the condition that allows the second device to establish a wireless connection with the first device comprises:
the number of the devices which establish wireless connection with the second device does not exceed the preset maximum connection number and the feature information of the first device is not in a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
10. The method of claim 7, wherein the device characteristic information and the operating state information of the first device are verified by the second device; or, the authentication request is sent to the authentication device for authentication.
11. The method of claim 10, wherein the authentication device comprises: and the mobile terminal is bound with the second equipment.
12. The method of claim 7, wherein the method further comprises:
if the verification of the device characteristic information or the working state information of the first device is not passed, disconnecting the wireless connection established between the second device and the first device, and adding the characteristic information of the first device into a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
13. A method for sending a message, comprising:
after the verification of the device characteristic information of the first device, which is sent by the second device, passes, sending a second notification message to the second device;
receiving the working state information of the first equipment, which is sent by the second equipment according to the second notification message, and generating a notification message for indicating the second equipment to send the wireless access point distribution network information to the first equipment after the working state information of the first equipment is verified; the first equipment and the second equipment comprise intelligent household equipment;
sending the notification message to a second device, so that the second device sends the distribution network information to the first device through the wireless connection established with the first device according to the notification message, and the first device establishes connection with a wireless access point by using the distribution network information;
receiving working state information of the first equipment, which is sent by the first equipment through the wireless access point;
the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identification of the wireless access point.
14. The method of claim 13, wherein the device characteristic information and the operational status information of the first device are verified by the server; or, the authentication is sent to the mobile terminal bound with the second device for authentication.
15. The method of claim 14, wherein sending the operating state information of the first device to the mobile terminal bound to the second device for authentication comprises:
sending the working state information of the first equipment to a mobile terminal bound with second equipment for displaying;
receiving an operation instruction which is sent by a mobile terminal and aims at first equipment, and sending the operation instruction to second equipment so that the second equipment sends the operation instruction to the first equipment through wireless connection established between the second equipment and the first equipment;
receiving changed working state information of the first equipment sent by the second equipment; the changed working state information of the first equipment, which is sent by the second equipment, is the information of the working state of the first equipment after the working state of the first equipment is changed according to the received operation instruction aiming at the first equipment;
and sending the changed working state information of the first equipment to the mobile terminal so as to trigger the mobile equipment to display the changed working state information of the first equipment and return an identity verification result aiming at the first equipment.
16. The method of claim 14, wherein the method further comprises:
and when the working state information of the first equipment is sent to the mobile terminal bound with the second equipment for verification, and after the verification is passed, the binding relationship between the first equipment and the mobile terminal is stored.
17. A connection establishment apparatus, comprising:
a connection establishing unit for establishing a wireless connection between a first device and a second device; the first equipment and the second equipment comprise intelligent household equipment; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
the information receiving unit is used for sending the device characteristic information of the first device to the second device through the wireless connection; after receiving a first notification message that the second device passes the verification of the device feature information of the first device, sending the working state information of the first device to the second device; receiving distribution network information of the wireless access point, which is sent by second equipment after the working state information is verified; the distribution network information is sent by the second device when the first device and the second device are determined to belong to the same user;
the networking unit is used for establishing connection with the wireless access point by utilizing the distribution network information; and sending the working state information of the first equipment to the wireless access point so that the wireless access point uploads the working state information to a server.
18. The apparatus of claim 17, wherein the wireless connection between the first device and the second device comprises at least one of:
establishing a wireless connection between the first device and the second device based on a Wi-Fi technology;
establishing a wireless connection between a first device and a second device based on Bluetooth technology;
establishing a wireless connection between the first device and the second device based on Near Field Communication (NFC) technology.
19. The apparatus of claim 17, wherein the connection establishing unit is to:
according to the pre-stored characteristic information of the second equipment serving as a connection establishment object, after a data packet containing the same characteristic information of the second equipment is judged to be monitored, the wireless connection between the first equipment and the second equipment is established; or
Receiving a selection instruction of a user for the feature information of the second device contained in the feature information set displayed by the first device, and establishing wireless connection between the first device and the second device in response to the selection instruction; the feature information included in the feature information set is the feature information included in the data packet monitored by the first device.
20. The apparatus of claim 19, wherein the connection establishing unit is to:
determining a password generation algorithm mapped with the characteristic information of the second equipment from prestored access password generation algorithms, and generating an access password according to the determined password generation algorithm;
and establishing wireless connection between the first equipment and the second equipment by using the generated access password.
21. An information transmission apparatus, comprising:
a connection establishing unit for establishing a wireless connection between the second device and the first device; the first equipment and the second equipment comprise intelligent household equipment; the second equipment stores the distribution network information of the wireless access point; the distribution network information comprises a service set identifier of a wireless access point;
the information sending unit is used for receiving the device characteristic information of the first device, which is sent by the first device through the wireless connection established between the first device and the second device; if the device characteristic information is verified, sending a first notification message to the first device; receiving the working state information of the first device sent by the first device according to the first notification message, and sending the distribution network information of the wireless access point stored by the second device to the first device through the wireless connection established between the first device and the second device after the working state information of the first device is verified; and the first equipment establishes connection with the wireless access point by using the distribution network information and sends the working state information of the first equipment to the wireless access point, so that the wireless access point uploads the working state information to a server.
22. The apparatus of claim 21, wherein the connection establishing unit is to:
judging whether a condition for allowing the second equipment to establish wireless connection with the first equipment exists at present;
if the judgment result is yes, the wireless connection between the second equipment and the first equipment is established.
23. The apparatus of claim 22, wherein the condition that allows the second device to establish a wireless connection with the first device comprises:
the number of the devices which establish wireless connection with the second device does not exceed the preset maximum connection number and the feature information of the first device is not in a blacklist; the blacklist is used for storing the characteristic information of the equipment which can not establish connection with the second equipment.
24. A message transmission apparatus, comprising:
the notification message generation unit is used for sending a second notification message to the second equipment after the verification of the equipment characteristic information of the first equipment sent by the second equipment is passed; receiving the working state information of the first equipment, which is sent by the second equipment according to the second notification message, and generating a notification message for indicating the second equipment to send the wireless access point distribution network information to the first equipment after the working state information of the first equipment is verified; the first equipment and the second equipment comprise intelligent household equipment;
a notification message sending unit, configured to send the notification message to a second device, so that the second device determines, according to the notification message, that the first device and the second device are devices belonging to the same user, and sends the distribution network information to the first device through a wireless connection established with the first device; the second equipment stores the distribution network information of the wireless access point;
a receiving unit, configured to receive the working state information of the first device sent by the first device through the wireless access point.
25. The apparatus as claimed in claim 24, wherein the notification message generating unit is configured to:
sending the working state information of the first equipment to a mobile terminal bound with the second equipment for displaying;
receiving an operation instruction which is sent by the mobile terminal and aims at the first equipment, and sending the operation instruction to the second equipment so that the second equipment sends the operation instruction to the first equipment through the wireless connection which is established between the second equipment and the first equipment;
receiving changed working state information of the first equipment sent by the second equipment; the changed working state information of the first equipment, which is sent by the second equipment, is the information of the working state of the first equipment after the working state of the first equipment is changed according to the received operation instruction aiming at the first equipment;
and sending the changed working state information of the first equipment to a mobile terminal bound with second equipment so as to trigger the mobile equipment to display the changed working state information of the first equipment and return an identity verification result aiming at the first equipment.
CN201610186125.7A 2016-03-29 2016-03-29 Connection establishing method, information sending method, message sending method and device Active CN107241679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610186125.7A CN107241679B (en) 2016-03-29 2016-03-29 Connection establishing method, information sending method, message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610186125.7A CN107241679B (en) 2016-03-29 2016-03-29 Connection establishing method, information sending method, message sending method and device

Publications (2)

Publication Number Publication Date
CN107241679A CN107241679A (en) 2017-10-10
CN107241679B true CN107241679B (en) 2022-01-04

Family

ID=59983156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610186125.7A Active CN107241679B (en) 2016-03-29 2016-03-29 Connection establishing method, information sending method, message sending method and device

Country Status (1)

Country Link
CN (1) CN107241679B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109996314B (en) * 2017-12-29 2021-11-09 阿里巴巴集团控股有限公司 Method, device and system for accessing network to be configured to network hotspot device
CN110300432B (en) * 2018-03-22 2022-04-26 阿里巴巴集团控股有限公司 Method for distributing network to equipment and network distribution system
CN108667908B (en) * 2018-04-13 2021-04-06 广州虎牙信息科技有限公司 Information feedback method, device, equipment and storage medium during client interaction
CN110557801B (en) * 2018-05-31 2021-11-16 睿生光电股份有限公司 Control method of wireless device
CN109257795A (en) * 2018-08-17 2019-01-22 珠海格力电器股份有限公司 A kind of method and apparatus carrying out distribution
CN108966200B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN109039777A (en) * 2018-09-13 2018-12-18 上海庆科信息技术有限公司 A kind of wifi equipment and its match network method
CN111866813B (en) * 2019-04-30 2024-04-19 瑞昱半导体股份有限公司 Wireless connection setting and transmitting method
CN110381508A (en) * 2019-05-21 2019-10-25 欧普照明股份有限公司 A method of distribution success rate is improved using wifi remote controler
CN110519760B (en) * 2019-07-24 2021-02-09 华为技术有限公司 Network access method, device, equipment and storage medium
CN112291787B (en) * 2019-07-24 2023-03-24 杭州萤石软件有限公司 Network connection method, device and system
CN110972161B (en) * 2019-10-22 2022-04-15 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium
CN110971495B (en) * 2019-10-24 2021-12-24 青岛海尔科技有限公司 Equipment binding method and device of intelligent household system and storage medium
CN111278067A (en) * 2020-01-16 2020-06-12 深圳市沃特沃德股份有限公司 Method, device and storage medium for sharing site connection information by non-screen equipment
CN114205838A (en) * 2020-09-02 2022-03-18 深圳绿米联创科技有限公司 Network access method, device, electronic equipment and computer readable storage medium
CN112469055A (en) * 2020-11-23 2021-03-09 深圳数联天下智能科技有限公司 Equipment network distribution method, related equipment and storage medium
EP4236379A4 (en) * 2020-11-26 2023-12-27 Huawei Technologies Co., Ltd. Security authentication method and apparatus applied to wifi
CN113365274B (en) * 2021-06-10 2023-11-14 荣耀终端有限公司 Network access method and electronic equipment
CN113722118A (en) * 2021-07-21 2021-11-30 维沃移动通信(杭州)有限公司 Object access method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2636384C (en) * 2006-11-21 2014-07-15 Research In Motion Limited Displaying a list of available wireless local area networks
CN103298144A (en) * 2012-03-02 2013-09-11 中兴通讯股份有限公司 Method, system and terminal for Wi-Fi connection through NFC
CN103369707B (en) * 2012-03-27 2016-12-14 华为终端有限公司 Wireless network establishment of connection method and terminal unit
CN103581876A (en) * 2012-08-02 2014-02-12 中兴通讯股份有限公司 Method and device for sending wireless access point information, and mobile terminals
CN103096506A (en) * 2013-01-07 2013-05-08 东莞宇龙通信科技有限公司 Terminal devices, wireless fidelity (WIFI) connection method and system
US20150141045A1 (en) * 2013-11-21 2015-05-21 Telecommunication Systems, Inc. Geofence
CN105357666A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 WIFI (Wireless Fidelity) password sharing method and terminals
CN104967995A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method for acquiring WIFI network password, client and server

Also Published As

Publication number Publication date
CN107241679A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107241679B (en) Connection establishing method, information sending method, message sending method and device
US11943615B2 (en) Method and apparatus for discussing digital certificate by ESIM terminal and server
EP3888317B1 (en) Detection of security threats in a mesh network
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
US20150009862A1 (en) Wireless Network Connection Establishment Method and Terminal Device
CN108683690B (en) Authentication method, user equipment, authentication device, authentication server and storage medium
US10887745B2 (en) Method and device for sharing file between different terminals
JP2017516328A (en) Violation detection in key exchange encrypted channels using end-user federated login
JP6671527B2 (en) Method and apparatus for a terminal device to discover another terminal device
CN106105131B (en) Electronic device, method, apparatus, and computer medium pairing a plurality of devices
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN112804697B (en) Network distribution method and device for equipment to be networked, electronic equipment and computer readable medium
CN104869609A (en) Information providing method and device
EP3849152A1 (en) Methods and systems for connecting a wireless device to a wireless network
CN111741509A (en) Network distribution method and device, storage medium and processor
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
EP4142328A1 (en) Network authentication method and apparatus, and system
EP3833153B1 (en) Network connection methods and devices
CN112104479A (en) Intelligent equipment batch zero allocation method
CN110602804A (en) Data exchange method, device and storage medium based on AP direct connection
CN117221029A (en) Intelligent household equipment network distribution method and device, electronic equipment and storage medium
CN116390123A (en) Device control method, electronic device, and computer-readable storage medium
CN116405937A (en) Networking method, gateway device, intelligent device and storage medium
CN116847431A (en) Information transmission method and device, storage medium and electronic device
WO2021064091A1 (en) Privacy in a wireless communication network

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
GR01 Patent grant
GR01 Patent grant