[go: up one dir, main page]

CN106452924A - Method and device for synchronizing wireless network configuration - Google Patents

Method and device for synchronizing wireless network configuration Download PDF

Info

Publication number
CN106452924A
CN106452924A CN201611090166.2A CN201611090166A CN106452924A CN 106452924 A CN106452924 A CN 106452924A CN 201611090166 A CN201611090166 A CN 201611090166A CN 106452924 A CN106452924 A CN 106452924A
Authority
CN
China
Prior art keywords
domain name
response message
system response
multicast domain
network configuration
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.)
Granted
Application number
CN201611090166.2A
Other languages
Chinese (zh)
Other versions
CN106452924B (en
Inventor
刘佳
张军杰
何小亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611090166.2A priority Critical patent/CN106452924B/en
Publication of CN106452924A publication Critical patent/CN106452924A/en
Application granted granted Critical
Publication of CN106452924B publication Critical patent/CN106452924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开是关于同步无线网络配置的方法和装置。其中,该方法包括:获取更改后的无线网络配置信息;向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。采用本公开实施例提出的方案,当无线路由器的无线网络配置信息更改后,无须用户在终端中手动输入更改后的信息,终端可自动根据更改后的无线网络配置信息重新连入无线网络,还解决了无输入界面的智能家庭设备更改无线配置困难的问题。

The present disclosure relates to methods and apparatus for synchronizing wireless network configurations. Wherein, the method includes: acquiring changed wireless network configuration information; sending a multicast domain name resolution system response message to a terminal connected to the wireless router, and the multicast domain name resolution system response message includes the changed wireless network configuration information . With the scheme proposed in the embodiment of the present disclosure, when the wireless network configuration information of the wireless router is changed, the terminal can automatically reconnect to the wireless network according to the changed wireless network configuration information without the user manually inputting the changed information in the terminal, and the Solved the problem that it is difficult to change the wireless configuration of smart home devices without an input interface.

Description

同步无线网络配置的方法和装置Method and device for synchronizing wireless network configuration

技术领域technical field

本公开涉及无线局域网技术领域,尤其涉及同步无线网络配置的方法和装置。The present disclosure relates to the field of wireless local area network technology, and in particular to a method and device for synchronizing wireless network configuration.

背景技术Background technique

当前,WLAN(Wireless Local Area Networks,无线局域网)几乎成为组建家庭无线网络和企业办公网络的不二选择。在基础型无线网络中,无线路由器充当所有数据通信的中转站,各种无线终端通过连接到无线路由器接入互联网。Currently, WLAN (Wireless Local Area Networks, wireless local area network) has almost become the only choice for setting up a home wireless network and an enterprise office network. In a basic wireless network, a wireless router acts as a transfer station for all data communications, and various wireless terminals access the Internet by connecting to the wireless router.

通常,一个无线局域网可以接入多个终端。当更改该无线局域网的无线网络配置后,例如包括SSID(Service Set Identifier,服务集标识)、加密方式、密钥,所有已接入的终端都需要用户人工输入更改后的无线网络配置才能重新连接上无线路由器,再接入无线局域网,这给用户带来极大不便。Usually, a wireless local area network can access multiple terminals. After changing the wireless network configuration of the wireless local area network, such as including SSID (Service Set Identifier, service set identifier), encryption method, and key, all connected terminals need to manually input the changed wireless network configuration to reconnect. Connect to the wireless router, and then access the wireless local area network, which brings great inconvenience to the user.

发明内容Contents of the invention

本公开实施例提供一种同步无线网络配置的方法和装置。技术方案如下:Embodiments of the present disclosure provide a method and device for synchronizing wireless network configurations. The technical solution is as follows:

根据本公开实施例的第一方面,提供一种同步无线网络配置的方法,应用于无线路由器,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a method for synchronizing wireless network configuration is provided, which is applied to a wireless router, and the method includes:

获取更改后的无线网络配置信息;Obtain the changed wireless network configuration information;

向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。Sending a multicast domain name resolution system response message to the terminal connected to the wireless router, where the multicast domain name resolution system response message includes the modified wireless network configuration information.

可选的,所述向无线路由器连接的终端发送组播域名解析系统响应报文,包括:Optionally, the sending a multicast domain name resolution system response message to the terminal connected to the wireless router includes:

创建服务资源记录,所述服务资源记录中包括所述无线路由器的基础服务集标识以及所述组播域名解析系统响应报文的预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;Create a service resource record, the service resource record includes the basic service set identifier of the wireless router and the preset attribute of the multicast domain name resolution system response message, and the preset attribute is a locally started user datagram based Protocol configuration synchronization service;

创建文本记录,所述文本记录中包括无线网络配置信息;Create a text record, which includes wireless network configuration information;

将所述服务资源记录和所述文本记录封装为组播域名解析系统响应报文;Encapsulating the service resource record and the text record into a multicast domain name resolution system response message;

向所述终端发送所述组播域名解析系统响应报文。sending the multicast domain name resolution system response message to the terminal.

可选的,所述创建文本记录包括:Optionally, the creation of text records includes:

使用所述无线路由器绑定的账户作为密钥加密所述文本记录中的无线网络配置信息。Using the account bound to the wireless router as a key to encrypt the wireless network configuration information in the text record.

可选的,所述方法还包括:Optionally, the method also includes:

若所述账户绑定有除了所述无线路由器以外的其他终端,向服务器发送所述组播域名解析系统响应报文,所述服务器用于向所述其他终端发送所述组播域名解析系统响应报文。If the account is bound to other terminals except the wireless router, send the multicast domain name resolution system response message to the server, and the server is used to send the multicast domain name resolution system response to the other terminals message.

可选的,所述向所述终端发送组播域名解析系统响应报文,包括:Optionally, the sending a multicast domain name resolution system response message to the terminal includes:

根据所述终端的物理地址,向所述终端发送所述组播域名解析系统响应报文。Sending the multicast domain name resolution system response message to the terminal according to the physical address of the terminal.

根据本公开实施例的第二方面,提供一种同步无线网络配置的方法,应用于终端,所述方法包括:According to the second aspect of the embodiments of the present disclosure, a method for synchronizing wireless network configuration is provided, which is applied to a terminal, and the method includes:

接收组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;Receiving a multicast domain name resolution system response message, wherein the multicast domain name resolution system response message includes wireless network configuration information;

使用所述无线网络配置信息重新连接无线路由器。Reconnect the wireless router using the wireless network configuration information described.

可选的,所述接收组播域名解析系统响应报文之后,所述方法还包括:Optionally, after receiving the multicast domain name resolution system response message, the method further includes:

根据所述组播域名解析系统响应报文中的服务资源记录,判断所述组播域名解析系统响应报文的属性是否为预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;According to the service resource record in the multicast domain name resolution system response message, determine whether the attribute of the multicast domain name resolution system response message is a preset attribute, and the preset attribute is a user datagram protocol-based user datagram protocol started locally configuration synchronization service;

若所述组播域名解析系统响应报文的属性为预设属性,根据所述组播域名解析系统响应报文中的服务资源记录中的基础服务集标识,判断所述组播域名解析系统响应报文的发送方是否为当前连接的无线路由器;If the attribute of the multicast domain name resolution system response message is a preset attribute, determine the multicast domain name resolution system response according to the basic service set identifier in the service resource record in the multicast domain name resolution system response message Whether the sender of the message is the currently connected wireless router;

若所述组播域名解析系统响应报文的发送方为当前连接的无线路由器,获取所述组播域名解析系统响应报文中的无线网络配置信息。If the sender of the multicast domain name resolution system response message is the currently connected wireless router, acquire the wireless network configuration information in the multicast domain name resolution system response message.

可选的,所述方法还包括:Optionally, the method also includes:

使用所述终端绑定的账户解密所述组播域名解析系统响应报文中的文本记录中的无线网络配置信息。Using the account bound to the terminal to decrypt the wireless network configuration information in the text record in the multicast domain name resolution system response message.

根据本公开实施例的第三方面,提供一种同步无线网络配置的装置,应用于无线路由器,所述装置包括:According to a third aspect of the embodiments of the present disclosure, an apparatus for synchronizing wireless network configuration is provided, which is applied to a wireless router, and the apparatus includes:

第一获取模块,被配置为获取更改后的无线网络配置信息;The first obtaining module is configured to obtain the changed wireless network configuration information;

第一发送模块,被配置为向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。The first sending module is configured to send a multicast domain name resolution system response message to a terminal connected to the wireless router, and the multicast domain name resolution system response message includes modified wireless network configuration information.

可选的,所述第一发送模块包括:Optionally, the first sending module includes:

第一处理子模块,被配置为创建服务资源记录,所述服务资源记录中包括所述无线路由器的基础服务集标识以及所述组播域名解析系统响应报文的预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;The first processing sub-module is configured to create a service resource record, the service resource record includes the basic service set identifier of the wireless router and the preset attributes of the multicast domain name resolution system response message, the preset The attribute is a user datagram protocol-based configuration synchronization service started locally;

第二处理子模块,被配置为创建文本记录,所述文本记录中包括无线网络配置信息;The second processing submodule is configured to create a text record, and the text record includes wireless network configuration information;

第三处理子模块,被配置为将所述服务资源记录和所述文本记录封装为组播域名解析系统响应报文;The third processing submodule is configured to encapsulate the service resource record and the text record into a multicast domain name resolution system response message;

发送子模块,被配置为向所述终端发送所述组播域名解析系统响应报文。The sending submodule is configured to send the multicast domain name resolution system response message to the terminal.

可选的,所述第二处理子模块,还被配置为使用所述无线路由器绑定的账户作为密钥加密所述文本记录中的无线网络配置信息。Optionally, the second processing submodule is further configured to use the account bound to the wireless router as a key to encrypt the wireless network configuration information in the text record.

可选的,所述装置还包括:Optionally, the device also includes:

第二发送模块,被配置为若所述账户绑定有除了所述无线路由器以外的其他终端,向服务器发送所述组播域名解析系统响应报文,所述服务器用于向所述其他终端发送所述组播域名解析系统响应报文。The second sending module is configured to send the multicast domain name resolution system response message to the server if the account is bound to other terminals except the wireless router, and the server is used to send the multicast domain name resolution system response message to the other terminal The multicast domain name resolution system responds to the message.

可选的,所述第一发送模块,被配置为:根据所述终端的物理地址,向所述终端发送所述组播域名解析系统响应报文。Optionally, the first sending module is configured to: send the multicast domain name resolution system response message to the terminal according to the physical address of the terminal.

根据本公开实施例的第四方面,提供一种同步无线网络配置的装置,应用于终端,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, an apparatus for synchronizing wireless network configuration is provided, which is applied to a terminal, and the apparatus includes:

接收模块,被配置为接收无线路由器发送的组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;The receiving module is configured to receive the multicast domain name resolution system response message sent by the wireless router, and the multicast domain name resolution system response message includes wireless network configuration information;

连接模块,被配置为使用所述无线网络配置信息重新连接该无线路由器。The connection module is configured to use the wireless network configuration information to reconnect to the wireless router.

可选的,所述装置还包括:Optionally, the device also includes:

第一判断模块,被配置为根据所述组播域名解析系统响应报文中的服务资源记录,判断所述组播域名解析系统响应报文的属性是否为预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;The first judging module is configured to judge whether the attribute of the multicast domain name resolution system response message is a preset attribute according to the service resource record in the multicast domain name resolution system response message, and the preset attribute is User datagram protocol-based configuration synchronization service started locally;

第二判断模块,被配置为若所述组播域名解析系统响应报文的属性为预设属性,根据所述组播域名解析系统响应报文中的服务资源记录中的基础服务集标识,判断所述组播域名解析系统响应报文的发送方是否为当前连接的无线路由器;The second judging module is configured to judge according to the basic service set identifier in the service resource record in the multicast domain name resolution system response message if the attribute of the multicast domain name resolution system response message is a preset attribute Whether the sender of the multicast domain name resolution system response message is a currently connected wireless router;

第二获取模块,被配置为若所述组播域名解析系统响应报文的发送方为当前连接的无线路由器,获取所述组播域名解析系统响应报文中的文本记录中的无线网络配置信息。The second obtaining module is configured to obtain the wireless network configuration information in the text record in the multicast domain name resolution system response message if the sender of the multicast domain name resolution system response message is a currently connected wireless router .

可选的,所述第二获取模块还被配置为:使用所述终端绑定的账户解密所述组播域名解析系统响应报文中的文本记录中的无线网络配置信息。Optionally, the second obtaining module is further configured to: use the account bound to the terminal to decrypt the wireless network configuration information in the text record in the multicast domain name resolution system response message.

根据本公开实施例的第五方面,提供一种同步无线网络配置的装置,包括:According to a fifth aspect of an embodiment of the present disclosure, an apparatus for synchronizing wireless network configuration is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取更改后的无线网络配置信息;Obtain the changed wireless network configuration information;

向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。Sending a multicast domain name resolution system response message to the terminal connected to the wireless router, where the multicast domain name resolution system response message includes the modified wireless network configuration information.

根据本公开实施例的第六方面,提供一种同步无线网络配置的装置,包括:According to a sixth aspect of the embodiments of the present disclosure, an apparatus for synchronizing wireless network configuration is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收无线路由器发送的组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;Receiving a multicast domain name resolution system response message sent by a wireless router, wherein the multicast domain name resolution system response message includes wireless network configuration information;

使用所述无线网络配置信息重新连接所述无线路由器。Reconnecting the wireless router using the wireless network configuration information.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

上述技术方案,通过向无线路由器连接的终端发送组播域名解析系统响应报文,向终端提供更改后的无线网络配置信息。本公开实施例中,通过利用标准mDNS协议,最大限度帮助用户在与无线路由器关联的各终端上同步无线网络配置信息。当无线路由器的无线网络配置信息更改后,无须用户在终端中手动输入更改后的信息,终端可自动根据更改后的无线网络配置信息重新连入无线网络,还解决了无输入界面的智能家庭设备更改无线配置困难的问题。In the above technical solution, the modified wireless network configuration information is provided to the terminal by sending a multicast domain name resolution system response message to the terminal connected to the wireless router. In the embodiment of the present disclosure, by using the standard mDNS protocol, the user can maximize the synchronization of wireless network configuration information on each terminal associated with the wireless router. When the wireless network configuration information of the wireless router is changed, the terminal can automatically reconnect to the wireless network according to the changed wireless network configuration information without the user manually inputting the changed information in the terminal, which also solves the problem of smart home devices without an input interface Difficulty changing wireless configuration.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的同步无线网络配置的方法的流程图。Fig. 1 is a flowchart showing a method for synchronizing wireless network configurations according to an exemplary embodiment.

图2是根据另一示例性实施例示出的同步无线网络配置的方法的流程图。Fig. 2 is a flowchart showing a method for synchronizing wireless network configurations according to another exemplary embodiment.

图3是根据另一示例性实施例示出的同步无线网络配置的方法的流程图。Fig. 3 is a flowchart showing a method for synchronizing wireless network configurations according to another exemplary embodiment.

图4是根据另一示例性实施例示出的同步无线网络配置的方法的流程图。Fig. 4 is a flowchart showing a method for synchronizing wireless network configurations according to another exemplary embodiment.

图5是根据另一示例性实施例示出的同步无线网络配置的方法的流程图。Fig. 5 is a flowchart showing a method for synchronizing wireless network configurations according to another exemplary embodiment.

图6是根据一示例性实施例示出的同步无线网络配置的装置的框图。Fig. 6 is a block diagram showing an apparatus for synchronizing wireless network configurations according to an exemplary embodiment.

图7是根据另一示例性实施例示出的同步无线网络配置的装置的框图。Fig. 7 is a block diagram showing an apparatus for synchronizing wireless network configurations according to another exemplary embodiment.

图8是根据另一示例性实施例示出的同步无线网络配置的装置的框图。Fig. 8 is a block diagram of an apparatus for synchronizing wireless network configurations according to another exemplary embodiment.

图9是根据另一示例性实施例示出的同步无线网络配置的装置的框图。Fig. 9 is a block diagram showing an apparatus for synchronizing wireless network configurations according to another exemplary embodiment.

图10是根据另一示例性实施例示出的同步无线网络配置的装置的框图。Fig. 10 is a block diagram showing an apparatus for synchronizing wireless network configurations according to another exemplary embodiment.

图11是根据另一示例性实施例示出的检测装置的框图。Fig. 11 is a block diagram of a detection device according to another exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相相同的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相同的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all the same embodiments as the present disclosure. Rather, they are merely examples of apparatuses and methods with some aspects of the disclosure as recited in the appended claims.

本公开实施例提供的技术方案,涉及无线路由器和连接无线路由器的终端。终端例如可以是手机、电脑、平板电脑、打印机、智能电视、智能冰箱、智能电饭煲等等各种可以接入无线网络的智能设备。The technical solutions provided by the embodiments of the present disclosure relate to a wireless router and a terminal connected to the wireless router. The terminal can be, for example, a mobile phone, a computer, a tablet computer, a printer, a smart TV, a smart refrigerator, a smart rice cooker, and other smart devices that can access a wireless network.

图1是根据一示例性实施例示出的一种同步无线网络配置的方法的流程图。在该实施例中,如图1所示,该同步无线网络配置的方法应用于无线路由器,包括步骤S11至步骤S12:Fig. 1 is a flowchart showing a method for synchronizing wireless network configurations according to an exemplary embodiment. In this embodiment, as shown in FIG. 1, the method for synchronizing wireless network configuration is applied to a wireless router, including steps S11 to S12:

在步骤S11中,获取更改后的无线网络配置信息。In step S11, the modified wireless network configuration information is acquired.

通常,无线路由器具有默认的配置界面,使用浏览器输入无线路由器给出的网页地址,可以进入该配置界面。通过该配置界面,可以设置无线网络配置信息。无线网络配置信息通常可以包括:SSID(Service Set Identifier,服务集标识)、无线网络加密方式、密码等。一旦发现无线网络配置信息被用户更改了,则获取更改后的无线网络配置信息。Usually, the wireless router has a default configuration interface, and the configuration interface can be entered by entering the web page address provided by the wireless router with a browser. Through this configuration interface, you can set wireless network configuration information. The wireless network configuration information may generally include: SSID (Service Set Identifier, service set identifier), wireless network encryption method, password, and the like. Once it is found that the wireless network configuration information has been changed by the user, the changed wireless network configuration information is obtained.

在步骤S12中,向无线路由器连接的终端发送mDNS(multicast Domain NameSystem,组播域名解析系统)响应报文,该报文中包括更改后的无线网络配置信息。In step S12, an mDNS (multicast Domain Name System, multicast domain name resolution system) response message is sent to the terminal connected to the wireless router, and the message includes the modified wireless network configuration information.

在本公开另一实施例中,如图2所示,向无线路由器连接的终端发送mDNS报文,包括步骤S21-步骤S24:In another embodiment of the present disclosure, as shown in FIG. 2, sending an mDNS message to a terminal connected to a wireless router includes steps S21-step S24:

在步骤S21中,创建服务资源记录,该服务资源记录中包括该无线路由器的基础服务集标识以及报文的预设属性,预设属性为本地启动的基于用户数据报协议的配置同步服务。In step S21, a service resource record is created, the service resource record includes the basic service set identifier of the wireless router and the preset attribute of the message, and the preset attribute is a locally started user datagram protocol-based configuration synchronization service.

发送组播域名解析系统响应报文需要先启动mDNS Publication(发布)服务,创建服务资源记录(SRV records),服务资源记录中的字段设置可以例如是:Instance Name(实例名)取射频口bssid.wcfg(basic service set identifier,基础服务集标识,bssid通常为无线路由器的MAC(Media Access Control,介质访问控制)地址),Service type(服务类型)取_udp(User Datagram Protocol,用户数据报协议),Domain(域)取_local(本地)。完整的服务资源记录例如如下:11:22:33:44:55:66.wcfg._udp._local,并且设置ttl(TimeTo Live,生存时间)不超过30s。其中,服务资源记录中包括的11:22:33:44:55:66为该无线路由器的bssid,wcfg._udp._local为报文的预设属性,表示该报文是本地启动的基于UDP的配置同步服务。To send a multicast domain name resolution system response message, you need to start the mDNS Publication (publish) service first, and create service resource records (SRV records). The field settings in the service resource records can be, for example: Instance Name (instance name) takes the bssid of the radio frequency port. wcfg (basic service set identifier, basic service set identifier, bssid is usually the MAC (Media Access Control, Media Access Control) address of the wireless router), Service type (service type) takes _udp (User Datagram Protocol, User Datagram Protocol) , Domain (domain) takes _local (local). The complete service resource record is as follows: 11:22:33:44:55:66.wcfg._udp._local, and the setting ttl (TimeTo Live, time to live) does not exceed 30s. Among them, 11:22:33:44:55:66 included in the service resource record is the bssid of the wireless router, and wcfg._udp._local is the preset attribute of the message, indicating that the message is a locally started UDP-based Configure the synchronization service.

在步骤S22中,创建文本记录,该文本记录中包括无线网络配置信息。In step S22, a text record is created, and the text record includes wireless network configuration information.

创建文本记录(TXT records),将修改后的无线网络配置信息(例如SSID、加密方式、密钥)组成无线配置字符串,放入TXT records,并且设置ttl不超过30s。Create text records (TXT records), compose the modified wireless network configuration information (such as SSID, encryption method, key) into a wireless configuration string, put it into TXT records, and set the ttl to no more than 30s.

在本公开另一实施例中,还可以对文本记录中的无线网络配置信息进行加密。加密时,可以使用无线路由器绑定的账户作为密钥加密该文本记录中的无线网络配置信息。这使得只有与该账户绑定的终端才能解密获得无线网络配置信息。因此,在本公开另一实施例中,在步骤S12向无线路由器连接的终端发送mDNS响应报文之前,还可以先判断无线路由器是否与某一账户绑定。若无线路由器是否与某一账户绑定,则获取该账户作为密钥。In another embodiment of the present disclosure, the wireless network configuration information in the text record may also be encrypted. When encrypting, the wireless network configuration information in the text record can be encrypted using the account bound to the wireless router as a key. This enables only terminals bound to the account to decrypt and obtain wireless network configuration information. Therefore, in another embodiment of the present disclosure, before sending the mDNS response message to the terminal connected to the wireless router in step S12, it may also be determined whether the wireless router is bound to a certain account. If the wireless router is bound to an account, the account is obtained as a key.

在步骤S23中,将该服务资源记录和该文本记录封装为mDNS响应报文。In step S23, the service resource record and the text record are encapsulated into an mDNS response message.

在步骤S24中,向该终端发送该mDNS响应报文。In step S24, the mDNS response message is sent to the terminal.

在向终端发送mDNS响应报文时,可以根据终端的mac地址,向终端发送该报文。即发送mDNS响应报文时,链路层目的地址为各终端的mac地址。各终端的mac地址可以在终端连接上无线路由器时提供给无线路由器。When sending the mDNS response message to the terminal, the message may be sent to the terminal according to the mac address of the terminal. That is, when sending the mDNS response message, the destination address of the link layer is the mac address of each terminal. The mac address of each terminal can be provided to the wireless router when the terminal is connected to the wireless router.

在本公开另一实施例中,无线路由器还可以根据终端连接无线路由器时提供的hostname(主机名)、mac地址等,判断该终端是否为绑定的账户所绑定的除了无线路由器以外的其他终端。若无线路由器绑定的账户绑定有其他终端,如图3所示,该方法还可以包括步骤S13:In another embodiment of the present disclosure, the wireless router can also judge whether the terminal is bound to a bound account other than the wireless router according to the hostname (host name), mac address, etc. provided when the terminal connects to the wireless router. terminal. If the account bound to the wireless router is bound to other terminals, as shown in Figure 3, the method may also include step S13:

在步骤S13中,向服务器发送该mDNS响应报文,服务器用于向该账户绑定的除了无线路由器以外的其他终端发送该mDNS响应报文。In step S13, the mDNS response message is sent to the server, and the server is used to send the mDNS response message to other terminals bound to the account except the wireless router.

即发送该mDNS响应报文时,网络层取如224.0.0.15的服务器的IP地址为目的IP地址。服务器接收到mDNS响应报文后,该向该账户绑定的其他终端发送接收到的mDNS响应报文,该其他终端可以根据该mDNS响应报文更新无线网络配置信息。That is, when sending the mDNS response message, the network layer takes the IP address of the server such as 224.0.0.15 as the destination IP address. After receiving the mDNS response message, the server should send the received mDNS response message to other terminals bound to the account, and the other terminals can update the wireless network configuration information according to the mDNS response message.

上述步骤S12和步骤S13可以同时进行。在向无线路由器连接的终端和服务器发送mDNS响应报文时,应在更改前的无线网络配置信息生成的无线网络断开前尽可能多发送。The above step S12 and step S13 can be performed simultaneously. When sending mDNS response messages to terminals and servers connected to the wireless router, send as many as possible before the wireless network generated by the wireless network configuration information before the change is disconnected.

本公开实施例提供的同步无线网络配置的方法,通过向无线路由器连接的终端发送组播域名解析系统响应报文,向终端提供更改后的无线网络配置信息。本公开实施例中,通过利用标准mDNS协议,最大限度帮助用户在与无线路由器关联的各终端上同步无线网络配置信息。当无线路由器的无线网络配置信息更改后,无须用户在终端中手动输入更改后的信息,终端可自动根据更改后的无线网络配置信息重新连入无线网络,还解决了无输入界面的智能家庭设备更改无线配置困难的问题。The method for synchronizing wireless network configuration provided by the embodiments of the present disclosure provides modified wireless network configuration information to the terminal by sending a multicast domain name resolution system response message to the terminal connected to the wireless router. In the embodiment of the present disclosure, by using the standard mDNS protocol, the user can maximize the synchronization of wireless network configuration information on each terminal associated with the wireless router. When the wireless network configuration information of the wireless router is changed, the terminal can automatically reconnect to the wireless network according to the changed wireless network configuration information without the user manually inputting the changed information in the terminal, which also solves the problem of smart home devices without an input interface Difficulty changing wireless configuration.

图4是根据一示例性实施例示出的一种同步无线网络配置的方法的流程图。在该实施例中,如图4所示,该同步无线网络配置的方法应用于终端,包括步骤S41至步骤S42:Fig. 4 is a flowchart showing a method for synchronizing wireless network configurations according to an exemplary embodiment. In this embodiment, as shown in FIG. 4, the method for synchronizing wireless network configuration is applied to a terminal, including steps S41 to S42:

在步骤S41中,接收无线路由器发送的mDNS响应报文,该报文中包括无线网络配置信息。In step S41, the mDNS response message sent by the wireless router is received, and the message includes wireless network configuration information.

例如,终端的驱动收到目的mac地址为本机的mac地址的mDNS响应报文。For example, the driver of the terminal receives the mDNS response message whose destination mac address is the mac address of the terminal.

在本公开的其他实施例中,如图5所示,接收到mDNS响应报文之后,该方法还包括:In other embodiments of the present disclosure, as shown in FIG. 5, after receiving the mDNS response message, the method further includes:

在步骤S51中,根据该报文中的服务资源记录,判断该报文的属性是否为预设属性。In step S51, according to the service resource record in the message, it is judged whether the attribute of the message is a preset attribute.

例如接收到的报文的SRV records为:11:22:33:44:55:66.wcfg._udp._local;根据该报文中的服务资源记录中的.wcfg._udp._local,确定该报文的属性为本地启动的基于UDP的配置同步服务的预设属性。For example, the SRV records of the received message are: 11:22:33:44:55:66.wcfg._udp._local; according to the .wcfg._udp._local in the service resource record in the message, determine the report The attribute of the file is the preset attribute of the locally started UDP-based configuration synchronization service.

在步骤S52中,若该报文的属性为预设属性,根据报文中的服务资源记录中的bssid,判断该报文的发送方是否为当前连接的无线路由器。In step S52, if the attribute of the message is a preset attribute, it is determined whether the sender of the message is the currently connected wireless router according to the bssid in the service resource record in the message.

例如,终端当前连接的无线路由器的mac地址为11:22:33:44:55:66,接收到的报文中的服务资源记录中的bssid为11:22:33:44:55:66,那么,确定该报文的发送方为当前连接的无线路由器。For example, the mac address of the wireless router to which the terminal is currently connected is 11:22:33:44:55:66, and the bssid in the service resource record in the received message is 11:22:33:44:55:66, Then, it is determined that the sender of the message is the currently connected wireless router.

在步骤S53中,若该报文的发送方为当前连接的无线路由器,获取该报文中的无线网络配置信息。In step S53, if the sender of the message is the currently connected wireless router, the wireless network configuration information in the message is acquired.

在本公开的另一实施例中,当报文中的文本记录中的无线网络配置信息被加密时,可以使用终端绑定的账户解密该报文中的文本记录中的无线网络配置信息。In another embodiment of the present disclosure, when the wireless network configuration information in the text record in the message is encrypted, the account bound to the terminal may be used to decrypt the wireless network configuration information in the text record in the message.

在步骤S42中,使用该无线网络配置信息重新连接该无线路由器。In step S42, the wireless router is reconnected using the wireless network configuration information.

应当在更改前的无线网络配置信息生成的无线网络断开后使用该无线网络配置信息重新连接该无线路由器。The wireless network configuration information should be used to reconnect the wireless router after the wireless network generated by the wireless network configuration information before modification is disconnected.

本公开实施例提供的同步无线网络配置的方法,通过接收无线路由器发送的组播域名解析系统响应报文,来获取更改后的无线网络配置信息。本公开实施例中,通过利用标准mDNS协议,最大限度帮助用户在与无线路由器关联的各终端上同步无线网络配置信息。当无线路由器的无线网络配置信息更改后,无须用户在终端中手动输入更改后的信息,终端可自动根据更改后的无线网络配置信息重新连入无线网络,还解决了无输入界面的智能家庭设备更改无线配置困难的问题。The method for synchronizing wireless network configuration provided by the embodiments of the present disclosure acquires modified wireless network configuration information by receiving a multicast domain name resolution system response message sent by a wireless router. In the embodiment of the present disclosure, by using the standard mDNS protocol, the user can maximize the synchronization of wireless network configuration information on each terminal associated with the wireless router. When the wireless network configuration information of the wireless router is changed, the terminal can automatically reconnect to the wireless network according to the changed wireless network configuration information without the user manually inputting the changed information in the terminal, which also solves the problem of smart home devices without an input interface Difficulty changing wireless configuration.

下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure.

图6是根据一示例性实施例示出的一种同步无线网络配置的装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为终端设备的部分或者全部。如图6所示,该装置包括第一获取模块601和第一发送模块602:Fig. 6 is a block diagram showing an apparatus for synchronizing wireless network configuration according to an exemplary embodiment, and the apparatus may be implemented as part or all of a terminal device through software, hardware or a combination of the two. As shown in Figure 6, the device includes a first acquiring module 601 and a first sending module 602:

第一获取模块601,被配置为获取更改后的无线网络配置信息;The first obtaining module 601 is configured to obtain the modified wireless network configuration information;

第一发送模块602,被配置为向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。The first sending module 602 is configured to send a multicast domain name resolution system response message to a terminal connected to the wireless router, where the multicast domain name resolution system response message includes modified wireless network configuration information.

本公开实施例提供的同步无线网络配置装置,通过向无线路由器连接的终端发送组播域名解析系统响应报文,向终端提供更改后的无线网络配置信息。本公开实施例中,通过利用标准mDNS协议,最大限度帮助用户在与无线路由器关联的各终端上同步无线网络配置信息。当无线路由器的无线网络配置信息更改后,无须用户在终端中手动输入更改后的信息,终端可自动根据更改后的无线网络配置信息重新连入无线网络,还解决了无输入界面的智能家庭设备更改无线配置困难的问题。The synchronous wireless network configuration device provided by the embodiment of the present disclosure provides modified wireless network configuration information to the terminal by sending a multicast domain name resolution system response message to the terminal connected to the wireless router. In the embodiment of the present disclosure, by using the standard mDNS protocol, the user can maximize the synchronization of wireless network configuration information on each terminal associated with the wireless router. When the wireless network configuration information of the wireless router is changed, the terminal can automatically reconnect to the wireless network according to the changed wireless network configuration information without the user manually inputting the changed information in the terminal, which also solves the problem of smart home devices without an input interface Difficulty changing wireless configuration.

如图7所示,在本公开另一实施例中,所述第一发送模块602包括:As shown in FIG. 7, in another embodiment of the present disclosure, the first sending module 602 includes:

第一处理子模块6021,被配置为创建服务资源记录,所述服务资源记录中包括所述无线路由器的基础服务集标识以及所述组播域名解析系统响应报文的预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;The first processing sub-module 6021 is configured to create a service resource record, the service resource record includes the basic service set identifier of the wireless router and the preset attribute of the multicast domain name resolution system response message, the preset Set the property to be a locally started UDP-based configuration synchronization service;

第二处理子模块6022,被配置为创建文本记录,所述文本记录中包括无线网络配置信息;The second processing submodule 6022 is configured to create a text record, where the text record includes wireless network configuration information;

第三处理子模块6023,被配置为将所述服务资源记录和所述文本记录封装为组播域名解析系统响应报文;The third processing sub-module 6023 is configured to encapsulate the service resource record and the text record into a multicast domain name resolution system response message;

发送子模块6024,被配置为向所述终端发送所述组播域名解析系统响应报文。The sending submodule 6024 is configured to send the multicast domain name resolution system response message to the terminal.

在本公开另一实施例中,所述第二处理子模块6022,还被配置为使用所述无线路由器绑定的账户作为密钥加密所述文本记录中的无线网络配置信息。In another embodiment of the present disclosure, the second processing submodule 6022 is further configured to use the account bound to the wireless router as a key to encrypt the wireless network configuration information in the text record.

在本公开另一实施例中,如图8所示,所述装置还包括:In another embodiment of the present disclosure, as shown in FIG. 8, the device further includes:

第二发送模块603,被配置为若所述账户绑定有除了所述无线路由器以外的其他终端,向服务器发送所述组播域名解析系统响应报文,所述服务器用于向所述其他终端发送所述组播域名解析系统响应报文。The second sending module 603 is configured to send the multicast domain name resolution system response message to the server if the account is bound to other terminals except the wireless router, and the server is used to send the multicast domain name resolution system response message to the other terminal Send the multicast domain name resolution system response message.

在本公开另一实施例中,所述第一发送模块602被配置为:根据所述终端的物理地址,向所述终端发送所述组播域名解析系统响应报文。In another embodiment of the present disclosure, the first sending module 602 is configured to: send the multicast domain name resolution system response message to the terminal according to the physical address of the terminal.

图9是根据一示例性实施例示出的一种同步无线网络配置的装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为终端设备的部分或者全部。如图9所示,该装置包括接收模块901和连接模块902:Fig. 9 is a block diagram showing an apparatus for synchronizing wireless network configuration according to an exemplary embodiment, and the apparatus may be implemented as part or all of a terminal device through software, hardware or a combination of the two. As shown in Figure 9, the device includes a receiving module 901 and a connecting module 902:

接收模块901,被配置为接收无线路由器发送的组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;The receiving module 901 is configured to receive a multicast domain name resolution system response message sent by a wireless router, and the multicast domain name resolution system response message includes wireless network configuration information;

连接模块902,被配置为使用所述无线网络配置信息重新连接该无线路由器。The connection module 902 is configured to use the wireless network configuration information to reconnect to the wireless router.

在本公开另一实施例中,如图10所示,所述装置还包括:In another embodiment of the present disclosure, as shown in FIG. 10, the device further includes:

第一判断模块903,被配置为根据所述组播域名解析系统响应报文中的服务资源记录,判断所述组播域名解析系统响应报文的属性是否为预设属性,所述预设属性为本地启动的基于用户数据报协议的配置同步服务;The first judging module 903 is configured to judge whether the attribute of the multicast domain name resolution system response message is a preset attribute according to the service resource record in the multicast domain name resolution system response message, and the preset attribute A user datagram protocol-based configuration synchronization service started locally;

第二判断模块904,被配置为若所述组播域名解析系统响应报文的属性为预设属性,根据所述组播域名解析系统响应报文中的服务资源记录中的基础服务集标识,判断所述组播域名解析系统响应报文的发送方是否为当前连接的无线路由器;The second judging module 904 is configured to, if the attribute of the multicast domain name resolution system response message is a preset attribute, according to the basic service set identifier in the service resource record in the multicast domain name resolution system response message, Judging whether the sender of the multicast domain name resolution system response message is a currently connected wireless router;

第二获取模块905,被配置为若所述组播域名解析系统响应报文的发送方为当前连接的无线路由器,获取所述组播域名解析系统响应报文中的文本记录中的无线网络配置信息。The second obtaining module 905 is configured to obtain the wireless network configuration in the text record in the multicast domain name resolution system response message if the sender of the multicast domain name resolution system response message is the currently connected wireless router information.

所述第二获取模块905还被配置为:使用所述终端绑定的账户解密所述组播域名解析系统响应报文中的文本记录中的无线网络配置信息。The second obtaining module 905 is further configured to: use the account bound to the terminal to decrypt the wireless network configuration information in the text record in the multicast domain name resolution system response message.

本公开还提供一种同步无线网络配置的装置,包括:The present disclosure also provides a device for synchronizing wireless network configuration, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取更改后的无线网络配置信息;Obtain the changed wireless network configuration information;

向无线路由器连接的终端发送组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括更改后的无线网络配置信息。Sending a multicast domain name resolution system response message to the terminal connected to the wireless router, where the multicast domain name resolution system response message includes the modified wireless network configuration information.

本公开还提供一种同步无线网络配置的装置,包括:The present disclosure also provides a device for synchronizing wireless network configuration, including:

接收无线路由器发送的组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;Receiving a multicast domain name resolution system response message sent by a wireless router, wherein the multicast domain name resolution system response message includes wireless network configuration information;

使用所述无线网络配置信息重新连接所述无线路由器。Reconnecting the wireless router using the wireless network configuration information.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图11是根据一示例性实施例示出的一种用于同步无线网络配置的装置1000的框图。例如,装置1000可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 11 is a block diagram of an apparatus 1000 for synchronizing wireless network configurations according to an exemplary embodiment. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图11,装置1000可以包括以下一个或多个组件:处理组件1002,存储器1004,电源组件1006,多媒体组件1008,音频组件1010,输入/输出(I/O)的接口1012,传感器组件1014,以及通信组件1016。11, device 1000 may include one or more of the following components: processing component 1002, memory 1004, power supply component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communication component 1016.

处理组件1002通常控制装置1000的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1002可以包括一个或多个处理器1020来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1002可以包括一个或多个模块,便于处理组件1002和其他组件之间的交互。例如,处理组件1002可以包括多媒体模块,以方便多媒体组件1008和处理组件1002之间的交互。The processing component 1002 generally controls the overall operations of the device 1000, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002 .

存储器1004被配置为存储各种类型的数据以支持在装置1000的操作。这些数据的示例包括用于在装置1000上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1004 is configured to store various types of data to support operations at the device 1000 . Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1006为装置1000的各种组件提供电力。电源组件1006可以包括电源管理系统,一个或多个电源,及其他与为装置1000生成、管理和分配电力相关联的组件。The power supply component 1006 provides power to various components of the device 1000 . Power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1000 .

多媒体组件1008包括在装置1000和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1008包括一个前置摄像头和/或后置摄像头。当装置1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1008 includes a front camera and/or a rear camera. When the device 1000 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1010被配置为输出和/或输入音频信号。例如,音频组件1010包括一个麦克风(MIC),当装置1000处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1004或经由通信组件1016发送。在一些实施例中,音频组件1010还包括一个扬声器,用于输出音频信号。The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a microphone (MIC), which is configured to receive external audio signals when the device 1000 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1004 or sent via communication component 1016 . In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

I/O接口1012为处理组件1002和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1014包括一个或多个传感器,用于为装置1000提供各个方面的状态评估。例如,传感器组件1014可以检测到装置1000的打开/关闭状态,组件的相对定位,例如组件为装置1000的显示器和小键盘,传感器组件1014还可以检测装置1000或装置1000一个组件的位置改变,用户与装置1000接触的存在或不存在,装置1000方位或加速/减速和装置1000的温度变化。传感器组件1014可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1014还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1014还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1014 includes one or more sensors for providing status assessments of various aspects of device 1000 . For example, the sensor component 1014 can detect the open/closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, the sensor component 1014 can also detect a change in the position of the device 1000 or a component of the device 1000, the user The presence or absence of contact with the device 1000, the device 1000 orientation or acceleration/deceleration and the temperature change of the device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1016被配置为便于装置1000和其他设备之间有线或无线方式的通信。装置1000可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1016经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1016还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1016 is configured to facilitate wired or wireless communication between the apparatus 1000 and other devices. The device 1000 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1000可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1000 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1004,上述指令可由装置1000的处理器1020执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1004 including instructions, which can be executed by the processor 1020 of the device 1000 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行一种同步无线网络配置的方法,方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the terminal device, the terminal device can execute a method for synchronizing wireless network configuration, the method comprising:

接收无线路由器发送的组播域名解析系统响应报文,所述组播域名解析系统响应报文中包括无线网络配置信息;Receiving a multicast domain name resolution system response message sent by a wireless router, wherein the multicast domain name resolution system response message includes wireless network configuration information;

使用所述无线网络配置信息重新连接所述无线路由器。Reconnecting the wireless router using the wireless network configuration information.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. a kind of method of synchronous radio network configuration, is applied to wireless router, it is characterised in that methods described includes:
Obtain the radio network configuration information after change;
Multicast domain name analysis system response message is sent to the terminal of wireless router connection, the multicast domain name analysis system rings Message is answered to include the radio network configuration information after change.
2. method according to claim 1, it is characterised in that the terminal to wireless router connection sends multicast domain Name resolution system response message, including:
Create Service Source record, Service Source record include the Basic Service Set Identification of the wireless router and The preset attribute of the multicast domain name analysis system response message, the preset attribute is for local boot based on user datagram The configuration synchronous service of agreement;
Text entry is created, the text entry includes radio network configuration information;
Service Source record and the text entry are encapsulated as multicast domain name analysis system response message;
The multicast domain name analysis system response message is sent to the terminal.
3. method according to claim 2, it is characterised in that the establishment text entry includes:
The account for using the wireless router to bind encrypts the radio network configuration information in the text entry as key.
4. method according to claim 3, it is characterised in that methods described also includes:
If the account binding has the other-end in addition to the wireless router, the multicast domain name is sent to server Resolution system response message, the server is used for sending the multicast domain name analysis system response report to the other-end Text.
5. method according to claim 1, it is characterised in that described send multicast domain name analysis system to the terminal and ring Message is answered, including:
According to the physical address of the terminal, the multicast domain name analysis system response message is sent to the terminal.
6. a kind of method of synchronous radio network configuration, is applied to terminal, it is characterised in that methods described includes:
Multicast domain name analysis system response message is received, the multicast domain name analysis system response message includes that wireless network is joined Confidence ceases;
Wireless router is reconnected using the radio network configuration information.
7. method according to claim 6, it is characterised in that the reception multicast domain name analysis system response message it Afterwards, methods described also includes:
According to the Service Source record in the multicast domain name analysis system response message, the multicast domain name analysis system is judged Whether the attribute of response message is preset attribute, and the preset attribute is the configuration based on UDP of local boot Synchronous service;
If the attribute of the multicast domain name analysis system response message is to ring preset attribute, according to the multicast domain name analysis system Basic Service Set Identification in answering the Service Source in message to record, judges sending out for the multicast domain name analysis system response message Whether the side of sending is the current wireless router for connecting;
If the sender of the multicast domain name analysis system response message is the wireless router of current connection, the multicast is obtained Radio network configuration information in domain name analysis system response message.
8. method according to claim 6, it is characterised in that methods described also includes:
The nothing in the text entry in the multicast domain name analysis system response message is deciphered using the account of the terminal binding Line network configuration information.
9. a kind of device of synchronous radio network configuration, is applied to wireless router, it is characterised in that described device includes:
First acquisition module, is configured to the radio network configuration information after obtaining change;
First sending module, is configured to send multicast domain name analysis system response message to the terminal of wireless router connection, The multicast domain name analysis system response message includes the radio network configuration information after change.
10. device according to claim 9, it is characterised in that first sending module includes:
First processes submodule, is configured to create Service Source record, and the Service Source record includes the no circuit By the Basic Service Set Identification of device and the preset attribute of the multicast domain name analysis system response message, the preset attribute is The configuration synchronous service based on UDP of local boot;
Second processing submodule, is configured to create text entry, and the text entry includes radio network configuration information;
3rd processes submodule, is configured to for Service Source record and the text entry to be encapsulated as multicast domain name mapping System response message;
Sending submodule, is configured to send the multicast domain name analysis system response message to the terminal.
11. devices according to claim 10, it is characterised in that the second processing submodule, are also configured to use The account of the wireless router binding encrypts the radio network configuration information in the text entry as key.
12. devices according to claim 11, it is characterised in that described device also includes:
Second sending module, if being configured to the account to bind the other-end having in addition to the wireless router, to Server sends the multicast domain name analysis system response message, and the server is used for sending described group to the other-end Broadcast domain name analysis system response message.
13. devices according to claim 9, it is characterised in that first sending module, are configured to:According to described The physical address of terminal, sends the multicast domain name analysis system response message to the terminal.
A kind of 14. devices of synchronous radio network configuration, are applied to terminal, it is characterised in that described device includes:
Receiver module, is configured to receive the multicast domain name analysis system response message of wireless router transmission, the multicast domain Name resolution system response message includes radio network configuration information;
Link block, is configured with the radio network configuration information and reconnects the wireless router.
15. devices according to claim 14, it is characterised in that described device also includes:
First judge module, is configured to, according to the Service Source record in the multicast domain name analysis system response message, sentence Whether the attribute of the disconnected multicast domain name analysis system response message is preset attribute, and the preset attribute is the base of local boot Configuration synchronous service in UDP;
Second judge module, if the attribute for being configured to the multicast domain name analysis system response message is preset attribute, according to The Basic Service Set Identification in Service Source record in the multicast domain name analysis system response message, judges the multicast domain Whether the sender of name resolution system response message is the current wireless router for connecting;
Second acquisition module, if be configured to the nothing of the sender for current connection of the multicast domain name analysis system response message Line router, obtains the radio network configuration information in the text entry in the multicast domain name analysis system response message.
16. devices according to claim 14, it is characterised in that second acquisition module is additionally configured to:Using institute The account for stating terminal binding deciphers the radio network configuration in the text entry in the multicast domain name analysis system response message Information.
17. a kind of devices of synchronous radio network configuration, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Obtain the radio network configuration information after change;
Multicast domain name analysis system response message is sent to the terminal of wireless router connection, the multicast domain name analysis system rings Message is answered to include the radio network configuration information after change.
18. a kind of devices of synchronous radio network configuration, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Receive the multicast domain name analysis system response message of wireless router transmission, the multicast domain name analysis system response message Include radio network configuration information;
The wireless router is reconnected using the radio network configuration information.
CN201611090166.2A 2016-11-30 2016-11-30 Method and device for synchronizing wireless network configuration Active CN106452924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611090166.2A CN106452924B (en) 2016-11-30 2016-11-30 Method and device for synchronizing wireless network configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611090166.2A CN106452924B (en) 2016-11-30 2016-11-30 Method and device for synchronizing wireless network configuration

Publications (2)

Publication Number Publication Date
CN106452924A true CN106452924A (en) 2017-02-22
CN106452924B CN106452924B (en) 2019-11-15

Family

ID=58223088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611090166.2A Active CN106452924B (en) 2016-11-30 2016-11-30 Method and device for synchronizing wireless network configuration

Country Status (1)

Country Link
CN (1) CN106452924B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874573A (en) * 2017-05-16 2018-11-23 苹果公司 Techniques for repairing an inoperable assistive device using another device
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity
CN109981819A (en) * 2019-03-22 2019-07-05 新华三技术有限公司合肥分公司 MDNS message processing method, device and group network system
WO2019153936A1 (en) * 2018-02-09 2019-08-15 中国移动通信有限公司研究院 Home networking parameter configuration method, home gateway, and home networking terminal
CN111327672A (en) * 2019-12-18 2020-06-23 珠海奔图电子有限公司 Data transmission control method, control device and mobile terminal
CN113015160A (en) * 2019-12-04 2021-06-22 阿里巴巴集团控股有限公司 Network distribution method and device for Internet of things equipment, electronic equipment and computer readable medium
CN113067737A (en) * 2021-03-30 2021-07-02 重庆邮电大学 Time-sensitive network configuration management system and method
CN113068184A (en) * 2019-12-12 2021-07-02 天翼智慧家庭科技有限公司 System and method for maintaining wireless connection between client and wireless network
CN114268543A (en) * 2021-12-21 2022-04-01 上海市共进通信技术有限公司 Method, device, processor and computer readable storage thereof for realizing configuration synchronization between paired network terminal devices
CN120034430A (en) * 2025-04-23 2025-05-23 天翼云科技有限公司 Network configuration method, device, computer equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212368A (en) * 2006-12-30 2008-07-02 深圳Tcl新技术有限公司 Method and system for wireless network configuration
CN102984691A (en) * 2012-11-09 2013-03-20 北京小米科技有限责任公司 Method and terminal and server and system and device of synchronous wireless network parameters
CN103220182A (en) * 2013-04-28 2013-07-24 烽火通信科技股份有限公司 System and method for managing residential gateway by using smart terminal
CN103619051A (en) * 2013-12-16 2014-03-05 深圳市智志高新科技开发有限公司 System and method for dynamically controlling routing rule of gateway equipment
US8929349B2 (en) * 2010-09-07 2015-01-06 Samsung Electronics Co., Ltd. Apparatus and method for determining validity of WiFi connection in wireless communication system
CN104703176A (en) * 2015-03-18 2015-06-10 北京联盛德微电子有限责任公司 Configuration method of wireless network, intelligent terminal and wireless network equipment
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN105873106A (en) * 2016-04-29 2016-08-17 北京小米移动软件有限公司 Processing method and device for wireless network connection and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212368A (en) * 2006-12-30 2008-07-02 深圳Tcl新技术有限公司 Method and system for wireless network configuration
US8929349B2 (en) * 2010-09-07 2015-01-06 Samsung Electronics Co., Ltd. Apparatus and method for determining validity of WiFi connection in wireless communication system
CN102984691A (en) * 2012-11-09 2013-03-20 北京小米科技有限责任公司 Method and terminal and server and system and device of synchronous wireless network parameters
CN103220182A (en) * 2013-04-28 2013-07-24 烽火通信科技股份有限公司 System and method for managing residential gateway by using smart terminal
CN103619051A (en) * 2013-12-16 2014-03-05 深圳市智志高新科技开发有限公司 System and method for dynamically controlling routing rule of gateway equipment
CN104703176A (en) * 2015-03-18 2015-06-10 北京联盛德微电子有限责任公司 Configuration method of wireless network, intelligent terminal and wireless network equipment
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN105873106A (en) * 2016-04-29 2016-08-17 北京小米移动软件有限公司 Processing method and device for wireless network connection and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)凯文R.福尔,(美)W.理查德•史蒂文斯: "《TCP/IP详解》", 30 June 2016, 机械工业出版社 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874573B (en) * 2017-05-16 2022-04-05 苹果公司 Techniques for repairing inoperable secondary device using another device
CN108874573A (en) * 2017-05-16 2018-11-23 苹果公司 Techniques for repairing an inoperable assistive device using another device
US11461165B2 (en) 2017-05-16 2022-10-04 Apple Inc. Techniques for repairing an inoperable auxiliary device using another device
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity
US12068919B2 (en) 2017-06-22 2024-08-20 Texas Instruments Incorporated Accelerated network reconnect using previous connection parameters
US11539589B2 (en) 2017-06-22 2022-12-27 Texas Instruments Incorporated Accelerated network reconnect using previous connection parameters
CN109121183B (en) * 2017-06-22 2022-07-29 德州仪器公司 Accelerated network reconnect using previous connection parameters
CN110139398A (en) * 2018-02-09 2019-08-16 中国移动通信有限公司研究院 Home intranet method for parameter configuration, home gateway and home intranet terminal
WO2019153936A1 (en) * 2018-02-09 2019-08-15 中国移动通信有限公司研究院 Home networking parameter configuration method, home gateway, and home networking terminal
CN109981819A (en) * 2019-03-22 2019-07-05 新华三技术有限公司合肥分公司 MDNS message processing method, device and group network system
CN113015160A (en) * 2019-12-04 2021-06-22 阿里巴巴集团控股有限公司 Network distribution method and device for Internet of things equipment, electronic equipment and computer readable medium
CN113015160B (en) * 2019-12-04 2023-09-22 阿里巴巴集团控股有限公司 Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium
CN113068184A (en) * 2019-12-12 2021-07-02 天翼智慧家庭科技有限公司 System and method for maintaining wireless connection between client and wireless network
CN111327672A (en) * 2019-12-18 2020-06-23 珠海奔图电子有限公司 Data transmission control method, control device and mobile terminal
CN113067737A (en) * 2021-03-30 2021-07-02 重庆邮电大学 Time-sensitive network configuration management system and method
CN113067737B (en) * 2021-03-30 2022-07-01 重庆邮电大学 A time-sensitive network configuration management system and method
CN114268543A (en) * 2021-12-21 2022-04-01 上海市共进通信技术有限公司 Method, device, processor and computer readable storage thereof for realizing configuration synchronization between paired network terminal devices
CN120034430A (en) * 2025-04-23 2025-05-23 天翼云科技有限公司 Network configuration method, device, computer equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106452924B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN106452924B (en) Method and device for synchronizing wireless network configuration
CN110995665B (en) Network distribution method and device, electronic equipment and storage medium
CN104993981B (en) Control the method and device of equipment access
RU2644509C2 (en) Methods and apparatuses for linking with the device
JP6383109B2 (en) Network connection method, network connection device, terminal, communication device, network connection system, program, and recording medium
CN104378801A (en) Method and device for accessing wireless network
JP6404486B2 (en) Connection establishment method, apparatus, program, and recording medium
CN105682253A (en) Method, device, terminal and computer-readable storage medium for establishing communication
CN104684106B (en) The method and device of network connection
CN105744595B (en) Access method, apparatus, system and the storage medium of WLAN
CN106507437B (en) Intelligent equipment networking method and device
CN106488450B (en) Connect the method and device of wireless network
CN110891299A (en) Network distribution method and device, electronic equipment and storage medium
CN108702607A (en) A multi-device wireless connection method and device
CN105472698A (en) Wireless network access method and device
JP2018509009A (en) Routing information transfer method, apparatus, program, and recording medium
WO2017166761A1 (en) Method and device for sharing media data between terminals
US20160227407A1 (en) Method and Apparatus for Accessing Network
US10673611B2 (en) Data transmission method, device, and system
CN112383532B (en) Device networking method and device, electronic device, storage medium
CN106790743A (en) Information transferring method, device and mobile terminal
WO2022027161A1 (en) Service slice activation method and service slice activation apparatus, and storage medium
CN106535194B (en) Screen content sharing method, apparatus and system
CN106550482A (en) Communication connection method for building up and device, electronic equipment
CN106533848B (en) Data acquisition method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant