Wireless service recovery method and device, electronic equipment and readable storage medium
By pre-configuring and real-time monitoring between the master and spare APs, unsensed master and spare AP switching is achieved, and the service interruption problem of wireless devices during the handover process is solved, ensuring the continuity and efficiency of wireless services.
Patent Information
- Application Number
- CN202510759114.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, when switching the main and backup wireless access point (AP), wireless devices need to rescan, discover signals, access SSID and obtain DHCP, resulting in interruption of wireless services and fail to realize unsensed fast and efficient switching, especially in manufacturing, which affects the production and quality inspection process.
Pre-configuration is performed between the main and spare APs to send the same wireless signal. Through real-time monitoring and synchronization mechanisms, when the main AP is abnormal, the backup AP immediately switches to the same signal and continues to provide wireless services, and uses the wireless service data synchronized in the early stage to perform uninterrupted execution.
It realizes unsensed master-slip AP switching, ensuring uninterrupted execution of wireless equipment services, and is suitable for wireless equipment in AGV trolleys and quality inspection workshops in manufacturing, ensuring the continuity of production and quality inspection processes.
Smart Images

Figure CN120456158A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless network technology, and in particular to a wireless service recovery method, and also to a wireless service recovery device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Two APs (ACCESS POINT, referring to wireless access points) are deployed at the same location as the primary and backup APs. When the primary AP malfunctions, the primary AP's configuration is sent to the backup AP through the wireless controller, and a wireless signal with the same name is re-established to take over the wireless services of the primary AP. However, although the wireless signals in this solution have the same name, the BSSID (Basic Service Set Identifier, an identifier used to uniquely identify a basic service set in a wireless LAN) is different, similar to a wireless device roaming to a backup AP. Then, combined with the time it takes for the wireless controller to send the configuration to the backup AP, it takes a long time and can easily lead to wireless service interruption of the wireless device. In addition, the wireless device also needs to go through the process of rescanning, discovering signals, accessing the SSID, obtaining the DHCP, etc., which takes a long time to reconnect. Therefore, it is impossible to achieve the effect of wireless devices seamlessly completing the primary and backup AP signal switching. For example, in unmanned production workshops in the manufacturing industry, multiple AGVs (Automated Guided Vehicles) work together across multiple workshops, requiring them to accurately transport raw materials between workbenches. Obviously, prolonged network outages can disrupt multiple production processes. In quality inspection workshops in the manufacturing industry, a single AP carries hundreds of wireless devices for quality inspection. A network outage requires re-inspection of these wireless devices, placing extremely high demands on AP reliability.
[0003] Therefore, how to achieve faster and more efficient master / slave AP switching, thereby achieving wireless service recovery without wireless device perception and ensuring uninterrupted execution of wireless services is an urgent problem to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide a wireless service recovery method, which can realize faster and more efficient master-slave AP switching, thereby realizing wireless service recovery without the perception of wireless devices and ensuring uninterrupted execution of wireless services; another purpose of this application is to provide another wireless service recovery method, wireless service recovery device, electronic device and computer-readable storage medium, all of which have the above-mentioned beneficial effects.
[0005] In a first aspect, the present application provides a wireless service recovery method, which is applied to a standby wireless access point, wherein the standby wireless access point and the primary wireless access point are pre-configured to enable them to send the same wireless signal, and the primary wireless access point and the standby wireless access point do not send the wireless signal at the same time, the method comprising:
[0006] When it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, the backup wireless access point synchronously obtains the wireless service data of the wireless device from the primary wireless access point;
[0007] When it is determined that the primary wireless access point stops sending the wireless signal, the backup wireless access point sends the same wireless signal and uses the wireless service data to continue to perform the wireless service for the wireless device.
[0008] Preferably, the wireless service recovery method further includes:
[0009] The primary wireless access point is monitored, and when it is detected that the primary wireless access point is abnormal, the primary wireless access point is controlled to stop sending the wireless signal to stop executing the wireless service for the wireless device.
[0010] Preferably, monitoring the primary wireless access point includes:
[0011] Monitoring the communication status between the primary wireless access point and the wireless controller;
[0012] When the communication state is monitored to be abnormal, it is determined that the primary wireless access point is abnormal.
[0013] Preferably, monitoring the primary wireless access point includes:
[0014] monitoring the wireless radio frequency of the primary wireless access point;
[0015] When the wireless radio frequency is monitored to be abnormal, it is determined that the main wireless access point is abnormal.
[0016] Preferably, monitoring the primary wireless access point includes:
[0017] monitoring the daemon process of the primary wireless access point;
[0018] When it is monitored that the daemon process is abnormal, it is determined that the master wireless access point is abnormal.
[0019] Preferably, monitoring the primary wireless access point includes:
[0020] Monitoring the working status of the primary wireless access point;
[0021] When the working state is monitored to be abnormal, it is determined that the master wireless access point is abnormal; the working state abnormality includes one or more combinations of a downtime state, a power-off state, an upgrade state, and a restart state.
[0022] Preferably, monitoring the primary wireless access point includes:
[0023] Monitoring the network port of the primary wireless access point; the network port includes a wireless port and / or a wired port;
[0024] When the network port is monitored to be abnormal, it is determined that the primary wireless access point is abnormal.
[0025] Preferably, the same wireless signal includes a same basic service set identifier.
[0026] In a second aspect, the present application provides another wireless service recovery method, which is applied to a primary wireless access point, wherein the backup wireless access point and the primary wireless access point are pre-configured to enable them to send the same wireless signal, and the primary wireless access point and the backup wireless access point do not send the wireless signal at the same time, the method comprising:
[0027] When the wireless signal is sent to perform a wireless service for the wireless device, synchronizing the wireless service data of the wireless device to the standby wireless access point;
[0028] The wireless service data is used for the backup wireless access point to send the same wireless signal and to use the wireless service data to continuously perform the wireless service for the wireless device when the primary wireless access point stops sending the wireless signal.
[0029] Preferably, the wireless service recovery method further includes:
[0030] Evaluating the service carrying capabilities of the primary wireless access point and the backup wireless access point;
[0031] When the service carrying capacity of the backup wireless access point is higher than the service carrying capacity of the primary wireless access point, the sending of the wireless signal is stopped to stop executing the wireless service for the wireless device, and a switching prompt is sent to the backup wireless access point.
[0032] Preferably, the wireless service recovery method further includes:
[0033] The primary wireless access point is monitored, and when an abnormality is detected in the primary wireless access point, the wireless signal is stopped from being sent to stop executing the wireless service for the wireless device, and a switching prompt is sent to the backup wireless access point.
[0034] In a third aspect, the present application further discloses a wireless service recovery device applied to a standby wireless access point, wherein the standby wireless access point and the primary wireless access point are pre-configured to enable them to emit the same wireless signal, and the primary wireless access point and the standby wireless access point do not emit the wireless signal at the same time, the device comprising:
[0035] an acquisition module, configured to, when it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, cause the backup wireless access point to synchronously acquire the wireless service data of the wireless device from the primary wireless access point;
[0036] The switching module is configured to, when it is determined that the primary wireless access point stops sending the wireless signal, cause the backup wireless access point to send the same wireless signal and to continue to perform the wireless service for the wireless device using the wireless service data.
[0037] In a fourth aspect, the present application further discloses another wireless service recovery device, which is applied to a primary wireless access point, wherein the backup wireless access point and the primary wireless access point are pre-configured to enable them to emit the same wireless signal, and the primary wireless access point and the backup wireless access point do not emit the wireless signal at the same time, and the device includes:
[0038] a synchronization module, configured to synchronize the wireless service data of the wireless device to the standby wireless access point when sending the wireless signal to perform wireless service for the wireless device;
[0039] The wireless service data is used for the backup wireless access point to send the same wireless signal and to use the wireless service data to continuously perform the wireless service for the wireless device when the primary wireless access point stops sending the wireless signal.
[0040] In a fifth aspect, the present application further discloses an electronic device, comprising:
[0041] a transceiver for sending and receiving signals;
[0042] Memory for storing computer programs;
[0043] The processor is configured to implement the steps of any one of the wireless service recovery methods described above when executing the computer program.
[0044] In a sixth aspect, the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the wireless service recovery methods described above are implemented.
[0045] The present application provides a wireless service recovery method, applied to a backup wireless access point. The backup wireless access point and a primary wireless access point are pre-configured to enable them to emit the same wireless signal, and the primary wireless access point and the backup wireless access point do not emit the wireless signal simultaneously. The method includes: when it is determined that the primary wireless access point emits a wireless signal to perform a wireless service for a wireless device, the backup wireless access point synchronously obtains wireless service data of the wireless device from the primary wireless access point; and when it is determined that the primary wireless access point stops emitting the wireless signal, the backup wireless access point emits the same wireless signal and uses the wireless service data to continue performing the wireless service for the wireless device.
[0046] It can be seen that the wireless service recovery method provided by the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for both, ensuring that the primary and backup APs can send out the same wireless signal, but the primary and backup APs do not send out wireless signals at the same time. When the primary AP sends out a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending a wireless signal, it can immediately send out the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that the present technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For the wireless device, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of the wireless service.
[0047] Another wireless service recovery method, wireless service recovery device, electronic device and computer-readable storage medium provided in this application all have the above-mentioned beneficial effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the following is a brief introduction to the drawings required for describing the prior art and the embodiments of the present application. Of course, the drawings described below in connection with the embodiments of the present application are only part of the embodiments of the present application. For those skilled in the art, other drawings can be obtained based on the provided drawings without inventive effort, and the obtained other drawings also fall within the scope of protection of the present application.
[0049] Figure 1 A schematic diagram of the structure of a wireless service recovery system provided in this application;
[0050] Figure 2A flowchart of a wireless service recovery method provided in this application;
[0051] Figure 3 A workflow diagram of a primary and backup wireless access point provided in this application;
[0052] Figure 4 A schematic diagram of the structure of a wireless service recovery device provided in this application;
[0053] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0054] The core of this application is to provide a wireless service recovery method, which can realize faster and more efficient master-slave AP switching, thereby realizing wireless service recovery without the perception of wireless devices and ensuring uninterrupted execution of wireless services; another core of this application is to provide another wireless service recovery method, wireless service recovery device, electronic device and computer-readable storage medium, all of which have the above-mentioned beneficial effects.
[0055] In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0056] Please refer to Figure 1 , Figure 1This is a schematic diagram of the structure of a wireless service recovery system provided by the present application. The wireless service recovery method provided in an embodiment of the present application is implemented based on the wireless service recovery system. The wireless service recovery system includes a primary wireless access point and a backup wireless access point (hereinafter referred to as the primary AP and the backup AP) deployed at the same location. The primary AP and the backup AP are communicatively connected and can serve as redundant APs. In actual application scenarios, both the primary AP and the backup AP have completed wireless configuration through a wireless controller and are configured identically. This effectively ensures that the primary and backup APs can emit identical wireless signals. Specifically, the identical wireless signals can include identical BSSIDs (Basic Service Set Identifiers, which uniquely identify a basic service set in a wireless local area network). That is, the BSSIDs of the primary and backup APs are completely identical. However, when the primary AP is operating normally and emitting wireless signals to provide wireless services, the backup AP does not emit wireless signals and does not provide wireless services. When the primary AP is unable to operate normally and cannot emit wireless signals to provide wireless services, the backup AP emits wireless signals to continue providing wireless services. In other words, the primary and backup APs do not emit wireless signals simultaneously. Among them, the wireless configuration process of the active and standby APs may include: activating the active and standby APs to the active and standby configuration groups of the wireless controller, so that the wireless controller sends exactly the same configuration information to the active and standby APs. As a result, the active AP can complete the wireless parameter configuration according to the configuration information and send out wireless signals, while the standby AP can complete the wireless parameter configuration according to the configuration information but does not send out wireless signals.
[0057] An embodiment of the present application provides a method for restoring wireless services.
[0058] Please refer to Figure 2 , Figure 2 This is a flow chart of a wireless service recovery method provided by this application, which is applied to Figure 1 The wireless access point shown may include the following S101 and S102.
[0059] S101: When it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, the backup wireless access point synchronously obtains the wireless service data of the wireless device from the primary wireless access point.
[0060] This step aims to achieve synchronous acquisition of wireless service data. Specifically, when the primary AP sends a wireless signal, it can establish a communication connection with the wireless device to provide wireless services to it. In other words, the primary AP performs its wireless services for the wireless device. At the same time, the backup AP communicates with the primary AP and can directly and synchronously acquire and store the corresponding wireless service data. Obviously, this wireless service data is used to achieve rapid recovery in the event of abnormal wireless service interruption.
[0061] It is understood that the specific content of the wireless service data does not affect the implementation of this technical solution and can be used to achieve wireless service recovery. In one possible implementation, the wireless service data may include, but is not limited to, wireless device information and wireless device user information. Wireless device information may include, but is not limited to, RSSI (Received Signal Strength Index), connected radio frequency band, hardware network card manufacturer information, etc.; wireless device user information may include, but is not limited to, DHCP (which allows devices on the network to automatically obtain IP addresses and other configuration information when connecting to the network), session, key, wireless BA (the wireless link used to connect the AP to the core network in a wireless network), IP, VLAN (Virtual Local Area Network), etc.
[0062] As described above, the primary and backup APs can communicate with each other to facilitate synchronization of wireless service data between them. Similarly, the communication connection method between the primary and backup APs does not affect the implementation of this technical solution. For example, it can be direct communication, including but not limited to wireless communication (over-the-air transmission), wired communication (such as serial port connection, network port connection, etc.), or indirect communication via third-party devices (such as wireless controllers, switches, or other network devices), also including but not limited to wireless communication and wired communication (such as using twisted pair cables, fiber optic cables, etc.).
[0063] S102: When it is determined that the primary wireless access point stops sending the wireless signal, the backup wireless access point sends the same wireless signal and uses the wireless service data to continuously perform the wireless service for the wireless device.
[0064] This step aims to achieve uninterrupted execution of wireless services. Specifically, when the primary AP stops transmitting wireless signals, communication between the primary AP and the wireless device is disconnected, and the primary AP stops performing wireless services for the wireless device. At the same time, the backup AP can immediately transmit a wireless signal identical to the primary AP for the wireless device to connect to, and the backup AP continues to provide wireless services to the wireless device. As a result, the backup AP can continue to perform wireless services for the wireless device using the wireless service data previously synchronously acquired, thereby achieving uninterrupted execution of wireless services. In other words, for the wireless device, the wireless service is not interrupted.
[0065] It can be seen that the wireless service recovery method provided by the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for both, ensuring that the primary and backup APs can send out the same wireless signal, but the primary and backup APs do not send out wireless signals at the same time. When the primary AP sends out a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending a wireless signal, it can immediately send out the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that the present technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For the wireless device, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of the wireless service.
[0066] Based on the above embodiment:
[0067] In one embodiment of the present application, the wireless service recovery method may further include: monitoring the primary wireless access point, and when an abnormality is detected in the primary wireless access point, controlling the primary wireless access point to stop sending wireless signals to stop performing wireless services for the wireless device.
[0068] The wireless service recovery method provided in the embodiment of the present application can realize the active monitoring and control of the main AP by the standby AP. Specifically, during the period when the main AP provides wireless services to the wireless device, the standby AP can monitor the main AP in real time to determine whether it has an abnormality. Once the main AP is detected to be abnormal, the main AP can be controlled to stop sending wireless signals, thereby stopping providing wireless services to the wireless device, that is, stopping executing wireless services for the wireless device. As a result, the standby AP can execute the above S102 to ensure the uninterrupted execution of the wireless service. Among them, controlling the main AP to stop sending wireless signals can be achieved by the standby AP sending relevant prompt information to the main AP, that is, when the standby AP detects that the main AP is abnormal, it sends a prompt information to the main AP to cause the main AP to stop sending wireless signals.
[0069] It is understandable that the main AP abnormality scenario is not unique, so the backup AP's abnormality monitoring method for the main AP is also not unique. As long as the main AP abnormality monitoring is achieved, it is sufficient. For example, the following embodiments provide several main AP abnormality monitoring methods.
[0070] In one embodiment of the present application, monitoring the master wireless access point may include: monitoring the communication status between the master wireless access point and the wireless controller; and determining that the master wireless access point is abnormal when the monitored communication status is abnormal.
[0071] In an embodiment of the present application, the backup AP can monitor the communication status between the primary AP and the wireless controller. If this communication status is abnormal, the primary AP is considered abnormal. The wireless controller is the controller used to deploy and configure the primary and backup APs. Specifically, the backup AP can detect a marker file generated by the primary AP. If it fails to detect a normal communication marker file between the primary AP and the wireless controller, it can be determined that the communication status between the primary AP and the wireless controller is abnormal, indicating that the primary AP is abnormal.
[0072] In one embodiment of the present application, monitoring the primary wireless access point may include: monitoring a wireless radio frequency of the primary wireless access point; and determining that the primary wireless access point is abnormal when an abnormality in the wireless radio frequency is detected.
[0073] In an embodiment of the present application, the backup AP can monitor the wireless radio frequency of the primary AP. If its wireless radio frequency is abnormal, the primary AP is abnormal. Specifically, during the operation of the primary AP, a wireless radio frequency log and a wireless radio frequency identification file will be generated. Therefore, the backup AP can detect the wireless radio frequency log and wireless radio frequency identification file in the primary AP. If an abnormal wireless radio frequency log and / or wireless radio frequency identification file is detected, it can be determined that the wireless radio frequency of the primary AP is abnormal, that is, the primary AP is abnormal.
[0074] In one embodiment of the present application, monitoring the master wireless access point may include: monitoring a daemon process of the master wireless access point; and determining that the master wireless access point is abnormal when the daemon process is detected to be abnormal.
[0075] In this embodiment of the present application, the backup AP can monitor the daemon process of the primary AP. If its daemon process is abnormal, the primary AP is abnormal. Specifically, during the operation of the primary AP, the daemon process deployed therein will generate a corresponding flag file. Therefore, the backup AP can detect the daemon process flag file in the primary AP. If the daemon process flag file is detected to be abnormal, it can be determined that the daemon process of the primary AP is abnormal, which means that the primary AP is abnormal.
[0076] In one embodiment of the present application, monitoring the master wireless access point may include: monitoring the operating status of the master wireless access point; and determining that the master wireless access point is abnormal when an abnormal operating status is detected; the abnormal operating status includes one or more combinations of a down state, a power off state, an upgrade state, and a restart state.
[0077] In an embodiment of the present application, the backup AP can monitor the operating status of the primary AP. If its operating status is abnormal, the primary AP is considered abnormal. The operating status of the primary AP is divided into normal operating status and abnormal operating status, and abnormal operating status includes downtime, power outage, upgrade status, and restart status. Specifically, the backup AP can check the log files of the primary AP. If any abnormality indicator such as downtime, power outage, upgrade, or restart is detected, the primary AP's operating status can be determined to be abnormal, indicating that the primary AP is abnormal.
[0078] In one embodiment of the present application, monitoring the primary wireless access point may include: monitoring a network port of the primary wireless access point; the network port includes a wireless port and / or a wired port; and when an abnormality is detected in the monitored network port, determining that the primary wireless access point is abnormal.
[0079] In an embodiment of the present application, the backup AP can monitor the network ports (including wireless ports and / or wired ports) of the primary AP. If any of the network ports are abnormal, the primary AP is considered abnormal. Specifically, the backup AP can periodically initiate ping requests to the primary AP. If the ping requests fail, the backup AP can further obtain the primary AP's IP address, wired port status, and other information to detect any abnormalities. If any abnormalities are present, the backup AP's network port is considered abnormal, indicating that the primary AP is also abnormal.
[0080] In one embodiment of the present application, monitoring the primary wireless access point may include: periodically sending a heartbeat signal to the primary wireless access point; and determining that the primary wireless access point is abnormal when no heartbeat response based on the heartbeat signal feedback from the primary wireless access point is received within a preset time period.
[0081] In an embodiment of the present application, a (millisecond-level) heartbeat mechanism can be established between the backup AP and the primary AP, and the backup AP periodically sends a heartbeat signal to the primary AP. If the backup AP fails to receive a heartbeat response from the primary AP within a preset time, it can be determined that the primary AP is abnormal.
[0082] In addition, the wireless service recovery method may further include: controlling the master wireless access point to power off and restart when an abnormality is detected in the master wireless access point. In this embodiment of the present application, when an abnormality is detected in the master AP, it can be determined that the master AP is unable to continue providing wireless services. In this case, the backup AP can send a relevant prompt message to cause the master AP to power off and restart, thereby recovering from the abnormality in the master AP. At this point, the master and backup AP roles are swapped, and S101 and S102 described above can be continued.
[0083] An embodiment of the present application provides another method for restoring wireless services.
[0084] The wireless service recovery method provided in the embodiment of the present application is applied to Figure 1The primary wireless access point may include: when sending a wireless signal to perform wireless services for the wireless device, synchronizing the wireless service data of the wireless device to the backup wireless access point; wherein the wireless service data is used when the primary wireless access point stops sending the wireless signal, and the backup wireless access point sends the same wireless signal and uses the wireless service data to continue to perform wireless services for the wireless device.
[0085] Specifically, when the primary AP emits a wireless signal, it can establish a communication connection with the wireless device to provide wireless services to it, that is, the primary AP performs its wireless services for the wireless device. At the same time, the communication connection between the backup AP and the primary AP can directly and synchronously obtain and store the corresponding wireless service data. It should be noted that this wireless service data is used to achieve imperceptible recovery in the event of abnormal interruption of wireless services. Furthermore, while the primary AP is providing wireless services to the wireless device, the backup AP can monitor the primary AP in real time. Once it detects that the primary AP has stopped emitting wireless signals, it can immediately emit a wireless signal identical to the primary AP for the wireless device to connect to, and the backup AP can continue to provide wireless services to the wireless device. As a result, the backup AP can use the wireless service data previously obtained synchronously to continue to perform the wireless services of the wireless device, thereby achieving uninterrupted execution of wireless services.
[0086] It can be seen that the wireless service recovery method provided by the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for both, ensuring that the primary and backup APs can send out the same wireless signal, but the primary and backup APs do not send out wireless signals at the same time. When the primary AP sends out a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending a wireless signal, it can immediately send out the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that the present technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For the wireless device, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of the wireless service.
[0087] Based on the above embodiment:
[0088] In one embodiment of the present application, the wireless service recovery method may further include: evaluating the service carrying capabilities of the primary wireless access point and the backup wireless access point; when the service carrying capability of the backup wireless access point is higher than the service carrying capability of the primary wireless access point, stopping sending a wireless signal to stop executing wireless services for the wireless device, and sending a switching prompt to the backup wireless access point.
[0089] In the embodiments of the present application, in addition to the aforementioned backup AP monitoring the active master AP for abnormalities to enable master-backup AP switching, the master AP can also proactively evaluate its own and backup AP's service handling capabilities and, when its own service handling capacity falls below that of the backup AP, perform a master-backup AP switching operation, effectively ensuring the stable operation of wireless services. The master AP's assessment of service handling capacity may include, but is not limited to, the following aspects: whether the remaining system memory capacity is below the minimum operating memory standard; whether the storage read / write speed has decreased; whether the chip temperature exceeds a specified threshold, causing a network speed drop; whether the wireless device access time exceeds a preset threshold; whether an alarm message is generated; whether wireless service interruption and recovery issues occur, etc. In other words, the master AP can combine the detection results of the above-mentioned aspects to evaluate its own and backup AP's service handling capabilities and, based on the evaluation results, determine whether a master-backup AP switching is necessary. It can be understood that this technical solution aims to select an AP with greater service handling capacity to perform wireless services, effectively ensuring the stable operation of wireless services.
[0090] In one embodiment of the present application, the wireless service recovery method may further include: monitoring the primary wireless access point, and when an abnormality is detected in the primary wireless access point, stopping sending wireless signals to stop performing wireless services for the wireless device, and sending a switching prompt to the backup wireless access point.
[0091] An embodiment of the present application provides another method for implementing master-standby AP switching. As described above, the standby AP can monitor the active master AP for abnormalities to achieve master-standby AP switching. Similarly, the master AP can also monitor itself for abnormalities to achieve master-standby AP switching. Specifically, while the master AP is providing wireless services to wireless devices, it can simultaneously monitor itself in real time to determine whether an abnormality occurs in itself. Once an abnormality is detected in itself, it can actively stop sending wireless signals, thereby stopping providing wireless services to wireless devices, that is, stopping performing wireless services for wireless devices; at the same time, a switching prompt is sent to the controlled AP to achieve master-standby AP switching. It can be understood that the master AP's own abnormality monitoring method can be similar to the above-mentioned abnormality monitoring method of the standby AP for the master AP. Similarly, its monitoring content can include but is not limited to the master AP's communication status, wireless radio frequency, daemon process, working status, network port, etc.
[0092] An embodiment of the present application provides another method for restoring wireless services.
[0093] Please refer to Figure 3 , Figure 3 The workflow diagram of a primary and backup wireless access point provided in this application is based on Figure 3 The workflow diagram of the active and standby APs is shown, and the implementation process of the wireless service recovery method provided in the embodiment of the present application is as follows:
[0094] 1. Deploy two APs (which can be active and standby to each other) at preset locations, activate them in the active and standby groups of the wireless controller, and set up the active and standby APs (which can also be active and standby to each other).
[0095] 2. The wireless controller sends identical wireless configuration information to the active and standby APs. This wireless configuration information may include, but is not limited to, parameters such as the wireless signal protocol, bandwidth, transmit power, and Beacon (signal frame) period. This ensures that the active and standby APs can send identical wireless signals.
[0096] 3. The active AP completes its own wireless parameter configuration according to the wireless configuration information and sends out the wireless signal wlan1. The standby AP completes its own wireless parameter configuration according to the wireless configuration information, creates a wireless signal but does not send out Beacon frames, that is, it does not send out wireless signals. That is, the active and standby APs do not send out wireless signals at the same time.
[0097] 4. The wireless device connects to the primary AP, which provides wireless services and executes its wireless business. A wireless user node corresponding to the wireless device is created on the primary AP. The primary AP can synchronize wireless device information and wireless user node information with the standby AP via serial, Ethernet, or air interface communication. This allows the standby AP to create wireless user nodes with identical data but different names.
[0098] 5. The main AP continuously provides wireless services for wireless devices. At the same time, through the communication between the main and backup APs, the wireless device information, wireless user node information, etc. are updated in real time to the backup AP.
[0099] 6. The standby AP uses the communication method between the active and standby APs in step 4 to monitor the active AP in real time for service anomalies. The service anomaly detection mechanisms include but are not limited to the following:
[0100] (1) Communication abnormality between the main AP and the controller;
[0101] (2) The wireless radio frequency of the main AP is abnormal;
[0102] (3) The daemon process of the master AP is abnormal;
[0103] (4) The main AP experiences abnormalities such as downtime, power outage, upgrade or restart;
[0104] (5) The main AP has abnormalities such as wired port failure or no network signal;
[0105] (6) A millisecond-level heartbeat mechanism is established between the primary and backup APs, and a heartbeat timeout exception occurs;
[0106] (7) The primary AP evaluates the service carrying capabilities of the other end (backup AP) based on its own status and the status of the other end (backup AP). If it determines that the backup AP can better carry the service, it can proactively give up carrying the service and notify the backup AP to switch.
[0107] 7. After the backup AP detects an abnormality in the host's service, it sends a Beacon frame, emitting the same wireless signal (wlan1). Simultaneously, it sends a signal prompt to notify the primary AP to stop sending the wireless signal (wlan1). Because the primary and backup APs have the same BSSID, the wireless device's wireless service data is also copied on the backup AP. Therefore, when the wireless signal switches between the primary and backup APs, the wireless device does not need to initiate re-authentication or DHCP to obtain an IP address, and can continue communication seamlessly.
[0108] 8. After the primary and backup APs switch, the backup AP continues to provide wireless services to wireless devices instead of the primary AP, achieving wireless service recovery without the wireless device's awareness and ensuring uninterrupted execution of wireless services.
[0109] It can be seen that the wireless service recovery method provided by the embodiment of the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for the two, ensuring that the primary and backup APs can send the same wireless signal, but the primary and backup APs do not send wireless signals at the same time. When the primary AP sends a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending wireless signals, it can immediately send the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that this technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For wireless devices, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of wireless services.
[0110] An embodiment of the present application provides a wireless service recovery device.
[0111] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of a wireless service recovery device provided by this application, which can be applied to Figure 1 The backup wireless access point is pre-configured with the primary wireless access point to emit the same wireless signal, and the primary wireless access point and the backup wireless access point do not emit wireless signals at the same time, including:
[0112] Acquisition module 1, configured to, when it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, cause the backup wireless access point to synchronously acquire the wireless service data of the wireless device from the primary wireless access point;
[0113] The switching module 2 is configured to, when it is determined that the primary wireless access point stops sending wireless signals, cause the backup wireless access point to send the same wireless signal and to continue to perform wireless services for the wireless device using wireless service data.
[0114] It can be seen that the wireless service recovery device provided by the embodiment of the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for the two, ensuring that the primary and backup APs can send out the same wireless signal, but the primary and backup APs do not send out wireless signals at the same time. When the primary AP sends out a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending a wireless signal, it can immediately send out the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that this technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For the wireless device, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of the wireless service.
[0115] In one embodiment of the present application, the wireless service recovery device may further include a control module for monitoring the primary wireless access point and, when an abnormality is detected in the primary wireless access point, controlling the primary wireless access point to stop sending wireless signals to stop performing wireless services for the wireless device.
[0116] In one embodiment of the present application, the control module may be specifically configured to monitor the communication status between the master wireless access point and the wireless controller; when an abnormality in the monitored communication status is detected, the master wireless access point is determined to be abnormal.
[0117] In one embodiment of the present application, the control module may be specifically configured to monitor the radio frequency of the primary wireless access point; when an abnormality in the radio frequency is detected, the primary wireless access point is determined to be abnormal.
[0118] In one embodiment of the present application, the control module may be specifically configured to monitor a daemon process of the master wireless access point; when an abnormality is detected in the daemon process, the master wireless access point is determined to be abnormal.
[0119] In one embodiment of the present application, the control module may be specifically configured to monitor the operating status of the primary wireless access point; when an abnormal operating status is detected, the primary wireless access point is determined to be abnormal; the abnormal operating status includes one or more combinations of a downtime state, a power-off state, an upgrade state, and a restart state.
[0120] In one embodiment of the present application, the control module may be specifically configured to monitor a network port of a primary wireless access point; the network port may include a wireless port and / or a wired port; and when an abnormality is detected in a monitored network port, the primary wireless access point is determined to be abnormal.
[0121] In one embodiment of the present application, the same wireless signal includes the same basic service set identifier.
[0122] For an introduction to the device provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0123] An embodiment of the present application provides another wireless service recovery device.
[0124] The wireless service recovery device provided in this application can be applied to Figure 1 The primary wireless access point and the backup wireless access point are pre-configured with the primary wireless access point to emit the same wireless signal, and the primary wireless access point and the backup wireless access point do not emit wireless signals at the same time, including:
[0125] A synchronization module, configured to synchronize wireless service data of the wireless device to the backup wireless access point when sending a wireless signal to perform wireless services for the wireless device;
[0126] The wireless service data is used when the primary wireless access point stops sending wireless signals, so that the backup wireless access point sends the same wireless signal and uses the wireless service data to continuously perform wireless services for the wireless device.
[0127] It can be seen that the wireless service recovery device provided by the embodiment of the present application deploys the primary and backup APs at the same point and completes the same wireless configuration for the two, ensuring that the primary and backup APs can send out the same wireless signal, but the primary and backup APs do not send out wireless signals at the same time. When the primary AP sends out a wireless signal to provide wireless services to the wireless device, the primary AP executes the wireless service of the wireless device, while the backup AP communicates with the primary AP in real time to synchronously obtain the wireless service data of the wireless device, and monitors the primary AP in real time. Once it is determined that the primary AP stops sending a wireless signal, it can immediately send out the same wireless signal as the primary AP to continue to provide wireless services to the wireless device, and can use the previously synchronized wireless service data to continue to execute the wireless service of the wireless device, thereby completing the uninterrupted execution of the wireless service in the wireless device. It can be seen that this technical solution can realize imperceptible primary and backup AP switching, which is fast and efficient. For the wireless device, it also realizes imperceptible wireless service recovery, ensuring the uninterrupted execution of the wireless service.
[0128] In one embodiment of the present application, the wireless service recovery device may further include an evaluation module for evaluating the service carrying capacity of the primary wireless access point and the backup wireless access point; when the service carrying capacity of the backup wireless access point is higher than the service carrying capacity of the primary wireless access point, the wireless signal is stopped to stop executing the wireless service for the wireless device, and a switching prompt is sent to the backup wireless access point.
[0129] In one embodiment of the present application, the wireless service recovery device may further include a monitoring module for monitoring the primary wireless access point, and when an abnormality is detected in the primary wireless access point, stopping sending wireless signals to stop performing wireless services for the wireless device, and sending a switching prompt to the backup wireless access point.
[0130] For an introduction to the device provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0131] This application also provides an electronic device, please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application, which may include:
[0132] a transceiver 14 for transmitting and receiving signals;
[0133] Memory 11, for storing computer programs;
[0134] The processor 10 is configured to implement the steps of any one of the above-mentioned wireless service recovery methods when executing a computer program.
[0135] like Figure 5FIG2 is a schematic diagram of the structure of an electronic device, which may include a processor 10, a memory 11, a communication interface 12, a communication bus 13, and a transceiver 14. The processor 10, the memory 11, the communication interface 12, and the transceiver 14 communicate with each other via the communication bus 13.
[0136] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field programmable gate array, or other programmable logic devices.
[0137] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in the embodiment of the wireless service recovery method.
[0138] The memory 11 is used to store one or more programs. The program may include program code, and the program code includes computer operating instructions. In the embodiment of the present application, the memory 11 stores at least a program for implementing the following functions:
[0139] When it is determined that the primary wireless access point sends a wireless signal to perform wireless services for the wireless device, the backup wireless access point synchronously obtains wireless service data of the wireless device from the primary wireless access point; when it is determined that the primary wireless access point stops sending the wireless signal, the backup wireless access point sends the same wireless signal and uses the wireless service data to continue to perform wireless services for the wireless device;
[0140] Alternatively, when a wireless signal is sent to perform wireless services for the wireless device, the wireless service data of the wireless device is synchronized to the backup wireless access point; wherein the wireless service data is used when the main wireless access point stops sending the wireless signal, and the backup wireless access point sends the same wireless signal and uses the wireless service data to continue to perform wireless services for the wireless device.
[0141] In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
[0142] In addition, the memory 11 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.
[0143] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.
[0144] Of course, it needs to be explained that Figure 5The structure shown does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include Figure 5 More or fewer components than shown, or combinations of certain components.
[0145] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned wireless service recovery methods can be implemented.
[0146] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0147] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0148] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0149] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.
[0150] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0151] The technical solution provided by the present application is described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core ideas of the present application. It should be noted that, for those skilled in the art, without departing from the principles of the present application, several improvements and modifications may be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. A wireless service recovery method, characterized in that: Applied to a standby wireless access point, the standby wireless access point and the primary wireless access point are pre-configured to enable them to send the same wireless signal, and the primary wireless access point and the standby wireless access point do not send the wireless signal at the same time, the method comprising: When it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, the backup wireless access point synchronously obtains the wireless service data of the wireless device from the primary wireless access point; When it is determined that the primary wireless access point stops sending the wireless signal, the backup wireless access point sends the same wireless signal and uses the wireless service data to continue to perform the wireless service for the wireless device.
2. The wireless service recovery method according to claim 1, wherein: Also includes: The primary wireless access point is monitored, and when it is detected that the primary wireless access point is abnormal, the primary wireless access point is controlled to stop sending the wireless signal to stop executing the wireless service for the wireless device.
3. The wireless service recovery method according to claim 2, wherein: Monitoring the primary wireless access point includes: Monitoring the communication status between the primary wireless access point and the wireless controller; When the communication state is monitored to be abnormal, it is determined that the primary wireless access point is abnormal.
4. The wireless service recovery method according to claim 2, wherein: Monitoring the primary wireless access point includes: monitoring the wireless radio frequency of the primary wireless access point; When the wireless radio frequency is monitored to be abnormal, it is determined that the main wireless access point is abnormal.
5. The wireless service recovery method according to claim 2, wherein: Monitoring the primary wireless access point includes: monitoring the daemon process of the primary wireless access point; When it is monitored that the daemon process is abnormal, it is determined that the master wireless access point is abnormal.
6. The wireless service recovery method according to claim 2, wherein: Monitoring the primary wireless access point includes: Monitoring the working status of the primary wireless access point; When the working state is monitored to be abnormal, it is determined that the master wireless access point is abnormal; the working state abnormality includes one or more combinations of a downtime state, a power-off state, an upgrade state, and a restart state.
7. The wireless service recovery method according to claim 2, wherein: Monitoring the primary wireless access point includes: Monitoring the network port of the primary wireless access point; the network port includes a wireless port and / or a wired port; When the network port is monitored to be abnormal, it is determined that the primary wireless access point is abnormal.
8. The wireless service recovery method according to any one of claims 1 to 7, characterized in that: The same wireless signal includes the same basic service set identifier.
9. A wireless service recovery method, characterized in that: Applied to a primary wireless access point, the backup wireless access point and the primary wireless access point are pre-configured to enable them to send the same wireless signal, and the primary wireless access point and the backup wireless access point do not send the wireless signal at the same time. The method includes: When the wireless signal is sent to perform a wireless service for the wireless device, synchronizing the wireless service data of the wireless device to the standby wireless access point; The wireless service data is used for the backup wireless access point to send the same wireless signal and to use the wireless service data to continuously perform the wireless service for the wireless device when the primary wireless access point stops sending the wireless signal.
10. The wireless service recovery method according to claim 9, wherein: Also includes: Evaluating the service carrying capabilities of the primary wireless access point and the backup wireless access point; When the service carrying capacity of the backup wireless access point is higher than the service carrying capacity of the primary wireless access point, the sending of the wireless signal is stopped to stop executing the wireless service for the wireless device, and a switching prompt is sent to the backup wireless access point.
11. The wireless service recovery method according to claim 9, wherein: Also includes: The primary wireless access point is monitored, and when an abnormality is detected in the primary wireless access point, the wireless signal is stopped from being sent to stop executing the wireless service for the wireless device, and a switching prompt is sent to the backup wireless access point.
12. A wireless service recovery device, characterized in that: Applied to a standby wireless access point, the standby wireless access point and the primary wireless access point are pre-configured to enable them to emit the same wireless signal, and the primary wireless access point and the standby wireless access point do not emit the wireless signal at the same time, the device comprising: an acquisition module, configured to, when it is determined that the primary wireless access point sends a wireless signal to perform a wireless service for the wireless device, cause the backup wireless access point to synchronously acquire the wireless service data of the wireless device from the primary wireless access point; The switching module is configured to, when it is determined that the primary wireless access point stops sending the wireless signal, cause the backup wireless access point to send the same wireless signal and to continue to perform the wireless service for the wireless device using the wireless service data.
13. A wireless service recovery device, characterized in that: Applied to a primary wireless access point, a backup wireless access point and the primary wireless access point are pre-configured to enable them to send the same wireless signal, and the primary wireless access point and the backup wireless access point do not send the wireless signal at the same time, the device includes: a synchronization module, configured to synchronize the wireless service data of the wireless device to the standby wireless access point when sending the wireless signal to perform wireless service for the wireless device; The wireless service data is used for the backup wireless access point to send the same wireless signal and to use the wireless service data to continuously perform the wireless service for the wireless device when the primary wireless access point stops sending the wireless signal.
14. An electronic device, characterized in that: include: a transceiver for sending and receiving signals; memory for storing computer programs; A processor, configured to implement the steps of the wireless service recovery method according to any one of claims 1 to 8 or the steps of the wireless service recovery method according to any one of claims 9 to 11 when executing the computer program.