A networking method, apparatus, system, electronic device, and storage medium

By transmitting key information through NFC interaction between the terminal and the router, the problems of complex router networking and low security are solved, and convenient and secure router networking connections are realized.

CN114449501BActive Publication Date: 2026-06-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2022-02-15
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, router networking methods suffer from complex deployment and low security, failing to meet user needs.

Method used

By establishing NFC interaction between the terminal and the router, the key information required for router networking is transmitted. Users can choose the router to interact with the terminal, and the key information can be set to non-universal, thus realizing secure networking between routers.

Benefits of technology

It simplifies router networking operations, improves security, meets the actual needs of expanding network coverage, and avoids networking crosstalk problems caused by the common use of preset key information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449501B_ABST
    Figure CN114449501B_ABST
Patent Text Reader

Abstract

This disclosure relates to a networking method, apparatus, system, electronic device, and storage medium. The networking method includes: responding to a terminal approaching a first NFC sensing device of a first router and entering the effective communication range of the first NFC sensing device, interacting with the first NFC sensing device to enable the first router or the terminal to obtain key information, the key information being used for networking between the first router and a second router; and responding to the terminal approaching a second NFC sensing device of a second router and entering the effective communication range of the second NFC sensing device, writing the key information into the second NFC sensing device. This disclosure allows a terminal to establish a network between designated routers equipped with NFC sensing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of wireless communication technology, and in particular to a networking method, apparatus, system, electronic device, and storage medium. Background Technology

[0002] With the widespread application of networking technology, networking has gradually become a standard function of smart routers.

[0003] In related technologies, routers can be networked using wired connections or Wi-Fi hotspots. However, these wired or hotspot-based router networking methods suffer from complex deployment and low security, failing to meet user needs. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a networking method, apparatus, system, electronic device, and storage medium.

[0005] According to a first aspect of the present disclosure, a networking method is provided, applied to a terminal, the method comprising:

[0006] In response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, the terminal interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information, which is used by the first router and the second router to form a network; in response to the terminal approaching the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the terminal writes the key information into the second NFC sensing device.

[0007] In one embodiment, interacting with the first NFC sensing device to enable the first router to obtain key information includes: determining the key information generated by the terminal; and writing the key information generated by the terminal into the first NFC sensing device.

[0008] In one embodiment, interacting with the first NFC sensing device to enable the terminal to obtain key information includes: determining the key information already written in the first NFC sensing device; and reading the key information already written in the first NFC sensing device.

[0009] According to a second aspect of the present disclosure, a networking method is provided, applied to a router, the method comprising:

[0010] Communication monitoring is performed based on the NFC sensing device of the router; in response to detecting that a terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, the router interacts with the terminal through the NFC sensing device so that the router or the terminal obtains key information, which is used by the router to form a network with other routers.

[0011] In one embodiment, the interaction between the NFC sensing device and the terminal to enable the terminal to obtain key information includes: determining the key information generated and written into the NFC sensing device by the router; and transmitting the key information written into the NFC sensing device to the terminal.

[0012] In one embodiment, the router interacts with the terminal via the NFC sensing device to obtain key information, including: reading the key information written by the terminal into the NFC sensing device.

[0013] In one embodiment, the method further includes: encrypting the network information based on the key information; broadcasting the encrypted network information; and establishing a network connection with another router in response to receiving a network request from another router, wherein the network request is triggered by the other router after successfully decrypting the network information based on the key information.

[0014] In one embodiment, the method further includes: in response to receiving network information encrypted based on the key information, decrypting the network information based on the key information; in response to successful decryption of the network information, sending a network request; wherein the key information used to successfully decrypt the network information is obtained by the terminal interacting with the other routers.

[0015] According to a third aspect of the present disclosure, a networking device is provided, applied to a terminal, comprising:

[0016] A determining unit is configured to determine that the terminal is close to a first NFC sensing device of a first router and enters the effective communication range of the first NFC sensing device; a processing unit is configured to, in response to the terminal being close to the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, interact with the first NFC sensing device to enable the first router or the terminal to obtain key information, the key information being used by the first router and the second router to form a network; and in response to the terminal being close to a second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, write the key information into the second NFC sensing device.

[0017] In one embodiment, the processing unit interacts with the first NFC sensing device in the following manner to enable the first router to obtain key information: determining the key information generated by the terminal; and writing the key information generated by the terminal into the first NFC sensing device.

[0018] In one embodiment, the processing unit interacts with the first NFC sensing device in the following manner to enable the terminal to obtain key information: determining the key information already written in the first NFC sensing device; and reading the key information already written in the first NFC sensing device.

[0019] According to a fourth aspect of the present disclosure, a networking apparatus is provided, applied to a router, comprising:

[0020] A monitoring unit is used to monitor communication based on the NFC sensing device of the router; a processing unit, in response to detecting that a terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, interacts with the terminal through the NFC sensing device to enable the router or the terminal to obtain key information, the key information being used by the router to form a network with other routers.

[0021] In one embodiment, the processing unit interacts with the terminal via the NFC sensing device in the following manner to enable the terminal to obtain key information: determining the key information generated and written to the NFC sensing device by the router; and transmitting the key information written in the NFC sensing device to the terminal.

[0022] In one embodiment, the processing unit interacts with the terminal via the NFC sensing device in the following manner to enable the router to obtain key information: reading the key information written by the terminal into the NFC sensing device.

[0023] In one embodiment, the processing unit is further configured to: encrypt the network information based on the key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with the other router, wherein the network request is triggered by the other router successfully decrypting the network information based on the key information.

[0024] In one embodiment, the processing unit is further configured to: in response to receiving network information encrypted based on the key information, decrypt the network information based on the key information; in response to successful decryption of the network information, send a network request; wherein the key information used to successfully decrypt the network information is obtained by the terminal through interaction with the other routers.

[0025] According to a fifth aspect of this disclosure, a networking system is provided, the networking system including a terminal, a first router, and a second router, wherein the terminal is configured to approach a first NFC sensing device of the first router and, when entering the effective communication range of the first NFC sensing device, read key information included in the first NFC sensing device of the first router, or write key information generated by the terminal into the first NFC sensing device of the first router; and, when approaching a second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, write the key information read from the first NFC sensing device into the second NFC sensing device, or write the key information generated by the terminal into the second NFC sensing device of the second router; the first router and the second router form a network based on the key information.

[0026] According to a sixth aspect of the present disclosure, a networking device is provided, comprising:

[0027] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the networking method described in the first aspect or any embodiment of the first aspect, or execute the networking method described in the second aspect or any embodiment of the second aspect.

[0028] According to a seventh aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to execute the networking method described in the first aspect or any embodiment of the first aspect, or to execute the networking method described in the second aspect or any embodiment of the second aspect.

[0029] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: When a terminal is close to the first NFC sensing device of the first router and enters the effective communication range of the first NFC sensing device, it can interact with the first NFC sensing device to enable the first router or the terminal to obtain key information. And when the terminal is close to the second NFC sensing device of the second router and enters the effective communication range of the second NFC sensing device, key information can be written to the second NFC sensing device. Since the key information can be used for networking between the first router and the second router, when the first router and the second router obtain the key information through the above methods, the first router and the second router can achieve network connection through the key information.

[0030] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0031] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0032] Figure 1 This is a flowchart illustrating a networking method according to an exemplary embodiment.

[0033] Figure 2 This is a flowchart illustrating another networking method according to an exemplary embodiment.

[0034] Figure 3 This is a flowchart illustrating yet another networking method according to an exemplary embodiment.

[0035] Figure 4 This is a flowchart illustrating a networking method according to an exemplary embodiment.

[0036] Figure 5 This is a flowchart illustrating another networking method according to an exemplary embodiment.

[0037] Figure 6 This is a flowchart illustrating yet another networking method according to an exemplary embodiment.

[0038] Figure 7 This is a flowchart illustrating a method for broadcasting network information via a router according to an exemplary embodiment.

[0039] Figure 8 This is a flowchart illustrating a method for sending a network request via a router according to an exemplary embodiment.

[0040] Figure 9 This is a schematic diagram illustrating a network formation process using key information generated by a router, according to an exemplary embodiment.

[0041] Figure 10 This is a schematic diagram illustrating a process for establishing a network connection using key information generated by a terminal, according to an exemplary embodiment.

[0042] Figure 11 This is an exemplary embodiment illustrating the interaction between a terminal, a first router, and a second router.

[0043] Figure 12 This is a block diagram of a networking device according to an exemplary embodiment.

[0044] Figure 13 This is a block diagram of another networking device according to an exemplary embodiment.

[0045] Figure 14This is a block diagram illustrating an apparatus for networking according to an exemplary embodiment. Detailed Implementation

[0046] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.

[0047] In the accompanying drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of this disclosure. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this disclosure. The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0048] The networking method provided in this disclosure can be applied to scenarios where networking connections are made through routers.

[0049] With the widespread application of networking technology, networking has gradually become a standard function of routers. Related technologies enable router networking via wired connections or hotspots (Wi-Fi). However, these wired or hotspot-based router networking methods suffer from operational complexity, deployment difficulties, and low security, failing to meet user needs. For example, with wired connections, the distance between multiple routers in the network is often significant, requiring the insertion and removal of data cables, leading to operational complexity and deployment difficulties. Similarly, hotspot connections require multiple routers to have the same pre-set key information for exchanging networking information during hotspot connections. The scenario of using the same key information for router networking via hotspots includes two possible solutions. One is to directly pre-set the same key information for routers of the same model or batch. This method, for adjacent networks with overlapping coverage areas, can lead to network crosstalk due to shared key information, posing a security risk. Another approach is to pre-set the same key information for multiple routers used to build the same network. However, this method has the problem of not being able to add new routers to expand the network coverage. In summary, the related technologies for building networks via routers cannot meet the usage requirements.

[0050] Furthermore, as NFC applications become more diverse, products such as routers are beginning to deploy NFC functionality, and the NFC function of routers also provides more possibilities for networking methods between routers.

[0051] In view of this, this disclosure provides a networking method for terminals. For routers equipped with NFC sensing devices, the key information required for router networking can be transmitted through NFC interaction between the terminal and the router. Since users can choose which router to interact with, a network can be established between user-specified routers. Because the key information required for router networking can be transmitted between routers via the terminal, the key information can be set to non-universal, thus improving the problem of interconnected adjacent networks caused by preset universal key information. Furthermore, since this method only requires the terminal to transmit key information with the newly added router via NFC, it can meet the practical needs of expanding network coverage. Of course, because the networking method provided in this disclosure transmits key information through NFC between the terminal and the router, and the routers establish a network via hotspot after the key information is transmitted, there is no need to plug or unplug data cables during network establishment. This method is convenient to operate and easy to deploy, meeting the practical needs of establishing networks through routers.

[0052] For ease of description, the router that interacts with the terminal to enable the terminal and itself to obtain key information is referred to as the first router, the router on which the terminal writes the key information is referred to as the second router, the NFC sensing device of the first router is referred to as the first NFC sensing device, and the NFC sensing device of the second router is referred to as the second NFC sensing device.

[0053] Figure 1 This is a flowchart illustrating a networking method according to an exemplary embodiment, such as... Figure 1 As shown, the networking method used in the terminal includes the following steps.

[0054] In step S11, in response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, the terminal interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information.

[0055] In this embodiment of the disclosure, the terminal interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information. This can be understood as the terminal transmitting the key information to the first router, or the first router transmitting the key information to the terminal. The transmission of the key information is achieved through interaction between the terminal and the first NFC sensing device.

[0056] In step S12, in response to the terminal approaching the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, key information is written into the second NFC sensing device.

[0057] The networking method provided in this disclosure allows a terminal to write key information obtained from a first router into a second router, enabling the first and second routers to obtain shareable key information. Furthermore, the first and second routers can exchange information and establish a network using this key information.

[0058] In this embodiment, since the first or second NFC sensing device is typically a low-level NFC sensing device with only read or write capabilities, transmitting key information via a terminal can save on the deployment cost of the NFC sensing device. Furthermore, multiple routers used to build the same network are usually spaced far apart, making direct NFC interaction impossible. Therefore, transmitting key information via a terminal is more in line with practical usage needs. Of course, in a real-world router deployment scenario, if the first and second routers can directly interact via NFC, key information can also be transmitted directly through interaction between the first and second NFC sensing devices. For example, the first router writes key information to the first NFC sensing device. When the first and second NFC sensing devices are within each other's effective communication range, the first NFC sensing device writes the key information to the second NFC sensing device, allowing the second router to obtain the key information.

[0059] In one embodiment, the key information can be generated by the terminal. Furthermore, the terminal can write the key information into the first router via a first NFC sensing device, so that the first router obtains the key information.

[0060] Figure 2 This is a flowchart illustrating another networking method according to an exemplary embodiment, such as... Figure 2 As shown, step S23 of this embodiment of the disclosure is... Figure 1 The implementation process of step S12 is similar and will not be described in detail here.

[0061] In step S21, in response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, the key information generated by the terminal is determined.

[0062] The key information generated by the terminal can be obtained from a specified value input by the user, or it can be generated from a random value obtained by the terminal through a random algorithm.

[0063] For example, regarding the method of generating key information based on a specified value input by the user, the user can input different values ​​to generate different key information matching those values. Based on this, the user can construct different network topologies using key information matching different values. For instance, the user can control the terminal to transmit key information with routers B1, B2, and B3 using key information matching value A1, and control the terminal to transmit key information with routers B4, B5, and B6 using key information matching value A2. In this case, routers B1, B2, and B3 can construct network C1, and routers B4, B5, and B6 can construct network C2. Furthermore, since network C1 and network C2 use different key information, there will be no network crossover issues between network C1 and network C2 due to the use of common key information.

[0064] In step S22, the key information generated by the terminal is written into the first NFC sensing device so that the first router can obtain the key information.

[0065] In this embodiment, the method of generating key information via the terminal allows for more flexible key settings, enabling personalized configuration for different usage scenarios. Furthermore, it is understood that since multiple routers forming a network connect using key information generated by the terminal, the key information across all routers can be identical. Therefore, for multiple routers forming a network, connections can be established between any two routers, improving the connectivity between routers within the network.

[0066] In another embodiment, the key information can be generated by the first router, and the terminal can obtain the key information by reading the key information already written in the first NFC sensing device.

[0067] Figure 3 This is a flowchart illustrating yet another networking method according to an exemplary embodiment, such as... Figure 3 As shown, step S33 of this embodiment of the disclosure is... Figure 1 The implementation process of step S12 is similar and will not be described in detail here.

[0068] In step S31, in response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, the key information written in the first NFC sensing device is determined.

[0069] The key information written into the first NFC sensing device can be generated and written by the first router.

[0070] For example, the key information written in the first NFC sensing device can be generated by the first router using a random algorithm, or it can be pre-set before the first router leaves the factory. Since in this embodiment, the second router obtains the key information of the first router through a terminal, the second router does not need to pre-set the same key information as the first router before leaving the factory. Furthermore, to reduce the possibility of establishing a network between the first router and routers that obtain key information without interacting with a terminal (i.e., the pre-set key information is the same as the first router), different routers can be pre-set with different key information before leaving the factory.

[0071] In step S32, the key information already written in the first NFC sensing device is read so that the terminal can obtain the key information.

[0072] The networking method provided in this disclosure generates key information through a first router and transmits this key information to a second router via a terminal. This allows both the first and second routers to jointly obtain key information for establishing interaction. Based on this, the first router and the second router can construct a network using the key information.

[0073] Based on the same concept, this disclosure also provides a networking method for routers. It is understood that the networking method for routers provided in this disclosure can be applied to the first router or the second router involved in the above embodiments.

[0074] Figure 4 This is a flowchart illustrating a networking method according to an exemplary embodiment, such as... Figure 4 As shown, the networking method applied to a router includes the following steps.

[0075] In step S41, communication monitoring is performed using the router's NFC sensing device.

[0076] In step S42, in response to detecting that the terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, the router or the terminal interacts with the NFC sensing device to obtain key information.

[0077] The networking method provided in this disclosure allows the router to interact with the terminal via a configured NFC sensing device, enabling either the router or the terminal to obtain key information. Based on this, the router, having obtained the key information, can subsequently encrypt and broadcast networking information using the key information, or decrypt the networking information and send a networking request upon receiving encrypted networking information from other routers. In this process, the router sends networking information or a networking request to establish a network connection.

[0078] In this embodiment, the key information can be generated by the router. Through interaction between the router and the terminal, the key information generated by the router can be transmitted to the terminal, so that both the router and the terminal can obtain the key information. Alternatively, the key information can be generated by the terminal. Through interaction between the router and the terminal, the key information generated by the terminal can be transmitted to the router, so that both the router and the terminal can obtain the key information. The specific implementation methods for generating key information through the terminal or through the router have been described in the above embodiments, and related content can be referred to any of the above embodiments.

[0079] In one embodiment, the router can generate key information and write the generated key information into the NFC sensing device, so that the terminal can obtain the key information by reading the key information written in the NFC sensing device.

[0080] Figure 5 This is a flowchart illustrating another networking method according to an exemplary embodiment, such as... Figure 5 As shown, step S51 of this embodiment of the disclosure is... Figure 4 The implementation process of step S41 is similar and will not be repeated here.

[0081] In step S52, in response to detecting that the terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, the router determines that it generates and writes key information to the NFC sensing device.

[0082] In step S53, the key information written in the NFC sensing device is transmitted to the terminal so that the terminal can obtain the key information.

[0083] The method provided in this disclosure allows the key information to be transmitted to the terminal when the router generates key information and the terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, so that the terminal can obtain the key information.

[0084] In another embodiment, the router can receive key information written by the terminal via an NFC sensing device.

[0085] Figure 6 This is a flowchart illustrating yet another networking method according to an exemplary embodiment, such as... Figure 6 As shown, step S61 of this embodiment of the disclosure is... Figure 4 The implementation process of step S41 is similar and will not be repeated here.

[0086] In step S62, in response to detecting that the terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, the key information written by the terminal to the NFC sensing device is read so that the router can obtain the key information.

[0087] The method provided in this disclosure allows a router to obtain key information by receiving key information written by the terminal through the NFC sensor when the terminal is close to the NFC sensor and enters the effective communication range of the NFC sensor.

[0088] For example, by generating key information on the router or writing key information through a terminal, you can control the router to encrypt network information with the key information and broadcast the encrypted network information.

[0089] Figure 7 This is a flowchart illustrating a method for broadcasting network information via a router according to an exemplary embodiment, such as... Figure 7 As shown, it includes the following steps.

[0090] In step S71, the network information is encrypted based on the key information.

[0091] In this embodiment of the disclosure, the networking information is used to instruct other routers to target and propagate networking requests to the router that sent the networking information.

[0092] In step S72, the encrypted network information is broadcast.

[0093] In this embodiment of the disclosure, network information can be broadcast via Bluetooth. For example, the network information can be set in a management frame (mgmt), and the encrypted network information can be broadcast by broadcasting the management frame.

[0094] In step S73, in response to receiving a networking request from another router, a networking connection is established with the other router.

[0095] In this embodiment, the router can encrypt and broadcast network information using key information. Furthermore, when receiving a network request from another router, the router can establish a network connection with that router using the network request. The network request can be triggered by another router successfully decrypting the network information based on the key information.

[0096] For example, other routers can obtain the mesh address corresponding to the router that sent the network information after decrypting the network information. Furthermore, other routers can send a network request encrypted with key information to the decrypted mesh address. Based on this, the router that sent the network information can receive the network request and authenticate the key information by decrypting the request with the key information, thereby determining that the other routers are the routers that need to form a network connection. In this case, the router that sent the network information can establish a secure connection with the other routers and subsequently form a network connection.

[0097] In this embodiment, the router that broadcasts encrypted network information can be understood as the first router involved in the above embodiments. In other words, the first router can also be understood as a router that establishes a network connection by broadcasting network information and receiving network requests.

[0098] For example, a router that receives key information written by a terminal can decrypt the network information when it receives network information encrypted with key information from other routers, and send a network request if the decryption is successful.

[0099] Figure 8 This is a flowchart illustrating a method for sending a network request via a router according to an exemplary embodiment, such as... Figure 8 As shown, it includes the following steps.

[0100] In step S81, in response to receiving network information encrypted based on key information, the network information is decrypted based on the key information.

[0101] In step S82, in response to the successful decryption of the network information, a network request is sent.

[0102] The key information used to successfully decrypt the network information is obtained by the terminal through interaction with other routers.

[0103] The networking method provided in this disclosure allows a router to decrypt network information encrypted with key information using key information written by a terminal upon receiving such information. Based on this, upon successful decryption of the network information, a networking request can be sent to establish a network connection with the router that sent the network information.

[0104] In this embodiment, the router that decrypts the network information and sends the network request can be understood as the second router involved in the above embodiments. In other words, the second router can also be understood as a router that establishes a network connection by receiving and decrypting network information and sending a network request.

[0105] Figure 9 This is a schematic diagram illustrating a network formation process using key information generated by a router, according to an exemplary embodiment. For example, such as... Figure 9As shown, the first router can generate key information and write it into the first NFC sensing device. Furthermore, the first router can generate and encrypt network information, store the encrypted network information in a management frame (mgmt), and then broadcast the encrypted network information via an mgmt frame. Based on this, the second router can receive the encrypted network information and, subsequently, decrypt it with the obtained key information.

[0106] For example, a terminal can act as a medium for transmitting key information, transmitting the key information generated by the first router to the second router, so that the second router can decrypt the encrypted networking information generated by the first router using the key information. For instance, the terminal can approach the first NFC sensor to read the key information already written into the NFC sensor. Furthermore, the terminal can approach the second NFC sensor to write the previously read key information into the second router's NFC sensor. Based on this, the second router can obtain the key information by reading the key information written into the second NFC sensor, and thereby decrypt the received networking information.

[0107] For example, after successfully decrypting the network information, the second router can initiate a network request to the first router using the key information. Furthermore, upon receiving the network request, the first router can verify the key information and, if the key verification is successful, allow the second router to connect and establish a secure connection. Based on this, the first and second routers can establish a network through the established secure connection, resulting in a network consisting of the first and second routers.

[0108] Figure 10 This is a schematic diagram illustrating a network connection process using key information generated by a terminal, according to an exemplary embodiment. For example, such as... Figure 10 As shown, the terminal can generate key information and transmit it to both the first router and the second router. For example, the terminal can bring itself close to the first NFC sensor to write the generated key information to the first NFC sensor of the first router. Similarly, the terminal can bring itself close to the second NFC sensor to write the generated key information to the second NFC sensor of the second router.

[0109] Based on this, the first router can read the key information included in the first NFC sensing device and encrypt the network information using the key information, thereby enabling the broadcast of the encrypted network information. For example, the first router can store the encrypted network information in an mgmt frame and broadcast the encrypted network information by broadcasting the mgmt frame.

[0110] For example, regarding the second router, when the terminal writes key information to the second NFC sensor, it can read the key information from the second NFC sensor and, upon receiving encrypted networking information, decrypt the encrypted networking information using the key information. If the second router successfully decrypts the networking information, it can send a networking request to the first router based on the decrypted networking information. Furthermore, upon receiving the networking request, the first router can verify the key information in the networking request, and if the key information verification is successful, it can allow the second router to connect and establish a secure connection with the second router. Based on this, the first router and the second router can form a network through the established secure connection, resulting in a network consisting of the first router and the second router.

[0111] Based on the same concept, this disclosure also provides a networking system including a terminal, a first router, and a second router. The terminal is used to approach a first NFC sensing device of the first router, and when within the effective communication range of the first NFC sensing device, reads key information included in the first NFC sensing device of the first router, or writes key information generated by the terminal into the first NFC sensing device of the first router. When approaching a second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the terminal writes the key information read from the first NFC sensing device into the second NFC sensing device, or writes the key information generated by the terminal into the second NFC sensing device of the second router. The first router and the second router form a network based on the key information.

[0112] Figure 11 This is an exemplary embodiment illustrating the interaction between a terminal, a first router, and a second router, as shown in the diagram. Figure 11As shown, the interaction process between the terminal, the first router, and the second router mainly includes steps 1 to 3. For example, when the terminal or the first router generates key information, the terminal can be brought close to the first router, and NFC interaction can occur between the first router and the terminal when the terminal enters the communication range of the first NFC sensing device. For instance, the first router writes the generated key information into the first NFC sensing device, and the terminal reads the written key information from the first NFC sensing device. Alternatively, the terminal can write the generated key information into the first sensing device so that the first router obtains the key information. Through the NFC interaction between the terminal and the first router in step 1, both the first router and the terminal obtain the key information. Further, step 2 is executed, whereby the terminal is brought close to the second router, and when the terminal enters the communication range of the second NFC sensing device, the terminal is controlled to write the key information into the second NFC sensing device so that the second router obtains the key information. Based on this, the first router and the second router can obtain the key information used for network connection and then execute step 3. For example, the first router encrypts and broadcasts network information using a key. Upon receiving the encrypted network information, the second router can attempt to decrypt it using the obtained key. If decryption is successful, the second router sends a network connection request to the first router. It can be understood that the network information sent by the first router is used for broadcasting and to locate other routers for which network connection is needed. Therefore, the sent network information may include key information such as the first router's device identifier or mesh address, which is crucial for targeted propagation of network connection requests to other routers.

[0113] For example, a user can control the terminal to generate key information, read key information already written to the NFC sensor, and / or write key information to the NFC sensor through a designated application on the terminal. For instance, the user can trigger the launch of the designated application on the terminal via touch, voice, or pressing physical hardware. Furthermore, the user can control the terminal to generate key information by inputting a specified value or by touching a trigger control that randomly generates key information. As another example, the user can use the touch NFC interactive control to set the key information generated by the terminal as the information that the terminal needs to perform a write operation using NFC functionality. This allows the terminal to write the key information to the NFC sensor when it is close to the router and within the effective communication range of the router's NFC sensor. Moreover, the method for reading key information from the NFC sensor through the terminal is similar to the process of writing key information described above, and will not be elaborated upon here.

[0114] Based on the same concept, embodiments of this disclosure also provide a networking device for use in terminals.

[0115] It is understood that the networking device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0116] Figure 12 This is a block diagram of a networking device according to an exemplary embodiment. (Refer to...) Figure 12 The device 100 includes a determining unit 101 and a processing unit 102.

[0117] The determining unit 101 is used to determine that the terminal is close to the first NFC sensing device of the first router and enters the effective communication range of the first NFC sensing device. The processing unit 102, in response to the terminal being close to the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information, which is used by the first router and the second router to form a network. In response to the terminal being close to the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the processing unit 102 writes the key information into the second NFC sensing device.

[0118] In one embodiment, the processing unit 102 interacts with the first NFC sensing device in the following manner to enable the first router to obtain key information: determining the key information generated by the terminal; and writing the key information generated by the terminal into the first NFC sensing device.

[0119] In one embodiment, the processing unit 102 interacts with the first NFC sensing device in the following manner to enable the terminal to obtain key information: determining the key information already written in the first NFC sensing device; and reading the key information already written in the first NFC sensing device.

[0120] Based on the same concept, this disclosure also provides a networking device for use with routers.

[0121] Figure 13 This is a block diagram of another networking device according to an exemplary embodiment. (Refer to...) Figure 13 The device 200 includes a monitoring unit 201 and a processing unit 202.

[0122] Monitoring unit 201 is used for communication monitoring of the NFC sensing device based on the router. Processing unit 202, in response to detecting that a terminal approaches the NFC sensing device and enters the effective communication range of the NFC sensing device, interacts with the terminal through the NFC sensing device to enable the router or terminal to obtain key information, which is used by the router to form a network with other routers.

[0123] In one embodiment, the processing unit 202 interacts with the terminal via the NFC sensing device in the following manner to enable the terminal to obtain key information: determining the key information generated and written to the NFC sensing device by the router; and transmitting the key information written in the NFC sensing device to the terminal.

[0124] In one embodiment, the processing unit 202 interacts with the terminal via the NFC sensing device in the following manner to enable the router to obtain key information: reading the key information written by the terminal into the NFC sensing device.

[0125] In one embodiment, the processing unit 202 is further configured to: encrypt the network information based on key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with that router, wherein the network request is triggered after the other router successfully decrypts the network information based on the key information.

[0126] In one embodiment, the processing unit 202 is further configured to: decrypt the network information based on the key information in response to receiving network information encrypted with key information; and send a network request in response to successful decryption of the network information. The key information used to successfully decrypt the network information is obtained by the terminal through interaction with other routers.

[0127] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0128] Figure 14 This is a block diagram illustrating a networking device 300 according to an exemplary embodiment. For example, device 300 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0129] Reference Figure 14 The device 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input / output (I / O) interface 312, sensor component 314, and communication component 316.

[0130] Processing component 302 typically controls the overall operation of device 300, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 302 may include one or more modules to facilitate interaction between processing component 302 and other components. For example, processing component 302 may include a multimedia module to facilitate interaction between multimedia component 308 and processing component 302.

[0131] Memory 304 is configured to store various types of data to support the operation of device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, etc. Memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 storage, flash memory, magnetic disk, or optical disk.

[0132] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 300.

[0133] Multimedia component 308 includes a screen that provides an output interface between the device 300 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 308 includes a front-facing camera and / or a rear-facing camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0134] Audio component 310 is configured to output and / or input audio signals. For example, audio component 310 includes a microphone (MIC) configured to receive external audio signals when device 300 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 304 or transmitted via communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.

[0135] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0136] Sensor assembly 314 includes one or more sensors for providing status assessments of various aspects of device 300. For example, sensor assembly 314 may detect the on / off state of device 300, the relative positioning of components such as the display and keypad of device 300, changes in the position of device 300 or a component of device 300, the presence or absence of user contact with device 300, the orientation or acceleration / deceleration of device 300, and temperature changes of device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 314 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0137] Communication component 316 is configured to facilitate wired or wireless communication between device 300 and other devices. Device 300 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 316 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-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0138] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, which can be executed by a processor 320 of the device 300 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0140] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0141] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0142] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other elements exist between them.

[0143] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0144] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following scope of claims.

[0145] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A networking method, characterized in that, Applied to a terminal, the method includes: In response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, the terminal interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information, which is used by the first router and the second router to form a network. In response to the terminal approaching the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the key information is written into the second NFC sensing device; Different key information can build different networks, and multiple routers within the same network can connect to each other. The first router or the second router is configured to: encrypt the network information based on the key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with that other router, wherein the network request is triggered by the other router after successfully decrypting the network information based on the key information. The first router or the second router is further configured to: in response to receiving networking information encrypted based on the key information, decrypt the networking information based on the key information; in response to successful decryption of the networking information, send a networking request; wherein the key information used to successfully decrypt the networking information is obtained by the terminal through interaction with the other routers.

2. The networking method according to claim 1, characterized in that, Interacting with the first NFC sensing device to enable the first router to obtain key information includes: Determine the key information generated by the terminal; The key information generated by the terminal is written into the first NFC sensing device.

3. The networking method according to claim 1, characterized in that, Interacting with the first NFC sensing device to enable the terminal to obtain key information includes: Determine the key information already written in the first NFC sensing device; Read the key information already written in the first NFC sensing device.

4. A networking method, characterized in that, Applied to a router, the method includes: Communication monitoring is performed based on the router's NFC sensing device; In response to detecting that a terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, the router interacts with the terminal through the NFC sensing device to enable the router or the terminal to obtain key information. The key information is used by the router to form a network with other routers; different key information can build different networks, and multiple routers in the same network can connect to each other. The method further includes: encrypting the network information based on the key information; broadcasting the encrypted network information; and establishing a network connection with other routers in response to receiving a network request from other routers, wherein the network request is triggered by the other routers after successfully decrypting the network information based on the key information. The method further includes: in response to receiving network information encrypted based on the key information, decrypting the network information based on the key information; in response to successful decryption of the network information, sending a network request; wherein the key information used to successfully decrypt the network information is obtained by the terminal through interaction with the other routers.

5. The networking method according to claim 4, characterized in that, Interacting with the terminal via the NFC sensing device to enable the terminal to obtain key information includes: Determine the key information generated by the router and written to the NFC sensing device; The key information written in the NFC sensing device is transmitted to the terminal.

6. The networking method according to claim 4, characterized in that, Interacting with the terminal via the NFC sensing device to enable the router to obtain key information includes: Read the key information written by the terminal to the NFC sensing device.

7. A networking device, characterized in that, Applied to a terminal, the device includes: The determining unit is used to determine that the terminal is close to the first NFC sensing device of the first router and enters the effective communication range of the first NFC sensing device; The processing unit, in response to the terminal approaching the first NFC sensing device of the first router and entering the effective communication range of the first NFC sensing device, interacts with the first NFC sensing device to enable the first router or the terminal to obtain key information, which is used for the first router and the second router to form a network; in response to the terminal approaching the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the processing unit writes the key information into the second NFC sensing device; different key information constructs different networks, and multiple routers within the same network can connect to each other; The first router or the second router is configured to: encrypt the network information based on the key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with that other router, wherein the network request is triggered by the other router after successfully decrypting the network information based on the key information. The first router or the second router is further configured to: in response to receiving networking information encrypted based on the key information, decrypt the networking information based on the key information; in response to successful decryption of the networking information, send a networking request; wherein the key information used to successfully decrypt the networking information is obtained by the terminal through interaction with the other routers.

8. The networking device according to claim 7, characterized in that, The processing unit interacts with the first NFC sensing device in the following manner to enable the first router to obtain key information: Determine the key information generated by the terminal; The key information generated by the terminal is written into the first NFC sensing device.

9. The networking device according to claim 7, characterized in that, The processing unit interacts with the first NFC sensing device in the following manner to enable the terminal to obtain key information: Determine the key information already written in the first NFC sensing device; Read the key information already written in the first NFC sensing device.

10. A networking device, characterized in that, Applied to a router, the device includes: A monitoring unit is used for communication monitoring based on the NFC sensing device of the router; The processing unit, in response to detecting that a terminal is close to the NFC sensing device and enters the effective communication range of the NFC sensing device, interacts with the terminal through the NFC sensing device to enable the router or the terminal to obtain key information. The key information is used by the router to form a network with other routers; different key information can build different networks, and multiple routers in the same network can connect to each other. The processing unit is further configured to: encrypt the network information based on the key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with the other router, wherein the network request is triggered by the other router successfully decrypting the network information based on the key information. The processing unit is further configured to: in response to receiving network information encrypted based on the key information, decrypt the network information based on the key information; in response to successful decryption of the network information, send a network request; wherein the key information used to successfully decrypt the network information is obtained by the terminal through interaction with the other routers.

11. The networking device according to claim 10, characterized in that, The processing unit interacts with the terminal via the NFC sensing device in the following manner to enable the terminal to obtain key information: Determine the key information generated by the router and written to the NFC sensing device; The key information written in the NFC sensing device is transmitted to the terminal.

12. The networking device according to claim 10, characterized in that, The processing unit interacts with the terminal via the NFC sensing device in the following manner to enable the router to obtain key information: Read the key information written by the terminal to the NFC sensing device.

13. A networking system, characterized in that, The networking system includes terminals, a first router, and a second router, wherein... The terminal is used to approach the first NFC sensing device of the first router and, when entering the effective communication range of the first NFC sensing device, read the key information included in the first NFC sensing device of the first router, or write the key information generated by the terminal into the first NFC sensing device of the first router. When approaching the second NFC sensing device of the second router and entering the effective communication range of the second NFC sensing device, the terminal writes the key information read from the first NFC sensing device into the second NFC sensing device, or writes the key information generated by the terminal into the second NFC sensing device of the second router. The first router and the second router form a network based on the key information; different key information builds different networks, and multiple routers in the same network can connect to each other. The first router or the second router is configured to: encrypt the network information based on the key information; broadcast the encrypted network information; and, in response to receiving a network request from another router, establish a network connection with that other router, wherein the network request is triggered by the other router after successfully decrypting the network information based on the key information. The first router or the second router is further configured to: in response to receiving networking information encrypted based on the key information, decrypt the networking information based on the key information; in response to successful decryption of the networking information, send a networking request; wherein the key information used to successfully decrypt the networking information is obtained by the terminal through interaction with the other routers.

14. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the networking method according to any one of claims 1 to 3, or to execute the networking method according to any one of claims 4 to 6.

15. A storage medium, characterized in that, The storage medium stores instructions that, when executed by a processor, enable the processor to perform the networking method according to any one of claims 1 to 3, or the networking method according to any one of claims 4 to 6.