Method and device for automatically switching modes of wireless AP (Access Point) equipment
Automatically switch the working mode of wireless AP devices through HTTP requests and UDP detection mechanisms, solving the problem of low manual switching efficiency, improving construction efficiency and ease of use, and facilitating the unified management and layout of wireless AP devices.
Patent Information
- Application Number
- CN202411204129.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-15
AI Technical Summary
In multiple wireless AP device deployment scenarios, manual switching mode is inefficient and user experience is poor, especially when the number of wireless APs is huge.
It adopts HTTP request and UDP detection mechanisms to automatically detect wireless AC controllers and cloud management platforms, intelligently identify and automatically switch the working mode of wireless AP devices, and reduce manual intervention.
It improves the construction efficiency and ease of use of wireless AP equipment, facilitates unified management and layout, and reduces resource consumption and network performance impact.
Smart Images

Figure CN118972908A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of communication technology, and in particular to a method and device for automatically switching modes of a wireless AP device. Background Art
[0002] Currently, most enterprise-level wireless APs on the market support both thin mode and fat mode. The factory default for wireless APs is thin mode or fat mode. Most enterprise-level wireless APs are in thin mode by default.
[0003] In actual usage scenarios, multiple wireless APs are mostly deployed. In different scenarios, the wireless AP mode needs to be manually switched to meet the actual networking needs. However, when there are a large number of online APs, switching the wireless AP mode one by one will result in low switching efficiency and poor user experience. To this end, we propose a method for automatically switching the mode of wireless AP devices. Summary of the invention
[0004] In view of the above defects or deficiencies in the prior art, it is desirable to provide a method and apparatus for automatically switching modes of a wireless AP device.
[0005] In a first aspect, the present application provides a method for automatically switching modes of a wireless AP device, which is applied to the working mode configuration of the wireless AP device, wherein the working mode includes a first working mode and a second working mode, and the initial working mode of the wireless AP device is the first working mode, and the method includes:
[0006] Actively send HTTP request and detection request to obtain the background query result of the first management device and the reply signal of the second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device;
[0007] When it is determined that the query result shows that the wireless AP device exists, switching from the first working mode to the second working mode;
[0008] When it is determined that a reply signal from the second management device is received, it is confirmed to enter the first working mode.
[0009] According to the technical solution provided by this application, an HTTP request is actively sent to obtain the background query result of the first management, specifically including:
[0010] After receiving the start signal, actively initiate an HTTP request to detect the first management device;
[0011] Receive a query result sent by the first management device through parsing the HTTP request.
[0012] According to the technical solution provided by the present application, after determining that the query result shows that the wireless AP device exists, the method further includes:
[0013] Responding to the server connection information sent by the first management device, establishing communication with the server;
[0014] The server connection information includes at least: server IP, port, authentication user name and password.
[0015] According to the technical solution provided by the present application, actively sending a detection request to obtain a reply signal from the second management device specifically includes:
[0016] After receiving the start signal, actively initiate a second management device detection request;
[0017] Based on the UDP application layer protocol, determine whether a reply signal from the second management device is received. If yes, directly establish a data connection with the second management device and confirm to enter the first working mode.
[0018] According to the technical solution provided by the present application, the query result includes: a first identifier corresponding to the existence of the wireless AP device, and a second identifier corresponding to the non-existence of the wireless AP device; the method further includes:
[0019] The first management device obtains device parameters corresponding to the wireless AP device by parsing the HTTP request;
[0020] The first management device determines whether the device identification parameter exists in a pre-established database based on the obtained device parameters, and if so, presents the first identification; if not, presents the second identification.
[0021] According to the technical solution provided in this application, the first management device is a cloud management platform, and the second management device is a wireless AC controller.
[0022] In a second aspect, an embodiment of the present application provides a device for automatically switching modes of a wireless AP device, including:
[0023] A transceiver module, the transceiver module is used to actively send HTTP requests and detection requests to obtain the background query result of the first management device and the reply signal of the second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device;
[0024] A judgment module, the judgment module is used to judge whether the query result shows that the wireless AP device exists and whether a reply signal of the second management device is received;
[0025] A processing module, the processing module is used to cooperate with the judgment module;
[0026] If the judgment module shows that the wireless AP device exists in the first management device, the first working mode is switched to the second working mode; if the judgment module shows that there is an accessible second management device, entering the first working mode is confirmed.
[0027] In summary, the present technical solution specifically discloses a method and apparatus for automatically switching modes of a wireless AP device, wherein the method includes: actively sending HTTP requests and detection requests to obtain background query results of a first management device and a reply signal of a second management device; the query results are used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device; when it is determined that the query result shows that the wireless AP device exists, switching from the first working mode to the second working mode; when it is determined that a reply signal from the second management device is received, confirming entry into the first working mode.
[0028] In existing wireless network coverage and network equipment design, multiple wireless APs are mostly deployed. In different scenarios, the wireless AP mode needs to be manually switched to meet the actual networking needs. However, when the number of online APs is large, the switching efficiency is low and the user experience is not good. This application uses a dual detection mechanism to actively detect the wireless AC controller and the cloud management platform, and intelligently identify whether the mode needs to be automatically switched to meet the needs of users, which greatly improves the construction efficiency, improves the usability of the product, and facilitates the unified management and layout of wireless AP devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0030] Figure 1 The present invention is a flow chart of a method for automatically switching modes of a wireless AP device.
[0031] Figure 2 The present invention is a schematic diagram showing the principle of a method for automatically switching modes of a wireless AP device.
[0032] Figure 3 The present invention is a schematic diagram of the structure of a device for automatically switching modes of a wireless AP device.
[0033] Reference numerals in the figure: 600, mode switching device; 601, transceiver module; 602, judgment module; 603, processing module; 604, analysis module. DETAILED DESCRIPTION
[0034] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0036] Example 1
[0037] In order to make the technical solution of the embodiment of the present application clearer and easier to understand, the application background of the embodiment of the present application is introduced below.
[0038] Wireless AP (Access Point) is the core of wireless network. Currently, most enterprise-level wireless AP devices on the market support two modes: thin mode and fat mode. When the wireless AP device is in thin mode, it cannot be managed and configured independently, and needs to rely on the wireless AC controller to achieve unified management and configuration of wireless AP devices. Wireless AP devices in fat mode can be configured independently based on a single AP, and do not require an external controller for configuration and management.
[0039] At the same time, there is a situation that the existing intelligent AP mode switching technology is only used for wireless AP devices that maintain factory settings. If the wireless AP device has a non-default factory configuration, the AP mode will not be switched intelligently, causing the wireless AP device with a non-default factory configuration to frequently detect the wireless controller AC and SAAS cloud management platform and frequently switch modes, causing the wireless AP device to consume more resources and reduce the overall performance and stability of the network.
[0040] Therefore, in actual usage scenarios, it is mostly necessary to manually switch the wireless AP mode to meet the actual networking needs. Since the actual usage scenarios mostly deploy multiple wireless APs, in different scenarios, if the working mode of the wireless AP device is still manually switched to meet the actual networking needs, it will not only be inefficient, but also cause poor user experience.
[0041] In view of this, in order to meet the user's usage needs, greatly improve construction efficiency, enhance product usability, and facilitate the unified management and layout of wireless AP equipment, this application proposes a method for automatic mode switching of wireless AP equipment, which adopts UDP (User Datagram Protocol) discovery and http request discovery dual detection mechanisms to actively detect wireless AC controllers and SAAS cloud management platforms, thereby intelligently identifying whether automatic mode switching is required to meet user needs and facilitate unified management and layout of wireless APs.
[0042] Please refer to Figure 1 The flowchart of a method for automatically switching modes of a wireless AP device provided by the present embodiment includes:
[0043] S100, actively sending an HTTP request and a detection request to obtain the background query result of the first management device and the reply signal of the second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device
[0044] S200, when it is determined that the query result shows that the wireless AP device exists, switching from the first working mode to the second working mode;
[0045] S300: When it is determined that a reply signal from the second management device is received, confirming to enter the first working mode.
[0046] Among them, whether a reply signal from the second management device is received is used as a judgment condition for determining whether there is an accessible second management device; and in the actual application process, the detection of the first management device and the second management device is carried out simultaneously. If it is determined that the query result shows that the wireless AP device does not exist and no reply signal from the second management device is received, HTTP requests and detection requests are continuously and periodically initiated.
[0047] The method shown in the embodiment of the present application is applied to the working mode configuration of the wireless AP device. The working mode of the AP device is usually pre-configured when the AP device leaves the factory, that is, the fat mode or the thin mode, corresponding to the first working mode and the second working mode in the present embodiment. Here, the first working mode corresponds to the thin mode, and the second working mode corresponds to the fat mode. In actual application, there is no limitation on whether the initial working mode of the wireless AP device is the thin mode or the fat mode.
[0048] Exemplarily, the method of an embodiment of the present application is executed by coordination and cooperation between a wireless AP device, a first management device, and a second management device. Here, the first management device may be a cloud management platform, and the second management device may be a wireless AC controller. In the actual network environment used in the present application, only one type of management device is included, that is, there is only a cloud management platform or a wireless AC controller.
[0049] Among them, the cloud management platform provides computing resources, storage resources, network resources and various software services, allowing users to access and use these resources and services on the Internet; the AC controller is an access controller, that is, a wireless controller, which is a network device responsible for managing AP devices in the wireless network within a certain area.
[0050] like Figure 2 As shown, the wireless AP device, the first management device and the second management device are taken as the execution subjects of the coordination and cooperation. Specifically, the method includes:
[0051] During the startup process, the wireless AP device actively initiates an HTTP request and a second management device detection request. After receiving the HTTP request, the first management device feeds back the corresponding query result. After receiving the corresponding query result, the wireless AP device determines whether the query result shows that the wireless AP device exists, and makes a corresponding working mode switch. Specifically, when the wireless AP device determines that the query result shows that the wireless AP device exists, it switches from the first working mode to the second working mode, that is, from the thin mode to the fat mode; if it is determined that the query result shows that the wireless AP device does not exist, the wireless AP device will continue the HTTP request and the detection request to continuously detect whether there is an accessible first management device or second management device.
[0052] In some embodiments, step S100, actively sending an HTTP request to obtain a background query result of the first management device, specifically includes:
[0053] Step A1: after receiving the start signal, actively initiate the HTTP request to detect the first management device;
[0054] Step A2: receiving a query result sent by the first management device by parsing the HTTP request.
[0055] In actual usage scenarios, multiple wireless AP devices are mostly deployed. The problem with configuring AP one by one is that it is cumbersome and has poor usability. In order to meet the needs of enterprise wireless network use, after the wireless device AP receives the startup signal, it will actively send an HTTP request. After receiving the serial number (SN) and MAC address carried in the HTTP request through URL parsing by the first management device, the corresponding query result can be issued based on the serial number (SN) and MAC address.
[0056] In some embodiments, after determining that the query result shows that the wireless AP device exists, the method further includes:
[0057] Step A3, the wireless AP device responds to the server connection information sent by the first management device, establishes communication with the server, and switches from the first working mode to the second working mode; the server connection information at least includes: server IP, port, authentication user name and password.
[0058] After the first management device confirms the identity of the wireless AP device, it can provide the server information required for the subsequent MQTT connection, thereby establishing a stable communication channel to facilitate data transmission and the sending of control instructions.
[0059] Combined with the above content, it can be seen that the registration of wireless AP devices on the cloud can be divided into two stages. The first stage is the registration stage. The wireless AP device initiates an HTTP request. If the wireless AP device exists, it will respond to the HTTP request issued by the wireless AP device and return the server connection information used to establish a connection to the MQTT server to the wireless AP device. The wireless AP device establishes communication with the server in fat mode, and the wireless AP device is online in the cloud.
[0060] Among them, the HTTP request can also be more specifically an HTTP GET request, which is not specifically limited here. The HTTP GET request is a method in the HTTP protocol, which is mainly used to request resources on the server. When the client needs to obtain a resource (such as a web page, picture, etc.) from the server, it will send a GET request to the server. After receiving the request, the server returns the requested resource.
[0061] Generally speaking, HTTP request detection usually refers to the behavior of using the HTTP protocol to perform network detection or health checks. This detection may include GET requests, but may also include other types of HTTP methods (such as POST, HEAD, etc.).
[0062] In some embodiments, step S100, actively sending a detection request to obtain a reply signal from a second management device, specifically includes:
[0063] Step B1, receiving a start signal, and actively initiating a second management device detection request;
[0064] Step B2: Based on the UDP application layer protocol, obtain a reply signal from the second management device.
[0065] If, during the detection of the entire accessible device, the following situation exists: it is determined that the query result shows that the wireless AP device does not exist, the wireless AP device does not switch modes, and remains in thin mode. At this time, the wireless AP device continues to periodically initiate HTTP requests and detection requests. If the wireless AP device actively discovers the wireless AC controller in the network through Layer 2 discovery or the DHCP server sends option 43, then the wireless AP device can go online directly on the wireless AC controller. Thereafter, the wireless AP device will stably maintain the thin mode, that is, if it is determined that there is an accessible second management device, a data connection is directly established with the second management device, and confirmation is made to enter the first working mode.
[0066] Specifically, UDP is a connectionless transport layer protocol that provides a simple way to send and receive data. UDP is part of the Internet Protocol Suite (TCP / IP) and, like TCP (Transmission Control Protocol), is used to transmit data between two endpoints in a network. After the second management device receives the address request detection, it will send a UDP reply response to the wireless AP device, indicating that an accessible second management device has been detected.
[0067] DHCP Option 43 is a variable-length option that can contain a series of data that can be interpreted as configuration information by network devices. When a network device starts up, it will obtain an IP address through DHCP and will also request specific Option 43 information.
[0068] Combined with the above content, it can be seen that the two stages of wireless AP device registration to the wireless AC controller can be divided into the discovery and authentication stage (UDP) and the data connection stage (TCP); specifically, the wireless AP device uses the UDP protocol to send a second management device detection request to find the wireless AC controller. After receiving the request, the wireless controller will respond and authenticate with the wireless AP device to complete the identity authentication between the wireless AP device and the controller. After the authentication is passed, a stable data connection is established between the wireless AP device and the wireless AC controller. Once the TCP connection is established, the wireless AP device and the wireless AC controller can exchange configuration information, status reports and other data, thereby forming a reliable data transmission channel and allowing the wireless controller to centrally manage and configure the wireless AP device.
[0069] In some embodiments, the query result includes: a first identifier corresponding to the existence of the wireless AP device, and a second identifier corresponding to the non-existence of the wireless AP device; the method further includes:
[0070] The first management device obtains device parameters corresponding to the wireless AP device by parsing the HTTP request;
[0071] The first management device determines whether the device identification parameter exists in a pre-established database based on the obtained device parameters, and if so, presents the first identification; if not, presents the second identification.
[0072] Here, the first management device is used as the execution entity. After receiving the HTTP request, the first management device will parse the SN and MAC parameters carried by the URL interface, and then the first management device will query whether there are corresponding SN and MAC parameters in the pre-established database. If the pre-established database query returns empty, the first management device responds to the HTTP request initiated by the wireless AP device, and the code value of the HTTP detection content json field of the response is 1 ("1" is the second identifier, indicating that the device does not exist); if the SN and MAC parameters exist in the pre-established database query, the first management device responds to the HTTP request initiated by the device, and the code value of the HTTP detection content json field of the response is 0 ("0" is the first identifier, indicating that the device exists).
[0073] When it needs to be explained, the pre-establishment of the database is to add the SN or MAC parameters of the wireless AP device to the database in advance. This is a front-end operation behavior, which can be added manually or by scanning a code, and will not be elaborated here; and the display form of the first identifier and the second identifier here is not limited; in addition, once the first management device extracts the parameter values, the first management device needs to verify them to ensure that they are in a valid format, for example, verify whether the MAC address follows the standard MAC address format.
[0074] Based on the above description, an embodiment of the present application proposes a method for automatically switching modes of a wireless AP device, the method comprising: actively sending an HTTP request and a detection request to obtain a background query result of a first management device and a reply signal of a second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device; when it is determined that the query result shows that the wireless AP device exists, switching from the first working mode to the second working mode; when it is determined that a reply signal from the second management device is received, confirming entry into the first working mode.
[0075] On the one hand, during the startup of the wireless AP device, the method actively sends out HTTP requests and detection requests, so that when the number of wireless APs is large, there is no need to manually switch the mode of the wireless APs one by one, but rely on the wireless AP devices to perform active detection, effectively improving the mode switching efficiency; on the other hand, the wireless AP device adopts a dual detection mechanism based on the UDP application layer protocol and the HTTP protocol to actively detect the wireless AC controller and the SAAS cloud management platform, and intelligently identifies whether it is necessary to automatically switch the mode to meet the needs of users, which greatly improves the construction efficiency, enhances the usability of the product, and facilitates the unified management and layout of wireless APs.
[0076] Example 2
[0077] like Figure 3 As shown, based on the method for automatically switching modes of a wireless AP device described in Example 1, the embodiment of the present application proposes a device for automatically switching modes of a wireless AP device, that is, a mode switching device 600, which includes:
[0078] The transceiver module 601 is used to actively send HTTP requests and detection requests to obtain the background query result of the first management device and the reply signal of the second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device;
[0079] A determination module 602, the determination module 602 is used to determine whether the query result shows that the wireless AP device exists and whether a reply signal from the second management device is received;
[0080] A processing module 603, the processing module 603 is used to cooperate with the judging module 602;
[0081] If the judgment module 602 shows that the wireless AP device exists in the first management device, the first working mode is switched to the second working mode; if the judgment module 602 shows that there is an accessible second management device, it is confirmed to enter the first working mode.
[0082] It should be explained that the first management device is a cloud management platform, and the second management device is a wireless AC controller.
[0083] In some embodiments, the transceiver module 601 is used to actively send an HTTP request after receiving the start signal, detect the first management device, and receive a query result sent by the first management device by parsing the HTTP request.
[0084] In some embodiments, the processing module 603 is used to respond to the server connection information sent by the first management device and establish communication with the server;
[0085] The server connection information includes at least: server IP, port, authentication user name and password
[0086] In some embodiments, the transceiver module 601 is also used to periodically send a detection request to the second management device and, based on the UDP application layer protocol, determine whether the wireless AP device has received a reply signal from the second management device. If so, directly establish a data connection with the second management device and confirm entering the first working mode.
[0087] In addition, the query result includes: a first identifier corresponding to the existence of the wireless AP device, and a second identifier corresponding to the non-existence of the wireless AP device; the mode switching device 600 also includes: a parsing module 604 that interacts with the transceiver module 601, the judgment module 602 and the processing module 603, the parsing module 604 is used to parse the HTTP request to obtain the device parameters corresponding to the wireless AP device and based on the obtained device parameters, then use the judgment module 602 to determine whether the device identification parameters exist in the pre-established database, if yes, then present the first identifier; if not, then present the second identifier.
[0088] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A method for automatically switching modes of a wireless AP device, characterized in that: Applied to the working mode configuration of a wireless AP device, the working mode includes a first working mode and a second working mode, the initial working mode of the wireless AP device is the first working mode, and the method includes: Actively send HTTP request and detection request to obtain the background query result of the first management device and the reply signal of the second management device; the query result is used to reflect whether the wireless AP device exists in the first management device; the detection request is used to detect whether there is an accessible second management device; When it is determined that the query result shows that the wireless AP device exists, switching from the first working mode to the second working mode; When it is determined that a reply signal from the second management device is received, it is confirmed to enter the first working mode.
2. The method for automatically switching modes of a wireless AP device according to claim 1, characterized in that: Actively send HTTP requests to obtain the background query results of the first management, including: After receiving the start signal, actively initiate an HTTP request to detect the first management device; Receive a query result sent by the first management device through parsing the HTTP request.
3. The method for automatically switching modes of a wireless AP device according to claim 2, characterized in that: After determining that the query result shows that the wireless AP device exists, the method further includes: In response to the server connection information sent by the first management device, establish communication with the server, and switch from the first working mode to the second working mode; The server connection information includes at least: server IP, port, authentication user name and password.
4. The method for automatically switching modes of a wireless AP device according to claim 1, characterized in that: Actively send a detection request to obtain a response signal from the second management device, specifically including: After receiving the start signal, actively initiate a second management device detection request; Based on the UDP application layer protocol, determine whether a reply signal from the second management device is received. If yes, directly establish a data connection with the second management device and confirm to enter the first working mode.
5. The method for automatically switching modes of a wireless AP device according to claim 3, characterized in that: The query result includes: a first identifier corresponding to the existence of the wireless AP device, and a second identifier corresponding to the non-existence of the wireless AP device; the method further includes: The first management device obtains device parameters corresponding to the wireless AP device by parsing the HTTP request; The first management device determines whether the device identification parameter exists in a pre-established database based on the obtained device parameters, and if so, presents the first identification; if not, presents the second identification.
6. The method for automatically switching modes of a wireless AP device according to claim 1, characterized in that: The first management device is a cloud management platform, and the second management device is a wireless AC controller.
7. A device for automatically switching modes of a wireless AP device, characterized in that: include: A transceiver module, the transceiver module is used to actively send HTTP requests and detection requests to obtain the background query result of the first management device and the reply signal of the second management device; The query result is used to reflect whether the wireless AP device exists in the first management device; The detection request is used to detect whether there is an accessible second management device; A judgment module, the judgment module is used to judge whether the query result shows that the wireless AP device exists and whether a reply signal of the second management device is received; A processing module, the processing module is used to cooperate with the judgment module; If the judgment module shows that the wireless AP device exists in the first management device, the first working mode is switched to the second working mode; if the judgment module shows that there is an accessible second management device, entering the first working mode is confirmed.
