WO2014071841A1 - 同步无线网络参数的方法、终端、服务器、***及设备 - Google Patents

同步无线网络参数的方法、终端、服务器、***及设备 Download PDF

Info

Publication number
WO2014071841A1
WO2014071841A1 PCT/CN2013/086625 CN2013086625W WO2014071841A1 WO 2014071841 A1 WO2014071841 A1 WO 2014071841A1 CN 2013086625 W CN2013086625 W CN 2013086625W WO 2014071841 A1 WO2014071841 A1 WO 2014071841A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless network
network parameters
terminal
access point
server
Prior art date
Application number
PCT/CN2013/086625
Other languages
English (en)
French (fr)
Inventor
万钰臻
孙鹏
牛坤
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Publication of WO2014071841A1 publication Critical patent/WO2014071841A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, terminal, server, system and device for synchronizing wireless network parameters. Background technique
  • WiFi Wireless Fidelity
  • wireless network parameters of multiple APs can be configured in the mobile terminal, such as the service set identifier of the AP (Service Set Identifier). , SSID), user password, etc.
  • the mobile terminal can automatically identify and access the AP when it enters the coverage of the AP.
  • the embodiments of the present disclosure provide a method, a terminal, a server, a system, and a device for synchronizing wireless network parameters, which can avoid the cumbersome operation of the user to configure multiple configurations of the AP that have been configured and have access to the AP.
  • the present disclosure provides a method of synchronizing wireless network parameters, the method comprising:
  • the present disclosure provides a method of synchronizing wireless network parameters, the method comprising:
  • the present disclosure provides a method for synchronizing wireless network parameters, the method comprising: transmitting, to a server, a request for synchronizing a wireless network parameter corresponding to an account successfully registered by a user;
  • the configuration of the access point is performed according to the wireless network parameter.
  • the disclosure provides a first terminal, where the first terminal includes:
  • An obtaining module configured to obtain a wireless network parameter of the configured accessible access point
  • a sending module configured to send the wireless network parameter to the server, so that the server saves the wireless network parameter corresponding to an account that the user successfully logs in in advance, so that the user restores the Configuration of the wireless network parameters of the access point.
  • the present disclosure provides a server, the server comprising:
  • the first receiving module is configured to receive the wireless network parameter of the access point that the first terminal has configured to access, and save the account corresponding to the user successfully logging in beforehand;
  • a second receiving module configured to receive a request for synchronizing the wireless network parameter that is sent by the user after successfully logging in to the account on the second terminal;
  • a sending module configured to send the wireless network parameter to the second terminal, so as to restore the configuration of the wireless network parameter of the access point on the second terminal.
  • the disclosure provides a second terminal, where the second terminal includes:
  • a sending module configured to send, to the server, a request for synchronizing a wireless network parameter corresponding to an account successfully registered by the user
  • a receiving module configured to receive the wireless network parameter sent by the server
  • a restoration module configured to perform configuration of the access point according to the wireless network parameter.
  • the present disclosure provides a system for synchronizing wireless network parameters, the system comprising any of the first terminals as described above, any of the servers described above, and any second as described above terminal.
  • the present disclosure provides an apparatus, the apparatus comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the present disclosure provides an apparatus, the apparatus comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the present disclosure provides an apparatus, the apparatus comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the configuration of the access point is performed according to the wireless network parameter.
  • Some methods of the method, the terminal, the server, the system, and the device for synchronizing the wireless network parameters provided by the embodiments of the present disclosure may include: sending, by using the configured wireless network parameters of the accessible access point to the server, The server saves the wireless network parameter corresponding to the account that the user successfully logs in in advance, and restores the configuration of the wireless network parameter of the access point by logging in the account, and the user can have the configured
  • the wireless network parameters of the access point are synchronized between different terminals through the login account, which prevents the user from repeatedly configuring the same access point, which reduces the user's operation and improves the user experience.
  • FIG. 1 is a schematic flowchart of a method for synchronizing wireless network parameters according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of another method for synchronizing wireless network parameters according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of still another method for synchronizing wireless network parameters according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a first terminal according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a second structure of a first terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a second structure of a server according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of a second terminal according to an embodiment of the present disclosure.
  • a method for synchronizing wireless network parameters is provided in an embodiment of the present disclosure, in which a first terminal that has configured a wireless network parameter of an accessible access point may be used as an execution entity. Note that the method includes the following steps:
  • S102 Send the wireless network parameter to the server, so that the server saves the wireless network parameter corresponding to an account that the user successfully logs in in advance, so that the user restores the access point by logging in the account. Configuration of the wireless network parameters.
  • the method further includes:
  • a method for synchronizing wireless network parameters is provided in an embodiment of the present disclosure.
  • a server for saving wireless network parameters may be used as an execution subject, and the method includes the following steps:
  • S202 Receive a request for synchronizing the wireless network parameter that is sent by the user after successfully logging in to the account on the second terminal.
  • S203 Send the wireless network parameter to the second terminal, so as to restore the configuration of the wireless network parameter of the access point on the second terminal.
  • the sending the wireless network parameter to the second terminal may be performed by: sending, to the second terminal, a wireless network parameter of the accessible access point configured by the first terminal , MAC address.
  • the method may further include:
  • a method for synchronizing wireless network parameters is provided in an embodiment of the present disclosure.
  • a second terminal that is configured to perform wireless network parameter configuration is used as an execution subject, and the method includes the following steps: S301. Send a request for synchronizing a wireless network parameter corresponding to an account that the user successfully logs in to the server. S302. Receive the wireless network parameter sent by the server.
  • the MAC address of the currently accessible access point is determined to be the same as the MAC address saved in the cache file, and the wireless network parameters corresponding to the same MAC address are written into the local preset file.
  • the user owns the first terminal and the second terminal, and the user has configured the wireless network parameters of the plurality of accessible APs in the first terminal, and the user wants to use the second terminal to access the AP after obtaining the second terminal. .
  • another embodiment of the present disclosure provides a method for synchronizing wireless network parameters, which can solve the problem in the above scenario, so that the user can automatically connect to the AP without reconfiguration, which may include the following steps:
  • the first terminal acquires a wireless network parameter of the access point that is configured by the first terminal.
  • the first terminal acquires the wireless network parameters of the access point that it has configured to access, and may adopt the following form: Read the wireless network of the access point that the user has configured to access in the local preset file. parameter.
  • the wireless network parameters of the access point that it has configured can be obtained, which can be:
  • the wireless network parameter of the access point includes at least: an SSID of the access point, and may further include a key management protocol, a user name, a password, a key, an access priority, and the like used by the access point. .
  • the wireless network parameter of the access point accessible by the first terminal may be:
  • the data included in each network is the wireless network parameter of a configured access point.
  • the SSID of the access point is Private
  • the username is "levin”
  • the password password is "123456”
  • the access priority of the access point is "60”.
  • the SSID of the access point is "Public"
  • its key management protocol is "WPA-PSK” (this protocol requires the user to authenticate by key)
  • the key 8 1 ⁇ is "654321”
  • the access priority of the access point is "59”.
  • the SSID is configurable, the case where the SSID is the same may occur.
  • the office area is relatively large, multiple APs need to be deployed to cover the WiFi network, and these APs are named the same name.
  • the access rights granted to users under different AP coverage are different.
  • step 401 such as:
  • the access point that is currently connected to the first terminal is determined (for convenience of explanation, the following embodiment is represented by access point A as An access point that is in a connected state with the first terminal, and a Medium Access Control (MAC) address of the access point A.
  • MAC Medium Access Control
  • the MAC address is a unique identifier of the hardware that can be used to distinguish
  • the method may further include:
  • a related art transmission protocol may be used.
  • SSL Secure Sockets Layer
  • the step 402 further includes: converting the wireless network parameter into a format pre-agreed with the server.
  • the wireless network parameter is converted into a JAVA script object format (JavaScript Object Notation, referred to as JSON), and the server is agreed to use JSON to represent the wireless network parameter, wherein JSON is a lightweight data.
  • JSON JavaScript Object Notation
  • the format allows parameters to be easily passed between functions.
  • step 402 the following manner is adopted:
  • the wireless network parameter and the MAC address of the access point A are converted into a format agreed with the server, and the wireless network parameter and the MAC address of the converted access point A are transmitted to the server corresponding to the user's account.
  • step 402 it can be seen that when the wireless network parameter and the MAC address of the access point are transmitted to the server, the wireless network parameter and the MAC address of the access point that is in the connected state are actually transmitted at a time. Therefore, preferably, the following processing manner is pre-designed in the first terminal:
  • the wireless network parameter and the MAC address that are currently connected are sent to the server, so that the server collects the access that the first terminal can access. Incoming wireless network parameters.
  • the server saves the wireless network parameter corresponding to the account that the user successfully logs in.
  • this step 403 takes the following manner:
  • the received wireless network parameter and MAC address of the access point A are saved corresponding to the account successfully registered by the user.
  • the user's account number refers to the same account.
  • the user wants to synchronize the wireless network parameters of the access point with which the user has permission, the user must support the same account.
  • Each account corresponds to a wireless network parameter that manages an access point that the user has access to.
  • the user's account number can be a mobile phone number, a mailbox, etc., and password verification is required.
  • the second terminal may be the first terminal, or may be other terminals than the first terminal.
  • the configuration of the wireless network parameter may be lost.
  • the server needs to send a request for synchronizing the wireless network parameter.
  • the second terminal is The first terminal.
  • the new terminal is the second terminal.
  • the server searches for a wireless network parameter corresponding to the account according to the user account.
  • the server searches for the wireless network parameter corresponding to the account, To include:
  • the server sends, to the second terminal, a wireless network parameter corresponding to the account that the user successfully logs in.
  • a wireless network parameter corresponding to the account that the user successfully logs in can take a secure SSL encryption transmission protocol.
  • the wireless network parameter sent by the server to the second terminal includes the wireless network of all accessible access points that the user who uses the account has synchronized to the server. Parameters and MAC address.
  • the second terminal performs configuration of an access point according to the wireless network parameter.
  • the method further includes: the second terminal receiving the wireless network parameter sent by the server and the MAC address of the access point, and according to the first The format agreed by the terminal is converted, the wireless network parameter and the MAC address recognizable by the system of the second terminal are obtained, and the wireless network parameter and the MAC address are saved in a preset temporary file of the second terminal.
  • this step 407 preferably adopts the following manner:
  • the MAC address of the current access point is the same as the MAC address stored in the temporary file. If the same, the access point with the same MAC address is obtained.
  • the wireless network parameters are written into the preset file to complete the configuration of the wireless network parameters of the access point.
  • the wireless network parameters of the access point are still written to the file whose path is root@android:/data/misc/wifi # cat wpa supplicant.conf.
  • the wireless network parameters in the file are WiFi-accessed as wireless network parameters of the available access points.
  • the method for synchronizing wireless network parameters provided by the embodiment shown in FIG. 4 enables the wireless network parameters of the user having the configured access point to be synchronously configured between different terminals through the login account, thereby avoiding the user pair. Repeated configuration of the same access point with restricted access reduces user operations and improves user experience.
  • the embodiment of the present disclosure further provides a first terminal, where the first terminal is a virtual device, and in a specific implementation, may be implemented in a terminal by using a software, where the first terminal includes :
  • the obtaining module 501 is configured to obtain a wireless network parameter of the configured access point that is accessible;
  • the sending module 502 is configured to send the wireless network parameter to the server, so that the server saves the wireless network parameter corresponding to an account that the user successfully logs in in advance, so that the user restores the right by logging in the account.
  • the obtaining module 501 is configured to read wireless network parameters of the accessible access point stored in the local preset file.
  • the first terminal further includes:
  • a determining module 503 configured to determine, before the sending module 502 sends the wireless network parameter to the server, an access point that is already connected in the accessible access point, and the connected state Access point Media access control MAC address.
  • the sending module 502 is configured to convert the wireless network parameter and the MAC address of the access point that is already in the connected state into a format pre-agreed by the server, and send the format to the server.
  • the embodiment of the present disclosure further provides a server, where the server is a virtual device, and when implemented, the software may be implemented on a physical server, where the server includes:
  • the first receiving module 601 is configured to receive, by the first terminal, a wireless network parameter of the access point that the first terminal has configured to access, and save the account corresponding to the user successfully logging in beforehand;
  • the second receiving module 602 is configured to receive a request for synchronizing the wireless network parameter that is sent by the user after successfully logging in to the account on the second terminal;
  • the sending module 603 is configured to send the wireless network parameter to the second terminal, so as to restore the configuration of the wireless network parameter of the access point on the second terminal.
  • the first receiving module 601 is configured to receive a wireless network parameter and a MAC address of a network access point of the network line that is connected to the first terminal and sent by the first terminal.
  • the sending module 603 is configured to send, to the second terminal, a wireless network parameter and a MAC address of the access point that the first terminal has configured to access.
  • the server further includes:
  • the searching module 604 is configured to: after the sending module 603 sends the wireless network parameter to the second terminal, searching, according to the account, the accessible access configured by the first terminal that is saved corresponding to the account The wireless network parameters and MAC address of the access point.
  • the embodiment of the present disclosure further provides a second terminal, where the second terminal is a virtual device, and may be implemented in a terminal by using a software, where the second terminal includes :
  • the sending module 701 is configured to send, to the server, a request for synchronizing a wireless network parameter corresponding to an account that the user successfully logs in;
  • the receiving module 702 is configured to receive the wireless network parameter sent by the server.
  • the restoration module 703 is configured to perform configuration of the access point according to the wireless network parameter.
  • the receiving module 702 is configured to receive the wireless network parameter and a MAC address of the access point corresponding to the wireless network parameter, and save the file in a local cache file.
  • the restoration module 703 is configured to determine that the MAC address of the currently accessible access point is the same as the MAC address saved in the cache file, and write the wireless network parameters corresponding to the same MAC address. Go to the local preset file.
  • Embodiments of the present disclosure also provide a system for synchronizing wireless network parameters, the system comprising any of the first terminals as described above, any of the servers described above, and any of the second terminals described above.
  • An embodiment of the present disclosure further provides an apparatus, where the apparatus includes:
  • One or more processors are One or more processors;
  • Memory Memory
  • modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions :
  • the obtaining the wireless network parameters of the configured access point can be as follows: Read the wireless network parameters of the accessible access point stored in the local preset file.
  • the one or more modules may further include the following functions:
  • the sending the wireless network parameter to the server may be as follows:
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The instructions that enable the device to perform the following steps:
  • the obtaining the wireless network parameters of the configured access point can be as follows: Read the wireless network parameters of the accessible access point stored in the local preset file.
  • the one or more modules further enable the device to execute the instructions of the following steps:
  • the sending the wireless network parameter to the server may be as follows:
  • An embodiment of the present disclosure further provides an apparatus, where the apparatus includes:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the receiving, by the first terminal, the wireless network parameter of the accessible access point configured by the first terminal may be as follows:
  • the sending the wireless network parameter to the second terminal may be performed by: sending, to the second terminal, a wireless network parameter of the accessible access point configured by the first terminal , MAC address.
  • the one or more modules may further include the following functions:
  • the wireless network parameter Before the sending the wireless network parameter to the second terminal, searching, according to the account, the wireless network parameter and MAC of the accessible access point configured by the first terminal that is saved corresponding to the account address.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The instructions that enable the device to perform the following steps:
  • the receiving, by the first terminal, the wireless network parameter of the accessible access point configured by the first terminal may be as follows:
  • the sending the wireless network parameter to the second terminal may be performed by: sending, to the second terminal, a wireless network parameter of the accessible access point configured by the first terminal , MAC address.
  • the one or more modules further enable the device to execute the instructions of the following steps:
  • the wireless network parameter Before the sending the wireless network parameter to the second terminal, searching, according to the account, the wireless network parameter and MAC of the accessible access point configured by the first terminal that is saved corresponding to the account address.
  • An embodiment of the present disclosure further provides an apparatus, where the apparatus includes: One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the configuration of the access point is performed according to the wireless network parameter.
  • the receiving the wireless network parameter sent by the server may be performed by: receiving the wireless network parameter, and a MAC address of an access point corresponding to the wireless network parameter, and saving the local Cache file.
  • the configuration of the access point according to the wireless network parameter may be as follows: determining that the MAC address of the currently accessible access point is the same as the MAC address saved in the cache file, and The wireless network parameters corresponding to the same MAC address are written into a local preset file.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The instructions that enable the device to perform the following steps:
  • the configuration of the access point is performed according to the wireless network parameter.
  • the receiving the wireless network parameter sent by the server may be performed by: receiving the wireless network parameter, and a MAC address of an access point corresponding to the wireless network parameter, and saving the local Cache file.
  • the configuration of the access point according to the wireless network parameter may be as follows: determining that the MAC address of the currently accessible access point is the same as the MAC address saved in the cache file, and The wireless network parameters corresponding to the same MAC address are written into a local preset file.
  • the first terminal, the second terminal, the server, the system, and the device provided by the foregoing embodiments of the present disclosure can synchronously configure the wireless network parameters of the user having the configured access point by using the login account to avoid synchronization between different terminals.
  • the user repeatedly configures the access point with the same access, which reduces the user's operation and improves the user experience.
  • the embodiments of the present disclosure may be implemented by hardware, or may be implemented by means of software plus a necessary general hardware platform.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开公开了一种同步无线网络参数的方法、终端、服务器、***及设备,涉及通信领域。本公开实施例提供的同步无线网络参数的方法、终端、服务器、***及设备,通过将已配置的可接入的接入点的无线网络参数发送给服务器,以使所述服务器将所述无线网络参数与用户预先成功登录的账号对应保存,并在所述用户通过登录所述账号还原对所述接入点的无线网络参数的配置,能够将用户具有已配置过的接入点的无线网络参数通过登录账号在不同的终端之间进行同步配置,避免了用户对同一有权限接入的接入点的重复配置,减少了用户的操作,提高用户体验。

Description

同步无线网络参数的方法、 终端、 服务器、 ***及设备 本申请基于申请号为 201210447768.4、 申请日为 2012年 11月 9日的中国专利申请提 出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参 考。 技术领域
本公开涉及通信领域, 尤其涉及一种同步无线网络参数的方法、 终端、 服务器、 *** 及设备。 背景技术
由于使用无线保真(Wireless Fidelity,简称 WiFi)网络接入互联网不需要布线等优点, 人们通常喜欢在家里、 公司等地点架设接入点 (Access Point, 简称 AP), 并同时会对 AP进 行权限设置, 只有通过认证的用户才可接入 AP。
在目前阶段, 大多数的移动终端 (如电脑、 手机等) 均支持对 AP的接入, 同时, 可 在移动终端中配置多个 AP的无线网络参数,例如 AP的服务集标识(Service Set Identifier, SSID) 、 用户密码等。 在对可接入的 AP配置一次无线网络参数后, 移动终端在下次进入 该 AP的覆盖范围时, 就可自动识别并接入该 AP。
但是, 对于同一用户而言, 其可能经常会发生使用不同的终端接入相同的几个 AP的 情况。 例如, 用户的更换手机后, 就需要在新的手机上手动重新配置其本来有权限接入的 公司、家里的 AP的无线网络参数。 因此, 相关技术中存在对于无线网络参数配置的缺陷, 可能发生用户对于已配置过且有权限接入 AP的多次重复配置的现象, 操作繁琐, 影响用 户体验。 发明内容
本公开实施例提供了一种同步无线网络参数的方法、 终端、 服务器、 ***及设备, 可 以避免用户对于已配置过且有权限接入 AP的多次重复配置的繁琐操作。
一方面, 本公开提供了一种同步无线网络参数的方法, 所述方法包括:
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
另一方面, 本公开提供了一种同步无线网络参数的方法, 所述方法包括:
获取已配置的可接入的接入点的无线网络参数; 将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
另一方面, 本公开提供了一种同步无线网络参数的方法, 所述方法包括: 向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
另一方面, 本公开提供了一种第一终端, 所述第一终端包括:
获取模块, 用于获取已配置的可接入的接入点的无线网络参数;
发送模块, 用于将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络 参数与用户预先成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述 接入点的无线网络参数的配置。
另一方面, 本公开提供了一种服务器, 所述服务器包括:
第一接收模块,用于接收第一终端发送的所述第一终端已配置的可接入的接入点的无 线网络参数, 并与用户预先成功登录的账号对应保存;
第二接收模块,用于接收所述用户通过在第二终端上成功登录所述账号后发出的同步 所述无线网络参数的请求;
发送模块, 用于向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还 原对所述接入点的无线网络参数的配置。
另一方面, 本公开提供了一种第二终端, 所述第二终端包括:
发送模块, 用于向服务器发送同步与用户成功登录的账户对应的无线网络参数的请 求;
接收模块, 用于接收所述服务器发送的所述无线网络参数;
还原模块, 用于根据所述无线网络参数进行接入点的配置。
另一方面, 本公开提供了一种用于同步无线网络参数的***, 所述***包括如上所述 的任一第一终端、 如上述所述的任一服务器和如上所述的任一第二终端。
另一方面, 本公开提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。 另一方面, 本公开提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数,并与用 户预先成功登录的账号对应保存;
接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络参数 的请求;
向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还原对所述接入点 的无线网络参数的配置。
另一方面, 本公开提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
—个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
本公开实施例提供的同步无线网络参数的方法、 终端、 服务器、 ***及设备的一些有 益效果可以包括: 通过将已配置的可接入的接入点的无线网络参数发送给服务器, 以使所 述服务器将所述无线网络参数与用户预先成功登录的账号对应保存,并在所述用户通过登 录所述账号还原对所述接入点的无线网络参数的配置,能够将用户具有已配置过的接入点 的无线网络参数通过登录账号在不同的终端之间进行同步配置,避免了用户对同一有权限 接入的接入点的重复配置, 减少了用户的操作, 提高用户体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 附图说明
图 1为本公开实施例提供的一种同步无线网络参数的方法的流程示意图;
图 2为本公开实施例提供的另一种同步无线网络参数的方法的流程示意图; 图 3为本公开实施例提供的再一种同步无线网络参数的方法的流程示意图; 图 4为本公开实施例提供的再一种同步无线网络参数的方法的流程示意图; 图 5为本公开实施例提供的一种第一终端的结构示意图;
图 6为本公开实施例提供的一种第一终端的第二种结构示意图;
图 7为本公开实施例提供的一种服务器的结构示意图; 图 8为本公开实施例提供的一种服务器的第二种结构示意图;
图 9为本公开实施例提供的一种第二终端的结构示意图。
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式
下面结合附图,对本公开实施例提供的一种同步无线网络参数的方法、终端、服务器、 ***及设备的具体实施方式进行详细地说明。
如图 1所示, 本公开实施例提供的一种同步无线网络参数的方法, 在该方法中, 可以 以已配置有可接入的接入点的无线网络参数的第一终端为执行主体进行说明,该方法包括 以下步骤:
5101、 获取已配置的可接入的接入点的无线网络参数;
较佳地, 本步骤 S101 , 可以采用如下方式:
读取在本地的预设文件中存储的可接入的接入点的无线网络参数。
5102、将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用 户预先成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的 无线网络参数的配置。
较佳地, 在本步骤 S 102之前, 还包括:
确定所述可接入的接入点中已处于连接状态的接入点(即与第一终端处于连接状态的 接入点) , 以及所述已处于连接状态的接入点的介质访问控制 MAC地址。
较佳地, 本步骤 S102, 可以采用如下方式:
将所述已处于连接状态的接入点的无线网络参数和 MAC地址转换为所述服务器预先 约定的格式, 并发送给所述服务器。
如图 2所示, 本公开实施例提供的一种同步无线网络参数的方法, 在该方法中, 可以 以用于保存无线网络参数的服务器为执行主体进行说明, 该方法包括以下步骤:
5201、 接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数, 并与用户预先成功登录的账号对应保存;
较佳地, 本步骤 S201 , 可以采用如下方式:
接收第一终端发送的与所述第一终端处于连接状态的网线网络接入点的无线网络参 数和 MAC地址。
5202、接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络 参数的请求;
5203、 向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还原对所述 接入点的无线网络参数的配置。 较佳地, 所述向所述第二终端发送所述无线网络参数, 可以采用如下方式: 向所述第二终端发送所述第一终端已配置的可接入的接入点的无线网络参数、 MAC 地址。
较佳地, 在本步骤 S203之前, 还可以包括:
根据所述账号查找与所述账号对应保存的所述第一终端已配置的可接入的接入点的 无线网络参数、 MAC地址。
如图 3所示, 本公开实施例提供的一种同步无线网络参数的方法, 在该方法中, 可以 以准备进行无线网络参数配置的第二终端为执行主体进行说明, 该方法包括以下步骤: S301、 向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求; S302、 接收所述服务器发送的所述无线网络参数;
较佳地, 本步骤 S302, 可以采用如下方式:
接收所述无线网络参数, 以及所述无线网络参数对应的接入点的 MAC地址, 并保存 在本地的缓存文件中。
S303、 根据所述无线网络参数进行接入点的配置。
较佳地, 本步骤 S303 , 可以采用如下方式:
确定当前可接入的接入点的 MAC地址与所述缓存文件中保存的 MAC地址相同, 并 将所述相同的 MAC地址对应的无线网络参数写入到本地的预设文件中。
在本公开提供的另一实施例中, 以如下场景为例进行说明:
用户拥有第一终端和第二终端, 并且用户曾经在第一终端中配置过可接入的多个 AP 的无线网络参数, 用户在获得第二终端后, 欲使用第二终端接入 AP的场景。
如图 4所示, 本公开另一实施例提供了一种同步无线网络参数的方法, 可以解决上述 场景中的问题, 使得用户无需重新配置, 即可自动连接到 AP, 可以包括如下步骤:
401、 第一终端获取自身已配置的可接入的接入点的无线网络参数;
例如,第一终端获取自身已配置的可接入的接入点的无线网络参数,可采用如下形式: 在本地的预设文件中读取自身已配置的可接入的接入点的无线网络参数。
以安卓***的手机为例进行说明,其获取自身已配置的可接入的接入点的无线网络参 数, 可以为:
在路径为 root@android:/data/misc/wifi # cat wpa_supplicant.conf的文件中读取其可接 入的接入点的无线网络参数。
在本公开实施例中, 接入点的无线网络参数至少包括: 接入点的 SSID, 还可以包括 接入点所使用的密钥管理协议、 用户名、 密码、 密钥、 接入优先级等。
例如, 第一终端可接入的接入点的无线网络参数可以为:
network={
ssid="Private "
key_mgmt=WPA-EAP IEEE8021X identity="levin"
password=" 123456
priority=60
network={
ssid="Public"
psk="654321"
key_mgmt=WPA-PSK
priority=59 在上述无线网络参数中, 每一个 network中所包括的数据为一个已配置的接入点的无 线网络参数。
其中, 在第一个 network 中, 接入点的 SSID 为 Private, " key_mgmt=WP A-E AP IEEE8021X"表示该接入点的密钥管理协议为 "WPA-EAP IEEE8021X" (该协议要求用 户通过输入用户名和密码进行身份验证) , 用户名 identity为 " levin" , 密码 password为 " 123456" , 该接入点的接入优先级为 "60" 。
在第二个 network中, 接入点的 SSID为 "Public", 其密钥管理协议为 "WPA-PSK" (该协议要求用户通过密钥进行身份验证) , 密钥 81^为 "654321 ", 该接入点的接入优 先级为 "59" 。
在进行实施时, 有可能发生如下情况:
在相关技术中, 由于 SSID是可配置的, 因此可能出现 SSID相同的情况。 例如, 在 公司内, 由于办公区域比较大, 需布置多个 AP进行 WiFi网络的覆盖, 则会将这些 AP命 名为相同的名称。 但是, 为了进行权限控制, 对于处于不同 AP覆盖下的用户赋予的接入 权限不同。
因此, 本公开实施例提供了一种对于步骤 401的实施方式, 例如:
在第一终端读取到可接入的接入点的无线网络参数后,确定当前与第一终端处于连接 状态的接入点(为了便于说明,下面的实施例中以接入点 A表示为与第一终端正处于连接 状态的接入点), 以及接入点 A的介质访问控制层(Medium Access Control , 简称 MAC) 地址。
在上述对于步骤 401的优选实施方式中, MAC地址为硬件的唯一标识, 可用于区分
AP o
402、 将无线网络参数发送给服务器;
在本步骤 402中之前, 还可以包括:
用户登录自身的账号的过程。 作为优选的实施方式, 在将无线网络参数发送给服务器时, 可以使用相关技术的传输 协议, 为了增强安全性, 可以使用具有安全性的安全套接层 (Secure Sockets Layer, 简称 SSL) 加密传输协议。
为了实现同步功能, 在将无线网速参数发送给服务器之前, 本步骤 402还包括: 将无线网络参数转换为与所述服务器预先约定的格式。
优选地,在本实施例中,将无线网络参数转换为 JAVA脚本对象格式(JavaScript Object Notation , 简称 JSON) , 并与服务器约定使用 JSON表示无线网络参数, 其中, JSON为 一种轻量级的数据格式, 可以使得参数可以方便的在各种函数之间传递。
例如, 本步骤 402, 采用如下方式:
将接入点 A的无线网络参数、 MAC地址转换为与服务器预先约定的格式, 并将转换 格式后的接入点 A的无线网络参数以及 MAC地址与用户的账号对应的发送给服务器。
通过上述步骤 402的实施方式, 可以看出, 在向服务器发送接入点的无线网络参数和 MAC地址时, 实际上每次只发送正处于连接状态的接入点的无线网络参数和 MAC地址。 因此, 优选地, 在第一终端出预先设计如下处理方式:
在第一终端每一次接入到无线网络的接入点或更新无线网络参数时,均将当前正在连 接的无线网络参数以及 MAC地址发送给服务器, 以使得服务器收集第一终端可接入的接 入点的无线网络参数。
403、 服务器将无线网络参数与用户成功登录的账号对应保存;
较佳地, 为了对接入点进行唯一标识, 对应于步骤 401和 402的优选实施方式, 本步 骤 403采用如下方式:
将接收到的接入点 A的无线网络参数和 MAC地址与用户成功登录的账号对应保存。
404、 用户在第二终端上成功登录账号后向服务器发出的同步请求;
在本公开实施例中, 用户的账号均指同一账号, 在本公开实施例的设定中, 用户欲将 自身有权限的接入点的无线网络参数进行同步, 则必须在同一账号的支持下, 每一个账号 对应管理一个用户有权限接入的接入点的无线网络参数。
较佳地, 用户的账号可以为手机号码、 邮箱等, 并需提供密码验证。
在本公开实施例在, 第二终端可以为第一终端, 也可以为第一终端之外的其他终端。 例如, 当用户对第一终端进行数据清除后, 则有可能丢失无线网络参数的配置, 为了 重新配置无线网络参数, 则需向服务器发出同步无线网络参数的请求, 此时, 第二终端即 为第一终端。
当用户的第一终端发生遗失或放弃使用时, 购置新的终端后, 欲使用新的终端接入无 线网络, 则需要将第一终端上曾经配置的无线网络参数同步到新的终端上, 则此时, 新的 终端即为第二终端。
405、 服务器根据用户的账号查找与其账号对应的无线网络参数;
较佳地, 在本步骤 405中, 服务器在查找与其账号对应的无线网络参数的同时, 还可 以包括:
查找无线网络参数对应的 MAC地址。
406、 服务器向第二终端发送与用户成功登录的账号对应的无线网络参数; 优选地, 为了增强数据传输的安全性, 在服务器向第二终端发送与用户成功登录的账 号对应的无线网络参数时, 可采取具有安全性的 SSL加密传输协议。
作为一种优选的实施方式, 在该步骤 406中, 服务器向第二终端发送的无线网络参数 中,包括使用该账号的用户曾同步到所述服务器的所有可接入的接入点的无线网络参数以 及 MAC地址。
407、 第二终端根据所述无线网络参数进行接入点的配置。
较佳地, 在第二终端根据所述无线网络参数进行接入点的配置之前, 本方法还包括: 第二终端接收服务器发送的无线网络参数和接入点的 MAC地址, 并根据与第一终端 约定的格式进行转换, 得到第二终端的***可识别的无线网络参数和 MAC地址, 并将无 线网络参数和 MAC地址保存在第二终端的一个预置的临时文件中。
参照步骤 401和 402中优选的实施方式,由于需要通过 MAC地址唯一的识别接入点, 因此, 本步骤 407优选地采用如下方式:
当第二终端进入任一接入点的覆盖范围时, 获取当前接入点的 MAC地址是否与临时 文件中存储的 MAC地址存在相同, 如果存在相同, 则将该具有相同 MAC地址的接入点 的无线网络参数写入到预设文件中, 完成该接入点的无线网络参数的配置。
例如, 同步骤 401, 以安卓***为例说明, 接入点的无线网络参数仍被写入到路径为 root@android:/data/misc/wifi # cat wpa supplicant.conf的文件中。 ***会默认将该文件中的 无线网络参数作为可使用的接入点的无线网络参数进行 WiFi接入。
通过如图 4所示的实施例提供的同步无线网络参数的方法,能够将用户具有已配置过 的接入点的无线网络参数通过登录账号在不同的终端之间进行同步配置,避免了用户对同 一有权限接入的接入点的重复配置, 减少了用户的操作, 提高用户体验。
如图 5所示, 本公开实施例还提供了一种第一终端, 该第一终端为虚拟装置, 在进行 具体实施时, 可通过软件的方式实施在终端之中, 所述第一终端包括:
获取模块 501, 用于获取已配置的可接入的接入点的无线网络参数;
发送模块 502, 用于将所述无线网络参数发送给服务器, 以使所述服务器将所述无线 网络参数与用户预先成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对 所述接入点的无线网络参数的配置。
较佳地, 所述获取模块 501, 用于读取在本地的预设文件中存储的可接入的接入点的 无线网络参数。
如图 6所示, 所述第一终端还包括:
确定模块 503, 用于在所述发送模块 502将所述无线网络参数发送给服务器之前, 确 定所述可接入的接入点中已处于连接状态的接入点, 以及所述已处于连接状态的接入点的 介质访问控制 MAC地址。
较佳地, 所述发送模块 502, 用于将所述已处于连接状态的接入点的无线网络参数和 MAC地址转换为所述服务器预先约定的格式, 并发送给所述服务器。
如图 7所示, 本公开实施例还提供了一种服务器, 该服务器为虚拟装置, 在进行实现 时, 可通过软件实现在实体服务器上, 所述服务器包括:
第一接收模块 601, 用于接收第一终端发送的所述第一终端已配置的可接入的接入点 的无线网络参数, 并与用户预先成功登录的账号对应保存;
第二接收模块 602, 用于接收所述用户通过在第二终端上成功登录所述账号后发出的 同步所述无线网络参数的请求;
发送模块 603, 用于向所述第二终端发送所述无线网络参数, 以便于在所述第二终端 上还原对所述接入点的无线网络参数的配置。
较佳地, 所述第一接收模块 601, 用于接收第一终端发送的与所述第一终端处于连接 状态的网线网络接入点的无线网络参数和 MAC地址。
较佳地, 所述发送模块 603, 用于向所述第二终端发送所述第一终端已配置的可接入 的接入点的无线网络参数、 MAC地址。
如图 8所示, 所述服务器还包括:
查找模块 604,用于在所述发送模块 603向所述第二终端发送所述无线网络参数之前, 根据所述账号查找与所述账号对应保存的所述第一终端已配置的可接入的接入点的无线 网络参数、 MAC地址。
如图 9所示, 本公开实施例还提供了一种第二终端, 该第二终端为虚拟装置, 在进行 具体实施时, 可通过软件的方式实施在终端之中, 所述第二终端包括:
发送模块 701, 用于向服务器发送同步与用户成功登录的账户对应的无线网络参数的 请求;
接收模块 702, 用于接收所述服务器发送的所述无线网络参数;
还原模块 703, 用于根据所述无线网络参数进行接入点的配置。
较佳地, 所述接收模块 702, 用于接收所述无线网络参数, 以及所述无线网络参数对 应的接入点的 MAC地址, 并保存在本地的缓存文件中。
较佳地, 所述还原模块 703, 用于确定当前可接入的接入点的 MAC地址与所述缓存 文件中保存的 MAC地址相同, 并将所述相同的 MAC地址对应的无线网络参数写入到本 地的预设文件中。
本公开实施例还提供了一种用于同步无线网络参数的***,该***包括如上所述的任 一第一终端、 如上述所述的任一服务器和如上所述的任一第二终端。
本公开实施例还提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和 一个或多个模块 (programs) , , 所述一个或多个模块存储于所述存储器中并被配置 成由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
较佳地, 所述获取已配置的可接入的接入点的无线网络参数, 可以采用如下方式: 读取在本地的预设文件中存储的可接入的接入点的无线网络参数。
较佳地, 所述一个或多个模块还可以包括如下功能:
在所述将所述无线网络参数发送给服务器之前,确定所述可接入的接入点中已处于连 接状态的接入点, 以及所述已处于连接状态的接入点的介质访问控制 MAC地址。
较佳地, 所述将所述无线网络参数发送给服务器, 可以采用如下方式:
将所述已处于连接状态的接入点的无线网络参数和 MAC地址转换为所述服务器预先 约定的格式, 并发送给所述服务器。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存储有一个或多 个模块 (programs) , 该一个或多个模块被应用在具有触摸屏幕的设备时, 可以使得该设 备执行如下步骤的指令 (instructions) :
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存, 以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
较佳地, 所述获取已配置的可接入的接入点的无线网络参数, 可以采用如下方式: 读取在本地的预设文件中存储的可接入的接入点的无线网络参数。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令:
在所述将所述无线网络参数发送给服务器之前,确定所述可接入的接入点中已处于连 接状态的接入点, 以及所述已处于连接状态的接入点的介质访问控制 MAC地址。
较佳地, 所述将所述无线网络参数发送给服务器, 可以采用如下方式:
将所述已处于连接状态的接入点的无线网络参数和 MAC地址转换为所述服务器预先 约定的格式, 并发送给所述服务器。
本公开实施例还提供了一种设备, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块 (programs) , 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数,并与用 户预先成功登录的账号对应保存;
接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络参数 的请求;
向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还原对所述接入点 的无线网络参数的配置。
较佳地,所述接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络 参数, 可以采用如下方式:
接收第一终端发送的与所述第一终端处于连接状态的网线网络接入点的无线网络参 数和 MAC地址。
较佳地, 所述向所述第二终端发送所述无线网络参数, 可以采用如下方式: 向所述第二终端发送所述第一终端已配置的可接入的接入点的无线网络参数、 MAC 地址。
较佳地, 所述一个或多个模块还可以包括如下功能:
在所述向所述第二终端发送所述无线网络参数之前,根据所述账号查找与所述账号对 应保存的所述第一终端已配置的可接入的接入点的无线网络参数、 MAC地址。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存储有一个或多 个模块 (programs) , 该一个或多个模块被应用在具有触摸屏幕的设备时, 可以使得该设 备执行如下步骤的指令 (instructions) :
接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数,并与用 户预先成功登录的账号对应保存;
接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络参数 的请求;
向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还原对所述接入点 的无线网络参数的配置。
较佳地,所述接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络 参数, 可以采用如下方式:
接收第一终端发送的与所述第一终端处于连接状态的网线网络接入点的无线网络参 数和 MAC地址。
较佳地, 所述向所述第二终端发送所述无线网络参数, 可以采用如下方式: 向所述第二终端发送所述第一终端已配置的可接入的接入点的无线网络参数、 MAC 地址。
较佳地, 所述一个或多个模块还可以使得该设备执行如下步骤的指令:
在所述向所述第二终端发送所述无线网络参数之前,根据所述账号查找与所述账号对 应保存的所述第一终端已配置的可接入的接入点的无线网络参数、 MAC地址。
本公开实施例还提供了一种设备, 所述设备包括: 一个或多个处理器;
存储器; 和
一个或多个模块 (programs) , 所述一个或多个模块存储于所述存储器中并被配置成 由所述一个或多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
较佳地, 所述接收所述服务器发送的所述无线网络参数, 可以采用如下方式: 接收所述无线网络参数, 以及所述无线网络参数对应的接入点的 MAC地址, 并保存 在本地的缓存文件中。
较佳地, 所述根据所述无线网络参数进行接入点的配置, 可以采用如下方式: 确定当前可接入的接入点的 MAC地址与所述缓存文件中保存的 MAC地址相同, 并 将所述相同的 MAC地址对应的无线网络参数写入到本地的预设文件中。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存储有一个或多 个模块 (programs) , 该一个或多个模块被应用在具有触摸屏幕的设备时, 可以使得该设 备执行如下步骤的指令 (instructions) :
向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
较佳地, 所述接收所述服务器发送的所述无线网络参数, 可以采用如下方式: 接收所述无线网络参数, 以及所述无线网络参数对应的接入点的 MAC地址, 并保存 在本地的缓存文件中。
较佳地, 所述根据所述无线网络参数进行接入点的配置, 可以采用如下方式: 确定当前可接入的接入点的 MAC地址与所述缓存文件中保存的 MAC地址相同, 并 将所述相同的 MAC地址对应的无线网络参数写入到本地的预设文件中。
本公开实施例上述提供的第一终端、 第二终端、 服务器、 ***以及设备, 能够将用户 具有已配置过的接入点的无线网络参数通过登录账号在不同的终端之间进行同步配置,避 免了用户对同一有权限接入的接入点的重复配置, 减少了用户的操作, 提高用户体验。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本公开实施例可以 通过硬件实现, 也可以借助软件加必要的通用硬件平台的方式来实现。 基于这样的理解, 本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非 易失性存储介质 (可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本公开各个实施例所述 的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模块或流程并 不一定是实施本公开所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于 实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个装置中。 上述实 施例的模块可以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本公开实施例序号仅仅为了描述, 不代表实施例的优劣。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和 范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内, 则本公开也意图包含这些改动和变型在内。

Claims

权利要求
1、 一种同步无线网络参数的方法, 其特征在于, 所述方法包括:
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器,以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存,以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取已配置的可接入的接入点的 无线网络参数, 采用如下方式:
读取在本地的预设文件中存储的可接入的接入点的无线网络参数。
3、 根据权利要求 2所述的方法, 其特征在于, 所述将所述无线网络参数发送给服务 器之前, 还包括:
确定所述可接入的接入点中已处于连接状态的接入点,以及所述已处于连接状态的接 入点的介质访问控制 MAC地址。
4、 根据权利要求 3所述的方法, 其特征在于, 所述将所述无线网络参数发送给服务 器, 采用如下方式:
将所述已处于连接状态的接入点的无线网络参数和 MAC 地址转换为所述服务器预 先约定的格式, 并发送给所述服务器。
5、 一种同步无线网络参数的方法, 其特征在于, 所述方法包括:
接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数,并与用 户预先成功登录的账号对应保存;
接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络参数 的请求;
向所述第二终端发送所述无线网络参数,以便于在所述第二终端上还原对所述接入点 的无线网络参数的配置。
6、 根据权利要求 5所述的方法, 其特征在于, 所述接收第一终端发送的所述第一终 端已配置的可接入的接入点的无线网络参数, 采用如下方式:
接收第一终端发送的与所述第一终端处于连接状态的网线网络接入点的无线网络参 数和 MAC地址。
7、 根据权利要求 5所述的方法, 其特征在于, 所述向所述第二终端发送所述无线网 络参数, 采用如下方式:
向所述第二终端发送所述第一终端已配置的可接入的接入点的无线网络参数、 MAC 地址。
8、 根据权利要求 7所述的方法, 其特征在于, 所述向所述第二终端发送所述无线网 络参数之前, 所述方法还包括:
根据所述账号查找与所述账号对应保存的所述第一终端已配置的可接入的接入点的 无线网络参数、 MAC地址。
9、 一种同步无线网络参数的方法, 其特征在于, 所述方法包括:
向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
10、根据权利要求 9所述的方法, 其特征在于, 所述接收所述服务器发送的所述无线 网络参数, 采用如下方式:
接收所述无线网络参数, 以及所述无线网络参数对应的接入点的 MAC地址, 并保存 在本地的缓存文件中。
11、 根据权利要求 10所述的方法, 其特征在于, 所述根据所述无线网络参数进行接 入点的配置, 采用如下方式:
确定当前可接入的接入点的 MAC地址与所述缓存文件中保存的 MAC地址相同, 并 将所述相同的 MAC地址对应的无线网络参数写入到本地的预设文件中。
12、 一种第一终端, 其特征在于, 所述第一终端包括:
获取模块, 用于获取已配置的可接入的接入点的无线网络参数;
发送模块,用于将所述无线网络参数发送给服务器, 以使所述服务器将所述无线网络 参数与用户预先成功登录的账号对应保存,以便于所述用户通过登录所述账号还原对所述 接入点的无线网络参数的配置。
13、 根据权利要求 12所述的第一终端, 其特征在于, 所述获取模块, 用于读取在本 地的预设文件中存储的可接入的接入点的无线网络参数。
14、 根据权利要求 13所述的第一终端, 其特征在于, 所述第一终端还包括: 确定模块,用于在所述发送模块将所述无线网络参数发送给服务器之前,确定所述可 接入的接入点中已处于连接状态的接入点,以及所述已处于连接状态的接入点的介质访问 控制 MAC地址。
15、 根据权利要求 14所述的第一终端, 其特征在于, 所述发送模块, 用于将所述已 处于连接状态的接入点的无线网络参数和 MAC地址转换为所述服务器预先约定的格式, 并发送给所述服务器。
16、 一种服务器, 其特征在于, 所述服务器包括:
第一接收模块,用于接收第一终端发送的所述第一终端已配置的可接入的接入点的无 线网络参数, 并与用户预先成功登录的账号对应保存;
第二接收模块,用于接收所述用户通过在第二终端上成功登录所述账号后发出的同步 所述无线网络参数的请求;
发送模块,用于向所述第二终端发送所述无线网络参数, 以便于在所述第二终端上还 原对所述接入点的无线网络参数的配置。
17、 根据权利要求 16所述的服务器, 其特征在于, 所述第一接收模块, 用于接收第 一终端发送的与所述第一终端处于连接状态的网线网络接入点的无线网络参数和 MAC 地址。
18、 根据权利要求 16所述的服务器, 其特征在于, 所述发送模块, 用于向所述第二 终端发送所述第一终端已配置的可接入的接入点的无线网络参数、 MAC地址。
19、 根据权利要求 18所述的服务器, 其特征在于, 所述服务器还包括:
查找模块,用于在所述发送模块向所述第二终端发送所述无线网络参数之前,根据所 述账号查找与所述账号对应保存的所述第一终端已配置的可接入的接入点的无线网络参 数、 MAC地址。
20、 一种第二终端, 其特征在于, 所述第二终端包括:
发送模块, 用于向服务器发送同步与用户成功登录的账户对应的无线网络参数的请 求;
接收模块, 用于接收所述服务器发送的所述无线网络参数;
还原模块, 用于根据所述无线网络参数进行接入点的配置。
21、 根据权利要求 20所述的第二终端, 其特征在于, 所述接收模块, 用于接收所述 无线网络参数, 以及所述无线网络参数对应的接入点的 MAC地址, 并保存在本地的缓存 文件中。
22、 根据权利要求 21所述的装置, 其特征在于, 所述还原模块, 用于确定当前可接 入的接入点的 MAC地址与所述缓存文件中保存的 MAC地址相同,并将所述相同的 MAC 地址对应的无线网络参数写入到本地的预设文件中。
23、一种用于同步无线网络参数的***,其特征在于,所述***包括如权利要求 12-15 任一权利要求所述的第一终端、如权利要求 16-19任一权利要求所述的服务器和如权利要 求 20-22任一权利要求所述的第二终端。
24、 一种设备, 其特征在于, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
获取已配置的可接入的接入点的无线网络参数;
将所述无线网络参数发送给服务器,以使所述服务器将所述无线网络参数与用户预先 成功登录的账号对应保存,以便于所述用户通过登录所述账号还原对所述接入点的无线网 络参数的配置。
25、 一种设备, 其特征在于, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
接收第一终端发送的所述第一终端已配置的可接入的接入点的无线网络参数,并与用 户预先成功登录的账号对应保存;
接收所述用户通过在第二终端上成功登录所述账号后发出的同步所述无线网络参数 的请求;
向所述第二终端发送所述无线网络参数,以便于在所述第二终端上还原对所述接入点 的无线网络参数的配置。
26、 一种设备, 其特征在于, 所述设备包括:
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
向服务器发送同步与用户成功登录的账户对应的无线网络参数的请求;
接收所述服务器发送的所述无线网络参数;
根据所述无线网络参数进行接入点的配置。
PCT/CN2013/086625 2012-11-09 2013-11-06 同步无线网络参数的方法、终端、服务器、***及设备 WO2014071841A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210447768.4 2012-11-09
CN201210447768.4A CN102984691B (zh) 2012-11-09 2012-11-09 同步无线网络参数的方法、终端、服务器、***及设备

Publications (1)

Publication Number Publication Date
WO2014071841A1 true WO2014071841A1 (zh) 2014-05-15

Family

ID=47858338

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086625 WO2014071841A1 (zh) 2012-11-09 2013-11-06 同步无线网络参数的方法、终端、服务器、***及设备

Country Status (2)

Country Link
CN (1) CN102984691B (zh)
WO (1) WO2014071841A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796967A (zh) * 2015-05-05 2015-07-22 广东欧珀移动通信有限公司 无线网络数据还原方法及装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984691B (zh) * 2012-11-09 2017-02-15 小米科技有限责任公司 同步无线网络参数的方法、终端、服务器、***及设备
CN103888290B (zh) * 2014-02-20 2017-11-17 小米科技有限责任公司 配置信息恢复方法和装置
CN103974256A (zh) * 2014-05-15 2014-08-06 浙江宇视科技有限公司 一种无线网络接入方法及装置
CN105245382B (zh) * 2015-10-23 2018-07-31 小米科技有限责任公司 修改路由器配置信息的方法及装置
CN106658657A (zh) * 2016-10-20 2017-05-10 青岛海信移动通信技术股份有限公司 一种接入网络的方法和装置
CN106452924B (zh) * 2016-11-30 2019-11-15 北京小米移动软件有限公司 同步无线网络配置的方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368848A (zh) * 2011-10-12 2012-03-07 惠州Tcl移动通信有限公司 一种无线通讯装置及其配置方法
US20120057578A1 (en) * 2010-09-07 2012-03-08 Samsung Electronics Co. Ltd. Apparatus and method for determining validity of wifi connection in wireless communication system
CN102647771A (zh) * 2012-04-10 2012-08-22 华为技术有限公司 无线局域网络的发现与选择方法、设备及***与终端
CN102984691A (zh) * 2012-11-09 2013-03-20 北京小米科技有限责任公司 同步无线网络参数的方法、终端、服务器、***及设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9747141B2 (en) * 2008-03-25 2017-08-29 Qualcomm Incorporated Apparatus and methods for widget intercommunication in a wireless communication environment
CN102548023A (zh) * 2011-12-27 2012-07-04 惠州Tcl移动通信有限公司 一种无线保真连接方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120057578A1 (en) * 2010-09-07 2012-03-08 Samsung Electronics Co. Ltd. Apparatus and method for determining validity of wifi connection in wireless communication system
CN102368848A (zh) * 2011-10-12 2012-03-07 惠州Tcl移动通信有限公司 一种无线通讯装置及其配置方法
CN102647771A (zh) * 2012-04-10 2012-08-22 华为技术有限公司 无线局域网络的发现与选择方法、设备及***与终端
CN102984691A (zh) * 2012-11-09 2013-03-20 北京小米科技有限责任公司 同步无线网络参数的方法、终端、服务器、***及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796967A (zh) * 2015-05-05 2015-07-22 广东欧珀移动通信有限公司 无线网络数据还原方法及装置
CN104796967B (zh) * 2015-05-05 2018-05-04 广东欧珀移动通信有限公司 无线网络数据还原方法及装置

Also Published As

Publication number Publication date
CN102984691A (zh) 2013-03-20
CN102984691B (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
EP3410759B1 (en) Method and access point for accessing network by internet-of-things device
KR101914408B1 (ko) 인터넷 액세스 인증 방법 및 클라이언트, 그리고 컴퓨터 저장 매체
WO2014071841A1 (zh) 同步无线网络参数的方法、终端、服务器、***及设备
US11522959B2 (en) Systems and methods for remote management of appliances
WO2020057163A1 (zh) Mec平台部署方法及装置
JP6717528B2 (ja) 中継サーバを用いて電子デバイスに遠隔端末支援を提供する方法、装置およびシステム
WO2015101125A1 (zh) 网络接入控制方法和设备
US20150009862A1 (en) Wireless Network Connection Establishment Method and Terminal Device
EP2973160B1 (en) System and method for secure application communication between networked processors
WO2017012204A1 (zh) 无线连接方法、终端及无线访问接入点、计算机存储介质
US20230232228A1 (en) Method and apparatus for establishing secure communication
CN111031540B (zh) 一种无线网络连接方法及计算机存储介质
US10657093B2 (en) Managing actions of a network device based on policy settings corresponding to a removable wireless communication device
WO2015139401A1 (zh) 无线网络的建立方法、***及无线路由装置
WO2016078291A1 (zh) 共享文件服务器的访问方法、装置及***
CN106487806B (zh) 一种mvc架构中页面支持多用户登录的方法和装置
CN108307683B (zh) 通讯方法、微基站、微基站控制器、终端和***
AU2012319193A1 (en) Techniques for accessing logical networks via a programmatic service call
US20230254301A1 (en) Auto-Configuration of Security Features in Distributed System with Minimal User Interaction
US11412377B2 (en) Method of configuring a multimedia device intended to be connected to an interconnection device
CN114239010A (zh) 一种多节点分布式认证方法、***、电子设备及介质
WO2016145881A1 (zh) 无线保真wifi网络的建立方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13853370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13853370

Country of ref document: EP

Kind code of ref document: A1