Mesh network equipment ad hoc network method, system, equipment and medium
By pre-setting the master-slave relationship and hop count information of mesh network devices, the problem of low self-organization efficiency of mesh network devices is solved, and fast and secure network construction and efficient networking of multiple slave gateway devices are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ITIBIA TECH (SUZHOU) CO LTD
- Filing Date
- 2025-11-28
- Publication Date
- 2026-04-14
AI Technical Summary
Existing mesh network self-organizing technologies have shortcomings in terms of rapid networking efficiency. The roles of devices are not clear, and a complex negotiation process is required to determine the master-slave relationship. Furthermore, nodes lack effective global information when selecting access paths, making it difficult to quickly establish optimal connections.
The master-slave relationship of mesh network devices is pre-configured. The master gateway device is started and broadcasts a service set identifier with hop count information. The authentication password is obtained through a preset password algorithm. The slave gateway devices are connected and networked based on the hop count information. The service set identifier is updated using the hop count information to network multiple slave gateway devices.
By using preset roles and hop count information, the dynamic negotiation process between devices is avoided, ensuring that the network quickly enters an orderly construction state, improving networking speed and security, enabling slave gateway devices to quickly discover and access the optimal path, and realizing rapid networking of multiple slave gateway devices.
Smart Images

Figure CN121865441A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless local area network communication, and in particular to a method, system, device and medium for self-organizing mesh network devices. Background Technology
[0002] Wireless mesh networks are a novel distributed wireless local area network architecture. Unlike the single-hop star topology of traditional WLANs, their network nodes (devices) function as both access points (APs) and routers, enabling direct communication with multiple peer nodes via wireless links, thus constructing a multi-hop, self-organizing, and self-healing dynamic network. This structure significantly improves network coverage and reliability.
[0003] In the deployment of wireless mesh networks, the key to realizing their technological advantages lies in enabling multiple devices to automatically and quickly discover each other and form an optimal network topology after power-on—the "ad-hoc networking" process. Existing ad-hoc networking technologies typically rely on devices communicating and negotiating through standard protocols to dynamically elect a root node and establish connections.
[0004] However, existing technologies still have shortcomings in achieving rapid self-organizing networks. For example, in the early stages of network deployment, the roles of devices are unclear, requiring a complex negotiation process to determine the master-slave relationship, which is time-consuming; when nodes select access paths, if there is a lack of effective global information, it is difficult to quickly establish the optimal connection.
[0005] Therefore, no effective solution has yet been proposed for improving the efficiency of mesh network self-organizing methods. Summary of the Invention
[0006] This application provides a method, system, device, and medium for self-organizing mesh network devices, to at least address the problem of how to improve the efficiency of self-organizing mesh network devices in related technologies.
[0007] In a first aspect, embodiments of this application provide a method for self-organizing a mesh network device, the method comprising: Pre-configure the master-slave relationship of mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information; When starting from the gateway device, the service set identifiers of the mesh network devices are scanned, and the target service set identifier is determined based on the scanned service set identifiers; Based on the hop count information in the target service set identifier, an authentication password is obtained using a preset password algorithm; Based on the authentication password, the gateway device is connected to the mesh network device corresponding to the target service set identifier; Based on the hop count information of the access mesh network devices, the service set identifier of the slave gateway device is updated and broadcast. Based on the updated service set identifier, multiple slave gateway devices are networked together.
[0008] In one embodiment, setting the master-slave relationship of the mesh network devices includes: The mesh network device connected to the Internet exit is defined as the main gateway device, which serves as the sole gateway for communication between the mesh network and the Internet and is used to handle the forwarding of data streams between the mesh networks. Mesh devices that are not connected to the internet exit are defined as gateway devices, used for user access and forwarding user data.
[0009] In one embodiment, before pre-setting the master-slave relationship of the mesh network devices, the method further includes: Configure the service set identifier and communication frequency band for the backhaul link between mesh network devices; The service set identifier includes fixed keywords and hop count information for the path length from the mesh network device to the main gateway device corresponding to the service set identifier.
[0010] In one embodiment, the step of scanning the service set identifiers of the mesh network devices and determining the target service set identifier based on the scanned service set identifiers includes: The slave gateway device scans the service set identifiers within its own wireless communication coverage area to obtain each service set identifier within the coverage area, wherein the scanned service set identifiers include the service set identifiers of the master gateway device and the slave gateway device; From each of the service set identifiers, service set identifiers with signal strength higher than a preset signal strength are selected to obtain a candidate service set identifier list; From the list of candidate service set identifiers, select the service set identifier with the smallest hop count as the target service set identifier.
[0011] In one embodiment, obtaining the authentication password using a preset password algorithm based on the hop count information in the target service set identifier includes: Obtain the MAC address of the gateway device corresponding to the target service set identifier, and use the MAC address as the base value A; Obtain the hop count value B from the target service set identifier; If B%2=0, then the password is the last 13 characters of the 16-bit MD5 base value A; If B%2=1, then the password is the last 13 characters of the 16-bit MD5 hash of the base value A.
[0012] In one embodiment, after connecting the slave gateway device to the mesh network device corresponding to the target service set identifier, the method further includes: Record the path to the mesh network device corresponding to the target service set identifier as the preferred path, and record the path to the mesh network device corresponding to a non-target service set identifier as the alternative path; When the gateway device restarts, it will preferentially access the preferred path; When the current link signal quality is higher than the switching threshold, switching to the alternative path is prohibited for a preset time. When the current link signal quality is below the switching threshold, the preferred path is switched to the alternative path.
[0013] In one embodiment, updating and broadcasting the service set identifier of the slave gateway device itself based on the hop count information of the access mesh network devices, and forming a network of multiple slave gateway devices based on the updated service set identifier, includes: Based on the hop count value of the access mesh network device, add a preset hop count value to obtain the updated service set identifier; The updated service set identifier is broadcast according to the preset communication frequency band; By scanning to obtain the updated service set identifier, and based on the hop count information in the updated service set identifier, the operations of determining the target service set identifier, obtaining the authentication password, accessing the corresponding mesh network device, and updating and broadcasting the service set identifier are performed cyclically to form a network of multiple gateway devices.
[0014] Secondly, embodiments of this application provide a mesh network device self-organizing network system, the system being used to execute the method described in the first aspect above, the system comprising a broadcast module, a target service set identifier determination module, an authentication password acquisition module, an access module, and a networking module; wherein: The broadcast module is used to pre-set the master-slave relationship of the mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information; The target service set identifier determination module is used to scan the service set identifiers of the mesh network devices when the gateway device starts up, and determine the target service set identifier based on the scanned service set identifiers; The authentication password acquisition module is used to acquire the authentication password based on the hop count information in the target service set identifier using a preset password algorithm. The access module is used to connect the gateway device to the mesh network device corresponding to the target service set identifier based on the authentication password. The networking module is used to update and broadcast the service set identifier of the slave gateway device itself based on the hop count information of the access mesh network devices, and to form a network of multiple slave gateway devices based on the updated service set identifier.
[0015] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a mesh network device self-organizing network method as described in the first aspect above.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a mesh network device self-organizing method as described in the first aspect above.
[0017] The mesh network device self-organizing method, system, device and medium provided in this application embodiment have at least the following technical effects.
[0018] The master-slave relationship of mesh network devices is pre-defined. The master gateway device starts up and broadcasts its service set identifier with hop count information. By pre-setting roles, the dynamic negotiation process between devices is avoided, ensuring that the network immediately enters an orderly construction state. The master gateway broadcasts the service set identifier with hop count, providing clear path selection for subsequent slave gateways and significantly improving network speed. When a slave gateway device starts up, it scans the service set identifiers of the mesh network devices. Based on the scanned service set identifiers, it determines the target service set identifier, enabling the slave gateway device to quickly discover available network nodes in the vicinity. By parsing the hop count information in the service set identifier, it intelligently selects the optimal path to access, reducing connection decision time and improving network efficiency. Based on the hop count information in the target service set identifier, an authentication password is obtained through a pre-set cryptographic algorithm. The hop count is used as a dynamic parameter for password generation, balancing network speed and security. Based on the authentication password, the slave gateway device connects to the mesh network device corresponding to the target service set identifier, enabling the slave gateway device to securely access the mesh network. Based on the hop count information of the access mesh network devices, the service set identifier of the slave gateway device is updated and broadcast. Based on the updated service set identifier, multiple slave gateway devices are networked, making each successfully connected slave gateway device a new network extension point. By incrementing the hop count and broadcasting the new service set identifier, multiple slave gateway devices can quickly form a network. This addresses the problem of how to improve the efficiency of self-organizing mesh network devices in related technologies.
[0019] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart of a mesh network device self-organizing network method; Figure 2 This is a schematic diagram illustrating the structure of a self-organizing mesh network device according to an exemplary embodiment; Figure 3 This is a flowchart illustrating step S102 according to an exemplary embodiment; Figure 4 This is a flowchart illustrating step S105 according to an exemplary embodiment; Figure 5 This is a system architecture block diagram of a mesh network device self-organizing network system according to an exemplary embodiment; Figure 6 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0022] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.
[0023] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0024] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.
[0025] In this document, it should be understood that the terms used may be technical means used to implement part of the present invention or other summary technical terms. For example, the terms may include: Hop count information: refers to the number of intermediate nodes (or devices) a data packet needs to pass through from the source device to the destination device. In this application, it refers to the number of wireless hops a Mesh network device needs to traverse to reach the main gateway device connecting to the Internet. For example, the main gateway itself has a hop count of 0. A slave gateway directly connected to the main gateway has a hop count of 1. Another slave gateway connected to a slave gateway with a hop count of 1 has a hop count of 2.
[0026] Service Set Identifier (SSID): This is the unique identifier for a wireless network, used to distinguish different wireless networks. In this application, it is not only the network name but also an information carrier, including hop count information. For example, an SSID might be displayed as "MyMesh_1," where "1" represents the hop count.
[0027] Backhaul link: In a mesh network, a dedicated wireless channel is used for communication and data transmission between network devices.
[0028] MAC address: Physical address or hardware address. It is a unique identifier assigned to a network interface controller (such as a network card).
[0029] Firstly, embodiments of this application provide a method for self-organizing mesh network devices. Figure 1 This is a flowchart of a mesh network device self-organizing network method, such as... Figure 1 As shown, the method includes: Step S101: Pre-configure the master-slave relationship of the mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information.
[0030] Step S102: When starting from the gateway device, scan the service set identifier of the mesh network device, and determine the target service set identifier based on the scanned service set identifier.
[0031] Step S103: Obtain the authentication password using a preset password algorithm based on the hop count information in the target service set identifier.
[0032] Step S104: Based on the authentication password, connect the gateway device to the mesh network device corresponding to the target service set identifier.
[0033] Step S105: Based on the hop count information of the access mesh network devices, update and broadcast the service set identifier of the gateway device itself, and based on the updated service set identifier, form a network of multiple gateway devices.
[0034] In summary, the embodiments of this application provide a method for self-organizing mesh network devices. Figure 2 This is a schematic diagram illustrating the structure of a self-organizing mesh network device according to an exemplary embodiment, such as... Figure 2As shown, the master-slave relationship of the mesh network devices is pre-defined. The master gateway device starts up and broadcasts its service set identifier containing hop count information. By pre-setting roles, the dynamic negotiation process between devices is avoided, ensuring that the network immediately enters an orderly construction state. The master gateway broadcasts the service set identifier with hop count, providing clear path selection for subsequent slave gateways and significantly improving network speed. When a slave gateway device starts up, it scans the service set identifiers of the mesh network devices. Based on the scanned service set identifiers, it determines the target service set identifier, enabling the slave gateway device to quickly discover available network nodes in the vicinity. By parsing the hop count information in the service set identifier, it intelligently selects the optimal path for access, reducing connection decision time and improving network efficiency. Based on the hop count information in the target service set identifier, an authentication password is obtained through a pre-set cryptographic algorithm. The hop count is used as a dynamic parameter for password generation, balancing network speed and security. Based on the authentication password, the slave gateway device connects to the mesh network device corresponding to the target service set identifier, enabling the slave gateway device to securely access the mesh network. Based on the hop count information of the access mesh network devices, the service set identifier of the slave gateway device is updated and broadcast. Based on the updated service set identifier, multiple slave gateway devices are networked, making each successfully connected slave gateway device a new network extension point. By incrementing the hop count and broadcasting the new service set identifier, multiple slave gateway devices can quickly form a network. This addresses the problem of how to improve the efficiency of self-organizing mesh network devices in related technologies.
[0035] In one embodiment, step S101 pre-sets the master-slave relationship of the mesh network devices, starts the master gateway device, and broadcasts its own service set identifier with hop count information, specifically including: The mesh network device connected to the Internet exit is defined as the main gateway device, which serves as the sole gateway for communication between the mesh network and the Internet and is used to handle the forwarding of data streams between the mesh networks. Mesh devices that are not connected to the internet exit are defined as gateway devices, used for user access and forwarding user data.
[0036] Start the main gateway device and broadcast its service set identifier with hop count information.
[0037] Optionally, to ensure that the relevant mesh network devices can quickly form a self-organizing network, the roles of the mesh network devices need to be pre-configured. Specifically, the mesh device directly connected to the network egress is defined as the main gateway, mainly used for data egress and forwarding data streams from other mesh network devices. Other mesh devices are defined as slave gateways, mainly used for user access and forwarding user data. After the main gateway device powers on, it periodically broadcasts a service set identifier with hop count information via the 5GHz band.
[0038] Step S101 avoids the dynamic negotiation process between devices by pre-setting roles, ensuring that the network immediately enters an orderly construction state; the main gateway broadcasts a service set identifier carrying the hop count, providing clear path selection for subsequent slave gateways and significantly improving the networking speed.
[0039] In one embodiment, before pre-setting the master-slave relationship of the mesh network devices in step S101, the method further includes: Configure the service set identifier and communication frequency band for the backhaul link between mesh network devices; The service set identifier includes fixed keywords and hop count information for the path length from the mesh network device to the main gateway device corresponding to the service set identifier.
[0040] Optionally, a default SSID (Service Set Identifier) and frequency band for backhaul can be pre-defined. To ensure that relevant mesh network devices can quickly form a self-organizing network, a fixed keyword can be set as the SSID of the backhaul link, and this SSID can identify the path length (mesh device hop count) from this device to the gateway exit. Using a fixed keyword identifier enables rapid filtering of backhaul links, preventing devices from mistakenly connecting to user terminal networks and effectively improving network formation accuracy. The design of embedding hop count information within the Service Set Identifier allows path selection decisions to be made earlier in the scanning stage, improving network formation efficiency. The setting of the communication frequency band (which can be 2.4GHz or 5GHz) effectively isolates wireless interference between user access and device communication, improving link quality and stability.
[0041] In one embodiment, Figure 3 This is a flowchart illustrating step S102 according to an exemplary embodiment, as follows: Figure 3 As shown, step S102 involves scanning the service set identifiers of the mesh network devices when the device starts up from the gateway device, and determining the target service set identifier based on the scanned service set identifiers. This specifically includes the following steps: Step S1021: Scan the service set identifiers within the wireless communication coverage area of the gateway device to obtain the service set identifiers within the coverage area. The scanned service set identifiers include the service set identifiers of the main gateway device and the slave gateway device. Step S1022: From each service set identifier, select service set identifiers with signal strength higher than the preset signal strength to obtain a candidate service set identifier list; Step S1023: Select the service set identifier with the smallest hop count from the candidate service set identifier list as the target service set identifier.
[0042] Optionally, in step S1021, after the gateway device starts up, its wireless radio frequency module performs a full-channel scan on a set frequency band to obtain all surrounding service set identifiers and their associated information, including signal strength (RSSI) and the hop count value embedded in the service set identifier. In step S1022, all service set identifiers obtained by scanning are compared with a preset signal strength threshold (e.g., -70dBm), and options with insufficient signal strength are eliminated using a filtering algorithm to form a candidate service set identifier list. In step S1023, the hop count value contained in each service set identifier is parsed from the candidate list, and the service set identifier with the smallest hop count is selected using a minimum value comparison algorithm, with a maximum hop count not exceeding 2 hops. When multiple service set identifiers have the same minimum hop count, the service set identifier with the higher signal strength is selected as the final access target.
[0043] Steps S1021-S1023 effectively eliminate poor-quality edge links through a signal strength pre-screening mechanism, ensuring network connection stability from the source and reducing subsequent link maintenance costs. Secondly, path selection is performed using the hop count minimization principle to ensure the network topology always maintains the shortest path structure, effectively reducing transmission latency. This dual screening mechanism (signal strength and hop count) ensures link quality while reducing unnecessary long-chain multi-hop connections, thus improving overall network throughput.
[0044] In one embodiment, step S103 involves obtaining an authentication password using a preset password algorithm based on the hop count information in the target service set identifier. Specifically, this includes the following steps: Step S1031: Obtain the MAC address of the gateway device corresponding to the target service set identifier, and use the MAC address as the base value A; Step S1032: Obtain the hop count value B from the target service set identifier; Step S1033: If B%2=0, then the password is the last 13 characters of the 16-bit MD5 base value A; Step S1034: If B%2=0, then the password is the last 13 characters of the 16-bit MD5 base value A.
[0045] Step S103 uses the number of hops as a dynamic parameter for password generation, balancing network speed and security.
[0046] In one embodiment, step S104 involves connecting the gateway device to the mesh network device corresponding to the target service set identifier based on the authentication password. Specifically, this includes: Optionally, after obtaining the authentication password, the gateway device immediately initiates an association request to the mesh network device corresponding to the target service set identifier. This request frame contains authentication credentials generated according to a preset password algorithm, and the receiving device synchronously runs the same algorithm to verify the password's validity. Upon successful authentication, the two devices establish an association at the data link layer, and the gateway device is granted data transmission permissions within the mesh network.
[0047] Step S104 achieves trusted authentication between devices through a dynamic password verification mechanism, which effectively prevents unauthorized devices from accessing the network while eliminating the need for manual configuration, thereby improving network security.
[0048] In one embodiment, after step S104, whereby the gateway device connects to the mesh network device corresponding to the target service set identifier, the method further includes: Record the path to the mesh network device corresponding to the target service set identifier as the preferred path, and record the path to the mesh network device corresponding to a non-target service set identifier as the alternative path. When restarting from the gateway device, the preferred path will be used first; When the current link signal quality is higher than the switching threshold, switching to the alternative path is prohibited within a preset time. When the current link signal quality is below the switching threshold, the preferred path will be switched to the alternative path.
[0049] Optionally, to ensure the stability of this self-organizing network, it is necessary to record the SSID and other relevant information of other accessible backhaul links, limiting line switching to a certain period of time as long as the current link does not reach the lower limit of signal quality, in order to prevent network fluctuations. Specifically, immediately after successfully establishing a connection from the gateway device, a path recording operation is performed, storing the information of the currently connected target mesh network device (including its service set identifier, MAC address, and communication frequency band) in the preferred path area of non-volatile memory. At the same time, the information of other available mesh network devices discovered during the scanning phase is stored in the alternative path area, sorted by signal strength in descending order. When the device restarts, the preferred path information is read first, and a direct association is attempted. If the target device is unreachable, alternative paths are tried in sequence. The signal strength (RSSI) of the current link is continuously monitored. When the signal quality of the current link is higher than the switching threshold, a switching suppression timer is started (default setting is 120 seconds). During the timer, switching is prohibited even if a better alternative path appears. When the signal quality of the current link is lower than the switching threshold, the path with the best signal quality is immediately selected from the alternative path area to initiate a switch, and the priority order of the path storage area is updated after the switch is completed.
[0050] The restart priority connection mechanism greatly improves the efficiency of network fault recovery, ensuring the stability of the mesh self-organizing network and the speed of self-recovery after a failure.
[0051] In one embodiment, Figure 4 This is a flowchart illustrating step S105 according to an exemplary embodiment, as follows: Figure 4 As shown, step S105 involves updating and broadcasting the service set identifier of the gateway device itself based on the hop count information of the access mesh network devices, and then networking multiple gateway devices based on the updated service set identifier. Specifically, this includes the following steps: Step S1051: Based on the hop count value of the access mesh network device, add a preset hop count value and obtain the updated service set identifier; Step S1052: Broadcast the updated service set identifier according to the preset communication frequency band; Step S1053: Obtain the updated service set identifier by scanning. Based on the hop count information in the updated service set identifier, repeatedly execute the operations of determining the target service set identifier, obtaining the authentication password, accessing the corresponding mesh network device, and updating and broadcasting the service set identifier to form a network of multiple gateway devices.
[0052] Optionally, in step S1051, the slave gateway device obtains the hop count value carried in the service set identifier of the successfully connected parent node, increments this value by a preset integer value (fixed to 1) using an increment counter, and then replaces the hop count segment in the original service set identifier with the updated value, forming a new service set identifier containing the same fixed prefix but with an incremented hop count. In step S1052, the device, according to the pre-configured communication frequency band parameters (preferably selecting channels with less interference in the 5GHz band), periodically broadcasts beacon frames containing the updated hop count through the radio frequency module. In step S1053, subsequent slave gateway devices that have not yet connected receive these updated service set identifiers by scanning, parse the incremented hop count information carried within them, and then execute the complete process from path selection to service set identifier update (steps S102 to S105), forming a network self-expansion effect.
[0053] In steps S1051-S1053, each successfully connected slave gateway device becomes a new network extension point. By incrementing the hop count and broadcasting a new service set identifier, multiple slave gateway devices can quickly form a network. This addresses the issue of how to improve the efficiency of self-organizing mesh network devices in related technologies.
[0054] In summary, the embodiments of this application provide a method for self-organizing mesh network devices. Figure 2 This is a schematic diagram illustrating the structure of a self-organizing mesh network device according to an exemplary embodiment, such as... Figure 2As shown, the master-slave relationship of the mesh network devices is pre-defined. The master gateway device starts up and broadcasts its service set identifier with hop count information. By pre-setting roles, the dynamic negotiation process between devices is avoided, ensuring that the network immediately enters an orderly construction state. The master gateway broadcasts the service set identifier with hop count, providing clear path selection for subsequent slave gateways and significantly improving network speed. When a slave gateway device starts up, it scans the service set identifiers of the mesh network devices. Based on the scanned service set identifiers, it determines the target service set identifier, enabling the slave gateway device to quickly discover available network nodes in the vicinity. By parsing the hop count information in the service set identifier, it intelligently selects the optimal path to access, reducing connection decision time and improving network efficiency. Based on the hop count information in the target service set identifier, an authentication password is obtained through a pre-set cryptographic algorithm. The hop count is used as a dynamic parameter for password generation, balancing network speed and security. Based on the authentication password, the slave gateway device connects to the mesh network device corresponding to the target service set identifier, enabling the slave gateway device to securely access the mesh network. Based on the hop count information of the access mesh network devices, the service set identifier of the slave gateway device is updated and broadcast. Based on the updated service set identifier, multiple slave gateway devices are networked, making each successfully connected slave gateway device a new network extension point. By incrementing the hop count and broadcasting the new service set identifier, multiple slave gateway devices can quickly form a network. This addresses the problem of how to improve the efficiency of self-organizing mesh network devices in related technologies.
[0055] Secondly, embodiments of this application provide a mesh network device self-organizing network system. Figure 5 This is a system architecture block diagram illustrating a self-organizing mesh network system according to an exemplary embodiment. For example... Figure 5 As shown, the system includes a broadcast module, a target service set identifier determination module, an authentication password acquisition module, an access module, and a networking module; wherein: The broadcast module is used to pre-configure the master-slave relationship of mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information; The target service set identifier determination module is used to scan the service set identifiers of mesh network devices when the gateway device starts up, and determine the target service set identifier based on the scanned service set identifiers; The authentication password acquisition module is used to obtain the authentication password based on the hop count information in the target service set identifier and through a preset password algorithm. The access module is used to connect from the gateway device to the mesh network device corresponding to the target service set identifier based on the authentication password. The networking module is used to update and broadcast the service set identifier of the gateway device itself based on the hop count information of the access mesh network devices, and to form a network of multiple gateway devices based on the updated service set identifier.
[0056] In summary, this application provides a mesh network device self-organizing network system that enables multiple slave gateway devices to quickly form a network through a broadcast module, a target service set identifier determination module, an authentication password acquisition module, an access module, and a networking module. This addresses the problem of how to improve the efficiency of mesh network device self-organizing networks in related technologies.
[0057] It should be noted that the mesh network device self-organizing network system provided in this embodiment is used to implement the above-described implementation methods, and details already described will not be repeated. As used above, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the above embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0058] Thirdly, embodiments of this application provide an electronic device, Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. (e.g.) Figure 6 As shown, the electronic device may include a processor 61 and a memory 62 storing computer program instructions.
[0059] Specifically, the processor 61 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0060] The memory 62 may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory 62 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 62 may include removable or non-removable (or fixed) media. Where appropriate, the memory 62 may be internal or external to a data processing device. In a particular embodiment, the memory 62 is non-volatile memory. In a particular embodiment, the memory 62 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), an electrically alterable read-only memory (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), Extended Data Out Dynamic Random-Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.
[0061] The memory 62 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 61.
[0062] The processor 61 reads and executes computer program instructions stored in the memory 62 to implement any of the mesh network device self-organizing methods in the above embodiments.
[0063] In one embodiment, a mesh network device for self-organizing networking may further include a communication interface 63 and a bus 60. Wherein, as... Figure 6 As shown, the processor 61, memory 62, and communication interface 63 are connected through bus 60 and complete communication with each other.
[0064] The communication interface 63 is used to enable communication between the various modules, devices, units, and / or equipment in the embodiments of this application. The communication interface 63 can also enable data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.
[0065] Bus 60 includes hardware, software, or both, that couples the components of a mesh network device or ad hoc network device together. Bus 60 includes, but is not limited to, at least one of the following: Data Bus, Address Bus, Control Bus, Expansion Bus, and Local Bus. For example, and not as a limitation, bus 60 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 60 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0066] Fourthly, embodiments of this application provide a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements a mesh network device self-organizing network method provided in the first aspect.
[0067] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0068] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, is used to cause the terminal device to perform steps implementing a mesh network device self-organizing method provided in the first aspect.
[0069] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0070] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0071] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for self-organizing mesh network devices, characterized in that, The method includes: Pre-configure the master-slave relationship of mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information; When starting from the gateway device, the service set identifiers of the mesh network devices are scanned, and the target service set identifier is determined based on the scanned service set identifiers; Based on the hop count information in the target service set identifier, an authentication password is obtained using a preset password algorithm; Based on the authentication password, the gateway device is connected to the mesh network device corresponding to the target service set identifier; Based on the hop count information of the access mesh network devices, the service set identifier of the slave gateway device is updated and broadcast. Based on the updated service set identifier, multiple slave gateway devices are networked together.
2. The mesh network device self-organizing network method according to claim 1, characterized in that, The step of scanning the service set identifiers of the mesh network devices and determining the target service set identifier based on the scanned service set identifiers includes: The slave gateway device scans the service set identifiers within its own wireless communication coverage area to obtain each service set identifier within the coverage area, wherein the scanned service set identifiers include the service set identifiers of the master gateway device and the slave gateway device; From each of the service set identifiers, service set identifiers with signal strength higher than a preset signal strength are selected to obtain a candidate service set identifier list; From the list of candidate service set identifiers, select the service set identifier with the smallest hop count as the target service set identifier.
3. The mesh network device self-organizing network method according to claim 1, characterized in that, The step of obtaining the authentication password using a preset password algorithm based on the hop count information in the target service set identifier includes: Obtain the MAC address of the gateway device corresponding to the target service set identifier, and use the MAC address as the base value A; Obtain the hop count value B from the target service set identifier; If B%2=0, then the password is the 13 characters following the 16-bit MD5 base value A; If B%2=1, then the password is the 13 characters obtained by inverting the base value A using a 16-bit MD5 hash.
4. The mesh network device self-organizing network method according to claim 1, characterized in that, After connecting the gateway device to the mesh network device corresponding to the target service set identifier, the method further includes: Record the path to the mesh network device corresponding to the target service set identifier as the preferred path, and record the path to the mesh network device corresponding to a non-target service set identifier as the alternative path; When the gateway device restarts, it will preferentially access the preferred path; When the current link signal quality is higher than the switching threshold, switching to the alternative path is prohibited for a preset time. When the current link signal quality is below the switching threshold, the preferred path is switched to the alternative path.
5. A method for self-organizing mesh network devices according to claim 1, characterized in that, The step of updating and broadcasting the service set identifier of the slave gateway device based on the hop count information of the access mesh network devices, and forming a network of multiple slave gateway devices based on the updated service set identifier, includes: Based on the hop count value of the access mesh network device, add a preset hop count value to obtain the updated service set identifier; The updated service set identifier is broadcast according to the preset communication frequency band; By scanning to obtain the updated service set identifier, and based on the hop count information in the updated service set identifier, the operations of determining the target service set identifier, obtaining the authentication password, accessing the corresponding mesh network device, and updating and broadcasting the service set identifier are performed cyclically to form a network of multiple gateway devices.
6. A method for self-organizing mesh network devices according to claim 1, characterized in that, Setting the master-slave relationship of mesh network devices includes: The mesh network device connected to the Internet exit is defined as the main gateway device, which serves as the sole gateway for communication between the mesh network and the Internet and is used to handle the forwarding of data streams between the mesh networks. Mesh devices that are not connected to the internet exit are defined as gateway devices, used for user access and forwarding user data.
7. A method for self-organizing mesh network devices according to claim 1, characterized in that, Before pre-setting the master-slave relationship of the mesh network devices, the method further includes: Configure the service set identifier and communication frequency band for the backhaul link between mesh network devices; The service set identifier includes fixed keywords and hop count information for the path length from the mesh network device to the main gateway device corresponding to the service set identifier.
8. A mesh network device self-organizing network system, characterized in that, The system is used to execute the method according to any one of claims 1 to 7, and the system includes a broadcast module, a target service set identifier determination module, an authentication password acquisition module, an access module, and a networking module; wherein: The broadcast module is used to pre-set the master-slave relationship of the mesh network devices, start the master gateway device and broadcast its own service set identifier with hop count information; The target service set identifier determination module is used to scan the service set identifiers of the mesh network devices when the gateway device starts up, and determine the target service set identifier based on the scanned service set identifiers; The authentication password acquisition module is used to acquire the authentication password based on the hop count information in the target service set identifier using a preset password algorithm. The access module is used to connect the gateway device to the mesh network device corresponding to the target service set identifier based on the authentication password. The networking module is used to update and broadcast the service set identifier of the slave gateway device itself based on the hop count information of the access mesh network devices, and to form a network of multiple slave gateway devices based on the updated service set identifier.
9. An electronic device, characterized in that, The device includes a memory and a processor, a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a mesh network device self-organizing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a mesh network device self-organizing method as described in any one of claims 1 to 7.