CN108811179B - Wireless network connection method, device and storage medium - Google Patents
Wireless network connection method, device and storage medium Download PDFInfo
- Publication number
- CN108811179B CN108811179B CN201810521931.4A CN201810521931A CN108811179B CN 108811179 B CN108811179 B CN 108811179B CN 201810521931 A CN201810521931 A CN 201810521931A CN 108811179 B CN108811179 B CN 108811179B
- Authority
- CN
- China
- Prior art keywords
- wireless network
- smart home
- password
- application
- home application
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本公开是关于一种无线网络的连接方法、装置及存储介质,属于智能设备技术领域。该方法应用于终端中的智能家居应用,包括:向智能家居服务器发送信息获取请求,该信息获取请求携带终端当前接入的无线网络的网络标识,该信息获取请求用于指示智能家居服务器获取并返回该无线网络的密码;当接收到智能家居服务器发送的该无线网络的密码时,向第一智能设备发送第一无线网络接入请求,该第一无线网络接入请求中携带该无线网络的网络标识和密码。这样,可以实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,简化了用户的操作,节省了时间。
The present disclosure relates to a wireless network connection method, device and storage medium, belonging to the technical field of smart devices. The method is applied to a smart home application in a terminal, and includes: sending an information acquisition request to a smart home server, where the information acquisition request carries a network identifier of a wireless network currently accessed by the terminal, and the information acquisition request is used to instruct the smart home server to acquire and Return the password of the wireless network; when receiving the password of the wireless network sent by the smart home server, send a first wireless network access request to the first smart device, where the first wireless network access request carries the wireless network's password Network ID and password. In this way, the smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request, which improves the efficiency of the smart device connecting to the wireless network, simplifies user operations, and saves time. .
Description
技术领域technical field
本公开涉及智能设备技术领域,尤其涉及一种无线网络的连接方法、装置及存储介质。The present disclosure relates to the technical field of smart devices, and in particular, to a wireless network connection method, device, and storage medium.
背景技术Background technique
随着物联网和互联网的发展,越来越多的智能设备进入人们的生活,且大多数智能设备都可以接入无线网络实现终端控制或者远程控制。而在实现终端控制或远程控制之前,智能设备需要进行无线网络的连接。With the development of the Internet of Things and the Internet, more and more smart devices have entered people's lives, and most smart devices can be connected to wireless networks for terminal control or remote control. Before realizing terminal control or remote control, smart devices need to be connected to a wireless network.
相关技术中,通常都是通过终端中安装的智能家居应用来控制智能设备,因此,智能设备进行无线网络连接的实现过程可以为:用户进入智能家居应用,选择智能设备当前要接入的无线网络的网络标识,再输入该无线网络的密码,然后终端将无线网络的网络标识和密码发送给智能设备,这样,智能设备便可以根据该无线网络的网络标识和密码接入该无线网络。In the related art, the smart device is usually controlled by the smart home application installed in the terminal. Therefore, the realization process of the smart device connecting to the wireless network can be as follows: the user enters the smart home application and selects the wireless network that the smart device currently wants to access. Then, the terminal sends the network ID and password of the wireless network to the smart device, so that the smart device can access the wireless network according to the network ID and password of the wireless network.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开提供一种无线网络的连接方法、装置及存储介质。To overcome the problems existing in the related art, the present disclosure provides a wireless network connection method, device and storage medium.
根据本公开实施例的第一方面,提供一种无线网络的连接方法,应用于终端中的智能家居应用,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a method for connecting a wireless network is provided, which is applied to a smart home application in a terminal, and the method includes:
向智能家居服务器发送信息获取请求,所述信息获取请求携带所述终端当前接入的无线网络的网络标识,所述信息获取请求用于指示所述智能家居服务器获取并返回所述无线网络的密码;Send an information acquisition request to the smart home server, where the information acquisition request carries the network identifier of the wireless network currently accessed by the terminal, and the information acquisition request is used to instruct the smart home server to acquire and return the password of the wireless network ;
当接收到所述智能家居服务器发送的所述无线网络的密码时,向第一智能设备发送第一无线网络接入请求,所述第一无线网络接入请求中携带所述无线网络的网络标识和密码,且所述第一智能设备为所述终端通过所述智能家居应用能够控制的任一智能设备。When receiving the password of the wireless network sent by the smart home server, send a first wireless network access request to the first smart device, where the first wireless network access request carries the network identifier of the wireless network and password, and the first smart device is any smart device that the terminal can control through the smart home application.
可选地,所述信息获取请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名,且所述无线网络的密码是所述智能家居服务器对所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名鉴权成功后发送的。Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, and the password of the wireless network is the password of the smart home server for the smart home application. Sent after the currently logged in user account and the application signature of the smart home application are successfully authenticated.
可选地,所述当接收到所述智能家居服务器发送的所述无线网络的密码之后,还包括:Optionally, after receiving the password of the wireless network sent by the smart home server, the method further includes:
存储所述无线网络的密码;storing a password for the wireless network;
所述存储所述无线网络的密码之后,还包括:After storing the password of the wireless network, the method further includes:
向所述智能家居服务器发送信息验证请求,所述信息验证请求携带所述无线网络的网络标识和本地存储的所述无线网络的密码,所述信息验证请求用于指示所述智能家居服务器对本地存储的所述无线网络的密码进行验证;Send an information verification request to the smart home server, where the information verification request carries the network identifier of the wireless network and the locally stored password of the wireless network, and the information verification request is used to instruct the smart home server to The stored password of the wireless network is verified;
当接收到所述智能家居服务器发送的验证成功提示信息时,向第二智能设备发送第二无线网络接入请求,所述第二无线网络接入请求中携带所述无线网络的网络标识和本地存储的所述无线网络的密码,且所述第二智能设备为所述终端中的智能家居应用能够控制的任一智能设备。When receiving the verification success prompt information sent by the smart home server, send a second wireless network access request to the second smart device, where the second wireless network access request carries the network identifier of the wireless network and the local The stored password of the wireless network, and the second smart device is any smart device that can be controlled by a smart home application in the terminal.
可选地,所述信息验证请求中携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述向所述智能家居服务器发送信息验证请求之后,还包括:After the information verification request is sent to the smart home server, the method further includes:
当接收到所述智能家居服务器发送的验证失败提示信息且所述验证失败提示信息携带有所述智能家居服务器存储的所述无线网络的密码时,向所述第二智能设备发送第三无线网络接入请求,所述第三无线网络接入请求中携带所述无线网络的网络标识和所述智能家居服务器存储的所述无线网络的密码;When receiving the verification failure prompt information sent by the smart home server and the verification failure prompt information carries the password of the wireless network stored by the smart home server, send a third wireless network to the second smart device an access request, where the third wireless network access request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home server;
其中,所述智能家居服务器存储的所述无线网络的密码是在所述智能家居服务器对所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名鉴权成功后在所述验证失败提示信息中携带的。Wherein, the password of the wireless network stored by the smart home server is verified after the smart home server successfully authenticates the user account currently logged in to the smart home application and the application signature of the smart home application. It is carried in the failure message.
可选地,所述向智能家居服务器发送信息获取请求之前,还包括:Optionally, before sending the information acquisition request to the smart home server, the method further includes:
当所述终端成功接入所述无线网络时,获取所述无线网络的密码;When the terminal successfully accesses the wireless network, obtain the password of the wireless network;
向所述智能家居服务器发送信息存储请求,所述信息存储请求携带所述无线网络的网络标识和密码,所述信息存储请求用于指示所述智能家居服务器将所述无线网络的网络标识和密码对应存储。Send an information storage request to the smart home server, where the information storage request carries the network identifier and password of the wireless network, and the information storage request is used to instruct the smart home server to store the network identifier and password of the wireless network. corresponding storage.
可选地,所述信息存储请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名。Optionally, the information storage request further carries the user account currently logged in by the smart home application and the application signature of the smart home application.
根据本公开实施例的第二方面,提供一种无线网络的连接装置,应用于智能家居服务器,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a wireless network connection device, which is applied to a smart home server, and the device includes:
接收终端中的智能家居应用发送的信息获取请求,所述信息获取请求携带所述终端当前接入的无线网络的网络标识;receiving an information acquisition request sent by a smart home application in the terminal, where the information acquisition request carries the network identifier of the wireless network currently accessed by the terminal;
根据所述无线网络的网络标识获取所述无线网络的密码;Obtain the password of the wireless network according to the network identifier of the wireless network;
向所述智能家居应用发送所述无线网络的密码。A password for the wireless network is sent to the smart home application.
可选地,所述信息获取请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述根据所述无线网络的网络标识获取所述无线网络的密码之前,还包括:Before acquiring the password of the wireless network according to the network identifier of the wireless network, the method further includes:
根据本地存储的用户账号和应用签名,对所述信息获取请求中携带的用户账号和应用签名进行鉴权;Authenticating the user account and application signature carried in the information acquisition request according to the locally stored user account and application signature;
当鉴权成功时,执行根据所述无线网络的网络标识获取所述无线网络的密码的步骤。When the authentication is successful, the step of obtaining the password of the wireless network according to the network identifier of the wireless network is performed.
可选地,所述向所述智能家居应用发送所述无线网络的密码之后,还包括:Optionally, after sending the password of the wireless network to the smart home application, the method further includes:
接收所述智能家居应用发送的信息验证请求,所述信息验证请求为所述智能家居应用存储所述智能家居服务器发送的所述无线网络的密码之后发送的,且所述信息验证请求携带所述无线网络的网络标识和所述智能家居应用存储的所述无线网络的密码;Receive an information verification request sent by the smart home application, where the information verification request is sent after the smart home application stores the password of the wireless network sent by the smart home server, and the information verification request carries the The network identifier of the wireless network and the password of the wireless network stored by the smart home application;
根据本地存储的所述无线网络的密码,对所述信息验证请求中携带的密码进行验证;verifying the password carried in the information verification request according to the locally stored password of the wireless network;
当验证成功时,向所述智能家居应用发送验证成功提示信息,所述验证成功提示信息用于提示所述信息验证请求中携带的密码正确。When the verification is successful, a verification success prompt message is sent to the smart home application, and the verification success prompt message is used to prompt that the password carried in the information verification request is correct.
可选地,所述信息验证请求中携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述根据本地存储的所述无线网络的密码,对所述信息验证请求中携带的密码进行验证之后,还包括:After verifying the password carried in the information verification request according to the locally stored password of the wireless network, the method further includes:
当验证失败时,根据本地存储的用户账号和应用签名,对所述信息验证请求中携带的用户账号和应用签名进行鉴权;When the verification fails, authenticate the user account and application signature carried in the information verification request according to the locally stored user account and application signature;
当鉴权成功时,向所述智能家居应用发送验证失败提示信息,所述验证失败提示信息携带本地存储的所述无线网络的密码,且所述验证失败提示信息用于提示所述信息验证请求中携带的密码不正确。When the authentication is successful, send verification failure prompt information to the smart home application, the verification failure prompt information carries the password of the wireless network stored locally, and the verification failure prompt information is used to prompt the information verification request The password carried in is incorrect.
可选地,其特征在于,所述接收终端中的智能家居应用发送的信息获取请求之前,还包括:Optionally, before the receiving the information acquisition request sent by the smart home application in the terminal further includes:
接收所述智能家居应用发送的信息存储请求,所述信息存储请求携带所述无线网络的网络标识和密码;receiving an information storage request sent by the smart home application, where the information storage request carries the network identifier and password of the wireless network;
将所述无线网络的网络标识和密码对应存储。The network identifier and password of the wireless network are stored correspondingly.
可选地,所述信息存储请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述将所述无线网络的网络标识和密码对应存储,包括:The corresponding storage of the network identifier and password of the wireless network includes:
将所述无线网络的网络标识和密码,以及所述信息存储请求中携带的用户账号和应用签名对应存储。The network identifier and password of the wireless network, as well as the user account and application signature carried in the information storage request are stored correspondingly.
根据本公开实施例的第三方面,提供一种无线网络的连接装置,应用于终端中的智能家居应用,所述装置包括:According to a third aspect of the embodiments of the present disclosure, a device for connecting a wireless network is provided, which is applied to a smart home application in a terminal, and the device includes:
第一发送模块,用于向智能家居服务器发送信息获取请求,所述信息获取请求携带所述终端当前接入的无线网络的网络标识,所述信息获取请求用于指示所述智能家居服务器获取并返回所述无线网络的密码;The first sending module is configured to send an information acquisition request to the smart home server, where the information acquisition request carries the network identifier of the wireless network currently accessed by the terminal, and the information acquisition request is used to instruct the smart home server to acquire and return the password of the wireless network;
第二发送模块,用于当接收到所述智能家居服务器发送的所述无线网络的密码时,向第一智能设备发送第一无线网络接入请求,所述第一无线网络接入请求中携带所述无线网络的网络标识和密码,且所述第一智能设备为所述终端通过所述智能家居应用能够控制的任一智能设备。A second sending module, configured to send a first wireless network access request to the first smart device when receiving the wireless network password sent by the smart home server, where the first wireless network access request carries The network identifier and password of the wireless network, and the first smart device is any smart device that the terminal can control through the smart home application.
可选地,所述信息获取请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名,且所述无线网络的密码是所述智能家居服务器对所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名鉴权成功后发送的。Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, and the password of the wireless network is the password of the smart home server for the smart home application. Sent after the currently logged in user account and the application signature of the smart home application are successfully authenticated.
可选地,所述装置还包括:Optionally, the device further includes:
存储模块,用于存储所述无线网络的密码;a storage module for storing the password of the wireless network;
所述装置还包括:The device also includes:
第三发送模块,用于向所述智能家居服务器发送信息验证请求,所述信息验证请求携带所述无线网络的网络标识和本地存储的所述无线网络的密码,所述信息验证请求用于指示所述智能家居服务器对本地存储的所述无线网络的密码进行验证;The third sending module is configured to send an information verification request to the smart home server, where the information verification request carries the network identifier of the wireless network and the locally stored password of the wireless network, and the information verification request is used to indicate The smart home server verifies the locally stored password of the wireless network;
第四发送模块,用于当接收到所述智能家居服务器发送的验证成功提示信息时,向第二智能设备发送第二无线网络接入请求,所述第二无线网络接入请求中携带所述无线网络的网络标识和本地存储的所述无线网络的密码,且所述第二智能设备为所述终端中的智能家居应用能够控制的任一智能设备。a fourth sending module, configured to send a second wireless network access request to a second smart device when receiving the verification success prompt information sent by the smart home server, where the second wireless network access request carries the The network identifier of the wireless network and the locally stored password of the wireless network, and the second smart device is any smart device that can be controlled by the smart home application in the terminal.
可选地,所述信息验证请求中携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述装置还包括:The device also includes:
第五发送模块,用于当接收到所述智能家居服务器发送的验证失败提示信息且所述验证失败提示信息携带有所述智能家居服务器存储的所述无线网络的密码时,向所述第二智能设备发送第三无线网络接入请求,所述第三无线网络接入请求中携带所述无线网络的网络标识和所述智能家居服务器存储的所述无线网络的密码;The fifth sending module is configured to send a notification to the second device when receiving the verification failure prompt information sent by the smart home server and the verification failure prompt information carries the password of the wireless network stored by the smart home server. The smart device sends a third wireless network access request, where the third wireless network access request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home server;
其中,所述智能家居服务器存储的所述无线网络的密码是在所述智能家居服务器对所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名鉴权成功后在所述验证失败提示信息中携带的。Wherein, the password of the wireless network stored by the smart home server is verified after the smart home server successfully authenticates the user account currently logged in to the smart home application and the application signature of the smart home application. It is carried in the failure message.
可选地,所述装置还包括:Optionally, the device further includes:
获取模块,用于当所述终端成功接入所述无线网络时,获取所述无线网络的密码;an obtaining module, configured to obtain the password of the wireless network when the terminal successfully accesses the wireless network;
第六发送模块,用于向所述智能家居服务器发送信息存储请求,所述信息存储请求携带所述无线网络的网络标识和密码,所述信息存储请求用于指示所述智能家居服务器将所述无线网络的网络标识和密码对应存储。The sixth sending module is used to send an information storage request to the smart home server, where the information storage request carries the network identifier and password of the wireless network, and the information storage request is used to instruct the smart home server to store the The network ID and password of the wireless network are stored correspondingly.
可选地,所述信息存储请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名。Optionally, the information storage request further carries the user account currently logged in by the smart home application and the application signature of the smart home application.
根据本公开实施例的第四方面,提供一种无线网络的连接装置,应用于智能家居服务器,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a wireless network connection device, which is applied to a smart home server, and the device includes:
第一接收模块,用于接收终端中的智能家居应用发送的信息获取请求,所述信息获取请求携带所述终端当前接入的无线网络的网络标识;a first receiving module, configured to receive an information acquisition request sent by a smart home application in the terminal, where the information acquisition request carries the network identifier of the wireless network currently accessed by the terminal;
获取模块,用于根据所述无线网络的网络标识获取所述无线网络的密码;an obtaining module, configured to obtain the password of the wireless network according to the network identifier of the wireless network;
第一发送模块,用于向所述智能家居应用发送所述无线网络的密码。A first sending module, configured to send the password of the wireless network to the smart home application.
可选地,所述信息获取请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述装置还包括:The device also includes:
第一鉴权模块,用于根据本地存储的用户账号和应用签名,对所述信息获取请求中携带的用户账号和应用签名进行鉴权;a first authentication module, configured to authenticate the user account and application signature carried in the information acquisition request according to the locally stored user account and application signature;
触发模块,用于当鉴权成功时,触发所述获取模块根据所述无线网络的网络标识获取所述无线网络的密码。A triggering module, configured to trigger the obtaining module to obtain the password of the wireless network according to the network identifier of the wireless network when the authentication is successful.
可选地,所述装置还包括:Optionally, the device further includes:
第二接收模块,用于接收所述智能家居应用发送的信息验证请求,所述信息验证请求为所述智能家居应用存储所述智能家居服务器发送的所述无线网络的密码之后发送的,且所述信息验证请求携带所述无线网络的网络标识和所述智能家居应用存储的所述无线网络的密码;The second receiving module is configured to receive an information verification request sent by the smart home application, where the information verification request is sent after the smart home application stores the password of the wireless network sent by the smart home server, and the The information verification request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home application;
验证模块,用于根据本地存储的所述无线网络的密码,对所述信息验证请求中携带的密码进行验证;a verification module, configured to verify the password carried in the information verification request according to the locally stored password of the wireless network;
第二发送模块,用于当验证成功时,向所述智能家居应用发送验证成功提示信息,所述验证成功提示信息用于提示所述信息验证请求中携带的密码正确。The second sending module is configured to send the verification success prompt information to the smart home application when the verification is successful, where the verification success prompt information is used to prompt that the password carried in the information verification request is correct.
可选地,所述信息验证请求中携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述装置还包括:The device also includes:
第二鉴权模块,用于当验证失败时,根据本地存储的用户账号和应用签名,对所述信息验证请求中携带的用户账号和应用签名进行鉴权;A second authentication module, configured to authenticate the user account and application signature carried in the information verification request according to the locally stored user account and application signature when the verification fails;
第三发送模块,用于当鉴权成功时,向所述智能家居应用发送验证失败提示信息,所述验证失败提示信息携带本地存储的所述无线网络的密码,且所述验证失败提示信息用于提示所述信息验证请求中携带的密码不正确。The third sending module is configured to send verification failure prompt information to the smart home application when the authentication is successful, the verification failure prompt information carries the locally stored password of the wireless network, and the verification failure prompt information is used for It is prompted that the password carried in the information verification request is incorrect.
可选地,所述装置还包括:Optionally, the device further includes:
第三接收模块,用于接收所述智能家居应用发送的信息存储请求,所述信息存储请求携带所述无线网络的网络标识和密码;a third receiving module, configured to receive an information storage request sent by the smart home application, where the information storage request carries the network identifier and password of the wireless network;
存储模块,用于将所述无线网络的网络标识和密码对应存储。The storage module is configured to store the network identifier and password of the wireless network correspondingly.
可选地,所述信息存储请求还携带所述智能家居应用当前登录的用户账号和所述智能家居应用的应用签名;Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
所述存储模块包括:The storage module includes:
存储子模块,用于将所述无线网络的网络标识和密码,以及所述信息存储请求中携带的用户账号和应用签名对应存储。The storage submodule is configured to store the network identifier and password of the wireless network, as well as the user account and application signature carried in the information storage request.
根据本公开实施例的第五方面,提供一种无线网络的连接装置,所述装置包括:According to a fifth aspect of the embodiments of the present disclosure, there is provided an apparatus for connecting a wireless network, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为执行上述第一方面所述的任一项方法的步骤。Wherein, the processor is configured to perform the steps of any one of the methods described in the first aspect above.
根据本公开实施例的第六方面,提供一种无线网络的连接装置,所述装置包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided an apparatus for connecting a wireless network, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为执行上述第二方面所述的任一项方法的步骤。Wherein, the processor is configured to perform the steps of any one of the methods described in the second aspect above.
根据本公开实施例的第七方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第一方面所述的任一项方法的步骤。According to a seventh aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, implement any one of the above-mentioned first aspect steps of the method.
根据本公开实施例的第八方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第二方面所述的任一项方法的步骤。According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, implement any one of the above-mentioned second aspect steps of the method.
根据本公开实施例的第九方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的任一项方法的步骤。According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product comprising instructions, which, when executed on a computer, cause the computer to perform the steps of any one of the methods described in the first aspect above.
根据本公开实施例的第十方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面所述的任一项方法的步骤。According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer program product comprising instructions, which, when executed on a computer, cause the computer to perform the steps of any one of the methods described in the second aspect above.
本公开的实施例提供的技术方案至少可以包括以下有益效果:本公开实施例中智能家居应用先向智能家居服务器发送携带终端当前接入的无线网络的网络标识的信息获取请求,在接收到智能家居服务器发送的该无线网络的密码时,智能家居应用将该无线网络的网络标识和密码携带在第一无线网络接入请求中,发送给第一智能设备。这样,可以在用户无感知的情况下,实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。The technical solutions provided by the embodiments of the present disclosure may at least include the following beneficial effects: in the embodiments of the present disclosure, the smart home application first sends an information acquisition request carrying the network identifier of the wireless network currently accessed by the terminal to the smart home server, and after receiving the smart home server When the home server sends the password of the wireless network, the smart home application carries the network identifier and password of the wireless network in the first wireless network access request, and sends it to the first smart device. In this way, the smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request without the user's perception, which improves the efficiency of the smart device connecting to the wireless network, and does not The user is required to manually input the password of the wireless network, which simplifies the user's operation and saves time during the process of accessing the wireless network by the smart device.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是本公开实施例示出的一种无线网络的连接方法的流程图。FIG. 1 is a flowchart of a method for connecting a wireless network according to an embodiment of the present disclosure.
图2是本公开实施例示出的另一种无线网络的连接方法的流程图。FIG. 2 is a flowchart of another method for connecting a wireless network according to an embodiment of the present disclosure.
图3是本公开实施例示出的又一种无线网络的连接方法的流程图。FIG. 3 is a flowchart of another method for connecting a wireless network according to an embodiment of the present disclosure.
图4是本公开实施例示出的一种无线网络的连接装置的结构示意图。FIG. 4 is a schematic structural diagram of a device for connecting a wireless network according to an embodiment of the present disclosure.
图5是本公开实施例示出的另一种无线网络的连接装置的结构示意图。FIG. 5 is a schematic structural diagram of another wireless network connection device according to an embodiment of the present disclosure.
图6是本公开实施例示出的又一种无线网络的连接装置的结构示意图。FIG. 6 is a schematic structural diagram of still another wireless network connection device according to an embodiment of the present disclosure.
图7是本公开实施例示出的再一种无线网络的连接装置的结构示意图。FIG. 7 is a schematic structural diagram of still another wireless network connection device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
为了便于理解,在对本公开实施例进行详细地解释说明之前,先对本公开实施例涉及的应用场景进行介绍。For ease of understanding, before explaining the embodiments of the present disclosure in detail, the application scenarios involved in the embodiments of the present disclosure are first introduced.
随着智能设备技术领域的不断发展,智能设备正逐步入驻越来越多的家庭,人们可以通过智能家居应用来控制多个智能设备,从而为人们的生活带来更大的便利。With the continuous development of smart device technology, smart devices are gradually entering more and more homes. People can control multiple smart devices through smart home applications, thereby bringing greater convenience to people's lives.
例如,当人们需要控制扫地机器人时,可以通过智能家居应用触发扫地机器人接入无线网络,然后通过移动终端可以在卧室控制客厅的扫地机器人清理房间。For example, when people need to control the sweeping robot, they can trigger the sweeping robot to access the wireless network through the smart home application, and then control the sweeping robot in the living room to clean the room through the mobile terminal.
例如,当人们准备出门时,但是床头照灯忘记关闭,可以通过智能家居应用触发床头照明灯接入无线网络,然后通过移动终端关闭床头照明灯。For example, when people are about to go out, but forget to turn off the bedside light, they can trigger the bedside light to access the wireless network through the smart home application, and then turn off the bedside light through the mobile terminal.
当然,本公开实施例不仅可以应用于上述两种应用场景中,实际应用中,可能还可以应用于其他的应用场景中,在此本公开实施例对其他应用场景不再一一列举。Of course, the embodiments of the present disclosure may not only be applied to the above two application scenarios, but may also be applied to other application scenarios in practical applications, and the other application scenarios will not be listed one by one in the embodiments of the present disclosure.
目前,越来越多的智能设备入驻人们的生活。当对智能设备进行控制时,智能设备需要先接入无线网络,然后人们才能实现对智能设备的终端控制或远程控制。相关技术中,通常需要用户通过操作终端进入智能家居应用,选择智能设备当前要接入的无线网络的网络标识,再输入该无线网络的密码,然后终端将无线网络的网络标识和密码发送给智能设备,以实现智能设备接入无线网络,这一过程中需要用户多次手动操作,操作繁琐,反复冗余。因此,本公开提出了一种无线网络的连接方法,以实现在无需用户操作的情况下,从智能家居服务器获取无线网络的密码,并发送给智能设备,以使自能设备自动连接该无线网络,简化用户操作。At present, more and more smart devices are entering people's lives. When controlling a smart device, the smart device needs to be connected to a wireless network first, and then people can realize terminal control or remote control of the smart device. In the related art, the user is usually required to enter the smart home application by operating the terminal, select the network identifier of the wireless network that the smart device currently wants to access, and then enter the password of the wireless network, and then the terminal sends the network identifier and password of the wireless network to the smart device. In order to realize the access of the smart device to the wireless network, the user needs to operate manually for many times in this process, which is cumbersome and redundant. Therefore, the present disclosure proposes a method for connecting a wireless network, so as to obtain a wireless network password from a smart home server and send it to a smart device without user operation, so that the self-powered device can automatically connect to the wireless network , simplifying user operations.
图1是本公开实施例示出的一种无线网络的连接方法的流程图,该方法应用于终端中的智能家居应用。如图1所示,包括以下步骤。FIG. 1 is a flowchart of a method for connecting a wireless network according to an embodiment of the present disclosure, and the method is applied to a smart home application in a terminal. As shown in Figure 1, the following steps are included.
在步骤101中,向智能家居服务器发送信息获取请求,该信息获取请求携带终端当前接入的无线网络的网络标识,该信息获取请求用于指示智能家居服务器获取并返回该无线网络的密码。In
在步骤102中,当接收到智能家居服务器发送的该无线网络的密码时,向第一智能设备发送第一无线网络接入请求,第一无线网络接入请求中携带该无线网络的网络标识和密码,且第一智能设备为终端通过智能家居应用能够控制的任一智能设备。In
综上所述,本公开实施例中智能家居应用先向智能家居服务器发送携带终端当前接入的无线网络的网络标识的信息获取请求,在接收到智能家居服务器发送的该无线网络的密码时,智能家居应用将该无线网络的网络标识和密码携带在第一无线网络接入请求中,发送给第一智能设备。这样,在用户无感知的情况下,可以实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。To sum up, in the embodiment of the present disclosure, the smart home application first sends an information acquisition request carrying the network identifier of the wireless network currently accessed by the terminal to the smart home server, and when receiving the password of the wireless network sent by the smart home server, The smart home application carries the network identifier and password of the wireless network in the first wireless network access request, and sends it to the first smart device. In this way, without the user's perception, the smart device can be automatically connected to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request, which improves the efficiency of the smart device connecting to the wireless network, and does not The user is required to manually input the password of the wireless network, which simplifies the user's operation and saves time during the process of accessing the wireless network by the smart device.
可选地,该信息获取请求还携带智能家居应用当前登录的用户账号和该智能家居应用的应用签名,且该无线网络的密码是智能家居服务器对智能家居应用当前登录的用户账号和智能家居应用的应用签名鉴权成功后发送的。Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, and the password of the wireless network is the user account and the smart home application currently logged in by the smart home server to the smart home application. It is sent after the application signature authentication is successful.
可选地,当接收到智能家居服务器发送的该无线网络的密码之后,还包括:Optionally, after receiving the password of the wireless network sent by the smart home server, the method further includes:
存储该无线网络的密码;store the password for the wireless network;
存储该无线网络的密码之后,还包括:After storing the password for the wireless network, it also includes:
向智能家居服务器发送信息验证请求,该信息验证请求携带该无线网络的网络标识和本地存储的该无线网络的密码,该信息验证请求用于指示智能家居服务器对本地存储的该无线网络的密码进行验证;Send an information verification request to the smart home server, where the information verification request carries the network identifier of the wireless network and the locally stored password of the wireless network, and the information verification request is used to instruct the smart home server to perform the locally stored password of the wireless network. verify;
当接收到智能家居服务器发送的验证成功提示信息时,向第二智能设备发送第二无线网络接入请求,第二无线网络接入请求中携带该无线网络的网络标识和本地存储的该无线网络的密码,且第二智能设备为终端中的智能家居应用能够控制的任一智能设备。When receiving the verification success prompt information sent by the smart home server, send a second wireless network access request to the second smart device, where the second wireless network access request carries the network identifier of the wireless network and the locally stored wireless network password, and the second smart device is any smart device that can be controlled by the smart home application in the terminal.
可选地,该信息验证请求中携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
向智能家居服务器发送信息验证请求之后,还包括:After sending the information verification request to the smart home server, it also includes:
当接收到智能家居服务器发送的验证失败提示信息且该验证失败提示信息携带有智能家居服务器存储的该无线网络的密码时,向第二智能设备发送第三无线网络接入请求,该第三无线网络接入请求中携带该无线网络的网络标识和智能家居服务器存储的该无线网络的密码;When receiving the verification failure prompt information sent by the smart home server and the verification failure prompt information carries the password of the wireless network stored by the smart home server, a third wireless network access request is sent to the second smart device, and the third wireless network access request is sent to the second smart device. The network access request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home server;
其中,智能家居服务器存储的该无线网络的密码是在智能家居服务器对智能家居应用当前登录的用户账号和智能家居应用的应用签名鉴权成功后在该验证失败提示信息中携带的。The password of the wireless network stored by the smart home server is carried in the verification failure prompt message after the smart home server successfully authenticates the user account currently logged in the smart home application and the application signature of the smart home application.
可选地,向智能家居服务器发送信息获取请求之前,还包括:Optionally, before sending the information acquisition request to the smart home server, the method further includes:
当终端成功接入该无线网络时,获取该无线网络的密码;When the terminal successfully accesses the wireless network, obtain the password of the wireless network;
向智能家居服务器发送信息存储请求,该信息存储请求携带该无线网络的网络标识和密码,该信息存储请求用于指示智能家居服务器将该无线网络的网络标识和密码对应存储。Send an information storage request to the smart home server, where the information storage request carries the network identifier and password of the wireless network, and the information storage request is used to instruct the smart home server to store the network identifier and password of the wireless network correspondingly.
可选地,该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名。Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application.
上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.
图2是本公开实施例示出的一种无线网络的连接方法的流程图,该方法应用于智能家居服务器。如图2所示,包括以下步骤。FIG. 2 is a flowchart of a method for connecting a wireless network according to an embodiment of the present disclosure, and the method is applied to a smart home server. As shown in Figure 2, the following steps are included.
在步骤201中,接收终端中的智能家居应用发送的信息获取请求,该信息获取请求携带终端当前接入的无线网络的网络标识。In
在步骤202中,根据该无线网络的网络标识获取该无线网络的密码。In
在步骤203中,向智能家居应用发送该无线网络的密码。In
综上所述,本公开实施例中智能家居服务器在接收到智能家居应用发送的信息获取请求时,根据该信息获取请求中携带的终端当前接入的无线网络的网络标识,获取该无线网络的密码,并将该无线网络的密码发送给智能家居应用,使得智能家居应用在接收到该无线网络的密码时,向第一智能设备发送第一无线网络接入请求。这样,可以在用户无感知的情况下,实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。To sum up, in the embodiment of the present disclosure, when receiving an information acquisition request sent by a smart home application, the smart home server obtains the information of the wireless network according to the network identifier of the wireless network currently accessed by the terminal carried in the information acquisition request. password, and send the password of the wireless network to the smart home application, so that the smart home application sends a first wireless network access request to the first smart device when receiving the password of the wireless network. In this way, the smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request without the user's perception, which improves the efficiency of the smart device connecting to the wireless network, and does not The user is required to manually input the password of the wireless network, which simplifies the user's operation and saves time during the process of accessing the wireless network by the smart device.
可选地,该信息获取请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
根据该无线网络的网络标识获取该无线网络的密码之前,还包括:Before acquiring the password of the wireless network according to the network identifier of the wireless network, the method further includes:
根据本地存储的用户账号和应用签名,对该信息获取请求中携带的用户账号和应用签名进行鉴权;Authenticate the user account and application signature carried in the information acquisition request according to the locally stored user account and application signature;
当鉴权成功时,执行根据该无线网络的网络标识获取该无线网络的密码的步骤。When the authentication is successful, the step of obtaining the password of the wireless network according to the network identifier of the wireless network is performed.
可选地,向智能家居应用发送该无线网络的密码之后,还包括:Optionally, after sending the password of the wireless network to the smart home application, the method further includes:
接收智能家居应用发送的信息验证请求,该信息验证请求为智能家居应用存储智能家居服务器发送的该无线网络的密码之后发送的,且该信息验证请求携带该无线网络的网络标识和智能家居应用存储的该无线网络的密码;Receive an information verification request sent by the smart home application, where the information verification request is sent after the smart home application stores the password of the wireless network sent by the smart home server, and the information verification request carries the network identifier of the wireless network and the smart home application storage the password for the wireless network;
根据本地存储的该无线网络的密码,对该信息验证请求中携带的密码进行验证;Verify the password carried in the information verification request according to the locally stored password of the wireless network;
当验证成功时,向智能家居应用发送验证成功提示信息,该验证成功提示信息用于提示该信息验证请求中携带的密码正确。When the verification is successful, a verification success prompt message is sent to the smart home application, and the verification success prompt message is used to prompt that the password carried in the information verification request is correct.
可选地,该信息验证请求中携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
根据本地存储的该无线网络的密码,对该信息验证请求中携带的密码进行验证之后,还包括:After verifying the password carried in the information verification request according to the locally stored password of the wireless network, the method further includes:
当验证失败时,根据本地存储的用户账号和应用签名,对该信息验证请求中携带的用户账号和应用签名进行鉴权;When the verification fails, authenticate the user account and application signature carried in the information verification request according to the locally stored user account and application signature;
当鉴权成功时,向智能家居应用发送验证失败提示信息,该验证失败提示信息携带本地存储的该无线网络的密码,且该验证失败提示信息用于提示该信息验证请求中携带的密码不正确。When the authentication is successful, a verification failure prompt message is sent to the smart home application. The verification failure prompt message carries the locally stored password of the wireless network, and the verification failure prompt message is used to prompt that the password carried in the information verification request is incorrect. .
可选地,其特征在于,接收终端中的智能家居应用发送的信息获取请求之前,还包括:Optionally, before receiving the information acquisition request sent by the smart home application in the terminal, the method further includes:
接收智能家居应用发送的信息存储请求,该信息存储请求携带该无线网络的网络标识和密码;Receive an information storage request sent by a smart home application, where the information storage request carries the network identifier and password of the wireless network;
将该无线网络的网络标识和密码对应存储。The network ID and password of the wireless network are stored correspondingly.
可选地,该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
将该无线网络的网络标识和密码对应存储,包括:Store the network ID and password of the wireless network correspondingly, including:
将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。The network identifier and password of the wireless network, as well as the user account and application signature carried in the information storage request are stored correspondingly.
上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.
图3是根据本公开实施例示出的一种无线网络的连接方法的流程图,下面本公开实施例将对图1和图2所示的实施例进行展开说明。该方法应用于终端的智能家居应用、智能设备和智能家居服务器的交互中。如图3所示,该方法包括以下步骤。FIG. 3 is a flowchart of a method for connecting a wireless network according to an embodiment of the present disclosure. The embodiments shown in FIG. 1 and FIG. 2 will be described below in the embodiment of the present disclosure. The method is applied to the interaction of the smart home application of the terminal, the smart device and the smart home server. As shown in Figure 3, the method includes the following steps.
在步骤301中,当终端成功接入无线网络时,智能家居应用获取该无线网络的密码。In
需要说明的是,在智能家居应用获取该无线网络的密码之前,该终端需要先成功接入该无线网络。实际上,用户可以在终端的无线网络连接界面选择该无线网络并输入该无线网络的密码,然后触发连接操作,该终端根据用户输入的密码连接该无线网络,而用户输入的该无线网络的密码正确时,终端才能够成功接入该无线网络,否则终端就会连接失败。那么,在终端成功接入该无线网络时,智能家居应用再获取该无线网络的密码,从而保证获取到的密码的正确性。It should be noted that, before the smart home application obtains the password of the wireless network, the terminal needs to successfully access the wireless network. In fact, the user can select the wireless network on the wireless network connection interface of the terminal and input the password of the wireless network, and then trigger the connection operation, the terminal connects to the wireless network according to the password input by the user, and the password of the wireless network When it is correct, the terminal can successfully access the wireless network, otherwise the terminal will fail to connect. Then, when the terminal successfully accesses the wireless network, the smart home application obtains the password of the wireless network, thereby ensuring the correctness of the obtained password.
另外,若用户更改该无线网络的密码,终端与该无线网络的连接则会断开,那么用户需要重新进行终端接入该无线网络的操作,输入更改后的密码,以使终端根据更改后的密码重新接入该无线网络,此时智能家居应用需要再次获取该无线网络的密码,以保证获取该无线网络正确的密码,便于智能设备进行后续的无线网络连接。In addition, if the user changes the password of the wireless network, the connection between the terminal and the wireless network will be disconnected, so the user needs to re-operate the terminal to access the wireless network, and enter the changed password, so that the terminal can access the wireless network according to the changed password. The password is re-accessed to the wireless network. At this time, the smart home application needs to obtain the password of the wireless network again to ensure that the correct password of the wireless network is obtained, which is convenient for the smart device to perform subsequent wireless network connections.
值得说明的是,当智能家居应用获取到该无线网络的密码时,若此时用户在智能家居应用中触发第一智能设备的接入操作。那么,智能家居应用可以直接向第一智能设备发送第一无线网络接入请求,第一无线网络接入请求中携带该无线网络的网络标识和密码,且第一智能设备为终端通过智能家居应用能够控制的任一智能设备。这样,第一智能设备可以根据该无线网络的网络标识和密码连接该无线网络,以便于终端通过智能家居应用对第一智能设备进行控制。It should be noted that when the smart home application obtains the password of the wireless network, if the user triggers the access operation of the first smart device in the smart home application at this time. Then, the smart home application can directly send the first wireless network access request to the first smart device, the first wireless network access request carries the network identifier and password of the wireless network, and the first smart device is the terminal through the smart home application Any smart device that can be controlled. In this way, the first smart device can connect to the wireless network according to the network identifier and password of the wireless network, so that the terminal can control the first smart device through the smart home application.
在步骤302中,智能家居应用向智能家居服务器发送信息存储请求,该信息存储请求携带该无线网络的网络标识和密码。In
需要说明的是,由于当前用户可能不需要控制智能设备,因此并未在智能家居应用中触发第一智能设备的接入操作。因此,智能家居应用可以通过向智能家居服务器发送信息存储请求,以将终端成功接入的该无线网络的网络标识和密码进行存储,便于后续第一智能设备连接无线网络时使用。It should be noted that, because the current user may not need to control the smart device, the access operation of the first smart device is not triggered in the smart home application. Therefore, the smart home application can store the network identifier and password of the wireless network successfully accessed by the terminal by sending an information storage request to the smart home server, which is convenient for subsequent use when the first smart device connects to the wireless network.
另外,智能家居应用可以在每次成功接入该无线网络,且获取到该无线网络的密码时,就向智能家居服务器发送信息存储请求,从而可以对该智能家居服务器本地存储的该无线网络的密码进行更新。In addition, the smart home application can send an information storage request to the smart home server every time it successfully accesses the wireless network and obtains the password of the wireless network, so that the information of the wireless network stored locally by the smart home server can be sent to the smart home server. password to update.
进一步地,该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名。Further, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application.
需要说明的是,智能家居应用当前登录的用户账号可以表示智能家居应用当前登录的用户的身份。由于应用的安装包名并不是唯一的,实际应用中,可能存在其他开发商使用相同的安装包名来替换终端中已经安装的应用程序,进行不正当的操作。因此,可以对智能家居应用进行唯一签名,得到该应用程序的应用签名,通过应用签名代表该应用程序的开发商的合法身份,从而避免该应用程序被其他开发商替换。It should be noted that the user account currently logged in by the smart home application may represent the identity of the user currently logged in by the smart home application. Since the installation package name of the application is not unique, in practical applications, other developers may use the same installation package name to replace the application program already installed in the terminal to perform improper operations. Therefore, the smart home application can be uniquely signed, the application signature of the application can be obtained, and the legal identity of the developer of the application can be represented by the application signature, thereby preventing the application from being replaced by other developers.
在步骤303中,当智能家居服务器接收到智能家居应用发送的信息存储请求时,将该无线网络的网络标识和密码对应存储。In
需要说明的是,智能家居服务器接收到智能家居应用发送的信息存储请求时,可以先判断本地是否存储该无线网络的网络标识,若否,则直接将该无线网络的网络标识和密码对应存储。若是,则智能家居服务器可以判断本地存储的该无线网络的密码与该信息存储请求中携带的密码是否一致;若一致,则智能家居服务器不需要再将该无线网络的网络标识和密码对应存储;若不一致,则智能家居服务器可以将本地存储的该无线网络的密码更新为该信息存储请求中携带的密码。从而实现对智能家居服务器本地存储的该无线网络的密码的更新,以保证该智能家居服务器存储的该无线网络的密码的正确性。It should be noted that when the smart home server receives the information storage request sent by the smart home application, it can first determine whether the network identifier of the wireless network is stored locally, and if not, directly store the network identifier and password of the wireless network correspondingly. If so, the smart home server can determine whether the locally stored password of the wireless network is consistent with the password carried in the information storage request; if they are consistent, the smart home server does not need to store the network identifier and password of the wireless network correspondingly; If not, the smart home server may update the locally stored password of the wireless network to the password carried in the information storage request. Thus, the password of the wireless network stored locally by the smart home server is updated, so as to ensure the correctness of the password of the wireless network stored by the smart home server.
进一步地,若该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名,当智能家居服务器接收到智能家居应用发送的信息存储请求时,可以将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。Further, if the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, when the smart home server receives the information storage request sent by the smart home application, the network identifier of the wireless network can be used. and password, as well as the user account and application signature carried in the information storage request are stored correspondingly.
需要说明的是,将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储之前,可以先判断本地存储的是否对应存储了该无线网络的网络标识、用户账号和应用签名,若否,则直接将该将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。若是,则智能家居服务器可以判断本地存储的用户账号与该信息存储请求中携带的用户账号是否一致、本地存储的应用签名与该信息存储请求中携带的应用签名是否一致,以及本地存储的该无线网络的密码与该信息存储请求中携带的密码是否一致。It should be noted that before storing the network ID and password of the wireless network, as well as the user account and application signature carried in the information storage request, it can be determined whether the locally stored network ID and user ID of the wireless network are stored correspondingly. Account and application signature, if not, directly store the network ID and password of the wireless network, as well as the user account and application signature carried in the information storage request. If so, the smart home server can determine whether the locally stored user account is consistent with the user account carried in the information storage request, whether the locally stored application signature is consistent with the application signature carried in the information storage request, and whether the locally stored application signature is consistent with the wireless Whether the password of the network is the same as the password carried in the information storage request.
若本地存储的用户账号与该信息存储请求中携带的用户账号一致、本地存储的应用签名与该信息存储请求中携带的应用签名一致,且本地存储的该无线网络的密码与该信息存储请求中携带的密码也一致时,则智能家居服务器不需要再将该将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。若只有本地存储的该无线网络的密码与该信息存储请求中携带的密码不一致时,则智能家居服务器可以将本地存储的该无线网络的密码更新为该信息存储请求中携带的密码。若该信息存储请求中携带的用户账号与本地存储的用户账号不一致,和/或该信息存储请求中携带的应用签名与本地存储的应用签名不一致,则将该将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。If the locally stored user account is consistent with the user account carried in the information storage request, the locally stored application signature is consistent with the application signature carried in the information storage request, and the locally stored password of the wireless network is the same as the one in the information storage request When the carried passwords are also the same, the smart home server does not need to store the network identifier and password of the wireless network, as well as the user account and application signature carried in the information storage request. If only the locally stored password of the wireless network is inconsistent with the password carried in the information storage request, the smart home server may update the locally stored password of the wireless network to the password carried in the information storage request. If the user account carried in the information storage request is inconsistent with the locally stored user account, and/or the application signature carried in the information storage request is inconsistent with the locally stored application signature, the network identification and password of the wireless network , and the user account and application signature carried in the information storage request are stored correspondingly.
需要说明的是,在本公开实施例中,智能家居应用可以通过上述步骤301-步骤303预先将该无线网络的密码存储在智能家居服务器中,从而便于在后续第一智能设备接入该无线网络时,智能家居应用可以向智能家居服务器发送信息获取请求,以从智能家居服务器中获取该无线网络的密码。It should be noted that, in the embodiment of the present disclosure, the smart home application can store the password of the wireless network in the smart home server in advance through the
在步骤304中,智能家居应用向智能家居服务器发送信息获取请求,该信息获取请求携带该无线网络的网络标识。In
需要说明的是,智能家居应用可以在检测到用户针对第一智能设备的接入操作时,向智能家居服务器发送信息获取请求,以获取终端当前接入的无线网络的密码,以执行后续第一智能设备连接该无线网络的步骤。当然,智能家居应用也可以在空闲时向智能家居服务器发送信息获取请求,以获取终端当前接入的无线网络的密码,将其进行存储,以便在后续检测到用户针对第一智能设备的接入操作时,执行智能家居应用向智能家居服务器发送信息验证请求的步骤。当然,实际应用中,也可以在其他情况下向智能家居应用服务器发送信息获取请求,例如,第一智能设备已经接入该无线网络,若出现网络故障,在网络恢复后,智能家居应用可以自动向智能家居服务器发送信息获取请求,以获取终端当前接入的无线网络的密码,以让第一智能设备重新接入该无线网络。对此本公开实施例不予限定。It should be noted that the smart home application can send an information acquisition request to the smart home server when detecting the user's access operation to the first smart device, so as to obtain the password of the wireless network currently accessed by the terminal, so as to execute the subsequent first smart device. Steps for the smart device to connect to the wireless network. Of course, the smart home application can also send an information acquisition request to the smart home server when it is idle, so as to obtain the password of the wireless network currently accessed by the terminal, and store it, so as to detect the user's access to the first smart device later. During operation, the smart home application sends an information verification request to the smart home server. Of course, in practical applications, an information acquisition request can also be sent to the smart home application server under other circumstances. For example, the first smart device has been connected to the wireless network. If a network failure occurs, after the network is restored, the smart home application can automatically An information acquisition request is sent to the smart home server to acquire the password of the wireless network currently accessed by the terminal, so that the first smart device can re-access the wireless network. This embodiment of the present disclosure is not limited.
在步骤305中,智能家居服务器接收智能家居应用发送的信息获取请求,并根据该无线网络的网络标识获取该无线网络的密码。In
需要说明的是,当智能家居服务器接收终端中的智能家居应用发送的信息获取请求时,可以根据该无线网络的网络标识,直接从服务器本地对应存储的网络标识和密码中获取该无线网络的密码。It should be noted that when the smart home server receives the information acquisition request sent by the smart home application in the terminal, it can directly obtain the password of the wireless network from the network ID and password stored locally on the server according to the network ID of the wireless network. .
进一步地,由于直接从服务器本地对应存储的网络标识和密码中获取该无线网络的密码,可能存在恶意第三方应用向智能家居服务器发送的信息获取请求的情况,使得第三方应用在获取该无线网络的正确密码后进行恶意行为。因此,在信息获取请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名的基础上,本公开实施例在智能家居服务器中设置了针对该无线网络的密码的获取权限。这样,在智能家居服务器根据该无线网络的网络标识获取该无线网络的密码之前,可以根据本地存储的用户账号和应用签名,对该信息获取请求中携带的用户账号和应用签名进行鉴权;当鉴权成功时,再执行根据该无线网络的网络标识获取该无线网络的密码的步骤,从而能够防止第三方应用的恶意操作,提高安全性。Further, because the password of the wireless network is directly obtained from the network identifier and password stored locally on the server, there may be a situation in which a malicious third-party application sends an information acquisition request to the smart home server, so that the third-party application is acquiring the wireless network. malicious behavior after the correct password. Therefore, on the basis that the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, the embodiment of the present disclosure sets the acquisition authority for the password of the wireless network in the smart home server. In this way, before the smart home server obtains the password of the wireless network according to the network identifier of the wireless network, it can authenticate the user account and application signature carried in the information obtaining request according to the locally stored user account and application signature; when When the authentication is successful, the step of obtaining the password of the wireless network according to the network identifier of the wireless network is performed, thereby preventing malicious operations of third-party applications and improving security.
需要说明的是,智能家居服务器根据本地存储的用户账号和应用签名,对该信息获取请求中携带的用户账号和应用签名进行鉴权时,可以比较该信息获取请求中携带的用户账号与本地存储的用户账号是否相同,以及比较该信息获取请求中携带的应用签名与本地存储的应用签名是否相同,若该信息获取请求中携带的用户账号与本地存储的用户账号相同,且该信息获取请求中携带的应用签名与本地存储的应用签名相同,则鉴权成功,表示智能家居应用有权限从智能家居服务器中获取该无线网络的密码;否则,表示智能家居应用没有权限从智能家居服务器中获取该无线网络的密码。当鉴权成功时,智能家居服务器可以根据该无线网络的网络标识,从服务器本地对应存储的网络标识和密码中确定该无线网络的密码。It should be noted that when the smart home server authenticates the user account and application signature carried in the information acquisition request according to the locally stored user account and application signature, it can compare the user account carried in the information acquisition request with the locally stored one. Whether the user accounts are the same, and compare whether the application signature carried in the information acquisition request is the same as the locally stored application signature, if the user account carried in the information acquisition request is the same as the locally stored user account, and the information acquisition request carries If the application signature is the same as the locally stored application signature, the authentication is successful, indicating that the smart home application has the right to obtain the password of the wireless network from the smart home server; otherwise, it indicates that the smart home application does not have the right to obtain the wireless network password from the smart home server. Network password. When the authentication is successful, the smart home server can determine the password of the wireless network from the network identifier and password stored locally in the server according to the network identifier of the wireless network.
在步骤306中,智能家居服务器向智能家居应用发送该无线网络的密码。In
需要说明的是,当智能家居服务器通过上述步骤305获取到该无线网络的密码时,可以将该无线网络的密码发送给智能家居应用。It should be noted that when the smart home server obtains the password of the wireless network through the
在步骤307中,当智能家居应用接收到智能家居服务器发送的该无线网络的密码时,向第一智能设备发送第一无线网络接入请求,第一无线网络接入请求中携带该无线网络的网络标识和密码,且第一智能设备为终端通过智能家居应用能够控制的任一智能设备。In
对于终端通过智能家居应用能够控制的任一智能设备而言,该智能设备中可以包括蓝牙模块,该智能设备可以通过蓝牙模块广播自身的设备标识,终端通过扫描获取该智能设备的设备标识,当获取的设备标识与终端存储的该智能设备的设备标识相同时,根据该设备标识与该智能设备建立蓝牙连接,使得终端中的智能家居应用可以通过蓝牙连接向第一智能设备发送第一无线网络接入请求。For any smart device that the terminal can control through the smart home application, the smart device may include a Bluetooth module, the smart device can broadcast its own device identification through the Bluetooth module, and the terminal obtains the device identification of the smart device by scanning. When the acquired device identification is the same as the device identification of the smart device stored in the terminal, establish a Bluetooth connection with the smart device according to the device identification, so that the smart home application in the terminal can send the first wireless network to the first smart device through the Bluetooth connection. access request.
另外,智能设备也可以包括无线网络连接模块,智能设备可以创建一个无线网络热点,终端通过扫描来连接该无线网络热点,从而与该智能设备建立连接。通过连接无线网络热点的方式,终端能够在不需要消耗网络流量的情况下,与智能设备进行信息传输,从而使得终端中的智能家居应用通过该连接向第一智能设备发送第一无线网络接入请求。In addition, the smart device can also include a wireless network connection module, the smart device can create a wireless network hotspot, and the terminal connects to the wireless network hotspot by scanning, thereby establishing a connection with the smart device. By connecting to a wireless network hotspot, the terminal can transmit information with the smart device without consuming network traffic, so that the smart home application in the terminal sends the first wireless network access to the first smart device through the connection ask.
需要说明的是,终端可以周期性的扫描智能设备的设备标识,也可以是用户在智能家居应用中触发连接无线网络的操作后,再进行扫描。对此本公开实施例不予限定。It should be noted that, the terminal may periodically scan the device identification of the smart device, or may be scanned after the user triggers the operation of connecting to the wireless network in the smart home application. This embodiment of the present disclosure is not limited.
在步骤308中,第一智能设备根据该第一无线网络接入请求接入该无线网络。In
需要说明的是,第一智能设备可以根据该第一无线网络接入请求中携带的该无线网络的网络标识和密码接入该无线网络。另外,在第一智能设备接入该无线网络后,用户可以通过终端的智能家居应用来控制该第一智能设备执行相应的动作,例如可以控制该第一智能设备开始工作或者停止工作等,对此本公开实施例不予限定。It should be noted that the first smart device can access the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request. In addition, after the first smart device is connected to the wireless network, the user can control the first smart device to perform corresponding actions through the smart home application of the terminal, for example, can control the first smart device to start working or stop working, etc. This embodiment of the present disclosure is not limited.
需要说明的是,在本公开实施例中,智能家居应用、智能家居服务器和智能设备三者之间可以预先约定针对该无线网络的密码的加密方式和解密方式,然后智能家居应用和智能家居服务器存储该无线网络的密码时,可以将该无线网络的密码加密存储。当然,在智能家居应用、智能家居服务器和智能设备三者之间发送该无线网络的密码时,也可以发送加密后的该无线网络的密码,在需要使用该无线网络的密码时,再按照预先约定的解密方式进行解密,之后再执行其他操作。当然,也可以只是加密存储,当需要进行发送时,将其解密后发送;或者也可以在存储时不加密,在需要发送时进行加密。对此本公开实施例不予限定。It should be noted that, in the embodiment of the present disclosure, the smart home application, the smart home server, and the smart device may pre-agreed the encryption method and decryption method for the password of the wireless network, and then the smart home application and the smart home server When storing the password of the wireless network, the password of the wireless network can be encrypted and stored. Of course, when the password of the wireless network is sent between the smart home application, the smart home server and the smart device, the encrypted password of the wireless network can also be sent. Decrypt the agreed decryption method, and then perform other operations. Of course, it can also only be encrypted and stored, and when it needs to be sent, it can be decrypted and sent; or it can be stored without encryption and encrypted when it needs to be sent. This embodiment of the present disclosure is not limited.
在一种可能的实施例中,当通过上述步骤304至步骤308来实现第一智能设备接入无线网络的过程中,智能家居应用也可以存储该无线网络的密码。也即是,当智能家居应用在步骤307中接收到智能家居服务器发送的该无线网络的密码之后,还可以存储该无线网络的密码。当然,也可以不用存储该无线网络的密码。若智能家居应用在步骤307中未存储该无线网络的密码,在智能家居应用检测到用户针对第二智能设备的接入操作时,智能家居应用可以直接向智能家居服务器发送信息获取请求,从而第二智能设备可以按照第一智能设备接入该无线网络的方式接入该无线网络。若智能家居应用在步骤307中存储了该无线网络的密码,当智能家居应用检测到用户针对第二智能设备的接入操作时,智能家居应用可以通过如下步骤(1)-步骤(6)来实现第二智能设备接入该无线网络的操作。In a possible embodiment, when the first smart device accesses the wireless network through the
其中,该第二智能设备与第一智能设备可以为终端通过智能家居应用能够控制的任一智能设备中的同一智能设备,也可以为不同智能设备。另外,第二智能设备按照第一智能设备接入该无线网络的方式接入该无线网络的实现过程参照上述步骤304-308,在此不再一一赘述。Wherein, the second smart device and the first smart device may be the same smart device in any smart device that the terminal can control through the smart home application, or may be different smart devices. In addition, the implementation process of the second smart device accessing the wireless network in the manner in which the first smart device accesses the wireless network refers to the above steps 304-308, and details are not repeated here.
步骤(1):智能家居应用向智能家居服务器发送信息验证请求,该信息验证请求携带该无线网络的网络标识和本地存储的该无线网络的密码。Step (1): The smart home application sends an information verification request to the smart home server, where the information verification request carries the network identifier of the wireless network and the locally stored password of the wireless network.
由于智能家居应用本地存储有该无线网络的密码,但是为了防止该无线网络的密码被更改,智能家居应用可以向智能家居服务器发送信息验证请求,通过智能家居服务器对智能家居应用本地存储的该无线网络的密码进行验证。Since the smart home application locally stores the password of the wireless network, in order to prevent the password of the wireless network from being changed, the smart home application can send an information verification request to the smart home server, and the Network password for verification.
步骤(2):当智能家居服务器接收到该信息验证请求时,根据智能家居服务器本地存储的该无线网络的密码,对该信息验证请求中携带的密码进行验证;当验证成功时,执行步骤(3)-步骤(4);当验证失败时,执行步骤(5)-步骤(6)。Step (2): when the smart home server receives the information verification request, according to the password of the wireless network stored locally by the smart home server, the password carried in the information verification request is verified; When the verification is successful, step ( 3)-step (4); when the verification fails, perform step (5)-step (6).
当智能家居服务器对该信息验证请求中携带的密码进行验证时,可以比较智能家居服务器本地存储的该无线网络的密码与该信息验证请求中携带的密码是否相同,若二者相同,则验证成功,否则,验证失败。When the smart home server verifies the password carried in the information verification request, it can compare whether the password of the wireless network stored locally by the smart home server is the same as the password carried in the information verification request. If the two are the same, the verification is successful. , otherwise, validation fails.
步骤(3):智能家居服务器向智能家居应用发送验证成功提示信息,该验证成功提示信息用于提示该信息验证请求中携带的密码正确。Step (3): the smart home server sends a verification success prompt message to the smart home application, where the verification success prompt message is used to prompt that the password carried in the information verification request is correct.
当该信息验证请求中携带的密码验证成功时,智能家居服务器可以向智能家居应用发送验证成功提示信息。When the verification of the password carried in the information verification request is successful, the smart home server may send a verification success prompt message to the smart home application.
步骤(4):当智能家居应用接收到智能家居服务器发送的验证成功提示信息时,向第二智能设备发送第二无线网络接入请求,第二无线网络接入请求中携带该无线网络的网络标识和智能家居应用本地存储的该无线网络的密码。Step (4): when the smart home application receives the verification success prompt information sent by the smart home server, it sends a second wireless network access request to the second smart device, and the second wireless network access request carries the network of the wireless network The ID and password for this wireless network stored locally by the smart home application.
需要说明的是,当智能家居应用接收到智能家居服务器发送的验证成功提示信息时,则表示验证成功,即智能家居应用本地存储的该无线网络的密码正确。此时,智能家居应用可以向第二智能设备发送第二无线网络接入请求,以实现第二智能设备自动连接无线网络,无需用户频繁操作,简化了用户的操作,提高了第二智能设备连接无线网络的效率,节省了时间。It should be noted that when the smart home application receives the verification success prompt message sent by the smart home server, it means that the verification is successful, that is, the password of the wireless network stored locally by the smart home application is correct. At this time, the smart home application can send the second wireless network access request to the second smart device, so as to realize the automatic connection of the second smart device to the wireless network, without requiring frequent operations by the user, simplifying the user's operation, and improving the connection of the second smart device The efficiency of wireless networks saves time.
步骤(5):智能家居服务器向智能家居应用发送验证失败提示信息,该验证失败提示信息用于提示该信息验证请求中携带的密码不正确。Step (5): The smart home server sends a verification failure prompt message to the smart home application, where the verification failure prompt message is used to prompt that the password carried in the information verification request is incorrect.
在一种可能的实现方式中,当该信息验证请求中携带的密码验证失败时,智能家居服务器可以直接向智能家居应用发送验证失败提示信息,该验证失败提示信息中不携带智能家居服务器本地存储的该无线网络的密码。In a possible implementation manner, when the password verification carried in the information verification request fails, the smart home server may directly send verification failure prompt information to the smart home application, and the verification failure prompt information does not carry the local storage of the smart home server. password for this wireless network.
在另一种可能的实现方式中,在该信息验证请求中携带智能家居应用当前登录的用户账号和智能家居应用的应用签名的基础上,当该信息验证请求中携带的密码验证失败时,智能家居服务器可以根据本地存储的用户账号和应用签名,对该信息验证请求中携带的用户账号和应用签名进行鉴权,当鉴权成功时,向智能家居应用发送验证失败提示信息,该验证失败提示信息中可以携带智能家居服务器本地存储的该无线网络的密码。In another possible implementation manner, based on the information verification request carrying the current user account of the smart home application and the application signature of the smart home application, when the password verification carried in the information verification request fails, the smart home application The home server can authenticate the user account and application signature carried in the information verification request according to the locally stored user account and application signature, and when the authentication succeeds, send a verification failure prompt message to the smart home application, and the verification failure prompt The information can carry the password of the wireless network stored locally by the smart home server.
由于可能存在第三方应用将错误密码携带在信息验证请求中发送给智能家居服务器,使得智能家居服务器在验证失败时,向第三方应用发送智能家居服务器本地存储的该无线网络的密码,从而第三方应用在获取该无线网络的正确密码后进行恶意操作。因此,本公开实施例在智能家居服务器中设置了针对该无线网络的密码的获取权限,若验证失败,在从智能家居服务器获取该无线网络的正确密码之前,智能家居服务器可以对该信息验证请求中携带的用户账号和应用签名进行鉴权,在确定该智能家居应用有权限获取该无线网络的密码时,智能家居服务器可以向智能家居应用发送携带智能家居服务器本地存储的该无线网络的密码的验证失败提示信息,以避免直接从智能家居服务器中获取该无线网络的密码而造成的风险,提高安全性。Since there may be a third-party application that carries the wrong password in the information verification request and sends it to the smart home server, when the verification fails, the smart home server sends the password of the wireless network stored locally by the smart home server to the third-party application. The application performs malicious operations after obtaining the correct password for the wireless network. Therefore, in this embodiment of the present disclosure, the smart home server sets the access authority for the password of the wireless network. If the verification fails, before obtaining the correct password of the wireless network from the smart home server, the smart home server can request the information to verify the information. The user account and application signature carried in the device are authenticated, and when it is determined that the smart home application has the right to obtain the password of the wireless network, the smart home server can send to the smart home application a password that carries the password of the wireless network stored locally by the smart home server. The verification failure prompt information can avoid the risk caused by directly obtaining the password of the wireless network from the smart home server, and improve the security.
其中,智能家居服务器对该信息验证请求中携带的用户账号和应用签名进行鉴权的过程可以参考上述步骤305中对信息获取请求中携带的用户账号和应用签名进行鉴权的过程,对此本公开实施例不再详细阐述。Wherein, the process of authenticating the user account and application signature carried in the information verification request by the smart home server can refer to the process of authenticating the user account and application signature carried in the information acquisition request in the
步骤(6):智能家居应用在接收到智能家居服务器发送的验证失败提示信息时,通过该验证失败提示信息中是否携带智能家居服务器本地存储的该无线网络的密码,来实现第二智能设备接入该无线网络的操作。Step (6): when the smart home application receives the verification failure prompt message sent by the smart home server, whether the verification failure prompt message carries the password of this wireless network stored locally by the smart home server, realizes the second smart device connection. to access the wireless network.
在一种可能的实现方式中,当该验证失败提示信息中不携带智能家居服务器本地存储的该无线网络的密码时,智能家居应用可以按照上述第一智能设备接入该无线网络的方式,来实现第二智能设备接入该无线网络的操作。In a possible implementation manner, when the verification failure prompt message does not carry the password of the wireless network stored locally by the smart home server, the smart home application can access the wireless network according to the method of the first smart device. The operation of accessing the wireless network by the second smart device is implemented.
在另一种可能的实现方式中,当该验证失败提示信息携带有智能家居服务器本地存储的该无线网络的密码时,智能家居应用可以向第二智能设备发送第三无线网络接入请求,第三无线网络接入请求中携带该无线网络的网络标识和智能家居服务器存储的该无线网络的密码。这样,在第二智能设备接收到第三无线网络接入请求时,可以根据第三网络接入请求中携带的网络标识和密码接入该无线网络。In another possible implementation, when the verification failure prompt information carries the password of the wireless network stored locally by the smart home server, the smart home application can send a third wireless network access request to the second smart device, and the first The third wireless network access request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home server. In this way, when the second smart device receives the third wireless network access request, it can access the wireless network according to the network identifier and password carried in the third network access request.
需要说明的是,当智能家居应用接收到智能家居服务器发送的验证失败提示信息且该验证失败提示信息携带有智能家居服务器存储的该无线网络的密码时,表示该信息验证请求中携带的密码不正确,该无线网络的正确密码为验证失败提示信息中携带的智能家居服务器本地存储的该无线网络的密码。It should be noted that when the smart home application receives the verification failure prompt information sent by the smart home server and the verification failure prompt information carries the password of the wireless network stored by the smart home server, it means that the password carried in the information verification request is not valid. Correct, the correct password of the wireless network is the password of the wireless network stored locally by the smart home server carried in the verification failure prompt message.
本公开实施例中,在实现第二智能设备连接该无线网络时,可以直接向智能家居服务器发送信息获取请求,来获取该无线网络的密码,以实现第二智能设备连接该无线网络。或者也可以在确定智能家居应用存储智能家居服务器在接收到信息获取请求后发送的该无线网络的密码之后,通过向智能家居服务器发送信息验证请求,来验证智能家居应用本地存储的该无线网络的密码是否正确,若正确,第二智能设备则根据智能家居应用本地存储的该无线网络的密码连接该无线网络。若不正确,则根据智能家居服务器本地存储的该无线网络的密码连接该无线网络。也即是,本公开实施例提供了多种智能设备连接无线网络的实现方式,从而能够更灵活的实现智能设备连接无线网络,提高了智能设备连接无线网络的效率,便于用户通过终端的智能家居应用对智能设备进行控制。In the embodiment of the present disclosure, when the second smart device is connected to the wireless network, an information acquisition request can be directly sent to the smart home server to obtain the password of the wireless network, so as to realize the connection of the second smart device to the wireless network. Or after determining that the smart home application stores the password of the wireless network sent by the smart home server after receiving the information acquisition request, by sending an information verification request to the smart home server to verify the local storage of the smart home application. Whether the password is correct, if correct, the second smart device connects to the wireless network according to the password of the wireless network stored locally by the smart home application. If it is not correct, connect to the wireless network according to the password of the wireless network stored locally by the smart home server. That is, the embodiments of the present disclosure provide a variety of implementation manners for the smart device to connect to the wireless network, so that the smart device can be connected to the wireless network more flexibly, the efficiency of the smart device connecting to the wireless network is improved, and it is convenient for the user to use the terminal's smart home. The application controls the smart device.
综上所述,本公开实施例在终端成功接入无线网络时,获取该无线网络的密码,并将向智能家居服务器发送信息存储请求。智能家居服务器将该无线网络的网络标识和密码对应存储,以在接收到智能家居应用发送的携带该无线网络的网络标识的信息获取请求时,获取该无线网络的密码,并发送给智能家居应用。智能家居应用将该无线网络的网络标识和密码携带在第一无线网络接入请求中,发送给第一智能设备。这样,在用户无感知的情况下,能够实现第一智能设备自动根据该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。To sum up, in the embodiment of the present disclosure, when the terminal successfully accesses the wireless network, the password of the wireless network is obtained, and an information storage request is sent to the smart home server. The smart home server stores the network identifier and password of the wireless network correspondingly, so as to obtain the password of the wireless network and send it to the smart home application when receiving an information acquisition request that carries the network identifier of the wireless network sent by the smart home application . The smart home application carries the network identifier and password of the wireless network in the first wireless network access request, and sends it to the first smart device. In this way, without the user's perception, the first smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network, which improves the efficiency of the smart device connecting to the wireless network, and does not require the user to manually input the password of the wireless network. , which simplifies the user's operation and saves time when the smart device is connected to the wireless network.
图4是本公开实施例示出的一种无线网络的连接装置结构示意图,该装置应用于终端中的智能家居应用。参照图4,该装置包括第一发送模块401和第二发送模块402。FIG. 4 is a schematic structural diagram of a wireless network connection device according to an embodiment of the present disclosure, and the device is applied to a smart home application in a terminal. Referring to FIG. 4 , the apparatus includes a
第一发送模块401,用于向智能家居服务器发送信息获取请求,该信息获取请求携带终端当前接入的无线网络的网络标识,该信息获取请求用于指示智能家居服务器获取并返回该无线网络的密码;The
第二发送模块402,用于当接收到智能家居服务器发送的该无线网络的密码时,向第一智能设备发送第一无线网络接入请求,该第一无线网络接入请求中携带该无线网络的网络标识和密码,且该第一智能设备为终端通过智能家居应用能够控制的任一智能设备。The
可选地,该信息获取请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名,且该无线网络的密码是智能家居服务器对智能家居应用当前登录的用户账号和智能家居应用的应用签名鉴权成功后发送的。Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application, and the password of the wireless network is the user account and the smart home application currently logged in by the smart home server to the smart home application. Sent after application signature authentication is successful.
可选地,该装置还包括:Optionally, the device also includes:
存储模块,用于存储该无线网络的密码;a storage module for storing the password of the wireless network;
该装置还包括:The device also includes:
第三发送模块,用于向智能家居服务器发送信息验证请求,该信息验证请求携带该无线网络的网络标识和本地存储的该无线网络的密码,该信息验证请求用于指示智能家居服务器对本地存储的该无线网络的密码进行验证;The third sending module is used to send an information verification request to the smart home server, where the information verification request carries the network identifier of the wireless network and the locally stored password of the wireless network, and the information verification request is used to instruct the smart home server to verify the local storage. the password of the wireless network for verification;
第四发送模块,用于当接收到智能家居服务器发送的验证成功提示信息时,向第二智能设备发送第二无线网络接入请求,该第二无线网络接入请求中携带该无线网络的网络标识和本地存储的该无线网络的密码,且该第二智能设备为终端中的智能家居应用能够控制的任一智能设备。The fourth sending module is configured to send a second wireless network access request to the second smart device when receiving the verification success prompt information sent by the smart home server, where the second wireless network access request carries the network of the wireless network The identification and the locally stored password of the wireless network, and the second smart device is any smart device that can be controlled by the smart home application in the terminal.
可选地,该信息验证请求中携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
该装置还包括:The device also includes:
第五发送模块,用于当接收到智能家居服务器发送的验证失败提示信息且该验证失败提示信息携带有智能家居服务器存储的该无线网络的密码时,向该第二智能设备发送第三无线网络接入请求,该第三无线网络接入请求中携带该无线网络的网络标识和智能家居服务器存储的该无线网络的密码;The fifth sending module is used to send a third wireless network to the second smart device when receiving the verification failure prompt information sent by the smart home server and the verification failure prompt information carries the password of the wireless network stored by the smart home server an access request, where the third wireless network access request carries the network identifier of the wireless network and the password of the wireless network stored by the smart home server;
其中,智能家居服务器存储的该无线网络的密码是在智能家居服务器对智能家居应用当前登录的用户账号和智能家居应用的应用签名鉴权成功后在该验证失败提示信息中携带的。The password of the wireless network stored by the smart home server is carried in the verification failure prompt message after the smart home server successfully authenticates the user account currently logged in the smart home application and the application signature of the smart home application.
可选地,该装置还包括:Optionally, the device also includes:
获取模块,用于当终端成功接入该无线网络时,获取该无线网络的密码;an obtaining module, configured to obtain the password of the wireless network when the terminal successfully accesses the wireless network;
第六发送模块,用于向智能家居服务器发送信息存储请求,该信息存储请求携带该无线网络的网络标识和密码,该信息存储请求用于指示智能家居服务器将该无线网络的网络标识和密码对应存储。The sixth sending module is used to send an information storage request to the smart home server, where the information storage request carries the network identifier and password of the wireless network, and the information storage request is used to instruct the smart home server to correspond to the network identifier and password of the wireless network storage.
可选地,该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名。Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application.
综上所述,本公开实施例中智能家居应用先向智能家居服务器发送携带终端当前接入的无线网络的网络标识的信息获取请求,在接收到智能家居服务器发送的该无线网络的密码时,智能家居应用将该无线网络的网络标识和密码携带在第一无线网络接入请求中,发送给第一智能设备。这样,在用户无感知的情况下,能够实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。To sum up, in the embodiment of the present disclosure, the smart home application first sends an information acquisition request carrying the network identifier of the wireless network currently accessed by the terminal to the smart home server, and when receiving the password of the wireless network sent by the smart home server, The smart home application carries the network identifier and password of the wireless network in the first wireless network access request, and sends it to the first smart device. In this way, without the user's perception, the smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request, which improves the efficiency of the smart device connecting to the wireless network, and does not The user is required to manually input the password of the wireless network, which simplifies the operation of the user and saves time during the process of accessing the wireless network by the smart device.
图5是本公开实施例示出的一种无线网络的连接装置结构示意图,该装置应用于智能家居服务器。参照图5,该装置包括第一接收模块501、获取模块502和第一发送模块503。FIG. 5 is a schematic structural diagram of a wireless network connection device according to an embodiment of the present disclosure, and the device is applied to a smart home server. Referring to FIG. 5 , the apparatus includes a
第一接收模块501,用于接收终端中的智能家居应用发送的信息获取请求,该信息获取请求携带终端当前接入的无线网络的网络标识;The
获取模块502,用于根据该无线网络的网络标识获取该无线网络的密码;an obtaining
第一发送模块503,用于向智能家居应用发送该无线网络的密码。The
可选地,该信息获取请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information acquisition request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
该装置还包括:The device also includes:
第一鉴权模块,用于根据本地存储的用户账号和应用签名,对该信息获取请求中携带的用户账号和应用签名进行鉴权;a first authentication module, configured to authenticate the user account and application signature carried in the information acquisition request according to the locally stored user account and application signature;
触发模块,用于当鉴权成功时,触发获取模块根据该无线网络的网络标识获取该无线网络的密码。The triggering module is configured to trigger the obtaining module to obtain the password of the wireless network according to the network identifier of the wireless network when the authentication is successful.
可选地,该装置还包括:Optionally, the device also includes:
第二接收模块,用于接收智能家居应用发送的信息验证请求,该信息验证请求为智能家居应用存储智能家居服务器发送的该无线网络的密码之后发送的,且该信息验证请求携带该无线网络的网络标识和智能家居应用存储的该无线网络的密码;The second receiving module is configured to receive an information verification request sent by the smart home application, where the information verification request is sent after the smart home application stores the password of the wireless network sent by the smart home server, and the information verification request carries the information of the wireless network. The network ID and the password of the wireless network stored by the smart home application;
验证模块,用于根据本地存储的该无线网络的密码,对该信息验证请求中携带的密码进行验证;a verification module, configured to verify the password carried in the information verification request according to the locally stored password of the wireless network;
第二发送模块,用于当验证成功时,向智能家居应用发送验证成功提示信息,该验证成功提示信息用于提示该信息验证请求中携带的密码正确。The second sending module is configured to send the verification success prompt information to the smart home application when the verification is successful, where the verification success prompt information is used to prompt that the password carried in the information verification request is correct.
可选地,该信息验证请求中携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information verification request carries the user account currently logged in by the smart home application and the application signature of the smart home application;
该装置还包括:The device also includes:
第二鉴权模块,用于当验证失败时,根据本地存储的用户账号和应用签名,对该信息验证请求中携带的用户账号和应用签名进行鉴权;a second authentication module, configured to authenticate the user account and application signature carried in the information verification request according to the locally stored user account and application signature when the verification fails;
第三发送模块,用于当鉴权成功时,向智能家居应用发送验证失败提示信息,该验证失败提示信息携带本地存储的该无线网络的密码,且该验证失败提示信息用于提示该信息验证请求中携带的密码不正确。The third sending module is used to send the verification failure prompt information to the smart home application when the authentication is successful, the verification failure prompt information carries the locally stored password of the wireless network, and the verification failure prompt information is used to prompt the information verification The password carried in the request is incorrect.
可选地,该装置还包括:Optionally, the device also includes:
第三接收模块,用于接收智能家居应用发送的信息存储请求,该信息存储请求携带该无线网络的网络标识和密码;a third receiving module, configured to receive an information storage request sent by the smart home application, where the information storage request carries the network identifier and password of the wireless network;
存储模块,用于将该无线网络的网络标识和密码对应存储。The storage module is used to store the network identifier and password of the wireless network correspondingly.
可选地,该信息存储请求还携带智能家居应用当前登录的用户账号和智能家居应用的应用签名;Optionally, the information storage request also carries the user account currently logged in by the smart home application and the application signature of the smart home application;
存储模块包括:Storage modules include:
存储子模块,用于将该无线网络的网络标识和密码,以及该信息存储请求中携带的用户账号和应用签名对应存储。The storage submodule is used for corresponding storage of the network identifier and password of the wireless network, as well as the user account and application signature carried in the information storage request.
综上所述,本公开实施例中智能家居服务器在接收到智能家居应用发送的信息获取请求时,根据该信息获取请求中携带的终端当前接入的无线网络的网络标识,获取该无线网络的密码,并将该无线网络的密码发送给智能家居应用,使得智能家居应用在接收到该无线网络的密码时,向第一智能设备发送第一无线网络接入请求。这样,可以在用户无感知的情况下,实现智能设备自动根据第一无线网络接入请求中携带的该无线网络的网络标识和密码连接该无线网络,提高了智能设备连接无线网络的效率,不需要用户手动输入无线网络的密码,在智能设备接入无线网络过程中,简化了用户的操作,节省了时间。To sum up, in the embodiment of the present disclosure, when receiving an information acquisition request sent by a smart home application, the smart home server obtains the information of the wireless network according to the network identifier of the wireless network currently accessed by the terminal carried in the information acquisition request. password, and send the password of the wireless network to the smart home application, so that the smart home application sends a first wireless network access request to the first smart device when receiving the password of the wireless network. In this way, the smart device can automatically connect to the wireless network according to the network identifier and password of the wireless network carried in the first wireless network access request without the user's perception, which improves the efficiency of the smart device connecting to the wireless network, and does not The user is required to manually input the password of the wireless network, which simplifies the user's operation and saves time during the process of accessing the wireless network by the smart device.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.
图6是本公开实施例示出的一种无线网络的连接装置的结构示意图。例如,该装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a schematic structural diagram of a wireless network connection device according to an embodiment of the present disclosure. For example, the
参照图6,该装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, the
处理组件602通常控制该装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The
存储器604被配置为存储各种类型的数据以支持在该装置600的操作。这些数据的示例包括用于在该装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The
电源组件606为该装置600的各种组件提供电源。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为该装置600生成、管理和分配电源相关联的组件。
多媒体组件608包括在该装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。该触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与该触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当该装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当该装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件614包括一个或多个传感器,用于为该装置600提供各个方面的状态评估。例如,传感器组件614可以检测到该装置600的打开/关闭状态,组件的相对定位,例如该组件为该装置600的显示器和小键盘,传感器组件614还可以检测该装置600或该装置600一个组件的位置改变,用户与该装置600接触的存在或不存在,该装置600方位或加速/减速和该装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件616被配置为便于该装置600和其他设备之间有线或无线方式的通信。该装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,该通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The
在示例性实施例中,该装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图1或图3所示实施例提供的方法。In an exemplary embodiment, the
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由该装置600的处理器620执行以完成上述方法。例如,该非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
一种非临时性计算机可读存储介质,当该存储介质中的指令由计算机的处理器执行时,使得计算机能够执行上述图1或图3的无线网络的连接方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a computer, enable the computer to execute the above-mentioned method for connecting a wireless network in FIG. 1 or FIG. 3 .
一种包含指令的计算机程序产品,当该计算机程序产品中的指令由计算机的处理器执行时,使得计算机能够执行上述图1或图3中无线网络的连接方法。A computer program product containing instructions, when the instructions in the computer program product are executed by a processor of a computer, enable the computer to execute the above-mentioned method for connecting a wireless network in FIG. 1 or FIG. 3 .
图7是本公开实施例示出的一种无线网络的连接装置的结构示意图。例如,该装置700可以被提供为一服务器。参照图7,该装置700包括处理器722,其进一步包括一个或多个处理器,以及由存储器732所代表的存储器资源,用于存储可由处理器722的执行的指令,例如应用程序。存储器732中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理器722被配置为执行指令,以执行上述图2和图3所示实施例提供的方法。FIG. 7 is a schematic structural diagram of a device for connecting a wireless network according to an embodiment of the present disclosure. For example, the
该装置700还可以包括一个电源组件726被配置为执行该装置700的电源管理,一个有线或无线网络接口750被配置为将该装置700连接到网络,和一个输入输出(I/O)接口758。该装置700可以操作基于存储在存储器732的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器732,上述指令可由该装置700的处理器722执行以完成上述方法。例如,该非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
一种非临时性计算机可读存储介质,当该存储介质中的指令由计算机的处理器执行时,使得计算机能够执行上述图2或图3的无线网络的连接方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a computer, enable the computer to execute the above-mentioned method for connecting a wireless network in FIG. 2 or FIG. 3 .
一种包含指令的计算机程序产品,当该计算机程序产品中的指令由计算机的处理器执行时,使得计算机能够执行上述图2或图3中无线网络的连接方法。A computer program product containing instructions, when the instructions in the computer program product are executed by a processor of a computer, enable the computer to execute the method for connecting a wireless network in the above-mentioned FIG. 2 or FIG. 3 .
本领域技术人员在考虑说明书及实践这里公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810521931.4A CN108811179B (en) | 2018-05-28 | 2018-05-28 | Wireless network connection method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810521931.4A CN108811179B (en) | 2018-05-28 | 2018-05-28 | Wireless network connection method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108811179A CN108811179A (en) | 2018-11-13 |
| CN108811179B true CN108811179B (en) | 2020-12-18 |
Family
ID=64090345
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810521931.4A Active CN108811179B (en) | 2018-05-28 | 2018-05-28 | Wireless network connection method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108811179B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020199055A1 (en) * | 2019-03-29 | 2020-10-08 | 深圳市大疆创新科技有限公司 | Communication method, apparatus and system |
| CN110519759A (en) * | 2019-07-12 | 2019-11-29 | 浙江大华技术股份有限公司 | Cut-in method, device, equipment, system and the storage medium of WLAN |
| CN110545569B (en) * | 2019-08-23 | 2020-10-23 | 珠海格力电器股份有限公司 | Network distribution method and system of intelligent device and readable medium |
| CN110868748A (en) * | 2019-11-06 | 2020-03-06 | 北京小米移动软件有限公司 | Smart device network access, network access method, device, equipment, system and medium |
| CN111464351B (en) * | 2020-03-31 | 2021-07-13 | 珠海格力电器股份有限公司 | Network distribution method and device for intelligent household equipment, terminal equipment and storage medium |
| CN114465886A (en) * | 2020-11-09 | 2022-05-10 | 深圳Tcl新技术有限公司 | Equipment network distribution method and device, intelligent terminal and computer readable storage medium |
| CN113154623A (en) * | 2021-04-15 | 2021-07-23 | 宁波奥克斯电气股份有限公司 | Equipment operation method and device of intelligent air conditioner and air conditioner |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103369527A (en) * | 2012-04-01 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method, device and system for WiFi (wireless fidelity) network sharing |
| CN104640234A (en) * | 2015-02-13 | 2015-05-20 | 小米科技有限责任公司 | Method and device for accessing to wireless network |
| CN104967995A (en) * | 2015-06-30 | 2015-10-07 | 北京奇虎科技有限公司 | A method, client and server for obtaining WIFI network password |
| CN105657857A (en) * | 2014-11-12 | 2016-06-08 | 深圳市腾讯计算机系统有限公司 | Wireless network connection method and device |
| US10262210B2 (en) * | 2014-09-30 | 2019-04-16 | Google Llc | Method and system for encrypting network credentials using password provided by remote server to provisioning device |
-
2018
- 2018-05-28 CN CN201810521931.4A patent/CN108811179B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103369527A (en) * | 2012-04-01 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method, device and system for WiFi (wireless fidelity) network sharing |
| US10262210B2 (en) * | 2014-09-30 | 2019-04-16 | Google Llc | Method and system for encrypting network credentials using password provided by remote server to provisioning device |
| CN105657857A (en) * | 2014-11-12 | 2016-06-08 | 深圳市腾讯计算机系统有限公司 | Wireless network connection method and device |
| CN104640234A (en) * | 2015-02-13 | 2015-05-20 | 小米科技有限责任公司 | Method and device for accessing to wireless network |
| CN104967995A (en) * | 2015-06-30 | 2015-10-07 | 北京奇虎科技有限公司 | A method, client and server for obtaining WIFI network password |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108811179A (en) | 2018-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108811179B (en) | Wireless network connection method, device and storage medium | |
| US10498723B2 (en) | Method, and apparatus for authenticating access | |
| CN106302762B (en) | Smart machine binding method and device | |
| EP3182670B1 (en) | Device binding method, server and recording medium | |
| RU2628323C1 (en) | Methods and devices for the reference to the device | |
| KR101855602B1 (en) | Methods, apparatuses, program and recoding medium for controlling device | |
| CN105791309B (en) | A kind of method, apparatus and system executing business processing | |
| CN105847243B (en) | Method and device for accessing a smart camera | |
| CN104125067B (en) | Account and token secret key binding method and device | |
| KR20210153017A (en) | Device network configuration method and apparatus, and medium | |
| CN105656948A (en) | Account login method and device | |
| CN107230060B (en) | A method and device for reporting the loss of an account | |
| CN105491229B (en) | The method and apparatus of remote control mobile terminal | |
| CN106488450B (en) | Connect the method and device of wireless network | |
| KR101903262B1 (en) | Method and device for equipment control | |
| WO2017071074A1 (en) | Method and apparatus for establishing connection | |
| CN105678549A (en) | Payment method and device | |
| CN106102061A (en) | Method for connecting network and device | |
| CN104484593A (en) | Terminal verification method and terminal verification device | |
| CN106446653A (en) | Application authority management method and device and electronic equipment | |
| CN107231338B (en) | Network connection method, device and device for network connection | |
| CN107395624A (en) | Information processing method and device | |
| CN107911380B (en) | Identity verification method and device | |
| CN106656479B (en) | Device password authentication method, server and terminal | |
| CN106027601A (en) | Remote control method and device |
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 |