Networking method and device, electronic equipment, chip and medium

By building a decentralized network through broadcasting and multi-hop mechanisms, the problem of poor networking flexibility is solved, low power consumption and stable networking connections are achieved, and network topology awareness and routing efficiency are optimized.

CN121357640APending Publication Date: 2026-01-16BEIJING X RING TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202511387962.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-25
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

Existing networking methods lack flexibility, cannot achieve low-power decentralized networking, and cannot guarantee network connection stability.

Method used

A decentralized network is built by broadcasting, and network connections are achieved using a multi-hop mechanism. After the terminal device completes the network access negotiation, it disconnects the communication link and exchanges neighbor table information, thereby optimizing routing efficiency and reducing flooding overhead.

Benefits of technology

It improves the flexibility and stability of network topology, reduces power consumption, achieves decentralized networking, and enhances the deterministic communication of devices within the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121357640A_ABST
    Figure CN121357640A_ABST
Patent Text Reader

Abstract

The invention provides a networking method and device, electronic equipment, a chip and a medium, and relates to the technical field of communication. Comprising the following steps: in response to received feedback information of a second terminal device for a network access request, sending network access information to the second terminal device through a first communication link; in response to completion of transmission of the network access information, disconnecting the first communication link, and broadcasting first neighbor table information of the first terminal equipment; and in response to the received second neighbor table information of the second terminal equipment, determining that the second terminal equipment joins the networking network. According to the method provided by the invention, the network access information is sent to the other terminal equipment in the visible region through the first communication link, the communication link is disconnected after the sending is completed, and the neighbor table information is sent again through the broadcast, so that the completion of networking is determined after the neighbor table information of the other terminal equipment is received in response. Therefore, the flexibility and convenience of networking are improved, decentralized networking is realized, and normal communication in networking is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to a networking method and device, electronic equipment, chip and medium. BACKGROUND

[0002] Networking technology is a technology of connecting multiple devices into a network through protocols and communication mechanisms to realize data interaction and resource sharing. Electronic devices can be connected to each other through networking to perform data transmission, resource sharing, etc. SUMMARY

[0003] The present disclosure provides a networking method, device, electronic equipment, chip and medium to solve the problem of poor flexibility of the networking method in the related art.

[0004] The first aspect embodiment of the present disclosure provides a communication method, executed by a first terminal device, comprising: in response to receiving feedback information of a second terminal device for a network access request, sending network access information to the second terminal device through a first communication link; in response to the network access information sending being completed, disconnecting the first communication link and broadcasting first neighbor table information of the first terminal device; and in response to receiving second neighbor table information of the second terminal device, determining that the second terminal device joins a networking network.

[0005] In one embodiment of the present disclosure, in response to receiving the second neighbor table information of the second terminal device, determining that the second terminal device joins the networking network comprises: in response to receiving the second neighbor table information of the second terminal device within a first preset time length, determining that the second terminal device joins the networking network.

[0006] In some embodiments of the present disclosure, the method further comprises: creating a networking network and a first neighbor table, and performing network scanning, the first neighbor table comprising a neighbor table identifier and a neighbor device identifier, the first neighbor table information having a corresponding relationship with the first neighbor table; determining the second terminal device from a plurality of terminal devices based on attribute information broadcasted by the plurality of terminal devices, the second terminal device being at least one of the plurality of terminal devices, the attribute information indicating that the second terminal device supports networking; establishing a first communication link with the second terminal device, and sending a network access request to the second terminal device through the first communication link.

[0007] In some embodiments of the present disclosure, the method further comprises: updating the first neighbor table and the first neighbor table information based on the second neighbor table information of the second terminal device, the updated first neighbor table comprising a device identifier of the second terminal device; and broadcasting the updated first neighbor table within a second preset time length.

[0008] In some embodiments of the present disclosure, the method further comprises: in response to receiving the second neighbor table broadcasted by the second terminal device, determining third neighbor table information and a third neighbor table, the second neighbor table comprising the neighbor table information of the third terminal device, the third terminal device joining the networking network based on the network access request of the second terminal device; broadcasting the third neighbor table information, and broadcasting the third neighbor table within a second preset time length.

[0009] In some embodiments of the present disclosure, the method further comprises: receiving fourth neighbor table information broadcasted by the second terminal device, the fourth neighbor table information indicating a neighbor table identifier greater than the neighbor table identifier indicated by the second neighbor table information; sending request information to the second terminal device, the request information being used to request the second terminal device to send a second neighbor table corresponding to the fourth neighbor table information; and determining the third neighbor table information and the third neighbor table based on the second neighbor table.

[0010] In some embodiments of the present disclosure, the method further comprises: in response to not receiving the neighbor table information of the third terminal device within the second preset time length, deleting the neighbor table information of the third terminal device from the third neighbor table information.

[0011] In some embodiments of the present disclosure, the method further comprises: in response to receiving the help-seeking information broadcasted by the fourth terminal device, sending the help-seeking information to the neighbor devices in the networking network through the networking network, the fourth terminal device not being in the networking network.

[0012] In the above embodiments, the feedback information of the other terminal device for the network access request is used to transmit the network access information through the communication link, and the communication link is disconnected after the transmission is completed, and the neighbor table information is re-broadcasted, so that the joining of the other terminal device into the networking network is confirmed after the neighbor table information broadcasted by the other terminal device is received, thereby improving the flexibility of networking, realizing decentralized networking, and ensuring the communication in the networking network.

[0013] A second aspect embodiment of the present disclosure provides a networking method, executed by a second terminal device, comprising: in response to a network access request sent by a first terminal device through a first communication link, sending a network access feedback to the first terminal device; receiving network access information of the first terminal device through the first communication link; in response to the completion of the reception of the network access information, disconnecting the first communication link and broadcasting second neighbor table information of the second terminal device; and in response to receiving first neighbor table information broadcasted by the first terminal device within a first preset time length, determining to join a networking network.

[0014] In one embodiment of the present disclosure, in response to receiving the first neighbor table information broadcasted by the first terminal device, determining to join the networking network comprises: in response to receiving the first neighbor table information broadcasted by the first terminal device within the first preset time length, determining to join the networking network.

[0015] In some embodiments of this disclosure, the method further includes: broadcasting attribute information of a second terminal device, the attribute information indicating that the second terminal device supports networking; and establishing a first communication link with the first terminal device in response to a connection request from the first terminal device.

[0016] In some embodiments of this disclosure, the method further includes: responding to a third terminal device joining the network based on a network access request from a second terminal device, updating the second neighbor table information and the second neighbor table corresponding to the second neighbor table information, determining the third neighbor table information and the third neighbor table; broadcasting the third neighbor table information, and broadcasting the third neighbor table within a second preset time period.

[0017] In some embodiments of this disclosure, the method further includes: sending a third neighbor table to the first terminal device in response to a request from the first terminal device.

[0018] In some embodiments of this disclosure, the method further includes: deleting the neighbor table information of the third terminal device from the third neighbor table information in response to not receiving neighbor table information broadcast by the third terminal device within a second preset time period.

[0019] In some embodiments of this disclosure, the method further includes: receiving distress information from a fourth terminal device broadcast by a first terminal device through a network, wherein the fourth terminal device is not within the network.

[0020] In the above embodiments, other terminal devices can join the network through any terminal device's network access request, thereby improving the flexibility of the network, realizing decentralized networking, and ensuring communication within the network.

[0021] A third aspect of this disclosure provides a communication system including a first terminal device and a second terminal device, wherein the first terminal device is configured to perform the method described in any embodiment of the first aspect of this disclosure, and the second terminal device is configured to perform the method described in any embodiment of the second aspect of this disclosure.

[0022] In some embodiments of this disclosure, the communication system further includes a third terminal device and a fourth terminal device.

[0023] A fourth aspect of this disclosure provides a communication device configured to perform the method described in any one of the first or second aspects of this disclosure.

[0024] A fifth aspect of this disclosure provides an electronic device including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor performs the method described in any one of the first or second aspects of this disclosure when running the computer program.

[0025] A sixth aspect of this disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the methods described in any of the first or second aspects of this disclosure.

[0026] A seventh aspect of this disclosure provides a chip including at least one processor and a communication interface; the communication interface is used to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method described in any one of the first or second aspects of this disclosure through logic circuits or executing code instructions.

[0027] In summary, the networking method, apparatus, electronic device, chip, and medium proposed in this disclosure include: in response to receiving feedback information from a second terminal device regarding a network access request, sending network access information to the second terminal device via a first communication link; in response to the completion of sending the network access information, disconnecting the first communication link and broadcasting the first neighbor table information of the first terminal device; and in response to receiving the second neighbor table information of the second terminal device within a first preset time period, determining that the second terminal device has joined the network. The method proposed in this disclosure sends network access information to other terminal devices within the visible domain via the first communication link, and immediately disconnects after completing the network access negotiation, switching to exchanging neighbor table information via broadcast. This allows for determining that other terminal devices have joined the network upon receiving their neighbor table information. The bidirectional neighbor table information exchange achieves network topology awareness, optimizes routing efficiency, and reduces flooding overhead; it improves networking flexibility, achieves decentralized networking, reduces link maintenance burden, enhances the determinism of the networking process, and ensures normal communication of devices within the network.

[0028] 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

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

[0030] Figure 1 This is a schematic diagram of a communication device according to an embodiment of the present disclosure;

[0031] Figure 2 This is an interactive schematic diagram of a networking method proposed in an embodiment of this disclosure;

[0032] Figure 3 This is a schematic flowchart of a networking method proposed in an embodiment of this disclosure;

[0033] Figure 4 This is a schematic flowchart of a networking method proposed in an embodiment of this disclosure;

[0034] Figure 5 This is a schematic flowchart of a networking method proposed in an embodiment of this disclosure;

[0035] Figure 6 This is a schematic flowchart of a networking method proposed in an embodiment of this disclosure;

[0036] Figure 7A This is a network topology diagram illustrating the networking method.

[0037] Figure 7B This is a flowchart of the network access process;

[0038] Figure 7C A schematic diagram of a network topology;

[0039] Figure 7D This is a schematic diagram of another type of network.

[0040] Figure 7E This is a diagram illustrating the correspondence between the neighbor table and the information in the neighbor table.

[0041] Figure 8 This is a schematic diagram of the structure of the communication device proposed in the embodiments of this disclosure;

[0042] Figure 9 A schematic diagram of the communication device proposed in the embodiments of this disclosure;

[0043] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure;

[0044] Figure 11 This is a schematic diagram of the chip structure provided in an embodiment of this disclosure. Detailed Implementation

[0045] Embodiments of this disclosure are described in detail below. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. 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.

[0046] In areas without mobile signal, it is not possible to flexibly and freely build a network. Even with devices such as Wi-Fi routers or power supplies, a centralized network still needs to be built. However, decentralized networks make network setup more convenient and faster.

[0047] In related technologies, Bluetooth networking methods include multi-hop communication, connecting multiple piconet networks via bridge nodes, or achieving one-to-many communication via broadcast channels. However, these methods cannot achieve low-power networking. While multi-hop communication can achieve decentralized networking, it requires constant maintenance of the communication link, resulting in high power consumption. Currently, there is no networking method that can achieve both decentralized networking and reduced power consumption.

[0048] Therefore, this disclosure provides a networking method that uses broadcasting to build a decentralized network, thereby ensuring that the network will not lose connection due to any node going offline. It also makes flexible use of multi-hop mechanisms to enable longer communication distances and wider coverage.

[0049] The networking method proposed in this disclosure can be applied to the field of Bluetooth technology, as well as the field of WIFI technology or other future communication technology fields.

[0050] The networking method and communication device provided in this application will be described in detail below with reference to the accompanying drawings.

[0051] Figure 1 This is a schematic diagram of a communication device according to an embodiment of the present disclosure, such as... Figure 1 As shown, the communication system 100 includes a first terminal device 101 and a second terminal device 102. The first terminal device 101 can share network access information with the second terminal device 102 through a first communication link established between the two devices. After sending the information, the first communication link is promptly disconnected, and the system switches to broadcast mode to exchange neighbor table information with the second terminal device. In response to receiving the neighbor table information broadcast by the second terminal device within a preset time period, the system completes the process of bringing the second terminal device into the network.

[0052] In some embodiments, the communication system further includes a third terminal device and a fourth terminal device.

[0053] In some embodiments, the first terminal device and the second terminal device are within the same visibility domain, therefore, a first communication link can be established between the first terminal device and the second terminal device. The third terminal device is not within the same visibility domain as the first terminal device, but is within the same visibility domain as the second terminal device. Therefore, the third terminal device can establish a communication link with the second terminal device, thereby joining the network based on the second terminal device's network access request.

[0054] Specifically, the third terminal device joins the network through the network access request of the second terminal device. After the third terminal device joins, the second terminal device needs to update its neighbor table and neighbor table information, and broadcast the updated neighbor table within a preset time period, so that the first terminal device can update its own neighbor table and neighbor table information based on the neighbor table broadcast by the second terminal device.

[0055] In some embodiments, the fourth terminal device may be a terminal device that is not in the network. The fourth terminal device is in the same visible domain as the first terminal device, but not in the same visible domain as the second and third terminal devices. Therefore, the first terminal device can receive the distress message broadcast by the fourth terminal device, and can forward the distress message to other terminal devices in the network through multi-hop forwarding.

[0056] In some embodiments, the first terminal device, the second terminal device, the third terminal device, and the fourth terminal device are mobile devices. That is, during the movement, the visibility between the devices will change due to the change in location. When the first terminal device moves out of the visible domain of the second terminal device, the first terminal device can obtain the neighbor table information of the second terminal device through forwarding from other terminal devices.

[0057] The following embodiments of this disclosure can be applied to, for example Figure 1 The communication system shown can also be applied to other communication systems, such as optical communication systems, satellite communication systems, and wired communication systems, and this disclosure does not limit such applications.

[0058] The embodiments disclosed herein can be applied to Long Term Evolution (LTE), LTE-Advanced (LTE-A), LTE-Beyond (LTE-B), SUPER 3G, IMT-Advanced, 4th generation mobile communication system (4G), 5th generation mobile communication system (5G), 5G new radio (NR), 6th generation mobile communication system (6G), Future Radio Access (FRA), New-Radio Access Technology (RAT), New Radio (NR), New Radio Access (NX), Future Generation Radio Access (FX), Global System for Mobile Communications (GSM), CDMA2000, Ultra Mobile Broadband (UMB), IEEE 802.11 (Wi-Fi), IEEE 802.16 (WiMAX), and IEEE 802.20, Ultra-Wideband (UWB), Bluetooth (a registered trademark), Public Land Mobile Network (PLMN) networks, Device-to-Device (D2D) systems, Machine-to-Machine (M2M) systems, Internet of Things (IoT) systems, Vehicle-to-Everything (V2X) systems, systems utilizing other communication methods, and next-generation systems built upon them, etc. Furthermore, multiple systems can be combined (e.g., a combination of LTE or LTE-A with 5G).

[0059] Figure 2 This is an interactive schematic diagram of a networking method proposed in an embodiment of this disclosure. Figure 2 As shown, it includes the following steps:

[0060] Step 201: The first terminal device creates a network and a first neighbor table, and performs a network scan.

[0061] In some embodiments, the first neighbor table includes a neighbor table identifier and a neighbor device identifier, and the information in the first neighbor table corresponds to the information in the first neighbor table.

[0062] In some embodiments, the first neighbor table information is obtained by extracting and compressing features from the first neighbor table.

[0063] In some embodiments, the neighbor table identifier reflects the number of neighboring devices in the neighbor table. For example, if the neighbor table identifier is 0, it means that there is only one device in the neighbor table, which is the device that created the neighbor table. If the neighbor table identifier is 2, it means that there are 3 devices in the neighbor table. The latter two devices are pulled into the network by the first device, or the second device is pulled into the network by the first device, and the third device is pulled into the network by the second device.

[0064] In some embodiments, the first terminal device can be any terminal device. The first terminal device is used to create a network and can pull any device within the visible domain into the network.

[0065] In some embodiments, the first terminal device may create a network by determining the identifier of the network and the encryption key for communication within the network.

[0066] In some embodiments, the creation of a first neighbor table by the first terminal device may involve constructing a neighbor map that includes the neighbor table identifier of the first terminal device and the neighbor information of the first terminal device.

[0067] In some embodiments, the information corresponding to the network created by the first terminal device is the relevant parameters shared when inviting other terminal devices to join the network.

[0068] In some embodiments, the first neighbor table created by the first terminal device is stored locally on the first terminal device. The information in the first neighbor table will increase as other devices join, but will not decrease as joined devices go offline.

[0069] In some embodiments, the first neighbor table is used by the first terminal device to determine other neighbor devices within the network, so as to identify devices that can communicate within the network.

[0070] In some embodiments, the first neighbor table reflects information about devices currently in the same network as the first terminal device, such as the device's neighbor table identifier, device ID, etc.

[0071] For example, when device AAAA creates a network, it creates a network ID, a device ID, and neighbor table information for the network devices.

[0072] In some embodiments, the first terminal device may perform network scanning by scanning for terminal devices capable of establishing communication links within its own visible domain. Due to the mobility of terminal devices, at different times, the first terminal device may scan for zero terminal devices or one or more terminal devices.

[0073] Step 202: The first terminal device determines the second terminal device.

[0074] In some embodiments, the first terminal device determines the second terminal device among the multiple terminal devices based on attribute information broadcast by the multiple terminal devices.

[0075] In some embodiments, the second terminal device is at least one of a plurality of terminal devices, and the attribute information indicates that the second terminal device supports networking.

[0076] In some embodiments, during the network scanning process of the first terminal device, at least one terminal device will broadcast, so that the first terminal device can determine the second terminal device based on the content of the broadcast received from at least one terminal device.

[0077] In some embodiments, the second terminal device may broadcast once every 80ms. Specifically, the broadcast frequency can be customized according to the scenario or requirements, and this disclosure does not limit it.

[0078] In some embodiments, the number of second terminal devices may be one or more, that is, the first terminal device identifies at least one second terminal device that supports networking among at least one terminal device.

[0079] In some embodiments, whether the second terminal device supports networking is an attribute information of the second terminal device, that is, the second terminal device informs the first terminal device that it supports networking through continuous broadcasting.

[0080] In some embodiments, the first terminal device determines the second terminal device based on attribute information broadcast by at least one terminal device, in response to an option triggered by the user.

[0081] For example, the device BBBB being pulled into the network first broadcasts EA, and after device AAAA in the network receives it, the user triggers the "user pulls into network" operation.

[0082] Step 203: The first terminal device establishes a first communication link with the second terminal device.

[0083] In some embodiments, after the first terminal device determines the second terminal device among at least one terminal device, the first terminal device establishes a first communication link with the second terminal device.

[0084] In some embodiments, the first communication link may be a Bluetooth communication link or a WIFI communication link, etc., and this disclosure does not limit it.

[0085] Step 204: The first terminal device sends a network access request to the second terminal device.

[0086] In some embodiments, after establishing a first communication link with a second terminal device, the first terminal device needs to send a network access request to the second terminal device. The network access request is used to request the second terminal device to join the network.

[0087] In some embodiments, the network access request is triggered by the user of the first terminal device. That is, after the user selects the second terminal device on the display interface of the first terminal device, a first communication link is established, and a network access request is sent to the second terminal device through the first communication link.

[0088] In some embodiments, after receiving a network access request, the second terminal device sends feedback to the first terminal device to indicate whether it agrees to the network access request. If it agrees to the network access request, the first terminal device can continue to perform the subsequent operations of adding users to the network; otherwise, the process ends.

[0089] For example, device AAAA sends a request to BBBB to join the network via a BLE link. BBBB determines whether to agree or disagree. If it does not agree, it disconnects the BLE connection and ends the process. If it agrees, it sends back "agree to join the network" and then device AAAA sends the "network entry parameters".

[0090] Step 205: The second terminal device sends feedback information to the first terminal device.

[0091] In some embodiments, the second terminal device sends feedback information to the first terminal device based on the network access request, in order to agree to join the network.

[0092] In some embodiments, the feedback information may be "agree to join the network".

[0093] In some embodiments, the feedback information may be triggered by the user of the second terminal device. That is, after the first terminal device sends a network access request, the display interface of the second terminal device displays the network access request, and the user of the second terminal device clicks "agree" on the display interface to trigger the second terminal device to send feedback information to the first terminal device.

[0094] Step 206: The first terminal device sends network access information to the second terminal device.

[0095] In some embodiments, in response to receiving feedback information from the second terminal device regarding the network access request, the first terminal device sends network access information to the second terminal device via the first communication link.

[0096] In some embodiments, the network access information may be network information of the network, including network access parameters and network key. The network access parameters may be the identifier of the network, etc., and the network key is used for encrypted transmission when communicating within the network.

[0097] For example, if BBBB agrees to AAAA's network access request, it will send back "Agree to network access", and AAAA will send "Network access parameters and network key" to BBBB.

[0098] Step 207: The first terminal device disconnects the first communication link and broadcasts the first neighbor table information.

[0099] In some embodiments, in response to the completion of network access information transmission, the first communication link is disconnected and the first neighbor table information of the first terminal device is broadcast.

[0100] In some embodiments, after the first terminal device sends network access completion information to the second terminal device through the first communication link, it can promptly disconnect the first communication link and switch to broadcast mode to broadcast the first neighbor table information of the first terminal device. The first neighbor table information is used by the second terminal device to determine the terminal devices that have a neighbor relationship with the first terminal device.

[0101] In some embodiments, the information broadcast by the first terminal device may also include the identifier and technical parameters of the first terminal device, service information, etc.

[0102] For example, after the parameters and other data are transmitted, the BLE link is disconnected, and AAAA sends its own DevInfo. Table 1 shows the format of the DevInfo:

[0103] Table 1

[0104] Network ID Device ID Neighbor Table Information

[0105] The neighbor table information format is shown in Table 2:

[0106] Table 2

[0107]

[0108] In some embodiments, in response to the completion of network access information reception, the second terminal device disconnects the first communication link and broadcasts its second neighbor table information. The information broadcast by the second terminal device also includes the second terminal device's identifier, technical parameters, service information, etc.

[0109] For example, after the parameters are transmitted, the two disconnect the BLE link, BBBB starts broadcasting Beacon in ES, and BBBB sends its own DecInfo.

[0110] Step 208: Determine that the second terminal device has joined the network.

[0111] In some embodiments, the first terminal device determines that the second terminal device has joined the network in response to receiving the second neighbor table information of the second terminal device within a first preset time period.

[0112] In some embodiments, the second terminal device determines that it has joined the network in response to receiving the first neighbor table information of the first terminal device within a first preset time period.

[0113] In some embodiments, the first terminal device may continuously receive the second neighbor table information of the second terminal device within a first preset time period, and the second terminal device may continuously receive the first neighbor table information of the first terminal device within the first preset time period, thereby determining that the second terminal device has successfully joined the network based on the interaction of the neighbor table information between the two.

[0114] In some embodiments, the first preset duration can be the time period for determining whether network access is successful. The first preset duration can be customized according to the scenario or requirements. For example, the first preset duration is 3 seconds.

[0115] In some embodiments, if the first terminal device does not receive the second neighbor table information from the second terminal device within a first preset time period, the display interface of the first terminal device will not display anything and will not perform any subsequent operations, which means that the second terminal device has failed to join the network.

[0116] In some embodiments, if the first terminal device receives the second neighbor table information from the second terminal device within a first preset time period, the display interface of the first terminal device displays a message indicating successful network access, such as "Successfully added a user" or "√".

[0117] In some embodiments, if the second terminal device does not receive the first neighbor table information from the first terminal device within a first preset time period, the display interface of the second terminal device will not display anything; conversely, if the second terminal device receives the first neighbor table information from the first terminal device within the first preset time period, the display interface of the second terminal device will display a prompt message indicating successful network access, such as "Network access successful" or "√".

[0118] For example, BBBB sends its own DevInfo, and AAAA checks whether it receives it. If it does not receive it, the process may not continue. If it receives it, AAAA displays "Successfully recruited," and at the same time, AAAA sends its own DecInfo. After BBBB receives it, it displays "Successfully joined the network," thus completing the network entry.

[0119] Step 209: The first terminal device updates the first neighbor table and the first neighbor table information.

[0120] In some embodiments, the first terminal device updates the first neighbor table and the first neighbor table information based on the second neighbor table information of the second terminal device.

[0121] In some embodiments, updating the first neighbor table may involve writing the device identifier of the second terminal device into the first neighbor table and simultaneously changing the identifier of the first neighbor table; updating the first neighbor table information involves updating the identifier of the first neighbor table and writing it into the second neighbor table information of the second terminal device. In other words, the updated first neighbor table information includes the neighbor table information of the first terminal device and the neighbor table information of the second terminal device.

[0122] In some embodiments, the second terminal device may also update its own neighbor table and neighbor table information based on the first neighbor table information of the first terminal device.

[0123] For example, when AAAA creates a network, it creates mapA, which is stored on device AAAA. The ID of this map is 0. The format is shown in Table 3, which represents the initial mapA for device AAAA:

[0124] Table 3

[0125]

[0126] Before BBBB joins the network, a mapB is also created and stored on the device BBBB. The ID of this mapB is 0. The format is shown in Table 4, which represents the initial mapB of the device BBBB:

[0127] Table 4

[0128]

[0129] After BBBB successfully joins the network, if it continuously receives EA Beacon messages from AAAA for 3 seconds, BBBB will update its neighbor table ID and neighbor table. Table 5 shows the mapB of BBBB after successful network joining.

[0130] Table 5

[0131]

[0132] After the update is complete, the neighbor table in the EA Beacon of device BBBB will be updated, and the new map will be broadcast for 3 seconds after the update.

[0133] Once BBBB successfully joins the network, if AAAA receives BBBB's EA Beacon information for 3 consecutive seconds, it will also consider BBBB to have successfully joined the network and will update its neighbor table ID and neighbor table. As shown in Table 6, this is the mapA of device AAAA.

[0134] Table 6

[0135]

[0136] Step 210: The first terminal device broadcasts the updated first neighbor table within a second preset time period.

[0137] In some embodiments, after updating the neighbor table and neighbor table information, the first terminal device will broadcast the updated first neighbor table within a second preset time period, and the first neighbor table information will continue to be broadcast at the original broadcast frequency.

[0138] In some embodiments, the second preset duration can be the broadcast duration of the updated neighbor table. The second preset duration can be customized according to the scenario or requirements, for example, set to 3 seconds.

[0139] In some embodiments, after updating the neighbor table and neighbor table information, the second terminal device will also broadcast the updated neighbor table within a second preset time period, and the updated neighbor table information will continue to be broadcast at the original broadcast frequency.

[0140] In some embodiments, the first terminal device broadcasts the updated first neighbor table within a second preset time period, which is used to enable other terminal devices in the network to update their own neighbor tables and neighbor table information according to the broadcast neighbor table, so that all terminal devices in the network can grasp the entire network topology.

[0141] In some embodiments, the updated neighbor table may be broadcast in the form of a compressed package, thereby reducing the resource consumption of data transmission.

[0142] In summary, the networking method proposed in this disclosure sends network access information to other terminal devices within the visible domain through a first communication link, and immediately disconnects after completing the network access negotiation, switching to exchanging neighbor table information via broadcast. Upon receiving neighbor table information from other terminal devices, it determines whether the other terminal devices have joined the network. This bidirectional neighbor table information exchange achieves network topology awareness, optimizes routing efficiency, and reduces flooding overhead. It also improves networking flexibility, enables decentralized networking, reduces link maintenance burden, enhances the determinism of the networking process, and ensures normal communication between devices within the network.

[0143] Figure 3 This is a flowchart illustrating the networking method executed by the first terminal device according to an embodiment of this disclosure. Based on Figure 2 The illustrated embodiments, such as Figure 3 As shown, the method also includes the following steps.

[0144] Step 301: In response to receiving the second neighbor table broadcast by the second terminal device, determine the third neighbor table information and the third neighbor table.

[0145] In some embodiments, the second neighbor table includes the device identifier of the third terminal device, and the third terminal device joins the network based on the network access request of the second terminal device.

[0146] In some embodiments, the method by which a third terminal device joins the network can be referred to Figure 2 The specific implementation of the illustrated embodiment is as follows: the second terminal device sends network entry information to the third terminal device through a communication link established with the third terminal device. After the network entry information is sent, the communication link is disconnected, and the neighbor table information of the second terminal device is broadcast. In response to receiving the neighbor table information of the third terminal device within a first preset time period, it is determined that the third terminal device has joined the network. Then, the neighbor table and neighbor table information of the second terminal device are updated to obtain the second neighbor table.

[0147] In some embodiments, after the second terminal device updates the neighbor table and neighbor table information, it broadcasts the second neighbor table within a second preset time period. After receiving the second neighbor table, the first terminal device updates its current neighbor table and neighbor table information according to the second neighbor table, and determines the third neighbor table and third neighbor table information.

[0148] For example, the network entry process between BBBB and CCCC is as described above. After receiving CCCC's EA Beacon for 3 consecutive seconds, BBBB assumes that CCCC has also successfully entered the network. BBBB then updates its neighbor table (mapID) and neighbor table, obtaining the device BBBB's mapB as shown in Table 7.

[0149] Table 7

[0150]

[0151] If AAAA discovers a new neighbor table map ID in BBBB's EA Beacon, it will update its own neighbor table based on the new map ID. The updated mapA of AAAA is shown in Table 8.

[0152] Table 8

[0153]

[0154] Step 302: Broadcast the information in the third neighbor table and broadcast the third neighbor table within the second preset time period.

[0155] In some embodiments, after updating the neighbor table and neighbor table information according to the neighbor table updated by the second terminal device, the first terminal device will broadcast the third neighbor table information and broadcast the third neighbor table within a second preset time period, so that other terminal devices in the network can update their own neighbor tables and neighbor table information according to the broadcast of the first terminal device.

[0156] For example, newly joined devices will jump between devices through the device neighbor table information, and each device will update its own neighbor table to know the latest status and topology of the network.

[0157] In the above embodiments, after a terminal device outside the network joins the network, it will inform other terminal devices in the network through the neighbor table, so that other terminal devices can update their own neighbor tables and neighbor table information. In this way, all terminal devices in the network can grasp the entire network topology and the latest status of the network, which provides a foundation for subsequent communication within the network.

[0158] Figure 4 This is a flowchart illustrating the networking method executed by the first terminal device according to an embodiment of this disclosure. Based on Figure 2 The illustrated embodiments, such as Figure 4 As shown, the method also includes the following steps.

[0159] Step 401: Receive the fourth neighbor table information broadcast by the second terminal device.

[0160] In some embodiments, the neighbor table identifier indicated by the fourth neighbor table information is greater than the neighbor table identifier indicated by the second neighbor table information.

[0161] In some embodiments, after inviting the third terminal device to join the network, the second terminal device will update its own neighbor table and neighbor table information, and determine the fourth neighbor table information and the second neighbor table corresponding to the fourth neighbor table information.

[0162] In some embodiments, the second terminal device broadcasts fourth neighbor table information within a second preset time period. However, due to the mobility of the terminal device, the first terminal device fails to receive the second neighbor table broadcast by the second terminal device. But after a period of time, due to the mobility of the terminal device, the first terminal device is able to receive the broadcast from the second terminal device, that is, it receives the fourth neighbor table information.

[0163] For example, if BBBB updates its neighbor table map after joining the CCCC network and sends it continuously for 3 seconds, but AAAA does not receive BBBB's latest neighbor table, then AAAA can determine whether BBBB has updated its neighbor table map from BBBB's neighbor table map ID.

[0164] Step 402: Send request information to the second terminal device.

[0165] In some embodiments, the request information is used to request the second terminal device to send the second neighbor table corresponding to the fourth neighbor table information.

[0166] In some embodiments, the first terminal device determines the neighbor table identifier based on the neighbor table identifier in the fourth neighbor table information. If the neighbor table identifier in the fourth neighbor table information is greater than the neighbor table identifier of the second terminal device stored by the first terminal device, it means that the second terminal device has updated the neighbor table, and the first terminal device needs to request the updated neighbor table from the second terminal device.

[0167] For example, if AAAA finds that the map ID sent by BBBB is greater than the ID of mapB stored locally by AAAA, it requests BBBB to send a new neighbor table map.

[0168] In some embodiments, the second terminal device rebroadcasts the second neighbor table based on the request information from the first terminal device.

[0169] In some embodiments, the duration for which the second terminal device rebroadcasts the second neighbor table can be a second preset duration or a third preset duration. The second preset duration and the third preset duration may not be the same. The second preset duration and the third preset duration can be customized according to the scenario or requirements, and this disclosure does not limit them.

[0170] For example, after receiving the request, BBBB adds its own neighbor table map to the EA Beacon again and continues to send it for 3 seconds.

[0171] Step 403: Based on the second neighbor table, determine the information of the third neighbor table and the third neighbor table.

[0172] In some embodiments, the first terminal device may update its own neighbor table and neighbor table information based on the second neighbor table rebroadcast by the second terminal device, that is, determine the third neighbor table and third neighbor table information.

[0173] For example, AAAA updates its neighbor table based on BBBB's new map, and the updated map of AAAA is shown in Table 8.

[0174] In the above embodiments, after other terminal devices join the network, the terminal device that initiated the invitation can broadcast to inform other terminal devices in the network that a device has joined, so that other terminal devices can update their neighbor tables and neighbor table information, enabling terminal devices in the network to grasp the entire network topology and the latest status, thus achieving flexible and convenient networking.

[0175] Figure 5This is a flowchart illustrating a networking method proposed in an embodiment of this disclosure. Based on Figures 2-4 The illustrated embodiments, such as Figure 5 As shown, it also includes the following steps:

[0176] Step 501: In response to the fact that no neighbor table information of the third terminal device is received within the second preset time period, the neighbor table information of the third terminal device is deleted from the third neighbor table information.

[0177] In some embodiments, the third terminal device can be any terminal device within the network.

[0178] In some embodiments, the neighbor table information of the third terminal device can be received by the first terminal device through multi-hop forwarding. If the neighbor table information of the third terminal device is not received within a second preset time period, it indicates that the third terminal device is offline, and the first terminal device needs to delete the neighbor table information of the third terminal device from the third neighbor table information.

[0179] In some embodiments, deleting the neighbor table information of the third terminal device from the third neighbor table information may be done by setting the bit position of the neighbor table information of the third terminal device in the third neighbor table information to zero.

[0180] For example, in the current network topology, devices AAAA, BBBB, and CCCC are all in the network. Each device sends an EA Beacon every 80ms. The EA Beacon carries the network ID, device ID, neighbor table information, etc. If device CCCC cannot continue to send broadcasts due to power depletion or shutdown, then if BBBB does not receive CCCC's EA Beacon for 3 consecutive seconds, it will assume that CCCC has left the network, update BBBB's EA Beacon neighbor table, and set the corresponding bit for CCCC to 0.

[0181] For example, such as Figure 7EThe diagram illustrates the correspondence between neighbor tables and their information. Map A is located locally on device AAAA, map B on device BBBB, and map C on device CCCC. The numbers 0x2, 0x0007, 0x0007, and 0x0007 below represent the neighbor table information sent by each device's EA Beacon. The preceding 0x2 represents the current device's neighbor table Map ID. For example, for device BBBB: the first 0x0007 can be converted to binary as 0b 0000 0000 0000 0111. The binary representation of 0x0007 has 32 bits. The last three 1s correspond to 0xBBBB, 0xAAAA, and 0xCCCC in map B. The neighbor table transmits the entire network topology information. For device BBBB, if device CCCC leaves the network, its map B information will not change; only the neighbor table information in its own EA Beacon will be modified. The neighbor table information for BBBB will be modified from 0x2,0x0007,0x0007,0x0007 to 0x2,0x0003,0x0003. For BBBB, the binary representation of 0x0003 is 0b 0000000000000011, where the 11 corresponds to the devices 0xBBBB and 0xAAA with IDs of 2mapB.

[0182] In the above embodiments, the offline status of any terminal device in the network will only change the neighbor table information of other devices, without causing changes to the neighbor table or interruption of communication within the network. Thus, the decentralized networking achieves flexibility and convenience, and improves the communication efficiency of the network.

[0183] Figure 6 This is a flowchart illustrating a networking method proposed in an embodiment of this disclosure. Based on Figures 2-5 The illustrated embodiments, such as Figure 6 As shown, it also includes the following steps:

[0184] Step 601: In response to receiving the distress message broadcast by the fourth terminal device, the distress message is sent to neighboring devices within the network through the network.

[0185] In some embodiments, the fourth terminal device is not within the network.

[0186] In some embodiments, the fourth terminal device may be a device that is in the same visible domain as the first terminal device but has not joined the network.

[0187] In some embodiments, after an emergency occurs, the fourth terminal device activates an emergency distress mode and sends distress information via broadcast. The frequency of the broadcast by the fourth terminal device can be defined by the user of the fourth terminal device.

[0188] In some embodiments, the distress message broadcast by the fourth terminal device may include the location information of the fourth terminal device, as well as information such as the device identifier and technical parameters of the fourth terminal device. The location information may be latitude and longitude information, GNSS positioning information, etc., and this disclosure does not limit this.

[0189] In some embodiments, the first terminal device can receive the distress message broadcast by the fourth terminal device, and then forward the distress message to neighboring devices in the network through multi-hop forwarding via the network.

[0190] In some embodiments, neighboring devices within the network can be all devices in the current neighbor table of the first terminal device.

[0191] For example, in the event of an emergency, such as an earthquake or someone getting lost outdoors, the emergency distress mode can be activated. The device periodically sends location information via EA Beacon, allowing rescuers to easily locate the person using their mobile phones.

[0192] The message format in emergency mode is shown in Table 9:

[0193] Table 9

[0194] SOS Device Location Information (Lat / Long / GNSS Positioning Information)

[0195] In the above embodiments, through a decentralized network, in the event of an emergency, any device that communicates with a device outside the network can notify other devices within the network through multi-hop forwarding, thereby improving the efficiency of rescue in emergency situations.

[0196] In summary, the networking method proposed in this disclosure sends network access information to other terminal devices within the visible domain through a first communication link, and immediately disconnects after completing the network access negotiation, switching to exchanging neighbor table information via broadcast. Upon receiving neighbor table information from other terminal devices, it determines whether the other terminal devices have joined the network. This bidirectional neighbor table information exchange achieves network topology awareness, optimizes routing efficiency, and reduces flooding overhead. It also improves networking flexibility, enables decentralized networking, reduces link maintenance burden, enhances the determinism of the networking process, and ensures normal communication between devices within the network.

[0197] The following is a specific implementation method for a networking approach, using a Bluetooth-based networking method as an example:

[0198] Figure 7A A network topology diagram of the networking method, such as Figure 7A As shown, ID1_1, ID1_2, ID1_3, ID2_1, and ID2_2 are in one visible domain; ID2_1, ID2_2, ID2_3, ID2_4, and ID3_1 are in another visible domain; and ID3_1, ID4_1, ID4_2, and ID4_3 are in yet another visible domain. All these network nodes collectively form a network without a central node. All network nodes have equal power, and each node must store all network information: network name, the entire network's neighbor table, and the names of all network nodes.

[0199] Figure 7B Here is a flowchart of the network access process. The network access process is as follows:

[0200] 1. Create a network

[0201] The process of creating a network begins with sending a BLE EA broadcast. EA broadcasts are sent every 80ms and contain the network ID, device ID, and neighbor table information for the network devices. Except for the network ID, all other information in the EA broadcast needs to be encrypted.

[0202] The content of EA broadcasts is shown in Table 1:

[0203] Table 1

[0204] Network ID Device ID Neighbor Table Information

[0205] The format of the neighbor table information is shown in Table 2 below:

[0206] Table 2

[0207]

[0208] 2. Recruiting people to join the network

[0209] Broadcast and connection initiation:

[0210] The device BBBB being pulled into the network first broadcasts to EA. After receiving the broadcast, device AAAA in the network triggers the "user pulls into network" operation, and then the two establish a BLE link (Connect BLE Link).

[0211] Network access request and response: AAAA sends a "request to join the network" to BBBB via the BLE link. BBBB determines whether to agree. If it does not agree, it disconnects the BLE connection and ends the process. If it agrees, it sends back "agree to join the network". AAAA then sends "network access parameters and network key" to BBBB.

[0212] Link Disconnection and Subsequent Broadcast: After completing the transmission of parameters, the two disconnect the BLE link (Disconnect BLELink), and BBBB starts broadcasting the EA Beacon.

[0213] Network access confirmation: BBBB sends its own DevInfo, and AAAA checks whether it has received it. If it has not received it, the process may not continue. If it has received it, AAAA displays "Successful recruitment", and at the same time, AAAA sends its own DevInfo, and BBBB displays "Successful network access", thus completing the network access (i.e., confirming successful network access through DevInfo interaction).

[0214] 3. Neighbor table information update

[0215] When AAAA creates a network, it creates a network device mapA, which is stored on device AAAA. The ID of this map is 0.

[0216] The map format is shown in Table 3, which is the initial map A for device AAAA:

[0217] Table 3

[0218]

[0219] Before BBBB joins the network, a local network device mapB is created and stored on device BBBB. The ID of this map is 0.

[0220] The map format is shown in Table 4, which represents the initial mapB for device BBBB:

[0221] Table 4

[0222]

[0223] After BBBB successfully joins the network, if it continuously receives EA Beacon messages from AAAA for 3 seconds, BBBB will update its neighbor table ID and neighbor table. Table 5 shows the mapB of BBBB after successful network joining.

[0224] Table 5

[0225]

[0226] After the update is complete, the neighbor table in the EA Beacon of device BBBB will be updated, and the new map will be broadcast for 3 seconds after the update.

[0227] Once BBBB successfully joins the network, if AAAA receives BBBB's EA Beacon information for 3 consecutive seconds, it will also consider BBBB to have successfully joined the network and will update its neighbor table ID and neighbor table. As shown in Table 6, this is the mapA of device AAAA.

[0228] Table 6

[0229]

[0230] After the update is complete, the neighbor table in the EA Beacon information of device AAAA will be updated, and the new map will be broadcast for 3 seconds after the update.

[0231] If AAAA and BBBB receive each other's neighbor table map in their EA Beacon, they will update the map of the other device saved in their own device. After saving, they will update the neighbor table information in their own EA Beacon.

[0232] like Figure 7C The diagram shows a network topology, with devices AAAA and BBBB currently in the network.

[0233] 4. If a device CCCC arrives, CCCC can only receive broadcasts from BBBB, not AAAA. If BBBB invites CCCC to join the network, it will become like this: Figure 7D A schematic diagram of another type of network is shown.

[0234] The network entry process between BBBB and CCCC is as described above. After receiving CCC C's EABeacon for 3 consecutive seconds, BBBB assumes that CCCC has also successfully entered the network. BBBB then updates its neighbor table (map ID) and neighbor table, obtaining the device BBBB's mapB as shown in Table 7.

[0235] Table 7

[0236]

[0237] If AAAA discovers a new neighbor table map ID in BBBB's EA Beacon, it will update its own neighbor table based on the new map ID. The updated mapA of AAAA is shown in Table 8.

[0238] Table 8

[0239]

[0240] Similarly, newly joined devices will jump between devices through the device neighbor table information, and each device will update its own neighbor table to know the latest status and topology of the network.

[0241] If BBBB updates its neighbor table map after joining the CCCC network and sends it continuously for 3 seconds, but AAAA does not receive BBBB's latest neighbor table, then AAAA can determine whether BBBB has updated its neighbor table map by looking at BBBB's neighbor table map ID. If it finds that the map ID sent by BBBB is greater than the ID of mapB stored locally by AAAA, it requests BBBB to send a new neighbor table map. After receiving the request, BBBB adds its own neighbor table map to the EA Beacon again and sends it continuously for 3 seconds.

[0242] 5. Equipment off-grid

[0243] In the current network topology, devices AAAA, BBBB, and CCCC are all connected to the network. Each device sends an EA Beacon every 80ms. The EA Beacon carries the network ID, device ID, neighbor table information, etc.

[0244] If the CCCC device is unable to continue broadcasting due to power depletion or shutdown, BBBB will assume that the CCCC device has left the network if it does not receive the CCCC's EA Beacon for 3 consecutive seconds. BBBB will then update its EA Beacon neighbor table and set the corresponding bit for CCCC to 0.

[0245] 6. The correspondence between the neighbor table map and the information in EA Beacon

[0246] like Figure 7E The diagram shows the correspondence between the neighbor table and the neighbor table information. MapA is located on device AAAA, mapB is located on device BBBB, and mapC is located on device CCCC.

[0247] The numbers 0x2, 0x0007, 0x0007, and 0x0007 below represent the neighbor table information sent by the EA Beacon for each device. The preceding 0x2 represents the current neighbor table Map ID for this device, while the following 0x0007, 0x0007, and 0x0007 have different meanings for different devices. Taking device AAAA as an example:

[0248] The first 0x0007 can be converted to binary as: 0b 0000 0000 0000 0111;

[0249] The binary representation of 0x0007 has 32 bits. The last three 1s correspond to 0xAAAA, 0xBBBB, and 0xCCCC in map A. The neighbor table sends the entire network topology information.

[0250] For BBBB devices, if the CCCC device leaves the network, its mapB information will not change; only the neighbor table information in its EA Beacon information will be modified. The BBBB's neighbor table information will be changed from 0x2,0x0007,0x0007,0x0007 to 0x2,0x0003,0x0003. For BBBB, the binary representation of 0x0003 is 0b 0000 0000 0000 0011, where the 11 corresponds to the devices 0xBBBB and 0xAAA with ID 2mapB.

[0251] 7. Emergency SOS Mode

[0252] In emergencies such as earthquakes or people getting lost outdoors, the emergency distress mode can be activated. The device periodically sends location information via EA Beacon, allowing rescuers to easily locate the person using their mobile phones.

[0253] The message format in emergency mode is shown in Table 9:

[0254] Table 9

[0255] SOS Device Location Information (Lat / Long / GNSS Positioning Information)

[0256] If other devices within the network receive an emergency distress message, they will automatically forward it.

[0257] In summary, the beneficial effects of the above scheme are as follows:

[0258] 1. It allows for flexible and convenient network setup;

[0259] 2. No central node device is required; all devices can perform forwarding.

[0260] Figure 8 This is a schematic diagram of the structure of a communication device according to an embodiment of this disclosure. Figure 8 As shown, it includes a transceiver module 810 and a processing module 820.

[0261] The transceiver module is used to: in response to receiving feedback information from the second terminal device regarding the network access request, send network access information to the second terminal device through the first communication link; in response to the completion of sending the network access information, disconnect the first communication link and broadcast the first neighbor table information of the first terminal device.

[0262] The processing module is used to: determine whether the second terminal device has joined the network in response to receiving the second neighbor table information of the second terminal device within a first preset time period.

[0263] In some embodiments, the processing module is further configured to create a network and a first neighbor table, and perform a network scan. The first neighbor table includes a neighbor table identifier and a neighbor device identifier, and the information in the first neighbor table corresponds to the information in the first neighbor table. Based on the attribute information broadcast by multiple terminal devices, a second terminal device is determined among the multiple terminal devices. The second terminal device is at least one of the multiple terminal devices, and the attribute information indicates that the second terminal device supports networking. The transceiver module is further configured to establish a first communication link with the second terminal device and send a network access request to the second terminal device through the first communication link.

[0264] In some embodiments, the processing module is further configured to update the first neighbor table and the first neighbor table information based on the second neighbor table information of the second terminal device, wherein the updated first neighbor table includes the device identifier of the second terminal device; the transceiver module is further configured to broadcast the updated first neighbor table within a second preset time period.

[0265] In some embodiments, the processing module is further configured to, in response to receiving the second neighbor table broadcast by the second terminal device, determine the third neighbor table information and the third neighbor table, wherein the second neighbor table includes the neighbor table information of the third terminal device, and the third terminal device joins the network based on the network access request of the second terminal device; the transceiver module is further configured to broadcast the third neighbor table information and broadcast the third neighbor table within a second preset time period.

[0266] In some embodiments, the transceiver module is further configured to receive fourth neighbor table information broadcast by the second terminal device, wherein the neighbor table identifier indicated by the fourth neighbor table information is greater than the neighbor table identifier indicated by the second neighbor table information; send request information to the second terminal device, wherein the request information is used to request the second terminal device to send the second neighbor table corresponding to the fourth neighbor table information; and determine third neighbor table information and the third neighbor table based on the second neighbor table.

[0267] In some embodiments, the processing module is further configured to delete the neighbor table information of the third terminal device from the third neighbor table information in response to the fact that no neighbor table information of the third terminal device is received within a second preset time period.

[0268] In some embodiments, the transceiver module is further configured to, in response to receiving a distress message broadcast by the fourth terminal device, send the distress message to neighboring devices within the network, where the fourth terminal device is not within the network.

[0269] In summary, the communication device proposed in this disclosure transmits network access information through a communication link by receiving feedback information from other terminal devices regarding their network access requests. After transmission is completed, the communication link is disconnected, and neighbor table information is retransmitted via broadcast. Upon receiving neighbor table information broadcast by other terminal devices, the device confirms that other terminal devices have joined the network, thereby improving the flexibility of network formation, realizing decentralized networking, and ensuring communication within the network.

[0270] Figure 9 This is a schematic diagram of the structure of a communication device according to an embodiment of this disclosure. Figure 9 As shown, it includes a transceiver module 910 and a processing module 920.

[0271] The transceiver module is used to: in response to a network access request sent by a first terminal device through a first communication link, send a network access feedback to the first terminal device; receive network access information from the first terminal device through the first communication link; in response to the completion of receiving the network access information, disconnect the first communication link and broadcast the second neighbor table information of the second terminal device; the processing module is used to determine to join the network in response to receiving the first neighbor table information broadcast by the first terminal device within a first preset time period.

[0272] In some embodiments, the transceiver module is further configured to broadcast attribute information of the second terminal device, the attribute information indicating that the second terminal device supports networking; the processing module is further configured to establish a first communication link with the first terminal device in response to a connection request from the first terminal device.

[0273] In some embodiments, the processing module is further configured to respond to the third terminal device joining the network based on the network access request of the second terminal device, update the second neighbor table information and the second neighbor table corresponding to the second neighbor table information, and determine the third neighbor table information and the third neighbor table; the transceiver module is further configured to broadcast the third neighbor table information and broadcast the third neighbor table within a second preset time period.

[0274] In some embodiments, the transceiver module is further configured to send a third neighbor table to the first terminal device in response to a request from the first terminal device.

[0275] In some embodiments, the transceiver module is further configured to delete the neighbor table information of the third terminal device from the third neighbor table information in response to not receiving the neighbor table information broadcast by the third terminal device within a second preset time period.

[0276] In some embodiments, the transceiver module is further configured to receive distress information from a fourth terminal device broadcast by a first terminal device through a network, wherein the fourth terminal device is not within the network.

[0277] In the above embodiments, other terminal devices can join the network through any terminal device's network access request, thereby improving the flexibility of the network, realizing decentralized networking, and ensuring communication within the network.

[0278] Figure 10 This is a schematic diagram of the structure of an electronic device 1000 for implementing the above-described networking method, according to an exemplary embodiment.

[0279] Reference Figure 10 The electronic device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.

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

[0281] Memory 1004 is configured to store various types of data to support the operation of electronic device 1000. Examples of this data include instructions for any application or method operating on electronic device 1000, contact data, phonebook data, messages, pictures, videos, etc. Memory 1004 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.

[0282] Power supply component 1006 provides power to various components of electronic device 1000. Power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1000.

[0283] Multimedia component 1008 includes a screen that provides an output interface between electronic device 1000 and 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 touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1008 includes a front-facing camera and / or a rear-facing camera. When electronic device 1000 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or 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.

[0284] Audio component 1010 is configured to output and / or input audio signals. For example, audio component 1010 includes a microphone (MIC) configured to receive external audio signals when electronic device 1000 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 1004 or transmitted via communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.

[0285] I / O interface 1012 provides an interface between processing component 1002 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.

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

[0287] Communication component 1016 is configured to facilitate wired or wireless communication between electronic device 1000 and other devices. Electronic device 1000 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio), or combinations thereof. In one exemplary embodiment, communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1016 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0288] In an exemplary embodiment, the electronic device 1000 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.

[0289] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, which can be executed by a processor 1020 of an electronic device 1000 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.

[0290] Embodiments of this disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the networking method described in the above embodiments of this disclosure.

[0291] Embodiments of this disclosure also provide a computer program product, including a computer program that is executed by a processor using the networking method described in the above embodiments of this disclosure.

[0292] Figure 11 This is a schematic diagram illustrating the structure of a chip 1100 for implementing the above-described networking method, according to an exemplary embodiment. (Refer to...) Figure 11 The chip 1100 includes at least one communication interface 1101 and a processor 1102. The communication interface 1101 is used to receive signals input to the chip 1100 or signals output from the chip 1100. The processor 1102 communicates with the communication interface 1101 and implements the networking method described in the above embodiments of this disclosure through logic circuits or executing code instructions.

[0293] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0294] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0295] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.

[0296] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0297] It should be understood that various parts of the embodiments of this disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0298] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0299] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a single processing module, or each unit can exist physically separately, or two or more units can be integrated into a single module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The aforementioned storage medium can be a read-only memory, a hard disk, or an optical disk, etc.

[0300] Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.

Claims

1. A networking method, characterized in that, The method is executed by a first terminal device, and the method includes: In response to receiving feedback information from the second terminal device regarding the network access request, the network access information is sent to the second terminal device through the first communication link; In response to the completion of the network access information transmission, the first communication link is disconnected, and the first neighbor table information of the first terminal device is broadcast. Upon receiving the second neighbor table information from the second terminal device, it is determined that the second terminal device has joined the network.

2. The method according to claim 1, characterized in that, The step of determining that the second terminal device has joined the network in response to receiving the second neighbor table information of the second terminal device includes: determining that the second terminal device has joined the network in response to receiving the second neighbor table information of the second terminal device within a first preset time period; The method further includes: Create the network and the first neighbor table, and perform a network scan. The first neighbor table includes a neighbor table identifier and a neighbor device identifier. The information in the first neighbor table has a corresponding relationship with the information in the first neighbor table. Based on attribute information broadcast by multiple terminal devices, the second terminal device is determined among the multiple terminal devices, wherein the second terminal device is at least one of the multiple terminal devices, and the attribute information indicates that the second terminal device supports networking; The first communication link is established with the second terminal device, and the network access request is sent to the second terminal device through the first communication link.

3. The method according to claim 2, characterized in that, The method further includes: Based on the second neighbor table information of the second terminal device, update the first neighbor table and the first neighbor table information. The updated first neighbor table includes the device identifier of the second terminal device. The updated first neighbor table is broadcast within the second preset time period.

4. The method according to claim 3, characterized in that, The method further includes: In response to receiving the second neighbor table broadcast by the second terminal device, the third neighbor table information and the third neighbor table are determined. The second neighbor table includes the device identifier of the third terminal device. The third terminal device joins the network based on the network access request of the second terminal device. Broadcast the information in the third neighbor table, and broadcast the third neighbor table within the second preset time period.

5. The method according to claim 3, characterized in that, The method further includes: The device receives fourth neighbor table information broadcast by the second terminal device, wherein the neighbor table identifier indicated by the fourth neighbor table information is greater than the neighbor table identifier indicated by the second neighbor table information. Send a request message to the second terminal device, the request message being used to request the second terminal device to send the second neighbor table corresponding to the fourth neighbor table information; Based on the second neighbor table, the information of the third neighbor table and the third neighbor table are determined.

6. The method according to claim 4 or 5, characterized in that, The method further includes: In response to the fact that no neighbor table information of the third terminal device is received within the second preset time period, the neighbor table information of the third terminal device is deleted from the third neighbor table information.

7. The method according to claim 1, characterized in that, The method further includes: In response to receiving a distress message broadcast by a fourth terminal device, the distress message is sent to neighboring devices within the network, where the fourth terminal device is not located within the network.

8. A networking method, characterized in that, The method is executed by a second terminal device, and the method includes: In response to the network access request sent by the first terminal device through the first communication link, a network access feedback is sent to the first terminal device; Receive network access information from the first terminal device through the first communication link; In response to the completion of the network access information reception, the first communication link is disconnected, and the second neighbor table information of the second terminal device is broadcast; Upon receiving the first neighbor table information broadcast by the first terminal device, the device determines to join the network.

9. The method according to claim 8, characterized in that, The step of determining to join the network in response to receiving the first neighbor table information broadcast by the first terminal device includes determining to join the network in response to receiving the first neighbor table information broadcast by the first terminal device within a first preset time period. The method further includes: Broadcast the attribute information of the second terminal device, the attribute information indicating that the second terminal device supports networking; In response to the connection request from the first terminal device, the first communication link is established with the first terminal device.

10. The method according to claim 9, characterized in that, The method further includes: In response to the third terminal device joining the network based on the network access request of the second terminal device, the second neighbor table information and the second neighbor table corresponding to the second neighbor table information are updated, and the third neighbor table information and the third neighbor table are determined. Broadcast the information in the third neighbor table, and broadcast the third neighbor table within a second preset time period.

11. The method according to claim 10, characterized in that, The method further includes: In response to the request from the first terminal device, the third neighbor table is sent to the first terminal device.

12. The method according to claim 10 or 11, characterized in that, The method further includes: In response to not receiving neighbor table information broadcast by the third terminal device within the second preset time period, the neighbor table information of the third terminal device is deleted from the third neighbor table information.

13. The method according to claim 8, characterized in that, The method further includes: Through the network, the distress message from the fourth terminal device broadcast by the first terminal device is received. The fourth terminal device is not within the network.

14. A communication system, characterized in that, Including the first terminal device and the second terminal device, The first terminal device is configured to perform the method of any one of claims 1-7; The second terminal device is configured to perform the method of any one of claims 8-13.

15. The communication system according to claim 14, characterized in that, The communication system also includes a third terminal device and a fourth terminal device.

16. A communication device, characterized in that, The communication device is configured to perform the method of any one of claims 1-7 or 8-13.

17. An electronic device, characterized in that, include: The processor and the memory used to store computer programs that can run on the processor. When the processor is used to run the computer program, it performs the method according to any one of claims 1-7 or 8-13.

18. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7 or 8-13.

19. A chip, characterized in that, It includes at least one processor and a communication interface; the communication interface is used to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method as described in any one of claims 1-7 or 8-13 through logic circuits or executing code instructions.

Citation Information

Patent Citations

  • New node network-accessing method of wireless multi-hop cooperative network

    CN106231652A

  • Neighbor discovery method and electronic equipment

    CN116132963A

  • Carrier communication routing networking method for power distribution network

    CN116319527A

  • Ad hoc network communication method based on wireless mesh and network access equipment

    CN117241249A

  • Emergency communication network generation method, terminal equipment and electronic equipment

    CN119521187A