A WIFI communication method, device and network equipment

By reducing the transmission power of the 2.4G WIFI network, ensuring that the signal strength of the 5G WIFI network is higher than that of the 2.4G WIFI network, the problem of terminal devices being preferred to access the 2.4G WIFI network is solved, and the user experience and communication stability are improved.

CN117135738BActive Publication Date: 2024-11-12HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310488054.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-11-12
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

In the existing WIFI network, the signal of the 5G WIFI network is prone to attenuation, resulting in terminal devices being preferred to access the 2.4G WIFI network, which has a poor user experience.

Method used

By obtaining the signal strength information of the terminal device, the transmission power of the 2.4G WIFI network is reduced, and the signal strength of the 5G WIFI network in more coverage areas is higher than that of the 2.4G WIFI network, thus giving priority to accessing the 5G WIFI network.

Benefits of technology

It improves user experience, enhances the coverage of the 5G WIFI network, ensures that terminal devices are preferred to access high-signal 5G WIFI networks, and improves communication stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117135738B_ABST
    Figure CN117135738B_ABST
Patent Text Reader

Abstract

The present application relates to the field of WIFI, and provides a method, device and network device for WIFI communication. In the method, the network device obtains the signal strength of M terminal devices connected to the network device through a 2.4G WIFI network in a first time period, and when at least part of the signal strength of the signal strength of the M terminal devices in the first time period is greater than a first strength threshold, the transmission power of the 2.4G WIFI network is reduced from a first transmission power to a second transmission power. In this way, while avoiding a greater impact on the 2.4G WIFI network as much as possible, the signal strength of the 5G WIFI network in as many coverage areas as possible will be greater than the signal strength of the 2.4G WIFI network. Then, in the coverage area where the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device will preferentially scan the 5G WIFI network, thereby accessing the 5G WIFI network to improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the WIFI field, and more specifically, to a WIFI communication method, apparatus and network equipment in the WIFI field. Background Art

[0002] At present, network devices generally support 5G wireless-fidelity (WIFI) networks and 2.4G WIFI networks. Compared with 2.4G WIFI networks, 5G WIFI networks are more susceptible to attenuation and weakening. Therefore, in many cases, the signal of the 2.4G WIFI network at the same location is stronger. When the terminal device accesses the WIFI network, it generally gives priority to accessing the 2.4G WIFI network with good signal strength instead of the 5G WIFI network, resulting in a poor user experience. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, and network device for WIFI communication, which can enable terminal devices to access the 5G WIFI network preferentially as much as possible to improve user experience.

[0004] In a first aspect, a WIFI communication method is provided, which is applied to a network device, wherein the network device supports a 2.4G WIFI network and a 5G WIFI network, and the method includes:

[0005] Acquire first signal information of M terminal devices connected to the network device through the 2.4G WIFI network in a first time period, where the first signal information is used to indicate signal strengths of the M terminal devices in the first time period, where M is an integer greater than or equal to 1;

[0006] When at least part of the signal strengths of the M terminal devices in the first time period are greater than a first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0007] In the method for WIFI communication provided in the embodiment of the present application, the network device obtains the signal strength of M terminal devices connected to the network device through the 2.4G WIFI network in the first time period. When at least part of the signal strength of the signal strength of the M terminal devices in the first time period is greater than the first strength threshold, it means that the signal strength of the current 2.4G WIFI network is better as a whole. Therefore, the transmission power of the 2.4G WIFI network is reduced, and the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power. In this way, while avoiding a greater impact on the 2.4G WIFI network as much as possible, the signal strength of the 5G WIFI network in the coverage area will be greater than the signal strength of the 2.4G WIFI network. Then, in the coverage area where the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device will preferentially scan the 5G WIFI network, thereby accessing the 5G WIFI network to improve the user experience.

[0008] In any possible implementation manner of the first aspect, the at least partial signal strength is all signal strengths of the signal strengths of the M terminal devices in the first time period.

[0009] The WIFI communication method provided in the embodiment of the present application can minimize the impact of reducing the transmission power of the 2.4G WIFI network on the 2.4G service, and improve the overall stability of communication by determining that all signal strengths of the signal strengths of the M terminal devices in the first time period are greater than the first strength threshold and reducing the transmission power of the 2.4G WIFI network.

[0010] In any possible implementation manner of the first aspect, reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power includes:

[0011] Determine the signal strength with the worst signal strength among the at least part of the signal strengths as the target signal strength;

[0012] Determining an adjustment range of the transmission power of the 2.4G WIFI network according to a strength difference between the target signal strength and a second strength threshold, wherein the second strength threshold is less than the first strength threshold;

[0013] Within the adjustment range, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0014] In the WIFI communication method provided in the embodiment of the present application, since the target signal strength is the signal strength with the worst signal strength among at least part of the signal strengths of the M terminal devices in the first time period and the second strength threshold is the minimum value of the signal strength for characterizing normal communication, the adjustment range of the transmission power of the 2.4G WIFI network is determined by the strength difference between the target signal strength and the second strength threshold, and the adjustment range can represent the maximum value to which the transmission power can be adjusted. Therefore, the transmission power of the 2.4G WIFI network is reduced within the adjustment range, and the power change value of the transmission power is not too large. The signal strength of the adjusted 2.4G WIFI network is not very poor but within the range of normal communication, and the impact on the 2.4G WIFI network is not great. At the same time, the signal strength of the 5G WIFI network in more coverage areas can be made greater than the signal strength of the 2.4G WIFI network as much as possible, so that the terminal device can preferentially access the 5G WIFI network to improve the user experience. In short, reducing the transmission power of the 2.4G WIFI network within the adjustment range can better balance the normal communication of the 2.4G WIFI network and the priority access of the 5G WIFI network.

[0015] In any possible implementation manner of the first aspect, a power change value between the first transmit power and the second transmit power is smaller than the adjustment amplitude.

[0016] In the WIFI communication method provided in the embodiment of the present application, when the transmit power of the 2.4G WIFI network is reduced within the adjustment range, the power change value between the first transmit power and the second transmit power is less than the adjustment range, that is, only a part of the adjustment range is reduced, and a part of the margin of the adjustment range is reserved. In this way, the dynamic changes of the network caused by various anomalies can be better coped with, and the signal strength of the adjusted 2.4G WIFI network will not be very poor, thereby further reducing the impact on the 2.4G WIFI network.

[0017] In any possible implementation manner of the first aspect, after reducing the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, the method further includes:

[0018] Acquire second signal information of N terminal devices connected to the network device through the 2.4G WIFI network during a second time period, where the second signal information is used to indicate signal strengths of the N terminal devices during the second time period;

[0019] Determining whether to continue reducing the transmission power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold;

[0020] The duration of the second time period is shorter than the duration of the first time period, and N is an integer greater than or equal to 1.

[0021] In the WIFI communication method provided by the embodiment of the present application, the network device can obtain the signal strength of the terminal device connected to the network device at regular intervals to determine whether to reduce the signal strength of the 2.4G WIFI network according to the signal strength. After reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power according to the signal strength of the M terminal devices in the first time period, it is determined whether to continue to reduce the signal strength of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period after the first time period. By setting the duration of the second time period to be shorter than the duration of the first time period, the signal strength of the 2.4G WIFI network after reducing the transmission power of the 2.4G WIFI network can be detected more quickly, so that the network device can make timely adjustments.

[0022] In any possible implementation manner of the first aspect, the acquiring first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within a first time period includes:

[0023] During the first time period, periodically collecting signal strength of a terminal device connected to the network device via the 2.4G WIFI network according to a first duration to obtain the first signal information; and

[0024] The obtaining of second signal information of N terminal devices connected to the network device via the 2.4G WIFI network during a second time period includes:

[0025] During the second time period, periodically collecting the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the second duration to obtain the second signal information;

[0026] The second duration is shorter than the first duration.

[0027] The WIFI communication method provided in the embodiment of the present application sets the second duration to be shorter in order to avoid too few signal strengths obtained in the second time period of shorter duration, that is, the second time period is shorter than the first time period. In this way, a certain number of signal strengths can be obtained in the second time period of shorter duration, which is conducive to quickly detecting the signal strength of the reduced 2.4G WIFI network, so that the network device can make timely adjustments.

[0028] In any possible implementation manner of the first aspect, determining whether to continue to reduce the transmit power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold includes:

[0029] When at least part of the signal strengths of the N terminal devices in the second time period are less than the first strength threshold, the transmission power of the 2.4G WIFI network is increased from the second transmission power to a third transmission power, and the third transmission power is less than the first transmission power.

[0030] In the WIFI communication method provided by the embodiment of the present application, the network device can obtain the signal strength of the terminal device connected to the network device at intervals to determine whether to reduce the signal strength of the 2.4G WIFI network according to the signal strength of the M terminal devices in the first time period, and obtain the signal strength of the N terminal devices in the second time period after the first time period. When at least part of the signal strengths of the N terminal devices are less than the first strength threshold, it indicates that the signal strength of the 2.4G WIFI network in the second time period is poor. By increasing the transmission power of the 2.4G WIFI network, that is, increasing the transmission power of the 2.4G WIFI network from the second transmission power to the third transmission power, the third transmission power is less than the first transmission power. In this way, the network device can dynamically adjust the transmission power of the 2.4G WIFI network in real time according to the signal strength, so as to maintain the stability of the 2.4G WIFI network for as long as possible. At the same time, the transmission power of the 2.4G WIFI network can be reduced to a certain extent, so that the terminal device can be connected to the 5G WIFI network as much as possible to improve the user experience.

[0031] In any possible implementation manner of the first aspect, the M terminal devices include devices stably connected to the network device and devices unstably connected to the network device.

[0032] In any possible implementation manner of the first aspect, after reducing the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, the method further includes:

[0033] Receive a 5G detection request of the 5G WIFI network and a 2.4G detection request of the 2.4G WIFI network sent by a first terminal device;

[0034] A 5G detection response is sent to the first terminal device in response to the 5G detection request to connect the first terminal device to the 5G WIFI network.

[0035] In a second aspect, a WIFI communication method is provided, which is applied to a network device, wherein the network device supports a 5G WIFI network and a 2.4G WIFI network, and the method includes:

[0036] When a first 2.4G detection request of the 2.4G WIFI network sent by the terminal device is received and a first 5G detection request of the 5G WIFI network sent by the terminal device is not received, starting a timer;

[0037] If the first 5G detection request is received within the duration of the timer, a first 5G detection response for the first 5G detection request is sent to the terminal device to connect the terminal device to the 5G WIFI network.

[0038] The WIFI communication method provided in the embodiment of the present application is compared with the solution in the prior art that the network device responds to the first 2.4G detection request after receiving the first 2.4G detection request to connect the terminal device to the 2.4G WIFI network. The embodiment of the present application configures a timer for waiting for the first 5G detection request in the network device. After receiving the first 2.4G detection request sent by the terminal device, the network device does not respond to the first 2.4G detection request for the time being, but starts the timer and waits for the first 5G detection request within the timer duration. If the first 5G detection request is received within the timer duration, the detection request of the 5G WIFI network is responded. In this way, the 5G WIFI network can be accessed preferentially, thereby improving the user experience.

[0039] In any possible implementation manner of the second aspect, the method further includes:

[0040] If the first 5G detection request is not received within the duration of the timer, a first 2.4G detection response for the first 2.4G detection request is sent to the terminal device to connect the terminal device to the 2.4G WIFI network.

[0041] In the WIFI communication method provided in the embodiment of the present application, after receiving the first 2.4G detection request sent by the terminal device, the network device does not respond to the first 2.4G detection request temporarily, but starts a timer to wait for the first 5G detection request within the timer duration. If the first 5G detection request is not received within the timer duration, the first 2.4G detection response is sent to the terminal device. In this way, when it is not conducive to or impossible to access the 5G WIFI network in the short term, the 2.4G WIFI network is accessed to prioritize the terminal device's access to the WIFI network without affecting the user's Internet access needs.

[0042] In any possible implementation manner of the second aspect, the terminal device does not support the 5G WIFI network; or,

[0043] The terminal device supports the 5G WIFI network, and before the terminal device sends the first 2.4G detection request to the network device, the terminal device and the network device are connected through the 2.4G WIFI network communication.

[0044] In any possible implementation of the second aspect, when the first 5G detection request sent by the terminal device is received and the first 2.4G detection request sent by the terminal device is not received, the timer is not started, and the first 5G detection response is sent to the terminal device to connect the terminal device to the 5G WIFI network.

[0045] In any possible implementation manner of the second aspect, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a unicast manner.

[0046] In any possible implementation manner of the second aspect, before starting the timer, the method further includes:

[0047] The 2.4G beacon frame of the 2.4G WIFI network and the 5G beacon frame of the 5G WIFI network are sent to the terminal device.

[0048] In any possible implementation manner of the second aspect, the first 2.4G probe request and the first 5G probe request are sent by the terminal device in a broadcast manner; and after sending a first 5G probe response to the first 5G probe request to the terminal device, the method further includes:

[0049] Receiving a second 5G detection request sent by the terminal device in a unicast manner;

[0050] Send a second 5G detection response to the second 5G detection request to the terminal device to connect the terminal device to the 5G WIFI network.

[0051] In any possible implementation manner of the second aspect, a duration of the timer is less than or equal to 2 seconds.

[0052] In a third aspect, a WIFI communication method is provided, which is applied to a terminal device, wherein the terminal device supports a 5G WIFI network and a 2.4G WIFI network, and the method includes:

[0053] Sending a first 2.4G detection request of the 2.4G WIFI network and a first 5G detection request of the 5G WIFI network to a network device;

[0054] Receiving a first 5G detection response sent by the network device to the first 5G detection request;

[0055] Access the 5G WIFI network.

[0056] In any possible implementation manner of the third aspect, before sending the first 2.4G detection request of the 2.4G WIFI network and the first 5G detection request of the 5G WIFI network to the network device, the method further includes:

[0057] Receive the 2.4G beacon frame of the 2.4G WIFI network and the 5G beacon frame of the 5G WIFI network sent by the network device.

[0058] In a fourth aspect, a network device is provided, wherein the network device is used to execute the method provided in the first aspect or the second aspect. Specifically, the network device may include a module for executing any possible implementation of the first aspect or the second aspect.

[0059] In a fifth aspect, a terminal device is provided, wherein the terminal device is used to execute the method provided in the third aspect. Specifically, the terminal device may include a module for executing any possible implementation of the third aspect.

[0060] In a sixth aspect, a network device is provided, comprising a processor. The processor is coupled to a memory and can be used to execute instructions in the memory to implement the method in any possible implementation of the first aspect or the second aspect. Optionally, the network device also includes a memory. Optionally, the device also includes a communication interface, and the processor is coupled to the communication interface.

[0061] In a seventh aspect, a terminal device is provided, comprising a processor. The processor is coupled to a memory and can be used to execute instructions in the memory to implement the method in any possible implementation of the third aspect. Optionally, the terminal device also includes a memory. Optionally, the device also includes a communication interface, and the processor is coupled to the communication interface.

[0062] In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a device, the device implements the method in any possible implementation manner of the first aspect, the second aspect or the third aspect mentioned above.

[0063] In a ninth aspect, a computer program product comprising instructions is provided, wherein when the instructions are executed by a computer, the device implements the method in any possible implementation manner of the first aspect, the second aspect or the third aspect.

[0064] In the tenth aspect, a chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method in any possible implementation of the first aspect, the second aspect or the third aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a schematic structural diagram of a wireless communication system provided in an embodiment of the present application.

[0066] Figure 2 It is a schematic flowchart of a method for a terminal device to access a WIFI network provided in an embodiment of the present application.

[0067] Figure 3a It is an exemplary flowchart of a method for a terminal device to access a WIFI network when both the network device and the terminal device support a 2.4G WIFI network and a 5G WIFI network, provided in an embodiment of the present application.

[0068] Figure 3b It is another exemplary flowchart of a method for a terminal device to access a WIFI network when both the network device and the terminal device support a 2.4G WIFI network and a 5G WIFI network, provided in an embodiment of the present application.

[0069] Figure 4 It is a schematic flow chart of the WIFI communication method provided in an embodiment of the present application.

[0070] Figure 5 It is a schematic diagram of the state changes within the coverage area of ​​the network device before and after reducing the transmission power of the 2.G WIFI network provided in an embodiment of the present application.

[0071] Figure 6a It is a schematic flowchart of the process of a terminal device accessing a WIFI network after reducing the transmission power of a 2.4G WIFI network provided in an embodiment of the present application.

[0072] Figure 6b This is another schematic flowchart of a process in which a terminal device accesses a WIFI network after reducing the transmission power of a 2.4G WIFI network, provided in an embodiment of the present application.

[0073] Figure 7It is a schematic flow chart of the WIFI communication method provided in an embodiment of the present application.

[0074] Figure 8a It is a schematic interaction diagram of the WIFI communication method provided in an embodiment of the present application.

[0075] Figure 8b It is another schematic interaction diagram of the WIFI communication method provided in an embodiment of the present application.

[0076] Fig. 9 This is an exemplary block diagram of a WIFI communication device provided in an embodiment of the present application.

[0077] Fig.10 A schematic structural diagram of a WIFI communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0079] Figure 1 It is a schematic architecture diagram of a wireless communication system provided in an embodiment of the present application.

[0080] It should be understood that Figure 1 The wireless communication system shown is only for illustrative purposes and should not be construed as limiting the embodiments of the present application. For example, the wireless communication system may further include more or fewer network devices and terminal devices.

[0081] refer to Figure 1 The wireless communication system includes a network device 110 and at least one terminal device. For example, the at least one terminal device includes a terminal device 121 (for example, a mobile phone), a terminal device 122 (for example, a laptop computer) and a terminal device 123 (for example, a tablet computer). The network device 110 is connected to the at least one terminal device via a WIFI network.

[0082] The network device and the terminal device can support a WIFI network of at least one frequency band.

[0083] For the network device, the network device can support a WIFI network of one frequency band, which can be a 2.4G WIFI network; the network device can also support WIFI networks of multiple frequency bands, for example, the WIFI networks of multiple frequency bands include at least a 2.4G WIFI network and a 5G WIFI network, and can also include WIFI networks of other frequency bands.

[0084] For the terminal device, the terminal device can support a WIFI network of one frequency band, which can be a 2.4G WIFI network; the terminal device can also support WIFI networks of multiple frequency bands, for example, the WIFI networks of multiple frequency bands include at least 2.4G WIFI networks and 5G WIFI networks, and can also include WIFI networks of other frequency bands.

[0085] It should be understood that 2.4G WIFI network means that the working frequency band of the WIFI network is 2.4Ghz, and the bandwidth range is approximately 2.4Ghz to 2.48Ghz. 5G WIFI network means that the working frequency band of the WIFI network is 5Ghz, and the bandwidth range is approximately 4.9Ghz to 5.9Ghz.

[0086] When a network device is connected to multiple terminal devices, the network device and the multiple terminal devices can be connected through a WIFI network of the same frequency band or through a WIFI network of different frequency bands. Figure 1 For example, three terminal devices are connected to network device 110, and are connected via a 2.4G WIFI network. For another example, network device 110 is connected to terminal devices 121 and 122 via a 5G WIFI network, and network device 110 is connected to terminal device 123 via a 2.4G WIFI network.

[0087] The network device of the embodiment of the present application can be called a wireless access point (AP), which is used to provide a WIFI network for terminal devices.

[0088] Wireless AP, also known as wireless access point, commonly known as "hotspot", is the most commonly used device when building a small wireless LAN. AP is equivalent to a bridge connecting wired network and wireless network. Its main function is to connect the clients of each wireless network together and then connect the wireless network to Ethernet. Currently, wireless AP can be divided into two categories: simple AP and extended AP.

[0089] Simple AP is only responsible for the access of wireless terminals, which is equivalent to a wireless switch, and only provides a wireless signal transmission function. The typical coverage distance of simple AP is tens of meters to hundreds of meters, and it can also be used for long-distance transmission. The farthest can reach about 30km at present. The main technology is IEEE802.11 series. Simple AP is mostly used in large companies. Large companies need a large number of wireless access nodes to achieve large-area network coverage. At the same time, all access terminals belong to the same network, which is also convenient for company network administrators to simply implement network control and management.

[0090] The extended AP is what we often call a wireless router. It can be understood as a wireless AP with routing function. It is mainly used for users to access the Internet and wireless coverage. It not only has all the functions of a simple wireless AP, but also includes the network address translation function, which can support the network connection sharing of LAN users. Through the routing function, Internet connection sharing in the home wireless network can be realized, and wireless shared access of asymmetric digital subscriber line (ADSL) and community broadband can be realized. In addition, wireless and wired connection terminals can be assigned to a subnet through a wireless router, so that various devices in the subnet can exchange data conveniently. Wireless routers are generally used in home and home office (small office, home office, SOHO) environment networks. In this case, the coverage area and users are generally not large, so only one wireless AP is needed.

[0091] The terminal device of the embodiment of the present application may be referred to as a station (STA). For example, the terminal device may be a mobile phone, a smart watch, a smart bracelet, a tablet computer, a desktop computer, a laptop computer, a wireless controller, a wireless speaker, a wireless desk lamp, or other devices that support WIFI networks.

[0092] Figure 2 It is a schematic flowchart of a method 200 for a terminal device to access a WIFI network provided in an embodiment of the present application.

[0093] Step S210 is a scanning process. Before the terminal device is connected to the network device, it first needs to discover the network device. Simply put, the scanning process is the process of searching for the WIFI network around the terminal device.

[0094] The scanning process can be performed in two scanning modes: active scanning and passive scanning. The active scanning includes steps S212 and S213, and the passive scanning includes steps S211, S212, and S213. The processes of passive scanning and active scanning are described in detail below.

[0095] 1. Passive scanning

[0096] In step S211 , network device A broadcasts a beacon frame.

[0097] Correspondingly, terminal device A monitors beacon frames and temporarily stores the received beacon frames to facilitate the subsequent retrieval of relevant data of the basic service set (BSS) that transmits the beacon frames. It should be understood that network device A broadcasts beacon frames on channels supported by network device A, and terminal device A continuously switches between the channels listed in the channel list to monitor beacon frames.

[0098] BSS is the coverage area of ​​an AP and is the basic service unit of a wireless network. It usually consists of an AP and at least one STA. Figure 1 As shown, a BBS can be formed by a network device (AP) and three terminal devices (STA).

[0099] The beacon frame includes the service set identifier (SSID) of the WIFI network supported by the network device A, the basic service set identifier (BSSID) of the WIFI network supported by the network device A, and other information for joining the BSS.

[0100] SSID can be understood as the identification or name of the wireless LAN. Usually, SSID is the WIFI name searched by the terminal device and displayed on the interface, such as airport, China_CMCC, office1, etc. BSSID can be understood as the media access control (MAC) address of the WIFI network, also known as the physical address, for example: 0025.9e45.240.

[0101] Exemplarily, other information for joining the BBS may include, for example, timestamp, supported rates of the wireless local area network, frequency hopping parameter set (PH parameter set), direct sequence parameter set (DS parameter set), contention-free parameter set (CF parameter set), power constraint, channel switch announcement, etc. It should be understood that the information for joining the BBS listed here is only for illustrative purposes, and may include more information. For specific content, please refer to the relevant technology and will not be repeated here.

[0102] In the implementation, terminal device A will receive beacon frames broadcast by multiple surrounding network devices including network device A. When the user turns on the wireless network of terminal device A, the network list will display the SSIDs of the multiple network devices.

[0103] In step S212, terminal device A sends a detection request.

[0104] Exemplarily, the detection request may include parameters such as the SSID of the WIFI network supported by the network device A, the BSSID of the WIFI network supported by the network device A, the supported rate of the wireless local area network, and the extended supported rate of the wireless local area network.

[0105] Exemplarily, in the implementation, the network list of terminal device A displays the SSIDs of WIFI supported by multiple network devices including network device A. The user wants to access the WIFI network supported by network device A and clicks on the connection option of the WIFI network supported by network device A. Terminal device A sends a detection request in response to the user's operation.

[0106] In step S213, network device A sends a probe response.

[0107] Among them, the detection response may include the SSID of the WIFI network supported by network device A, the BSSID of the WIFI network supported by network device A, and other information for joining the BSS. The other information for joining the BSS can refer to the relevant description of other information for joining the BBS carried in the beacon frame, which will not be repeated here.

[0108] After receiving the detection response, terminal device A can determine that terminal device A has successfully scanned the wireless LAN supported by network device A.

[0109] 2. Active Scanning

[0110] There are two active scanning modes: active scanning mode A and active scanning mode B. The following describes these two modes respectively.

[0111] Active scanning mode A

[0112] Active scanning mode A is applicable to the scenario where terminal device A and network device A are connected for the first time.

[0113] In the active scanning mode A, step S211 is not included, but steps S212 and S213 are included, and before step S212, the scanning process may further include the following steps: the terminal device A broadcasts a probe request A to search for available APs around, and the probe request A does not include a specific SSID and BSSID; all network devices including the network device A that receive the probe request A generally respond to the probe request A, that is, a probe response A for the probe request A is sent to the terminal device A, and the probe response A of each network device includes the SSID and BSSID of the WIFI network supported by the network device. For the network device A, the probe response A of the network device A includes the SSID and BSSID of the WIFI network supported by the network device A. Further, in step S212, the network list of the terminal device A displays the SSID of the WIFI supported by multiple network devices including the network device A, and the user clicks on the connection option of the WIFI network supported by the network device A. In response to the user's operation, the terminal device A sends a probe request to the network device A by unicast, and further, in step S213, the network device A sends a probe response to the terminal device A.

[0114] Active scanning mode B

[0115] Active scanning mode B is generally applicable to the scenario where the user manually enters the SSID on terminal device A.

[0116] In active scanning mode B, step S211 is not included, but steps S212 and S213 are included. In step S212, the user manually enters the SSID of the WIFI network supported by network device A on terminal device A, and terminal device A broadcasts a probe request, which includes the SSID but does not include the BSSID. In step S213, multiple network devices will receive the probe request, but since the probe request only includes the SSID of the WIFI network supported by network device A, only network device A will respond to the probe request, that is, network device A sends a probe response to the probe request to terminal device A, and the probe response includes the SSID and BSSID of the WIFI network supported by network device A.

[0117] Step S220 is an authentication process, which is used to authenticate that the devices to be connected are valid 802.11 devices. Currently, there are two authentication methods: open system authentication and shared key authentication.

[0118] In the open system authentication mode, illustratively, terminal device A sends an authentication request to network device A to request authentication of the identity of terminal device A, and network device A sends an authentication response to terminal device A to indicate that the authentication of terminal device A is successful.

[0119] In the shared key authentication method, exemplarily, terminal device A sends an authentication request to network device A to request authentication of the identity of terminal device A; network device A sends plaintext challenge information to terminal device A through a first authentication response; terminal device A encrypts the challenge information in plaintext form, and sends the encrypted challenge information to network device A through a second authentication response; network device A decrypts the encrypted challenge information in the second authentication response sent by terminal device A, and compares it with the plaintext challenge information. If the decrypted challenge information matches the plaintext challenge information, network device A sends a third authentication response to terminal device A to indicate that the authentication is successful. If the decrypted challenge information matches the plaintext challenge information, or network device A cannot decrypt the challenge information, the third authentication response sent by network device A is used to indicate that the authentication failed.

[0120] The authentication process described above is only for illustrative purposes. For a detailed description of the authentication process, please refer to the relevant description of the related technology and will not be repeated here.

[0121] Step S230 is an association process. During the association process, terminal device A sends an association request to network device A to request to join the BSS, and network device A sends an association response to terminal device A to indicate whether terminal device A is allowed or denied to join the BSS.

[0122] Exemplarily, the association request includes information such as the SSID of the wireless local area network supported by the network device A, the BSSID of the network device A, and the supported rate of the wireless local area network.

[0123] In the above process of accessing the WIFI network, if a network device (for example, network device A) supports WIFI networks of multiple frequency bands, different SSIDs and BSSIDs can be used to distinguish WIFI networks of different frequency bands. For example, network device A supports 2.4G WIFI network and 5G WIFI network, and the SSID and BSSID of the 2.4G WIFI network can be SSID1 and BSSID1 respectively, and the SSID and BSSID of the 5G WIFI network can be SSID2 and BSSID2 respectively.

[0124] In implementation, multiple virtual network devices can be virtualized from a physical network device. Each virtual network device can achieve the same function as the physical network device. Each virtualized network device can be called a virtual access point (VAP). Different VAPs can be configured with different SSIDs and BSSIDs. For scenarios where the same network device supports multiple frequency bands of WIFI networks, a physical network device can virtualize multiple VAPs. A frequency band of WIFI network corresponds to at least one VAP. For example, in a home environment, the main VAP used by family members and the guest VAP used by guests can be on the same frequency band of WIFI network, and the BSSIDs of the main VAP and the guest VAP are different.

[0125] Figure 3a It is an exemplary flowchart of a method 300 for a terminal device to access a WIFI network when both the network device and the terminal device support a 2.4G WIFI network and a 5G WIFI network, provided in an embodiment of the present application. Figure 3b It is another exemplary flowchart of the method 300 for a terminal device to access a WIFI network when both the network device and the terminal device support a 2.4G WIFI network and a 5G WIFI network, provided in an embodiment of the present application.

[0126] In method 300, network device A and terminal device A both support 2.4G WIFI network and 5G WIFI network. In most cases, terminal device A preferentially scans the 2.4G WIFI network and preferentially accesses the 2.4G WIFI network.

[0127] exist Figure 3a In the illustrated embodiment, the terminal device accesses the WIFI network through passive scanning.

[0128] In step S311a, network device A sends a beacon frame of a 2.4G WIFI network (referred to as 2.4G beacon frame), and in step S311b, network device A sends a beacon frame of a 5G WIFI network (referred to as 5G beacon frame). It should be understood that step S311a and step S311b can be performed simultaneously, or step S311a can be performed first and then step S311b, or step S311b can be performed first and then step S311a. However, even if step S311 and step S311b are performed successively, the time interval between the two is very short.

[0129] After receiving the 2.4G beacon frame and the 5G beacon frame, the terminal device A sends a detection request according to the signal strength, that is, sends a detection request for the WIFI network with good signal strength. In step S312a, since the signal strength of the 2.4G WIFI network is greater than the signal strength of the 5G WIFI network, the terminal device A preferentially sends the 2.4G detection request.

[0130] For network device A, the 2.4G detection request is received first. Therefore, in step S313, network device A sends a 2.4G detection response to terminal device A first. At this time, it means that terminal device A scans the 2.4G WIFI network first, and then accesses the 2.4G WIFI network through steps S320 and S330.

[0131] Optionally, in order to avoid the situation where network device A is unable to respond to the 2.4G detection request due to a network accident, in step S312b, terminal device A can also send a 5G detection request after sending the 2.4G detection request, so that it can still respond to the 5G detection request after network device A is unable to respond to the 2.4G detection request, thereby ensuring that terminal device A is connected to the WIFI network as much as possible.

[0132] In one example, if network device A has already sent a 2.4G probe response normally, it may not respond to the 5G probe response after receiving the 5G probe request. In another example, if network device A has already sent a 2.4G probe response normally, it may also respond to the 5G probe response after receiving the 5G probe request. If terminal device A receives a 2.4G probe response and subsequently receives a 5G probe response, it may ignore the subsequently received 5G probe request.

[0133] exist Figure 3b In the embodiment shown, the terminal device accesses the WIFI network through an active scanning mode. It should be understood that the active scanning mode may be the active scanning mode A or the active scanning mode B mentioned above.

[0134] In step S314a and step S315a, terminal device A sends a 2.4G detection request and a 5G detection request respectively.

[0135] In active scanning mode A, the 2.4G detection request and the 5G detection request are both detection requests sent by the terminal device to the network device via unicast. In active scanning mode B, the 2.4G detection request and the 5G detection request are both detection requests sent by the terminal device to the network device via broadcast. For specific descriptions, please refer to the relevant descriptions above and will not be repeated here.

[0136] After receiving the 2.4G detection request and the 5G detection request, the network device A sends a detection response according to the signal strength, that is, sends a detection response of the WIFI network with good signal strength. In step S315, when the signal strength of the 2.4G WIFI network is greater than the signal strength of the 5G WIFI network, the network device A sends a 2.4G detection response, which means that the terminal device A scans the 2.4G WIFI network first, and then accesses the 2.4G WIFI network through steps S320 and S330.

[0137] In summary, it can be seen that, in general, terminal devices will give priority to accessing 2.4G WIFI networks with good signal strength, rather than 5G WIFI networks. However, the theoretical negotiation rate of 2.4G WIFI networks is low, and the interference is serious, so the actual available rate of 2.4G WIFI networks is very low, and the user experience is poor. For 5G WIFI networks, even when the signal strength of the 5G WIFI network is extremely weak or even about to be disconnected, the rate of the 5G WIFI network is generally greater than the rate of the 2.4G WIFI network at the same location. Therefore, long-term use of 2.4G WIFI networks for communication leads to a poor user experience.

[0138] Based on this, the embodiments of the present application provide a method, apparatus and network device for WIFI communication. By executing relevant methods, the network device can prioritize terminal devices to access the 5G WIFI network as much as possible to improve user experience.

[0139] In the embodiments of the present application, technical solutions are proposed mainly from two aspects to achieve the above objectives.

[0140] In the first aspect, the network device obtains the signal strength of all terminal devices connected to the network device via the 2.4G WIFI network within a period of time, and reduces the transmission power of the 2.4G WIFI network when the signal strength of the terminal device is strong. In this way, within the coverage area of ​​the network device, the signal strength of the 5G WIFI network in as many coverage areas as possible is greater than the signal strength of the 2.4G WIFI network, so that the terminal devices located in the coverage area have priority access to the 5G WIFI network.

[0141] In the second aspect, after receiving the detection request of the 2.4G WIFI network sent by the terminal device, the network device does not respond to the detection request of the 2.4G WIFI network temporarily, waits for a period of time, and if a detection request of the 5G WIFI network is received within the preset time, it responds to the detection request of the 5G WIFI network, thereby connecting the terminal device to the 5G WIFI network.

[0142] It should be noted that the embodiments of the present application are described based on WIFI networks in the two frequency bands of 2.4 GHz and 5 GHz, but this should not be construed as a limitation. The embodiments of the present application can also be extended to WIFI networks in any two different frequency bands.

[0143] The following, combined Figures 4 to 6b , explain the first aspect in detail, combined with Figure 7 and Figure 8b , give a detailed explanation of the second aspect.

[0144] Figure 4 It is a schematic flow chart of a WIFI communication method 400 provided in an embodiment of the present application.

[0145] The execution subject of method 400 may be a network device, or a processor or chip in the network device. For ease of description, the network device is used as an example to illustrate method 400. The network device supports 2.4G WIFI network and 5G WIFI network.

[0146] In step S410, the network device obtains first signal information of M terminal devices connected to the network device via a 2.4G WIFI network during a first time period, where the first signal information is used to indicate signal strengths of the M terminal devices during the first time period, where M is an integer greater than or equal to 1.

[0147] The M terminal devices represent terminal devices that are connected to the network device via the 2.4G WIFI network during the first time period. They may be terminal devices that are always connected to the network device via the 2.4G WIFI network during the first time period, or they may be terminal devices that are connected to the network device via the 2.4G WIFI network during a certain period of time during the first time period. No limitation is made here.

[0148] In addition, the M terminal devices may include terminal devices stably connected to the network device, or terminal devices unstably connected to the network device, and no limitation is made here. For terminal devices unstably connected, it should be understood that the network device obtains the signal strength of the terminal device before it goes offline.

[0149] In one example, the M terminal devices include terminal devices stably connected to the network device and terminal devices unstably connected to the network device.

[0150] In another example, the M terminal devices only include terminal devices that are stably connected to the network device.

[0151] A stable connection means that the terminal device does not frequently go online or offline and the signal strength changes slightly. Generally, a terminal device with a stable connection can be used to represent a device whose location remains basically unchanged.

[0152] Unstable connection means that the terminal device frequently goes online and offline. Generally speaking, unstable connection terminal devices can be used to represent mobile phones, tablets and other devices with lower system versions, as well as devices with frequently changing locations. In addition, most unstable connection terminal devices only support 2.4G WIFI networks.

[0153] In implementation, exemplarily, within the first time period, the network device may periodically collect signal strengths of terminal devices connected to the network device via a 2.4G WIFI network according to a first duration, so as to ultimately obtain first signal information of M terminal devices within the first time period.

[0154] It should be understood that the first duration is the duration of a cycle of the network device collecting signal strength, that is, every first duration, the network device collects the signal strength of all terminal devices connected to the network device through the 2.4G WIFI network. In addition, the duration of the first period is an integer multiple of the first duration, for example, the first duration is 10 minutes, and the duration of the first period is 24 hours.

[0155] Due to the instability of the connection of each terminal device and the different time when each terminal device accesses the 2.4G WIFI network, the network device may collect the signal strength of different terminal devices in different periods of the first period. For example, in the first period of the first period, there are 2 terminal devices (terminal device 1 and terminal device 2) connected to the network device through the 2.4G WIFI network, and the signal strength of the two terminal devices can be collected at the end of the first period. In the second period, there are 3 terminal devices (terminal device 1, terminal device 2 and terminal device 3) connected to the network device through the 2.4G WIFI network, and the signal strength of the three terminal devices can be collected at the end of the second period. Compared with the signal strength of terminal device 1 and terminal device 2 collected in the first period, the signal strength of terminal device 3 is collected in the second period.

[0156] It should be noted that the first signal information indicates all signal strengths of the M terminal devices in the first time period, including all signal strengths of each terminal device in the first time period. In addition, all signal strengths of each terminal device in the first time period include at least one signal strength, and the number of all signal strengths of each terminal device in the first time period may be the same or different. Assume that there are 10 cycles of collecting signal strengths in the first time period, and in the first time period, the terminal device 1 has been stably connected to the network device, then the number of signal strengths of the terminal device 1 obtained in the first time period is the largest, which is 10 signal strengths, and the terminal device 2 is connected to the 2.4G WIFI network in the second cycle, then the number of signal strengths of the terminal device 2 obtained in the first time period is at most 8, if the terminal device 2 is disconnected in some subsequent cycles, then the number of signal strengths of the terminal device 2 obtained in the first time period is less than 8.

[0157] It should be understood that the signal strength of the terminal device obtained by the network device represents the signal strength of the signal received by the network device from the terminal device, and the signal strength of the signal received by the network device from the terminal device is proportional to the signal strength of the signal received by the terminal device from the network device. Both the signal strength of the signal received by the network device and the signal strength of the signal received by the terminal device represent the signal strength of the current WIFI network. In general, the signal strength of the signal received by the network device from the terminal device is basically the same as the signal strength of the signal received by the terminal device from the network device. In the wall penetration mode, the signal strength of the signal received by the network device from the terminal device is slightly greater than the signal strength of the signal received by the terminal device from the network device.

[0158] In step S420, when at least part of the signal strengths of the M terminal devices in the first time period are greater than the first strength threshold, the network device reduces the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power.

[0159] It should be understood that the first transmission power is the transmission power before the transmission power of the 2.4G WIFI network is reduced, and the second transmission power is the transmission power after the transmission power of the 2.4G WIFI network is reduced.

[0160] In the embodiment of the present application, when at least part of the signal strength does not meet the condition of being greater than the first strength threshold, the network device does not reduce the transmission power of the 2.4G WIFI network, that is, the network device continues to use the first transmission power to send signals.

[0161] The first strength threshold is used to judge whether the signal strength is good or bad. If the signal strength is greater than the first strength threshold, it means that the signal strength is good, and if the signal strength is less than the first strength threshold, it means that the signal strength is bad. It should be understood that at least some of the signal strengths are greater than the first strength threshold, which means that each signal strength in at least some of the signal strengths is greater than the first strength threshold.

[0162] In the embodiment of the present application, at least the partial signal strength includes the entire signal strength and the partial signal strength.

[0163] In some embodiments, at least part of the signal strength is part of the signal strength of the M terminal devices in the first time period.

[0164] Exemplarily, a probability value may be used to define part of the signal strengths of the signal strengths of the M terminal devices in the first time period, and the probability value is less than 1. Assuming that the probability value is 80%, 80% of the signal strengths of the M terminal devices in the first time period are determined as part of the signal strengths. For example, the probability value is 80%, M=3, and the number of signal strengths of the three terminal devices obtained in the first time period is 10, then as long as 10*80%=8 signal strengths are greater than the first strength threshold, the transmission power of the 2.4G WIFI network can be reduced.

[0165] By reducing the transmission power of the 2.4G WIFI network when it is determined that some of the signal strengths of the M terminal devices within the first time period are greater than the first strength threshold, the unstable signal strength caused by device failure or other low-probability events can be avoided as much as possible, thereby improving the system's fault tolerance mechanism.

[0166] In other embodiments, at least part of the signal strength is all of the signal strengths of the M terminal devices in the first time period.

[0167] By reducing the transmission power of the 2.4G WIFI network when it is determined that all signal strengths of the signal strengths of the M terminal devices in the first time period are greater than the first strength threshold, the impact of reducing the transmission power of the 2.4G WIFI network on the 2.4G service can be minimized, thereby improving the overall stability of communication.

[0168] In this step, if at least part of the signal strengths of the M terminal devices in the first time period are greater than the first strength threshold, it means that the signal strength of the current 2.4G WIFI network is good, and there is basically enough capacity to transmit the services of the 2.4G WIFI network (referred to as 2.4G services). Therefore, appropriately reducing the transmission power of the 2.4G WIFI network will not have a significant impact on the 2.4G WIFI network. It should be understood that when the transmission power of the 2.4G WIFI network is reduced, the signal strength of the signal of the 2.4G WIFI network received by the terminal device or network device will also be reduced.

[0169] As mentioned above, since the 5G WIFI network is more susceptible to attenuation, in many cases, the signal of the 2.4G WIFI network is stronger at the same location, and the terminal device will generally give priority to accessing the 2.4G WIFI network with good signal strength, and no longer access the 5G WIFI network, which affects the user experience. However, after reducing the transmission power of the 2.4G WIFI network, within the coverage area of ​​the network device, there will be as many coverage areas as possible where the signal strength of the 5G WIFI network will be greater than the signal strength of the 2.4G WIFI network. In this way, in the coverage area where the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device will give priority to scanning the 5G WIFI network to access the 5G WIFI network.

[0170] Figure 5 This is a schematic diagram of the state changes in the coverage area of ​​the network device before and after reducing the transmission power of the 2.G WIFI network provided by the embodiment of the present application. From top to bottom, Figure 5 The first picture is a schematic diagram of the signal strength and terminal equipment in the coverage area of ​​the network equipment before reducing the 2.G WIFI network. Figure 5 The second figure is a schematic diagram of the signal strength and terminal devices in the coverage area of ​​the network device after reducing the 2.G WIFI network.

[0171] exist Figure 5 In the first figure, area 502 is the entire coverage area of ​​network device 510, and area 501 is a partial coverage area of ​​network device 510. In area 501, the signal strength of the 2.4G WIFI network is greater than the signal strength of the 5G WIFI network. Network device 510 is connected to terminal device 521 and terminal device 522 via the 2.4G WIFI network. Network device 510 obtains the signal strength of terminal device 521 and terminal device 522 within a period of time and finds that the signal strengths are both good. Therefore, the transmission power of the 2.4G WIFI network is reduced. Figure 5In the second figure, the signal strength in area 501 has changed. The signal strength of the 5G WIFI network is greater than that of the 2.4G WIFI network. Terminal devices 521 and 522 can continue to maintain a communication connection with the network device 510 via the 2.4G WIFI network. However, terminal device 523 located in area 501 wants to access the WIFI network. Since the signal strength of the 5G WIFI network in area 501 is greater than that of the 2.4G WIFI network, terminal device 523 preferentially accesses the 5G WIFI network and is connected to the network device via the 5G WIFI network.

[0172] It should be understood that for a terminal device that has been connected to the network device through a 2.4G WIFI network before the transmission power of the 2.4G WIFI network is reduced (i.e., the network device uses the first transmission power to send signals), after the transmission power of the 2.4G WIFI network is reduced (i.e., the network device uses the second transmission power to send signals), if the signal strength of the 5G WIFI network in the area where the terminal device is located is greater than the signal strength of the 2.4G WIFI network, in one example, the terminal device can continue to maintain the previous connection to the 2.4 WIFI network, such as Figure 5 In the terminal device 521 and the terminal device 522, in another example, the terminal device can also switch from the 2.4G WIFI network to the 5G WIFI network, which is not limited in any way in the embodiment of the present application.

[0173] Figure 6a It is a schematic flowchart of the process of a terminal device accessing a WIFI network after reducing the transmission power of a 2.4G WIFI network provided in an embodiment of the present application. Figure 6b This is another schematic flowchart of a process in which a terminal device accesses a WIFI network after reducing the transmission power of a 2.4G WIFI network, provided in an embodiment of the present application.

[0174] It should be understood that after reducing the transmission power of the 2.4G WIFI network, in the area where the terminal device A is located, the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, and the terminal device A can be Figure 5 Terminal device 523 in.

[0175] exist Figure 6aIn the illustrated embodiment, terminal device A accesses the 5G WIFI network by passive scanning. In step S431a and step S431b, the network device sends a 2.4G beacon frame and a 5G beacon frame, respectively. It should be understood that step S431a and step S431b can be performed simultaneously, or step S431a can be performed first and then step S431b, or step S431b can be performed first and then step S431a. However, even if step S431 and step S431b are performed successively, the time interval between the two is very short.

[0176] After receiving the 2.4G beacon frame and the 5G beacon frame, the terminal device A sends a detection request according to the signal strength, that is, sends a detection request for the WIFI network with good signal strength. In step S441a, since the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device A preferentially sends the 5G detection request.

[0177] For the network device, the 5G detection request is received first. Therefore, in step S450, the network device sends a 5G detection response to the terminal device A first. At this time, it means that the terminal device A scans the 5G WIFI network first, and then accesses the 5G WIFI network through steps S460 and S470.

[0178] Optionally, in order to avoid the situation where network device A is unable to respond to the 5G detection request due to a network accident, in step S441b, terminal device A can also send a 2.4G detection request after sending the 5G detection request, so that it can still respond to the 2.4G detection request after the network device is unable to respond to the 5G detection request, thereby ensuring that terminal device A is connected to the WIFI network as much as possible.

[0179] In one example, if the network device has already sent a 5G probe response normally, it may not respond to the 2.4G probe response after receiving a 2.4G probe request. In another example, if the network device has already sent a 5G probe response normally, it may also respond to the 2.4G probe response after receiving a 2.4G probe request. If terminal device A receives a 5G probe response and subsequently receives a 2.4G probe response, it may ignore the subsequently received 2.4G probe request.

[0180] exist Figure 6b In the illustrated embodiment, the terminal device accesses the WIFI network by active scanning.

[0181] In step S442a and step S442a, terminal device A sends a 5G detection request and a 2.4G detection request respectively.

[0182] It should be understood that step S442a and step S442b can be executed simultaneously, or step S442a can be executed first and then step S442b, or step S442b can be executed first and then step S442a. However, even if step S442a and step S442b are executed successively, the time interval between the two is very short.

[0183] After receiving the 2.4G detection request and the 5G detection request, the network device sends a detection request according to the signal strength, that is, sends a detection request for the WIFI network with good signal strength. In step S450, when the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the network device sends a 5G detection response, which means that the terminal device A scans the 5G WIFI network first, and then accesses the 5G WIFI network through steps S460 and S470.

[0184] Since the network is dynamically changing, the access conditions of the terminal devices to the WIFI network are different in different time periods. Therefore, in implementation, the network device may execute method 400 at regular intervals to determine whether to reduce the transmission power of the 2.4G WIFI network.

[0185] In the WIFI communication method provided in the embodiment of the present application, a network device obtains the signal strength of M terminal devices connected to the network device through a 2.4G WIFI network within a first time period. When at least part of the signal strengths of the M terminals within the first time period are greater than a first strength threshold, it means that the signal strength of the current 2.4G WIFI network is generally good. Therefore, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power. While avoiding a significant impact on the 2.4G WIFI network as much as possible, the signal strength of the 5G WIFI network in as many coverage areas as possible will be greater than the signal strength of the 2.4G WIFI network. In this way, in the coverage area where the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device will preferentially scan the 5G WIFI network, thereby accessing the 5G WIFI network to improve the user experience.

[0186] In step S420, the network device may reduce the transmission power of the 2.4G WIFI network in the following two ways (way 1 and way 2).

[0187] Method 1

[0188] In some embodiments, the network device determines the signal strength with the worst signal strength among at least part of the signal strengths of the M terminal devices in the first time period as the target signal strength; the network device determines the adjustment range of the transmission power of the 2.4G WIFI network based on the strength difference between the target signal strength and the second strength threshold, and the second strength threshold is less than the first strength threshold; within the adjustment range, the network device reduces the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power.

[0189] The signal strength with the worst signal strength is the signal strength with the smallest value among at least some of the signal strengths.

[0190] The second strength threshold can be understood as the minimum value of the signal strength for normal communication, and the second strength threshold is smaller than the first strength threshold for judging the signal strength to be good. For example, the second strength threshold is -70dBm, and the first strength threshold is -50dBm.

[0191] In the implementation, the power change value of the transmission power is proportional to the intensity change value of the signal strength, that is, the larger the power change value, the larger the intensity change value, and the smaller the power change value, the smaller the intensity change value. If the units of power and signal strength are the same, for example, both are dB or dBm, illustratively, the power change value and the intensity change value can be the same, and a power change value can be obtained through an intensity change value. For example, the intensity change value is 8dB, and the power change value is also 8dB. In this embodiment, the network device determines the intensity difference between the target signal strength and the second intensity threshold, and the intensity difference can be understood as an intensity change value. The adjustment amplitude of the transmission power is determined by the intensity difference, and the adjustment amplitude is a power change value. For example, the intensity difference is 20dB, and the adjustment amplitude is also 20dB.

[0192] In the process of adjusting the transmission power, the network device will reduce the transmission power of the 2.4G WIFI network within the adjustment range, and adjust the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power. In other words, the power change value between the first transmission power and the second transmission power is within the adjustment range, that is, the power change value between the first transmission power and the second transmission power is less than or equal to the adjustment range, for example, the adjustment range is 20dB, and the power change value between the first transmission power and the second transmission power is less than or equal to 20dB.

[0193] In this embodiment, since the target signal strength is the signal strength with the worst signal strength among at least part of the signal strengths of the M terminal devices in the first time period, and the second strength threshold is the lowest value for characterizing the signal strength capable of normal communication, the adjustment range of the transmission power of the 2.4G WIFI network is determined by the strength difference between the target signal strength and the second strength threshold, and the adjustment range can represent the maximum value to which the transmission power can be adjusted. Therefore, the transmission power of the 2.4G WIFI network is reduced within the adjustment range, and the power change value of the transmission power is not too large. The signal strength of the adjusted 2.4G WIFI network will not be very poor but within the range capable of normal communication, and the impact on the 2.4G WIFI network is not great. At the same time, the signal strength of the 5G WIFI network in more coverage areas can be made greater than the signal strength of the 2.4G WIFI network as much as possible, so that the terminal device can preferentially access the 5G WIFI network to improve the user experience. In short, reducing the transmission power of the 2.4G WIFI network within the adjustment range can better balance the normal communication of the 2.4G WIFI network and the priority access of the 5G WIFI network.

[0194] Since the network changes dynamically, even if the transmission power is reduced within the adjustment range, if the power change value between the first transmission power and the second transmission power is too large, it may greatly affect the normal communication of the 2.4G WIFI network. Therefore, in some embodiments, the power change value between the first transmission power and the second transmission power is less than the adjustment range.

[0195] Exemplarily, in implementation, the power change value between the first transmit power and the second transmit power may be the product of the adjustment amplitude and the first coefficient, and the first coefficient is less than 1. Exemplarily, the first coefficient may be a preset value. For example, the adjustment amplitude is 30, the first coefficient is 0.5, and the power change value between the first transmit power and the second transmit power is 15.

[0196] When the transmit power of the 2.4G WIFI network is reduced within the adjustment range, the power change value between the first transmit power and the second transmit power is less than the adjustment range, that is, only a part of the adjustment range is reduced, and a part of the adjustment range is reserved. In this way, the dynamic changes of the network caused by various abnormalities can be better coped with, and the signal strength of the adjusted 2.4G WIFI network will not be very poor, thereby further reducing the impact on the 2.4G WIFI network.

[0197] In an embodiment of the present application, the network device can gradually reduce the transmission power of the 2.4G WIFI network according to the gradient. When the transmission power of the 2.4G WIFI network is reduced for the first time, the power change value is less than the adjustment amplitude, and the power change value can be set larger. After a period of time, continue to execute the embodiment of the present application to check whether the signal strength of the 2.4G WIFI network is good, and determine whether the transmission power of the 2.4G WIFI network can continue to be reduced according to the signal strength. In the case of determining that the transmission power of the 2.4G WIFI network can be reduced, the power change value can be set smaller. In the case of determining that the transmission power of the 2.4G WIFI network cannot be reduced, the transmission power of the 2.4G WIFI network is no longer reduced.

[0198] Method 2

[0199] In some embodiments, a power threshold may be set for the 2.4G WIFI network, and the power threshold may represent the minimum value of the transmission power of the 2.4G WIFI network. The adjustment amplitude is the difference between the second transmission power of the 2.4G WIFI network after the reduction and the power threshold, and the power change value between the first transmission power and the second transmission power is less than or equal to the adjustment amplitude, that is, the second transmission power is greater than or equal to the power threshold.

[0200] In one example, the power change value between the first transmit power and the second transmit power is less than the adjustment amplitude, that is, the second transmit power is greater than the power threshold. In this way, the dynamic changes of the network caused by various anomalies can be better dealt with, and the signal strength of the adjusted 2.4G WIFI network will not be too poor, thereby further reducing the impact on the 2.4G WIFI network.

[0201] In another example, the power change value between the first transmit power and the second transmit power is equal to the adjustment amplitude.

[0202] Similarly, the network device can also gradually reduce the transmission power of the 2.4G WIFI network according to the gradient. For specific descriptions, please refer to the relevant descriptions of method 1, which will not be repeated here.

[0203] It should be noted that, in the case where the method 400 is executed multiple times to reduce the transmission power of the 2.4G WIFI network, the first transmission power and the second transmission power may be the transmission power before and after any reduction of the transmission power of the 2.4G WIFI network. For example, in the process of reducing the transmission power of the 2.4G WIFI network in two consecutive executions of the method 400, the first transmission power may be the transmission power before the first execution of the method 400, and the second transmission power is the transmission power after the first execution of the method 400, or the first transmission power may be the transmission power before the second execution of the method 400, and the second transmission power is the transmission power after the second execution of the method 400, wherein the transmission power before the second execution of the method 400 is the transmission power after the first execution of 400.

[0204] After the network device reduces the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power, the network device continues to obtain the signal strength of the terminal device in the next time period to determine whether to continue to reduce the transmission power of the 2.4G WIFI network.

[0205] Specifically, the network device obtains second signal information of N terminal devices connected to the network device through the 2.4G WIFI network during the second time period, where the second signal information is used to indicate the signal strength of the N terminal devices during the second time period;

[0206] The network device determines whether to continue to reduce the transmission power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold.

[0207] It should be understood that the second time period is a time period for acquiring the signal strength of the terminal device for the first time after the first time period.

[0208] The N terminal devices are terminal devices connected to the network device via a 2.4G WIFI network during the second period, and may be terminal devices that are always connected to the network device via a 2.4G WIFI network during the second period, or may be terminal devices that are connected to the network device via a 2.4G WIFI network for a certain period of time during the second period, without any limitation here; in addition, the N terminal devices may include terminal devices that are stably connected to the network device, or may include terminal devices that are unstably connected to the network device, without any limitation here. For the specific explanation of the N terminal devices, please refer to the relevant explanation of the M terminal devices above, which will not be repeated here.

[0209] In the process in which the network device determines whether to continue to reduce the transmission power of the 2.4G WIFI network according to the signal strengths of the N terminal devices in the second time period and the first strength threshold, the following situations may occur.

[0210] In one example, when at least part of the signal strengths of the N terminal devices in the second time period are greater than the first strength threshold, the network device can continue to reduce the transmission power of the 2.4G WIFI network. The process of the network device reducing the transmission power of the 2.4G WIFI network can refer to the relevant description above and will not be repeated here.

[0211] The at least partial signal strength here includes the total signal strength and the partial signal strength, wherein the total signal strength is the total signal strength of the signal strength of the N terminal devices in the second time period, and the partial signal strength is the partial signal strength of the signal strength of the N terminal devices in the second time period. For the specific explanation of the partial signal strength, please refer to the above explanation of the partial signal strength of the signal strength of the M terminal devices in the first time period, and no further details will be given.

[0212] In another example, when at least part of the signal strengths of the N terminal devices in the second time period are less than or greater than the first strength threshold, the network device no longer reduces the transmission power of the 2.4G WIFI network.

[0213] In this example, since at least part of the signal strength is less than the first strength threshold, it means that at least part of the signal strength is poor. Therefore, illustratively, the transmission power of the 2.4G WIFI network can be appropriately increased, that is, the transmission power of the 2.4G WIFI network is increased from the second transmission power to the third transmission power, wherein the third transmission power is less than the first transmission power.

[0214] In this way, the network equipment can dynamically adjust the transmission power of the 2.4G WIFI network in real time according to the signal strength, so as to maintain the stability of the 2.4G WIFI network for as long as possible. At the same time, it can also reduce the transmission power of the 2.4G WIFI network to a certain extent, so that the terminal equipment can access the 5G WIFI network as much as possible to improve the user experience.

[0215] In an embodiment of the present application, after reducing the transmission power of the 2.4G WIFI network, in order to facilitate the detection of the signal strength after the transmission power is reduced as soon as possible, the duration for the network device to obtain the signal strength of the terminal device in the second time period can be set shorter, that is, the duration of the second time period is shorter than the duration of the first time period.

[0216] For example, the duration of the first period is 24 hours, and the duration of the second period may be 3 hours.

[0217] In the WIFI communication method provided by the embodiment of the present application, the network device can obtain the signal strength of the terminal device connected to the network device at regular intervals to determine whether to reduce the signal strength of the 2.4G WIFI network according to the signal strength. After reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power according to the signal strength of the M terminal devices in the first time period, it is determined whether to continue to reduce the signal strength of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period after the first time period. By setting the duration of the second time period to be shorter than the duration of the first time period, the signal strength of the 2.4G WIFI network after reducing the transmission power of the 2.4G WIFI network can be detected more quickly, so that the network device can make timely adjustments.

[0218] As mentioned above, in the first time period, the network device periodically collects the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the first time length to obtain the first signal information. Then, the process of the network device obtaining the second signal information of N terminal devices connected to the network device through the 2.4G WIFI network in the second time period can be as follows:

[0219] In the second time period, the network device periodically collects the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the second time length to obtain the second signal information, wherein the second time length is shorter than the first time length.

[0220] For example, the first duration may be 10 minutes and the second duration may be 5 minutes.

[0221] It should be understood that the second duration is the duration of a cycle in which the network device collects the signal strength, that is, the network device collects the signal strength of the terminal device once every second duration. In addition, the duration of the second period is an integer multiple of the second duration, for example, if the second duration is 5 minutes, the duration of the second period is 3 hours.

[0222] The WIFI communication method provided in the embodiment of the present application sets the second duration to be shorter in order to avoid too few signal strengths obtained in the second time period of shorter duration, that is, the second time period is shorter than the first time period. In this way, a certain number of signal strengths can be obtained in the second time period of shorter duration, which is conducive to quickly detecting the signal strength of the reduced 2.4G WIFI network, so that the network device can make timely adjustments.

[0223] The first aspect of the embodiment of the present application is described in detail above. The second aspect of the embodiment of the present application is described in detail below.

[0224] Figure 7It is a schematic flow chart of a WIFI communication method 500 provided in an embodiment of the present application.

[0225] In step S520, when the first 2.4G detection request of the 2.4G WIFI network sent by the terminal device is received and the first 5G detection request of the 5G WIFI network is not received, the network device starts the timer.

[0226] In the implementation, the terminal device sends a first 2.4G detection request on the working frequency band of 2.4Ghz, and the network device receives the first 2.4G detection request on the working frequency band of 2.4Ghz.

[0227] Exemplarily, the first 2.4G detection request may be a detection request sent by the terminal device in a broadcast manner in an active scanning mode or in a unicast manner in a passive scanning mode.

[0228] If the first 2.4G detection request is sent by the terminal device in the active scanning mode through broadcasting, in the active scanning mode A, the first 2.4G detection request does not include a specific SSID and BSSID; in the active scanning mode B, the first 2.4G detection request includes the SSID of the 2.4G WIFI network supported by the network device. For specific content, please refer to the above and the description of related technologies, which will not be repeated here.

[0229] If the first 2.4G detection request is sent by the terminal device in a passive scanning mode via unicast, the first 2.4G detection request includes parameters such as SSID, BSSID, supported rate, and extended supported rate of the 2.4G WIFI network supported by the network device. The specific content can be referred to the above and the description of related technologies, and will not be repeated here.

[0230] When the network device receives the first 2.4G detection request but does not receive the first 5G detection request, the network device starts a timer. During the duration of the timer, the network device temporarily does not respond to the first 2.4G detection response to the first 2.4G detection request, but waits for a period of time to see whether it will receive the first 5G detection request sent by the terminal device.

[0231] The duration of the timer can be any predefined value. However, if the duration is too long, it will affect the response speed and lead to a poor user experience. If the duration is too short, it will not be conducive to the terminal device to access the 5G WIFI network first. Therefore, the duration of the timer should be set appropriately, so that the terminal device can access the 5G WIFI network first without affecting the response speed as much as possible and when the conditions are met.

[0232] Exemplarily, the duration of the timer is less than or equal to 2 seconds.

[0233] In step S541, if the first 5G detection request is received within the duration of the timer, the network device sends a first 5G detection response to the first 5G detection request to the terminal device to connect the terminal device to the 5G WIFI network.

[0234] Correspondingly, the terminal device receives the first 5G detection response to access the 5G WIFI network.

[0235] In the implementation, the network device sends a first 5G detection response to the terminal device on the working frequency band of 5Ghz, and the terminal device receives the first 5G detection response on the working frequency band of 5Ghz.

[0236] It can be understood that before step S541, the terminal device sends a first 5G detection request to the network device, and the network device receives the first 5G detection request. In implementation, the terminal device sends the first 5G detection request on the working frequency band of 5Ghz, and the network device receives the first 5G detection request on the working frequency band of 5Ghz.

[0237] It should be understood that receiving the first 5G detection request within the duration of the timer may be receiving the first 5G detection request before the end time of the timer or at the end time of the timer, and the embodiment of the present application does not impose any limitation on this.

[0238] In addition, the network device can send the first 5G detection response after receiving the first 5G detection request, without having to wait for the timer to expire before sending the first 5G detection response. This can improve the response speed.

[0239] Exemplarily, the first 5G detection request may be a detection request sent by the terminal device via a broadcast method in an active scanning mode or a unicast method in a passive scanning mode.

[0240] If the first 5G detection request is sent by the terminal device in the active scanning mode through broadcasting, in the active scanning mode A, the first 5G detection request does not include a specific SSID and BSSID; in the active scanning mode B, the first 5G detection request includes the SSID of the 5G WIFI network supported by the network device. For specific content, please refer to the above and the description of related technologies, and no further description is given.

[0241] If the first 5G detection request is sent by the terminal device in a passive scanning mode through unicast, the first 5G detection request includes parameters such as SSID, BSSID, supported rate, and extended supported rate of the 5G WIFI network supported by the network device. The specific content can be referred to the above and the description of related technologies, and will not be repeated here.

[0242] Exemplarily, the first 5G detection response may include the SSID, BSSID and other information for joining the BSS of the 5G WIFI network supported by the network device. The specific content can be referred to the description of the above and related technologies and will not be repeated here.

[0243] The network device does not respond to the first 2.4G detection request before the timer expires, with the purpose of waiting for the first 5G detection request. When the network device receives the first 5G detection request within the timer, that is, receives the first 5G detection request within the preset waiting time, it means that the terminal device has the need to access the 5G WIFI network, and the network device also wants the terminal device to access the 5G WIFI network. Therefore, the network device sends the first 5G detection response to the terminal device.

[0244] It should be noted that the size of the step number does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0245] For the terminal device, the terminal device can send the first 2.4G detection request and the first 5G detection request at the same time, or send the first 2.4G detection request first and then send the first 5G detection request, or send the first 5G detection request first and then send the first 2.4G detection request. However, even if the first 2.4G detection request and the first 5G detection request are sent successively, the time interval between sending the first 2.4G detection request and the first 5G detection request is very short.

[0246] Generally, when there are no emergencies in the network (for example, poor signal quality causing packet loss and retransmission or queue scheduling causing the later-sent signaling to be received by the other end first), the signaling sent first will be received by the other end first. However, in the event of a network emergency, the signaling sent first may be received later by the other end or the signaling sent later may be received first by the other end. Therefore, no matter what order the terminal device sends the first 2.4G detection request and the first 5G detection request, the network device may receive the first 2.4G detection request first and then the first 5G detection request. In particular, when the terminal device sends the first 2.4G detection request first, it is more common for the network device to receive the first 2.4G detection request first.

[0247] The WIFI communication method provided in the embodiment of the present application is compared with the solution in the prior art that the network device responds to the first 2.4G detection request after receiving the first 2.4G detection request to connect the terminal device to the 2.4G WIFI network. The embodiment of the present application configures a timer for waiting for the 5G detection request in the network device. After receiving the first 2.4G detection request sent by the terminal device, the network device does not respond to the first 2.4G detection request for the time being, but starts the timer and waits for the first 5G detection request within the timer duration. If the first 5G detection request is received within the timer duration, the network device responds to the first 5G detection request of the 5G WIFI network. In this way, the 5G WIFI network can be accessed preferentially, thereby improving the user experience.

[0248] It should be understood that in the passive scanning mode, before step S520, the network device will also send 2.4G beacon frames and 5G beacon frames to the terminal device, and after step S541, it will access the 5G WIFI network through the authentication process and the association process. In the active scanning mode A, after step S541, the terminal device will also send another 5G detection request (recorded as the second 5G detection request) to the network device via unicast, and the network device will respond with another 5G detection response (recorded as the second 5G detection request), and then access the 5G WIFI network through the authentication process and the association process. In the active scanning mode B, after step S541, the 5G WIFI network is accessed through the authentication process and the association process.

[0249] Below, through Figure 8a and Figure 8b , and gives a detailed description of the process of terminal devices accessing the 5G WIFI network under different scanning modes.

[0250] Figure 8a It is a schematic interaction diagram of the WIFI communication method 500 provided in an embodiment of the present application, and the terminal device may access the 5G WIFI network through the passive scanning method or the active scanning method B mentioned above.

[0251] The process of scanning the WIFI network in the active scanning mode B to connect to the WIFI network includes steps S511 to S572, but does not include steps S501 to S504.

[0252] In step S511, the terminal device sends a first 2.4G detection request to the network device by broadcasting.

[0253] As mentioned above, the first 2.4G probe request includes the SSID of the 2.4G WIFI network supported by the network device, but does not include the BSSID.

[0254] In step S512, the network device receives the first 2.4G detection request.

[0255] In step S520, when the first 2.4G detection request is received but the first 5G detection request is not received, the network device starts a timer.

[0256] In step S531, the terminal device sends a first 5G detection request to the network device via broadcasting.

[0257] As mentioned above, the first 5G probe request includes the SSID of the 5G WIFI network supported by the network device, but does not include the BSSID.

[0258] In step S532, the network device receives the first 5G detection request.

[0259] In step S541, if the first 5G detection request is received within the duration of the timer, the network device sends a first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.

[0260] It should be understood that when the terminal device sends the first 2.4G detection request and the first 5G detection request by broadcasting, multiple network devices will receive the first 2.4G detection request and the first 5G detection request. When only the response to the first 5G detection request is sent based on step S541, since the first 5G detection request only contains the SSID of the WIFI network supported by the specific network device, only the specific network device will respond to the first 5G detection request, that is, the specific network device sends a response to the first 5G detection request to the terminal device.

[0261] In step S542, the terminal device receives a first 5G detection response to access the 5G WIFI network.

[0262] In step S571 and step S572, after the terminal device receives the first 5G detection response, the network device and the terminal device perform an authentication process and an association process.

[0263] Exemplarily, the terminal device sends an authentication request to the network device, and the network device eventually sends an authentication response indicating successful authentication to the terminal device to complete the authentication process.

[0264] Exemplarily, the terminal device sends an association request to the network device, and the network device finally sends an association response to the terminal device to indicate whether the terminal device is allowed to access the 5G WIFI network or not. If the association response is used to indicate that the terminal device is allowed to access the 5G WIFI network, it means that the terminal device has successfully accessed the 5G WIFI network, and the terminal device and the network device can subsequently communicate normally through the 5G WIFI network to transmit data.

[0265] For a detailed description of the authentication process and the association process, please refer to the above step S220 and step S230 and the related description of the related technology, which will not be repeated here.

[0266] The process of scanning the WIFI network in a passive scanning manner to connect to the WIFI network includes steps S501 to S572.

[0267] Before step S511, refer to Figure 8a , the method 500 further includes:

[0268] In step S501, the network device sends a 2.4G beacon frame of a 2.4G WIFI network to the terminal device.

[0269] In step S502, the terminal device receives the 2.4G beacon frame.

[0270] In step S503, the network device sends a 5G beacon frame of the 5G WIFI network to the terminal device.

[0271] In step S504, the terminal device receives the 5G beacon frame.

[0272] It should be understood that the size of the step numbers does not mean the order of execution.

[0273] For network devices, they can send 2.4G beacon frames and 5G beacon frames at the same time, or send 2.4G beacon frames first and then 5G beacon frames, or send 5G beacon frames first and then 2.4G beacon frames. However, even if 2.4G beacon frames and 5G beacon frames are sent successively, the time interval between sending 2.4G beacon frames and 5G beacon frames is very short.

[0274] For the terminal device, after receiving the 2.4G beacon frame and the 5G beacon frame, illustratively, different detection requests can be sent based on any of the following situations.

[0275] In situation 1, the terminal device first sends a detection request for the WIFI network with good signal strength and then sends a detection request for the WIFI network with poor signal strength based on the signal strength of the WIFI network. Then, when the signal strength of the 2.4G WIFI network is greater than the signal strength of the 5G WIFI network, the terminal device first sends the first 2.4G detection request and then sends the first 5G detection request.

[0276] In situation 2, the terminal device sends a detection request for any beacon frame, that is, as long as it receives a 2.4G beacon frame and a 5G beacon frame, it will send the first 2.4G detection request and the first 5G detection request, and send them according to the principle of first received first sent.

[0277] In situation 3, the terminal device has been connected to the network device through a 2.4G WIFI network (or a 5G WIFI network), and the terminal device stores information about the 2.4G WIFI network (or a 5G WIFI network) for connecting to the network device. For the convenience of connection, the system stipulates that, after subsequently monitoring the 2.4G beacon frame (or a 5G beacon frame) of the network device, only the first 2.4G detection request (or the first 5G detection request) is sent, so as to utilize the existing information about the 2.4G WIFI network (or a 5G WIFI network) for connecting to the network device to enable the terminal device to quickly access the 2.4G WIFI network (or a 5G WIFI network).

[0278] In short, after receiving the 2.4G beacon frame and the 5G beacon frame, the terminal device will first send the first 2.4G detection request to the network device in step S511. When the network device receives the first 2.4G detection request but does not receive the first 5G detection request, it executes step S520 to start the timer, and when the first 5G detection request sent by the terminal device is received within the timer, it executes step S541 to send the first 5G detection response. In steps S571 and S572, after the terminal device receives the first 5G detection response, the network device and the terminal device perform the authentication process and the association process.

[0279] It should be understood that in the passive scanning mode, the terminal device sends the first 2.4G detection request and the first 5G detection request via unicast.

[0280] Figure 8b It is another schematic interaction diagram of the WIFI communication method 500 provided in an embodiment of the present application, which may be a terminal device accessing a 5G WIFI network through the active scanning method A described above.

[0281] In step S511, the terminal device broadcasts a first 2.4G detection request to search for available WIFI networks in the surrounding area.

[0282] As mentioned above, the first 2.4G detection request does not include a specific SSID and BSSID.

[0283] In step S512, the network device receives the first 2.4G detection request.

[0284] In step S520, when the first 2.4G detection request is received but the first 5G detection request is not received, the network device starts a timer.

[0285] In step S531, the terminal device sends a first 5G detection request to the network device via broadcasting.

[0286] As mentioned above, the first 5G probe request does not include a specific SSID and BSSID.

[0287] In step S532, the network device receives the first 5G detection request.

[0288] In step S541, if the first 5G detection request is received within the duration of the timer, the network device sends a first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.

[0289] It should be understood that when the terminal device sends the first 2.4G detection request and the first 5G detection request by broadcasting, all network devices that can receive the first 2.4G detection request will execute step S520, and all network devices that receive the first 5G detection request within the timer duration will send the first 5G detection response.

[0290] In step S551, the terminal device sends a second 5G detection request to the network device via unicast.

[0291] In this step, exemplarily, the network list of the terminal device will display the SSIDs of the WIFI supported by all network devices that send the first 5G detection request. The user clicks on the connection option of the WIFI network supported by the network device. In response to the user's operation, the terminal device sends a second 5G detection request to one of the network devices via unicast.

[0292] In step S552, the network device receives a second 5G detection request.

[0293] In step S561, the network device sends a second 5G detection response to the terminal device.

[0294] In step S562, the terminal device receives a second 5G detection response.

[0295] In step S571 and step S572, after the terminal device receives the second 5G detection response, the network device and the terminal device perform an authentication process and an association process. For a detailed description of the authentication process and the association process, please refer to the above step S220 and step S230 and the related description of the related technology, which will not be repeated.

[0296] In some embodiments, if the first 5G detection request is not received within the duration of the timer, the network device sends a first 2.4G detection response to the first 2.4G detection request to the terminal device to connect the terminal device to the 2.4G WIFI network.

[0297] That is to say, if the first 5G detection request is not received within the timer duration, it means that the terminal device will not send the first 5G detection request or may send the first 5G detection request after the end time of the timer. The network device does not need to continue waiting for the first 5G detection request, but can respond to the detection request of the 2.4G WIFI network, that is, send the first 2.4G detection response. After the terminal device receives the first 2.4G detection response, it performs the authentication process and the association process with the network device to connect the terminal device to the 2.4G WIFI network.

[0298] It should be understood that in the passive scanning mode and the active scanning mode B, after the terminal device receives the first 2.4G detection response, it accesses the 2.4G WIFI network through the authentication process and the association process.

[0299] In active scanning mode A, in one example, the network device receives a second 2.4G detection request sent by the terminal device via unicast, and sends a second 2.4G detection response to the second 2.4G detection request to the terminal device. After the terminal device receives the second 2.4G detection response, it accesses the 2.4G WIFI network through an authentication process and an association process.

[0300] In active scanning mode A, in another example, when the network device receives a second 2.4G detection request sent by the terminal device via unicast and has not received a second 5G detection request sent by the terminal device via unicast, the network device starts a timer. If the second 5G detection request sent by the terminal device via unicast is not received within the timer, a second 2.4G detection response is sent to the terminal device. After receiving the second 2.4G detection response, the terminal device accesses the 2.4G WIFI network through an authentication process and an association process.

[0301] That is, in this example, whether the network device receives a 2.4G detection request sent by the terminal device in a broadcast manner (the first 2.4G detection request) or a 2.4G detection request sent in a unicast manner (the second 2.4G detection request), the network device will start a timer to wait for the 5G detection request within the timer duration. In this way, the system settings can be simplified and the implementation is easy.

[0302] In the case where the terminal device does not send the first 5G detection request to the network device, so that the network device does not receive the first 5G detection request within the timer, there may be the following two situations. It should be understood that the following two situations are only for illustrative purposes and should not be construed as limiting the embodiments of the present application.

[0303] In one example, the terminal device does not support the 5G WIFI network. In this case, the terminal device will naturally not send the first 5G detection request, and the network device will not receive the first 5G detection request.

[0304] In another example, the terminal device supports a 5G WIFI network, and before the terminal device sends a first 2.4G detection request to the network device in step 511, the terminal device and the network device are connected via a 2.4G WIFI network communication.

[0305] That is to say, in this example, although the terminal device supports 5G WIFI network, the terminal device has been connected to the network device through 2.4G WIFI network before, and the terminal device stores the information of 2.4G WIFI network for connecting to the network device. For the convenience of connection, the system stipulates that if the passive scanning method is adopted, only the first 2.4G detection request is sent after the 2.4G beacon frame of the network device is monitored. If the active scanning method is adopted, only the first 2.4G detection request is sent to the network device, so as to utilize the existing information of 2.4G WIFI network for connecting to the network device to enable the terminal device to quickly access the 2.4G WIFI network.

[0306] In the embodiment of the present application, it can be understood that if the network device receives the first 5G detection request first, that is, the network device receives the first 5G detection request and does not receive the first 2.4 detection request, the network device does not start the timer and directly sends the first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.

[0307] It should be understood that the "directly" here means that after receiving the first 5G detection request, the network device no longer wastes time performing other tasks, but generates the first 5G detection response and sends the first 5G detection response as soon as possible.

[0308] It should also be understood that in the passive scanning mode and the active scanning mode B, after the terminal device receives the first 5G detection response, it accesses the 5G WIFI network through the authentication process and the association process.

[0309] In active scanning mode A, after receiving the first 5G detection response, the terminal device only sends the second 5G detection request to the network device via unicast. Then, the network device sends the second 5G detection response to the terminal device, and then accesses the 5G WIFI network through the authentication process and association process.

[0310] It should be noted that the size of the serial numbers of the steps in the above method embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0311] Above, combined Figures 1 to 8b , the WIFI communication method provided by the embodiment of the present application is described in detail, and the following will be combined with Figures 9 and 10 , describes in detail a WIFI communication device provided according to an embodiment of the present application.

[0312] Fig. 9 1 is an exemplary block diagram of a WIFI communication device 600 provided in an embodiment of the present application. The device 600 is a terminal device or a network device, and may also be a chip in the terminal device or the network device.

[0313] In a possible implementation, the apparatus 600 is used to execute each process and step corresponding to the network device in the above method 400. The apparatus 600 includes: a processing unit 610 and a transceiver unit 620. The processing unit 610 is used to execute the following steps:

[0314] Acquire first signal information of M terminal devices connected to the network device through the 2.4G WIFI network in a first time period, where the first signal information is used to indicate signal strengths of the M terminal devices in the first time period, where M is an integer greater than or equal to 1;

[0315] When at least part of the signal strengths of the M terminal devices in the first time period are greater than a first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0316] Optionally, the at least partial signal strength is all signal strengths of the signal strengths of the M terminal devices in the first time period.

[0317] Optionally, the processing unit 610 is specifically configured to:

[0318] Determine the signal strength with the worst signal strength among the at least part of the signal strengths as the target signal strength;

[0319] Determining an adjustment range of the transmission power of the 2.4G WIFI network according to a strength difference between the target signal strength and a second strength threshold, wherein the second strength threshold is less than the first strength threshold;

[0320] Within the adjustment range, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0321] Optionally, a power variation value between the first transmit power and the second transmit power is smaller than the adjustment amplitude.

[0322] Optionally, the processing unit 610 is further configured to:

[0323] Acquire second signal information of N terminal devices connected to the network device through the 2.4G WIFI network during a second time period, where the second signal information is used to indicate signal strengths of the N terminal devices during the second time period;

[0324] Determining whether to continue reducing the transmission power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold;

[0325] The duration of the second time period is shorter than the duration of the first time period, and N is an integer greater than or equal to 1.

[0326] Optionally, the processing unit 610 is specifically configured to:

[0327] During the first time period, periodically collecting signal strength of a terminal device connected to the network device via the 2.4G WIFI network according to a first duration to obtain the first signal information; and

[0328] During the second time period, periodically collecting the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the second duration to obtain the second signal information;

[0329] The second duration is shorter than the first duration.

[0330] Optionally, the processing unit 610 is specifically configured to:

[0331] When at least part of the signal strengths of the N terminal devices in the second time period are less than the first strength threshold, the transmission power of the 2.4G WIFI network is increased from the second transmission power to a third transmission power, and the third transmission power is less than the first transmission power.

[0332] Optionally, the M terminal devices include devices stably connected to the network device and devices unstably connected to the network device.

[0333] Optionally, the transceiver unit 620 is used for:

[0334] Receive a 5G detection request of the 5G WIFI network and a 2.4G detection request of the 2.4G WIFI network sent by a first terminal device;

[0335] A 5G detection response is sent to the first terminal device in response to the 5G detection request to connect the first terminal device to the 5G WIFI network.

[0336] It should be understood that the processing unit 610 can be used to execute each step performed by the network device in the method 400. For specific descriptions, please refer to the relevant descriptions above and will not be repeated here.

[0337] In another possible implementation, the apparatus 600 is used to execute each process and step corresponding to the network device in the above method 500. The apparatus 600 includes: a processing unit 610 and a transceiver unit 620.

[0338] The processing unit 610 is configured to start a timer when a first 2.4G detection request of the 2.4G WIFI network sent by the terminal device is received and a first 5G detection request of the 5G WIFI network sent by the terminal device is not received;

[0339] The transceiver unit 620 is also used to send a first 5G detection response to the first 5G detection request to the terminal device if the first 5G detection request is received within the duration of the timer, so as to connect the terminal device to the 5G WIFI network.

[0340] Optionally, the transceiver unit 620 is also used to send a first 2.4G detection response to the first 2.4G detection request to the terminal device if the first 5G detection request is not received within the duration of the timer, so as to connect the terminal device to the 2.4G WIFI network.

[0341] Optionally, the terminal device does not support the 5G WIFI network; or, the terminal device supports the 5G WIFI network, and before the terminal device sends the first 2.4G detection request to the network device, the terminal device and the network device are connected through the 2.4G WIFI network communication.

[0342] Optionally, the transceiver unit 620 is also used to, when receiving the first 5G detection request sent by the terminal device and not receiving the first 2.4G detection request sent by the terminal device, not start the timer and send the first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.

[0343] Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a unicast manner.

[0344] Optionally, the transceiver unit 620 is further used to send a 2.4G beacon frame of the 2.4G WIFI network and a 5G beacon frame of the 5G WIFI network to the terminal device.

[0345] Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a broadcast manner; and the transceiver unit 620 is further used to:

[0346] Receive a second 5G detection request sent by the terminal device via unicast; send a second 5G detection response to the second 5G detection request to the terminal device to connect the terminal device to the 5G WIFI network.

[0347] Optionally, the duration of the timer is less than or equal to 2 seconds.

[0348] It should be understood that the processing unit 610 and the transceiver unit 620 can be used to execute each step performed by the network device in the method 500. For specific descriptions, please refer to the relevant descriptions above and will not be repeated here.

[0349] In another possible implementation, the apparatus 600 is used to execute each process and step corresponding to the terminal device in the above method 500. The apparatus 600 includes: a processing unit 610 and a transceiver unit 620.

[0350] The transceiver unit 620 is used to send a first 2.4G detection request of the 2.4G WIFI network and a first 5G detection request of the 5G WIFI network to the network device;

[0351] The transceiver unit 620 is further configured to receive a first 5G detection response sent by the network device to the first 5G detection request;

[0352] The processing unit 610 is used to access the 5G WIFI network.

[0353] It should be understood that the processing unit 610 and the transceiver unit 620 can be used to execute the various steps performed by the terminal device in the method 500. For specific descriptions, please refer to the relevant descriptions above and will not be repeated here.

[0354] It should be understood that the device 600 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.

[0355] In the embodiments of the present application, Fig. 9 The device may also be a chip or a chip system, such as a system on chip (SoC).

[0356] Fig.10 700 is a schematic structural diagram of an apparatus 700 provided in an embodiment of the present application. The apparatus 700 is used to execute the corresponding steps and / or processes in the above method embodiment.

[0357] The device 700 includes a processor 710, a transceiver 720, and a memory 730. The processor 710, the transceiver 720, and the memory 730 communicate with each other through an internal connection path, and the processor 710 can implement the functions of the processing unit 710 in various possible implementations of the device 700. The memory 730 is used to store instructions, and the processor 710 is used to execute the instructions stored in the memory 730, or in other words, the processor 710 can call these stored instructions to implement the functions of the processing unit 710 in the device 700.

[0358] Optionally, the memory 730 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 710 may be used to execute instructions stored in the memory, and when the processor 710 executes instructions stored in the memory, the processor 710 is used to execute the various steps and / or processes of the above-mentioned method embodiment corresponding to the network device or the terminal device.

[0359] In a possible implementation, the apparatus 700 is used to execute each process and step corresponding to the network device in the above method 400. The processor 710 is used to execute the following steps:

[0360] Acquire first signal information of M terminal devices connected to the network device through the 2.4G WIFI network in a first time period, where the first signal information is used to indicate signal strengths of the M terminal devices in the first time period, where M is an integer greater than or equal to 1;

[0361] When at least part of the signal strengths of the M terminal devices in the first time period are greater than a first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0362] Optionally, the at least partial signal strength is all signal strengths of the signal strengths of the M terminal devices in the first time period.

[0363] Optionally, the processor 710 is specifically configured to:

[0364] Determine the signal strength with the worst signal strength among the at least part of the signal strengths as the target signal strength;

[0365] Determining an adjustment range of the transmission power of the 2.4G WIFI network according to a strength difference between the target signal strength and a second strength threshold, wherein the second strength threshold is less than the first strength threshold;

[0366] Within the adjustment range, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

[0367] Optionally, a power variation value between the first transmit power and the second transmit power is smaller than the adjustment amplitude.

[0368] Optionally, the processor 710 is further configured to:

[0369] Acquire second signal information of N terminal devices connected to the network device through the 2.4G WIFI network during a second time period, where the second signal information is used to indicate signal strengths of the N terminal devices during the second time period;

[0370] Determining whether to continue reducing the transmission power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold;

[0371] The duration of the second time period is shorter than the duration of the first time period, and N is an integer greater than or equal to 1.

[0372] Optionally, the processor 710 is specifically configured to:

[0373] During the first time period, periodically collecting signal strength of a terminal device connected to the network device via the 2.4G WIFI network according to a first duration to obtain the first signal information; and

[0374] During the second time period, periodically collecting the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the second duration to obtain the second signal information;

[0375] The second duration is shorter than the first duration.

[0376] Optionally, the processor 710 is specifically configured to:

[0377] When at least part of the signal strengths of the N terminal devices in the second time period are less than the first strength threshold, the transmission power of the 2.4G WIFI network is increased from the second transmission power to a third transmission power, and the third transmission power is less than the first transmission power.

[0378] Optionally, the M terminal devices include devices stably connected to the network device and devices unstably connected to the network device.

[0379] Optionally, the transceiver 720 is used to:

[0380] Receive a 5G detection request of the 5G WIFI network and a 2.4G detection request of the 2.4G WIFI network sent by a first terminal device;

[0381] A 5G detection response is sent to the first terminal device in response to the 5G detection request to connect the first terminal device to the 5G WIFI network.

[0382] In another possible implementation, the apparatus 700 is used to execute each process and step corresponding to the network device in the above method 500.

[0383] The processor 710 is configured to start a timer when a first 2.4G detection request of the 2.4G WIFI network sent by the terminal device is received and a first 5G detection request of the 5G WIFI network sent by the terminal device is not received;

[0384] The transceiver 720 is also used to send a first 5G detection response to the first 5G detection request to the terminal device if the first 5G detection request is received within the duration of the timer, so as to connect the terminal device to the 5G WIFI network.

[0385] Optionally, the transceiver 720 is also used to send a first 2.4G detection response to the first 2.4G detection request to the terminal device if the first 5G detection request is not received within the duration of the timer, so as to connect the terminal device to the 2.4G WIFI network.

[0386] Optionally, the terminal device does not support the 5G WIFI network; or, the terminal device supports the 5G WIFI network, and before the terminal device sends the first 2.4G detection request to the network device, the terminal device and the network device are connected through the 2.4G WIFI network communication.

[0387] Optionally, the transceiver 720 is also used to, when receiving the first 5G detection request sent by the terminal device and not receiving the first 2.4G detection request sent by the terminal device, not start the timer and send the first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.

[0388] Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a unicast manner.

[0389] Optionally, the transceiver 720 is also used to send a 2.4G beacon frame of the 2.4G WIFI network and a 5G beacon frame of the 5G WIFI network to the terminal device.

[0390] Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a broadcast manner; and the transceiver 720 is further used to:

[0391] Receive a second 5G detection request sent by the terminal device via unicast; send a second 5G detection response to the second 5G detection request to the terminal device to connect the terminal device to the 5G WIFI network.

[0392] Optionally, the duration of the timer is less than or equal to 2 seconds.

[0393] It should be understood that the processing unit 610 and the transceiver unit 620 can be used to execute each step performed by the network device in the method 500. For specific descriptions, please refer to the relevant descriptions above and will not be repeated here.

[0394] In another possible implementation, the apparatus 700 is used to execute each process and step corresponding to the terminal device in the above method 500.

[0395] The transceiver 720 is used to send a first 2.4G detection request of the 2.4G WIFI network and a first 5G detection request of the 5G WIFI network to the network device;

[0396] The transceiver 720 is further configured to receive a first 5G detection response sent by the network device to the first 5G detection request;

[0397] The processor 710 is used to access the 5G WIFI network.

[0398] It should be understood that the specific process of each device executing the corresponding steps in the above methods has been described in detail in the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0399] It should be understood that in the embodiments of the present application, the processor of the above-mentioned device may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0400] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software units in a processor for execution. The software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0401] The embodiment of the present application provides a computer program product, when the computer program product is run on a terminal device, the terminal device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.

[0402] The embodiment of the present application provides a readable storage medium, the readable storage medium contains instructions, when the instructions are executed in a terminal device, the terminal device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar, and will not be repeated here.

[0403] The embodiment of the present application provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar, and will not be repeated here.

[0404] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0405] It should be understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0406] It should also be understood that in the present application, "when", "if" and "if" all mean that the UE or base station will take corresponding actions under certain objective circumstances. It is not a time limit, and it does not require the UE or base station to make judgments when implementing it, nor does it mean that there are other limitations.

[0407] A person skilled in the art may understand that the various numerical numbers such as first and second involved in the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application, and also indicate the order of precedence.

[0408] In this application, elements expressed in the singular are intended to mean "one or more" rather than "one and only one", unless otherwise specified. In this application, "at least one" is intended to mean "one or more", and "more than one" is intended to mean "two or more", unless otherwise specified.

[0409] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. A can be singular or plural, and B can be singular or plural.

[0410] In this document, the term "at least one of..." or "at least one of..." means all or any combination of the listed items. For example, "at least one of A, B, and C" may mean: A exists alone, B exists alone, C exists alone, A and B exist at the same time, B and C exist at the same time, and A, B, and C exist at the same time, where A may be singular or plural, B may be singular or plural, and C may be singular or plural.

[0411] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0412] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0413] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units 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 units, which can be electrical, mechanical or other forms.

[0414] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0415] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0416] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for 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 methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0417] The same or similar parts between the various embodiments in this application can refer to each other. In the various embodiments in this application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-described implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0418] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims. In short, the above is only a preferred embodiment of the technical solution of the present application, and is not used to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A WIFI communication method, applied to a network device, wherein the network device supports 2.4G WIFI network and 5G WIFI network, It is characterized in that The method comprises: Acquire first signal information of M terminal devices connected to the network device through the 2.4G WIFI network in a first time period, where the first signal information is used to indicate signal strengths of the M terminal devices in the first time period, where M is an integer greater than or equal to 1; When at least part of the signal strengths of the M terminal devices in the first time period are greater than a first strength threshold, reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power; Receive a 5G detection request of the 5G WIFI network and a 2.4G detection request of the 2.4G WIFI network sent by a first terminal device; Sending a 5G detection response to the 5G detection request to the first terminal device to connect the first terminal device to the 5G WIFI network; or, Sending a 5G beacon frame of the 5G WIFI network and a 2.4G beacon frame of the 2.4G WIFI network to the first terminal device; Receiving a 5G detection request of the 5G WIFI network sent by the first terminal device; A 5G detection response is sent to the first terminal device in response to the 5G detection request to connect the first terminal device to the 5G WIFI network.

2. The method according to claim 1, It is characterized in that The at least partial signal strength is all the signal strengths of the M terminal devices in the first time period.

3. The method according to claim 1 or 2, It is characterized in that The step of reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power includes: Determine the signal strength with the worst signal strength among the at least part of the signal strengths as the target signal strength; Determining an adjustment range of the transmission power of the 2.4G WIFI network according to a strength difference between the target signal strength and a second strength threshold, wherein the second strength threshold is less than the first strength threshold; Within the adjustment range, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the second transmission power.

4. The method according to claim 3, It is characterized in that A power variation value between the first transmit power and the second transmit power is smaller than the adjustment amplitude.

5. The method according to claim 1 or 2, It is characterized in that After reducing the transmission power of the 2.4G WIFI network from the first transmission power to the second transmission power, the method further includes: Acquire second signal information of N terminal devices connected to the network device through the 2.4G WIFI network during a second time period, where the second signal information is used to indicate signal strengths of the N terminal devices during the second time period; Determining whether to continue reducing the transmission power of the 2.4G WIFI network according to the signal strength of the N terminal devices in the second time period and the first strength threshold; The duration of the second time period is shorter than the duration of the first time period, and N is an integer greater than or equal to 1.

6. The method according to claim 5, It is characterized in that The obtaining of first signal information of M terminal devices connected to the network device via the 2.4G WIFI network within a first time period includes: During the first time period, periodically collecting signal strength of a terminal device connected to the network device via the 2.4G WIFI network according to a first duration to obtain the first signal information; as well as, The obtaining of second signal information of N terminal devices connected to the network device via the 2.4G WIFI network during a second time period includes: During the second time period, periodically collecting signal strength of a terminal device connected to the network device via the 2.4G WIFI network according to a second duration to obtain the second signal information; The second duration is shorter than the first duration.

7. The method according to claim 5, It is characterized in that The determining whether to continue reducing the transmission power of the 2.4G WIFI network according to the signal strengths of the N terminal devices in the second time period and the first strength threshold includes: When at least part of the signal strengths of the N terminal devices in the second time period are less than the first strength threshold, the transmission power of the 2.4G WIFI network is increased from the second transmission power to a third transmission power, and the third transmission power is less than the first transmission power.

8. The method according to claim 1 or 2, It is characterized in that The M terminal devices include devices stably connected to the network device and devices unstably connected to the network device.

9. A network device, It is characterized in that include: Memory, for storing computer instructions; A processor, configured to call the computer instructions stored in the memory to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, It is characterized in that Used to store computer instructions, wherein the computer instructions are used to implement the method according to any one of claims 1 to 8.

11. A chip, It is characterized in that The chip comprises: Memory: used to store instructions; A processor, configured to call and execute the instructions from the memory, so that a communication device equipped with the chip system executes the method as claimed in any one of claims 1 to 8.