CN105828359A - Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment - Google Patents
Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment Download PDFInfo
- Publication number
- CN105828359A CN105828359A CN201510005714.6A CN201510005714A CN105828359A CN 105828359 A CN105828359 A CN 105828359A CN 201510005714 A CN201510005714 A CN 201510005714A CN 105828359 A CN105828359 A CN 105828359A
- Authority
- CN
- China
- Prior art keywords
- equipment
- terminal
- information
- connection
- described terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000004044 response Effects 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 23
- 238000004891 communication Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000004397 blinking Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例涉及通信领域,尤其涉及一种Wi-Fi接入配置方法、终端及Wi-Fi设备,用以对Wi-Fi终端进行Wi-Fi参数配置。本发明实施例中,终端根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息,终端向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了为该Wi-Fi终端配置了Wi-Fi参数的目的。
The embodiments of the present invention relate to the communication field, and in particular to a Wi-Fi access configuration method, a terminal and a Wi-Fi device, which are used to configure Wi-Fi parameters for the Wi-Fi terminal. In the embodiment of the present invention, the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device, and the terminal sends a configuration command to the Wi-Fi device, and the configuration command includes registration platform information and Wi-Fi access configuration information , the configuration command is used to instruct the Wi-Fi device to access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and to register with the corresponding registration platform according to the registration platform information. Since the configuration command includes Wi-Fi access configuration information, the Wi-Fi device can access the corresponding Wi-Fi network through the configuration command sent by the terminal, thus realizing the configuration of Wi-Fi parameters for the Wi-Fi terminal the goal of.
Description
技术领域technical field
本发明实施例涉及通信领域,尤其涉及一种Wi-Fi接入配置方法、终端及Wi-Fi设备。The embodiments of the present invention relate to the communication field, and in particular, to a Wi-Fi access configuration method, a terminal, and a Wi-Fi device.
背景技术Background technique
智能家居是以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术构建高效的智能家居管理系统,提升家居安全性、便利性。例如,通过智能家居管理系统对窗帘、监控摄像头、智能插座等智能家居进行智能控制。智能家居设备一般是一个内置无线高保真(WirelessFidelity,简称Wi-Fi)模块的Wi-Fi设备,为了实现智能家居的控制,需要将Wi-Fi设备连接至Wi-Fi网络。智能家居设备中的Wi-Fi设备一般并不配置屏幕以及键盘等相关输入设备,而每个家庭的Wi-Fi网络接入名称和密码都不一样,这类无屏Wi-Fi设备在连接到Wi-Fi网络的时候,需要用户进行相当复杂的操作步骤才能实现。如此,如何快速方便的对Wi-Fi设备配置Wi-Fi网络是智能家居能否普及的一个重要原因。Smart home is based on the residence as a platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to build an efficient smart home management system to improve home safety and convenience. For example, intelligent control of curtains, surveillance cameras, smart sockets and other smart homes through the smart home management system. A smart home device is generally a Wi-Fi device with a built-in wireless high-fidelity (Wireless Fidelity, Wi-Fi for short) module. In order to realize the control of the smart home, the Wi-Fi device needs to be connected to a Wi-Fi network. Wi-Fi devices in smart home devices are generally not equipped with related input devices such as screens and keyboards, and the Wi-Fi network access names and passwords of each family are different. When connecting to a Wi-Fi network, the user needs to perform quite complicated operation steps to realize it. In this way, how to quickly and conveniently configure a Wi-Fi network for Wi-Fi devices is an important reason for the popularity of smart homes.
现有配置Wi-Fi设备的方式包括两种,一种将电脑和Wi-Fi设备用网线连接进行配置。用网线将电脑和Wi-Fi设备直接连接进行配置,但在将Wi-Fi设备与电脑连接时,需要Wi-Fi设备预设固定的IP地址,并且要将电脑的IP地址设成与Wi-Fi设备的IP地址在一个网段,以及将网关指向Wi-Fi设备的IP地址,这样的设置需要用户对网络配置有一定了解,这对普通用户来说是比较困难的。There are two existing ways to configure Wi-Fi devices, one is to connect a computer and Wi-Fi devices with a network cable for configuration. Use a network cable to directly connect the computer and the Wi-Fi device for configuration, but when connecting the Wi-Fi device to the computer, the Wi-Fi device needs to be preset with a fixed IP address, and the IP address of the computer must be set to be the same as the Wi-Fi device. The IP address of the Fi device is in a network segment, and the gateway is pointed to the IP address of the Wi-Fi device. This setting requires the user to have a certain understanding of network configuration, which is difficult for ordinary users.
另外一种当Wi-Fi设备没有有线接口时,Wi-Fi设备通过内置的模块侦听其它终端通过广播方式发送的Wi-Fi网络参数以便进行配置,此种方案中要求Wi-Fi设备中配置侦听模块,对Wi-Fi设备要求较高,且增加了Wi-Fi设备的成本。In another case, when the Wi-Fi device has no wired interface, the Wi-Fi device listens to the Wi-Fi network parameters sent by other terminals through broadcasting through the built-in module for configuration. In this solution, the Wi-Fi device is required to configure The listening module has higher requirements on Wi-Fi equipment and increases the cost of Wi-Fi equipment.
综上所述,亟需一种Wi-Fi接入配置方法、终端及Wi-Fi设备,用以对Wi-Fi终端进行Wi-Fi参数配置。To sum up, there is an urgent need for a Wi-Fi access configuration method, a terminal and a Wi-Fi device for configuring Wi-Fi parameters on a Wi-Fi terminal.
发明内容Contents of the invention
本发明实施例提供一种Wi-Fi接入配置方法、终端及Wi-Fi设备,用以对Wi-Fi终端进行Wi-Fi参数配置,以便提高Wi-Fi参数配置的效率和准确度。Embodiments of the present invention provide a Wi-Fi access configuration method, a terminal, and a Wi-Fi device for configuring Wi-Fi parameters on a Wi-Fi terminal, so as to improve the efficiency and accuracy of Wi-Fi parameter configuration.
本发明实施例提供一种Wi-Fi接入配置方法,包括以下步骤:The embodiment of the present invention provides a Wi-Fi access configuration method, including the following steps:
终端与接入点模式下的Wi-Fi设备建立连接,终端为Wi-Fi参数配置客户端设备;The terminal establishes a connection with the Wi-Fi device in the access point mode, and the terminal configures the client device for the Wi-Fi parameters;
终端获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;The terminal obtains the device parameters of the Wi-Fi device, and obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device;
终端通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。The terminal sends a configuration command to the Wi-Fi device through the connection with the Wi-Fi device. The configuration command includes registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device to switch to the station mode. Access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and register with the corresponding registration platform according to the registration platform information.
较佳的,还包括:Preferably, it also includes:
终端根据Wi-Fi设备的设备参数获取Wi-Fi设备支持的消息格式;The terminal obtains the message format supported by the Wi-Fi device according to the device parameters of the Wi-Fi device;
终端通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令,具体包括:The terminal sends configuration commands to the Wi-Fi device through the connection with the Wi-Fi device, including:
终端根据Wi-Fi设备支持的消息格式构造配置命令,并通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令。The terminal constructs the configuration command according to the message format supported by the Wi-Fi device, and sends the configuration command to the Wi-Fi device through the connection with the Wi-Fi device.
较佳的,终端获取Wi-Fi设备的设备参数,具体包括:Preferably, the terminal acquires device parameters of the Wi-Fi device, specifically including:
终端通过与Wi-Fi设备之间的连接向Wi-Fi设备发送查询请求;The terminal sends a query request to the Wi-Fi device through the connection with the Wi-Fi device;
终端接收Wi-Fi设备通过与终端之间的连接返回的查询响应,查询响应中携带Wi-Fi设备的设备参数。The terminal receives the query response returned by the Wi-Fi device through the connection with the terminal, and the query response carries the device parameters of the Wi-Fi device.
较佳的,终端与接入点模式下的Wi-Fi设备建立连接,具体包括:Preferably, the terminal establishes a connection with the Wi-Fi device in the access point mode, specifically including:
终端获取Wi-Fi设备的账号信息;The terminal obtains the account information of the Wi-Fi device;
终端根据Wi-Fi设备的账号信息与接入点模式下的Wi-Fi设备建立连接。The terminal establishes a connection with the Wi-Fi device in the access point mode according to the account information of the Wi-Fi device.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
本发明实施例提供一种Wi-Fi接入配置方法,包括以下步骤:The embodiment of the present invention provides a Wi-Fi access configuration method, including the following steps:
接入点模式下的Wi-Fi设备与终端建立连接,终端为Wi-Fi参数配置客户端设备;The Wi-Fi device in the access point mode establishes a connection with the terminal, and the terminal configures the client device for Wi-Fi parameters;
Wi-Fi设备通过与终端之间的连接向终端发送Wi-Fi设备的设备参数,以使终端根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;The Wi-Fi device sends the device parameters of the Wi-Fi device to the terminal through the connection with the terminal, so that the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device;
Wi-Fi设备通过与终端之间的连接接收终端发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息;The Wi-Fi device receives the configuration command sent by the terminal through the connection with the terminal, and the configuration command includes registration platform information and Wi-Fi access configuration information;
Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。The Wi-Fi device switches to the station mode, accesses the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and registers with the corresponding registration platform according to the registration platform information.
较佳的,Wi-Fi设备通过与终端之间的连接接收终端发送配置命令,具体包括:Preferably, the Wi-Fi device receives configuration commands sent by the terminal through the connection with the terminal, specifically including:
Wi-Fi设备通过与终端之间的连接,接收终端发送的Wi-Fi设备支持的消息格式的配置命令;The Wi-Fi device receives the configuration command of the message format supported by the Wi-Fi device sent by the terminal through the connection with the terminal;
其中,消息格式是终端根据Wi-Fi设备的设备参数获取到的。Wherein, the message format is obtained by the terminal according to the device parameters of the Wi-Fi device.
较佳的,Wi-Fi设备通过与终端之间的连接向终端发送Wi-Fi设备的设备参数,具体包括:Preferably, the Wi-Fi device sends device parameters of the Wi-Fi device to the terminal through the connection with the terminal, specifically including:
Wi-Fi设备通过与终端之间的连接接收终端发送的查询请求;The Wi-Fi device receives the query request sent by the terminal through the connection with the terminal;
Wi-Fi设备通过与终端之间的连接向终端返回查询响应,查询响应中携带Wi-Fi设备的设备参数。The Wi-Fi device returns a query response to the terminal through the connection with the terminal, and the query response carries device parameters of the Wi-Fi device.
较佳的,接入点模式下的Wi-Fi设备与终端建立连接,具体包括:Preferably, the Wi-Fi device in the access point mode establishes a connection with the terminal, specifically including:
Wi-Fi设备开机后进入接入点模式;After the Wi-Fi device is turned on, it enters the access point mode;
接入点模式下的Wi-Fi设备接收终端发送的连接建立请求,连接建立请求中携带Wi-Fi设备的账号信息;The Wi-Fi device in the access point mode receives the connection establishment request sent by the terminal, and the connection establishment request carries the account information of the Wi-Fi device;
接入点模式下的Wi-Fi设备对连接建立请求中携带的账号信息验证通过后,与终端建立连接。The Wi-Fi device in the access point mode establishes a connection with the terminal after passing the verification of the account information carried in the connection establishment request.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
本发明实施例提供一种终端,包括:An embodiment of the present invention provides a terminal, including:
用于与接入点模式下的无线高保真Wi-Fi设备建立连接,终端为Wi-Fi参数配置客户端设备;终端获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;It is used to establish a connection with a wireless high-fidelity Wi-Fi device in access point mode, and the terminal configures the client device for Wi-Fi parameters; the terminal obtains the device parameters of the Wi-Fi device, and obtains them according to the device parameters of the Wi-Fi device Registration platform information of Wi-Fi devices;
终端收发单元,用于通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。The terminal transceiver unit is used to send a configuration command to the Wi-Fi device through the connection with the Wi-Fi device. The configuration command includes registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device Switch to the station mode, access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and register with the corresponding registration platform according to the registration platform information.
较佳的,处理单元,还用于:Preferably, the processing unit is also used for:
终端根据Wi-Fi设备的设备参数获取Wi-Fi设备支持的消息格式;The terminal obtains the message format supported by the Wi-Fi device according to the device parameters of the Wi-Fi device;
终端根据Wi-Fi设备支持的消息格式构造配置命令,并指示收发单元通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令。The terminal constructs the configuration command according to the message format supported by the Wi-Fi device, and instructs the transceiver unit to send the configuration command to the Wi-Fi device through the connection with the Wi-Fi device.
较佳的,处理单元,具体用于:Preferably, the processing unit is specifically used for:
指示收发单元通过与Wi-Fi设备之间的连接向Wi-Fi设备发送查询请求;Instruct the transceiver unit to send a query request to the Wi-Fi device through the connection with the Wi-Fi device;
终端指示收发单元接收Wi-Fi设备通过与终端之间的连接返回的查询响应,查询响应中携带Wi-Fi设备的设备参数。The terminal instructs the transceiver unit to receive the query response returned by the Wi-Fi device through the connection with the terminal, and the query response carries the device parameters of the Wi-Fi device.
较佳的,处理单元,具体用于:Preferably, the processing unit is specifically used for:
终端指示收发单元获取Wi-Fi设备的账号信息;The terminal instructs the transceiver unit to acquire the account information of the Wi-Fi device;
终端根据Wi-Fi设备的账号信息与接入点模式下的Wi-Fi设备建立连接。The terminal establishes a connection with the Wi-Fi device in the access point mode according to the account information of the Wi-Fi device.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
本发明实施例提供一种无线高保真Wi-Fi设备,包括:An embodiment of the present invention provides a wireless high-fidelity Wi-Fi device, including:
处理单元,用于使接入点模式下的Wi-Fi设备与终端建立连接,终端为Wi-Fi参数配置客户端设备;切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册;The processing unit is used to establish a connection between the Wi-Fi device in the access point mode and the terminal, and the terminal configures the client device for Wi-Fi parameters; switches to the station mode, and accesses the corresponding Wi-Fi device according to the Wi-Fi access configuration information. -Fi network, and register with the corresponding registration platform according to the registration platform information;
收发单元,用于通过与终端之间的连接向终端发送Wi-Fi设备的设备参数,以使终端根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;通过与终端之间的连接接收终端发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。The transceiver unit is used to send the device parameters of the Wi-Fi device to the terminal through the connection with the terminal, so that the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device; The connection receiving terminal sends configuration commands, which include registration platform information and Wi-Fi access configuration information. Wi-Fi devices switch to station mode, access the corresponding Wi-Fi network according to Wi-Fi access The registration platform information is registered with the corresponding registration platform.
较佳的,收发单元,具体用于:Preferably, the transceiver unit is specifically used for:
Wi-Fi设备通过与终端之间的连接,接收终端发送的Wi-Fi设备支持的消息格式的配置命令;The Wi-Fi device receives the configuration command of the message format supported by the Wi-Fi device sent by the terminal through the connection with the terminal;
其中,消息格式是终端根据Wi-Fi设备的设备参数获取到的。Wherein, the message format is obtained by the terminal according to the device parameters of the Wi-Fi device.
较佳的,收发单元,具体用于:Preferably, the transceiver unit is specifically used for:
Wi-Fi设备通过与终端之间的连接接收终端发送的查询请求;The Wi-Fi device receives the query request sent by the terminal through the connection with the terminal;
Wi-Fi设备通过与终端之间的连接向终端返回查询响应,查询响应中携带Wi-Fi设备的设备参数。The Wi-Fi device returns a query response to the terminal through the connection with the terminal, and the query response carries device parameters of the Wi-Fi device.
较佳的,处理单元,具体用于:Preferably, the processing unit is specifically used for:
使Wi-Fi设备开机后进入接入点模式;Make the Wi-Fi device enter the access point mode after powering on;
指示收发单元接收终端发送的连接建立请求,连接建立请求中携带Wi-Fi设备的账号信息;Instruct the transceiver unit to receive the connection establishment request sent by the terminal, and the connection establishment request carries the account information of the Wi-Fi device;
接入对连接建立请求中携带的账号信息验证通过后,与终端建立连接。After the account information carried in the connection establishment request is verified by the access pair, a connection is established with the terminal.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
本发明实施例中,终端与接入点模式下的Wi-Fi设备建立连接,终端获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;终端向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。In the embodiment of the present invention, the terminal establishes a connection with the Wi-Fi device in the access point mode, the terminal obtains the device parameters of the Wi-Fi device, and obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device; The terminal sends a configuration command to the Wi-Fi device. The configuration command includes registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device to switch to the station mode, and access The corresponding Wi-Fi network, and register with the corresponding registration platform according to the registration platform information.
由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。Since the terminal establishes a connection with the Wi-Fi device, the terminal can send configuration commands to the Wi-Fi device; furthermore, since the configuration command includes Wi-Fi access configuration information, the Wi-Fi device can send configuration commands through the terminal Access to the corresponding Wi-Fi network, so as to achieve the purpose of efficiently and accurately configuring Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes registration platform information, the Wi-Fi device can be registered according to the registration platform. The information is registered with the corresponding registration platform, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of the Wi-Fi device.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例提供的一种Wi-Fi接入配置方法流程示意图;FIG. 1 is a schematic flow chart of a Wi-Fi access configuration method provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种Wi-Fi接入配置方法流程示意图;FIG. 2 is a schematic flowchart of another Wi-Fi access configuration method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种终端的结构示意图;FIG. 3 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;
图4为本发明实施例提供的一种Wi-Fi设备的结构示意图。Fig. 4 is a schematic structural diagram of a Wi-Fi device provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and beneficial effects of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例中的Wi-Fi设备为支持Wi-Fi功能的设备,较佳的,本发明实施例所提供的方法适用于无屏的Wi-Fi设备,使终端通过无线连接的方式实现为无屏的Wi-Fi设备配置Wi-Fi网络参数,并使所述Wi-Fi设备连接至Wi-Fi网络。The Wi-Fi device in the embodiment of the present invention is a device that supports the Wi-Fi function. Preferably, the method provided in the embodiment of the present invention is applicable to a Wi-Fi device without a screen, so that the terminal can be realized as The screenless Wi-Fi device configures Wi-Fi network parameters and enables the Wi-Fi device to connect to the Wi-Fi network.
本发明实施例所提供的方法也适用于有屏的Wi-Fi设备,以及与该Wi-Fi设备有线连接的情况,例如终端通过USB或网线与Wi-Fi设备进行连接,本发明实施例不做限制,下述本发明实施例中以无线连接方式使终端为无屏的Wi-Fi设备接入对应的Wi-Fi网络为例进行介绍。The method provided by the embodiment of the present invention is also applicable to a Wi-Fi device with a screen and a wired connection to the Wi-Fi device, for example, a terminal is connected to the Wi-Fi device through a USB or a network cable. As a limitation, in the following embodiments of the present invention, a wireless connection mode is used as an example to make a terminal access a corresponding Wi-Fi network as a Wi-Fi device without a screen.
本发明实施例中的Wi-Fi设备可为支持Wi-Fi功能的摄像头、支持Wi-Fi功能的智能插座、支持Wi-Fi功能的空调等家用电器。The Wi-Fi device in the embodiment of the present invention may be a camera supporting the Wi-Fi function, a smart socket supporting the Wi-Fi function, an air conditioner supporting the Wi-Fi function and other household appliances.
本发明实施例中的终端可为手机终端、PC终端、平板终端等。The terminal in the embodiment of the present invention may be a mobile phone terminal, a PC terminal, a tablet terminal, and the like.
基于上述论述,本发明实施例提供的一种Wi-Fi接入配置方法,如图1所示,包括以下步骤:Based on the above discussion, a Wi-Fi access configuration method provided by an embodiment of the present invention, as shown in FIG. 1 , includes the following steps:
步骤101,终端与接入点模式下的Wi-Fi设备建立连接,终端为Wi-Fi参数配置客户端设备;Step 101, the terminal establishes a connection with the Wi-Fi device in the access point mode, and the terminal configures the client device for Wi-Fi parameters;
步骤102,终端获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;Step 102, the terminal obtains the device parameters of the Wi-Fi device, and obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device;
步骤103,终端通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。Step 103, the terminal sends a configuration command to the Wi-Fi device through the connection with the Wi-Fi device, the configuration command includes registration platform information and Wi-Fi access configuration information, and the configuration command is used to instruct the Wi-Fi device to switch to In station mode, access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and register with the corresponding registration platform according to the registration platform information.
由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。Since the terminal establishes a connection with the Wi-Fi device, the terminal can send configuration commands to the Wi-Fi device; furthermore, since the configuration command includes Wi-Fi access configuration information, the Wi-Fi device can send configuration commands through the terminal Access to the corresponding Wi-Fi network, so as to achieve the purpose of efficiently and accurately configuring Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes registration platform information, the Wi-Fi device can be registered according to the registration platform. The information is registered with the corresponding registration platform, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of the Wi-Fi device.
具体来说,Wi-Fi设备通电开启后,处于初始状态,即出厂状态,自动启动接入点模式,此时可通过Wi-Fi设备的指示灯指示该状态,例如,通过红灯常亮表示。较佳的,Wi-Fi设备在用过一段时间之后,可通过Wi-Fi设备上的恢复出厂设置的按钮,将该Wi-Fi设备恢复至出厂设置,以便于重新对该Wi-Fi设备进行设置。Specifically, after the Wi-Fi device is powered on, it is in the initial state, that is, the factory state, and the access point mode is automatically activated. At this time, the status can be indicated by the indicator light of the Wi-Fi device, for example, indicated by a constant red light. . Preferably, after the Wi-Fi device has been used for a period of time, the Wi-Fi device can be restored to the factory settings through the button of restoring the factory settings on the Wi-Fi device, so that the Wi-Fi device can be reset. set up.
较佳的,Wi-Fi设备的说明书或相关介绍信息中应显示出该Wi-Fi设备的账号信息,例如,该Wi-Fi设备的账号和密码,以及显示出该Wi-Fi设备的客户端的下载地址,以便于使用户从该下载地址处将该Wi-Fi设备的客户端下载到终端上。该Wi-Fi设备的客户端由厂家提供,用于配置、远程控制该Wi-Fi设备。Preferably, the account information of the Wi-Fi device should be displayed in the manual or related introduction information of the Wi-Fi device, for example, the account number and password of the Wi-Fi device, and the client ID of the Wi-Fi device. A download address, so that the user can download the client of the Wi-Fi device to the terminal from the download address. The client of the Wi-Fi device is provided by the manufacturer, and is used for configuration and remote control of the Wi-Fi device.
用户在终端上下载了该Wi-Fi设备的客户端之后,终端获取Wi-Fi设备的账号信息;终端根据Wi-Fi设备的账号信息与接入点模式下的Wi-Fi设备建立连接。具体来说,用户在终端的Wi-Fi设备的客户端上输入该Wi-Fi设备的账号信息,例如,该Wi-Fi设备的账号和密码,由于Wi-Fi设备处于接入点模式,因此该终端可向该Wi-Fi设备发送连接建立请求,所述连接建立请求中携带所述Wi-Fi设备的账号信息;接入点模式下的所述Wi-Fi设备对所述连接建立请求中携带的账号信息验证通过后,与所述终端建立连接。较佳的,终端与该Wi-Fi设备建立连接之后,可通过更改指示灯的状态来表示,例如,可将该Wi-Fi设备的指示灯更改为红灯闪烁。After the user downloads the client of the Wi-Fi device on the terminal, the terminal obtains the account information of the Wi-Fi device; the terminal establishes a connection with the Wi-Fi device in the access point mode according to the account information of the Wi-Fi device. Specifically, the user enters the account information of the Wi-Fi device on the client side of the Wi-Fi device of the terminal, for example, the account number and password of the Wi-Fi device. Since the Wi-Fi device is in the access point mode, the The terminal may send a connection establishment request to the Wi-Fi device, and the connection establishment request carries the account information of the Wi-Fi device; the Wi-Fi device in the access point mode After the carried account information is verified, a connection is established with the terminal. Preferably, after the terminal establishes a connection with the Wi-Fi device, it can be indicated by changing the state of the indicator light, for example, the indicator light of the Wi-Fi device can be changed to flashing red.
终端与该Wi-Fi设备建立连接之后,可通过与Wi-Fi设备之间的连接向Wi-Fi设备发送查询请求;终端接收Wi-Fi设备通过与终端之间的连接返回的查询响应,查询响应中携带Wi-Fi设备的设备参数。Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制(MediumAccessControl,简称MAC)地址。After the terminal establishes a connection with the Wi-Fi device, it can send a query request to the Wi-Fi device through the connection with the Wi-Fi device; the terminal receives the query response returned by the Wi-Fi device through the connection with the terminal, and queries The response carries the device parameters of the Wi-Fi device. The parameter information of the Wi-Fi device includes any one or a combination of any several of the following information: type, model, version, and Medium Access Control (Medium Access Control, MAC for short) address.
终端获取该Wi-Fi设备的设备参数之后,根据该Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息,较佳的,还根据该Wi-Fi设备的设备参数获取该Wi-Fi设备支持的消息格式等信息。由于同一厂家可能生成多种类型、多种规格的Wi-Fi设备,各个Wi-Fi设备所支持的消息格式等信息可能不同,而且帮助管理该Wi-Fi设备的注册平台信息也可能不同,因此终端需要先查询该Wi-Fi设备的设备参数,依据该Wi-Fi设备的设备参数唯一确定该Wi-Fi设备,之后从厂家的数据库中获取该Wi-Fi设备的设备参数所对应的注册平台的信息。After obtaining the device parameters of the Wi-Fi device, the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device, preferably, also obtains the Wi-Fi device information according to the device parameters of the Wi-Fi device Information such as the message format supported by the device. Since the same manufacturer may produce multiple types and specifications of Wi-Fi devices, the message format and other information supported by each Wi-Fi device may be different, and the registration platform information that helps manage the Wi-Fi device may also be different, so The terminal needs to query the device parameters of the Wi-Fi device first, uniquely determine the Wi-Fi device according to the device parameters of the Wi-Fi device, and then obtain the registration platform corresponding to the device parameters of the Wi-Fi device from the manufacturer's database Information.
较佳的,终端获取该Wi-Fi设备支持的消息格式之后,终端根据Wi-Fi设备支持的消息格式构造配置命令,并通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令。配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。较佳的,该Wi-Fi接入配置信息为该Wi-Fi设备需接入的Wi-Fi网络的配置信息,例如家庭Wi-Fi网络。该Wi-Fi接入配置信息包括该Wi-Fi设备需接入的Wi-Fi网络的账号、密码、所配置的IP地址等该Wi-Fi设备接入Wi-Fi网络所需的信息。Preferably, after the terminal obtains the message format supported by the Wi-Fi device, the terminal constructs a configuration command according to the message format supported by the Wi-Fi device, and sends the configuration command to the Wi-Fi device through the connection with the Wi-Fi device . The configuration command includes registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device to switch to the station mode, access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and The platform information is registered with the corresponding registration platform. Preferably, the Wi-Fi access configuration information is configuration information of a Wi-Fi network that the Wi-Fi device needs to access, such as a home Wi-Fi network. The Wi-Fi access configuration information includes information required for the Wi-Fi device to access the Wi-Fi network, such as an account number, a password, and a configured IP address of the Wi-Fi network that the Wi-Fi device needs to access.
较佳的,Wi-Fi设备切换至站点模式之后,可通过指示灯状态来表示该状态,例如,绿灯闪烁。较佳的,Wi-Fi设备根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,若接入成功,则可通过指示灯状态来表示该状态,例如,绿灯常亮。Preferably, after the Wi-Fi device is switched to the station mode, the status can be indicated by the state of the indicator light, for example, the green light is blinking. Preferably, the Wi-Fi device accesses the corresponding Wi-Fi network according to the Wi-Fi access configuration information. If the access is successful, the status can be indicated by the status of the indicator light, for example, the green light is always on.
较佳的,该Wi-Fi设备根据注册平台信息向对应的注册平台进行注册,之后,由于终端上有客户端,因此用户可通过终端上的客户端通过该注册平台远程控制该Wi-Fi设备。例如,用户通过手机控制家里的Wi-Fi设备空调,在冬天,用户可在室外提前通过手机上的客户端将家里的空调打开,当用户到家时,家里已经达到一个温度适宜的状态。可见,本发明实施例很大程度上提高了智能家居的便利性,提高了用户的体验感。Preferably, the Wi-Fi device registers with the corresponding registration platform according to the registration platform information, and then, since there is a client on the terminal, the user can remotely control the Wi-Fi device through the registration platform through the client on the terminal . For example, the user controls the air conditioner of the Wi-Fi device at home through the mobile phone. In winter, the user can turn on the air conditioner at home through the client on the mobile phone in advance outside. When the user arrives home, the home has reached a suitable temperature. It can be seen that the embodiment of the present invention greatly improves the convenience of the smart home and improves the experience of the user.
从上述内容可以看出:本发明实施例中,由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。It can be seen from the above that: in the embodiment of the present invention, since the terminal establishes a connection with the Wi-Fi device, a configuration command can be sent to the Wi-Fi device through the terminal; further, since the configuration command includes Wi-Fi access configuration information, Therefore, the Wi-Fi device can access the corresponding Wi-Fi network through the configuration command sent by the terminal, thereby achieving the purpose of efficiently and accurately configuring the Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes Register platform information, so Wi-Fi devices can register with the corresponding registration platform according to the registration platform information, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of Wi-Fi devices sex.
基于相同构思,本发明实施例还提供一种Wi-Fi接入配置方法,如图2所示,包括以下步骤:Based on the same idea, the embodiment of the present invention also provides a Wi-Fi access configuration method, as shown in Figure 2, including the following steps:
步骤201,接入点模式下的Wi-Fi设备与终端建立连接,终端为Wi-Fi参数配置客户端设备;Step 201, the Wi-Fi device in the access point mode establishes a connection with the terminal, and the terminal configures the client device for Wi-Fi parameters;
步骤202,Wi-Fi设备通过与终端之间的连接向终端发送Wi-Fi设备的设备参数,以使终端根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;Step 202, the Wi-Fi device sends the device parameters of the Wi-Fi device to the terminal through the connection with the terminal, so that the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device;
步骤203,Wi-Fi设备通过与终端之间的连接接收终端发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息;Step 203, the Wi-Fi device receives the configuration command sent by the terminal through the connection with the terminal, and the configuration command includes registration platform information and Wi-Fi access configuration information;
步骤204,Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。Step 204, the Wi-Fi device switches to the station mode, accesses the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and registers with the corresponding registration platform according to the registration platform information.
由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。Since the terminal establishes a connection with the Wi-Fi device, the terminal can send configuration commands to the Wi-Fi device; furthermore, since the configuration command includes Wi-Fi access configuration information, the Wi-Fi device can send configuration commands through the terminal Access to the corresponding Wi-Fi network, so as to achieve the purpose of efficiently and accurately configuring Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes registration platform information, the Wi-Fi device can be registered according to the registration platform. The information is registered with the corresponding registration platform, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of the Wi-Fi device.
具体来说,Wi-Fi设备通电开启后,处于初始状态,即出厂状态,自动启动接入点模式,此时可通过Wi-Fi设备的指示灯指示该状态,例如,通过红灯常亮表示。较佳的,Wi-Fi设备在用过一段时间之后,可通过Wi-Fi设备上的恢复出厂设置的按钮,将该Wi-Fi设备恢复至出厂设置,以便于重新对该Wi-Fi设备进行设置。Specifically, after the Wi-Fi device is powered on, it is in the initial state, that is, the factory state, and the access point mode is automatically activated. At this time, the status can be indicated by the indicator light of the Wi-Fi device, for example, indicated by a constant red light. . Preferably, after the Wi-Fi device has been used for a period of time, the Wi-Fi device can be restored to the factory settings through the button of restoring the factory settings on the Wi-Fi device, so that the Wi-Fi device can be reset. set up.
较佳的,Wi-Fi设备的说明书或相关介绍信息中应显示出该Wi-Fi设备的账号信息,例如,该Wi-Fi设备的账号和密码,以及显示出该Wi-Fi设备的客户端的下载地址,以便于使用户从该下载地址处将该Wi-Fi设备的客户端下载到终端上。该Wi-Fi设备的客户端由厂家提供,用于配置、远程控制该Wi-Fi设备。Preferably, the account information of the Wi-Fi device should be displayed in the manual or related introduction information of the Wi-Fi device, for example, the account number and password of the Wi-Fi device, and the client ID of the Wi-Fi device. A download address, so that the user can download the client of the Wi-Fi device to the terminal from the download address. The client of the Wi-Fi device is provided by the manufacturer, and is used for configuration and remote control of the Wi-Fi device.
用户在终端上下载了该Wi-Fi设备的客户端之后,终端获取Wi-Fi设备的账号信息;终端根据Wi-Fi设备的账号信息与接入点模式下的Wi-Fi设备建立连接。具体来说,用户在终端的Wi-Fi设备的客户端上输入该Wi-Fi设备的账号信息,例如,该Wi-Fi设备的账号和密码,由于Wi-Fi设备处于接入点模式,因此接入点模式下的Wi-Fi设备接收终端发送的连接建立请求,连接建立请求中携带Wi-Fi设备的账号信息;接入点模式下的Wi-Fi设备对连接建立请求中携带的账号信息验证通过后,与终端建立连接。较佳的,终端与该Wi-Fi设备建立连接之后,可通过更改指示灯的状态来表示,例如,可将该Wi-Fi设备的指示灯更改为红灯闪烁。After the user downloads the client of the Wi-Fi device on the terminal, the terminal obtains the account information of the Wi-Fi device; the terminal establishes a connection with the Wi-Fi device in the access point mode according to the account information of the Wi-Fi device. Specifically, the user enters the account information of the Wi-Fi device on the client side of the Wi-Fi device of the terminal, for example, the account number and password of the Wi-Fi device. Since the Wi-Fi device is in the access point mode, the The Wi-Fi device in the access point mode receives the connection establishment request sent by the terminal, and the connection establishment request carries the account information of the Wi-Fi device; the Wi-Fi device in the access point mode receives the account information carried in the connection establishment request. After the verification is passed, a connection is established with the terminal. Preferably, after the terminal establishes a connection with the Wi-Fi device, it can be indicated by changing the state of the indicator light, for example, the indicator light of the Wi-Fi device can be changed to flashing red.
该Wi-Fi设备与终端建立连接之后,可通过与终端之间的连接接收终端发送的查询请求;Wi-Fi设备通过与终端之间的连接向终端返回查询响应,查询响应中携带Wi-Fi设备的设备参数。Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。After the Wi-Fi device establishes a connection with the terminal, it can receive the query request sent by the terminal through the connection with the terminal; the Wi-Fi device returns a query response to the terminal through the connection with the terminal, and the query response contains Wi-Fi Device parameters for the device. The parameter information of the Wi-Fi device includes any one or a combination of any several of the following information: type, model, version, and MAC address of media access control.
终端获取该Wi-Fi设备的设备参数之后,根据该Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息,较佳的,还根据该Wi-Fi设备的设备参数获取该Wi-Fi设备支持的消息格式等信息。由于同一厂家可能生成多种类型、多种规格的Wi-Fi设备,各个Wi-Fi设备所支持的消息格式等信息可能不同,而且帮助管理该Wi-Fi设备的注册平台信息也可能不同,因此终端需要先查询该Wi-Fi设备的设备参数,依据该Wi-Fi设备的设备参数唯一确定该Wi-Fi设备,之后从厂家的数据库中获取该Wi-Fi设备的设备参数所对应的注册平台的信息信息。After obtaining the device parameters of the Wi-Fi device, the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device, preferably, also obtains the Wi-Fi device information according to the device parameters of the Wi-Fi device Information such as the message format supported by the device. Since the same manufacturer may produce multiple types and specifications of Wi-Fi devices, the message format and other information supported by each Wi-Fi device may be different, and the registration platform information that helps manage the Wi-Fi device may also be different, so The terminal needs to query the device parameters of the Wi-Fi device first, uniquely determine the Wi-Fi device according to the device parameters of the Wi-Fi device, and then obtain the registration platform corresponding to the device parameters of the Wi-Fi device from the manufacturer's database information.
较佳的,Wi-Fi设备通过与终端之间的连接,接收终端发送的Wi-Fi设备支持的消息格式的配置命令;其中,消息格式是终端根据Wi-Fi设备的设备参数获取到的。配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。较佳的,该Wi-Fi接入配置信息为该Wi-Fi设备需接入的Wi-Fi网络的配置信息,例如家庭Wi-Fi网络。该Wi-Fi接入配置信息包括该Wi-Fi设备需接入的Wi-Fi网络的账号、密码、所配置的IP地址等该Wi-Fi设备接入Wi-Fi网络所需的信息。Preferably, the Wi-Fi device receives the configuration command of the message format supported by the Wi-Fi device sent by the terminal through the connection with the terminal; wherein, the message format is obtained by the terminal according to the device parameters of the Wi-Fi device. The configuration command includes registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device to switch to the station mode, access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and The platform information is registered with the corresponding registration platform. Preferably, the Wi-Fi access configuration information is configuration information of a Wi-Fi network that the Wi-Fi device needs to access, such as a home Wi-Fi network. The Wi-Fi access configuration information includes information required for the Wi-Fi device to access the Wi-Fi network, such as an account number, a password, and a configured IP address of the Wi-Fi network that the Wi-Fi device needs to access.
较佳的,Wi-Fi设备切换至站点模式之后,可通过指示灯状态来表示该状态,例如,绿灯闪烁。较佳的,Wi-Fi设备根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,若接入成功,则可通过指示灯状态来表示该状态,例如,绿灯常亮。Preferably, after the Wi-Fi device is switched to the station mode, the status can be indicated by the state of the indicator light, for example, the green light is blinking. Preferably, the Wi-Fi device accesses the corresponding Wi-Fi network according to the Wi-Fi access configuration information. If the access is successful, the status can be indicated by the status of the indicator light, for example, the green light is always on.
较佳的,该Wi-Fi设备根据注册平台信息向对应的注册平台进行注册,之后,由于终端上有客户端,因此用户可通过终端上的客户端通过该注册平台远程控制该Wi-Fi设备。Preferably, the Wi-Fi device registers with the corresponding registration platform according to the registration platform information, and then, since there is a client on the terminal, the user can remotely control the Wi-Fi device through the registration platform through the client on the terminal .
从上述内容可以看出:本发明实施例中,由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。It can be seen from the above that: in the embodiment of the present invention, since the terminal establishes a connection with the Wi-Fi device, a configuration command can be sent to the Wi-Fi device through the terminal; further, since the configuration command includes Wi-Fi access configuration information, Therefore, the Wi-Fi device can access the corresponding Wi-Fi network through the configuration command sent by the terminal, thereby achieving the purpose of efficiently and accurately configuring the Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes Register platform information, so Wi-Fi devices can register with the corresponding registration platform according to the registration platform information, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of Wi-Fi devices sex.
基于相同的构思,本发明实施例还提供一种终端,如图3所示,包括处理单元301、收发单元302:Based on the same idea, an embodiment of the present invention also provides a terminal, as shown in FIG. 3 , including a processing unit 301 and a transceiver unit 302:
处理单元301,用于与接入点模式下的Wi-Fi设备建立连接,终端为Wi-Fi参数配置客户端设备;获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;The processing unit 301 is configured to establish a connection with the Wi-Fi device in the access point mode, and the terminal configures the client device for Wi-Fi parameters; acquires the device parameters of the Wi-Fi device, and obtains the device parameters according to the Wi-Fi device parameters Registration platform information of Wi-Fi devices;
收发单元302,用于通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。The transceiver unit 302 is configured to send a configuration command to the Wi-Fi device through the connection with the Wi-Fi device, the configuration command includes registration platform information and Wi-Fi access configuration information, and the configuration command is used to instruct the Wi-Fi device Switch to the station mode, access the corresponding Wi-Fi network according to the Wi-Fi access configuration information, and register with the corresponding registration platform according to the registration platform information.
较佳的,处理单元301,还用于:Preferably, the processing unit 301 is also used for:
根据Wi-Fi设备的设备参数获取Wi-Fi设备支持的消息格式;Obtain the message format supported by the Wi-Fi device according to the device parameters of the Wi-Fi device;
根据Wi-Fi设备支持的消息格式构造配置命令,并指示收发单元302通过与Wi-Fi设备之间的连接向Wi-Fi设备发送配置命令。Construct the configuration command according to the message format supported by the Wi-Fi device, and instruct the transceiver unit 302 to send the configuration command to the Wi-Fi device through the connection with the Wi-Fi device.
较佳的,处理单元301,具体用于:Preferably, the processing unit 301 is specifically used for:
指示收发单元302通过与Wi-Fi设备之间的连接向Wi-Fi设备发送查询请求;Instruct the transceiver unit 302 to send a query request to the Wi-Fi device through the connection with the Wi-Fi device;
指示收发单元302接收Wi-Fi设备通过与终端之间的连接返回的查询响应,查询响应中携带Wi-Fi设备的设备参数。Instruct the transceiving unit 302 to receive the query response returned by the Wi-Fi device through the connection with the terminal, where the query response carries the device parameters of the Wi-Fi device.
较佳的,处理单元301,具体用于:Preferably, the processing unit 301 is specifically used for:
指示收发单元302获取Wi-Fi设备的账号信息;Instruct the transceiver unit 302 to acquire the account information of the Wi-Fi device;
根据Wi-Fi设备的账号信息与接入点模式下的Wi-Fi设备建立连接。Establish a connection with the Wi-Fi device in access point mode based on the account information of the Wi-Fi device.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
从上述内容可以看出:本发明实施例中,由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。It can be seen from the above that: in the embodiment of the present invention, since the terminal establishes a connection with the Wi-Fi device, a configuration command can be sent to the Wi-Fi device through the terminal; further, since the configuration command includes Wi-Fi access configuration information, Therefore, the Wi-Fi device can access the corresponding Wi-Fi network through the configuration command sent by the terminal, thereby achieving the purpose of efficiently and accurately configuring the Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes Register platform information, so Wi-Fi devices can register with the corresponding registration platform according to the registration platform information, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of Wi-Fi devices sex.
基于相同的构思,本发明实施例还提供一种Wi-Fi设备,如图4所示,包括处理单元401、收发单元402:Based on the same idea, the embodiment of the present invention also provides a Wi-Fi device, as shown in FIG. 4 , including a processing unit 401 and a transceiver unit 402:
处理单元401,用于使接入点模式下的Wi-Fi设备与终端建立连接,终端为Wi-Fi参数配置客户端设备;切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册;The processing unit 401 is configured to establish a connection between the Wi-Fi device in the access point mode and the terminal, and the terminal configures the client device for Wi-Fi parameters; switches to the station mode, and accesses the corresponding Wi-Fi access configuration information according to the Wi-Fi access configuration information. Wi-Fi network, and register with the corresponding registration platform according to the registration platform information;
收发单元402,用于通过与终端之间的连接向终端发送Wi-Fi设备的设备参数,以使终端根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;通过与终端之间的连接接收终端发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息。The transceiver unit 402 is configured to send the device parameters of the Wi-Fi device to the terminal through the connection with the terminal, so that the terminal obtains the registration platform information of the Wi-Fi device according to the device parameters of the Wi-Fi device; The connection receiving terminal sends a configuration command, and the configuration command includes registration platform information and Wi-Fi access configuration information.
较佳的,收发单元402,具体用于:Preferably, the transceiver unit 402 is specifically used for:
通过与终端之间的连接,接收终端发送的Wi-Fi设备支持的消息格式的配置命令;Through the connection with the terminal, receive the configuration command of the message format supported by the Wi-Fi device sent by the terminal;
其中,消息格式是终端根据Wi-Fi设备的设备参数获取到的。Wherein, the message format is obtained by the terminal according to the device parameters of the Wi-Fi device.
较佳的,收发单元402,具体用于:Preferably, the transceiver unit 402 is specifically used for:
通过与终端之间的连接接收终端发送的查询请求;Receive the query request sent by the terminal through the connection with the terminal;
通过与终端之间的连接向终端返回查询响应,查询响应中携带Wi-Fi设备的设备参数。The query response is returned to the terminal through the connection with the terminal, and the query response carries the device parameters of the Wi-Fi device.
较佳的,处理单元401,具体用于:Preferably, the processing unit 401 is specifically used for:
使Wi-Fi设备开机后进入接入点模式;Make the Wi-Fi device enter the access point mode after powering on;
指示收发单元接收终端发送的连接建立请求,连接建立请求中携带Wi-Fi设备的账号信息;Instruct the transceiver unit to receive the connection establishment request sent by the terminal, and the connection establishment request carries the account information of the Wi-Fi device;
对连接建立请求中携带的账号信息验证通过后,与终端建立连接。After verifying the account information carried in the connection establishment request, a connection is established with the terminal.
较佳的,Wi-Fi设备的参数信息包括以下信息中的任一项或任几项的组合:类型、型号、版本、媒体接入控制MAC地址。Preferably, the parameter information of the Wi-Fi device includes any one or a combination of any of the following information: type, model, version, MAC address of media access control.
从上述内容可以看出:本发明实施例中,终端与接入点模式下的Wi-Fi设备建立连接,终端获取Wi-Fi设备的设备参数,并根据Wi-Fi设备的设备参数获取Wi-Fi设备的注册平台信息;终端向Wi-Fi设备发送配置命令,配置命令中包括注册平台信息以及Wi-Fi接入配置信息,配置命令用于指示Wi-Fi设备切换至站点模式,根据Wi-Fi接入配置信息接入对应的Wi-Fi网络,并根据注册平台信息向对应的注册平台进行注册。It can be seen from the above that in the embodiment of the present invention, the terminal establishes a connection with the Wi-Fi device in the access point mode, the terminal obtains the device parameters of the Wi-Fi device, and obtains the Wi-Fi device parameters according to the device parameters of the Wi-Fi device. The registration platform information of the Fi device; the terminal sends a configuration command to the Wi-Fi device. The configuration command includes the registration platform information and Wi-Fi access configuration information. The configuration command is used to instruct the Wi-Fi device to switch to the station mode. According to the Wi-Fi The Fi access configuration information accesses the corresponding Wi-Fi network, and registers with the corresponding registration platform according to the registration platform information.
由于终端与Wi-Fi设备建立连接,因此可通过终端向Wi-Fi设备发送配置命令;进一步由于配置命令中包括Wi-Fi接入配置信息,因此Wi-Fi设备可通过该终端发送的配置命令接入对应的Wi-Fi网络,从而实现了高效、准确为该Wi-Fi终端配置了Wi-Fi参数的目的;进一步由于配置命令中还包括注册平台信息,因此Wi-Fi设备可根据注册平台信息向对应的注册平台进行注册,如此,该终端可远程通过该注册平台对该Wi-Fi设备进行控制,从而提高了Wi-Fi设备的便利性。Since the terminal establishes a connection with the Wi-Fi device, the terminal can send configuration commands to the Wi-Fi device; furthermore, since the configuration command includes Wi-Fi access configuration information, the Wi-Fi device can send configuration commands through the terminal Access to the corresponding Wi-Fi network, so as to achieve the purpose of efficiently and accurately configuring Wi-Fi parameters for the Wi-Fi terminal; furthermore, because the configuration command also includes registration platform information, the Wi-Fi device can be registered according to the registration platform. The information is registered with the corresponding registration platform, so that the terminal can remotely control the Wi-Fi device through the registration platform, thereby improving the convenience of the Wi-Fi device.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional alterations and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510005714.6A CN105828359A (en) | 2015-01-06 | 2015-01-06 | Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510005714.6A CN105828359A (en) | 2015-01-06 | 2015-01-06 | Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105828359A true CN105828359A (en) | 2016-08-03 |
Family
ID=56513360
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510005714.6A Pending CN105828359A (en) | 2015-01-06 | 2015-01-06 | Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105828359A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101753560A (en) * | 2008-12-02 | 2010-06-23 | 戴尔产品有限公司 | Pre-configuration for wireless network access for portable devices |
| CN103037477A (en) * | 2012-12-14 | 2013-04-10 | 深圳市夏瑞电子有限公司 | Method, server side and client side of family media device accessing to wireless fidelity (wifi) hotspot |
| CN103079257A (en) * | 2012-12-11 | 2013-05-01 | 杭州联汇数字科技有限公司 | Method for connecting audio device into WIFI (Wireless Fidelity) network |
| CN103348761A (en) * | 2011-12-23 | 2013-10-09 | Lg电子株式会社 | Activation of device having limited user interface |
| CN103512159A (en) * | 2012-06-25 | 2014-01-15 | 珠海格力电器股份有限公司 | Air conditioner and air conditioner control system |
| CN104202832A (en) * | 2014-08-31 | 2014-12-10 | 深圳市智凌无线科技有限公司 | Wireless accessing method and device of WIFI terminal |
-
2015
- 2015-01-06 CN CN201510005714.6A patent/CN105828359A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101753560A (en) * | 2008-12-02 | 2010-06-23 | 戴尔产品有限公司 | Pre-configuration for wireless network access for portable devices |
| CN103348761A (en) * | 2011-12-23 | 2013-10-09 | Lg电子株式会社 | Activation of device having limited user interface |
| CN103512159A (en) * | 2012-06-25 | 2014-01-15 | 珠海格力电器股份有限公司 | Air conditioner and air conditioner control system |
| CN103079257A (en) * | 2012-12-11 | 2013-05-01 | 杭州联汇数字科技有限公司 | Method for connecting audio device into WIFI (Wireless Fidelity) network |
| CN103037477A (en) * | 2012-12-14 | 2013-04-10 | 深圳市夏瑞电子有限公司 | Method, server side and client side of family media device accessing to wireless fidelity (wifi) hotspot |
| CN104202832A (en) * | 2014-08-31 | 2014-12-10 | 深圳市智凌无线科技有限公司 | Wireless accessing method and device of WIFI terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3425566B1 (en) | Electronic device and method of registering personal cloud apparatus in user portal server thereof | |
| US20140121786A1 (en) | Smart gateway, smart home system and smart remote control method thereof | |
| CN104469886A (en) | Smart device and method and device for fast accessing wireless network access device thereof | |
| US20150077231A1 (en) | Method, apparatus, and system for intelligently controlling device, and plug-and-play device | |
| CN112187531B (en) | Module upgrading method and system, storage medium and electronic device | |
| US20150139025A1 (en) | Wireless Network Configuration Method and System for Smart Appliance | |
| CN111372222B (en) | Device connection methods, systems, and corresponding terminal devices and servers | |
| EP3075206B1 (en) | Zigbee light link network commissioning | |
| JP2018501676A (en) | Method, apparatus and system for accessing a wireless network | |
| CN108055339B (en) | Household appliance interconnection method and device, storage medium and cloud platform server | |
| RU2681378C1 (en) | Wireless docking system | |
| CN102789685A (en) | Universal remote controller, parameter configuration method thereof and controlled equipment | |
| CN106413037A (en) | Network access method and device for interment-of-things equipment, equipment and mobile terminal | |
| CN105137841A (en) | Remote control method and device based on intelligent socket | |
| US12284516B1 (en) | Controlling a device that operates in a monitor mode | |
| JP2019506020A (en) | Electronic device, electronic device communication method, and mobile terminal communication method | |
| CN110831245B (en) | Network connection method, device and router | |
| WO2017076109A1 (en) | Software upgrading method and device | |
| KR102403117B1 (en) | Dongle and control method thereof | |
| CN115356937A (en) | Device control method, device, storage medium, and electronic apparatus | |
| CN105511275B (en) | Method and device for controlling smart appliances | |
| CN105991786A (en) | Wi-Fi access configuration method, Wi-Fi terminal and access equipment | |
| JP7277210B2 (en) | Network systems, communication terminals and programs | |
| CN104717688A (en) | Method and device for controlling wireless router | |
| CN105828359A (en) | Wi-Fi (Wireless Fidelity) access configuration method, terminal and Wi-Fi equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160803 |
|
| RJ01 | Rejection of invention patent application after publication |