WO2021077930A1 - Automatic networking method, apparatus, device, and readable medium - Google Patents

Automatic networking method, apparatus, device, and readable medium Download PDF

Info

Publication number
WO2021077930A1
WO2021077930A1 PCT/CN2020/114339 CN2020114339W WO2021077930A1 WO 2021077930 A1 WO2021077930 A1 WO 2021077930A1 CN 2020114339 W CN2020114339 W CN 2020114339W WO 2021077930 A1 WO2021077930 A1 WO 2021077930A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless
router
connection
soft
wireless router
Prior art date
Application number
PCT/CN2020/114339
Other languages
French (fr)
Chinese (zh)
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 WO2021077930A1 publication Critical patent/WO2021077930A1/en

Links

Images

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present disclosure relates to the technical field of equipment distribution network, and in particular to an automatic networking method, device, equipment and readable medium.
  • the device needs to be connected to the Internet through a wireless gateway or wireless router.
  • the first time the device connects to the wireless gateway and wireless router is called wireless distribution network.
  • How to optimize the user's network configuration operation and ensure the correct connection between the device and the wireless gateway or wireless router is a smart home and object.
  • the present disclosure provides an automatic networking method, the automatic networking method includes:
  • the method before the step of sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, the method further includes:
  • connection data packet is obtained by encrypting the login password and the router identifier of the wireless router according to the preset encryption rule.
  • the method further includes:
  • the AP password obtained by the analysis is the same as the AP password preset by itself, it is determined that there are wireless devices not connected to the wireless router nearby.
  • it also includes:
  • the wireless router If it does not establish a first wireless connection with the wireless router, broadcast a soft AP signal to the surroundings, and the soft AP signal at least includes: information about not being connected to the wireless router and an AP password;
  • connection data packet sent by the other wireless device is received, the third wireless connection is disconnected;
  • establishing a fourth wireless connection with the wireless router according to the received connection data packet includes:
  • the method further includes:
  • connection is dropped after the wireless connection is successfully established with the wireless router, receiving the modified login password and router ID of the wireless router input by the user;
  • the first MAC address is used when establishing a wireless connection with the wireless router, and the second MAC address is used when establishing a wireless connection with other wireless devices.
  • an automatic networking device including:
  • the detection module is set to detect whether it has established a first wireless connection with the wireless router
  • the first wireless connection establishment module is configured to scan the surrounding soft wireless access point AP signals if it has established a first wireless connection with the wireless router;
  • the second wireless connection establishment module is configured to establish a second wireless connection with the wireless device through the soft AP if it is determined that there is a wireless device that is not connected to the wireless router in the surroundings according to the soft AP signal;
  • the sending module is configured to send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
  • the present disclosure provides an automatic networking device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the foregoing when the computer program is executed. The steps of the method of any one of the first aspect.
  • the present disclosure provides a computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to execute any of the methods described in the first aspect.
  • the present disclosure detects whether it has established a first wireless connection with the wireless router; if it has established the first wireless connection with the wireless router, scan the surroundings The soft wireless access point AP signal; if it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP;
  • the wireless device sends a connection data packet for connecting to the wireless router to realize the purpose of a device connected to the wireless router sending a connection data packet for connecting to the wireless router to a wireless device not connected to the wireless router ,
  • the router configuration information such as the network provider changes
  • the login password is changed, there is no need for the user to reconfigure the network for the network device to be configured, reducing the user's workload.
  • FIG. 1 is a flowchart of an automatic networking method provided by an embodiment of the disclosure
  • FIG. 2 is a flowchart of another automatic networking method provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of the method of step S104 provided by an embodiment of the disclosure.
  • FIG. 5 is a flowchart of a method of step S404 provided by an embodiment of the disclosure.
  • FIG. 6 is a flowchart of another automatic networking method provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a wireless device transmission method provided by an embodiment of the disclosure.
  • FIG. 8 is a schematic diagram of an automatic networking device module provided by an embodiment of the disclosure.
  • 01-Detection module 02-First wireless connection establishment module; 03-Second wireless connection establishment module; 04-Send module.
  • an embodiment of the present disclosure provides an automatic networking method.
  • the automatic networking method includes:
  • Step S101 It is detected whether the first wireless connection has been established with the wireless router.
  • Step S102 if the first wireless connection has been established with the wireless router, scan the surrounding soft wireless access point AP signals.
  • the device first checks whether it is connected to the wireless router. If it is connected to the wireless router, it means that the device has a login password, which is used to connect to the wireless router. If the device itself is connected to the wireless router The first wireless connection is established, and the surrounding soft wireless access point AP signals are scanned to search for wireless devices that are not connected to the wireless router. The soft wireless access point AP signals are driven by the wireless of the device.
  • the configuration information transmitted by the module can be carried in the soft AP signal, and the specific configuration information content can be determined according to the actual situation, which is not specifically limited in the embodiment of the present disclosure.
  • Step S103 If it is determined according to the soft AP signal that there is a wireless device around which is not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP.
  • a second wireless connection is established with the wireless device through the soft AP, where the second wireless connection is established.
  • the identification for passing the verification can be pre-stored in the device itself and the wireless device.
  • the embodiments of the present disclosure also provide an implementation manner. As shown in FIG. 2, the method further includes:
  • Step S201 Analyze the scanned soft AP signal.
  • step S202 if the information that is not connected to the wireless router is obtained by analysis, and the AP password obtained by the analysis is the same as the preset AP password, it is determined that there are wireless devices not connected to the wireless router around.
  • the AP password is pre-stored in the device itself and the wireless device that is not connected to the wireless router.
  • the device scans the soft AP signal sent by the wireless device, it parses the soft AP signal.
  • the routing connection information indicates that the wireless device sending the soft AP signal has not established a connection with the wireless router, and then analyzes the soft AP signal to obtain the AP password. If the AP password obtained by the analysis is the same as the AP password stored by itself, the wireless device is equipped with the device With connection authority, the device can determine that there are wireless devices around which are not connected to the wireless router.
  • Step S104 Send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
  • the device has established a connection with the wireless router, by searching for nearby wireless devices that have not been connected with the wireless router, and by establishing a second wireless connection with the wireless device, sending to the wireless device for connecting to the wireless router
  • the login password of achieves the purpose of automatically distributing the network to the wireless device, and reduces the complicated operation of the user to reconfigure the network.
  • step S104 before sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, as shown in FIG. 3, the method further includes:
  • Step S301 Obtain the login password and the router identifier of the wireless router.
  • Step S302 Encrypt the login password and router identifier of the wireless router according to a preset encryption rule to obtain the connection data packet.
  • the device if the device has been connected to a wireless router, and a wireless device that is not connected to the wireless router is found around, and a second wireless connection has been established with the wireless device, in order to ensure data transmission Security.
  • the device Before the device sends the connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, it can also use the preset encryption rules to encrypt the login password and router ID of the wireless router.
  • the corresponding decryption rule is stored, so that when the wireless device receives the connection data packet through the second wireless connection, the decryption rule is used to decrypt the connection data packet.
  • an automatic networking method including:
  • Step S401 If the first wireless connection is not established with the wireless router, the soft AP signal is broadcast to the surroundings.
  • the soft AP signal includes at least: information about not being connected to the wireless router and AP password.
  • Step S402 Establish a third wireless connection with another wireless device through the soft AP, and the other wireless device has established a connection with the wireless router.
  • Step S403 If the connection data packet sent by the other wireless device is received, the third wireless connection is disconnected.
  • Step S404 Establish a fourth wireless connection with the wireless router according to the received connection data packet.
  • Step S405 Perform a step of scanning the surrounding soft wireless access point AP signals.
  • the device if it itself does not establish a first wireless connection with the wireless router, it broadcasts a soft AP signal to the surroundings within its signal coverage, where the soft AP signal at least contains: information about not being connected to the wireless router And AP password, used for other wireless devices connected to the wireless router when scanning the surrounding soft AP signal, identify the device that is not connected to the wireless router, and then obtain the connection wireless path from other wireless devices through the third wireless connection And disconnect the connection with the wireless device that sent the connection data packet, and use the connection data packet to establish a fourth wireless connection with the wireless router.
  • the device itself has established a connection with the wireless router, and step S102 is executed again. , Scan the surrounding devices that are not connected to the wireless router to achieve the purpose of disseminating the login password and router ID to the authentication device.
  • step S404 establishing a fourth wireless connection with the wireless router according to the received connection data packet, as shown in FIG. 5, includes:
  • Step S501 Decrypt the connection data packet according to a preset decryption rule to obtain a login password and a router identifier.
  • Step S502 using the login password and the router identifier to establish a fourth wireless connection with the wireless router.
  • the wireless device that is not connected to the wireless router receives the connection data packet sent by the other wireless device after establishing a third wireless connection with the other wireless device, where the other wireless device has established a connection with the wireless router,
  • Embodiments of the present disclosure pre-store encryption rules and decryption rules in the wireless device to prevent unauthorized wireless devices Connect, and obtain the connection data package, to ensure the user's information security.
  • the method further includes:
  • Step S601 If the connection is dropped after the wireless connection is successfully established with the wireless router, receive the modified login password and router identifier of the wireless router input by the user.
  • Step S602 Establish a wireless connection with the wireless router according to the login password and the router identifier.
  • Step S603 Generate a new connection data packet according to the modified login password of the wireless router and the router identifier.
  • Step S604 Perform a step of scanning the surrounding soft wireless access point AP signals.
  • a scenario where a user changes the login password of the router is provided.
  • the user switches the login password of the wireless router only one of the wireless devices connected to the wireless router needs to reconfigure the network, and the user can enter the modified Login password and router ID, connect to the originally connected router or replace and connect to a new router. If the wireless device establishes a connection with the wireless router corresponding to the router ID through the login password, the modified wireless router can be changed according to the pre-encrypted rules.
  • the login password and router ID generate new connection data packets, and scan the soft AP signals from surrounding wireless devices that are not connected to the target router, so as to achieve the purpose of automatically disseminating the correct login password and router ID, and avoid the need for users to change the login password.
  • Configuring the network for the wireless devices one by one solves the problem of the user's heavy workload of re-distributing the network.
  • the subsequent specific implementation process can refer to the above-mentioned embodiment, which will not be repeated here.
  • the wireless device contains at least two MAC addresses.
  • the MAC address is a physical address used to confirm the location of the network device. If a device has one or more network cards, each network card needs to be connected. There will be a unique MAC address.
  • the first MAC address is used when establishing a wireless connection with the wireless router to ensure the stability of the connection between the wireless device itself and the wireless router.
  • the first MAC address can also be used As a client that scans surrounding soft AP signals, it uses the second MAC address when establishing a wireless connection with other wireless devices, and can use the second MAC address as a server for sending soft AP signals.
  • the user has a wireless device 1 that has established a connection with a wireless router, and a wireless device 2 and a wireless device 3 that have not established a connection with a wireless router.
  • the wireless device 1 can use The first MAC address of the wireless device is used as the driver to establish a connection with the wireless router, and the second MAC address of the wireless device 1 is used as the sender of the soft AP signal, or used to connect to the soft AP signal sent by the wireless device 2, and the login password and The router ID is sent to the wireless device 2.
  • the wireless device 2 uses the first MAC address of the wireless device 2 as the driver to connect to the wireless router, uses the login password and the wireless route corresponding to the router ID to establish a connection, and then passes through the second MAC address of the wireless device 2
  • the MAC address is used as a client to scan and discover the soft AP signal of the wireless device 3 or send a soft AP signal for the wireless device 3 to connect, and the wireless device 3 repeats the actions of the wireless device 2 to complete the propagation of the correct login password and router ID.
  • the embodiments of the present disclosure also provide an automatic networking device. It should be noted that the automatic networking device of the embodiments of the present disclosure can be used to execute the automatic networking method provided by the embodiments of the present disclosure.
  • the automatic networking device provided by the embodiment of the present disclosure is introduced below.
  • an automatic networking device is also provided, as shown in FIG. 8, including:
  • the detection module 01 is configured to detect whether it has established a first wireless connection with the wireless router;
  • the first wireless connection establishment module 02 is configured to scan the surrounding soft wireless access point AP signals if it has established a first wireless connection with the wireless router;
  • the second wireless connection establishment module 03 is configured to establish a second wireless connection with the wireless device through the soft AP if it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router;
  • the sending module 04 is configured to send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
  • an automatic networking device including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor executes the The computer program implements the steps of the method described in any one of the above embodiments.
  • a computer-readable medium having non-volatile program code executable by a processor, and the program code causes the processor to execute any of the above-mentioned embodiments. ⁇ method.

Abstract

The present application relates to an automatic networking method, an apparatus, a device, and a readable medium. The present application comprises: detecting whether a device has established a first wireless connection with a wireless router; if the device has established the first wireless connection with the wireless router, scanning a surrounding soft wireless access point (AP) signal; if determined according to the soft AP signal that a wireless device not connected to the wireless router is present, using a soft AP to establish a second wireless connection with the wireless device; and using the second wireless connection to send to the wireless device a connection data packet used for connecting the wireless router. Thus, the goal of a device that is connected to a wireless router sending to a wireless device not connected to the wireless router a connection data packet used for connecting the wireless router is achieved; and when router configuration information (such as network supplier changing) or a login password changes, a user need not reconfigure a network for a network device to be distributed, thus reducing the workload of the user.

Description

一种自动联网方法、装置、设备以及可读介质Automatic networking method, device, equipment and readable medium
本公开要求于2019年10月22日提交中国专利局、申请号为201911007986.4、发明名称“一种自动联网方法、装置、设备以及可读介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 22, 2019, the application number is 201911007986.4, and the title of the invention "an automatic networking method, device, equipment and readable medium", the entire content of which is incorporated by reference Incorporated in this disclosure.
技术领域Technical field
本公开涉及设备配网技术领域,尤其涉及一种自动联网方法、装置、设备以及可读介质。The present disclosure relates to the technical field of equipment distribution network, and in particular to an automatic networking method, device, equipment and readable medium.
背景技术Background technique
现如今我们的生活中智能终端和物联网行业发展越来越成熟,我们的生活中增加了很多可以连接互联网的设备。设备与互联网连接需要通过无线网关或者无线路由器,设备首次接入无线网关和无线路由器称为无线配网,如何优化用户配网操作及保证设备端与无线网关或无线路由器正确连接是智能家居和物联网行业一个重要研究课题。Nowadays, the development of smart terminals and the Internet of Things industry in our lives has become more and more mature, and many devices that can connect to the Internet have been added to our lives. The device needs to be connected to the Internet through a wireless gateway or wireless router. The first time the device connects to the wireless gateway and wireless router is called wireless distribution network. How to optimize the user's network configuration operation and ensure the correct connection between the device and the wireless gateway or wireless router is a smart home and object. An important research topic in the networking industry.
目前,用户家中有多个设备通过无线路由器联网,当路由器配置信息(例如网络供应商变更)或者登录密码改变时,用户需要重新给设备配置网络,操作繁琐且工作量大。Currently, multiple devices in the user's home are connected to the Internet through a wireless router. When the router configuration information (such as the network provider changes) or the login password changes, the user needs to reconfigure the network for the device, which is cumbersome and heavy workload.
发明内容Summary of the invention
为了解决上述用户家中有多个设备通过无线路由器联网,当路由器配置信息(例如网络供应商变更)或者登录密码改变时,用户需要重新给设备配置网络,操作繁琐且工作量大的技术问题,本公开提供了一种。In order to solve the above-mentioned technical problem that multiple devices in the user’s home are connected to the Internet through a wireless router, when the router configuration information (such as the network provider changes) or the login password changes, the user needs to reconfigure the network for the device, the operation is cumbersome and the workload is heavy. One is publicly available.
第一方面,本公开提供了一种自动联网方法,所述自动联网方法 包括:In the first aspect, the present disclosure provides an automatic networking method, the automatic networking method includes:
检测自身是否已与无线路由器建立第一无线连接;Detect whether it has established a first wireless connection with the wireless router;
若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;If it has established the first wireless connection with the wireless router, scan the surrounding soft wireless access point AP signals;
若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;If it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP;
通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。Sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
可选地,通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包的步骤之前,还包括:Optionally, before the step of sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, the method further includes:
获取所述无线路由器的登录密码和路由器标识;Acquiring the login password and router identifier of the wireless router;
按照预设加密规则对无线路由器的登录密码和路由器标识进行加密得到所述连接数据包。The connection data packet is obtained by encrypting the login password and the router identifier of the wireless router according to the preset encryption rule.
可选地,所述方法还包括:Optionally, the method further includes:
解析扫描到的所述软AP信号;Parsing the scanned soft AP signal;
若解析得到未与无线路由器连接的信息,且解析得到的AP密码与自身预设的AP密码相同,则确定周围存在未连接所述无线路由器的无线设备。If the information that is not connected to the wireless router is obtained by analysis, and the AP password obtained by the analysis is the same as the AP password preset by itself, it is determined that there are wireless devices not connected to the wireless router nearby.
可选地,还包括:Optionally, it also includes:
若自身未与所述无线路由器建立第一无线连接,向周围广播软AP信号,所述软AP信号中至少包含:未与无线路由器连接的信息和AP密码;If it does not establish a first wireless connection with the wireless router, broadcast a soft AP signal to the surroundings, and the soft AP signal at least includes: information about not being connected to the wireless router and an AP password;
通过所述软AP与其它无线设备建立第三无线连接,该其它无线设 备已与所述无线路由器建立连接;Establishing a third wireless connection with another wireless device through the soft AP, and the other wireless device has established a connection with the wireless router;
若接收到该其它无线设备发送的连接数据包,断开所述第三无线连接;If the connection data packet sent by the other wireless device is received, the third wireless connection is disconnected;
根据接收到的所述连接数据包,与所述无线路由器建立第四无线连接;Establishing a fourth wireless connection with the wireless router according to the received connection data packet;
执行扫描周围的软无线访问接入点AP信号的步骤。Perform the steps to scan the surrounding soft wireless access point AP signals.
可选地,根据接收到的所述连接数据包与所述无线路由器建立第四无线连接,包括:Optionally, establishing a fourth wireless connection with the wireless router according to the received connection data packet includes:
按照预设解密规则对所述连接数据包进行解密,得到登录密码和路由器标识;Decrypt the connection data packet according to the preset decryption rule to obtain the login password and router ID;
利用所述登录密码与所述路由器标识与所述无线路由器建立第四无线连接。Establish a fourth wireless connection with the wireless router by using the login password and the router identifier.
可选地,所述方法还包括:Optionally, the method further includes:
若与所述无线路由器成功建立无线连接后发生掉线,接收用户输入的修改后的无线路由器的登录密码和路由器标识;If the connection is dropped after the wireless connection is successfully established with the wireless router, receiving the modified login password and router ID of the wireless router input by the user;
根据所述登录密码和所述路由器标识,与所述无线路由器建立无线连接;Establishing a wireless connection with the wireless router according to the login password and the router identifier;
根据所述修改后的无线路由器的登录密码和路由器标识生成新的连接数据包;Generating a new connection data packet according to the modified login password of the wireless router and the router identifier;
执行扫描周围的软无线访问接入点AP信号的步骤。Perform the steps to scan the surrounding soft wireless access point AP signals.
可选地,在与无线路由器建立无线连接时使用第一MAC地址,在与其它无线设备建立无线连接时使用第二MAC地址。Optionally, the first MAC address is used when establishing a wireless connection with the wireless router, and the second MAC address is used when establishing a wireless connection with other wireless devices.
第二方面,本公开提供了一种自动联网装置,包括:In a second aspect, the present disclosure provides an automatic networking device, including:
检测模块,设置为检测自身是否已与无线路由器建立第一无线连接;The detection module is set to detect whether it has established a first wireless connection with the wireless router;
第一无线连接建立模块,设置为若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;The first wireless connection establishment module is configured to scan the surrounding soft wireless access point AP signals if it has established a first wireless connection with the wireless router;
第二无线连接建立模块,设置为若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;The second wireless connection establishment module is configured to establish a second wireless connection with the wireless device through the soft AP if it is determined that there is a wireless device that is not connected to the wireless router in the surroundings according to the soft AP signal;
发送模块,设置为通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。The sending module is configured to send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
第三方面,本公开提供了一种自动联网设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面任一项所述的方法的步骤。In a third aspect, the present disclosure provides an automatic networking device, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor implements the foregoing when the computer program is executed. The steps of the method of any one of the first aspect.
第四方面,本公开提供了一种具有处理器可执行的非易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行第一方面任一所述方法。In a fourth aspect, the present disclosure provides a computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to execute any of the methods described in the first aspect.
本公开实施例提供的上述技术方案与现有技术相比具有如下优点:本公开通过检测自身是否已与无线路由器建立第一无线连接;若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包的方式,实现已连接至无线路由器的设备向未连无线接路由器的无线设备发送用于连接所述无线路由器的连接数据包的目的,当路由器配置信息(例如网络供应商变更)或者登录密码改变时,无需用户重新给待配网设备配置网络,减少用户工作量。Compared with the prior art, the above-mentioned technical solutions provided by the embodiments of the present disclosure have the following advantages: the present disclosure detects whether it has established a first wireless connection with the wireless router; if it has established the first wireless connection with the wireless router, scan the surroundings The soft wireless access point AP signal; if it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP; The wireless device sends a connection data packet for connecting to the wireless router to realize the purpose of a device connected to the wireless router sending a connection data packet for connecting to the wireless router to a wireless device not connected to the wireless router , When the router configuration information (such as the network provider changes) or the login password is changed, there is no need for the user to reconfigure the network for the network device to be configured, reducing the user's workload.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments in accordance with the disclosure, and together with the specification are used to explain the principle of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can be obtained based on these drawings without creative labor.
图1为本公开实施例提供的一种自动联网方法的流程图;FIG. 1 is a flowchart of an automatic networking method provided by an embodiment of the disclosure;
图2为本公开实施例提供的另一种自动联网方法的流程图;FIG. 2 is a flowchart of another automatic networking method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的步骤S104的方法流程图;FIG. 3 is a flowchart of the method of step S104 provided by an embodiment of the disclosure;
图4为本公开实施例提供的另一种自动联网方法的步骤流程图;4 is a flowchart of another automatic networking method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的步骤S404的方法流程图;FIG. 5 is a flowchart of a method of step S404 provided by an embodiment of the disclosure;
图6为本公开实施例提供的另一种自动联网方法的流程图;FIG. 6 is a flowchart of another automatic networking method provided by an embodiment of the present disclosure;
图7为本公开实施例提供的无线设备传输方式示意图;以及FIG. 7 is a schematic diagram of a wireless device transmission method provided by an embodiment of the disclosure; and
图8为本公开实施例提供的一种自动联网装置模块示意图。FIG. 8 is a schematic diagram of an automatic networking device module provided by an embodiment of the disclosure.
图标:icon:
01-检测模块;02-第一无线连接建立模块;03-第二无线连接建立模块;04-发送模块。01-Detection module; 02-First wireless connection establishment module; 03-Second wireless connection establishment module; 04-Send module.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments They are a part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
目前,用户家中有多个设备通过无线路由器联网,当路由器配置信息(例如网络供应商变更)或者登录密码改变时,用户需要重新给家中的设备重新配置网络,操作繁琐且工作量大。At present, multiple devices in the user's home are connected to the Internet through a wireless router. When the router configuration information (such as the network provider changes) or the login password is changed, the user needs to reconfigure the network for the devices in the home, which is cumbersome and heavy workload.
基于此,本公开实施例提供一种自动联网方法,如图1所示,所述自动联网方法包括:Based on this, an embodiment of the present disclosure provides an automatic networking method. As shown in FIG. 1, the automatic networking method includes:
步骤S101,检测自身是否已与无线路由器建立第一无线连接。Step S101: It is detected whether the first wireless connection has been established with the wireless router.
步骤S102,若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号。Step S102, if the first wireless connection has been established with the wireless router, scan the surrounding soft wireless access point AP signals.
在本公开实施例中,设备首先检查自身是否已连接至无线路由器,若已连接至无线路由器则说明设备中保存有登录密码,所述登录密码用于连接无线路由器,若设备自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号,搜索周围是否存在有未连接无线路由的无线设备,其中,所述软无线访问接入点AP信号是由设备的无线驱动模块发射的,可以在软AP信号中携带配置信息,具体配置信息内容可以依据实际情况而定,本公开实施例对此不作具体限定。In the embodiments of the present disclosure, the device first checks whether it is connected to the wireless router. If it is connected to the wireless router, it means that the device has a login password, which is used to connect to the wireless router. If the device itself is connected to the wireless router The first wireless connection is established, and the surrounding soft wireless access point AP signals are scanned to search for wireless devices that are not connected to the wireless router. The soft wireless access point AP signals are driven by the wireless of the device. The configuration information transmitted by the module can be carried in the soft AP signal, and the specific configuration information content can be determined according to the actual situation, which is not specifically limited in the embodiment of the present disclosure.
步骤S103,若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接。Step S103: If it is determined according to the soft AP signal that there is a wireless device around which is not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP.
在本公开实施例中,若解析软AP信号,确定发送所述软AP信号的无线设备未与无线路由器连接,则通过软AP与所述无线设备建立第二无线连接,其中,建立第二无线连接过程,为保证设备的信息传输安全,可以在设备自身和无线设备中预存用于通过验证的标识。In the embodiment of the present disclosure, if the soft AP signal is analyzed and it is determined that the wireless device sending the soft AP signal is not connected to the wireless router, a second wireless connection is established with the wireless device through the soft AP, where the second wireless connection is established. During the connection process, in order to ensure the safety of the information transmission of the device, the identification for passing the verification can be pre-stored in the device itself and the wireless device.
基于此,本公开实施例还提供了一种实施方式,如图2所示,所述方法还包括:Based on this, the embodiments of the present disclosure also provide an implementation manner. As shown in FIG. 2, the method further includes:
步骤S201,解析扫描到的所述软AP信号。Step S201: Analyze the scanned soft AP signal.
步骤S202,若解析得到未与无线路由器连接的信息,且解析得到 的AP密码与自身预设的AP密码相同,则确定周围存在未连接所述无线路由器的无线设备。In step S202, if the information that is not connected to the wireless router is obtained by analysis, and the AP password obtained by the analysis is the same as the preset AP password, it is determined that there are wireless devices not connected to the wireless router around.
在本公开实施例中,设备自身和未连接无线路由器的无线设备中都预存有AP密码,设备在扫描到无线设备发送的软AP信号时,解析所述软AP信号,若解析得到未与无线路由连接的信息则说明发送软AP信号的无线设备没有与无线路由建立连接,再对软AP信号解析得到AP密码,若解析得到的AP密码与自身存储的AP密码相同,则无线设备具备与设备连接的权限,设备可以确定周围存在未连接所述无线路由器的无线设备。In the embodiment of the present disclosure, the AP password is pre-stored in the device itself and the wireless device that is not connected to the wireless router. When the device scans the soft AP signal sent by the wireless device, it parses the soft AP signal. The routing connection information indicates that the wireless device sending the soft AP signal has not established a connection with the wireless router, and then analyzes the soft AP signal to obtain the AP password. If the AP password obtained by the analysis is the same as the AP password stored by itself, the wireless device is equipped with the device With connection authority, the device can determine that there are wireless devices around which are not connected to the wireless router.
步骤S104,通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。Step S104: Send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
在本公开实施例中,设备已经与无线路由器建立连接,通过搜索周围未与无线路由器建立连接的无线设备,并通过与无线设备建立第二无线连接的方式,向无线设备发送用于连接无线路由器的登录密码,达到自动化给无线设备配网的目的,减轻了用户重新配置网络的复杂操作。In the embodiment of the present disclosure, the device has established a connection with the wireless router, by searching for nearby wireless devices that have not been connected with the wireless router, and by establishing a second wireless connection with the wireless device, sending to the wireless device for connecting to the wireless router The login password of, achieves the purpose of automatically distributing the network to the wireless device, and reduces the complicated operation of the user to reconfigure the network.
在本公开实施例中,步骤S104,通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包之前,如图3所示,还包括:In the embodiment of the present disclosure, in step S104, before sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, as shown in FIG. 3, the method further includes:
步骤S301,获取所述无线路由器的登录密码和路由器标识。Step S301: Obtain the login password and the router identifier of the wireless router.
步骤S302,按照预设加密规则对无线路由器的登录密码和路由器标识进行加密得到所述连接数据包。Step S302: Encrypt the login password and router identifier of the wireless router according to a preset encryption rule to obtain the connection data packet.
在本公开实施例中,若设备已与无线路由器连接,且搜索到周围存在未与所述无线路由器连接的无线设备,并已与所述无线设备建立第二无线连接时,为了确保数据传输的安全性,在设备通过第二无线 连接向无线设备发送用于连接无线路由器的连接数据包之前,还可以用预设加密规则对无线路由器的登录密码和路由器标识进行加密,相应的在无线设备中存储有对应的解密规则,以使无线设备通过第二无线连接接收到连接数据包时,利用解密规则对连接数据包进行解密。In the embodiment of the present disclosure, if the device has been connected to a wireless router, and a wireless device that is not connected to the wireless router is found around, and a second wireless connection has been established with the wireless device, in order to ensure data transmission Security. Before the device sends the connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, it can also use the preset encryption rules to encrypt the login password and router ID of the wireless router. The corresponding decryption rule is stored, so that when the wireless device receives the connection data packet through the second wireless connection, the decryption rule is used to decrypt the connection data packet.
在本公开的又一实施例中,如图4所示,还提供了一种自动联网方法,包括:In another embodiment of the present disclosure, as shown in FIG. 4, an automatic networking method is also provided, including:
步骤S401,若自身未与所述无线路由器建立第一无线连接,向周围广播软AP信号,所述软AP信号中至少包含:未与无线路由器连接的信息和AP密码。Step S401: If the first wireless connection is not established with the wireless router, the soft AP signal is broadcast to the surroundings. The soft AP signal includes at least: information about not being connected to the wireless router and AP password.
步骤S402,通过所述软AP与其它无线设备建立第三无线连接,该其它无线设备已与所述无线路由器建立连接。Step S402: Establish a third wireless connection with another wireless device through the soft AP, and the other wireless device has established a connection with the wireless router.
步骤S403,若接收到该其它无线设备发送的连接数据包,断开所述第三无线连接。Step S403: If the connection data packet sent by the other wireless device is received, the third wireless connection is disconnected.
步骤S404,根据接收到的所述连接数据包,与所述无线路由器建立第四无线连接。Step S404: Establish a fourth wireless connection with the wireless router according to the received connection data packet.
步骤S405,执行扫描周围的软无线访问接入点AP信号的步骤。Step S405: Perform a step of scanning the surrounding soft wireless access point AP signals.
在本公开实施例中,若设备自身未与所述无线路由器建立第一无线连接,向自身信号覆盖范围内周围广播软AP信号,其中,软AP信号中至少包含:未与无线路由器连接的信息和AP密码,以用于其他已与无线路由连接的无线设备在扫描周围的软AP信号时,识别到未与无线路由连接的设备,进而通过第三无线连接从其他无线设备中获取连接无线路的连接数据包,并断开与发送连接数据包的无线设备的连接,利用所述连接数据包与无线路由器建立第四无线连接,此时,设备自身已经与无线路由器建立连接,重新执行步骤S102,扫描周围未与无 线路由连接的设备,达到向认证设备传播登录密码以及路由器标识的目的。In the embodiment of the present disclosure, if the device itself does not establish a first wireless connection with the wireless router, it broadcasts a soft AP signal to the surroundings within its signal coverage, where the soft AP signal at least contains: information about not being connected to the wireless router And AP password, used for other wireless devices connected to the wireless router when scanning the surrounding soft AP signal, identify the device that is not connected to the wireless router, and then obtain the connection wireless path from other wireless devices through the third wireless connection And disconnect the connection with the wireless device that sent the connection data packet, and use the connection data packet to establish a fourth wireless connection with the wireless router. At this time, the device itself has established a connection with the wireless router, and step S102 is executed again. , Scan the surrounding devices that are not connected to the wireless router to achieve the purpose of disseminating the login password and router ID to the authentication device.
进一步地,步骤S404,根据接收到的所述连接数据包与所述无线路由器建立第四无线连接,如图5所示,包括:Further, step S404, establishing a fourth wireless connection with the wireless router according to the received connection data packet, as shown in FIG. 5, includes:
步骤S501,按照预设解密规则对所述连接数据包进行解密,得到登录密码和路由器标识。Step S501: Decrypt the connection data packet according to a preset decryption rule to obtain a login password and a router identifier.
步骤S502,利用所述登录密码与所述路由器标识与所述无线路由器建立第四无线连接。Step S502, using the login password and the router identifier to establish a fourth wireless connection with the wireless router.
在本公开实施例中,未与无线路由器连接的无线设备在与其它无线设备建立第三无线连接后,接收其他无线设备发送的连接数据包,其中,该其他无线设备已与无线路由器建立连接,在无线设备中都保存有预设的数据包加密规则和数据包解密规则,在接收到其他无线设备发送的连接数据包后,利用预设的解密规则连接数据包进行解密,得到路由器标识和登录密码,未与无线路由器连接的无线设备即可通过登录密码与路由器标识对应的无线路由器建立连接,本公开实施例通过在无线设备中预存有加密规则和解密规则,防止未被信用授权的无线设备连接,并获取连接数据包,保证了用户的信息安全。In the embodiment of the present disclosure, the wireless device that is not connected to the wireless router receives the connection data packet sent by the other wireless device after establishing a third wireless connection with the other wireless device, where the other wireless device has established a connection with the wireless router, There are preset data packet encryption rules and data packet decryption rules in the wireless device. After receiving the connection data packet sent by other wireless devices, use the preset decryption rule to connect the data packet for decryption, and obtain the router identification and login Password, wireless devices that are not connected to the wireless router can establish a connection with the wireless router corresponding to the router ID through the login password. Embodiments of the present disclosure pre-store encryption rules and decryption rules in the wireless device to prevent unauthorized wireless devices Connect, and obtain the connection data package, to ensure the user's information security.
在本公开的提供的又一实施例中,如图6所示,所述方法还包括:In another embodiment provided by the present disclosure, as shown in FIG. 6, the method further includes:
步骤S601,若与所述无线路由器成功建立无线连接后发生掉线,接收用户输入的修改后的无线路由器的登录密码和路由器标识。Step S601: If the connection is dropped after the wireless connection is successfully established with the wireless router, receive the modified login password and router identifier of the wireless router input by the user.
步骤S602,根据所述登录密码和所述路由器标识,与所述无线路由器建立无线连接。Step S602: Establish a wireless connection with the wireless router according to the login password and the router identifier.
步骤S603,根据所述修改后的无线路由器的登录密码和路由器标识生成新的连接数据包。Step S603: Generate a new connection data packet according to the modified login password of the wireless router and the router identifier.
步骤S604,执行扫描周围的软无线访问接入点AP信号的步骤。Step S604: Perform a step of scanning the surrounding soft wireless access point AP signals.
在本公开实施例中,提供了一种用户更改路由器登录密码的场景,当用户切换无线路由器的登录密码时,只需要给连接无线路由器的其中一个无线设备重新配置网络,用户可以输入修改后的登录密码和路由器标识,连接原先连接的路由器或者更换连接一个新的路由器,若无线设备通过登录密码和与路由器标识对应的无线路由器建立连接,则可以根据预先的加密规则将修改后的无线路由器的登录密码和路由器标识生成新的连接数据包,扫描周围的未与目标路由器连接的无线设备发出的软AP信号,达到自动化传播正确的登录密码以及路由器标识的目的,避免用户因为更换登录密码需要重新给无线设备一一配置网络,解决了用户重新配网工作量繁重的问题,后续具体执行过程可以参照上述实施例,此处便不再赘述。In the embodiments of the present disclosure, a scenario where a user changes the login password of the router is provided. When the user switches the login password of the wireless router, only one of the wireless devices connected to the wireless router needs to reconfigure the network, and the user can enter the modified Login password and router ID, connect to the originally connected router or replace and connect to a new router. If the wireless device establishes a connection with the wireless router corresponding to the router ID through the login password, the modified wireless router can be changed according to the pre-encrypted rules. The login password and router ID generate new connection data packets, and scan the soft AP signals from surrounding wireless devices that are not connected to the target router, so as to achieve the purpose of automatically disseminating the correct login password and router ID, and avoid the need for users to change the login password. Configuring the network for the wireless devices one by one solves the problem of the user's heavy workload of re-distributing the network. The subsequent specific implementation process can refer to the above-mentioned embodiment, which will not be repeated here.
在本公开的又一实施例中,无线设备中至少包含两个MAC地址,MAC地址是用来确认网络设备位置的物理地址,一台设备若有一或多个网卡,则每个网卡都需要并会有一个唯一的MAC地址,在本公开实施例中在与无线路由器建立无线连接时使用第一MAC地址,以保证无线设备自身与无线路由器之间连接的稳定性,还可以使用第一MAC地址作为扫描周围软AP信号的客户端,在与其它无线设备建立无线连接时使用第二MAC地址,可以使用第二MAC地址作为发送软AP信号的服务端。In another embodiment of the present disclosure, the wireless device contains at least two MAC addresses. The MAC address is a physical address used to confirm the location of the network device. If a device has one or more network cards, each network card needs to be connected. There will be a unique MAC address. In the embodiment of the present disclosure, the first MAC address is used when establishing a wireless connection with the wireless router to ensure the stability of the connection between the wireless device itself and the wireless router. The first MAC address can also be used As a client that scans surrounding soft AP signals, it uses the second MAC address when establishing a wireless connection with other wireless devices, and can use the second MAC address as a server for sending soft AP signals.
在本公开实施例中,如图7所示,例如:用户家中有已经与无线路由器建立连接的无线设备1,以及未与无线路由建立连接的无线设备2和无线设备3,无线设备1可以使用无线设备的第一MAC地址作为驱动端与无线路由建立连接,使用无线设备1的第二MAC地址作为软AP信号的发送端,或者用于连接无线设备2发送的软AP信号,将登 录密码和路由器标识发送给无线设备2,无线设备2使用无线设备2的第一MAC地址作为连接无线路由器的驱动端,使用登录密码和与路由器标识对应的无线路由建立连接,再通过无线设备2的第二MAC地址作为客户端扫描发现无线设备3的软AP信号或者发送软AP信号,以供无线设备3连接,无线设备3重复无线设备2的动作,完成对正确登录密码和路由器标识的传播。In the embodiment of the present disclosure, as shown in FIG. 7, for example, the user has a wireless device 1 that has established a connection with a wireless router, and a wireless device 2 and a wireless device 3 that have not established a connection with a wireless router. The wireless device 1 can use The first MAC address of the wireless device is used as the driver to establish a connection with the wireless router, and the second MAC address of the wireless device 1 is used as the sender of the soft AP signal, or used to connect to the soft AP signal sent by the wireless device 2, and the login password and The router ID is sent to the wireless device 2. The wireless device 2 uses the first MAC address of the wireless device 2 as the driver to connect to the wireless router, uses the login password and the wireless route corresponding to the router ID to establish a connection, and then passes through the second MAC address of the wireless device 2 The MAC address is used as a client to scan and discover the soft AP signal of the wireless device 3 or send a soft AP signal for the wireless device 3 to connect, and the wireless device 3 repeats the actions of the wireless device 2 to complete the propagation of the correct login password and router ID.
本公开实施例还提供了一种自动联网装置,需要说明的是,本公开实施例的自动联网装置可以用于执行本公开实施例所提供的用于自动联网方法。以下对本公开实施例提供的自动联网装置进行介绍。The embodiments of the present disclosure also provide an automatic networking device. It should be noted that the automatic networking device of the embodiments of the present disclosure can be used to execute the automatic networking method provided by the embodiments of the present disclosure. The automatic networking device provided by the embodiment of the present disclosure is introduced below.
在本公开的又一实施例中,还提供了一种自动联网装置,如图8所示,包括:In another embodiment of the present disclosure, an automatic networking device is also provided, as shown in FIG. 8, including:
检测模块01,设置为检测自身是否已与无线路由器建立第一无线连接;The detection module 01 is configured to detect whether it has established a first wireless connection with the wireless router;
第一无线连接建立模块02,设置为若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;The first wireless connection establishment module 02 is configured to scan the surrounding soft wireless access point AP signals if it has established a first wireless connection with the wireless router;
第二无线连接建立模块03,设置为若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;The second wireless connection establishment module 03 is configured to establish a second wireless connection with the wireless device through the soft AP if it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router;
发送模块04,设置为通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。The sending module 04 is configured to send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
在本公开的又一实施例中,还提供了一种自动联网设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述实施例中任一项所述的方法的步骤。In yet another embodiment of the present disclosure, an automatic networking device is also provided, including a memory and a processor, the memory stores a computer program that can run on the processor, and the processor executes the The computer program implements the steps of the method described in any one of the above embodiments.
在本公开的又一实施例中,还提供了一种具有处理器可执行的非 易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行上述实施例中任一所述方法。In yet another embodiment of the present disclosure, there is also provided a computer-readable medium having non-volatile program code executable by a processor, and the program code causes the processor to execute any of the above-mentioned embodiments.述method.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or sequence between entities or operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above are only specific implementations of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features applied in this document.

Claims (10)

  1. 一种自动联网方法,所述自动联网方法包括:An automatic networking method, the automatic networking method includes:
    检测自身是否已与无线路由器建立第一无线连接;Detect whether it has established a first wireless connection with the wireless router;
    若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;If it has established the first wireless connection with the wireless router, scan the surrounding soft wireless access point AP signals;
    若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;If it is determined according to the soft AP signal that there are wireless devices around which are not connected to the wireless router, establish a second wireless connection with the wireless device through the soft AP;
    通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。Sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
  2. 根据权利要求1所述的自动联网方法,其中,通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包的步骤之前,还包括:The automatic networking method according to claim 1, wherein before the step of sending a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection, the method further comprises:
    获取所述无线路由器的登录密码和路由器标识;Acquiring the login password and router identifier of the wireless router;
    按照预设加密规则对无线路由器的登录密码和路由器标识进行加密得到所述连接数据包。The connection data packet is obtained by encrypting the login password and the router identifier of the wireless router according to the preset encryption rule.
  3. 根据权利要求1所述的自动联网方法,其中,所述方法还包括:The automatic networking method according to claim 1, wherein the method further comprises:
    解析扫描到的所述软AP信号;Parsing the scanned soft AP signal;
    若解析得到未与无线路由器连接的信息,且解析得到的AP密码与自身预设的AP密码相同,则确定周围存在未连接所述无线路由器的无线设备。If the information that is not connected to the wireless router is obtained by analysis, and the AP password obtained by the analysis is the same as the AP password preset by itself, it is determined that there are wireless devices not connected to the wireless router nearby.
  4. 根据权利要求1所述的自动联网方法,其中,还包括:The automatic networking method according to claim 1, further comprising:
    若自身未与所述无线路由器建立第一无线连接,向周围广播软AP信号,所述软AP信号中至少包含:未与无线路由器连接的信息和AP 密码;If it does not establish a first wireless connection with the wireless router, broadcast a soft AP signal to the surroundings, and the soft AP signal at least includes: information about not being connected to the wireless router and an AP password;
    通过所述软AP与其它无线设备建立第三无线连接,该其它无线设备已与所述无线路由器建立连接;Establishing a third wireless connection with another wireless device through the soft AP, and the other wireless device has established a connection with the wireless router;
    若接收到该其它无线设备发送的连接数据包,断开所述第三无线连接;If the connection data packet sent by the other wireless device is received, the third wireless connection is disconnected;
    根据接收到的所述连接数据包,与所述无线路由器建立第四无线连接;Establishing a fourth wireless connection with the wireless router according to the received connection data packet;
    执行扫描周围的软无线访问接入点AP信号的步骤。Perform the steps of scanning the surrounding soft wireless access point AP signals.
  5. 根据权利要求4所述的自动联网方法,其中,根据接收到的所述连接数据包与所述无线路由器建立第四无线连接,包括:The automatic networking method according to claim 4, wherein establishing a fourth wireless connection with the wireless router according to the received connection data packet comprises:
    按照预设解密规则对所述连接数据包进行解密,得到登录密码和路由器标识;Decrypt the connection data packet according to the preset decryption rule to obtain the login password and router ID;
    利用所述登录密码与所述路由器标识与所述无线路由器建立第四无线连接。Establish a fourth wireless connection with the wireless router by using the login password and the router identifier.
  6. 根据权利要求1所述的自动联网方法,其中,所述方法还包括:The automatic networking method according to claim 1, wherein the method further comprises:
    若与所述无线路由器成功建立无线连接后发生掉线,接收用户输入的修改后的无线路由器的登录密码和路由器标识;If the connection is dropped after the wireless connection is successfully established with the wireless router, receiving the modified login password and router identifier of the wireless router input by the user;
    根据所述登录密码和所述路由器标识,与所述无线路由器建立无线连接;Establishing a wireless connection with the wireless router according to the login password and the router identifier;
    根据所述修改后的无线路由器的登录密码和路由器标识生成新的连接数据包;Generating a new connection data packet according to the modified login password of the wireless router and the router identifier;
    执行扫描周围的软无线访问接入点AP信号的步骤。Perform the steps of scanning the surrounding soft wireless access point AP signals.
  7. 根据权利要求1所述的自动联网方法,其中,在与无线路由器 建立无线连接时使用第一MAC地址,在与其它无线设备建立无线连接时使用第二MAC地址。The automatic networking method according to claim 1, wherein the first MAC address is used when establishing a wireless connection with a wireless router, and the second MAC address is used when establishing a wireless connection with other wireless devices.
  8. 一种自动联网装置,包括:An automatic networking device, including:
    检测模块,设置为检测自身是否已与无线路由器建立第一无线连接;The detection module is set to detect whether it has established a first wireless connection with the wireless router;
    第一无线连接建立模块,设置为若自身已与无线路由器建立第一无线连接,则扫描周围的软无线访问接入点AP信号;The first wireless connection establishment module is configured to scan the surrounding soft wireless access point AP signals if it has established a first wireless connection with the wireless router;
    第二无线连接建立模块,设置为若根据软AP信号确定周围存在未连接所述无线路由器的无线设备,通过软AP与所述无线设备建立第二无线连接;The second wireless connection establishment module is configured to establish a second wireless connection with the wireless device through the soft AP if it is determined that there is a wireless device that is not connected to the wireless router in the surroundings according to the soft AP signal;
    发送模块,设置为通过所述第二无线连接向所述无线设备发送用于连接所述无线路由器的连接数据包。The sending module is configured to send a connection data packet for connecting to the wireless router to the wireless device through the second wireless connection.
  9. 一种自动联网设备,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现上述权利要求1至7任一项所述的方法的步骤。An automatic networking device comprising a memory and a processor, and a computer program that can be run on the processor is stored in the memory, wherein the processor implements any of the above claims 1 to 7 when the computer program is executed. One of the steps of the method described.
  10. 一种具有处理器可执行的非易失的程序代码的计算机可读介质,其中,所述程序代码使所述处理器执行所述权利要求1至7任一所述方法。A computer readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to execute the method according to any one of claims 1 to 7.
PCT/CN2020/114339 2019-10-22 2020-09-10 Automatic networking method, apparatus, device, and readable medium WO2021077930A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911007986.4A CN110972161B (en) 2019-10-22 2019-10-22 Automatic networking method, device, equipment and readable medium
CN201911007986.4 2019-10-22

Publications (1)

Publication Number Publication Date
WO2021077930A1 true WO2021077930A1 (en) 2021-04-29

Family

ID=70029948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/114339 WO2021077930A1 (en) 2019-10-22 2020-09-10 Automatic networking method, apparatus, device, and readable medium

Country Status (2)

Country Link
CN (1) CN110972161B (en)
WO (1) WO2021077930A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422216A (en) * 2021-12-31 2022-04-29 杭州华橙软件技术有限公司 Internet of things equipment binding method and device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110972161B (en) * 2019-10-22 2022-04-15 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium
CN111865693B (en) * 2020-07-23 2023-08-18 深圳市航天无线通信技术有限公司 Automatic correction method, device, equipment and storage medium for network terminal networking parameters
CN114245403B (en) * 2021-12-13 2023-08-11 珠海格力电器股份有限公司 Equipment network distribution method and device, electronic equipment and storage medium
CN114245405B (en) * 2021-12-16 2023-09-08 珠海格力电器股份有限公司 Equipment network distribution method, electronic equipment and storage medium
CN114727287B (en) * 2022-03-17 2023-03-31 深圳市欧瑞博科技股份有限公司 Wireless network connection method, control center and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088666A1 (en) * 2013-03-18 2016-03-24 Airbus Ds Sas Method and device for managing the connectivity of a terminal by means of a mobile server in a telecommunications network
CN105578557A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Routing information transmission method and device
CN106332084A (en) * 2016-09-08 2017-01-11 上海斐讯数据通信技术有限公司 Wireless network expanding method, wireless network expanding system and wireless network
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
CN107635268A (en) * 2016-07-19 2018-01-26 美的智慧家居科技有限公司 Realize the methods, devices and systems that internet of things equipment networks
CN108200216A (en) * 2018-03-05 2018-06-22 青岛海尔科技有限公司 A kind of method, apparatus, storage medium and equipment for binding internet of things equipment
CN109922516A (en) * 2019-03-01 2019-06-21 奥克斯空调股份有限公司 A kind of method of wifi equipment intelligent network distribution
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421266B1 (en) * 2002-08-12 2008-09-02 Mcafee, Inc. Installation and configuration process for wireless network
CN107241679B (en) * 2016-03-29 2022-01-04 阿里巴巴集团控股有限公司 Connection establishing method, information sending method, message sending method and device
CN106658659B (en) * 2016-11-15 2021-03-05 贝斯拓欧洲控股有限公司 Method and device for accessing intelligent terminal equipment to Internet

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088666A1 (en) * 2013-03-18 2016-03-24 Airbus Ds Sas Method and device for managing the connectivity of a terminal by means of a mobile server in a telecommunications network
CN105578557A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Routing information transmission method and device
CN107635268A (en) * 2016-07-19 2018-01-26 美的智慧家居科技有限公司 Realize the methods, devices and systems that internet of things equipment networks
CN106332084A (en) * 2016-09-08 2017-01-11 上海斐讯数据通信技术有限公司 Wireless network expanding method, wireless network expanding system and wireless network
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
CN108200216A (en) * 2018-03-05 2018-06-22 青岛海尔科技有限公司 A kind of method, apparatus, storage medium and equipment for binding internet of things equipment
CN109922516A (en) * 2019-03-01 2019-06-21 奥克斯空调股份有限公司 A kind of method of wifi equipment intelligent network distribution
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422216A (en) * 2021-12-31 2022-04-29 杭州华橙软件技术有限公司 Internet of things equipment binding method and device and storage medium
CN114422216B (en) * 2021-12-31 2024-01-09 杭州华橙软件技术有限公司 Internet of things equipment binding method, device and storage medium

Also Published As

Publication number Publication date
CN110972161B (en) 2022-04-15
CN110972161A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
WO2021077930A1 (en) Automatic networking method, apparatus, device, and readable medium
WO2021036513A1 (en) Smart device provisioning method, system, and readable medium
US10616232B2 (en) Network connection method, hotspot terminal and management terminal
US20060117174A1 (en) Method of auto-configuration and auto-prioritizing for wireless security domain
US20150264051A1 (en) Automated wireless device provisioning and authentication
CN107567017B (en) Wireless connection system, device and method
US11765164B2 (en) Server-based setup for connecting a device to a local area network
EP2355585A1 (en) Method for connecting wireless communications, wireless communications terminal and wireless communications system
CN110809308A (en) Method and device for automatically connecting IOT device and WIFI router
US8179870B2 (en) Method and apparatus for securing devices in a network
US20110055409A1 (en) Method For Network Connection
US11805113B2 (en) Establishing trust with network device
CN111726801B (en) Network security control method
US20150009916A1 (en) Pairing of devices through separate networks
US20230362645A1 (en) Instant secure wireless network setup
CN112383500B (en) Method and system for controlling access request related to screen projection equipment
CN101616414A (en) Method, system and server that terminal is authenticated
US11844007B2 (en) Ecosystem-based wireless network setup
US11916700B2 (en) Autoconnect virtual private network
US20130100857A1 (en) Secure Hotspot Roaming
CN105915557B (en) Network authentication method, access control method and network access equipment
US20160105407A1 (en) Information processing apparatus, terminal, information processing system, and information processing method
KR100737903B1 (en) Method for accessing an unopened terminal to wibro network for remote real time subscription and opening to wibro service
CN106453400B (en) A kind of authentication method and system
KR20110059919A (en) Network access management method and apparatus for access restriction of abnormal station using web redirect

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: 20879189

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: 20879189

Country of ref document: EP

Kind code of ref document: A1