A device connection method, apparatus, wireless access point and readable storage medium
Patent Information
- Application Number
- CN202310834489.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-07-07
AI Technical Summary
[0003]本申请实施例提供了一种设备连接方法、装置、无线接入点及可读存储介质,解决了用户手动配置地址导致的使用成本高的问题
[0019]本申请实施例与现有技术相比存在的有益效果是:本申请获取无线AP在目标网络中的当前公网IP地址;检测无线AP的历史连接参数是否为空,得到第一检测结果;在第一检测结果表示历史连接参数不为空的情况下,检测当前公网IP地址和历史连接参数中的历史公网IP地址是否相同,得到第二检测结果;响应于第二检测结果,获取处于目标网络中的目标服务设备的目标连接地址;基于目标连接地址,向目标服务设备发送连接请求。本申请中无线AP首先检测历史连接参数是否为空,其次,在历史连接参数不为空时,再检测当前公网IP地址和历史连接参数中的历史公网IP地址是否相同,得到第二检测结果,进而响应于第二检测结果,获取目标服务设备的目标连接地址,实现目标服务设备的目标连接地址的自动获取,无需用户手动配置,降低了用户的使用成本。
Smart Images

Figure CN117156520B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of device connectivity technology, and particularly relates to a device connectivity method, apparatus, wireless access point, and readable storage medium. Background Technology
[0002] Due to cross-regional data security concerns, wireless access point (AP) service equipment manufacturers need to deploy service equipment in different regions to provide services to the wireless APs. Currently, to enable wireless APs to connect to service equipment in the corresponding regions, service equipment manufacturers pre-configure the connection address of the service equipment in the wireless APs based on the regions where they will be sold. Based on this configuration method, whenever the region where the wireless AP is used changes, the user needs to manually reconfigure the address to avoid non-compliance issues, which significantly increases the user's cost and reduces flexibility. Summary of the Invention
[0003] This application provides a device connection method, apparatus, wireless access point, and readable storage medium, which solves the problem of high usage costs caused by users manually configuring addresses.
[0004] In a first aspect, embodiments of this application provide a device connection method, the method comprising:
[0005] Obtain the current public IP address of the wireless access point in the target network;
[0006] The system checks whether the historical connection parameters of the wireless AP are empty, and obtains the first detection result.
[0007] If the first detection result indicates that the historical connection parameter is not empty, the second detection result is obtained by detecting whether the current public IP address and the historical public IP address in the historical connection parameter are the same.
[0008] In response to the second detection result, the target connection address of the target service device in the target network is obtained;
[0009] Based on the target connection address, a connection request is sent to the target service device.
[0010] Secondly, embodiments of this application provide a device connection apparatus, the apparatus comprising:
[0011] The first acquisition module is used to acquire the current public IP address of the wireless AP in the target network;
[0012] The first detection module is used to detect whether the historical connection parameters of the wireless AP are empty, and obtain the first detection result;
[0013] The second detection module is used to detect whether the current public IP address and the historical public IP address in the historical connection parameters are the same when the first detection result indicates that the historical connection parameters are not empty, and to obtain the second detection result.
[0014] The second acquisition module is used to acquire the target connection address of the target service device in the target network in response to the second detection result.
[0015] The request sending module is used to send a connection request to the target service device based on the target connection address.
[0016] Thirdly, embodiments of this application provide a wireless access point, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a device connection method as described in the first aspect above.
[0017] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements a device connection method as described in the first aspect above.
[0018] Fifthly, embodiments of this application provide a computer program product that, when running on a wireless access point, causes the wireless access point to execute a device connection method described in the first aspect above.
[0019] The beneficial effects of this application embodiment compared with the prior art are as follows: This application obtains the current public IP address of the wireless AP in the target network; detects whether the historical connection parameters of the wireless AP are empty, and obtains a first detection result; if the first detection result indicates that the historical connection parameters are not empty, it detects whether the current public IP address and the historical public IP address in the historical connection parameters are the same, and obtains a second detection result; in response to the second detection result, it obtains the target connection address of the target service device in the target network; and based on the target connection address, it sends a connection request to the target service device. In this application, the wireless AP first detects whether the historical connection parameters are empty, and then, if the historical connection parameters are not empty, it detects whether the current public IP address and the historical public IP address in the historical connection parameters are the same, and obtains a second detection result. Then, in response to the second detection result, it obtains the target connection address of the target service device, realizing the automatic acquisition of the target connection address of the target service device without manual configuration by the user, thus reducing the user's usage cost. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic flowchart of a device connection method provided in an embodiment of this application;
[0022] Figure 2 This is a schematic flowchart of a device connection method provided in another embodiment of this application;
[0023] Figure 3 This is a schematic structural block diagram of a device connection apparatus provided in an embodiment of this application;
[0024] Figure 4 This is a schematic diagram of the structure of a wireless access point provided in an embodiment of this application. Detailed Implementation
[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0026] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0027] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0028] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0029] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0030] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0031] Example 1:
[0032] Please see Figure 1 , Figure 1 The illustration shows a schematic flow of a device connection method provided in this application. It is provided as an example and not a limitation. This method can be applied to a wireless AP.
[0033] Step 101: Obtain the current public IP address of the wireless AP in the target network.
[0034] Before using a wireless access point (AP), the user needs to power on the AP and connect it to the target network to enable the AP to access the Internet. Optionally, the target network can be a wide area network (WAN), also known as an external network or public network.
[0035] After the wireless AP connects to the target network, you can use the Packet Internet Groper (Ping) command to obtain the current public IP address of the wireless AP. The public IP address is an IP address that can be publicly used on the Internet and is globally unique.
[0036] Step 102: Check if the historical connection parameters of the wireless AP are empty to obtain the first detection result.
[0037] Wireless access points (APs) can store historical connection parameters. These parameters can refer to the last connection parameters when the wireless AP connected to the service device, or the connection parameters from previous connections.
[0038] As an example and not a limitation, historical connection parameters may include historical public IP addresses, historical connection addresses corresponding to those historical public IP addresses, and area codes. The historical connection address corresponding to a historical public IP address refers to the connection address of the service device to which the wireless AP is connected under that public IP address.
[0039] Optionally, the service device connected to the wireless AP is used to provide services to the wireless AP, such as storing the data of the wireless AP. By way of example and not limitation, the service device connected to the wireless AP can be a server or a server cluster, wherein the server can be a cloud server and the server cluster can be a cloud server cluster.
[0040] Step 103: If the first detection result indicates that the historical connection parameters are not empty, check whether the current public IP address and the historical public IP address in the historical connection parameters are the same to obtain the second detection result.
[0041] The first test result indicates that the historical connection parameters are not empty, meaning the wireless AP has been used at least once. At this point, the historical connection data of the wireless AP can be analyzed to determine whether this connection can be established based on the historical connection parameters.
[0042] Step 104: If the second detection result indicates that the current public IP address and the historical public IP address are the same, in response to the second detection result, the historical connection address corresponding to the historical public IP address in the historical connection parameters is determined as the target connection address.
[0043] Historical connection addresses are the connection addresses of service devices that the wireless AP has connected to and that are located in the target network.
[0044] If the second detection result indicates that the current public IP address is the same as the historical public IP address, it means that the wireless AP has previously connected to a service device that provides services to the wireless AP under that public IP address. In this case, the current connection can be made directly based on the historical connection parameters, that is, the historical connection address corresponding to the historical public IP address included in the historical connection parameters can be directly determined as the target connection address.
[0045] Optionally, the aforementioned region can refer to the landmass, country, province, city, etc.
[0046] This embodiment can bypass the target server and directly determine the aforementioned historical connection address as the target connection address when the current public IP address and the historical public IP address are the same, thereby reducing the pressure on the target server and reducing the time for the wireless AP to access the connection service device.
[0047] Wireless communication requirements may vary in different regions. In order to meet the wireless communication requirements of the current location of the wireless AP, this application can also configure the wireless AP wirelessly.
[0048] The wireless access point (AP) can store historical wireless parameters corresponding to historical public IP addresses. These historical wireless parameters can refer to the wireless parameters configured to meet the wireless communication requirements of the area during the last use of the wireless AP, or the wireless parameters configured to meet the wireless communication requirements of the area during multiple previous uses of the wireless AP. Optionally, the wireless parameters may include parameters such as wireless channel and transmit power.
[0049] Optionally, if the second detection result indicates that the current public IP address and the historical public IP address are the same, in response to the second detection result, the historical wireless parameters corresponding to the historical public IP address are determined as the target wireless parameters; wireless configuration is performed based on the target wireless parameters so that the wireless terminal can access the wired network through the wireless AP.
[0050] Step 105: Send a connection request to the target service device based on the target connection address.
[0051] After obtaining the target connection address, a connection request can be sent to the target service device to request a connection to log in to the target service device.
[0052] Optionally, based on the target connection address, a connection request is sent to the target service device, including: obtaining the authentication information of the wireless AP; and sending a connection request containing the authentication information to the target service device based on the target connection address, so that the target service device can authenticate the wireless AP based on the authentication information.
[0053] To prevent unauthorized wireless access points from accessing the target service device, the connection request sent by the wireless access point may include authentication information.
[0054] The wireless access point (AP) can store authentication information. This authentication information can refer to the information carried by the wireless AP when it last connected to the service device, or it can refer to the authentication information carried by the wireless AP when it connected to the service device multiple times in the past.
[0055] In one optional implementation, if the second detection result indicates that the current public IP address and the historical public IP address are the same, the stored authentication information can be read, and a connection request containing the authentication information can be sent to the target service device based on the target connection address.
[0056] After receiving a connection request containing authentication information, the target service device compares the authentication information with the already authenticated information to determine whether the wireless AP has been authenticated. If it has been authenticated, the wireless AP is allowed to access; if it has not been authenticated, the device can verify the information contained in the authentication information sequentially. This authentication process eliminates the need for re-authentication for already authenticated wireless APs, reducing authentication time and thus shortening the overall time for the wireless AP to connect to the target service device.
[0057] Optionally, after sending a connection request to the target service device based on the target connection address, the method further includes: if the target service device rejects the connection request, sending an address acquisition request to the target server based on the connection address of the target server configured in the wireless AP, and reacquiring the target connection address. The connection address of the target server may be pre-configured in the wireless AP at the factory.
[0058] Multiple service devices may be deployed in the same area to provide services for wireless access points (APs). When a connection request is initiated to a target service device based on the historical connection address recorded in the wireless AP, the target service device may reject the connection request due to insufficient resources. In this case, to ensure that the wireless AP can connect to the service device, an address acquisition request can be sent to the target server based on the target server's connection address. This request will ask the target server to schedule multiple service devices and reallocate the target service device to the wireless AP.
[0059] Optionally, after receiving an address acquisition request from the wireless AP, the target server can obtain the current public IP address of the wireless AP; determine the current region of the wireless AP based on the known mapping relationship between public IP addresses and regional information data; determine the connection address of the target service device corresponding to the current region of the wireless AP as the target connection address; and send the target connection address to the wireless AP.
[0060] This application can bypass the target server and directly determine the above-mentioned historical connection address as the target connection address when the historical connection parameters are not empty and the current public IP address is the same as the historical public IP address, thereby reducing the pressure on the target server and reducing the time for the wireless AP to access the connection service device.
[0061] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0062] Example 2:
[0063] Please see Figure 2 , Figure 2This illustration shows a schematic flow of a device connection method provided in this application.
[0064] Step 201: Obtain the current public IP address of the wireless AP in the target network.
[0065] Step 202: Check if the historical connection parameters of the wireless AP are empty to obtain the first detection result.
[0066] Step 203: If the first detection result indicates that the historical connection parameters are not empty, check whether the current public IP address and the historical public IP address in the historical connection parameters are the same to obtain the second detection result.
[0067] The relevant content in steps 201-203 can be found in the relevant descriptions in steps 101-103, and will not be repeated here.
[0068] Step 204: If the second detection result indicates that the current public IP address and the historical public IP address are different, in response to the second detection result, based on the connection address of the target server configured in the wireless AP, send an address acquisition request to the target server and receive the target connection address from the target server.
[0069] If the second detection result indicates that the current public IP address is different from the historical public IP address, it means that the wireless AP has never connected to a service device that provides services to the wireless AP under that public IP address in the past. In this case, you can request the target connection address of the target service device from the target server.
[0070] For details on how the target server obtains the target connection address, please refer to the relevant description in step 105, which will not be repeated here.
[0071] This embodiment can obtain the target connection address from the target server when the current public IP address and the historical public IP address are different, without requiring manual configuration by the user, thus reducing the user's usage cost.
[0072] Optionally, after receiving an address acquisition request from the wireless AP, the target server can obtain the current public IP address of the wireless AP; determine the current region of the wireless AP based on the known mapping relationship between public IP addresses and regional information data; determine the connection address of the target service device corresponding to the current region of the wireless AP as the target connection address; and send the target connection address to the wireless AP.
[0073] After receiving an address acquisition request from the wireless AP, the target server can also determine the corresponding area code based on the current location of the wireless AP and send the area code to the wireless AP.
[0074] As an example, and not a limitation, if the current public IP address indicates that the wireless AP is located in Asia or Oceania, then the corresponding target connection address can be A; if the current public IP address indicates that the wireless AP is located in Europe or Africa, then the corresponding target connection address can be B; if the current public IP address indicates that the wireless AP is located in North America or South America, then the corresponding target connection address can be C.
[0075] When the service device is a server cluster, the target server can perform load balancing analysis on each server in the server cluster by combining factors such as the server's storage, central processing unit (CPU) performance, and the number of connected wireless APs, and determine the server with the best performance as the target service device.
[0076] To meet the wireless communication requirements of the area where the wireless AP is currently located, optionally, if the second detection result indicates that the current public IP address and the historical public IP address are different, in response to the second detection result, an address acquisition request is sent to the target server based on the connection address of the target server, so that the target server can determine the target connection address and the target wireless parameters.
[0077] After receiving an address acquisition request from the wireless AP, the target server can obtain the current public IP address of the wireless AP; based on the known mapping relationship between public IP addresses and regional information data, it can determine the current region of the wireless AP; based on the existing mapping relationship between regions and wireless parameters, it can determine the wireless parameters that match the current region of the wireless AP as the target wireless parameters.
[0078] In the same area, different types of wireless APs may have different wireless parameters. Therefore, in order to obtain the target wireless parameters that match the type of wireless AP, an address acquisition request is sent to the target server based on the connection address of the target server. This includes sending an address acquisition request containing AP device identification information to the target server based on the connection address of the target server, so that the target server can determine the target wireless parameters according to the AP device identification information. The target wireless parameters refer to the wireless parameters that meet the wireless communication requirements of the area where the wireless AP is currently located.
[0079] The AP device identification information can be pre-configured in the wireless AP. Optionally, the AP device identification information may include the wireless AP's serial number (SN), physical (Media Access Control, MAC) address, model, and other information.
[0080] After receiving an address acquisition request from the wireless AP, including AP device identification information, the target server can obtain the current public IP address of the wireless AP; based on the known mapping relationship between public IP addresses and regional information data, it can determine the current region of the wireless AP; based on the existing mapping relationship between region, AP device identification information and wireless parameters, it can determine the wireless parameters that match the current region of the wireless AP and the current AP device identification information of the wireless AP as the target wireless parameters.
[0081] Optionally, after sending an address acquisition request including AP device identification information to the target server, the method further includes: receiving target wireless parameters from the target server; and performing wireless configuration based on the target wireless parameters. After performing wireless configuration based on the target wireless parameters, the wireless terminal can access the wired network through the wireless AP.
[0082] Step 205: If the first detection result indicates that the historical connection parameters are empty, in response to the first detection result, send an address acquisition request to the target server based on the connection address of the target server configured in the wireless AP; and receive the target connection address from the target server.
[0083] The first detection result indicates that the historical connection parameters are empty, suggesting that the wireless AP is being used for the first time. At this point, an address acquisition request can be sent to the target server, requesting the server to assign a target connection address to the wireless AP.
[0084] The details of how the target server obtains the target connection address can be found in the relevant description in step 105, and will not be repeated here.
[0085] Step 206: Send a connection request to the target service device based on the target connection address.
[0086] To prevent unauthorized wireless access to the target service device, in one optional implementation, if the second detection result indicates that the current public IP address and the historical public IP address are different, after sending an address acquisition request to the target server, key information from the target server can be received; authentication information can be obtained based on the key information and the AP device identification information; and a connection request containing the authentication information can be sent to the target service device based on the target connection address.
[0087] It should be noted that the information to be authenticated may also include the wireless AP's master key (DEVKEY) and license.
[0088] When the target device verifies the wireless AP, it can first verify the key information, then match the SN in the authentication information with the legitimate SN configured in the target device. After the match is successful, the DEVKEY and License in the authentication information are verified for legitimacy in turn.
[0089] After the wireless AP successfully connects to the target service device, it can store the authentication information and the current public IP address.
[0090] This application can obtain the target connection address through the target server when the first detection result indicates that the historical connection parameters are empty, or when the first detection result indicates that the historical connection parameters are not empty and the current public IP address is different from the historical public IP address, without requiring manual configuration by the user, thus reducing the user's usage cost.
[0091] Example 3:
[0092] Please see Figure 3 , Figure 3 A schematic structure of a device connection apparatus provided in this application is shown. For ease of explanation, only the parts relevant to the embodiments of this application are shown in the figure.
[0093] Reference Figure 3 The device includes a first acquisition module 31, a first detection module 32, a second detection module 33, a second acquisition module 34, and a request sending module 35; the specific functions of each module are as follows:
[0094] The first acquisition module 31 is used to acquire the current public IP address of the wireless AP in the target network;
[0095] The first detection module 32 is used to detect whether the historical connection parameters of the wireless AP are empty, and to obtain the first detection result;
[0096] The second detection module 33 is used to detect whether the current public IP address and the historical public IP address in the historical connection parameters are the same when the first detection result indicates that the historical connection parameters are not empty, and to obtain the second detection result.
[0097] The second acquisition module 34 is used to acquire the target connection address of the target service device in the target network in response to the second detection result.
[0098] The request sending module 35 is used to send a connection request to the target service device based on the target connection address.
[0099] Optionally, the second acquisition module 34 is specifically used for:
[0100] If the second detection result indicates that the current public IP address and the historical public IP address are the same, in response to the second detection result, the historical connection address corresponding to the historical public IP address in the historical connection parameters is determined as the target connection address. The historical connection address is the connection address of the service device that the wireless AP has connected to and is in the target network.
[0101] If the second detection result indicates that the current public IP address and the historical public IP address are different, in response to the second detection result, based on the connection address of the target server configured in the wireless AP, an address acquisition request is sent to the target server, and the target connection address from the target server is received.
[0102] Optionally, the device further includes a third acquisition module for:
[0103] After determining the historical connection address corresponding to the historical public IP address in the historical connection parameters as the target connection address, and sending a connection request to the target service device based on the target connection address, if the target service device rejects the connection request, an address acquisition request is sent to the target server based on the connection address of the target server configured in the wireless AP to reacquire the target connection address.
[0104] Optionally, the device further includes a transmitting and receiving module for:
[0105] If the first detection result indicates that the historical connection parameters are empty, in response to the first detection result, an address acquisition request is sent to the target server based on the connection address of the target server configured in the wireless AP; and the target connection address is received from the target server.
[0106] Optionally, the wireless AP is configured with AP device identification information, and the second acquisition module 34 or the third acquisition module or the transmit / receive module is specifically used for:
[0107] Based on the connection address of the target server, an address acquisition request including AP device identification information is sent to the target server so that the target server can determine the target wireless parameters according to the AP device identification information. The target wireless parameters refer to the wireless parameters that meet the wireless communication requirements of the area where the wireless AP is currently located.
[0108] Optionally, the device also includes a wireless configuration module for:
[0109] After sending an address acquisition request including AP device identification information to the target server, the system receives the target wireless parameters from the target server and performs wireless configuration based on the target wireless parameters.
[0110] Optionally, the request sending module 35 is specifically used for:
[0111] Obtain the authentication information of the wireless AP;
[0112] Based on the target connection address, a connection request containing authentication information is sent to the target service device, so that the target service device can authenticate the wireless AP based on the authentication information.
[0113] The device connection device provided in this application embodiment can be applied in the aforementioned method embodiment one and embodiment two. For details, please refer to the description of the aforementioned method embodiment one and embodiment two, which will not be repeated here.
[0114] Example 4:
[0115] Please see Figure 4 , Figure 4 A schematic structure of a wireless access point according to an embodiment of this application is shown. The wireless access point 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the diagram), memory 41, and computer program 42 stored in the memory 41 and executable on the at least one processor 40. When the processor 40 executes the computer program 42, it implements the steps of a device connection method in Embodiments 1 and 2 described above.
[0116] The wireless access point 4 can be an indoor wireless access point, an outdoor wireless access point, or a wireless access point included in a mobile terminal with a wireless access point. The wireless access point 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of wireless access point 4 and does not constitute a limitation on wireless access point 4. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0117] The processor 40 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0118] In some embodiments, the memory 41 may be an internal storage unit of the wireless access point 4, such as a hard disk or memory of the wireless access point 4. In other embodiments, the memory 41 may be an external storage device of the wireless access point 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the wireless access point 4. Furthermore, the memory 41 may include both internal storage units and external storage devices of the wireless access point 4. The memory 41 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 41 can also be used to temporarily store data that has been output or will be output.
[0119] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0120] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0121] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0122] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a wireless access point, a recording medium, a computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0123] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0124] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0125] In the embodiments provided in this application, it should be understood that the disclosed devices / wireless access points and methods can be implemented in other ways. For example, the device / wireless AP embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0126] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0127] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A device connection method, characterized in that, The method includes: Obtain the current public IP address of the wireless access point in the target network; The system checks whether the historical connection parameters of the wireless AP are empty, and obtains the first detection result. If the first detection result indicates that the historical connection parameter is not empty, the second detection result is obtained by detecting whether the current public IP address and the historical public IP address in the historical connection parameter are the same. In response to the second detection result, the target connection address of the target service device in the target network is obtained; Based on the target connection address, a connection request is sent to the target service device; The step of obtaining the target connection address of the target service device in the target network in response to the second detection result includes: If the second detection result indicates that the current public IP address and the historical public IP address are the same, in response to the second detection result, the historical connection address corresponding to the historical public IP address in the historical connection parameters is determined as the target connection address. The historical connection address is the connection address of the service device that the wireless AP has connected to and is in the target network. If the second detection result indicates that the current public IP address and the historical public IP address are different, in response to the second detection result, based on the connection address of the target server configured in the wireless AP, an address acquisition request is sent to the target server, and the target connection address from the target server is received.
2. The method as described in claim 1, characterized in that, After determining the historical connection address corresponding to the historical public IP address in the historical connection parameters as the target connection address, and sending a connection request to the target service device based on the target connection address, the method further includes: If the target service device rejects the connection request, an address acquisition request is sent to the target server based on the connection address of the target server configured in the wireless AP, and the target connection address is reacquired.
3. The method as described in claim 1, characterized in that, The method further includes: If the first detection result indicates that the historical connection parameters are empty, in response to the first detection result, an address acquisition request is sent to the target server based on the connection address of the target server configured in the wireless AP. Receive the target connection address from the target server.
4. The method as described in claim 2 or 3, characterized in that, The wireless AP is configured with AP device identification information. The step of sending an address acquisition request to the target server based on the connection address of the target server configured in the wireless AP includes: Based on the connection address of the target server, an address acquisition request including the AP device identification information is sent to the target server, so that the target server can determine the target wireless parameters according to the AP device identification information. The target wireless parameters refer to wireless parameters that meet the wireless communication requirements of the area where the wireless AP is currently located.
5. The method as described in claim 4, characterized in that, After sending the address acquisition request including the AP device identification information to the target server, the method further includes: Receive the target wireless parameters from the target server; Based on the target wireless parameters, perform wireless configuration.
6. The method according to any one of claims 1-3 and 5, characterized in that, Sending a connection request to the target service device based on the target connection address includes: Obtain the authentication information of the wireless AP; Based on the target connection address, a connection request containing the authentication information is sent to the target service device, so that the target service device can authenticate the wireless AP based on the authentication information.
7. A device connection apparatus, characterized in that, The device includes: The first acquisition module is used to acquire the current public IP address of the wireless AP in the target network; The first detection module is used to detect whether the historical connection parameters of the wireless AP are empty, and to obtain the first detection result; The second detection module is used to detect whether the current public IP address and the historical public IP address in the historical connection parameters are the same when the first detection result indicates that the historical connection parameters are not empty, and to obtain the second detection result. The second acquisition module is used to acquire the target connection address of the target service device in the target network in response to the second detection result; The request sending module is used to send a connection request to the target service device based on the target connection address; The second acquisition module is specifically used for: If the second detection result indicates that the current public IP address and the historical public IP address are the same, in response to the second detection result, the historical connection address corresponding to the historical public IP address in the historical connection parameters is determined as the target connection address. The historical connection address is the connection address of the service device that the wireless AP has connected to and is in the target network. If the second detection result indicates that the current public IP address and the historical public IP address are different, in response to the second detection result, based on the connection address of the target server configured in the wireless AP, an address acquisition request is sent to the target server, and the target connection address from the target server is received.
8. A wireless access point, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Address processing method, gateway device, ap
CN102217284A
Service recovery method, equipment and system for wireless local area network (WLAN)
CN102333335A
