Dynamic networking method and apparatus, electronic device, and storage medium

CN117880926BActive Publication Date: 2026-10-23GUANGZHOU SAITE INTELLIGENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311722856.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2026-10-23
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

[0005]本申请提供了一种动态组网方法、装置、电子设备及存储介质,解决了设备间动态组网难以高效进行的问题,本方案能够使得各节点能够更加灵活地进行动态组网,避免部分节点脱网而带来的影响,有效地保障了网络稳定性,有助于设备高效地进行组网并完成数据交换

Benefits of technology

[0022]本申请方案中各节点通过不断广播自身的组网请求信息以及接收其他节点广播的组网请求信息,从而各节点能够连接相应的节点以建立组网连接,并且在节点已与其他节点建立组网连接时,能够结合所接收的组网请求信息确定是否需要更换所连接的节点,使得各节点能够灵活地进行动态组网,以应对部分节点脱网、新增节点等情况,有效地保障了网络稳定性,有助于设备高效地进行组网并完成数据交换。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117880926B_ABST
    Figure CN117880926B_ABST
Patent Text Reader

Abstract

The application provides a dynamic networking method and device, electronic equipment and storage medium in the technical field of Internet of Things, solves the problem that dynamic networking between devices is difficult to be efficiently performed, in the scheme, each node continuously broadcasts networking request information of itself and receives networking request information broadcast by other nodes, so that each node can connect corresponding nodes to establish networking connection, and when the node has established networking connection with other nodes, it can determine whether the connected node needs to be replaced in combination with the received networking request information, so that each node can flexibly perform dynamic networking to cope with situations such as part of the nodes being offline and new nodes being added, effectively guaranteeing network stability, and helping devices to efficiently perform networking and complete data exchange.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a dynamic networking method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of wireless communication technology, communication between devices (such as IoT devices like robots) and the outside world (such as other devices) can often be based on dynamic networking technology for data exchange. In related technologies, dynamic networking typically involves grouping various devices that need to communicate with the outside world into network nodes. A central node is selected from all these network nodes and can communicate with all other network nodes. This central node then communicates with the outside world, thereby achieving the goal of communication between all devices and the outside world.

[0003] However, the dynamic networking technology used in the relevant technologies has limitations. For example, each network node communicates with the outside world through a central node. Once the central node goes offline, other network nodes cannot exchange data, resulting in poor network stability.

[0004] It is evident that dynamic networking technology in related technologies has limitations, making it difficult for devices to efficiently network and exchange data. Summary of the Invention

[0005] This application provides a dynamic networking method, apparatus, electronic device, and storage medium, which solves the problem of inefficient dynamic networking between devices. This solution enables each node to perform dynamic networking more flexibly, avoids the impact of some nodes going offline, effectively ensures network stability, and helps devices to efficiently network and complete data exchange.

[0006] Firstly, this application provides a dynamic networking method applied to electronic devices within a wireless local area network (WLAN). The WLAN includes multiple electronic devices, with each electronic device serving as a node within the WLAN. Each electronic device includes a 433 wireless communication module and a wireless network card. The 433 wireless communication module is used for transmitting and receiving data, and the wireless network card has access point (AP) functionality and a wireless connection request function. The dynamic networking method includes:

[0007] The 433 wireless communication module cyclically broadcasts network formation request information, which includes the node ID and connection information of this node.

[0008] If this node has not established a network connection with other nodes, it filters out the target nodes to be connected to this node from the latest received network request information;

[0009] If this node has already established a network connection with other nodes, determine whether it is necessary to replace the connected node;

[0010] If it is determined that the connected node needs to be replaced, the target node to be connected to this node is selected from the latest received network request information.

[0011] Once the target node to be connected is determined, a network connection is established with the target node through the wireless network card based on the connection information of the target node.

[0012] Secondly, this application also provides a dynamic networking device for use in electronic devices within a wireless local area network (WLAN). The WLAN includes multiple electronic devices, with each electronic device acting as a node within the WLAN. Each electronic device includes a 433 wireless communication module and a wireless network card. The 433 wireless communication module is used for transmitting and receiving data, and the wireless network card has access point (AP) functionality and a wireless connection request function. The dynamic networking device includes:

[0013] The information broadcasting module is configured to cyclically broadcast network request information based on the 433 wireless communication module. The network request information includes the node ID and connection information of this node.

[0014] The first node filtering module is configured to filter out target nodes to be connected to this node from the latest received networking request information when this node has not established a network connection with other nodes.

[0015] The second node filtering module is configured to determine whether the connected node needs to be replaced when the node has already established a network connection with other nodes.

[0016] The node replacement module is configured to, if it is determined that the connected node needs to be replaced, filter out the target node to be connected to from the latest received network request information;

[0017] The networking module is configured to establish a networking connection with the target node through a wireless network card, based on the target node's connection information, once the target node to be connected is determined.

[0018] Thirdly, this application also provides an electronic device comprising:

[0019] One or more processors;

[0020] A storage device for storing one or more programs, which, when executed by one or more processors, enable the one or more processors to implement the dynamic networking method described above.

[0021] Fourthly, this application also provides a storage medium storing computer-executable instructions, which, when executed by a processor, are used to perform the dynamic networking method described above.

[0022] In this application's scheme, each node continuously broadcasts its own network request information and receives network request information broadcast by other nodes. This allows each node to connect to the corresponding nodes to establish a network connection. Furthermore, when a node has already established a network connection with other nodes, it can determine whether to replace the connected node based on the received network request information. This enables each node to flexibly and dynamically form a network to cope with situations such as some nodes going offline or new nodes being added, effectively ensuring network stability and helping devices to efficiently form a network and complete data exchange. Attached Figure Description

[0023] Figure 1 This is a schematic diagram illustrating the steps of a dynamic networking method provided in an embodiment of this application;

[0024] Figure 2 This is a schematic diagram illustrating the steps of filtering target nodes according to an embodiment of this application;

[0025] Figure 3 A schematic diagram illustrating the establishment of network connections between nodes according to an embodiment of this application;

[0026] Figure 4 This is a schematic diagram of the structure of a dynamic networking device provided in an embodiment of this application;

[0027] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] The embodiments of this application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of this application and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, the accompanying drawings only show the parts related to the embodiments of this application, not all structures. Those skilled in the art, after reading this specification, should be able to conceive that any combination of technical features can constitute an optional implementation method, provided that the technical features do not contradict each other.

[0029] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship. In the description of this application, "multiple" means two or more, and "several" means one or more.

[0030] The dynamic networking method provided in this application can be applied to electronic devices used to build wireless local area networks, such as intelligent terminals like mobile robots. It is conceivable that the built wireless local area network includes multiple electronic devices, and the electronic devices are wirelessly connected to each other to achieve data exchange.

[0031] Each electronic device includes a 433MHz wireless communication module and a wireless network card. The 433MHz wireless communication module includes a radio frequency transmitter and a receiver for data transmission and reception, and it uses a 433MHz wireless signal for data transmission and reception. The wireless network card has both AP (Access Point) and wireless connection request functions. In other words, a wireless network card with AP functionality enables the device to perform relay and bridging functions, providing an AP hotspot for other devices to receive and forward data sent by those devices; while a wireless network card with wireless connection request function allows the device to connect to AP hotspots provided by other wireless network cards.

[0032] Figure 1 This is a schematic diagram illustrating the steps of a dynamic networking method provided in an embodiment of this application. It is understood that the dynamic networking method provided in this application can be applied to various electronic devices that need to access a wireless local area network. To more clearly describe the solution of this application, the dynamic networking method is described below from the perspective of an electronic device, and the specific steps are as follows:

[0033] Step S110: Based on the 433 wireless communication module, broadcast the network formation request information in a loop. The network formation request information includes the node ID and connection information of this node.

[0034] Understandably, the device (i.e., this node) cyclically broadcasts its network request information through its own 433 wireless communication module. The time interval between each broadcast can be set according to actual application requirements, allowing the device to continuously broadcast its network request information. Furthermore, since the electronic device is equipped with a 433 wireless communication module, it can also receive network request information broadcast by other devices.

[0035] The network request information includes the node ID (Identity) and connection information for this node. The node ID is an identifier associated with the electronic device itself, such as the device's unique identifier or the unique identifier configured within the local area network when the electronic device connects to the local area network. The connection information is associated with the AP hotspot provided by the wireless network card, such as the AP hotspot name and password, to facilitate other devices connecting to the AP hotspot.

[0036] Step S120: If this node has not established a network connection with other nodes, select the target node to be connected to this node from the latest received network request information.

[0037] For this node, there are two possibilities: it may be in a position where it is establishing a network connection with other nodes, or it may already have established a network connection with other nodes. If this node has not established a network connection with other nodes, it needs to establish a network connection with other nodes to filter out the target node from the latest received network request information. This target node is the node to be connected to this node.

[0038] In one embodiment, the current node filters out the target node by comparing the node IDs of all nodes. Figure 2 This is a schematic diagram illustrating the steps for filtering target nodes according to an embodiment of this application. The specific steps are as follows:

[0039] Step S210: Compare the node ID of this node with the node IDs of other nodes to determine the optional nodes whose node ID values ​​are less than those of this node among the other nodes.

[0040] Step S220: Select the node with the largest node ID value from the available nodes as the target node.

[0041] Understandably, upon receiving a network formation request from another node, this node parses it to determine the node IDs of the other nodes. Then, this node compares its own node ID with the node IDs of the other nodes to identify potential nodes with node IDs lower than its own. The node with the largest node ID among the potential nodes is the target node.

[0042] It's conceivable that the node IDs of each node can be sorted according to their values, allowing nodes with IDs smaller than the current node to be considered as potential candidates. Then, the node with the largest ID among these candidates can be selected as the target node. For example, during the comparison process, the current node can convert each node ID into an integer of equal digits for comparison, using the converted integer as the node ID value to determine the size of each node's ID. Therefore, by comparing node IDs to select the appropriate target node, and with all nodes selecting target nodes according to the same rules, nodes can more flexibly implement dynamic networking to address situations affecting network stability, such as some nodes leaving the network or new nodes joining.

[0043] Step S130: If this node has already established a network connection with other nodes, determine whether it is necessary to replace the connected node.

[0044] If a node has already established a network connection with other nodes, it needs to determine whether it needs to replace the connected node. It is conceivable that in scenarios where a node leaves the network or a new node joins, if the node it is connected to needs to leave the network or a new node needs to connect to it, the node needs to disconnect from the network connection with the currently connected node and then re-establish a network connection with another node.

[0045] Therefore, the situations requiring replacement of the currently connected node include, but are not limited to, situations where a node leaves the network or a new node joins. In some embodiments, the node can listen for network requests broadcast by other nodes. The currently connected node refers to the node currently connected to the node. If the node does not receive a network request from the currently connected node within a preset time period, it can determine that the currently connected node has left the network. Conversely, if the node receives a network request broadcast by a new node, it can determine that a new node needs to join the network. Therefore, the node determines that it needs to replace the connected node.

[0046] Step S140: If it is determined that the connected node needs to be replaced, then select the target node to be connected to this node from the latest received network request information.

[0047] If this node determines that it needs to replace the connected node, it filters the target node from the latest received network request information. For example, it selects the target node to be connected using the filtering method provided in the above embodiment. For example, this node selects the node with the largest node ID value among several nodes whose node ID value is less than its own node ID as the target node by comparing the node IDs of each node.

[0048] It's conceivable that when a currently connected node leaves the network, the network request information received by this node will not include the network request information of the currently connected node. Therefore, this node will not select the currently connected node again during the target node selection process, but will instead select another node as the target node. Similarly, when a new node joins the network, this node can select a target node using the same selection method. Whether a new node is a potential target node for this node depends on its node ID. For example, if the new node's node ID is less than this node's node ID but greater than the node ID of the currently connected node, then the new node is selected as the potential target node.

[0049] In addition, this node needs to disconnect from the network connection with the currently connected node in order to establish a connection with the selected target node. Therefore, it can be understood that this node can either disconnect from the network connection with the currently connected node first and then filter the target node, or filter the target node first and then disconnect from the network connection with the currently connected node.

[0050] Step S150: If the target node to be connected is determined, a network connection is established with the target node through the wireless network card based on the connection information of the target node.

[0051] After identifying the target node to connect to, this node can receive connection information from other nodes, including the AP hotspot name and password of its own wireless network card. Based on the AP hotspot name and password, the node can establish a connection with another node. Therefore, this node establishes a network connection and exchanges data with the target node by connecting to the AP hotspot provided by the target node.

[0052] Therefore, when each node selects the target node and establishes a network connection according to the above filtering rules, each node forms a wireless local area network through the network connection in turn. When a node needs to interact with another node, if there are several other nodes between the two nodes, the data is transmitted sequentially through the intermediate nodes, thereby realizing the data interaction.

[0053] As can be seen from the above scheme, each node continuously broadcasts its own networking request information and receives networking request information broadcast by other nodes, thereby enabling each node to connect to the corresponding nodes to establish a networking connection. Furthermore, when a node has already established a networking connection with other nodes, it can determine whether to replace the connected node based on the received networking request information. This allows each node to flexibly and dynamically form a network to cope with situations such as some nodes leaving the network or adding new nodes, effectively ensuring network stability and helping devices to efficiently form a network and complete data exchange.

[0054] In some embodiments, if this node determines that it does not need to replace the connected node and the connected node is a disabled node that has stopped requesting wireless connections, it is conceivable that the electronic device, as a disabled node, disables its wireless connection request function, and the device cannot connect to the AP hotspot provided by other wireless network cards. In this case, this node maintains its connection with the currently connected node, and this node also needs to filter out alternative nodes from other nodes, and these alternative nodes serve as another target node to be connected to, so that this node can establish a network connection with them.

[0055] For example, in one embodiment, the node obtains the node ID of each node from the latest received network request information, and then selects the node with a node ID value less than that of the node as a candidate node. The node can select another node from the candidate nodes other than the currently connected node, such as selecting the node with a node ID value only less than that of the currently connected node as a candidate node, that is, the node ID of the candidate node is less than the node ID of the currently connected node and greater than the node ID of other nodes in the candidate nodes.

[0056] Understandably, since the current connection node stops requesting wireless connections, when data transmission is needed, the current connection node cannot transmit data to the next node. Instead, the current node can transmit data to the next node through another node (i.e., a backup node) to achieve data interaction between nodes.

[0057] Figure 3 This is a schematic diagram illustrating the establishment of a network connection between nodes according to an embodiment of this application, wherein... Figure 3 'a' represents a diagram illustrating the network connection established by nodes after a node leaves the network. The node ID values ​​of nodes A, B, C, and D decrease sequentially. If node C leaves the network, the original network connection between node B and node C, as well as the original network connection between node C and node D, are both broken. Node B then uses node D, whose node ID value is less than that of node C, as its target node, thus establishing a network connection between node B and node D.

[0058] and Figure 3 'b' represents a diagram illustrating the network connection established by existing nodes when a new node joins the network. Similarly, the node IDs of nodes A, B, C, and D decrease sequentially. Node E, as a newly joined node, has a node ID less than node C's but greater than node D's. Although both nodes E and D are potential candidates for node C, node E's node ID is greater than C's. Therefore, for node C, its target node for connection changes to node E. Node C disconnects its existing network connection with node D and establishes a network connection with node E, while node E retains its network connection with node D.

[0059] Figure 3 c represents a diagram illustrating the establishment of network connections among nodes when a node is disabled. Similarly, the node ID values ​​corresponding to nodes A, B, C, and D decrease sequentially. Node C is a disabled node, meaning that there is no longer a network connection between node C and node D. Node B selects node D as another target node to establish a network connection with node D. Of course, the original network connection between node B and node C is still maintained.

[0060] Figure 4 This is a schematic diagram of the structure of a dynamic networking device provided in an embodiment of this application. The device is applied to an electronic device in a wireless local area network and is used to execute the dynamic networking method provided in the above embodiment. It also has the functional modules and beneficial effects corresponding to the execution method.

[0061] A wireless local area network (WLAN) includes multiple electronic devices, with each electronic device acting as a node within the WLAN. Each electronic device includes a 433 wireless communication module and a wireless network card. The 433 wireless communication module is used for transmitting and receiving data, while the wireless network card has access point (AP) functionality and the ability to request wireless connections.

[0062] As shown in the figure, the device includes an information broadcasting module 401, a first node filtering module 402, a second node filtering module 403, a node replacement module 404, and a network connection module 405.

[0063] Among them, the information broadcasting module 401 is configured to broadcast network request information in a loop based on the 433 wireless communication module. The network request information includes the node ID and connection information of this node.

[0064] The first node filtering module 402 is configured to filter out target nodes to be connected to this node from the latest received networking request information when this node has not established a network connection with other nodes.

[0065] The second node filtering module 403 is configured to determine whether the connected node needs to be replaced when the node has already established a network connection with other nodes.

[0066] The node replacement module 404 is configured to, if it is determined that the connected node needs to be replaced, select the target node to be connected to from the latest received networking request information;

[0067] The networking module 405 is configured to establish a networking connection with the target node through a wireless network card based on the connection information of the target node when the target node to be connected is determined.

[0068] Based on the above embodiments, the first node filtering module 402 is further configured as follows:

[0069] Compare the node ID of this node with the node IDs of other nodes to determine the possible nodes whose node ID values ​​are lower than this node's.

[0070] Select the node with the largest node ID value from the available nodes as the target node.

[0071] Based on the above embodiments, the connection information of each node includes the AP hotspot name and password of its own wireless network card. This node establishes a network connection with the target node and exchanges data by connecting to the AP hotspot provided by the target node.

[0072] Based on the above embodiments, the second node filtering module 403 is further configured as follows:

[0073] If no network request information is received from the currently connected node within a preset time period, the currently connected node is determined to exit the network, and the connected node is replaced.

[0074] Upon receiving a network request message broadcast by a new node, it is determined that a new node has joined the network, and the node to which the node is connected is replaced.

[0075] Based on the above embodiments, the node replacement module 404 is further configured as follows:

[0076] Disconnect from the network connection of the currently connected node;

[0077] Compare the node ID of this node with the node IDs of other nodes to determine the possible nodes whose node ID values ​​are lower than this node's.

[0078] Select the node with the largest node ID value from the available nodes as the target node.

[0079] Based on the above embodiments, the dynamic networking device further includes a node reconfiguration module, which is configured as follows:

[0080] If it is determined that there is no need to replace the connected node and the connected node is a disabled node that stops requesting wireless connections, then maintain the network connection with the currently connected node, and select another node from the other nodes as a backup node, and use the backup node and the currently connected node as the target node.

[0081] Based on the above embodiments, the alternative node is another node among the selectable nodes whose node ID value is less than the currently connected node, and the selectable node is a node among other nodes whose node ID value is less than the first node ID.

[0082] It is worth noting that in the above embodiments of the dynamic networking device, the modules are divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each module are only for easy differentiation and are not used to limit the scope of protection of this application.

[0083] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of this application. The device is used to execute the dynamic networking method provided in the above embodiments and has corresponding functional modules and beneficial effects for executing the method. As shown in the figure, the electronic device includes a processor 501, a memory 502, an input device 503, and an output device 504. The number of processors 501 can be one or more; one processor 501 is shown as an example in the figure. The processor 501, memory 502, input device 503, and output device 504 can be connected via a bus or other means; a bus connection is shown as an example in the figure. The memory 502, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the dynamic networking method in the embodiments of this application. The processor 501 executes various corresponding functional applications and data processing by running the software programs, instructions, and modules stored in the memory 502, thereby realizing the dynamic networking method described above.

[0084] The memory 502 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data recorded or created during use. Furthermore, the memory 502 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 502 may further include memory remotely configured relative to the processor 501, which can be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0085] The input device 503 can be used to input corresponding digital or character information to the processor 501, and to generate key signal inputs related to the user settings and function control of the device; the output device 504 can be used to send or display key signal outputs related to the user settings and function control of the device.

[0086] This application also provides a storage medium storing computer-executable instructions, which, when executed by a processor, are used to perform related operations in the dynamic networking method provided in any embodiment of this application.

[0087] Computer-readable storage media include both permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0088] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0089] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.

Claims

1. A dynamic networking method, characterized in that, An electronic device applied within a wireless local area network (WLAN), wherein the WLAN includes multiple electronic devices, one of which serves as a node within the WLAN, and each electronic device includes a 433 wireless communication module and a wireless network card (NIC). The 433 wireless communication module is used for transmitting and receiving data, and the wireless NIC has access point (AP) functionality and a wireless connection request function. The method includes: The 433 wireless communication module cyclically broadcasts network formation request information, which includes the node ID and connection information of this node. If this node has not established a network connection with other nodes, it filters out the target nodes to be connected to this node from the latest received network request information; If this node has already established a network connection with other nodes, determine whether it is necessary to replace the connected node; If it is determined that the connected node needs to be replaced, the target node to be connected to this node is selected from the latest received network request information. Once a target node to be connected is identified, a network connection is established with the target node through the wireless network card based on the connection information of the target node. Wherein, the step of selecting target nodes to be connected to this node from the latest received network request information when this node has not established a network connection with other nodes includes: Compare the node ID of this node with the node IDs of other nodes to determine the possible nodes whose node ID values ​​are lower than this node's. The node with the largest node ID value among the available nodes is selected as the target node.

2. The dynamic networking method according to claim 1, characterized in that, The connection information of each node includes the AP hotspot name and password of its own wireless network card. This node establishes a network connection with the target node and exchanges data by connecting to the AP hotspot provided by the target node.

3. The dynamic networking method according to claim 1, characterized in that, When a node has already established a network connection with other nodes, determining whether it needs to be replaced includes: If no network request information is received from the currently connected node within a preset time period, it is determined that the currently connected node will exit the network, and the connected node will be replaced. Upon receiving a network request message broadcast by a new node, it is determined that a new node has joined the network, and the node to which the node is connected is replaced.

4. The dynamic networking method according to claim 1 or 3, characterized in that, If it is determined that the connected node needs to be replaced, the target nodes to be connected to this node are selected from the latest received network request information, including: Disconnect from the network connection of the currently connected node; Compare the node ID of this node with the node IDs of other nodes to determine the possible nodes whose node ID values ​​are lower than this node's. The node with the largest node ID value among the available nodes is selected as the target node.

5. The dynamic networking method according to claim 1, characterized in that, The method further includes: If it is determined that there is no need to replace the connected node and the connected node is a disabled node that stops requesting wireless connections, then maintain the network connection with the currently connected node, and select another node from the other nodes as a backup node, and use the backup node and the currently connected node as the target node.

6. The dynamic networking method according to claim 5, characterized in that, The alternative node is another node among the selectable nodes whose node ID value is only less than that of the currently connected node, and the selectable node is a node whose node ID value is less than that of this node among other nodes.

7. A dynamic networking device, characterized in that, An electronic device used in a wireless local area network (WLAN), wherein the WLAN includes multiple electronic devices, one of the electronic devices serves as a node in the WLAN, and each electronic device includes a 433 wireless communication module and a wireless network card. The 433 wireless communication module is used for transmitting and receiving data, and the wireless network card has access point (AP) functionality and a wireless connection request function. The device includes: The information broadcasting module is configured to cyclically broadcast network request information based on the 433 wireless communication module. The network request information includes the node ID and connection information of this node. The first node filtering module is configured to filter out target nodes to be connected to this node from the latest received networking request information when this node has not established a network connection with other nodes. The second node filtering module is configured to determine whether the connected node needs to be replaced when the node has already established a network connection with other nodes. The node replacement module is configured to, if it is determined that the connected node needs to be replaced, filter out the target node to be connected to from the latest received network request information; The networking connection module is configured to establish a networking connection with the target node through the wireless network card based on the connection information of the target node when the target node to be connected is determined. The first node filtering module is further configured as follows: Compare the node ID of this node with the node IDs of other nodes to determine the possible nodes whose node ID values ​​are lower than this node's. The node with the largest node ID value among the available nodes is selected as the target node.

8. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the dynamic networking method as claimed in any one of claims 1-6.

9. A storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a processor, are used to perform the dynamic networking method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • 433M wireless automatic networking method and system

    CN104469877A

  • Node information updating method and device, equipment and storage medium

    CN114465944A