Networking method, networking device, electronic equipment and computer readable storage medium

The transmission of beacons and manufacturer information interaction through the target point-to-point protocol solves the problems of WiFi device networking delay and management costs, and realizes efficient and secure networking connection and network management.

CN120812774APending Publication Date: 2025-10-17HENGXUAN TECHNOLOGY (CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511208389.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Existing WiFi devices require authentication when networking, which leads to delayed network response and increased system management costs.

Method used

It uses beacons transmitted using a targeted point-to-point protocol, utilizes manufacturer information for device identification and interaction, establishes networking connections, and implements automated network management by updating management information.

Benefits of technology

It improves network security and network connection efficiency, simplifies the device connection process, and enhances network scalability and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120812774A_ABST
    Figure CN120812774A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a networking method, a networking device, electronic equipment and a computer readable storage medium. The networking method is applied to a first device in a WiFi network, and comprises: in response to receiving a first beacon, determining a to-be-connected second device, the first beacon being transmitted based on a target point-to-point protocol, and the first beacon comprising first manufacturer information; based on the first manufacturer information, performing communication interaction with a second device to obtain device information of the second device; and based on the device information of the second device, updating the first management information of the device corresponding to the target point-to-point protocol, and completing networking connection with the second device. The networking connection is established by using the first manufacturer information in the first beacon, so that the connection process between the devices can be greatly simplified, the networking connection efficiency is improved, the first management information is updated through the device information of the second device, automatic network management can be realized, and the expansibility of the network can be enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of communication technology, and in particular, to a networking method, a networking device, an electronic device, and a computer readable storage medium. BACKGROUND

[0002] With the development of technology, WIFI is widely used. In the prior art, when a device with WiFi function needs to quickly transmit data, it often transmits data through a wireless soft AP (Soft-AP, a wireless product based on a standard wireless card and simulating the signal switching and routing function of a traditional wireless access point (AP) through a driver program), a peer-to-peer network (Peer to Peer, P2P, also known as a workgroup), or a wireless mesh network (mesh) networking method.

[0003] However, no matter which way is used for transmission, the device to be connected needs to be authenticated first and then a networking connection is established, which will cause a networking delay response and increase the system management cost. SUMMARY

[0004] To overcome the problems in the related art, an exemplary embodiment of the present disclosure provides a networking method applied to a first device under a WiFi network. The method comprises: in response to receiving a first beacon, determining a second device to be connected, wherein the first beacon is transmitted based on a target point-to-point protocol, and the first beacon includes first manufacturer information; based on the first manufacturer information, communicating with the second device to obtain device information of the second device; based on the device information of the second device, updating first management information of a device corresponding to the target point-to-point protocol, and completing networking connection between the first device and the second device.

[0005] In some embodiments, based on the first manufacturer information, the second device is communicated with to obtain the device information of the second device, which comprises: based on the first manufacturer information, the second device is communicated with to determine an execution device of networking; in response to the execution device being the first device, a first start parameter for networking is sent to the second device to enable the second device to establish networking connection with the first device based on the first start parameter, and obtain the device information of the second device.

[0006] In some embodiments, based on the first manufacturer information, the second device is communicated with to obtain the device information of the second device, which further comprises: in response to the execution device being the second device, the first start parameter sent by the second device is received; based on the first start parameter, the first device is established networking connection with, and the device information of the second device is obtained.

[0007] In some embodiments, based on the device information of the second device, the first management information of the target point-to-point protocol corresponding device is updated, and the networking connection with the second device is completed, including: adding the device information of the second device to the first management information of the target point-to-point protocol corresponding device, and updating the first management information; and in response to the updated first management information not changing within a duration, it is determined that the networking connection is completed.

[0008] In some embodiments, the first management information corresponds to other devices, and based on the device information of the second device, the first management information of the target point-to-point protocol corresponding device is updated, and the networking connection with the second device is completed, further including: synchronizing the updated first management information to the other devices to inform the networking connection relationship between the first device and the second device.

[0009] In some embodiments, the method further includes: constructing a second beacon; and based on the target point-to-point protocol, sending the second beacon in a broadcast manner to establish a networking connection with a device capable of receiving the second beacon.

[0010] In some embodiments, the second beacon includes second vendor information, and the second vendor information and the first vendor information both include an identifier of the target point-to-point protocol, and the identifier is hidden data.

[0011] In a second aspect, the disclosure also provides a networking method applied to a first device in a WiFi network, including: based on a target point-to-point protocol, sending a second beacon in a broadcast manner, wherein the second beacon is constructed based on first management information of a target point-to-point protocol corresponding device, and the second beacon includes second vendor information; based on the second vendor information, communicating with a third device to obtain device information of the third device, wherein the third device is a device that receives the second beacon and responds; based on the device information of the third device, updating the first management information, and completing the networking connection with the third device.

[0012] In some embodiments, based on the second vendor information, communicating with the third device to obtain the device information of the third device includes: based on the second vendor information, communicating with the third device to determine an execution device of the networking; and in response to the execution device being the first device, sending a second start parameter of the target point-to-point connection to the third device, so that the third device establishes the networking connection with the first device based on the second start parameter, and obtains the device information of the third device.

[0013] In some embodiments, based on the second vendor information, communicating with the third device to obtain the device information of the third device further includes: in response to the execution device being the third device, receiving the second start parameter sent by the third device; and based on the second start parameter, establishing the networking connection with the first device, and obtaining the device information of the third device.

[0014] In some embodiments, based on the device information of the third device, the first management information is updated, and the networking connection with the third device is completed, including: adding the device information of the third device to the first management information, and updating the first management information; and in response to the updated first management information not being changed within a duration, it is determined that the networking connection is completed.

[0015] In some embodiments, the device corresponding to the first management information further includes other devices, and based on the device information of the third device, the first management information is updated, and the networking connection with the third device is completed, further including: synchronizing the updated first management information to the other devices, to inform the networking connection relationship between the first device and the third device.

[0016] In some embodiments, the method further includes: based on the second manufacturer information, communicating with a fourth device to join the fourth device corresponding point-to-point protocol networking connection based on the device information of the first device, and completing the networking connection; wherein the fourth device is another device that receives the second beacon and responds, and the fourth device corresponding point-to-point protocol is compatible with the target point-to-point protocol.

[0017] In some embodiments, the second manufacturer information includes an identifier of the target point-to-point protocol, and the identifier is hidden data.

[0018] In a third aspect, the disclosure also provides a networking device applied to a first device in a WiFi network, including: a first processing module configured to determine a second device to be connected in response to receiving a first beacon, wherein the first beacon is transmitted based on a target point-to-point protocol, and the first beacon includes first manufacturer information; a first communication module configured to communicate with the second device based on the first manufacturer information to obtain device information of the second device; and a first updating module configured to update first management information of a device corresponding to the target point-to-point protocol based on the device information of the second device, and complete the networking connection with the second device.

[0019] In a fourth aspect, the disclosure also provides a networking device applied to a first device in a WiFi network, including: a sending module configured to send a second beacon in a broadcast manner based on a target point-to-point protocol, wherein the second beacon is constructed based on first management information of a device corresponding to the target point-to-point protocol, and the second beacon includes second manufacturer information; a second communication module configured to communicate with a third device based on the second manufacturer information to obtain device information of the third device, wherein the third device is a device that receives the second beacon and responds; and a second updating module configured to update the first management information based on the device information of the third device, and complete the networking connection with the third device.

[0020] In a fifth aspect, the present disclosure also provides an electronic device, comprising a memory and a processor, which are connected in communication with each other, and the memory stores computer instructions, and the processor executes the computer instructions to perform the networking method provided in any of the aspects above.

[0021] In a sixth aspect, the present disclosure also provides a computer readable storage medium storing a program for performing the networking method provided in any of the aspects above.

[0022] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not limiting to the present disclosure.

[0023] The technical solution provided by the embodiments of the present disclosure can include the following beneficial effects: According to the networking method provided by the present disclosure, the first beacon transmitted based on the target point-to-point protocol is used for communication transmission under the WiFi network, which can ensure that the two devices communicating based on the first beacon can communicate based on the target point-to-point protocol, thereby improving the overall security of the network. The first device establishes a networking connection by using the first manufacturer information in the first beacon, which can greatly simplify the connection process between devices, improve the networking connection efficiency, and then update the first management information of the device corresponding to the target point-to-point protocol through the device information of the second device, so as to realize automatic network management, which is helpful to enhance the expansibility of the network. BRIEF DESCRIPTION OF DRAWINGS

[0024] The present disclosure can be better understood by describing the exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, in which:

[0025] Figure 1 is a flow diagram of a networking method according to an embodiment of the present disclosure;

[0026] Figure 2 is a network topology diagram according to an embodiment of the present disclosure;

[0027] Figure 3 is another network topology diagram according to an embodiment of the present disclosure;

[0028] Figure 4 is a device interaction diagram for establishing a networking connection according to an embodiment of the present disclosure;

[0029] Figure 5 is a flow diagram of another networking method according to an embodiment of the present disclosure;

[0030] Figure 6 is another device interaction diagram for establishing a networking connection according to an embodiment of the present disclosure;

[0031] Figure 7 is a device interaction diagram for establishing a networking connection according to an embodiment of the present disclosure;

[0032] Figure 8 is another device interaction diagram for establishing a networking connection according to an embodiment of the present disclosure;

[0033] Figure 9 is a structural block diagram of a networking device according to an embodiment of the present disclosure;

[0034] Figure 10 is another structural block diagram of a networking device according to an embodiment of the present disclosure;

[0035] Figure 11 is a hardware structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The specific embodiments of the present disclosure will be described hereinafter, and it should be noted that, in the specific description of these embodiments, the present specification cannot describe all the features of the actual embodiments in detail for the sake of brevity. It should be understood that, in the actual implementation of any one embodiment, as in the process of any engineering project or design project, various specific decisions must be made in order to achieve the specific goals of the developers, to meet the system-related or business-related constraints, and these decisions will change from one embodiment to another. In addition, it should be understood that, although the efforts made in this development process can be complex and lengthy, some design, manufacturing or production changes made on the basis of the technical content disclosed in the present disclosure by those of ordinary skill in the art related to the content of the present disclosure are only routine technical means and should not be understood as insufficient disclosure of the present disclosure.

[0037] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood as the usual meaning understood by those skilled in the art to which the present disclosure belongs. The terms "first", "second" and the like used in the present disclosure do not represent any order, number or importance, but are only used to distinguish different components. The terms "one" or "a" and the like do not represent a quantity limitation, but represent the existence of at least one. The terms "including", "containing" and the like mean that the elements or objects appearing before "including" or "containing" cover the elements or objects listed after "including" or "containing" and their equivalent elements, and do not exclude other elements or objects. The terms "connected" or "connected" and the like are not limited to physical or mechanical connections, and are not limited to direct or indirect connections.

[0038] In the prior art, when a device with WiFi function needs to quickly transmit data, it often transmits data through a wireless soft AP (Soft-AP, a wireless product based on a standard wireless card and simulating the signal switching and routing function of a traditional wireless access point (AP) through a driver program), a peer-to-peer network (Peer to Peer, P2P, also known as a workgroup), or a wireless mesh network (Mesh) networking mode.

[0039] When data transmission is performed in the softap or p2p networking mode, there are authentication (Auth) and association processes, thereby increasing the connection burden. When data transmission is performed in the Mesh networking mode, the node management function is increased, but at the same time, the system resource overhead is also increased, and the addition and deletion of intermediate nodes have an impact on the entire Mesh network architecture.

[0040] It can be seen that, regardless of which networking mode is used for data transmission, the device to be connected needs to be authenticated first and then the networking connection is established, thereby causing a networking delay response and increasing the system management cost.

[0041] To solve the above problems, the present disclosure provides a networking method applied to a first device under a WiFi network. As shown in Figure 1 The networking method can include:

[0042] Step S110, in response to receiving a first beacon, determining a second device to be connected.

[0043] The first device is a device capable of communicating with other devices based on a target point-to-point protocol. At least one point-to-point group is allowed to exist under the WiFi network. The point-to-point group is a network group composed of multiple devices based on the point-to-point protocol, and different point-to-point groups correspond to different point-to-point protocols. The first device and the second device can be any device capable of communicating and connecting based on the WiFi network, such as a mobile phone, a tablet, a head-mounted playback device, or a smart home, etc.

[0044] In response to receiving the first beacon, it is indicated that there is a device capable of communicating and interacting with the first device based on the target point-to-point protocol. Therefore, to establish a networking connection with the device, the sending end sending the first beacon is determined through the received first beacon, and the sending end is taken as the second device to be connected. The first beacon is transmitted based on the target point-to-point protocol, and the first beacon includes first manufacturer information. Through the first manufacturer information in the first beacon, the first device can quickly identify which manufacturer provides the device under the WiFi network, and then it can quickly determine whether the device is a legal device, thereby helping to ensure the security of the network connection.

[0045] In step S120, the first device communicates with the second device based on the first manufacturer information to obtain device information of the second device.

[0046] The first manufacturer information can ensure the security of the network connection, and can determine that the second device is a legal device capable of communicating with the first device based on the target point-to-point protocol. Thus, the first device communicates with the second device to obtain the device information of the second device, so as to ensure the security of the network connection when establishing the networking connection subsequently. The device information of the second device can include, but is not limited to, a device unique identifier (ID), a media access control (MAC) address, an Internet Protocol (IP) address, a connection state, and the like of the second device.

[0047] By obtaining the device information of the second device, the first device can better understand the characteristics of the second device, so as to provide more optimized services or make appropriate configuration adjustments to improve the response performance of the networking connection.

[0048] In step S130, the first management information of the device corresponding to the target point-to-point protocol is updated based on the device information of the second device, and the networking connection between the first device and the second device is completed.

[0049] The first management information includes device information of a plurality of devices establishing a networking relationship based on the target point-to-point protocol. By the first management information, the plurality of devices involved in the networking topology corresponding to the target point-to-point protocol can be determined.

[0050] The obtained device information of the second device is supplemented into the first management information to update the first management information, so that it is clear that the second device is connected to the first device under the network corresponding to the target point-to-point protocol, and the second device becomes one of the nodes in the networking topology corresponding to the target point-to-point protocol, thereby completing the construction of the point-to-point networking.

[0051] According to the networking method provided by the present disclosure, under the WiFi network, the first beacon transmitted based on the target point-to-point protocol is communicated, which can ensure that the two devices communicating based on the first beacon are both capable of communicating based on the target point-to-point protocol, thereby improving the overall security of the network. The first device establishes the networking connection by using the first manufacturer information in the first beacon, which can greatly simplify the connection process between devices and improve the efficiency of the networking connection. Furthermore, by updating the first management information of the device corresponding to the target point-to-point protocol based on the device information of the second device, the automatic network management can be realized, which is helpful to enhance the expansibility of the network.

[0052] In some optional application scenarios, when networking is performed by the networking method provided in the disclosure, the networking topology can be a one-to-one connection relationship as shown in Figure 2 or a many-to-many connection relationship as shown in Figure 3 .

[0053] In some embodiments, the above step S120 can include:

[0054] Step a1, based on the first manufacturer information, communicating with the second device to determine the execution device of networking;

[0055] Step a2, in response to the execution device being the first device, sending the first start parameter for networking to the second device, so that the second device establishes a networking connection with the first device based on the first start parameter, and obtains the device information of the second device.

[0056] Specifically, according to the first manufacturer information, the first device can determine the manufacturer information corresponding to the second device, and then evaluate whether the two devices can communicate through the first manufacturer information. The first manufacturer information can include but is not limited to manufacturer database, manufacturer authentication certificate and the like.

[0057] When the first device determines that it can communicate with the second device, it negotiates with the second device to determine the execution device of networking. The execution device can be understood as the party responsible for establishing and maintaining the connection. The negotiation process can include but is not limited to: the first device determines the first start parameter that the two devices can perform data transmission based on the communication connection between the first device and the second device, and the network capabilities and performance of the two devices, to determine the most suitable role to execute. The first start parameter can include but is not limited to working channel (a specific frequency channel used for communication), working bandwidth, working mode, and pre-shared key and the like.

[0058] If it is determined in the negotiation process that the first device is the execution device, it indicates that the network capabilities and performance of the first device are relatively more stable, and then the first device sends the first start parameter that can be used for networking connection to the second device, so that the second device can configure according to the first start parameter, and after the configuration is completed, the second device establishes a networking connection with the first device through the first start parameter, and informs the first device of the device information of the second device, so that the first device can update the first management information according to the obtained device information of the second device. The first start parameter can include but is not limited to the working channel (a specific frequency channel used for communication) that the second device can establish a networking connection with the first device, the working bandwidth, the working mode, and the pre-shared key and the like.

[0059] In some embodiments, the step S120 can further include:

[0060] Step a3, in response to the execution device being the second device, receiving the first startup parameter sent by the second device;

[0061] Step a4, establishing a networking connection with the first device based on the first startup parameter, and obtaining device information of the second device.

[0062] Specifically, in response to the execution device being the second device, the network capability and performance of the second device are relatively more stable, and then the second device sends the first startup parameter that can be used for networking connection to the first device, and the first device is configured according to the received first startup parameter, and after the configuration is completed, the first device establishes a networking connection with the second device by running the first startup parameter. After the first device and the second device complete the networking connection, the device information of the second device is obtained to supplement the device information of the second device to the first management information, update the first management information, so as to facilitate subsequent targeted management of multiple devices based on the target point-to-point protocol to establish a networking relationship, and improve the efficiency and accuracy of network management.

[0063] In some embodiments, the step S130 can include:

[0064] Step b1, adding the device information of the second device to the first management information of the target point-to-point protocol corresponding device, and updating the first management information;

[0065] Step b2, in response to the updated first management information not changing within a continuous time length, determining that the networking connection is completed.

[0066] Specifically, the device information of the second device is added to the first management information of the target point-to-point protocol corresponding device, and the first management information is updated, so that the updated first management information includes the device information of the newly added second device.

[0067] Since the first device may also establish a networking connection with other devices in the process of establishing a networking connection with the second device, or other devices in the first management information establish a new networking connection, in order to determine whether the topology relationship of the networking in which the first device is located is stable or whether it is still in the updating state, the updating state of the first management information is determined.

[0068] The continuous time length can be understood as the maximum waiting time length for determining that the first management information stops updating. In response to the updated first management information not changing within the continuous time length, it is indicated that the first management information has stopped updating, and the topology relationship of the networking in which the first device is located has been stable, and then it can be determined that the networking connection has been completed.

[0069] In some embodiments, the first management information corresponds to a device further comprising other devices, and the step S130 can further comprise: synchronizing the updated first management information to the other devices to inform the networking connection relationship between the first device and the second device. According to the first management information, it can be determined that the device corresponding to the first management information further comprises other devices in addition to the first device, that is, the topology relationship of the networking to which the first device belongs further comprises other devices. Therefore, in order to enable the other devices to explicitly know that a new node (the second device) is added in the networking to which the other devices belong, the updated first management information is synchronized to the other devices to inform the other devices of the networking connection relationship between the first device and the second device, so that the other devices can know the latest layout of the network and the connection relationship between the devices based on the obtained updated first management information, and the topology structure of the entire network is consistent, thereby helping to avoid communication errors and conflicts and ensuring the stability of network communication.

[0070] In some embodiments, the networking method can further comprise the following steps:

[0071] Step c1, constructing a second beacon;

[0072] Step c2, sending the second beacon in a broadcast manner based on a target point-to-point protocol to establish a networking connection with a device capable of receiving the second beacon.

[0073] Specifically, in order to enable the first device to continue to establish a networking connection with other devices under the WiFi network, a second beacon is constructed to inform the network information of the networking to which the first device belongs.

[0074] The second beacon is sent in a broadcast manner based on the target point-to-point protocol, which can ensure that the devices capable of receiving the second beacon are all devices capable of communicating with the first device based on the target point-to-point protocol, thereby ensuring the security of network communication and avoiding misconnection. Moreover, the second beacon is sent in a broadcast manner, which can ensure that the second beacon can cover all devices within the coverage range of the WiFi network signal, thereby helping to ensure that the devices capable of establishing a networking connection with the first device can all receive the second beacon, avoiding the occurrence of missed connection, and enabling the devices capable of receiving the second beacon to establish a networking connection with the first device.

[0075] In some embodiments, the second beacon comprises second vendor information, the second vendor information and the first vendor information both comprise an identifier of a target point-to-point protocol, and the identifier is hidden data. The second vendor information can be understood as information that facilitates other devices to quickly identify which vendor provides the first device in the WiFi network, so as to evaluate whether the first device can communicate with it. By placing the target point-to-point protocol in the first vendor information and the second vendor information, it can be ensured that when the two communicate and interact, they are based on the target point-to-point protocol communication, which can effectively avoid the situation of misconnection and ensure the security of network communication. Moreover, by setting the identifier as hidden data, it can effectively prevent unauthorized devices or users from easily identifying the network name through conventional means, which helps to increase the security of the network and makes potential intruders may not immediately discover the existence of the network. In some application scenarios, the identifier of the target point-to-point protocol can be understood as referring to the SSID (Service Set Identifier, a wireless network name used to identify the identity of the network), which can be set as hidden data in any of the following ways: setting the field where the SSID is located to zero or using encryption / encoding technology to hide, so as to ensure the invisibility of the SSID.

[0076] In some optional application scenarios, as shown in Figure 4 The interaction process in which the first device and the second device establish a networking connection can be as follows:

[0077] The first device receives the first beacon sent by the second device.

[0078] The first device communicates and interacts with the second device based on the first vendor information in the first beacon, and determines the execution device of networking.

[0079] In the case where the execution device is the first device, the first device sends the first start parameter for networking to the second device; the second device establishes a networking connection with the first device based on the first start parameter, and sends the device information of the second device.

[0080] Or, in the case where the execution device is the second device, the second device sends the first start parameter and the device information of the second device to the first device; the first device establishes a networking connection with the second device based on the first start parameter, and obtains the device information of the second device.

[0081] Based on the device information of the second device, the first management information of the device corresponding to the target point-to-point protocol is updated, and the networking connection with the second device is completed.

[0082] Through the networking method provided by the present disclosure, without the need for a relay node, fast communication can be achieved through point-to-point networking, and the connection efficiency of networking is improved.

[0083] Based on the same inventive concept, the disclosure also provides a networking method applied to a first device under a WiFi network. As shown in the figure, the networking method can include: Figure 5

[0084] In step S210, a second beacon is sent in a broadcast manner based on a target point-to-point protocol.

[0085] The second beacon is constructed based on first management information of a device corresponding to the target point-to-point protocol, and the second beacon includes second vendor information.

[0086] The second beacon is sent in a broadcast manner based on the target point-to-point protocol, which can ensure that the devices that can receive the second beacon are devices that can communicate with the first device based on the target point-to-point protocol, thereby ensuring the security of network communication and avoiding misconnection. Moreover, the second beacon is sent in a broadcast manner, which can ensure that the second beacon can cover all devices within the coverage range of the WiFi network signal, thereby helping to ensure that the devices that can establish a networking connection with the first device can receive the second beacon, avoiding the situation of missing connection, and enabling the devices that receive the second beacon to establish a networking connection with the first device.

[0087] In step S220, based on the second vendor information, the third device is communicated and interacted with to obtain device information of the third device.

[0088] The third device is a device that receives the second beacon and responds. When it is determined that the third device can receive the second beacon and respond, it indicates that the third device can communicate and interact with the first device based on the target point-to-point protocol, and the third device is a legal device, and then the third device is communicated and interacted with to obtain the device information of the third device, so as to ensure the security of network connection when establishing a networking connection later.

[0089] In step S230, based on the device information of the third device, the first management information is updated, and the networking connection with the third device is completed.

[0090] The first management information includes device information of a plurality of devices establishing a networking relationship based on the target point-to-point protocol. Through the first management information, a plurality of devices involved in the networking topology corresponding to the target point-to-point protocol can be determined.

[0091] The obtained device information of the third device is supplemented into the first management information to update the first management information, which explicitly indicates that the third device is connected with the first device under the network corresponding to the target point-to-point protocol, and the third device becomes one of the nodes in the networking topology corresponding to the target point-to-point protocol, thereby completing the construction of the point-to-point networking.

[0092] ​According to the networking method provided in the present disclosure, under the WiFi network, the first device can determine the third device capable of establishing a communication connection with the first device based on the target point-to-point protocol by sending the second beacon in a broadcast manner, and then establish a networking connection with the third device, which can not only improve the overall security of the network, but also greatly simplify the connection process between devices and improve the networking connection efficiency, so that the first management information of the target point-to-point protocol can be updated through the device information of the third device, and the automatic network management can be realized, which is helpful to enhance the expansibility of the network.

[0093] In some embodiments, the step S220 can include:

[0094] Step d1, communicating with the third device based on the second manufacturer information to determine the execution device of the networking;

[0095] Step d2, in response to the execution device being the first device, sending the second start parameter of the target point-to-point connection to the third device, so that the third device establishes a networking connection with the first device based on the second start parameter, and obtains the device information of the third device.

[0096] Specifically, when the first device determines that it can communicate with the third device, the first device negotiates with the third device to determine the execution device of the networking.

[0097] If it is determined in the negotiation process that the first device is the execution device, it indicates that the network capability and performance of the first device are relatively more stable, and then the first device sends the second start parameter that can be used for networking connection to the second device, so that the third device can perform related configuration according to the second start parameter, and after the configuration is completed, the third device establishes a networking connection with the first device by running the second start parameter, and informs the first device of the device information of the third device, so that the first device can update the first management information according to the obtained device information of the third device. The second start parameter can include but is not limited to a working channel (Working Channel, a specific frequency channel used for communication), a working bandwidth, a working mode, and a pre-shared key, etc. that the third device can establish a networking connection with the first device.

[0098] In some other embodiments, the step S220 can also include:

[0099] Step d3, in response to the execution device being the third device, receiving the second start parameter sent by the third device;

[0100] Step d4, establishing a networking connection with the first device based on the second start parameter, and obtaining the device information of the third device.

[0101] Specifically, in response to the executing device being the third device, the network capability and performance of the third device are relatively more stable, and then the second start parameter that can be used for the network connection is sent to the first device by the third device, the first device is configured according to the received second start parameter, and after the configuration is completed, the network connection is established with the third device by running the first start parameter. After the first device and the third device complete the network connection, the device information of the third device is obtained to supplement the device information of the third device into the first management information, and the first management information is updated, so that subsequent management of multiple devices based on the target point-to-point protocol to establish a network connection relationship can be targeted, and the efficiency and accuracy of network management are improved.

[0102] In some embodiments, the above step S230 can include:

[0103] Step e1, adding the device information of the third device into the first management information to update the first management information;

[0104] Step e2, in response to the updated first management information not changing within a continuous time length, determining that the network connection is completed.

[0105] Specifically, the third device information is added to the first management information of the target point-to-point protocol corresponding device to update the first management information, so that the updated first management information includes the device information of the newly added third device.

[0106] Since the first device may also establish a network connection with other devices in the process of establishing a network connection with the third device, or other devices in the first management information establish a new network connection, in order to determine whether the topology relationship of the network where the first device is located is stable or still in the updating state, the updating state of the first management information is determined. In response to the updated first management information not changing within a continuous time length, it is indicated that the first management information has stopped updating, and the topology relationship of the network where the first device is located has been stable, and then it can be determined that the network connection has been completed.

[0107] In other embodiments, the first management information corresponds to other devices, and the above step S230 can further include: synchronizing the updated first management information to the other devices to inform the network connection relationship between the first device and the third device, so that the other devices can understand the latest layout of the network and the connection relationship between the devices based on the obtained updated first management information, and ensure that the topology structure of the entire network is consistent, thereby helping to avoid communication errors and conflicts and ensuring the stability of network communication.

[0108] In some embodiments, the networking method can further include: based on the second vendor information, communicating with a fourth device to join a networking connection of a point-to-point protocol corresponding to the fourth device based on the device information of the first device, and completing the networking connection. The fourth device is another device that receives the second beacon and responds, and the point-to-point protocol corresponding to the fourth device is compatible with the target point-to-point protocol. That is, the first device can communicate with the fourth device based on the second vendor information to request to establish a networking relationship with the fourth device, join the networking connection of the point-to-point protocol corresponding to the fourth device, so that the first device can become one of the nodes in the networking topology of the point-to-point protocol corresponding to the fourth device, and complete the networking connection.

[0109] In this way, the first device can access other devices to the networking topology relationship in which the first device is located, or join the networking topology relationship in which other devices are located, so that the establishment of the networking relationship is more flexible, which helps to enhance the expansibility of the network.

[0110] In some embodiments, the second vendor information includes an identifier of the target point-to-point protocol, and the identifier is hidden data, which can effectively prevent unauthorized devices or users from easily identifying the network name through conventional means, thereby helping to increase the security of the network, so that potential intruders may not immediately discover the existence of the network.

[0111] In some optional application scenarios, as shown in Figure 6 The interaction process of the first device and the third device for establishing the networking connection can be as follows:

[0112] The first device sends the second beacon in a broadcast manner based on the target point-to-point protocol.

[0113] The third device responds to the received second beacon, communicates with the first device based on the second vendor information in the second beacon, and determines the execution device of the networking.

[0114] In the case where the execution device is the first device, the first device sends the second start parameter for networking to the third device; the third device establishes the networking connection with the first device based on the second start parameter, and sends the device information of the third device.

[0115] Or, in the case where the execution device is the third device, the third device sends the second start parameter and the device information of the third device to the first device; the first device establishes the networking connection with the third device based on the second start parameter, and obtains the device information of the third device.

[0116] Based on the device information of the third device, the first management information of the device corresponding to the target point-to-point protocol is updated, and the networking connection with the third device is completed.

[0117] Through the networking method provided by the present disclosure, without a relay node, fast communication can be achieved in a point-to-point networking manner, and the connection efficiency of networking is improved.

[0118] In some optional application scenarios, if the number of third devices is one, the communication interaction diagram of establishing the networking connection is as shown in Figure 7 In some optional application scenarios, if the number of third devices is one, the communication interaction diagram of establishing the networking connection is as shown in

[0119] In some optional application scenarios, if the number of third devices is one, the communication interaction diagram of establishing the networking connection is as shown in Figure 8 In some optional application scenarios, if the number of third devices is one, the communication interaction diagram of establishing the networking connection is as shown in

[0120] Based on the same inventive concept, the present disclosure further provides a networking device applied to a first device in a WiFi network, as shown in Figure 9 The networking device 300 can include:

[0121] The first processing module 310 is configured to determine a second device to be connected in response to receiving a first beacon, wherein the first beacon is transmitted based on a target point-to-point protocol, and the first beacon includes first manufacturer information.

[0122] The first communication module 320 is configured to perform communication interaction with the second device based on the first manufacturer information to obtain device information of the second device.

[0123] The first updating module 330 is configured to update first management information of a device corresponding to the target point-to-point protocol based on the device information of the second device, and complete the networking connection with the second device.

[0124] In some embodiments, the first communication module 320 includes a first determining unit configured to perform communication interaction with the second device based on the first manufacturer information to determine an execution device of networking, and a first sending unit configured to, in response to the execution device being the first device, send first start parameters for networking to the second device, so that the second device establishes a networking connection with the first device based on the first start parameters to obtain the device information of the second device.

[0125] In some embodiments, the first communication module 320 further includes a first receiving unit configured to, in response to the execution device being the second device, receive the first start parameters sent by the second device, and a first execution unit configured to establish a networking connection with the first device based on the first start parameters and obtain the device information of the second device.

[0126] In some embodiments, the first updating module 330 comprises: a first updating unit, configured to add the device information of the second device into the first management information of the target point-to-point protocol corresponding device, and update the first management information; and a second determining unit, configured to determine that the networking connection is completed in response to the updated first management information not being changed within a continuous time length.

[0127] In some embodiments, the device corresponding to the first management information further comprises other devices, and the first updating module 330 further comprises: a first synchronizing unit, configured to synchronize the updated first management information to the other devices, so as to inform the networking connection relationship between the first device and the second device.

[0128] In some embodiments, the networking apparatus 300 further comprises: a constructing module, configured to construct a second beacon; and a second processing module, configured to send the second beacon in a broadcast manner based on the target point-to-point protocol, so as to establish the networking connection with the device capable of receiving the second beacon.

[0129] In some embodiments, the second beacon comprises the second vendor information, and the second vendor information and the first vendor information both comprise the identifier of the target point-to-point protocol, and the identifier is hidden data.

[0130] As to the networking apparatus in the above embodiments, the specific manners in which the modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.

[0131] Based on the same inventive concept, the disclosure further provides a networking apparatus applied to a first device under a WiFi network, as shown in the following Figure 10 The networking apparatus 400 can comprise:

[0132] a sending module 410, configured to send a second beacon in a broadcast manner based on a target point-to-point protocol, wherein the second beacon is constructed based on first management information of a target point-to-point protocol corresponding device, and the second beacon comprises second vendor information;

[0133] a second communication module 420, configured to communicate with a third device based on the second vendor information, so as to obtain device information of the third device, wherein the third device is a device receiving the second beacon and responding to the second beacon;

[0134] a second updating module 430, configured to update the first management information based on the device information of the third device, and complete the networking connection with the third device.

[0135] In some embodiments, the second communication module 420 can comprise a third determining unit configured to determine an execution device of the networking based on the second vendor information and communicate with a third device; a second sending unit configured to, in response to the execution device being the first device, send the second start parameter of the target point-to-point connection to the third device, so that the third device establishes the networking connection with the first device based on the second start parameter and obtains device information of the third device.

[0136] In some embodiments, the second communication module 420 can further comprise a second receiving unit configured to, in response to the execution device being the third device, receive the second start parameter sent by the third device; and a second execution unit configured to establish the networking connection with the first device based on the second start parameter and obtain the device information of the third device.

[0137] In some embodiments, the second update module 430 can comprise a second updating unit configured to add the device information of the third device to the first management information and update the first management information; and a fourth determining unit configured to, in response to the updated first management information not being changed within a continuous time length, determine that the networking connection is completed.

[0138] In some embodiments, the first management information corresponds to other devices in addition to the device, and the second update module 430 can further comprise a second synchronization unit configured to synchronize the updated first management information to the other devices to inform the networking connection relationship between the first device and the third device.

[0139] In some embodiments, the networking device 400 can further comprise a third communication module configured to, based on the second vendor information, communicate with a fourth device to join the fourth device in the networking connection corresponding to the point-to-point protocol based on the device information of the first device and complete the networking connection; wherein the fourth device is another device that receives the second beacon and responds, and the fourth device corresponds to a point-to-point protocol compatible with the target point-to-point protocol.

[0140] In some embodiments, the second vendor information comprises an identifier of the target point-to-point protocol, and the identifier is hidden data.

[0141] As to the networking device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the method, and will not be described in detail here.

[0142] Based on the same inventive concept, as Figure 11As shown, one embodiment of the present disclosure provides an electronic device 500. The electronic device 500 includes one or more processors 510, a memory 520, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are communicatively connected by different buses, and can be mounted on a common main board or otherwise mounted as needed. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of a GUI on an external input / output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and / or buses can be used with multiple memories and multiple memory types, if desired. Also, multiple electronic devices can be connected, each device providing part of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Figure 11 The processor 510 is taken as an example.

[0143] The processor 510 can be a central processor, a network processor, or a combination thereof. The processor 510 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic device, a general array logic, or any combination thereof.

[0144] The memory 520 stores instructions executable by the at least one processor 510, so that the at least one processor 510 executes the networking method shown in the above embodiments.

[0145] The memory 520 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs required by at least one function; and the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 520 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some alternative embodiments, the memory 520 can optionally include a memory disposed remotely with respect to the processor 510, and these remote memories can be connected to the electronic device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0146] The memory 520 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid state disk; and the memory 520 can further include a combination of the above types of memories.

[0147] The electronic device further includes an input device 530 and an output device 540. The processor 510, the memory 520, the input device 530, and the output device 540 can be connected through a bus or other means, Figure 11 The connection through the bus is taken as an example in the present disclosure.

[0148] The input device 530 can receive inputted digital or character information, and generate key signal input related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 540 can include a display device, an auxiliary lighting device (e.g., an LED), a tactile feedback device (e.g., a vibration motor), etc. The display device includes, but is not limited to, a liquid crystal display, a light emitting diode, a display, and a plasma display. In some alternative embodiments, the display device can be a touch screen.

[0149] Based on the same inventive concept, the present disclosure further provides a computer readable storage medium storing a program for executing the networking method of any of the preceding embodiments.

[0150] The present disclosure uses certain terms to describe embodiments of the present disclosure. As used in the description of the disclosure and the appended claims, the terms "one embodiment," "an embodiment,” and / or "some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one implementation of the present disclosure. The appearances of the phrase "in one embodiment” or "in an embodiment” or "in some embodiments” in various places in the specification are not necessarily all referring to the same embodiment, nor are the various embodiments necessarily mutually exclusive, unless the context clearly dictates otherwise. Furthermore, some features, structures, or characteristics of the one or more embodiments can be combined in an appropriate manner.

[0151] In the context of the present disclosure, the terms "a," "an," and / or "the" do not exclude a plurality, and "a" or "an" means "one or more” unless the context clearly dictates otherwise. The terms "comprises", "comprising", "includes”, "including” and the like can be used herein to indicate the presence of one or more steps, elements, and / or components, but not to the exclusion of other steps, elements, and / or components.

[0152] Similarly, it is to be noted that, in the interest of clarity and not limiting the scope of the present disclosure, various aspects of the present disclosure have not been pictured in the drawings or described in the foregoing detailed description. It is intended and already contemplated that in the embodiments of the present disclosure, features relating to different aspects can be combined.

[0153] Having described the basic concepts, it is obvious that the above-described disclosure is merely an example and does not limit the present disclosure. Although not explicitly described herein, various modifications, improvements, and changes can be made by those skilled in the art to the present disclosure. Such modifications, improvements, and changes are suggested in the present disclosure, so such modifications, improvements, and changes still belong to the spirit and scope of the embodiments of the present disclosure.

Claims

1. A networking method, applied to a first device in a WiFi network, comprising: In response to receiving a first beacon, determining a second device to be connected, wherein the first beacon is transmitted based on a target point-to-point protocol and includes first manufacturer information; Based on the first manufacturer information, communicate and interact with the second device to obtain device information of the second device; Based on the device information of the second device, the first management information of the target point-to-point protocol corresponding device is updated to complete the networking connection with the second device.

2. The networking method according to claim 1, wherein: The communicating and interacting with the second device based on the first manufacturer information to obtain device information of the second device includes: Based on the first manufacturer information, communicate and interact with the second device to determine an execution device for networking; In response to the executing device being the first device, a first startup parameter for networking is sent to the second device, so that the second device establishes a networking connection with the first device based on the first startup parameter, and obtains device information of the second device.

3. The networking method according to claim 2, wherein: The communicating and interacting with the second device based on the first manufacturer information to obtain device information of the second device further includes: In response to the execution device being the second device, receiving the first startup parameter sent by the second device; A network connection is established with the first device based on the first startup parameter, and device information of the second device is obtained.

4. The networking method according to any one of claims 1 to 3, wherein: The updating, based on the device information of the second device, the first management information of the target point-to-point protocol corresponding device to complete the network connection with the second device includes: Adding the device information of the second device to the first management information of the target point-to-point protocol corresponding device, and updating the first management information; In response to the updated first management information not changing within the duration, it is determined that the network connection is completed.

5. The networking method according to claim 4, wherein: If the device corresponding to the first management information also includes other devices, then based on the device information of the second device, the first management information of the target point-to-point protocol corresponding device is updated to complete the network connection with the second device, further comprising: The updated first management information is synchronized to the other device to inform the networking connection relationship between the first device and the second device.

6. The networking method according to claim 1, wherein: The method further comprises: Constructing a second beacon; Based on the target point-to-point protocol, the second beacon is sent by broadcasting to establish a networking connection with a device that can receive the second beacon.

7. The networking method according to claim 6, wherein: The second beacon includes second manufacturer information, and both the second manufacturer information and the first manufacturer information include an identifier of the target point-to-point protocol, and the identifier is hidden data.

8. A networking method, applied to a first device in a WiFi network, comprising: Sending a second beacon by broadcasting based on the target point-to-point protocol, wherein the second beacon is constructed based on the first management information of the device corresponding to the target point-to-point protocol, and the second beacon includes second manufacturer information; Based on the second manufacturer information, communicate and interact with a third device to obtain device information of the third device, wherein the third device is a device that receives the second beacon and responds; Based on the device information of the third device, the first management information is updated to complete the network connection with the third device.

9. The networking method according to claim 8, wherein: The communicating and interacting with the third device based on the second manufacturer information to obtain device information of the third device includes: Based on the second manufacturer information, communicate and interact with the third device to determine an execution device for networking; In response to the executing device being the first device, the second startup parameter of the target point-to-point connection is sent to the third device, so that the third device establishes a network connection with the first device based on the second startup parameter and obtains the device information of the third device.

10. The networking method according to claim 9, wherein: The communicating and interacting with the third device based on the second manufacturer information to obtain device information of the third device further includes: In response to the execution device being the third device, receiving the second startup parameter sent by the third device; A network connection is established with the first device based on the second startup parameter, and device information of the third device is obtained.

11. The networking method according to any one of claims 8 to 10, wherein: The updating of the first management information based on the device information of the third device to complete the network connection with the third device includes: adding the device information of the third device to the first management information to update the first management information; In response to the updated first management information not changing within the duration, it is determined that the network connection is completed.

12. The networking method according to claim 11, wherein: If the device corresponding to the first management information also includes other devices, then based on the device information of the third device, the first management information is updated to complete the network connection with the third device, further comprising: The updated first management information is synchronized to the other devices to inform the networking connection relationship between the first device and the third device.

13. The networking method according to claim 8, wherein: The method further comprises: Based on the second manufacturer information, communicate and interact with the fourth device to join the network connection corresponding to the point-to-point protocol of the fourth device based on the device information of the first device, thereby completing the network connection; The fourth device is another device that receives the second beacon and responds, and the point-to-point protocol corresponding to the fourth device is compatible with the target point-to-point protocol.

14. The networking method according to claim 8, wherein: The second manufacturer information includes an identifier of the target point-to-point protocol, and the identifier is hidden data.

15. A networking device, applied to a first device in a WiFi network, comprising: a first processing module, configured to determine a second device to be connected in response to receiving a first beacon, wherein the first beacon is transmitted based on a target point-to-point protocol and includes first manufacturer information; a first communication module, configured to communicate and interact with the second device based on the first manufacturer information to obtain device information of the second device; The first updating module is used to update the first management information of the target point-to-point protocol corresponding device based on the device information of the second device, and complete the networking connection with the second device.

16. A networking device, applied to a first device in a WiFi network, comprising: a sending module, configured to send a second beacon by broadcasting based on a target point-to-point protocol, wherein the second beacon is constructed based on the first management information of a device corresponding to the target point-to-point protocol, and the second beacon includes second manufacturer information; a second communication module, configured to communicate and interact with a third device based on the second vendor information to obtain device information of the third device, wherein the third device is a device that receives the second beacon and responds; The second updating module is used to update the first management information based on the device information of the third device and complete the network connection with the third device.

17. An electronic device comprising: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the networking method according to any one of claims 1 to 7 or the networking method according to any one of claims 8 to 14 by executing the computer instructions.

18. A computer-readable storage medium storing the following program, wherein the program is used to execute the networking method according to any one of claims 1 to 7 or the networking method according to any one of claims 8 to 14.