A method, system and platform for self-negotiating master AP devices based on wireless mesh network
By introducing a self-negotiation mechanism in the wireless mesh network and utilizing the private protocol communication between AP devices, the master and slave AP devices can be automatically identified and switched, solving the problem that the relationship between master and slave AP devices cannot be self-negotiated in the existing technology, thus improving user experience and network adaptability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU V-SOLUTION TELECOMM TECH CO LTD
- Filing Date
- 2022-11-21
- Publication Date
- 2026-07-28
AI Technical Summary
In existing wireless mesh networks, the master-slave AP device relationship cannot be negotiated automatically, resulting in a poor internet experience for users. Switching between master and slave AP devices requires manual operation.
By introducing a self-negotiation mechanism in the wireless mesh network, and utilizing the private protocol communication between AP devices, the network status is automatically determined and the master and slave AP devices are switched in real time, including the interaction of S-Main, P-Main, R-Main and R-Request-ACK messages.
It enables automatic negotiation between master and slave AP devices in wireless mesh networks, improving user experience, reducing manual operation, and adapting to changes in network conditions and disconnections.
Smart Images

Figure CN115802441B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of wireless networking technology, specifically relating to a method, system, platform, and storage medium for a self-negotiating master AP device based on a wireless mesh network. Background Technology
[0002] In existing mesh router network configurations, when a device's WAN port has an external network connection, it acts as the primary access point (AP), while other devices in the mesh network act as secondary APs. Figure 1 As shown. However, after establishing the master-slave relationship, the WAN port of the secondary AP device will be connected to a higher-bandwidth external network. The master-slave relationship remains unchanged, and it cannot self-negotiate a master AP device to provide users with a better internet experience.
[0003] In other words, the existing solution for switching between master and slave AP devices is to disconnect the WAN cable of the master AP device and then connect the WAN port of a slave AP device to the external network. This slave AP device will negotiate to switch to the new master AP device, and the original master AP device will also switch to the slave AP device.
[0004] Therefore, in order to address the above-mentioned technical problems and shortcomings, there is an urgent need to design and develop a method, system, platform, and storage medium for a self-negotiating master AP device based on a wireless mesh network. Summary of the Invention
[0005] To overcome the shortcomings and difficulties of the existing technology, the present invention aims to provide a method, system, platform and storage medium for self-negotiation of master AP devices based on wireless mesh networks. Through communication of private protocols between devices in a mesh network, it realizes automatic negotiation of master and slave AP devices, which is mainly applied to situations where network conditions fluctuate or the network is suddenly disconnected.
[0006] The primary objective of this invention is to provide a method for a self-negotiating master access point (AP) device based on a wireless mesh network;
[0007] The second objective of this invention is to provide a self-negotiating master AP device system based on a wireless mesh network;
[0008] A third objective of this invention is to provide a self-negotiating master AP device platform based on a wireless mesh network;
[0009] The fourth objective of this invention is to provide a computer-readable storage medium;
[0010] The first objective of this invention is achieved as follows: the method comprises the following steps:
[0011] Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If so, switch the AP device to a slave AP device; otherwise, proceed to the next step.
[0012] Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0013] The system broadcasts a second message containing the first network status, and switches to become the AP master device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0014] Furthermore, the broadcast includes a second message carrying the first network status, and the system switches to become the AP master device in real time based on the broadcast of the second message to other AP devices. This also includes the following steps:
[0015] Within a set time, determine whether a second message broadcast by other AP devices is received. If so, determine the network status between AP devices; otherwise, proceed to the next step.
[0016] The first broadcast message is sent, and the device switches to the AP master device in real time.
[0017] Furthermore, the determination of the network status between AP devices also includes the following steps:
[0018] Obtain the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself;
[0019] Compare the first network condition with the second network condition, and determine whether to broadcast the first message based on the comparison result.
[0020] Furthermore, the first message is an S-Main message; the second message is a P-Main message.
[0021] Furthermore, before determining whether any AP device in the wireless mesh network has received the first message sent by the main AP device, the method further includes the following steps:
[0022] Determine whether any AP device in the wireless mesh network is connected to the external network. If so, proceed to the next step; otherwise, determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device.
[0023] At least one third message is sent to the main AP device through any of the AP devices within a set time period;
[0024] Determine whether the fourth message fed back by the main AP device has been obtained. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0025] Determine and compare the network status between the master AP device and the slave AP device; if the network status of the slave AP device is better than that of the master AP device, proceed to the next step; otherwise, send at least one third message to the master AP device through either AP device within a set time.
[0026] The system sends a fifth message to the master AP device and, in conjunction with the feedback from the master AP device's sixth message, determines in real time whether to switch between the master and slave AP devices.
[0027] Furthermore, the step of sending the fifth message to the master AP device and, in conjunction with the feedback from the master AP device's sixth message, determining in real time whether to perform a master-slave AP device switchover also includes the following steps:
[0028] Determine whether the sixth message fed back by the main AP device has been obtained. If so, proceed to the next step. Otherwise, send at least one third message to the main AP device through any of the AP devices within a set time.
[0029] Switch the slave AP device to the master AP device, and switch the original master AP device to the slave AP device;
[0030] The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
[0031] The second objective of the present invention is achieved as follows: the system comprises:
[0032] The first determination unit is used to determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device;
[0033] The first detection unit is used to detect whether the WAN port is connected to the external network;
[0034] The first broadcast unit is used to broadcast a second message containing the first network status, and to switch to the AP master device in real time according to the broadcast status of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0035] Furthermore, the first broadcast unit also includes:
[0036] The first determination module is used to determine whether a second message broadcast by other AP devices has been obtained within a set time.
[0037] The first switching module is used to broadcast the first message and switch to the AP master in real time.
[0038] And / or, the first switching module further includes:
[0039] The first acquisition module is used to acquire the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself;
[0040] The first comparison module is used to compare the first network status and the second network status, and determine whether to broadcast the first message based on the comparison result;
[0041] The first message is an S-Main message; the second message is a P-Main message;
[0042] The system also includes:
[0043] The second determination unit is used to determine whether any AP device in the wireless mesh network is connected to the external network.
[0044] The first sending unit is used to send at least one third message to the main AP device through any of the AP devices within a set time period;
[0045] The third determination unit is used to determine whether the fourth message fed back by the main AP device has been obtained;
[0046] The fourth determination unit is used to determine and compare the network status between the master AP device and the slave AP device;
[0047] The second sending unit is used to send the fifth message to the master AP device, and, in conjunction with the feedback from the sixth message of the master AP device, to determine in real time whether to switch between the master and slave AP devices.
[0048] And / or, the second transmitting unit further includes:
[0049] The second determination module is used to determine whether the sixth message fed back by the main AP device has been obtained;
[0050] The second switching module is used to switch the slave AP device to the master AP device, and to switch the original master AP device to the slave AP device;
[0051] The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
[0052] The third objective of this invention is achieved by including a processor, a memory, and a control program for a self-negotiating master AP device platform based on a wireless mesh network;
[0053] The processor executes the wireless mesh network auto-negotiation master AP device platform control program, which is stored in the memory. The wireless mesh network auto-negotiation master AP device platform control program implements the wireless mesh network auto-negotiation master AP device method.
[0054] The fourth objective of this invention is achieved as follows: the computer-readable storage medium stores a control program for a master AP device platform based on a wireless mesh network auto-negotiation, and the control program for the master AP device platform based on a wireless mesh network auto-negotiation implements the method for the master AP device based on a wireless mesh network auto-negotiation.
[0055] This invention determines whether any access point (AP) device in a wireless mesh network has received a first message from the master AP device. If so, the AP device is switched to a slave AP device; otherwise, the next step is executed. The method checks whether the WAN port is connected to the external network. If so, the next step is executed; otherwise, the previous step is executed. A second message carrying a first network status is broadcast, and the AP device is switched to master in real time based on the broadcast of second messages to other AP devices. The first network status refers to the AP device's own network status data. The invention also includes a corresponding system, platform, and storage medium. In a mesh network, when two or more devices are connected to the external network, the mesh network automatically selects the device with the better network status as the master AP device, eliminating the need for manual switching by the user, reducing manual operation, and improving the user experience. In other words, when two or more devices are connected to the external network in a mesh network, a master AP device is automatically negotiated. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This is a mesh network diagram;
[0058] Figure 2 This is a schematic diagram illustrating the process of self-negotiating the master AP device in a mesh network where the master and slave AP devices have not yet been determined according to the present invention.
[0059] Figure 3 This is a schematic diagram illustrating the auto-negotiation process for switching the primary AP device in a mesh network where the primary AP device has already been determined according to the present invention.
[0060] Figure 4This is a schematic diagram of a method for a self-negotiating master AP device based on a wireless mesh network according to the present invention;
[0061] Figure 5 This is a schematic diagram of a self-negotiating master AP device system architecture based on a wireless mesh network according to the present invention;
[0062] Figure 6 This is a schematic diagram of a self-negotiating master AP device platform architecture based on a wireless mesh network according to the present invention;
[0063] Figure 7 This is a schematic diagram of a computer-readable storage medium architecture in one embodiment of the present invention;
[0064] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0065] To facilitate a clearer understanding of the objectives, technical solutions, and advantages of this invention, the invention will be further described below in conjunction with the accompanying drawings and specific embodiments. Those skilled in the art can easily understand other advantages and effects of this invention from the content disclosed in this specification.
[0066] This invention can also be implemented or applied through other different specific examples, and various details in this specification can also be modified and changed based on different viewpoints and applications without departing from the spirit of this invention.
[0067] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0068] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Secondly, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0069] Preferably, the self-negotiation master AP device method based on a wireless mesh network of the present invention is applied in one or more terminals or servers. The terminal is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0070] The terminal can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal can interact with the customer via a keyboard, mouse, remote control, touchpad, or voice control device.
[0071] This invention provides a method, system, platform, and storage medium for implementing a self-negotiating master access point (AP) device based on a wireless mesh network.
[0072] like Figure 4 The diagram shown is a flowchart of a method for a self-negotiating master AP device based on a wireless mesh network, provided in an embodiment of the present invention.
[0073] In this embodiment, the method for self-negotiation master AP device based on wireless mesh network can be applied to terminals or fixed terminals with display functions. The terminals are not limited to personal computers, smartphones, tablets, desktop computers or all-in-one computers with cameras, etc.
[0074] The method for a self-negotiating master AP device based on a wireless mesh network can also be applied to a hardware environment consisting of a terminal and a server connected to the terminal via a network. The network includes, but is not limited to, a wide area network (WAN), a metropolitan area network (MAN), or a local area network (LAN). The method for a self-negotiating master AP device based on a wireless mesh network in this embodiment can be executed by the server, by the terminal, or by both the server and the terminal.
[0075] For example, for terminals requiring self-negotiation of a master access point (AP) device based on a wireless mesh network, the self-negotiation of a master AP device based on a wireless mesh network provided by the method of this invention can be directly integrated onto the terminal, or a client for implementing the method of this invention can be installed. Alternatively, the method provided by this invention can also run on servers or other devices in the form of a software development kit (SDK), providing an interface for the self-negotiation of a master AP device based on a wireless mesh network in the form of an SDK. Terminals or other devices can then implement the self-negotiation of a master AP device based on a wireless mesh network through the provided interface.
[0076] The present invention will be further described below with reference to the accompanying drawings.
[0077] like Figure 1-7 As shown, this invention provides a method for a self-negotiating master access point (AP) device based on a wireless mesh network. The method includes the following steps:
[0078] S01. Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If yes, switch the AP device to a slave AP device; otherwise, proceed to the next step.
[0079] S02. Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0080] S03. Broadcast a second message containing the first network status, and switch to the AP master device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0081] The broadcast includes a second message carrying the first network status, and the device switches to become the AP master in real time based on the broadcast of the second message to other AP devices. The method also includes the following steps:
[0082] S031. Within a set time, determine whether a second message broadcast by other AP devices is received. If yes, determine the network status between AP devices; otherwise, proceed to the next step.
[0083] S032, broadcast the first message, and switch to AP master device in real time.
[0084] The determination of the network status between AP devices also includes the following steps:
[0085] S0311. Obtain the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself;
[0086] S0312. Compare the first network status with the second network status, and determine whether to broadcast the first message based on the comparison result.
[0087] The first message is an S-Main message; the second message is a P-Main message.
[0088] Before determining whether any AP device in the wireless mesh network has received the first message sent by the main AP device, the method further includes the following steps:
[0089] S011. Determine whether any AP device in the wireless mesh network is connected to the external network. If yes, proceed to the next step. Otherwise, determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device.
[0090] S012. Send at least one third message to the main AP device through any of the AP devices within a set time period;
[0091] S013. Determine whether the fourth message fed back by the main AP device has been obtained. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0092] S014. Determine and compare the network status between the master AP device and the slave AP device; if the network status of the slave AP device is better than that of the master AP device, proceed to the next step; otherwise, send at least one third message to the master AP device through either AP device within a set time.
[0093] S015. Send the fifth message to the master AP device, and in conjunction with the feedback from the sixth message of the master AP device, determine in real time whether to switch between the master and slave AP devices.
[0094] The step of sending the fifth message to the master AP device and, in conjunction with the feedback from the master AP device's sixth message, determining in real time whether to perform a master-slave AP device switchover also includes the following steps:
[0095] S0151. Determine whether the sixth message fed back by the main AP device has been obtained. If yes, proceed to the next step. Otherwise, send at least one third message to the main AP device through any AP device within a set time.
[0096] S0152. Switch the slave AP device to the master AP device, and switch the original master AP device to the slave AP device;
[0097] The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
[0098] Specifically, in this embodiment of the invention, the technical solution is applied to two situations: first, when the devices in the mesh network have not yet established a master-slave AP relationship, and two or more devices are simultaneously connected to the external network; second, when the devices in the mesh network have established a master-slave AP relationship, but automatically negotiate and switch master-slave AP devices based on network conditions. The self-negotiation process is as follows:
[0099] In a mesh network where the master-slave relationship is not yet established, a device (hereinafter referred to as device A) connects to the external network first. Device A performs a network speed test and then broadcasts a P-Main message. The P-Main message contains information such as the device's MAC address and network status, mainly to inform other devices in the mesh network that this device has access to the external network and can act as the master AP. If no response is received within a certain period of time (e.g., 30 seconds), device A will broadcast an S-Main message again, designating itself as the master AP. Other devices receiving this message will reply with an S-ACK message and act as slave APs.
[0100] If device A receives a P-Main message from device B after sending its own, device A will compare the network conditions with those of device B. If its network condition is better, device A will broadcast an S-Main message and designate itself as the primary AP. Device B, upon receiving the S-Main message, will respond with an S-ACK message and switch to become the secondary AP. If device B's network condition is better, device A will not perform any operation, but will wait until it receives the S-Main message broadcast by device B, respond with an S-ACK message, and switch to become the secondary AP.
[0101] If device A is designated as the primary AP in the mesh network, and device B's WAN port is also connected to the external network, device B will send an R-Main message to the primary AP A, and will send another R-Main message every certain period of time (e.g., 30 minutes). After receiving the R-Main message, device A will choose to test the network status during off-peak hours (when WAN port traffic is low) and respond to device B with an R-ACK message containing network status information. After receiving the R-ACK message, device B will also test its network status and compare it with device A. If device A's network status is good, no action is taken; otherwise, it will send an R-Main-Request message to device A, requesting that it become the primary AP. If device A agrees, it will send an R-Request-ACK message, and then the primary AP will switch to the secondary AP, while device B will switch from the secondary AP to the primary AP, and will broadcast an S-Main message. Other secondary devices will then respond with an S-ACK message, and the entire mesh network will complete the primary / secondary AP switchover.
[0102] The operation of the embodiment is as follows Figure 2 and Figure 3 As shown, Figure 2 This is a flowchart illustrating the process of auto-negotiation to determine the master AP device in a mesh network where the master and slave AP devices have not yet been determined. Figure 3 This is a flowchart illustrating the auto-negotiation switching of the primary AP device in a mesh network where the primary AP device has already been determined.
[0103] In a mesh network where the master and slave AP devices have not yet been determined, the steps for auto-negotiation to identify the master AP device are as follows:
[0104] S1. If the device whose master-slave status is not determined has received the S-Main message sent by the master AO device, then proceed to step S2; otherwise, proceed to step S3.
[0105] S2, The device switches to the AP device.
[0106] S3. Detect the connection status of the WAN port (Wide Area Network interface) to the external network. If it is connected to the external network, proceed to step S4; otherwise, return to step S1.
[0107] S4. The device will first detect its own network status, then broadcast a P-Main message containing its own network status, and wait for a period of time (e.g., 30s). If it receives a P-Main message broadcast by another device, it will proceed to step S5; otherwise, it will proceed to step S6.
[0108] In this step, the device primarily informs other devices in the mesh network that it has access to the external network and can act as the primary access point (AP). It then waits for a period of time to check if any other devices in the mesh network have also connected to the external network.
[0109] S5. Compare your own network status with the network status of other devices that send P-Main messages. If your own network status is better, proceed to step S6; otherwise, return to step S1.
[0110] In this step, selecting a device with better network conditions as the main access point (AP) can improve the user's internet experience.
[0111] S6. The device broadcasts the S-Main message and switches to become the AP master device.
[0112] In a mesh network where the primary AP device has been identified, the steps for auto-negotiation switching of the primary AP device are as follows:
[0113] S1. The WAN port of the AP device in the mesh network is connected to the external network. Proceed to step S2.
[0114] S2. The device sends an R-Main message to the main AP device at regular intervals (e.g., 30 minutes). If it receives an R-ACK message from the main AP device, it proceeds to step S3; otherwise, it returns to step S2.
[0115] In this step, the master AP device will detect the network status in an idle state (when WAN port traffic is low), store the results in an R-ACK message, and send it to the slave AP device.
[0116] S3. Compare your own network status with the network status of the main AP device. If your own network status is better, proceed to step S4; otherwise, return to step S2.
[0117] S4. Send an R-Main-Request message to the main AP device to request to switch to the main AP device. If an R-Request-ACK message is received from the main AP device, proceed to step S5; otherwise, return to step S2.
[0118] S5. After receiving the R-Request-ACK message, the device switches to become the new master AP device, and the original master AP device switches to become the slave AP device.
[0119] To achieve the above objectives, the present invention also provides a self-negotiating master AP device system based on a wireless mesh network, such as... Figure 5 As shown, the system specifically includes:
[0120] The first determination unit is used to determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device;
[0121] The first detection unit is used to detect whether the WAN port is connected to the external network;
[0122] The first broadcast unit is used to broadcast a second message containing the first network status, and to switch to the AP master device in real time according to the broadcast status of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0123] The first broadcast unit further includes:
[0124] The first determination module is used to determine whether a second message broadcast by other AP devices has been obtained within a set time.
[0125] The first switching module is used to broadcast the first message and switch to the AP master in real time.
[0126] And / or, the first switching module further includes:
[0127] The first acquisition module is used to acquire the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself;
[0128] The first comparison module is used to compare the first network status and the second network status, and determine whether to broadcast the first message based on the comparison result;
[0129] The first message is an S-Main message; the second message is a P-Main message;
[0130] The system also includes:
[0131] The second determination unit is used to determine whether any AP device in the wireless mesh network is connected to the external network.
[0132] The first sending unit is used to send at least one third message to the main AP device through any of the AP devices within a set time period;
[0133] The third determination unit is used to determine whether the fourth message fed back by the main AP device has been obtained;
[0134] The fourth determination unit is used to determine and compare the network status between the master AP device and the slave AP device;
[0135] The second sending unit is used to send the fifth message to the master AP device, and, in conjunction with the feedback from the sixth message of the master AP device, to determine in real time whether to switch between the master and slave AP devices.
[0136] And / or, the second transmitting unit further includes:
[0137] The second determination module is used to determine whether the sixth message fed back by the main AP device has been obtained;
[0138] The second switching module is used to switch the slave AP device to the master AP device, and to switch the original master AP device to the slave AP device;
[0139] The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
[0140] In the system solution embodiment of the present invention, the specific details of the method steps involved in the self-negotiation master AP device based on wireless mesh network have been described above and will not be repeated here.
[0141] To achieve the above objectives, the present invention also provides a self-negotiating master AP device platform based on a wireless mesh network, such as... Figure 6As shown, it includes a processor, memory, and a self-negotiating master AP device platform control program based on a wireless mesh network;
[0142] Specifically, the processor executes the wireless mesh network-based auto-negotiation master AP device platform control program, which is stored in the memory. This control program implements the steps of the wireless mesh network-based auto-negotiation master AP device method, for example:
[0143] S01. Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If yes, switch the AP device to a slave AP device; otherwise, proceed to the next step.
[0144] S02. Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0145] S03. Broadcast a second message containing the first network status, and switch to the AP master device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0146] The specific details of the steps have been explained above and will not be repeated here.
[0147] In this embodiment of the invention, the built-in processor of the self-negotiating master AP device platform based on a wireless mesh network can be composed of integrated circuits. For example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor connects to various components through various interfaces and lines, and executes programs or units stored in memory, and calls data stored in memory to perform various functions of the self-negotiating master AP device based on a wireless mesh network and process data.
[0148] The memory is used to store program code and various data. It is installed in the self-negotiating master AP device platform based on wireless mesh network and enables high-speed and automatic access to programs or data during operation.
[0149] The memory includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0150] To achieve the above objectives, the present invention also provides a computer-readable storage medium, such as... Figure 7 As shown, the computer-readable storage medium stores a control program for a self-negotiating master AP device platform based on a wireless mesh network. This control program implements the steps of the self-negotiating master AP device method, for example:
[0151] S01. Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If yes, switch the AP device to a slave AP device; otherwise, proceed to the next step.
[0152] S02. Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0153] S03. Broadcast a second message containing the first network status, and switch to the AP master device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0154] The specific details of the steps have been explained above and will not be repeated here.
[0155] In the description of embodiments of the present invention, it should be noted that any process or method description in the flowcharts or otherwise described herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the present invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order according to the functions involved, as should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0156] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, a “computer-readable medium” can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM).
[0157] Furthermore, the computer-readable medium can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0158] In this embodiment of the invention, to achieve the above objective, the present invention also provides a chip system, the chip system including at least one processor, wherein when program instructions are executed in the at least one processor, the chip system performs the steps of the method for a self-negotiating master AP device based on a wireless mesh network, for example:
[0159] S01. Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If yes, switch the AP device to a slave AP device; otherwise, proceed to the next step.
[0160] S02. Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step.
[0161] S03. Broadcast a second message containing the first network status, and switch to the AP master device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself.
[0162] The specific details of the steps have been explained above and will not be repeated here.
[0163] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0164] This invention determines whether any access point (AP) device in a wireless mesh network has received a first message from the master AP device. If so, the AP device is switched to a slave AP device; otherwise, the next step is executed. The method checks whether the WAN port is connected to the external network. If so, the next step is executed; otherwise, the previous step is executed. A second message carrying a first network status is broadcast, and the AP device is switched to master in real time based on the broadcast of second messages to other AP devices. The first network status refers to the AP device's own network status data. The invention also includes a corresponding system, platform, and storage medium. In a mesh network, when two or more devices are connected to the external network, the mesh network automatically selects the device with the better network status as the master AP device, eliminating the need for manual switching by the user, reducing manual operation, and improving the user experience. In other words, when two or more devices are connected to the external network in a mesh network, a master AP device is automatically negotiated.
[0165] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for a self-negotiation master AP device based on a wireless mesh network, characterized in that, The method includes the following steps: Determine whether any AP device in the wireless mesh network has obtained the first message sent by the master AP device. If so, switch the AP device to a slave AP device; otherwise, proceed to the next step. Check if the WAN port is connected to the external network. If yes, proceed to the next step; otherwise, proceed to the previous step. The system broadcasts a second message containing the first network status, and switches to the master AP device in real time based on the broadcast of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself; when the WAN port of a slave AP device in the wireless mesh network is connected to the external network, the slave AP device actively triggers a network status comparison with the master AP device, and negotiates with the master AP device to complete the master-slave role exchange based on the comparison result.
2. The method for a self-negotiation master AP device based on a wireless mesh network according to claim 1, characterized in that, The broadcast includes a second message carrying the first network status, and the device switches to become the AP master in real time based on the broadcast of the second message to other AP devices. The method also includes the following steps: Within a set time period, determine whether a second message broadcast by other AP devices is received; if so, determine the network status between AP devices. Otherwise, proceed to the next step; The first broadcast message is sent, and the device switches to the AP master device in real time.
3. The method for a master AP device based on auto-negotiation in a wireless mesh network according to claim 2, characterized in that, The determination of the network status between AP devices also includes the following steps: Obtain the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself; Compare the first network condition with the second network condition, and determine whether to broadcast the first message based on the comparison result.
4. A method for a master access point (AP) device based on auto-negotiation in a wireless mesh network according to claim 1, 2, or 3, characterized in that, The first message is an S-Main message; the second message is a P-Main message.
5. The method for a master AP device based on auto-negotiation in a wireless mesh network according to claim 1, characterized in that, Before determining whether any AP device in the wireless mesh network has received the first message sent by the main AP device, the method further includes the following steps: Determine whether any AP device in the wireless mesh network is connected to the external network. If so, proceed to the next step; otherwise, determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device. At least one third message is sent to the main AP device through any of the AP devices within a set time period; Determine whether the fourth message fed back by the main AP device has been obtained. If yes, proceed to the next step; otherwise, proceed to the previous step. Determine and compare the network status of the master AP device and the slave AP device; If the network condition of the slave AP device is better than that of the master AP device, then proceed to the next step; otherwise, send at least one third message to the master AP device through either AP device within a set time. The system sends a fifth message to the master AP device and, in conjunction with the feedback from the master AP device's sixth message, determines in real time whether to switch between the master and slave AP devices.
6. The method for a self-negotiation master AP device based on a wireless mesh network according to claim 5, characterized in that, The step of sending the fifth message to the master AP device and, in conjunction with the feedback from the master AP device's sixth message, determining in real time whether to perform a master-slave AP device switchover also includes the following steps: Determine whether the sixth message fed back by the main AP device has been obtained. If so, proceed to the next step. Otherwise, send at least one third message to the main AP device through any of the AP devices within a set time. Switch the slave AP device to the master AP device, and switch the original master AP device to the slave AP device; The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
7. A self-negotiation master AP device system based on a wireless mesh network, characterized in that, The system includes: The first determination unit is used to determine whether any AP device in the wireless mesh network has obtained the first message sent by the main AP device; The first detection unit is used to detect whether the WAN port is connected to the external network; The first broadcast unit is used to broadcast a second message containing the first network status, and to switch to the master AP device in real time according to the broadcast status of the second message to other AP devices; wherein, the first network status is the network status data of the AP device itself; when the WAN port of the slave AP device in the wireless mesh network is connected to the external network, the slave AP device actively triggers a network status comparison with the master AP device, and negotiates with the master AP device to complete the master-slave role exchange according to the comparison result.
8. A self-negotiation master AP device system based on a wireless mesh network according to claim 7, characterized in that, The first broadcast unit further includes: The first determination module is used to determine whether a second message broadcast by other AP devices has been obtained within a set time. The first switching module is used to broadcast the first message and switch to the AP master in real time. And / or, the first switching module further includes: The first acquisition module is used to acquire the second network status corresponding to the AP device broadcasting the second message; wherein, the second network status is the network status data of other AP master devices that are not itself; The first comparison module is used to compare the first network status and the second network status, and determine whether to broadcast the first message based on the comparison result; The first message is an S-Main message; the second message is a P-Main message; The system also includes: The second determination unit is used to determine whether any AP device in the wireless mesh network is connected to the external network. The first sending unit is used to send at least one third message to the main AP device through any of the AP devices within a set time period; The third determination unit is used to determine whether the fourth message fed back by the main AP device has been obtained; The fourth determination unit is used to determine and compare the network status between the master AP device and the slave AP device; The second sending unit is used to send the fifth message to the master AP device, and, in conjunction with the feedback from the sixth message of the master AP device, to determine in real time whether to switch between the master and slave AP devices. And / or, the second transmitting unit further includes: The second determination module is used to determine whether the sixth message fed back by the main AP device has been obtained; The second switching module is used to switch the slave AP device to the master AP device, and to switch the original master AP device to the slave AP device; The third message is an R-Main message; the fourth message is an R-ACK message; the fifth message is an R-Main-Request message; and the sixth message is an R-Request-ACK message.
9. A device for a self-negotiation master access point (AP) based on a wireless mesh network, characterized in that, Includes a processor, memory, and device control program for the self-negotiating master AP device based on a wireless mesh network; Wherein, the processor executes the wireless mesh network auto-negotiation master AP device control program, the wireless mesh network auto-negotiation master AP device control program is stored in the memory, and the wireless mesh network auto-negotiation master AP device control program implements the wireless mesh network auto-negotiation master AP device method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a control program for a master AP device platform based on a wireless mesh network auto-negotiation, which implements the method for a master AP device based on a wireless mesh network auto-negotiation as described in any one of claims 1 to 6.