Wi-Fi connection method, device, terminal and wireless access point
By determining the channel that does not interfere with the mobile data module between the terminal and the wireless access point (AP), the problem of low frequency band resource utilization caused by the overlap of mobile data and Wi-Fi frequency bands is solved, and efficient Wi-Fi connection is achieved.
Patent Information
- Application Number
- CN202011169613.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-27
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2040-10-27
AI Technical Summary
In the prior art, mobile data and Wi-Fi frequency bands may overlap, resulting in low resource utilization of frequency bands, and it is impossible to effectively solve the problem of coexistence between mobile data and Wi-Fi.
By sending information between the terminal and the wireless access point (AP), a channel that does not interfere with the operating frequency of the mobile data module is determined and a Wi-Fi connection is established based on this channel.
It realizes that the terminal establishes a Wi-Fi connection with the AP without interfering with the mobile data module, and improves the utilization rate of the Wi-Fi channel.
Smart Images

Figure CN114501582B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a Wi-Fi connection method, device, terminal, and wireless access point (Wireless Access Point, AP). Background Art
[0002] With the development of science and technology, mobile data and wireless network Wi-Fi appear more and more in people's lives. Mobile data realizes communication between terminals and base stations, and Wi-Fi realizes communication between terminals and APs. Therefore, research on mobile data and Wi-Fi has become one of the research focuses of people in this field.
[0003] During the use of the terminal, the frequency band range of mobile data and the frequency band range of Wi-Fi may overlap. If the coexistence problem of mobile data and Wi-Fi cannot be solved, it will not meet the requirements of operators and even affect the user experience. In related technologies, a filter that sacrifices the effective bandwidth of mobile data or Wi-Fi can be added to the mobile data or Wi-Fi transmission link. By sacrificing the effective bandwidth of mobile data or Wi-Fi, it is ensured that mobile data and Wi-Fi do not interfere with each other. However, this solution causes the terminal to be unable to use the sacrificed frequency band resources, resulting in low frequency band resource utilization. Summary of the invention
[0004] The present application provides a Wi-Fi connection method, device, terminal and wireless access point, which can solve the technical problem of low frequency band resource utilization in related technologies.
[0005] In a first aspect, an embodiment of the present application provides a Wi-Fi connection method, which is applied to a terminal, wherein the terminal includes a mobile data module and a Wi-Fi module, and the method includes: sending first information to a wireless access point (Wireless Access Point, AP), wherein the first information is used to instruct the AP to determine a first channel, wherein the first channel is a channel that does not interfere with the working frequency of the mobile data module; receiving second information sent by the AP and carrying the first channel, and controlling the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0006] In a second aspect, an embodiment of the present application provides a Wi-Fi connection method, which is applied to accessing a wireless access point (Wireless Access Point, AP), the method comprising: receiving first information sent by a terminal, and allocating a first channel in an unused channel that does not interfere with the working frequency of a mobile data module in the terminal according to the first information; sending second information carrying the first channel to the terminal, the second information being used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0007] In a third aspect, an embodiment of the present application provides a Wi-Fi connection method, which is applied to accessing a wireless access point (Wireless Access Point, AP). The method includes: obtaining an operating frequency of a mobile data module in a terminal and an operating frequency after the Wi-Fi module is connected to the AP, and calculating a frequency difference between the operating frequency of the mobile data module and the operating frequency after the Wi-Fi module is connected to the AP; if the frequency difference is less than a preset difference, allocating a first channel in an unused channel that does not interfere with the operating frequency of the mobile data module; and sending first information carrying the first channel to the terminal, wherein the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0008] In a fourth aspect, an embodiment of the present application provides a Wi-Fi connection device, which is applied to a terminal, wherein the terminal includes a mobile data module and a Wi-Fi module, and the device includes: a channel allocation module, which is used to send first information to a wireless access point (Wireless Access Point, AP), wherein the first information is used to instruct the AP to determine a first channel, and the first channel is a channel that does not interfere with the operating frequency of the mobile data module; a connection module, which is used to receive second information carrying the first channel sent by the AP, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0009] In a fifth aspect, an embodiment of the present application provides a Wi-Fi connection device, which is used to access a wireless access point (Wireless Access Point, AP), and the device includes: a channel allocation module, which is used to receive first information sent by a terminal, and allocate a first channel in an unused channel that does not interfere with the working frequency of a mobile data module in the terminal according to the first information; an information sending module, which is used to send second information carrying the first channel to the terminal, and the second information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0010] In a sixth aspect, an embodiment of the present application provides a Wi-Fi connection device, which is used to access a wireless access point (Wireless Access Point, AP), and the device includes: a difference calculation module, which is used to obtain the working frequency of a mobile data module in a terminal and the working frequency after the Wi-Fi module is connected to the AP, and calculate the frequency difference between the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP; a channel allocation module, which is used to allocate a first channel in an unused channel that does not interfere with the working frequency of the mobile data module if the frequency difference is less than a preset difference; a channel sending module, which is used to send first information carrying the first channel to the terminal, and the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0011] In a seventh aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor to implement the steps of the above-mentioned method.
[0012] In an eighth aspect, an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method when executing the program.
[0013] In a ninth aspect, an embodiment of the present application provides a wireless access point (AP), comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.
[0014] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0015] The present application provides a Wi-Fi connection method, firstly sending a first message to an AP, the first message is used to instruct the AP to determine a first channel, the first channel being a channel that does not interfere with the working frequency of a mobile data module; then receiving a second message carrying the first channel sent by the AP, and controlling the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second message. Since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel, and the Wi-Fi module will not interfere with the mobile data module when working on the first channel, thereby greatly improving the utilization rate of the Wi-Fi channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 An exemplary system architecture diagram of a Wi-Fi connection method provided in an embodiment of the present application;
[0018] Figure 2 A system interaction diagram of a Wi-Fi connection method provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a flow chart of a Wi-Fi connection method provided in another embodiment of the present application;
[0020] Figure 4 A schematic diagram of a flow chart of a Wi-Fi connection method provided in another embodiment of the present application;
[0021] Figure 5 A schematic diagram of displaying a prompt message provided by another embodiment of the present application;
[0022] Figure 6 A schematic diagram of displaying another prompt information provided by another embodiment of the present application;
[0023] Figure 7 A schematic diagram of a flow chart of a Wi-Fi connection method provided in another embodiment of the present application;
[0024] Figure 8 A schematic diagram of a flow chart of a Wi-Fi connection method provided in another embodiment of the present application;
[0025] Fig. 9 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application;
[0026] Fig.10 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application;
[0027] Fig.11 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application;
[0028] Fig.12 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0029] Fig.13 Another structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described 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 those skilled in the art without creative work are within the scope of protection of the present application.
[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0032] Figure 1 An exemplary system architecture diagram of a Wi-Fi connection method provided in an embodiment of the present application.
[0033] like Figure 1 As shown, the system architecture may include at least one terminal 110, AP 120, base station 130, and communication link 140, wherein the communication link 140 is used to provide a medium for a communication link between the terminal 110 and AP 120, and between the terminal 110 and the base station 130. The communication link 140 may include various types of wired communication links or wireless communication links, for example, the wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, and the wireless communication link includes a Bluetooth communication link, a near field communication link, a Wi-Fi communication link, or a microwave communication link.
[0034] The terminal 110 may be hardware or software. When the terminal 110 is hardware, it may be various electronic devices with a display screen, including but not limited to a smart phone, a tablet computer, a laptop computer, and a desktop computer. When the terminal 110 is software, it may be installed in the electronic devices listed above. It may be implemented as multiple software or software modules (for example, to provide distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.
[0035] Various communication client applications may be installed on the terminal 110, such as drawing applications, video recording applications, video playback applications, voice collection applications, voice interaction applications, search applications, instant messaging tools, email clients, and social platform software.
[0036] AP120 is a wireless access point, a wireless switch used in wireless networks, and is the core of wireless networks. AP is an access point for end users to enter a wired network, such as a broadband home, inside a building, and inside a park. In related technologies, it can cover tens to hundreds of meters. AP is a bridge between wireless and wired networks, and is the core device for building a wireless local area network. In the embodiment of the present application, AP can be a simple wireless access point (wireless AP), or a wireless router (including a wireless gateway, a wireless bridge) and other devices.
[0037] The base station 130 is an interface device for the terminal 110 to access the Internet. It is also a form of a radio station, which refers to a radio transceiver station that transmits information to the terminal 110 through a mobile communication exchange center in a certain radio coverage area.
[0038] It should be understood that Figure 1 The number of terminals, base stations, communication links and APs in the figure is only illustrative, and any number of terminals, base stations, communication links and APs may be used according to implementation requirements.
[0039] It should be noted that the execution subject of the embodiment of the present application may be, for example, a terminal, a central processing unit (CPU) in the terminal, or other integrated circuit chips in hardware, and may be, for example, a service related to the Wi-Fi connection method in the terminal in software, without limitation. For the convenience of description, the following description is based on the CPU as an example.
[0040] See also Figure 2 , Figure 2 A system interaction diagram of a Wi-Fi connection method provided in an embodiment of the present application is shown below. Figure 1 and Figure 2 Introduces a system interaction process in a Wi-Fi connection method.
[0041] like Figure 2 As shown in the figure, the system interaction process includes:
[0042] S201. The CPU sends first information to a wireless access point (AP), where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with an operating frequency of a mobile data module.
[0043] In one embodiment, before sending the first information to the AP, if the Wi-Fi module is not connected to the AP, sending the first information to the AP includes: after receiving a Wi-Fi connection instruction issued by a user, sending the first information to the AP.
[0044] In one embodiment, before sending the first information to the AP, the Wi-Fi module has been connected to the AP, and sending the first information to the AP includes: obtaining the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP, and calculating the frequency difference between the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP; if the frequency difference is less than the preset difference, sending the first information to the AP.
[0045] Optionally, sending the first information to the AP further includes: controlling the Wi-Fi module to send the first information carrying the working frequency of the mobile data module to the AP.
[0046] Optionally, the terminal also includes a near field communication module, sending the first information to the AP, and also includes: when the AP is detected through the near field communication module, controlling the near field communication module to establish a connection with the AP; controlling the near field communication module to send the first information carrying the working frequency of the mobile data module to the AP.
[0047] Optionally, sending the first information to the AP also includes: sending third information to the AP, the third information being used to instruct the AP to send fourth information carrying an unused channel to the terminal; generating and displaying first prompt information based on the fourth information sent by the AP and the operating frequency of the mobile data module, the first prompt information including a channel in the unused channel that does not interfere with the operating frequency of the mobile data module; determining the channel selected by the user for the first prompt information as the first channel, and sending the first information carrying the first channel to the AP.
[0048] S202: The AP receives first information sent by the terminal, and allocates a first channel from unused channels that does not interfere with the working frequency of the mobile data module in the terminal according to the first information.
[0049] S203: The AP sends second information carrying the first channel to the terminal, where the second information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0050] S204: The CPU receives second information carrying the first channel sent by the AP, and controls the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0051] In the embodiment of the present application, first information is sent to the AP, the first information is used to instruct the AP to determine the first channel, and the first channel is a channel that does not interfere with the working frequency of the mobile data module; then the second information carrying the first channel sent by the AP is received, and the Wi-Fi module is controlled to establish a Wi-Fi connection with the AP on the first channel based on the second information. Since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel, and the Wi-Fi module will not interfere with the mobile data module when working on the first channel, which greatly improves the utilization rate of the Wi-Fi channel.
[0052] See also Figure 3 , Figure 3 A flowchart of a Wi-Fi connection method provided in another embodiment of the present application.
[0053] like Figure 3 As shown, in an embodiment of the present application, a Wi-Fi connection method is applied to a terminal, the terminal includes a mobile data module and a Wi-Fi module, and the method includes:
[0054] S301. Send first information to an AP, where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with an operating frequency of a mobile data module.
[0055] In the embodiment of the present application, regarding the Wi-Fi connection method, before sending the first information to the AP, there are two situations. One situation is that before the terminal sends the first information to the AP, the Wi-Fi module is not connected to the AP, that is, the AP can allocate a channel that does not interfere with the working frequency of the mobile data module according to the first information, so that the Wi-Fi module in the terminal can establish a connection with the AP on the first channel. Therefore, when the user needs to connect to Wi-Fi, the CPU of the terminal can send the first information to the AP through the relevant information transmission method. The first information is used to instruct the AP to determine the first channel. The first channel is a channel that does not interfere with the working frequency of the mobile data module, wherein the first channel can be a channel randomly allocated by the AP in the channel that does not interfere with the working frequency of the mobile data module, that is, the first channel can be any channel in the channel that does not interfere with the working frequency of the mobile data module; the first channel can also be a channel selected by the AP after receiving a channel selected by the user in the channel that does not interfere with the working frequency of the mobile data module, and then allocated. After determining the first channel, the AP can also generate second information carrying the first channel and send the second information carrying the first channel to the terminal.
[0056] Another situation is that before the terminal sends the first information to the AP, the Wi-Fi module has been connected to the AP, so the terminal controls the Wi-Fi module to switch the current working channel to the first channel according to the first channel determined by the AP.
[0057] Specifically, the terminal may first obtain the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after accessing the AP, and calculate the frequency difference between the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after accessing the AP.
[0058] It can be understood that in the embodiment of the present application, the mobile data module may refer to a module in the terminal that communicates with the base station, wherein the base station may be an interface device for the terminal to access the Internet, and is also a form of a radio station, which refers to a radio transceiver station that transmits information with the mobile terminal through a mobile communication exchange center in a certain radio coverage area. Then the mobile data module may be a module that communicates with the base station based on a certain communication technology, wherein the communication technology may include the fifth generation mobile communication (5th Generation Wireless Systems New Radio, 5GNR) standard technology, long term evolution (Long Term Evolution, LTE) standard technology, universal mobile telecommunications system (Universal Mobile Telecommunications System, UMTS) standard technology, global system for mobile communications (Global System for Mobile Communications, GSM) standard technology or a combination thereof.
[0059] Furthermore, when the terminal enters the network coverage of a certain base station, the base station can allocate a certain frequency band to the terminal so that the mobile data module in the terminal can work at the working frequency of the frequency band. At this time, if the user needs to use the wireless Internet access function, the CPU needs to control the Wi-Fi module to turn on. When the AP is searched through the Wi-Fi module, a connection can be established with the AP. The AP can allocate a certain frequency band to the terminal so that the Wi-Fi module in the terminal can work at the working frequency of the frequency band. At this time, the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module may interfere with each other due to their close distance. In order to facilitate the judgment of whether the working frequencies of the mobile data module and the Wi-Fi module interfere with each other, the CPU can obtain the working frequency of the mobile data module through the working status information after the mobile data module is connected to the base station; and can also obtain the working frequency of the Wi-Fi module after connecting to the AP through the working status of the Wi-Fi module after connecting to the AP.
[0060] Optionally, in the above embodiment, the working channel of the mobile data module and the working channel of the Wi-Fi module after accessing the AP may be obtained to determine whether there is interference between the mobile data module and the Wi-Fi module. However, since the mobile data module and the Wi-Fi module do not occupy all the frequencies on the channel when working on a certain channel, but work on a certain frequency of the channel, it is possible that the working channel of the mobile data module and the working channel of the Wi-Fi module after accessing the AP overlap with each other, but the working frequencies of the mobile data module and the Wi-Fi module do not interfere with each other. Therefore, in the embodiment of the present application, in order to more accurately determine whether there is interference between the mobile data module and the Wi-Fi module, obtaining the working frequency of the mobile data module and obtaining the working frequency of the Wi-Fi module after accessing the AP are used as the basis for judgment.
[0061] After obtaining the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP, the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP can be calculated, so as to subsequently determine whether there is interference between the mobile data module and the Wi-Fi module based on the frequency difference.
[0062] If the frequency difference is less than the preset difference, first information is sent to the AP, where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with the working frequency of the mobile data module.
[0063] If the frequency difference is less than the preset difference, it means that the working frequency of the mobile data module and the working frequency of the Wi-Fi module are close to each other, and there may be frequency interference between the mobile data module and the Wi-Fi module. Then the CPU can send the first information to the AP through the relevant information transmission method. The first information is used to instruct the AP to determine the first channel. The first channel is a channel that does not interfere with the working frequency of the mobile data module, wherein the first channel can be a channel randomly assigned by the AP in the channel that does not interfere with the working frequency of the mobile data module, that is, the first channel can be any channel in the channel that does not interfere with the working frequency of the mobile data module; the first channel can also be a channel assigned by the AP after receiving a channel selected by the user in the channel that does not interfere with the working frequency of the mobile data module. After determining the first channel, the AP can also generate second information carrying the first channel and send the second information carrying the first channel to the terminal.
[0064] S302: Receive second information carrying the first channel sent by the AP, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0065] The CPU can receive the second information carrying the first channel sent by the AP through the relevant information transmission method, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information, so that the Wi-Fi module works at a certain frequency on the first channel. Since the first channel is a channel that does not interfere with the working frequency of the mobile data module, the Wi-Fi module working at any frequency on the first channel will not cause interference between the working frequencies of the mobile data module and the Wi-Fi module, effectively ensuring the working efficiency between the mobile data module and the Wi-Fi module.
[0066] When the Wi-Fi connection method in the embodiment of the present application is applied, if the Wi-Fi module is not connected to the AP, the Wi-Fi connection method in the embodiment of the present application can enable the Wi-Fi module to quickly connect to a channel that does not interfere with the mobile data module, thereby greatly improving the user's Wi-Fi connection experience.
[0067] When the Wi-Fi connection method in the embodiment of the present application is applied, if the Wi-Fi module has been connected to the AP, it can be connected to the AP at the first time, and the channel is switched only when it is detected that the frequency difference between the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP does not meet the preset conditions. Then when the base station and the AP themselves are underloaded, the base station rarely actively changes the working frequency of the mobile data module, and the AP rarely actively changes the working frequency after the Wi-Fi module is connected to the AP. Then, in the embodiment of the present application, it is only necessary to detect the working frequency of the mobile data module and the working frequency of the Wi-Fi module after it is connected to the AP when the mobile data module is first connected to the base station and the Wi-Fi module is first connected to the AP, and the subsequent channel switching work can be completed, which improves the convenience of channel switching and reduces the power consumption caused by channel switching. Furthermore, since the original working channel of the Wi-Fi module becomes an unused channel after the Wi-Fi module switches from the original working channel to the first channel, the AP can allocate the original working channel of the Wi-Fi module to other terminals, which can effectively improve the utilization rate of the channel.
[0068] In the embodiment of the present application, first information is sent to the AP, the first information is used to instruct the AP to determine the first channel, and the first channel is a channel that does not interfere with the working frequency of the mobile data module; then the second information carrying the first channel sent by the AP is received, and the Wi-Fi module is controlled to establish a Wi-Fi connection with the AP on the first channel based on the second information. Since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel, and the Wi-Fi module will not interfere with the mobile data module when working on the first channel, which greatly improves the utilization rate of the Wi-Fi channel.
[0069] See also Figure 4 , Figure 4 A flowchart of a Wi-Fi connection method provided in another embodiment of the present application.
[0070] like Figure 4 As shown, in the embodiment of the present application, regarding the Wi-Fi connection method, before sending the first information to the AP, there are two situations. One situation is that before the terminal sends the first information to the AP, the Wi-Fi module is not connected to the AP. In this case, the method includes:
[0071] S401: After receiving a Wi-Fi connection instruction from a user, send first information to an AP.
[0072] When the user needs to connect to Wi-Fi, the terminal can send a Wi-Fi connection instruction to the terminal through voice input, display touch input or terminal button input. After the CPU receives the Wi-Fi connection instruction, the CPU can send the first information to the AP through the relevant information transmission method, wherein the first information carries the operating frequency of the mobile data module.
[0073] Another situation is that before the terminal sends the first information to the AP, the Wi-Fi module has been connected to the AP. In this case, the method includes:
[0074] S402: Acquire the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP, and calculate the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP.
[0075] Among them, when the terminal enters the network coverage of a certain base station, the base station can allocate a certain frequency band to the terminal so that the mobile data module in the terminal can work at the working frequency of the frequency band. At this time, if the user needs to use the wireless Internet function, the CPU needs to control the Wi-Fi module to turn on. When the AP is searched through the Wi-Fi module, a connection can be established with the AP. The AP can allocate a certain frequency band to the terminal so that the Wi-Fi module in the terminal can work at the working frequency of the frequency band. At this time, the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module may interfere with each other due to their close distance. In order to facilitate the judgment of whether the working frequencies of the mobile data module and the Wi-Fi module interfere with each other, the CPU can obtain the working frequency of the mobile data module from the working status information after the mobile data module is connected to the base station; the working frequency of the Wi-Fi module after connecting to the AP can also be obtained through the working status of the Wi-Fi module after connecting to the AP.
[0076] In addition, in addition to the above-mentioned cases, the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after connecting to the AP can be obtained. Because the use environment of the terminal is relatively complex, the base station may actively switch the channel of the mobile data module in the terminal, and / or the AP may actively switch the channel of the Wi-Fi module in the terminal. Therefore, when it is detected that the operating frequency of the mobile data module and / or the operating frequency of the Wi-Fi module have changed, the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after connecting to the AP can be obtained, which can greatly improve the application scope and practicality of the Wi-Fi connection method in the embodiment of the present application.
[0077] For other implementation processes of step S402, please refer to the record in step S301 in the above embodiment, which will not be repeated here.
[0078] S403: If the frequency difference is less than the preset difference, send first information to the AP.
[0079] In the embodiment of the present application, there are three specific implementation methods for sending the first information, which will be described one by one below.
[0080] S404: Control the Wi-Fi module to send first information carrying the working frequency of the mobile data module to the AP, where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with the working frequency of the mobile data module.
[0081] Since in an embodiment of the present application, the terminal may include a Wi-Fi module, the Wi-Fi module may establish a connection with the AP and transmit information through a communication method based on Wi-Fi technology. Therefore, when the frequency difference is less than the preset difference, it means that the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module are close to each other, and there may be frequency interference between the mobile data module and the Wi-Fi module. The CPU sends the operating frequency of the mobile data module to the Wi-Fi module, controls the Wi-Fi module to generate first information carrying the mobile data module, and sends the first information to the AP.
[0082] Since the Wi-Fi module has established a connection with the AP before the terminal switches channels, the Wi-Fi module can be directly controlled to send the first information carrying the working frequency of the mobile data module to the AP, which can greatly reduce the time it takes for the terminal to send the working frequency of the mobile data module to the AP.
[0083] When the AP receives the first information carrying the working frequency of the mobile data module sent by the terminal, it can determine the channel that does not interfere with the working frequency of the mobile data module from the unused channels according to the working frequency of the mobile data module and the unused channels in the AP, wherein the unused channels in the AP can refer to the channels that are not allocated to other terminals in the AP, that is, the channels in the idle state. Optionally, the method for determining the channel that does not interfere with the working frequency of the mobile data module from the unused channels can be to obtain the center frequency corresponding to each unused channel, determine one or more unused channels whose difference between the center frequency and the working frequency of the mobile data module is greater than the second preset difference as the channel that does not interfere with the working frequency of the mobile data module in the unused channels, and determine any one of the channels that does not interfere with the working frequency of the mobile data module in the unused channels as the first channel, so the first channel can be a channel randomly allocated by the AP in the channel that does not interfere with the working frequency of the mobile data module. Finally, the AP sends the second information carrying the first channel to the terminal so that the CPU controls the Wi-Fi module to switch to the first channel to work.
[0084] When the frequency difference is equal to or greater than the preset difference, it means that the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module may be far apart, and there is no frequency interference between the mobile data module and the Wi-Fi module. There is no need to switch the channel of the Wi-Fi module, that is, keep the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module unchanged.
[0085] Optionally, before the Wi-Fi connection is implemented in the present application, regardless of whether the Wi-Fi module is connected to the AP, the first information carrying the working frequency of the mobile data module can be sent to the AP through other information transmission methods. For example, the embodiment of the present application also discloses information transmission through near field communication. Therefore, the Wi-Fi connection method in the embodiment of the present application also includes:
[0086] S405: When an AP is detected through the near field communication module, control the near field communication module to establish a connection with the AP.
[0087] In the embodiment of the present application, the terminal may further include a near-field communication module, which is a module that utilizes near-field communication technology to transmit information. Near-field communication is an emerging technology. Devices that use near-field communication technology can exchange data when they are close to each other. It is evolved from the integration of contactless radio frequency identification and interconnection technology. By integrating the functions of an inductive card reader, an inductive card, and point-to-point communication on a single chip, the terminal is used to realize mobile payment, electronic ticketing, access control, mobile identity recognition, anti-counterfeiting, etc. Optionally, the AP may also include a near-field communication module, and its working principle is similar to that of the near-field communication module in the terminal, which will not be repeated here.
[0088] See also Figure 5 , Figure 5 A schematic diagram of displaying prompt information provided by another embodiment of the present application.
[0089] like Figure 5 As shown, when the terminal needs to transmit the first information to the AP, the CPU can first generate near-field communication prompt information. Since the near-field communication module in the terminal needs to establish a connection with the near-field communication module in the AP, the terminal and the AP must be brought within a certain distance range so that the near-field communication module in the terminal can complete the communication coupling with the near-field communication module in the AP. Therefore, the near-field communication prompt information is used to prompt the user to bring the terminal close to the AP.
[0090] There are many implementation methods for the terminal to prompt the near field communication prompt information. For example, it can be implemented by image display, voice reminder, light reminder, etc. For the convenience of description, Figure 5 In the process, the CPU displays the near field communication prompt information through the display module in the control terminal, for example, Figure 5 The near field communication prompt message 510 displayed on the middle display screen of the terminal is “Please move your mobile terminal closer to the AP!”.
[0091] When the user moves towards the AP according to the near-field communication prompt information, the CPU can control the near-field communication module to continuously detect the signal strength of the nearby near-field communication. When the signal strength of the nearby near-field communication reaches the preset signal strength, the CPU controls the near-field communication module in the terminal to establish a connection with the near-field communication module in the AP.
[0092] Optionally, in order to improve the security of establishing a connection between the near-field communication module in the terminal and the near-field communication module in the AP, after the near-field communication module in the terminal and the near-field communication module in the AP are connected, the properties of the AP can be verified to determine whether the AP is the AP that the terminal needs to connect to, so as to prevent incorrect connection.
[0093] S406: Control the near field communication module to send first information carrying the working frequency of the mobile data module to the AP, where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with the working frequency of the mobile data module.
[0094] After the near field communication module in the terminal establishes a connection with the near field communication module in the AP, the CPU sends the working frequency of the mobile data module to the near field communication module, controls the near field communication module to generate the first information carrying the mobile data module, and sends the first information to the AP.
[0095] When the AP receives the first information carrying the working frequency of the mobile data module sent by the terminal, it can determine the channel that does not interfere with the working frequency of the mobile data module from the unused channels according to the working frequency of the mobile data module and the unused channels in the AP, wherein the unused channels in the AP can refer to the channels that are not allocated to other terminals in the AP, that is, the channels in the idle state. Optionally, the method for determining the channel that does not interfere with the working frequency of the mobile data module from the unused channels can be to obtain the center frequency corresponding to each unused channel, determine one or more unused channels whose difference between the center frequency and the working frequency of the mobile data module is greater than the second preset difference as the channel that does not interfere with the working frequency of the mobile data module in the unused channels, and determine any one of the channels that does not interfere with the working frequency of the mobile data module in the unused channels as the first channel, so the first channel can be a channel randomly allocated by the AP in the channel that does not interfere with the working frequency of the mobile data module. Finally, the AP sends the second information carrying the first channel to the terminal so that the CPU controls the Wi-Fi module to switch to the first channel to work.
[0096] In the above embodiment, regardless of the transmission mode based on Wi-Fi or the transmission mode based on near field communication, the AP first receives the first information, wherein the first information carries the working frequency of the mobile data module, and then determines any one of the unused channels that does not interfere with the working frequency of the mobile data module as the first channel. Optionally, the AP may determine the first channel based on information selected by the user, and then the method includes:
[0097] S407: Send third information to the AP, where the third information is used to instruct the AP to send fourth information carrying an unused channel to the terminal.
[0098] Because in the embodiment of the present application, when the terminal needs to send the first information, the CPU can generate and send the third information to the AP, wherein the third information is used to instruct the AP to send the fourth information carrying the unused channel to the terminal. The way in which the CPU sends the third information to the AP can be sending the third information through Wi-Fi technology or near-field communication technology in the above-mentioned method steps, or it can be sending the third information through a Bluetooth communication link, a microwave communication link, etc. When the AP receives the third information, it can obtain the unused channels in the AP, wherein the unused channels in the AP can refer to channels in the AP that are not allocated to other terminals, that is, channels in an idle state, and then the AP generates the fourth information based on the obtained unused channels, and sends the fourth information carrying the unused channels to the terminal through the above-mentioned information transmission method.
[0099] S408: Generate and display first prompt information according to the fourth information sent by the AP and the working frequency of the mobile data module, where the first prompt information includes a channel in the unused channels that does not interfere with the working frequency of the mobile data module.
[0100] After the AP receives the fourth information carrying the unused channels, it can determine the channels that do not interfere with the working frequency of the mobile data module from the unused channels according to the working frequency of the mobile data module and the unused channels in the AP. Optionally, the method for determining the channels that do not interfere with the working frequency of the mobile data module from the unused channels can be to obtain the center frequency corresponding to each unused channel, and determine one or more unused channels whose difference between the center frequency and the working frequency of the mobile data module is greater than a second preset difference as the channels that do not interfere with the working frequency of the mobile data module from the unused channels.
[0101] See also Figure 6 , Figure 6 A schematic diagram of displaying another type of prompt information provided in another embodiment of the present application.
[0102] like Figure 6 As shown, the CPU can also generate a first prompt information according to the channel determined as unused and not interfering with the working frequency of the mobile data module, the first prompt information is used to prompt the user to select from the above channels that do not interfere with the working frequency of the mobile data module, wherein the terminal has multiple implementation methods for prompting the first prompt information, for example, it can be implemented by prompting methods such as image display, voice reminder and light reminder, for the convenience of description, in Figure 6 In the embodiment, the CPU displays the first prompt information by controlling the display module in the terminal, for example, Figure 6 The middle display screen of the terminal displays the channels in the unused channels that do not interfere with the working frequency of the mobile data module through bar boxes. Figure 6The unused channels that do not interfere with the working frequency of the mobile data module are shown as channel one 610, whose corresponding center frequency is 2.427 GHz; channel two 620, whose corresponding center frequency is 2.437 GHz; channel three 630, whose corresponding center frequency is 2.447 GHz; and channel four 640, whose corresponding center frequency is 2.457 GHz. Figure 6 Four channels are used as an example. In actual applications, all channels that do not interfere with the working frequency of the mobile data module among the unused channels may be shown, or only channels with high priority may be shown.
[0103] in addition Figure 6 The first prompt information may also include the operating frequency of the mobile data module, that is, the first prompt information may display the operating frequency of the mobile data module, for example, Figure 6 The operating frequency of the mobile data module is 2.417 GHz, so that the user can select a suitable channel according to the operating frequency of the mobile data module. For example, the user can select a channel whose operating frequency of the mobile data module is far away from the center frequency of the channel for switching to ensure that after the Wi-Fi module switches the channel, the probability of interference between the mobile data module and the Wi-Fi module can be greatly reduced.
[0104] S409: determine the channel selected by the user in response to the first prompt information as the first channel, and send first information carrying the first channel to the AP, where the first information is used to instruct the AP to determine the first channel, and the first channel is a channel that does not interfere with the working frequency of the mobile data module.
[0105] When the user observes the first prompt information displayed on the terminal, the user can select the channel displayed corresponding to the first prompt information as the channel to be switched by touching. For example, if the user selects channel four as the channel to be switched, the user can touch the bar box corresponding to channel four 640. After the CPU receives the touch information through the display module, it determines that the channel four selected by the user is the first channel. The CPU generates the first information according to the first channel, and sends the first information carrying the first channel to the AP through the above-listed information transmission method. The first information is used to instruct the AP to determine the first channel. The first channel is a channel that does not interfere with the working frequency of the mobile data module. When the AP receives the first information carrying the first channel, the first channel can be directly allocated to the terminal. Finally, the AP sends the second information carrying the first channel to the terminal through the above-listed information transmission method, so that the CPU can control the Wi-Fi module to switch to the first channel.
[0106] In the embodiments of the present application, three methods of determining the first channel are introduced in sequence, namely, transmitting the working frequency of the mobile data module through Wi-Fi technology, and the AP randomly assigns the first channel; transmitting the working frequency of the mobile data module through near-field communication technology, and the AP randomly assigns the first channel; and the AP sends an unused channel, and the terminal receives the channel selected by the user and determines it as the first channel. The security of these three methods of determining the first channel increases in sequence, but the operation complexity and resource occupancy also increase in sequence. Therefore, the user can choose any one or more methods of determining the first channel for implementation according to actual conditions.
[0107] S410: Receive second information carrying a first channel sent by an AP, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0108] The CPU can receive the second information carrying the first channel sent by the AP through the above-listed information transmission methods, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information, or control the Wi-Fi module to switch to the first channel, so that the Wi-Fi module works at a certain frequency on the first channel. Since the first channel is a channel that does not interfere with the working frequency of the mobile data module, the Wi-Fi module working at any frequency on the first channel will not cause interference between the working frequencies of the mobile data module and the Wi-Fi module, effectively ensuring the working efficiency between the mobile data module and the Wi-Fi module.
[0109] In the embodiment of the present application, first information is sent to the AP, the first information is used to instruct the AP to determine the first channel, and the first channel is a channel that does not interfere with the working frequency of the mobile data module; then the second information carrying the first channel sent by the AP is received, and the Wi-Fi module is controlled to establish a Wi-Fi connection with the AP on the first channel based on the second information. Since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel, and the Wi-Fi module will not interfere with the mobile data module when working on the first channel, which greatly improves the utilization rate of the Wi-Fi channel.
[0110] See also Figure 7 , Figure 7 A flowchart of a Wi-Fi connection method provided in another embodiment of the present application.
[0111] like Figure 7 As shown, in an embodiment of the present application, a Wi-Fi connection method is applied to a wireless access point (Wireless Access Point, AP), and the method includes:
[0112] S701. Receive first information sent by a terminal, and allocate a first channel from unused channels that does not interfere with a working frequency of a mobile data module in the terminal according to the first information.
[0113] The Wi-Fi connection method provided in the embodiment of the present application is applied to the AP, and corresponds to the transmission method based on Wi-Fi in the above-mentioned embodiment, or the transmission method based on near field communication to transmit the first information, that is, the first information first received by the AP, wherein the first information carries the working frequency of the mobile data module, and at this time, a first channel in the unused channel that does not interfere with the working frequency of the mobile data module in the terminal is allocated according to the first information, including: obtaining the working frequency of the mobile data module in the terminal carried in the first information; determining the channel in the unused channel that does not interfere with the working frequency of the mobile data module in the terminal, and allocating any one of the non-interfering channels as the first channel.
[0114] Specifically, when the AP receives the first information sent by the terminal carrying the working frequency of the mobile data module, it can determine the channel that does not interfere with the working frequency of the mobile data module from the unused channels based on the working frequency of the mobile data module and the unused channels in the AP, where the unused channels in the AP may refer to channels in the AP that are not allocated to other terminals, that is, channels that are in an idle state.
[0115] Optionally, the method for determining a channel that does not interfere with the operating frequency of the mobile data module from unused channels may be, obtaining the center frequency corresponding to each unused channel, determining one or more unused channels whose difference between the center frequency and the operating frequency of the mobile data module is greater than a second preset difference as channels that do not interfere with the operating frequency of the mobile data module among the unused channels, and determining any one of the channels that do not interfere with the operating frequency of the mobile data module among the unused channels as the first channel, so that the first channel may be a channel randomly assigned by the AP from the channels that do not interfere with the operating frequency of the mobile data module.
[0116] In addition, an embodiment of the present application also includes a method corresponding to the above-mentioned embodiment, in which a first channel is determined according to a channel selected by a user, and then the first channel is allocated. Then, before receiving the first information sent by the terminal, it also includes: receiving the third information sent by the terminal, and sending the fourth information carrying an unused channel to the terminal based on the third information; at this time, a first channel in the unused channel that does not interfere with the working frequency of the mobile data module in the terminal is allocated according to the first information, including: obtaining the first channel carried in the first information, the first channel is a channel determined by the user for the first prompt information displayed by the terminal, and the first channel is a channel in the unused channels of the AP that does not interfere with the working frequency of the mobile data module in the terminal; allocating the first channel in the unused channel.
[0117] Regarding the process of the user determining the first channel, please refer to the detailed description in the above embodiment, which will not be repeated here.
[0118] S702: Send second information carrying the first channel to the terminal, where the second information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0119] Finally, the AP sends the second information carrying the first channel to the terminal, so that the CPU controls the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel, or controls the Wi-Fi module to switch to work on the first channel.
[0120] See also Figure 8 , Figure 8 A flowchart of a Wi-Fi connection method provided in another embodiment of the present application.
[0121] like Figure 8 As shown, in an embodiment of the present application, a Wi-Fi connection method is applied to a wireless access point (Wireless Access Point, AP), and the method includes:
[0122] S801. Obtain an operating frequency of a mobile data module in a terminal and an operating frequency of a Wi-Fi module after the terminal accesses an AP, and calculate a frequency difference between the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after the terminal accesses an AP.
[0123] There are multiple ways in which the AP obtains the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after it is connected to the AP, for example, it may be through the Wi-Fi technology or near field communication technology in the above method steps, or it may be through a Bluetooth communication link or a microwave communication link. After obtaining the working frequency of the mobile data module and the working frequency of the Wi-Fi module after it is connected to the AP, the AP may calculate the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after it is connected to the AP, so as to judge whether there is interference between the mobile data module and the Wi-Fi module according to the frequency difference.
[0124] S802: If the frequency difference is less than a preset difference, a first channel in the unused channels that does not interfere with the working frequency of the mobile data module is allocated.
[0125] If the frequency difference is less than the preset difference, it means that the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module are relatively close, and there may be frequency interference between the mobile data module and the Wi-Fi module.
[0126] Among them, allocating a first channel in the unused channels that does not interfere with the working frequency of the mobile data module may include: determining the channels in the unused channels that do not interfere with the working frequency of the mobile data module in the terminal, and allocating any one of the non-interfering channels as the first channel. Specifically, the unused channels in the AP may refer to channels in the AP that are not allocated to other terminals, that is, channels in an idle state. The AP may allocate a first channel in the unused channels that does not interfere with the working frequency of the mobile data module, among the channels that do not interfere with the working frequency of the mobile data module, wherein the first channel may be a channel randomly allocated by the AP among the channels that do not interfere with the working frequency of the mobile data module, that is, the first channel may be any one of the channels that do not interfere with the working frequency of the mobile data module; the first channel may also be a channel allocated by the AP after receiving a channel selected by the user among the channels that do not interfere with the working frequency of the mobile data module.
[0127] Optionally, allocating a first channel from an unused channel that does not interfere with the operating frequency of the mobile data module may also include: sending second information carrying the unused channel to the terminal, the second information being used to instruct the terminal to generate and display first prompt information based on the unused channel and the operating frequency of the mobile data module, the first prompt information including a channel from an unused channel that does not interfere with the operating frequency of the mobile data module; receiving and determining that a channel selected by a user in response to the first prompt information sent by the terminal is the first channel; and allocating a first channel from an unused channel that does not interfere with the operating frequency of the mobile data module.
[0128] Specifically, after the terminal receives the second information from the AP, the channel that does not interfere with the working frequency of the mobile data module can be determined from the unused channels according to the working frequency of the mobile data module and the unused channels in the AP. Optionally, the method for determining the channel that does not interfere with the working frequency of the mobile data module from the unused channels can be to obtain the center frequency corresponding to each unused channel, and determine one or more unused channels whose difference between the center frequency and the working frequency of the mobile data module is greater than a second preset difference as the channel that does not interfere with the working frequency of the mobile data module among the unused channels.
[0129] The terminal can also generate a first prompt message based on the channels that are determined to be unused and do not interfere with the working frequency of the mobile data module. The first prompt message is used to prompt the user to select from the above channels that do not interfere with the working frequency of the mobile data module. The terminal has multiple implementation methods for the prompt of the first prompt message, for example, it can be implemented through prompt methods such as image display, voice reminder, and light reminder. In addition, the first prompt message can also include the working frequency of the mobile data module, that is, the first prompt message can display the working frequency of the mobile data module, so that the user can select a suitable channel according to the working frequency of the mobile data module. For example, the user can choose to switch to a channel whose working frequency of the mobile data module is far away from the center frequency of the channel to ensure that after the Wi-Fi module switches the channel, the probability of interference between the mobile data module and the Wi-Fi module can be greatly reduced.
[0130] When the user observes the first prompt information displayed on the terminal, the user can select the channel displayed corresponding to the first prompt information as the channel to be switched, that is, the first channel, through a related operation mode. The terminal sends the information carrying the first channel to the AP, so that the AP receives and determines that the channel selected by the user for the first prompt information sent by the terminal is the first channel.
[0131] S803: Send first information carrying the first channel to the terminal, where the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0132] After determining the first channel, the AP may also generate first information carrying the first channel, and send the first information carrying the first channel to the terminal.
[0133] The CPU in the terminal can receive the first information carrying the first channel sent by the AP through the relevant information transmission method, and control the Wi-Fi module to switch to the first channel based on the first information, so that the Wi-Fi module works at a certain frequency on the first channel. Since the first channel is a channel that does not interfere with the working frequency of the mobile data module, the Wi-Fi module works at any frequency on the first channel without causing interference between the working frequencies of the mobile data module and the Wi-Fi module, effectively ensuring the working efficiency between the mobile data module and the Wi-Fi module.
[0134] When the base station and AP are under light load, the base station rarely changes the working frequency of the mobile data module, and the AP rarely changes the working frequency of the Wi-Fi module after it is connected to the AP. In this embodiment of the present application, it is only necessary to detect the working frequency of the mobile data module and the working frequency of the Wi-Fi module after it is connected to the AP when the mobile data module is first connected to the base station and the Wi-Fi module is first connected to the AP, and the subsequent channel switching can be completed, which improves the convenience of channel switching and reduces the power consumption caused by channel switching. Furthermore, since the original working channel of the Wi-Fi module becomes an unused channel after the Wi-Fi module switches from the original working channel to the first channel, the AP can allocate the original working channel of the Wi-Fi module to other terminals, which can effectively improve the utilization rate of the channel.
[0135] Another embodiment of the present application also provides a Wi-Fi connection method, which is applied to customer premise equipment (CPE), wherein CPE is a mobile signal access device that receives mobile signals from base stations and forwards them as wireless Wi-Fi signals. For example, CPE can convert high-speed 4G or 5G signals into Wi-Fi signals. The Wi-Fi connection method includes: obtaining the working frequency of the mobile data module in the CPE, and allocating a first channel in the unused channels in the Wi-Fi module that does not interfere with the working frequency of the mobile data module in the terminal. Sending first information carrying the first channel to the terminal, the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0136] Among them, allocating a first channel from an unused channel in the Wi-Fi module that does not interfere with the operating frequency of the mobile data module in the terminal may include: determining a channel from an unused channel in the Wi-Fi module that does not interfere with the operating frequency of the mobile data module in the terminal, and allocating any one of the non-interfering channels as the first channel.
[0137] Optionally, allocating a first channel from an unused channel in the Wi-Fi module that does not interfere with the working frequency of the mobile data module in the terminal may also include: receiving second information sent by the terminal, sending third information carrying the unused channel to the terminal based on the second information, receiving first information sent by the terminal, and acquiring a first channel carried in the first information, wherein the first channel is a channel determined by a user for a first prompt information displayed by the terminal, and the first channel is a channel from an unused channel of the AP that does not interfere with the working frequency of the mobile data module in the terminal; and allocating the first channel from the unused channel.
[0138] See also Fig. 9, Fig. 9 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application.
[0139] like Fig. 9 As shown, a Wi-Fi connection method in an embodiment of the present application is applied to a terminal, the terminal includes a mobile data module and a Wi-Fi module, and the Wi-Fi connection device 900 includes:
[0140] The channel allocation module 910 is used to send first information to a wireless access point (AP), where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with the working frequency of the mobile data module.
[0141] The connection module 920 is configured to receive second information carrying the first channel sent by the AP, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0142] In the embodiment of the present application, since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel. When the Wi-Fi module works on the first channel, it will not interfere with the mobile data module, thereby greatly improving the utilization rate of the Wi-Fi channel.
[0143] See also Fig.10 , Fig.10 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application.
[0144] like Fig.10 As shown, the Wi-Fi connection device is applied to access a wireless access point (Wireless Access Point, AP), and the Wi-Fi connection device 1000 includes:
[0145] The channel allocation module 1010 is configured to receive first information sent by a terminal, and allocate a first channel from unused channels that does not interfere with an operating frequency of a mobile data module in the terminal according to the first information.
[0146] The information sending module 1020 is used to send second information carrying the first channel to the terminal, where the second information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0147] See also Fig.11 , Fig.11 A schematic structural diagram of a Wi-Fi connection device provided in another embodiment of the present application.
[0148] like Fig.11As shown, the Wi-Fi connection device is applied to access a wireless access point (Wireless Access Point, AP), and the Wi-Fi connection device 1100 includes:
[0149] The difference calculation module 1110 is used to obtain the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after connecting to the AP, and calculate the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP;
[0150] The channel allocation module 1120 is configured to allocate a first channel from the unused channels that does not interfere with the working frequency of the mobile data module if the frequency difference is less than a preset difference;
[0151] The channel sending module 1130 is used to send first information carrying a first channel to the terminal, where the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0152] In the embodiment of the present application, since the AP can be allocated a first channel that does not interfere with the working frequency of the mobile data module, the terminal can establish a Wi-Fi connection with the AP on the first channel. When the Wi-Fi module works on the first channel, it will not interfere with the mobile data module, thereby greatly improving the utilization rate of the Wi-Fi channel.
[0153] Another embodiment of the present application also provides a Wi-Fi connection device, which is applied to a customer CPE, wherein the CPE is a mobile signal access device that receives a mobile signal from a base station and forwards it as a wireless Wi-Fi signal. For example, the CPE can convert a high-speed 4G or 5G signal into a Wi-Fi signal. The Wi-Fi connection device includes: a channel allocation module, which is used to obtain the working frequency of the mobile data module in the CPE, and allocate a first channel in the unused channel of the Wi-Fi module that does not interfere with the working frequency of the mobile data module in the terminal. A channel sending module is used to send first information carrying the first channel to the terminal, and the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel.
[0154] Among them, allocating a first channel from an unused channel in the Wi-Fi module that does not interfere with the operating frequency of the mobile data module in the terminal may include: determining a channel from an unused channel in the Wi-Fi module that does not interfere with the operating frequency of the mobile data module in the terminal, and allocating any one of the non-interfering channels as the first channel.
[0155] Optionally, allocating a first channel from an unused channel in the Wi-Fi module that does not interfere with the working frequency of the mobile data module in the terminal may also include: receiving second information sent by the terminal, sending third information carrying the unused channel to the terminal based on the second information, receiving first information sent by the terminal, and acquiring a first channel carried in the first information, wherein the first channel is a channel determined by a user for a first prompt information displayed by the terminal, and the first channel is a channel from an unused channel of the AP that does not interfere with the working frequency of the mobile data module in the terminal; and allocating the first channel from the unused channel.
[0156] An embodiment of the present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method of any item in the above embodiments.
[0157] An embodiment of the present application further provides a CPE, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of any method in the above embodiments.
[0158] An embodiment of the present application further provides a wireless access point (AP), including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of any method in the above embodiments.
[0159] See also Fig.12 , Fig.12 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.12 As shown, the terminal 1200 may include: at least one processor 1201 , at least one network interface 1204 , a user interface 1203 , a memory 1205 , and at least one communication bus 1202 .
[0160] The communication bus 1202 is used to realize the connection and communication between these components.
[0161] The user interface 1203 may include a display screen (Display) and a camera (Camera), and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
[0162] The network interface 1204 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0163] See also Fig.13 , Fig.13 Another schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.13As shown, the terminal 1200 also includes a mobile data module 1206 , a Wi-Fi module 1207 and a near field communication module 1208 .
[0164] The mobile data module 1206 is mainly used for transmitting and receiving mobile data signals, and includes a bandpass filter, PA / LNA, transceiver, and modem in sequence. When transmitting mobile data signals, the baseband signal is modulated, DA-converted, and filtered by a low-pass filter through the modem, and then up-converted by the frequency synthesizer in the transceiver, and finally amplified by the PA to push the signal to the antenna for transmission. When receiving mobile data signals, the signal is filtered out of the band through a bandpass filter, amplified by a low-noise amplifier (LNA), filtered by a bandpass filter, and then down-converted by the transceiver, and finally demodulated and AD-converted by the modem and sent to the CPU for processing.
[0165] The Wi-Fi module 1207 is mainly used for transmitting and receiving Wi-Fi signals, and includes a bandpass filter, a front-end module FEM, a transceiver, a PHY layer, and a MAC layer in sequence. When the Wi-Fi signal is transmitted, the MAC layer and the PHY layer perform operations such as data encapsulation into frames, encoding, modulation, and filtering, and then the transceiver performs up-conversion operations, and then the PA in the FEM (RF front-end module (FEM)) amplifies the signal, and finally passes through the bandpass filter to be transmitted from the transceiver antenna. When the Wi-Fi signal is received, the signal received by the transceiver antenna is filtered through a bandpass filter, the signal is amplified by the LNA in the FEM, and then filtered through a bandpass filter, and then down-converted by the transceiver, and finally demodulated and decoded by the PHY layer and the MAC layer.
[0166] The near field communication module 1208 is mainly used for near field communication with the AP.
[0167] Among them, the processor 1201 may include one or more processing cores. The processor 1201 uses various interfaces and lines to connect various parts within the entire terminal 1200, and executes various functions and processes data of the terminal 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1205, and calling data stored in the memory 1205. Optionally, the processor 1201 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1201 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1201, and it can be implemented separately through a chip.
[0168] Among them, the memory 1205 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1205 includes a non-transitory computer-readable storage medium. The memory 1205 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1205 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1205 may also be optionally at least one storage device located away from the aforementioned processor 1201. As Fig.12 As shown, the memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a Wi-Fi connection program.
[0169] exist Fig.12In the terminal 1200 shown, the user interface 1203 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1201 can be used to call the Wi-Fi connection program stored in the memory 1205, and specifically perform the following operations:
[0170] Sending first information to a wireless access point (Wireless Access Point, AP), the first information is used to instruct the AP to determine a first channel, where the first channel is a channel that does not interfere with the working frequency of the mobile data module; receiving second information carrying the first channel sent by the AP, and controlling the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
[0171] In one embodiment, before sending the first information to the AP, the Wi-Fi module is not connected to the AP, and the processor 1201 specifically performs the following steps when executing the sending of the first information to the AP: after receiving the Wi-Fi connection instruction issued by the user, send the first information to the AP.
[0172] In one embodiment, before sending the first information to the AP, the Wi-Fi module has been connected to the AP. When executing the sending of the first information to the AP, the processor 1201 specifically performs the following steps: obtaining the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP, and calculating the frequency difference between the working frequency of the mobile data module and the working frequency after the Wi-Fi module is connected to the AP; if the frequency difference is less than the preset difference, sending the first information to the AP.
[0173] In one embodiment, when executing the sending of the first information to the AP, the processor 1201 further specifically performs the following steps: controlling the Wi-Fi module to send the first information carrying the working frequency of the mobile data module to the AP.
[0174] In one embodiment, the terminal also includes a near field communication module, and the processor 1201, when executing the sending of the first information to the AP, also specifically performs the following steps: when the AP is detected through the near field communication module, controls the near field communication module to establish a connection with the AP; controls the near field communication module to send the first information carrying the working frequency of the mobile data module to the AP.
[0175] In one embodiment, when executing the sending of the first information to the AP, the processor 1201 also specifically performs the following steps: sending the third information to the AP, the third information being used to instruct the AP to send the fourth information carrying the unused channel to the terminal; generating and displaying the first prompt information based on the fourth information sent by the AP and the operating frequency of the mobile data module, the first prompt information including the channels in the unused channels that do not interfere with the operating frequency of the mobile data module; determining the channel selected by the user for the first prompt information as the first channel, and sending the first information carrying the first channel to the AP.
[0176] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0177] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0179] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0180] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0181] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0182] The above is a description of a Wi-Fi connection method, device, terminal, and wireless access point provided in the present application. For those skilled in the art, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A Wi-Fi connection method, applied to a terminal, wherein the terminal includes a mobile data module and a Wi-Fi module, characterized in that: The method comprises: Sending first information to a wireless access point (AP), where the first information is used to instruct the AP to determine a first channel, where the first channel is a channel determined by the AP from channels not allocated to other terminals that does not interfere with the working frequency of the mobile data module, and the first information carries the working frequency of the mobile data module; receiving second information carrying the first channel sent by the AP, and controlling the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
2. The method according to claim 1, characterized in that Before sending the first information to the AP, the Wi-Fi module is not connected to the AP, and the sending the first information to the AP includes: After receiving the Wi-Fi connection instruction sent by the user, the first information is sent to the AP.
3. The method according to claim 1, characterized in that Before sending the first information to the AP, the Wi-Fi module has been connected to the AP, and the sending the first information to the AP includes: Acquire the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP, and calculate the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP; If the frequency difference is less than the preset difference, the first information is sent to the AP.
4. The method according to claim 3, characterized in that The sending of the first information to the AP further includes: The Wi-Fi module is controlled to send first information carrying the working frequency of the mobile data module to the AP.
5. The method according to any one of claims 2 to 3, characterized in that: The terminal further includes a near field communication module, and the sending of the first information to the AP further includes: When the AP is detected by the near field communication module, controlling the near field communication module to establish a connection with the AP; The near field communication module is controlled to send first information carrying the working frequency of the mobile data module to the AP.
6. The method according to any one of claims 2 to 3, characterized in that: The sending of the first information to the AP further includes: Sending third information to the AP, where the third information is used to instruct the AP to send fourth information carrying an unused channel to the terminal; generating and displaying first prompt information according to the fourth information sent by the AP and the working frequency of the mobile data module, wherein the first prompt information includes a channel in the unused channel that does not interfere with the working frequency of the mobile data module; The channel selected by the user in response to the first prompt information is determined as a first channel, and first information carrying the first channel is sent to the AP.
7. A Wi-Fi connection method, applied to access a wireless access point (Wireless Access Point, AP), characterized in that: The method comprises: receiving first information sent by a terminal, and allocating a first channel in an unused channel that does not interfere with an operating frequency of a mobile data module in the terminal according to the first information, wherein the first information carries the operating frequency of the mobile data module; wherein the unused channel is a channel that is not allocated to other terminals; Sending second information carrying the first channel to the terminal, where the second information is used to instruct the terminal to control a Wi-Fi module in the terminal to establish a Wi-Fi connection with the AP on the first channel.
8. The method according to claim 7, characterized in that The allocating, according to the first information, a first channel in the unused channels that does not interfere with the working frequency of the mobile data module in the terminal includes: Acquire the operating frequency of the mobile data module in the terminal carried in the first information; Determine a channel in the unused channels that does not interfere with the working frequency of the mobile data module in the terminal, and allocate any one of the non-interfering channels as the first channel.
9. The method according to claim 7, characterized in that: Before the receiving terminal sends the first information, the method further includes: receiving third information sent by the terminal, and sending fourth information carrying an unused channel to the terminal based on the third information; The allocating, according to the first information, a first channel in the unused channels that does not interfere with the working frequency of the mobile data module in the terminal includes: Acquire a first channel carried in the first information, where the first channel is a channel determined by a user for the first prompt information displayed on the terminal, and the first channel is an unused channel of the AP that does not interfere with the working frequency of the mobile data module in the terminal; A first channel is allocated from among the unused channels.
10. A Wi-Fi connection method, applied to access a wireless access point (Wireless Access Point, AP), characterized in that: The method comprises: Acquire the operating frequency of the mobile data module in the terminal and the operating frequency of the Wi-Fi module after connecting to the AP, and calculate the frequency difference between the operating frequency of the mobile data module and the operating frequency of the Wi-Fi module after connecting to the AP; If the frequency difference is less than a preset difference, a first channel in an unused channel that does not interfere with the working frequency of the mobile data module is allocated, and the unused channel is a channel that is not allocated to other terminals; Sending first information carrying the first channel to the terminal, where the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel; The step of acquiring the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after the terminal accesses the AP comprises: acquiring the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after the terminal accesses the AP through near field communication technology.
11. The method according to claim 10, characterized in that The allocating a first channel from the unused channels that does not interfere with the working frequency of the mobile data module includes: Determine a channel in the unused channels that does not interfere with the working frequency of the mobile data module in the terminal, and allocate any one of the non-interfering channels as the first channel.
12. The method according to claim 10, characterized in that The allocating a first channel from the unused channels that does not interfere with the working frequency of the mobile data module includes: Sending second information carrying an unused channel to the terminal, the second information being used to instruct the terminal to generate and display first prompt information according to the unused channel and the operating frequency of the mobile data module, the first prompt information including a channel in the unused channel that does not interfere with the operating frequency of the mobile data module; receiving and determining that a channel selected by a user in response to the first prompt information sent by the terminal is a first channel; A first channel among the unused channels which does not interfere with the working frequency of the mobile data module is allocated.
13. A Wi-Fi connection device, applied to a terminal, the terminal comprising a mobile data module and a Wi-Fi module, characterized in that: The device comprises: a channel allocation module, configured to send first information to a wireless access point (Wireless Access Point, AP), wherein the first information is used to instruct the AP to determine a first channel, wherein the first channel is a channel determined by the AP from channels not allocated to other terminals and does not interfere with the working frequency of the mobile data module, and the first information carries the working frequency of the mobile data module; A connection module is used to receive second information carrying the first channel sent by the AP, and control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel based on the second information.
14. A Wi-Fi connection device, used for accessing a wireless access point (Wireless Access Point, AP), characterized in that: The device comprises: A channel allocation module, configured to receive first information sent by a terminal, and allocate a first channel in an unused channel that does not interfere with an operating frequency of a mobile data module in the terminal according to the first information, wherein the first information carries the operating frequency of the mobile data module; wherein the unused channel is a channel that is not allocated to other terminals; The information sending module is used to send second information carrying the first channel to the terminal, where the second information is used to instruct the terminal to control a Wi-Fi module in the terminal to establish a Wi-Fi connection with the AP on the first channel.
15. A Wi-Fi connection device, used for accessing a wireless access point (Wireless Access Point, AP), characterized in that: The device comprises: a difference calculation module, used to obtain the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after connecting to the AP, and calculate the frequency difference between the working frequency of the mobile data module and the working frequency of the Wi-Fi module after connecting to the AP; a channel allocation module, configured to allocate a first channel in an unused channel that does not interfere with the working frequency of the mobile data module if the frequency difference is less than a preset difference, wherein the unused channel is a channel that is not allocated to other terminals; a channel sending module, configured to send first information carrying the first channel to the terminal, wherein the first information is used to instruct the terminal to control the Wi-Fi module to establish a Wi-Fi connection with the AP on the first channel; The difference calculation module is specifically used to obtain the working frequency of the mobile data module in the terminal and the working frequency of the Wi-Fi module after connecting to the AP through the near field communication technology.
16. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 12.
17. A terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the program.
18. A wireless access point (AP), characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method described in any one of claims 7 to 9 are implemented, or when the processor executes the program, the steps of the method described in any one of claims 10 to 12 are implemented.
Citation Information
Patent Citations
Wireless network connection control method and device, storage medium and terminal equipment
CN108337735A
Wi-Fi access method and device
CN108616961A