CN117135738A - WIFI communication method, device and network equipment - Google Patents
WIFI communication method, device and network equipment Download PDFInfo
- Publication number
- CN117135738A CN117135738A CN202310488054.6A CN202310488054A CN117135738A CN 117135738 A CN117135738 A CN 117135738A CN 202310488054 A CN202310488054 A CN 202310488054A CN 117135738 A CN117135738 A CN 117135738A
- Authority
- CN
- China
- Prior art keywords
- network
- wifi network
- wifi
- transmission power
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 216
- 238000004891 communication Methods 0.000 title claims abstract description 64
- 230000005540 biological transmission Effects 0.000 claims abstract description 178
- 238000001514 detection method Methods 0.000 claims description 381
- 230000004044 response Effects 0.000 claims description 107
- 239000000523 sample Substances 0.000 claims description 11
- 230000008569 process Effects 0.000 description 73
- 230000008859 change Effects 0.000 description 34
- 238000012545 processing Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/245—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/38—TPC being performed in particular situations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/14—Backbone network devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请涉及WIFI领域,提供了一种WIFI通信的方法、装置和网络设备。在该方法中,网络设备获取第一时段内与该网络设备通过2.4G WIFI网络连接的M个终端设备的信号强度,在M个终端设备在第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率。这样,在尽量避免对2.4G WIFI网络造成较大影响情况下,会有尽可能多的覆盖区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,那么,在5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度的覆盖区域内,终端设备会优先扫描到5G WIFI网络,从而接入至5G WIFI网络,以提高用户体验。
This application relates to the field of WIFI and provides a WIFI communication method, device and network equipment. In this method, the network device obtains the signal strengths of M terminal devices connected to the network device through the 2.4G WIFI network in the first period, and at least part of the signal strengths of the M terminal devices in the first period If it is greater than the first intensity threshold, 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 trying to avoid having a major impact on the 2.4G WIFI network, 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. Then, the signal strength of the 5G WIFI network In a coverage area with a signal strength greater than that of the 2.4G WIFI network, the terminal device will scan the 5G WIFI network first and then access the 5G WIFI network to improve user experience.
Description
技术领域Technical field
本申请涉及WIFI领域,更具体地,涉及WIFI领域中一种WIFI通信的方法、装置和网络设备。The present application relates to the WIFI field, and more specifically, to a WIFI communication method, device and network equipment in the WIFI field.
背景技术Background technique
目前,网络设备普遍支持5G无线保真(wireless-fidelity,WIFI)网络和2.4GWIFI网络,相比于2.4G WiFi网络,5G WIFI网络更易衰减变弱,因此,很多情况下同一位置处2.4G WIFI网络的信号较强,终端设备接入WIFI网络时,一般会优先接入信号强度好的2.4G WIFI网络,而不再接入5G WIFI网络,导致用户体验较差。At present, network equipment generally supports 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, 2.4G WIFI networks are used at the same location. The signal of the network is strong. When a terminal device connects to a WIFI network, it will generally give priority to the 2.4G WIFI network with good signal strength and no longer access the 5G WIFI network, resulting in poor user experience.
发明内容Contents of the invention
本申请实施例提供一种WIFI通信的方法、装置和网络设备,能够尽可能使得终端设备优先接入5G WIFI网络,以提高用户体验。Embodiments of the present application provide a WIFI communication method, device and network equipment, which can enable terminal devices to access the 5G WIFI network preferentially as much as possible to improve user experience.
第一方面,提供了一种WIFI通信的方法,应用于网络设备中,所述网络设备支持2.4GWIFI网络和5G WIFI网络,该方法包括:In the first aspect, a WIFI communication method is provided, which is applied to network equipment. The network equipment supports 2.4G WIFI network and 5G WIFI network. The method includes:
获取在第一时段内与所述网络设备通过所述2.4G WIFI网络连接的M个终端设备的第一信号信息,所述第一信号信息用于指示所述M个终端设备在所述第一时段内的信号强度,M为大于或等于1的整数;Obtain first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within the first period, where the first signal information is used to indicate that the M terminal devices are connected to the first network device through the 2.4G WIFI network. The signal strength within the period, M is an integer greater than or equal to 1;
在所述M个终端设备在所述第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率。In the case where at least part of the signal strengths of the M terminal devices in the first period are greater than the first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the third transmission power. 2. Transmit power.
本申请实施例提供的WIFI通信的方法,网络设备获取第一时段内与该网络设备通过2.4GWIFI网络连接的M个终端设备的信号强度,在M个终端设备在第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,意味着当前2.4G WIFI网络的信号强度整体较好,因此,降低2.4G WIFI网络的发射功率,将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率。这样,在尽量避免对2.4G WIFI网络造成较大影响情况下,会有尽可能多的覆盖区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,那么,在5GWIFI网络的信号强度大于2.4G WIFI网络的信号强度的覆盖区域内,终端设备会优先扫描到5G WIFI网络,从而接入至5G WIFI网络,以提高用户体验。In the WIFI communication method provided by the embodiment of the present application, the network device obtains the signal strengths of M terminal devices connected to the network device through the 2.4G WIFI network in the first period. Among the signal strengths of the M terminal devices in the first period When at least some of the signal strengths are greater than the first strength threshold, it means that the overall signal strength of the current 2.4G WIFI network is better. Therefore, the transmission power of the 2.4G WIFI network is reduced and the transmission power of the 2.4G WIFI network is changed from the first strength threshold to the first strength threshold. The transmit power is reduced to the second transmit power. In this way, while trying to avoid having a major impact on the 2.4G WIFI network, 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. Then, the signal strength of the 5G WIFI network is greater than Within the coverage area of the 2.4G WIFI network's signal strength, the terminal device will scan the 5G WIFI network first and then access the 5G WIFI network to improve user experience.
在第一方面的任一种可能的实现方式中,所述至少部分信号强度为所述M个终端设备在所述第一时段内的信号强度中的全部信号强度。In any possible implementation manner of the first aspect, the at least part of the signal strength is all signal strengths of the signal strengths of the M terminal devices within the first period.
本申请实施例提供的WIFI通信的方法,通过判定M个终端设备在第一时段内的信号强度中的全部信号强度大于第一强度阈值的情况下降低2.4G WIFI网络的发射功率,可以最小程度地减少由于降低2.4G WIFI网络的发射功率对2.4G业务的影响,整体提高通信的稳定性。The WIFI communication method provided by the embodiment of the present application reduces the transmission power of the 2.4G WIFI network to the minimum extent by determining that all signal strengths of the M terminal devices in the first period are greater than the first strength threshold. It greatly reduces the impact on 2.4G services due to reducing the transmission power of the 2.4G WIFI network, and improves the overall stability of communication.
在第一方面的任一种可能的实现方式中,所述将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率,包括:In any possible implementation 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:
将所述至少部分信号强度中信号强度最差的信号强度确定为目标信号强度;Determine the signal strength with the worst signal strength among the at least partial signal strengths as the target signal strength;
根据所述目标信号强度与第二强度阈值之间的强度差值,确定所述2.4G WIFI网络的发射功率的调整幅度,所述第二强度阈值小于所述第一强度阈值;Determine the adjustment amplitude of the transmission power of the 2.4G WIFI network based on the strength difference between the target signal strength and a second strength threshold, where the second strength threshold is smaller than the first strength threshold;
在所述调整幅度内,将所述2.4G WIFI网络的发射功率由所述第一发射功率下降至所述第二发射功率。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.
本申请实施例提供的WIFI通信的方法,由于目标信号强度是M个终端设备在第一时段内的信号强度中至少部分信号强度中信号强度最差的信号强度以及第二强度阈值是用于表征能够进行正常通信的信号强度的最低值,通过目标信号强度与第二强度阈值之间的强度差值确定2.4G WIFI网络的发射功率的调整幅度,调整幅度可以表示发射功率能够调整的最大值,因此,在调整幅度内降低2.4G WIFI网络的发射功率,发射功率的功率变化值不至于过大,调整后的2.4G WIFI网络的信号强度不会很差而是在能够正常通信的范围内,对2.4G WIFI网络的影响也不大,同时,也能尽可能使得更多覆盖区域的5G WIFI网络的信号强度大于2.4GWIFI网络的信号强度,以便于终端设备优先接入5G WIFI网络,以提高用户体验。总之,在调整幅度内降低2.4G WIFI网络的发射功率,能更好地兼顾2.4G WIFI网络的正常通信以及5G WIFI网络的优先接入。In the WIFI communication method provided by the embodiment of the present application, since the target signal strength is the worst signal strength among at least part of the signal strengths of the M terminal devices in the first period, and the second strength threshold is used to characterize The lowest value of signal strength that enables normal communication is determined by the strength difference between the target signal strength and the second strength threshold. The adjustment amplitude of the transmission power of the 2.4G WIFI network can be expressed as the maximum value that the transmission power can be adjusted. Therefore, by reducing the transmit power of the 2.4G WIFI network within the adjustment range, the power change value of the transmit power will not be too large. The signal strength of the adjusted 2.4G WIFI network will not be poor but within the range of normal communication. The impact on the 2.4G WIFI network will not be significant. At the same time, the signal strength of the 5G WIFI network in as many coverage areas as possible can be greater than the signal strength of the 2.4G WIFI network, so that terminal devices can access the 5G WIFI network first to improve 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.
在第一方面的任一种可能的实现方式中,所述第一发射功率与所述第二发射功率之间的功率变化值小于所述调整幅度。In any possible implementation manner of the first aspect, the power change value between the first transmission power and the second transmission power is smaller than the adjustment amplitude.
本申请实施例提供的WIFI通信的方法,在调整幅度内降低2.4G WIFI网络的发射功率时,第一发射功率和第二发射功率之间的功率变化值小于调整幅度,即仅降低调整幅度的一部分,预留调整幅度的一部分余量,这样,能够较好地应对网络由于各种异常导致的动态变化,更好地使得调整后的2.4G WIFI网络的信号强度不会很差,从而进一步减少对2.4G WIFI网络的影响。In the WIFI communication method provided by the embodiment of the present application, when the transmission power of the 2.4G WIFI network is reduced within the adjustment range, the power change value between the first transmission power and the second transmission power is less than the adjustment range, that is, only the adjustment range is reduced Part of the adjustment range is reserved for part of the margin. In this way, it can better cope with the dynamic changes in the network due to various abnormalities, and better ensure that the signal strength of the adjusted 2.4G WIFI network will not be very poor, thereby further reducing Impact on 2.4G WIFI network.
在第一方面的任一种可能的实现方式中,在所述将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率之后,所述方法还包括:In any possible implementation of the first aspect, 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:
获取在第二时段内与所述网络设备通过所述2.4G WIFI网络连接的N个终端设备的第二信号信息,所述第二信号信息用于指示所述N个终端设备在所述第二时段内的信号强度;Obtain second signal information of N terminal devices connected to the network device through the 2.4G WIFI network within the second period, where the second signal information is used to indicate that the N terminal devices are connected to the network device through the 2.4G WIFI network in the second period. Signal strength during the period;
根据所述N个终端设备在所述第二时段内的信号强度和所述第一强度阈值,确定是否继续降低所述2.4G WIFI网络的发射功率;Determine 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 period and the first strength threshold;
其中,所述第二时段的时长小于所述第一时段的时长,N为大于或等于1的整数。Wherein, the duration of the second period is shorter than the duration of the first period, and N is an integer greater than or equal to 1.
本申请实施例提供的WIFI通信的方法,网络设备可以每隔一段时间获取与网络设备连接的终端设备的信号强度,以根据信号强度确定是否降低2.4G WIFI网络的信号强度,在根据第一时段的M个终端设备的信号强度将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率后,根据获取的第一时段之后的第二时段内的N个终端设备的信号强度确定是否继续降低2.4G WIFI网络的信号强度,通过将第二时段的时长设置的小于第一时段的时长,可以较快地检测降低2.4G WIFI网络的发射功率后的2.4G WIFI网络的信号强度,以便于网络设备及时做出调整。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 based on the signal strength. According to the first period After reducing the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, the signal strengths of the M terminal devices are determined based on the obtained signal strengths of the N terminal devices in the second period after the first period. Whether to continue to reduce the signal strength of the 2.4G WIFI network, by setting the duration of the second period to be shorter than the duration of the first period, the signal strength of the 2.4G WIFI network after reducing the transmission power of the 2.4G WIFI network can be quickly detected. In order to facilitate network equipment to make timely adjustments.
在第一方面的任一种可能的实现方式中,所述获取在第一时段内与所述网络设备通过所述2.4G WIFI网络连接的M个终端设备的第一信号信息,包括;In any possible implementation of the first aspect, the obtaining the first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within the first period includes;
在所述第一时段内,按照第一时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第一信号信息;以及,During the first period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the first duration to obtain the first signal information; and,
所述获取在第二时段内与所述网络设备通过所述2.4G WIFI网络连接的N个终端设备的第二信号信息,包括:The obtaining of second signal information of N terminal devices connected to the network device through the 2.4G WIFI network within the second period includes:
在所述第二时段内,按照第二时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第二信号信息;During the second period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the second duration to obtain the second signal information;
其中,所述第二时长小于所述第一时长。Wherein, the second duration is shorter than the first duration.
本申请实施例提供的WIFI通信的方法,为了避免在时长较短的第二时段内获取到的信号强度的数量过少,将第二时长设置的较短,即,第二时长小于第一时长,这样,可以在时长较短的第二时段内获取到一定数量的信号强度,有利于较快地检测降低后的2.4GWIFI网络的信号强度,以便于网络设备及时做出调整。In the WIFI communication method provided by the embodiment of the present application, in order to avoid obtaining too few signal strengths during the shorter second period, the second period is set shorter, that is, the second period is shorter than the first period. , In this way, a certain amount of signal strength can be obtained in the shorter second period, which is conducive to quickly detecting the reduced signal strength of the 2.4GWIFI network, so that the network equipment can make timely adjustments.
在第一方面的任一种可能的实现方式中,所述根据所述N个终端设备在所述第二时段内的信号强度和所述第一强度阈值,确定是否继续降低所述2.4G WIFI网络的发射功率,包括:In any possible implementation of the first aspect, determining whether to continue to reduce the 2.4G WIFI is based on the signal strengths of the N terminal devices in the second period and the first strength threshold. The transmit power of the network, including:
在所述N个终端设备在所述第二时段内的信号强度中的至少部分信号强度小于所述第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由所述第二发射功率提高至第三发射功率,所述第三发射功率小于所述第一发射功率。In the case where at least part of the signal strengths of the N terminal devices in the second period are less than the first strength threshold, the transmit power of the 2.4G WIFI network is changed from the second transmitter to the second transmitter. The power is increased to a third transmit power that is less than the first transmit power.
本申请实施例提供的WIFI通信的方法,网络设备可以每隔一段时间获取与网络设备连接的终端设备的信号强度,以根据信号强度确定是否降低2.4G WIFI网络的信号强度,在根据第一时段的M个终端设备的信号强度将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率后,获取第一时段之后的第二时段内的N个终端设备的信号强度,在N个终端设备的信号强度的至少部分信号强度小于第一强度阈值的情况下,表示第二时段内2.4G WIFI网络的信号强度较差,通过提高2.4G WIFI网络的发射功率,即,将2.4G WIFI网络的发射功率由第二发射功率提高至第三发射功率,第三发射功率小于第一发射功率,这样,网络设备可以根据信号强度的情况实时动态调整2.4G WIFI网络的发射功率,以尽可能长期保持2.4G WIFI网络的稳定性,同时,也能一定程度上降低2.4G WIFI网络的发射功率,尽可能使得终端设备接入至5G WIFI网络,以提高用户体验。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 based on the signal strength. According to the first period The signal strengths of the M terminal devices. After reducing the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, obtain the signal strengths of the N terminal devices in the second period after the first period. In N If at least part of the signal strengths of the terminal devices is less than the first strength threshold, it means that the signal strength of the 2.4G WIFI network in the second period is poor. By increasing the transmission power of the 2.4G WIFI network, that is, changing the 2.4G WIFI network to The transmit power of the WIFI network is increased from the second transmit power to the third transmit power, and the third transmit power is smaller than the first transmit power. In this way, the network device can dynamically adjust the transmit power of the 2.4G WIFI network in real time according to the signal strength to maximize the It is possible to maintain the stability of the 2.4G WIFI network for a long time. At the same time, it can also reduce the transmission power of the 2.4G WIFI network to a certain extent, allowing terminal devices to access the 5G WIFI network as much as possible to improve user experience.
在第一方面的任一种可能的实现方式中,所述M个终端设备包括与所述网络设备稳定连接的设备以及与所述网络设备非稳定连接的设备。In any possible implementation manner of the first aspect, the M terminal devices include devices that are stably connected to the network device and devices that are not stably connected to the network device.
在第一方面的任一种可能的实现方式中,在所述将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率之后,所述方法还包括:In any possible implementation of the first aspect, 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:
接收第一终端设备发送的所述5G WIFI网络的5G探测请求和所述2.4GWIFI网络的2.4G探测请求;Receive the 5G detection request of the 5G WIFI network and the 2.4G detection request of the 2.4GWIFI network sent by the first terminal device;
向所述第一终端设备发送针对所述5G探测请求的5G探测响应,以将所述第一终端设备接入至所述5G WIFI网络中。Send a 5G detection response to the 5G detection request to the first terminal device to access the first terminal device to the 5G WIFI network.
第二方面,提供了一种WIFI通信的方法,应用于网络设备中,所述网络设备支持5GWIFI网络和2.4G WIFI网络,所述方法包括:In the second aspect, a WIFI communication method is provided, which is applied to network equipment. The network equipment supports 5G WIFI network and 2.4G WIFI network. The method includes:
在接收到终端设备发送的所述2.4G WIFI网络的第一2.4G探测请求且未接收到所述终端设备发送的所述5G WIFI网络的第一5G探测请求的情况下,开启定时器;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 sent by the terminal device is not received, start the timer;
若在所述定时器的时长内接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一5G探测请求的第一5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。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 access the terminal device. The 5G WIFI network.
本申请实施例提供的WIFI通信的方法,相比于现有技术中网络设备接收到第一2.4G探测请求后就响应第一2.4G探测请求从而将终端设备接入至2.4G WIFI网络的方案,本申请实施例通过在网络设备内配置用于等待第一5G探测请求的定时器,网络设备在接收到终端设备发送的第一2.4G探测请求后,暂不响应第一2.4G探测请求,而是开启定时器,在定时器的时长内等待第一5G探测请求,若在定时器的时长内接收到第一5G探测请求,则响应5GWIFI网络的探测请求,这样,可以优先接入5G WIFI网络,从而提高用户体验。The WIFI communication method provided by the embodiment of the present application is compared with the prior art solution in which the network device responds to the first 2.4G detection request after receiving the first 2.4G detection request, thereby connecting 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 temporarily does not respond to the first 2.4G detection request. Instead, start the timer and wait for the first 5G detection request within the timer's duration. If the first 5G detection request is received within the timer's duration, it will respond to the detection request of the 5GWIFI network. In this way, you can access the 5G WIFI first. network to improve user experience.
在第二方面的任一种可能的实现方式中,所述方法还包括:In any possible implementation of the second aspect, the method further includes:
若在所述定时器的时长内未接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一2.4G探测请求的第一2.4G探测响应,以将所述终端设备接入至所述2.4GWIFI网络中。If the first 5G detection request is not received within the duration of the timer, send a first 2.4G detection response to the first 2.4G detection request to the terminal device, so that the terminal device Connect to the 2.4GWIFI network.
本申请实施例提供的WIFI通信的方法,网络设备在接收到终端设备发送的第一2.4G探测请求后,暂不响应第一2.4G探测请求,而是开启定时器,在定时器的时长内等待第一5G探测请求,若在定时器的时长内未接收到第一5G探测请求,则向终端设备发送第一2.4G探测响应,这样,在短期内不利于或者无法接入5G WIFI网络的情况下,接入2.4G WIFI网络,以优先保证终端设备接入至WIFI网络中,不影响用户的上网需求。In the WIFI communication method provided by the embodiment of this 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 the timer. Within the timer duration, the network device does not respond to the first 2.4G detection request. Wait for the first 5G detection request. If the first 5G detection request is not received within the timer, the first 2.4G detection response is sent to the terminal device. In this way, it is not conducive to or unable to access the 5G WIFI network in the short term. In this case, access the 2.4G WIFI network to give priority to ensure that the terminal device is connected to the WIFI network and does not affect the user's Internet access needs.
在第二方面的任一种可能的实现方式中,所述终端设备不支持所述5G WIFI网络;或,In any possible implementation of the second aspect, the terminal device does not support the 5G WIFI network; or,
所述终端设备支持所述5G WIFI网络,且在所述终端设备向所述网络设备发送所述第一2.4G探测请求之前,所述终端设备与所述网络设备通过所述2.4G WIFI网络通信连接。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 communicate through the 2.4G WIFI network connect.
在第二方面的任一种可能的实现方式中,在接收到所述终端设备发送的所述第一5G探测请求且未接收到所述终端设备发送的所述第一2.4G探测请求的情况下,不开启所述定时器,且向所述终端设备发送所述第一5G探测响应,以将所述终端设备接入至所述5GWIFI网络中。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 Next, the timer is not started, and the first 5G detection response is sent to the terminal device to access the terminal device to the 5G WIFI network.
在第二方面的任一种可能的实现方式中,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过单播方式发送的。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.
在第二方面的任一种可能的实现方式中,在所述开启定时器之前,所述方法还包括:In any possible implementation of the second aspect, before starting the timer, the method further includes:
向所述终端设备发送所述2.4G WIFI网络的2.4G信标帧和所述5G WIFI网络的5G信标帧。Send the 2.4G beacon frame of the 2.4G WIFI network and the 5G beacon frame of the 5G WIFI network to the terminal device.
在第二方面的任一种可能的实现方式中,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过广播方式发送的;以及,在所述向所述终端设备发送针对所述第一5G探测请求的第一5G探测响应之后,所述方法还包括: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 broadcast manner; and, in the step of sending the first 2.4G detection request to the terminal device, After the device sends the first 5G detection response to the first 5G detection request, the method further includes:
接收所述终端设备通过单播方式发送的第二5G探测请求;Receive the second 5G detection request sent by the terminal device in a unicast manner;
向所述终端设备发送针对所述第二5G探测请求的第二5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。Send a second 5G detection response to the second 5G detection request to the terminal device to access the terminal device to the 5G WIFI network.
在第二方面的任一种可能的实现方式中,所述定时器的时长小于或等于2秒。In any possible implementation manner of the second aspect, the duration of the timer is less than or equal to 2 seconds.
第三方面,提供了一种WIFI通信的方法,应用于终端设备,所述终端设备支持5GWIFI网络和2.4G WIFI网络,所述方法包括:In a third aspect, a WIFI communication method is provided, applied to terminal equipment, and the terminal equipment supports 5G WIFI network and 2.4G WIFI network. The method includes:
向网络设备发送所述2.4G WIFI网络的第一2.4G探测请求和所述5G WIFI网络的第一5G探测请求;Send 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;
接收所述网络设备发送的针对所述第一5G探测请求的第一5G探测响应;Receive a first 5G detection response sent by the network device in response to the first 5G detection request;
接入所述5G WIFI网络中。Access the 5G WIFI network.
在第三方面的任一种可能的实现方式中,在所述向网络设备发送所述2.4G WIFI网络的第一2.4G探测请求和所述5G WIFI网络的第一5G探测请求之前,所述方法还包括: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 Methods also include:
接收所述网络设备发送的所述2.4G WIFI网络的2.4G信标帧和所述5G WIFI网络的5G信标帧。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.
第四方面,提供一种网络设备,所述网络设备用于执行上述第一方面或第二方面提供的方法。具体地,所述网络设备可以包括用于执行上述第一方面或第二方面任一种可能实现方式的模块。A fourth aspect provides a network device configured to execute the method provided in the first aspect or the second aspect. Specifically, the network device may include a module for performing any possible implementation of the first aspect or the second aspect.
第五方面,提供一种终端设备,所述终端设备用于执行上述第三方面提供的方法。具体地,所述终端设备可以包括用于执行上述第三方面中任一种可能实现方式的模块。In a fifth aspect, a terminal device is provided, and the terminal device is configured to execute the method provided in the third aspect. Specifically, the terminal device may include a module for performing any of the possible implementations of the third aspect.
第六方面,提供一种网络设备,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面或第二方面中任一种可能实现方式中的方法。可选地,该网络设备还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。A sixth aspect provides a network device including a processor. The processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any of the possible implementations of the first aspect or the second aspect. Optionally, the network device also includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.
第七方面,提供一种终端设备,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第三方面中任一种可能实现方式中的方法。可选地,该终端设备还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In a seventh aspect, a terminal device is provided, including a processor. The processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any possible implementation manner of the third aspect. Optionally, the terminal device further includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.
第八方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被装置执行时,使得所述装置实现上述第一方面、第二方面或第三方面中任一种可能实现方式中的方法。An eighth aspect provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a device, it causes the device to implement any one of the above-mentioned first, second or third aspects. Methods in possible implementations.
第九方面,提供一种包含指令的计算机程序产品,所述指令被计算机执行时使得装置实现上述第一方面、第二方面或第三方面中任一种可能实现方式中的方法。A ninth aspect provides a computer program product containing instructions that, when executed by a computer, cause a device to implement the method in any of the possible implementations of the first aspect, the second aspect, or the third aspect.
第十方面,提供一种芯片,包括:输入接口、输出接口、处理器和存储器,所述输入接口、输出接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码被执行时,所述处理器用于执行上述第一方面、第二方面或第三方面中任一种可能实现方式中的方法。In a tenth aspect, a chip is provided, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor uses In order to execute the code in the memory, when the code is executed, the processor is configured to execute the method in any one of the possible implementations of the first aspect, the second aspect or the third aspect.
附图说明Description of the drawings
图1是本申请实施例提供的无线通信系统的示意性结构图。Figure 1 is a schematic structural diagram of a wireless communication system provided by an embodiment of the present application.
图2是本申请实施例提供的终端设备接入WIFI网络的方法的示意性流程图。Figure 2 is a schematic flow chart of a method for a terminal device to access a WIFI network provided by an embodiment of the present application.
图3a是本申请实施例提供的在网络设备和终端设备均支持2.4G WIFI网络和5GWIFI网络时终端设备接入WIFI网络的方法的示例性流程图。Figure 3a is an exemplary flow chart of a method for a terminal device to access a WIFI network when both the network device and the terminal device support the 2.4G WIFI network and the 5G WIFI network provided by the embodiment of the present application.
图3b是本申请实施例提供的在网络设备和终端设备均支持2.4G WIFI网络和5GWIFI网络时终端设备接入WIFI网络的方法的另一示例性流程图。Figure 3b is another exemplary flow chart of a method for a terminal device to access a WIFI network when both the network device and the terminal device support the 2.4G WIFI network and the 5G WIFI network provided by the embodiment of the present application.
图4是本申请实施例提供的WIFI通信的方法的示意性流程图。Figure 4 is a schematic flow chart of a WIFI communication method provided by an embodiment of the present application.
图5是本申请实施例提供的降低2.G WIFI网络的发射功率之前和之后网络设备的覆盖区域内的状态变化的示意图。Figure 5 is a schematic diagram of 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.
图6a是本申请实施例提供的降低2.4G WIFI网络的发射功率后终端设备接入WIFI网络的过程的示意性流程图。Figure 6a is a schematic flow chart of the process of a terminal device accessing the WIFI network after reducing the transmission power of the 2.4G WIFI network provided by the embodiment of the present application.
图6b是本申请实施例提供的降低2.4G WIFI网络的发射功率后终端设备接入WIFI网络的过程的另一示意性流程图。Figure 6b is another schematic flow chart of the process of a terminal device accessing the WIFI network after reducing the transmission power of the 2.4G WIFI network provided by the embodiment of the present application.
图7是本申请实施例提供的WIFI通信的方法的示意性流程图。Figure 7 is a schematic flow chart of the WIFI communication method provided by the embodiment of the present application.
图8a是本申请实施例提供的WIFI通信的方法的示意性交互图。Figure 8a is a schematic interaction diagram of the WIFI communication method provided by the embodiment of the present application.
图8b是本申请实施例提供的WIFI通信的方法的另一示意性交互图。Figure 8b is another schematic interaction diagram of the WIFI communication method provided by the embodiment of the present application.
图9是本申请实施例提供的WIFI通信的装置的示例性框图。Figure 9 is an exemplary block diagram of a WIFI communication device provided by an embodiment of the present application.
图10本申请实施例提供的WIFI通信的装置的示意性结构图。Figure 10 is a schematic structural diagram of a WIFI communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in this application will be described below with reference to the accompanying drawings.
图1是本申请实施例提供的无线通信系统的示意架构图。Figure 1 is a schematic architecture diagram of a wireless communication system provided by an embodiment of the present application.
应理解,图1示出的无线通信系统仅为示意性说明,不应对本申请实施例构成限定。例如,无线通信系统中还可以包括更多或更少的网络设备以及终端设备等。It should be understood that the wireless communication system shown in Figure 1 is only a schematic illustration and should not limit the embodiments of the present application. For example, the wireless communication system may also include more or less network devices and terminal devices.
参考图1,无线通信系统包括网络设备110和至少一个终端设备,例如,该至少一个终端设备包括终端设备121(例如,手机)、终端设备122(例如,笔记本电脑)和终端设备123(例如,平板电脑),网络设备110与该至少一个终端设备通过WIFI网络连接。Referring to Figure 1, a 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 (eg, a mobile phone), a terminal device 122 (eg, a laptop computer), and a terminal device 123 (eg, Tablet computer), the network device 110 is connected to the at least one terminal device through a WIFI network.
网络设备和终端设备可以支持至少一个频段的WIFI网络。Network equipment and terminal equipment can support at least one frequency band of WIFI network.
对于网络设备,网络设备可以支持一个频段的WIFI网络,该WIFI网络可以是2.4GWIFI网络;网络设备也可以支持多个频段的WIFI网络,例如,该多个频段的WIFI网络至少包括2.4G WIFI网络和5G WIFI网络,还可以包括其他频段的WIFI网络。For network equipment, the network equipment can support a WIFI network of one frequency band, and the WIFI network can be a 2.4G WIFI network; the network equipment 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 5G WIFI networks, and can also include WIFI networks in other frequency bands.
对于终端设备,终端设备可以支持一个频段的WIFI网络,该WIFI网络可以是2.4GWIFI网络;终端设备也可以支持多个频段的WIFI网络,例如,该多个频段的WIFI网络至少包括2.4G WIFI网络和5G WIFI网络,还可以包括其他频段的WIFI网络。For terminal equipment, the terminal equipment can support a WIFI network of one frequency band, and the WIFI network can be a 2.4G WIFI network; the terminal equipment 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 5G WIFI networks, and can also include WIFI networks in other frequency bands.
应理解,2.4G WIFI网络表示WIFI网络的工作频段是2.4Ghz,带宽范围大约是2.4Ghz~2.48Ghz。5G WIFI网络表示WIFI网络的工作频段是5Ghz,带宽范围大约是4.9Ghz~5.9Ghz。It should be understood that the 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 ~ 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~5.9Ghz.
当网络设备与多个终端设备连接时,网络设备与多个终端设备可以通过同一个频段的WIFI网络连接,也可以通过不同频段的WIFI网络连接。以图1为例,3个终端设备均与网络设备110连接,且均通过2.4GWIFI网络连接。再例如,网络设备110与终端设备121和终端设备122通过5G WIFI网络连接,网络设备110与终端设备123通过2.4G WIFI网络连接。When the network device is connected to multiple terminal devices, the network device and the multiple terminal devices can be connected through the WIFI network of the same frequency band, or they can be connected through WIFI networks of different frequency bands. Taking Figure 1 as an example, three terminal devices are all connected to the network device 110, and are all connected through the 2.4GWIFI network. For another example, the network device 110 is connected to the terminal device 121 and the terminal device 122 through a 5G WIFI network, and the network device 110 is connected to the terminal device 123 through a 2.4G WIFI network.
本申请实施例的网络设备可以称为无线接入点(access point,AP),用于为终端设备提供WIFI网络。The network device in this embodiment of the present application may be called a wireless access point (AP), and is used to provide a WIFI network for terminal devices.
无线AP又叫无线接入点,俗称"热点",是组建小型无线局域网时最常用的设备。AP相当于一个连接有线网和无线网的桥梁,其主要作用是将各个无线网络的客户端连接到一起,然后将无线网络接入以太网。目前的无线AP可分为两类:单纯型AP和扩展型AP。Wireless AP, also called wireless access point, commonly known as "hotspot", is the most commonly used device when building a small wireless LAN. The AP is equivalent to a bridge connecting the wired network and the wireless network. Its main function is to connect the clients of each wireless network together, and then connect the wireless network to the Ethernet. Current wireless APs can be divided into two categories: simple APs and extended APs.
单纯型AP只负责无线终端的接入,相当于无线交换机,仅仅是提供一个无线信号发射的功能。单纯型AP的典型距离覆盖几十米至上百米,也有可以用于远距离传送,目前最远的可以达到30km左右,主要技术为IEEE802.11系列。单纯型AP应用于大型公司比较多,大的公司需要大量的无线访问节点实现大面积的网络覆盖,同时所有接入终端都属于同一个网络,也方便公司网络管理员简单地实现网络控制和管理。A simple AP is only responsible for the access of wireless terminals. It is equivalent to a wireless switch and only provides a wireless signal transmission function. The typical distance of simple AP covers tens of meters to hundreds of meters, and some can also be used for long-distance transmission. Currently, the farthest one can reach about 30km. The main technology is IEEE802.11 series. Simple APs are 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 also facilitates company network administrators to simply implement network control and management. .
扩展型AP就是我们常说的无线路由器,可以理解为一个带路由功能的无线AP,主要应用于用户上网和无线覆盖,不仅具备单纯型无线AP所有功能,而且还包括了网络地址转换功能,可支持局域网用户的网络连接共享。通过路由功能,可以实现家庭无线网络中的Internet连接共享,也能实现非对称数字用户环路(asymmetric digital subscriberline,ADSL)和小区宽带的无线共享接入。此外,可以通过无线路由器把无线和有线连接的终端都分配到一个子网,使得子网内的各种设备可以方便的交换数据。无线路由器一般应用于家庭和家居办公(small office,home office,SOHO)环境网络,这种情况一般覆盖面积和使用用户都不大,只需要一个无线AP就够用了。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 user Internet access and wireless coverage. It not only has all the functions of a simple wireless AP, but also includes the network address translation function. Supports network connection sharing for 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 also be realized. In addition, wireless and wired connected terminals can be assigned to a subnet through a wireless router, so that various devices in the subnet can easily exchange data. 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 small, and only one wireless AP is enough.
本申请实施例的终端设备可以称为站点(station,STA)。示例性地,终端设备可以是例如手机、智能手表、智能手环、平板电脑、桌面型计算机、膝上型计算机、无线手柄、无线音箱、无线台灯等各种支持WIFI网络的设备。The terminal device in this embodiment of the present application may be called a station (STA). For example, the terminal device may be various devices that support WIFI networks, such as mobile phones, smart watches, smart bracelets, tablets, desktop computers, laptops, wireless handles, wireless speakers, wireless desk lamps, etc.
图2是本申请实施例提供的终端设备接入WIFI网络的方法200的示意性流程图。Figure 2 is a schematic flow chart of a method 200 for a terminal device to access a WIFI network provided by an embodiment of the present application.
步骤S210是扫描(scanning)过程,终端设备在连接到网络设备之前,首先需要发现网络设备,简单理解,扫描过程就是搜索终端设备周围的WIFI网络的过程。Step S210 is a scanning process. Before the terminal device connects to the network device, it first needs to discover the network device. To simply understand, the scanning process is the process of searching for WIFI networks around the terminal device.
扫描过程可以通过两种扫描方式进行扫描:主动扫描(active scanning)和被动扫描(passivescanning),主动扫描包括步骤S212和步骤S213,被动扫描包括步骤S211、步骤S212和步骤S213。以下,对被动扫描和主动扫描的过程分别做具体描述。The scanning process can be carried out in two scanning modes: active scanning and passive scanning. Active scanning includes steps S212 and S213, and passive scanning includes steps S211, S212 and S213. Below, the processes of passive scanning and active scanning are described in detail respectively.
1、被动扫描1. Passive scanning
在步骤S211中,网络设备A广播信标帧。In step S211, network device A broadcasts a beacon frame.
对应地,终端设备A监听信标帧,且将收到的信标帧暂存,以便于后续取出传送信标帧的基本服务集(basic service set,BSS)的相关数据。应理解,网络设备A会在网络设备A支持的信道上广播信标帧,终端设备A会在信道列表(channel list)所列的各个信道之间不断切换,以监听信标帧。Correspondingly, terminal device A monitors the beacon frame and temporarily stores the received beacon frame so as to subsequently retrieve relevant data of the basic service set (BSS) that transmits the beacon frame. It should be understood that network device A will broadcast beacon frames on the channels supported by network device A, and terminal device A will continuously switch between channels listed in the channel list to listen for beacon frames.
BSS是一个AP覆盖的范围,是无线网络的基本服务单元,通常由一个AP和至少一个STA组成,如图1所示的由一个网络设备(AP)和3个终端设备(STA)可以组成一个BBS。BSS is the coverage area of an AP and is the basic service unit of the wireless network. It usually consists of one AP and at least one STA. As shown in Figure 1, it can be composed of one network device (AP) and three terminal devices (STA). BBS.
其中,信标帧包括网络设备A支持的WIFI网络的服务集标识(service setidentity,SSID)、网络设备A支持的WIFI网络的基本服务集标识(basic serviceSetidentifier,BSSID)以及其他用于加入BSS的信息。Among them, the beacon frame includes the service set identity (SSID) of the WIFI network supported by network device A, the basic service set identifier (BSSID) of the WIFI network supported by network device A, and other information used to join the BSS. .
SSID可以理解为无线局域网的标识或名称,通常,SSID就是终端设备搜索到的显示在界面的WIFI名称,例如,airport、China_CMCC、office1等。BSSID可以理解为WIFI网络的媒体访问控制(media access control,MAC)地址,也称为物理地址,例如:0025.9e45.240。SSID can be understood as the identification or name of a wireless LAN. Usually, the SSID is the WIFI name displayed on the interface searched by the terminal device, for example, 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.
示例性地,其他用于加入BBS的信息可以包括例如时戳位(timestamp)、无线局域网的支持速率(supported rates)、跳频参数组合(PH parameter set)、直接序列参数集合(DS parameter set)、免竞争参数集合(CF parameter set)、功率限制(powerconstraint)、信道切换宣告(channel switch announcement)等信息。应理解,此处列举的用于加入BBS的信息仅为示意性说明,还可以包括其他更多的信息,具体内容可参考相关技术,不再赘述。Exemplarily, other information used to join the BBS may include, for example, timestamp bits (timestamp), supported rates of wireless LAN (supported rates), frequency hopping parameter set (PH parameter set), direct sequence parameter set (DS parameter set) , contention-free parameter set (CF parameter set), power constraint (powerconstraint), channel switch announcement (channel switch announcement) and other information. It should be understood that the information listed here for joining the BBS is only a schematic description, and may also include other more information. For specific content, please refer to the relevant technology and will not be described again.
实现中,对于终端设备A,会接收到周围的包括网络设备A在内的多个网络设备广播的信标帧,当用户打开终端设备A的无线网络后,网络列表会显示该多个网络设备的SSID。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 multiple network devices. SSID.
在步骤S212中,终端设备A发送探测请求。In step S212, terminal device A sends a detection request.
示例性地,探测请求可以包括网络设备A支持的WIFI网络的SSID、网络设备A支持的WIFI网络的BSSID、无线局域网的支持速率(supported rate)、无线局域网的扩展支持速率(extended supported rate)等参数。For example, the detection request may include the SSID of the WIFI network supported by network device A, the BSSID of the WIFI network supported by network device A, the supported rate of the wireless LAN, the extended supported rate of the wireless LAN, etc. parameter.
示例性地,实现中,终端设备A的网络列表显示有包括网络设备A在内的多个网络设备支持的WIFI的SSID,用户想接入网络设备A支持的WIFI网络,点击网络设备A支持的WIFI网络的连接选项,终端设备A响应于用户的操作,发送探测请求。For example, in the implementation, the network list of terminal device A displays the SSIDs of WIFI supported by multiple network devices including network device A. If the user wants to access the WIFI network supported by network device A, click on the WIFI network supported by network device A. WIFI network connection option, terminal device A responds to the user's operation and sends a detection request.
在步骤S213中,网络设备A发送探测响应。In step S213, network device A sends a detection response.
其中,探测响应可以包括网络设备A支持的WIFI网络的SSID、网络设备A支持的WIFI网络的BSSID、以及其他用于加入BSS的信息,该其他用于加入BSS的信息可参考信标帧内携带的其他用于加入BBS的信息的相关描述,不再赘述。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 used to join the BSS. The other information used to join the BSS can be carried in the beacon frame. The description of other information used to join the BBS will not be described again.
终端设备A接收到探测响应后,可以确定终端设备A已经成功扫描到了网络设备A支持的无线局域网。After terminal device A receives the detection response, it can be determined that terminal device A has successfully scanned the wireless LAN supported by network device A.
2、主动扫描2. Active scanning
主动扫描可以有两种扫描方式,主动扫描方式A和主动扫描方式B,以下,分别对这两种方式做说明。Active scanning can have two scanning modes, active scanning mode A and active scanning mode B. The following describes each of these two modes.
主动扫描方式AActive scanning mode A
主动扫描方式A适用于终端设备A与网络设备A首次连接的场景。Active scanning method A is suitable for the scenario where terminal device A and network device A connect for the first time.
在主动扫描方式A中,不包括步骤S211,包括步骤S212和步骤S213,且在步骤S212之前,扫描过程还可以包括以下步骤:终端设备A广播探测请求A,以搜索周围可用的AP,该探测请求A未包括具体的SSID和BSSID;收到探测请求A的包括网络设备A在内的所有网络设备一般都会回应探测请求A,即,向终端设备A发送针对探测请求A的探测响应A,每个网络设备的探测响应A包括该网络设备支持的WIFI网络的SSID和BSSID,对于网络设备A而言,网络设备A的探测响应A包括网络设备A支持的WIFI网络的SSID和BSSID。进而,在步骤S212中,终端设备A的网络列表显示有包括网络设备A在内的多个网络设备支持的WIFI的SSID,用户点击网络设备A支持的WIFI网络的连接选项,终端设备A响应于用户的操作,向网络设备A通过单播的方式发送探测请求,进而,在步骤S213中,网络设备A向终端设备A发送探测响应。In active scanning mode A, step S211 is not included, but step S212 and step S213 are included. Before step S212, the scanning process may also include the following steps: terminal device A broadcasts a detection request A to search for available APs around it. Request A does not include specific SSID and BSSID; all network devices including network device A that receive detection request A will generally respond to detection request A, that is, send detection response A to terminal device A for detection request A. Each time The detection response A of a network device includes the SSID and BSSID of the WIFI network supported by the network device. For network device A, the detection response A of network device A includes the SSID and BSSID of the WIFI network supported by network device A. Furthermore, in step S212, the network list of terminal device A displays the SSIDs of WIFI supported by multiple network devices including network device A. The user clicks on the connection option of the WIFI network supported by network device A, and terminal device A responds The user's operation sends a detection request to network device A in a unicast manner. Then, in step S213, network device A sends a detection response to terminal device A.
主动扫描方式BActive scanning mode B
主动扫描方式B一般适用于用户在终端设备A上手动输入SSID的场景。Active scanning method B is generally suitable for scenarios where the user manually enters the SSID on terminal device A.
在主动扫描方式B中,不包括步骤S211,包括步骤S212和步骤S213。在步骤S212中,用户在终端设备A上手动输入网络设备A支持的WIFI网络的SSID,终端设备A广播探测请求,该探测请求包括SSID,但不包括BSSID。在步骤S213中,会有多个网络设备接收到探测请求,但由于探测请求中只有网络设备A支持的WIFI网络的SSID,因此,只有网络设备A会回应该探测请求,即,网络设备A向终端设备A发送针对该探测请求的探测响应,探测响应包括网络设备A支持的WIFI网络的SSID和BSSID。In active scanning mode B, step S211 is not included, but step S212 and step S213 are included. In step S212, the user manually inputs the SSID of the WIFI network supported by network device A on terminal device A, and terminal device A broadcasts a detection request, which includes the SSID but does not include the BSSID. In step S213, multiple network devices will receive the detection request, but since the detection request only contains the SSID of the WIFI network supported by network device A, only network device A will respond to the detection request, that is, network device A will respond to the detection request. Terminal device A sends a detection response to the detection request, and the detection response includes the SSID and BSSID of the WIFI network supported by network device A.
步骤S220是认证(authentication)过程,用于认证将要建立连接的设备之间是有效的802.11设备。目前的认证方式有两种认证方式:开放式系统认证和共享密钥认证。Step S220 is an authentication process, used to authenticate that the devices to be connected are valid 802.11 devices. There are currently two authentication methods: open system authentication and shared key authentication.
在开放式系统认证方式中,示例性地,终端设备A向网络设备A发送认证请求,用于请求认证终端设备A的身份,网络设备A向终端设备A发送认证响应,以指示终端设备A的认证通过。In the open system authentication method, for example, 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 the identity of terminal device A. Certification passed.
在共享密钥认证方式中,示例性地,终端设备A向网络设备A发送认证请求,用于请求认证终端设备A的身份;网络设备A通过第一个认证响应将明文的挑战信息发送给终端设备A;终端设备A加密明文形式的挑战信息,并将加密后的挑战信息通过第二个认证响应发送给网络设备A;网络设备A对终端设备A发送的第二个认证响应中加密后的挑战信息进行解密,并与明文的挑战信息进行比较,若解密后的挑战信息与明文的挑战信息匹配,则网络设备A向终端设备A发送第三个认证响应,以指示认证成功,若解密后的挑战信息与明文的挑战信息匹配,或者,网络设备A不能解密挑战信息,网络设备A发送的第三认证响应用于指示认证失败。In the shared key authentication method, for example, 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 the plaintext challenge information to the terminal through the first authentication response. Device A; terminal device A encrypts the challenge information in plain text and sends the encrypted challenge information to network device A through the second authentication response; network device A sends the encrypted challenge information to terminal device A in the second authentication response. The challenge information is decrypted and compared 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 after decryption The challenge information matches the plain text challenge information, or network device A cannot decrypt the challenge information, and the third authentication response sent by network device A is used to indicate authentication failure.
上述描述的认证过程仅为示意性说明,关于认证过程的具体描述可参考相关技术的相关描述,不再赘述。The authentication process described above is only a schematic description. For specific descriptions of the authentication process, please refer to the relevant descriptions of related technologies and will not be described again.
步骤S230是关联(association)过程,在关联过程中,终端设备A向网络设备A发送关联请求(associate request),以请求加入BSS,网络设备A向终端设备A发送关联响应(associate response),以指示允许或拒绝终端设备A加入BSS。Step S230 is an association process. During the association process, terminal device A sends an association request (associate request) to network device A to request to join the BSS. Network device A sends an association response (associate response) to terminal device A to request. Indicates whether terminal device A is allowed or denied to join the BSS.
示例性地,关联请求包括网络设备A支持的无线局域网的SSID、网络设备A的BSSID、无线局域网的支持速率等信息。For example, the association request includes information such as the SSID of the wireless LAN supported by network device A, the BSSID of network device A, and the supported rate of the wireless LAN.
在上述接入WIFI网络的过程中,若一个网络设备(例如,网络设备A)支持多个频段的WIFI网络,可以通过不同SSID和BSSID区分不同频段的WIFI网络。示例性地,网络设备A支持2.4G WIFI网络和5G WIFI网络,2.4G WIFI网络的SSID和BSSID可以分别是SSID1和BSSID1,5G WIFI网络的SSID和BSSID可以分别是SSID2和BSSID2。In the above process of accessing the WIFI network, if a network device (for example, network device A) supports multiple frequency bands of WIFI networks, the WIFI networks of different frequency bands can be distinguished by different SSIDs and BSSIDs. For example, network device A supports 2.4G WIFI network and 5G WIFI network. The SSID and BSSID of the 2.4G WIFI network may be SSID1 and BSSID1 respectively, and the SSID and BSSID of the 5G WIFI network may be SSID2 and BSSID2 respectively.
实现中,可以通过一个物理实体的网络设备虚拟出多个虚拟的网络设备,每个虚拟的网络设备和物理实体的网络设备能够实现相同的功能,每个被虚拟出来的网络设备可以称为虚拟接入点(virtual access point,VAP),不同的VAP可以配置有不同的SSID和BSSID。对于同一个网络设备支持多个频段的WIFI网络的场景,一个物理实体的网络设备可以虚拟出多个VAP,一个频段的WIFI网络对应至少一个VAP。例如,在家庭环境中,家庭成员使用的主VAP和客人使用的访客VAP,可以是同一个频段的WIFI网络,主VAP和访客VAP的BSSDI不同。In implementation, multiple virtual network devices can be virtualized through a physical entity network device. Each virtual network device can achieve the same function as the physical entity network device. Each virtualized network device can be called a virtual network device. Access point (virtual access point, VAP), different VAP can be configured with different SSID and BSSID. For scenarios where the same network device supports multiple frequency bands of WIFI networks, a physical entity network device can virtualize multiple VAPs, and a WIFI network of one frequency band 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 WIFI networks in the same frequency band, but the BSSDI of the main VAP and the guest VAP are different.
图3a是本申请实施例提供的在网络设备和终端设备均支持2.4G WIFI网络和5GWIFI网络时终端设备接入WIFI网络的方法300的示例性流程图。图3b是本申请实施例提供的在网络设备和终端设备均支持2.4G WIFI网络和5G WIFI网络时终端设备接入WIFI网络的方法300的另一示例性流程图。Figure 3a is an exemplary flow chart of a method 300 for a terminal device to access a WIFI network when both the network device and the terminal device support the 2.4G WIFI network and the 5G WIFI network provided by the embodiment of the present application. Figure 3b is another exemplary flow chart of a method 300 for a terminal device to access a WIFI network when both the network device and the terminal device support the 2.4G WIFI network and the 5G WIFI network provided by the embodiment of the present application.
在方法300中,网络设备A和终端设备A均支持2.4G WIFI网络和5G WIFI网络,大多数情况下,终端设备A优先扫描到2.4G WIFI网络,优先接入2.4G WIFI网络。In method 300, both network device A and terminal device A support 2.4G WIFI network and 5G WIFI network. In most cases, terminal device A scans to the 2.4G WIFI network first and accesses the 2.4G WIFI network first.
在图3a所示的实施例中,终端设备通过被动扫描方式接入WIFI网络。In the embodiment shown in Figure 3a, the terminal device accesses the WIFI network through passive scanning.
在步骤S311a中,网络设备A发送2.4G WIFI网络的信标帧(简称2.4G信标帧),在步骤S311b中,网络设备A发送5G WIFI网络的信标帧(简称5G信标帧)。应理解,步骤S311a和步骤S311b可以同时执行,也可以先执行步骤S311a后执行步骤S311b,也可以先执行步骤S311b后执行步骤S311a,不过,即使先后执行步骤S311和步骤S311b,两者之间的时间间隔也很短。In step S311a, network device A sends a beacon frame of the 2.4G WIFI network (2.4G beacon frame for short), and in step S311b, network device A sends a beacon frame of the 5G WIFI network (5G beacon frame for short). It should be understood that step S311a and step S311b can be executed at the same time, or step S311a can be executed first and then step S311b, or step S311b can be executed first and then step S311a. However, even if step S311 and step S311b are executed one after another, there will be no difference between the two. The time interval is also very short.
终端设备A接收到2.4G信标帧和5G信标帧后,根据信号强度发送探测请求,即,发送信号强度好的WIFI网络的探测请求。在步骤S312a中,由于2.4G WIFI网络的信号强度大于5G WIFI网络的信号强度,因此,终端设备A优先发送2.4G探测请求。After receiving the 2.4G beacon frame and the 5G beacon frame, terminal device A sends a detection request according to the signal strength, that is, it sends a detection request for a 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, terminal device A sends the 2.4G detection request first.
对于网络设备A而言,优先接收到2.4G探测请求,因此,在步骤S313中,网络设备A优先向终端设备A发送2.4G探测响应,此时,意味着终端设备A优先扫描到了2.4G WIFI网络,后续通过步骤S320和步骤S330接入2.4G WIFI网络中。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 first. network, and then access the 2.4G WIFI network through steps S320 and S330.
可选地,为了避免由于网络出现意外导致网络设备A无法回应2.4G探测请求,在步骤S312b中,终端设备A在发送完2.4G探测请求后,还可以发送5G探测请求,以在网络设备A无法回应2.4G探测请求后还能机会回应5G探测请求,尽可能保证终端设备A接入WIFI网络中。Optionally, in order to prevent network device A from being unable to respond to the 2.4G detection request due to network accidents, in step S312b, after sending the 2.4G detection request, terminal device A can also send a 5G detection request, so that network device A After being unable to respond to the 2.4G detection request, there is still a chance to respond to the 5G detection request, and try to ensure that terminal device A is connected to the WIFI network.
在一示例中,若网络设备A已经正常发出2.4G探测响应,在接收到5G探测请求后也可以不回应5G探测响应。在另一示例中,若网络设备A已经正常发出2.4G探测响应,在接收到5G探测请求后也可以回应5G探测响应,若终端设备A接收到2.4G探测响应,且后续还接收到5G探测响应,可忽略后续接收到的5G探测请求。In an example, if network device A has normally sent a 2.4G detection response, it does not need to respond with a 5G detection response after receiving the 5G detection request. In another example, if network device A has normally sent a 2.4G detection response, it can also respond with a 5G detection response after receiving a 5G detection request. If terminal device A receives a 2.4G detection response and subsequently receives a 5G detection Response, subsequent received 5G detection requests can be ignored.
在图3b所示的实施例中,终端设备通过主动扫描方式接入WIFI网络。应理解,主动扫描方式可以是上文的主动扫描方式A或主送扫描方式B。In the embodiment shown in Figure 3b, the terminal device accesses the WIFI network through active scanning. It should be understood that the active scanning mode may be the above active scanning mode A or the main sending scanning mode B.
在步骤S314a和步骤S315a中,终端设备A分别发送2.4G探测请求和5G探测请求。In step S314a and step S315a, terminal device A sends a 2.4G detection request and a 5G detection request respectively.
在主动扫描方式A中,该2.4G探测请求和5G探测请求均是终端设备通过单播方式向网络设备发送的探测请求,在主动扫描方式B中,该2.4G探测请求和5G探测请求均是终端设备通过广播方式向网络设备发送的探测请求,具体描述可参考上文的相关描述,不再赘述。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 through unicast mode. In active scanning mode B, the 2.4G detection request and the 5G detection request are both The terminal device sends a detection request to the network device through broadcasting. For specific description, please refer to the relevant description above and will not be described again.
网络设备A接收到2.4G探测请求和5G探测请求后,根据信号强度发送探测响应,即,发送信号强度好的WIFI网络的探测响应。在步骤S315中,在2.4G WIFI网络的信号强度大于5G WIFI网络的信号强度的情况下,网络设备A发送2.4G探测响应,这样,意味着终端设备A优先扫描到了2.4G WIFI网络,后续通过步骤S320和步骤S330接入2.4G WIFI网络中。After receiving the 2.4G detection request and the 5G detection request, network device A sends a detection response according to the signal strength, that is, it 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, network device A sends a 2.4G detection response. This means that terminal device A scans the 2.4G WIFI network first, and subsequently passes Step S320 and step S330 are connected to the 2.4G WIFI network.
综上,可以看出,一般情况下,终端设备会优先接入信号强度好的2.4G WIFI网络,而不再接入5G WIFI网络。但是,2.4G WIFI网络的理论协商速率较低,而且干扰比较严重,所以,2.4G WIFI网络的实际可用速率很低,用户体验较差。对于5G WIFI网络,即便是在5GWIFI网络的信号强度极弱甚至即将断连的情况下,5G WIFI网络的速率一般都要大于同位置处2.4GWIFI网络的速率,因此,长期使用2.4G WIFI网络进行通信,导致用户体验很差。In summary, it can be seen that under normal circumstances, terminal equipment will give priority to access the 2.4G WIFI network with good signal strength instead of accessing the 5G WIFI network. However, the theoretical negotiation rate of the 2.4G WIFI network is low and the interference is serious. Therefore, the actual available rate of the 2.4G WIFI network is very low and the user experience is poor. For the 5G WIFI network, 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, it is best to use the 2.4G WIFI network for a long time. communication, resulting in poor user experience.
基于此,本申请实施例提供了一种WIFI通信的方法、装置和网络设备,网络设备通过执行相关方法,能够尽量使得终端设备优先接入5G WIFI网络,以提高用户体验。Based on this, embodiments of the present application provide a WIFI communication method, device and network device. By executing relevant methods, the network device can try to make the terminal device preferentially access the 5G WIFI network to improve user experience.
在本申请实施例中,主要从两方面提出技术方案以实现上述目的。In the embodiments of this application, technical solutions are mainly proposed from two aspects to achieve the above objectives.
在第一方面中,网络设备获取一段时间内与该网络设备通过2.4G WIFI网络连接的所有终端设备的信号强度,在终端设备的信号强度较强的情况下,降低2.4G WIFI网络的发射功率。这样,在网络设备的覆盖区域内,使得尽可能多的覆盖区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,从而使得位于该覆盖区域内的终端设备优先接入5G WIFI网络。In the first aspect, the network device obtains the signal strength of all terminal devices connected to the network device through the 2.4G WIFI network within a period of time, and when the signal strength of the terminal device is strong, the transmission power of the 2.4G WIFI network is reduced. . In this way, within the coverage area of the network equipment, 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 terminal devices located in the coverage area have priority to access the 5G WIFI network.
在第二方面中,网络设备在接收到终端设备发送的2.4G WIFI网络的探测请求后,暂不响应2.4G WIFI网络的探测请求,等待一段时间,若在预设时长内接收到5G WIFI网络的探测请求,则响应5G WIFI网络的探测请求,从而,将终端设备接入至5G WIFI网络。In the second aspect, after receiving the detection request of the 2.4G WIFI network from the terminal device, the network device temporarily does not respond to the detection request of the 2.4G WIFI network and waits for a period of time. If the 5G WIFI network is received within the preset time period, The detection request of the 5G WIFI network is responded to, thereby connecting the terminal device to the 5G WIFI network.
需要说明的是,本申请实施例是以2.4Ghz和5Ghz这两个频段的WIFI网络进行描述的,不应对此构成限定,本申请实施例还可以扩展至任意两个不同频段的WIFI网络中。It should be noted that the embodiments of the present application are described in terms of WIFI networks in two frequency bands: 2.4Ghz and 5Ghz, which should not be limited. The embodiments of the present application can also be extended to WIFI networks in any two different frequency bands.
以下,结合图4至图6b,对第一方面的内容做详细说明,结合图7和图8b,对第二方面的内容做详细说明。The content of the first aspect will be described in detail below with reference to Figures 4 to 6b, and the content of the second aspect will be described in detail with reference to Figures 7 and 8b.
图4是本申请实施例提供的WIFI通信的方法400的示意性流程图。Figure 4 is a schematic flow chart of a WIFI communication method 400 provided by an embodiment of the present application.
方法400的执行主体可以是网络设备,也可以是网络设备中的处理器或芯片,为了便于描述,以网络设备为例对方法400做说明。其中,网络设备支持2.4G WIFI网络和5GWIFI网络。The execution subject of method 400 may be a network device, or may be a processor or chip in the network device. For convenience of description, method 400 will be described by taking a network device as an example. Among them, the network equipment supports 2.4G WIFI network and 5G WIFI network.
在步骤S410中,网络设备获取在第一时段内与该网络设备通过2.4G WIFI网络连接的M个终端设备的第一信号信息,该第一信号信息用于指示该M个终端设备在该第一时段内的信号强度,M为大于或等于1的整数。In step S410, the network device obtains first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within the first period, and the first signal information is used to indicate that the M terminal devices are connected to the network device in the first period. The signal strength within a period of time, M is an integer greater than or equal to 1.
M个终端设备表示的是在第一时段内与网络设备通过2.4G WIFI网络连接的终端设备,可以是在第一时段内一直与网络设备通过2.4G WIFI网络连接的终端设备,也可以是在第一时段内的某个时长内与网络设备通过2.4G WIFI网络连接的终端设备,此处不做任何限定。The M terminal devices represent terminal devices that are connected to the network device through the 2.4G WIFI network during the first period. They can be terminal devices that have been connected to the network device through the 2.4G WIFI network during the first period, or they can be There are no limitations here on terminal equipment that is connected to the network equipment through the 2.4G WIFI network for a certain period of time within the first period.
此外,M个终端设备可以包括与网络设备稳定连接的终端设备,也可以包括与网络设备不稳定连接的终端设备,此处也不做任何限定。对于不稳定连接的终端设备,应理解,网络设备获取的是终端设备离线前的信号强度。In addition, the M terminal devices may include terminal devices that are stably connected to the network device, or may include terminal devices that are unstable to the network device, and there is no limitation here. For terminal devices with unstable connections, it should be understood that what the network device obtains is the signal strength before the terminal device goes offline.
在一示例中,该M个终端设备包括与网络设备稳定连接的终端设备和不稳定连接的终端设备。In an example, the M terminal devices include terminal devices that are stably connected to the network device and terminal devices that are unstablely connected.
在另一示例中,该M个终端设备仅包括与网络设备稳定连接的终端设备。In another example, the M terminal devices only include terminal devices that are stably connected to the network device.
稳定连接,表示终端设备未频繁地上下线且信号强度的变化都比较小。一般情况下,稳定连接的终端设备可以用来表征位置基本不变的设备。A stable connection means that the terminal device does not go online and offline frequently and the changes in signal strength are relatively small. In general, a terminal device with a stable connection can be used to characterize a device whose location is basically unchanged.
不稳定连接,表示终端设备较频繁地上下线。一般情况下,不稳定连接的终端设备可以用来表征系统版本较低的手机、平板等设备,以及,位置频繁发生变化的设备;此外,大多数不稳定连接的终端设备仅支持2.4G WIFI网络。An unstable connection means that the terminal device goes online and offline frequently. In general, terminal devices with unstable connections can be used to characterize mobile phones, tablets and other devices with lower system versions, as well as devices with frequent changes in location; in addition, most terminal devices with unstable connections only support 2.4G WIFI networks .
实现中,示例性地,在第一时段内,网络设备可以按照第一时长周期性地采集与网络设备通过2.4G WIFI网络连接的终端设备的信号强度,以最终得到第一时段内的M个终端设备的第一信号信息。In implementation, for example, within the first period, the network device can periodically collect the signal strength of the terminal device connected to the network device through the 2.4G WIFI network according to the first duration, so as to finally obtain M signals within the first period. The first signal information of the terminal device.
应理解,第一时长是网络设备采集信号强度的一个周期的时长,也就是说,每隔第一时长,网络设备采集一次与网络设备通过2.4G WIFI网络连接的所有终端设备的信号强度。此外,第一时段的时长是第一时长的整数倍,例如,第一时长是10分钟,第一时段的时长是24小时。It should be understood that the first period of time is the period of time for the network device to collect signal strength. That is to say, every first period of time, 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.
由于各个终端设备连接的不稳定性以及各个终端设备接入2.4G WIFI网络的时间不同等因素,在第一时段的不同周期内,网络设备可能会采集到不同终端设备的信号强度。例如,在第一时段的第1个周期内,有2终端设备(终端设备1和终端设备2)与网络设备通过2.4GWIFI网络连接,在第1个周期的结束时间可以采集到该2个终端设备的信号强度,在第2个周期内,有3个终端设备(终端设备1、终端设备2和终端设备3)与网络设备通过2.4G WIFI网络连接,在第2个周期的结束时间可以采集到该3个终端设备的信号强度。相比于第1个周期内采集终端设备1和终端设备2的信号强度,在第2个周期内增加了终端设备3的信号强度的采集。Due to factors such as the instability of the connection of each terminal device and the different times at which each terminal device accesses the 2.4G WIFI network, the network device may collect the signal strengths of different terminal devices during different periods of the first period. For example, in the first period of the first period, there are two terminal devices (Terminal Device 1 and Terminal Device 2) connected to the network device through the 2.4GWIFI network, and the two terminals can be collected at the end of the first period. The signal strength of the device. In the second cycle, there are three terminal devices (Terminal Device 1, Terminal Device 2 and Terminal Device 3) connected to the network device through the 2.4G WIFI network. It can be collected at the end of the second cycle. to the signal strength of the three terminal devices. Compared with collecting the signal strengths of terminal device 1 and terminal device 2 in the first cycle, the signal strength of terminal device 3 is collected in the second cycle.
需要说明的是,第一信号信息指示的是M个终端设备在第一时段内的所有信号强度,包括每个终端设备在第一时段内的所有信号强度。此外,每个终端设备在第一时段内的所有信号强度包括至少一个信号强度,各个终端设备在第一时段内的所有信号强度的数量可相同,也可不同。假设,第一时段内有10个采集信号强度的周期,在第一时段内,终端设备1一直与网络设备稳定连接,那么,在第一时段内获取到的终端设备1的信号强度的数量最多,为10个信号强度,终端设备2在第2个周期才接入2.4G WIFI网络,那么,在第一时段内获取到的终端设备2的信号强度的数量最多是8个,若后续某些周期内终端设备2有掉线情况,那么,在第一时段内获取到的终端设备2的信号强度的数量少于8个。It should be noted that the first signal information indicates all signal strengths of the M terminal devices within the first period, including all signal strengths of each terminal device within the first period. In addition, all signal strengths of each terminal device in the first period include at least one signal strength, and the number of all signal strengths of each terminal device in the first period may be the same or different. Assume that there are 10 periods of collecting signal strength in the first period. During the first period, terminal device 1 has been stably connected to the network device. Then, the number of signal strengths of terminal device 1 obtained in the first period is the largest. , is 10 signal strengths. Terminal device 2 only accesses the 2.4G WIFI network in the second cycle. Then, the number of signal strengths of terminal device 2 obtained in the first period is at most 8. If some subsequent If the terminal device 2 is offline during the period, then the number of signal strengths of the terminal device 2 obtained in the first period is less than 8.
应理解,网络设备获取到的终端设备的信号强度表示的是网络设备从终端设备接收到的信号的信号强度,而且,网络设备从终端设备接收到的信号的信号强度与终端设备从网络设备接收到的信号的信号强度呈正比,无论是网络设备接收到的信号的信号强度还是终端设备接收到的信号的信号强度,均表征了当前WIFI网络的信号强度。一般情况下,网络设备从终端设备接收到的信号的信号强度与终端设备从网络设备接收到的信号的信号强度基本相同,在穿墙模式下,网络设备从终端设备接收到的信号的信号强度比终端设备从网络设备接收到的信号的信号强度稍微大一些。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 the same as the signal strength received by the terminal device from the network device. The signal strength of the received signal is directly proportional. Whether it is the signal strength of the signal received by the network device or the signal strength of the signal received by the terminal device, it represents the signal strength of the current WIFI network. Under normal circumstances, 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 through-wall mode, the signal strength of the signal received by the network device from the terminal device is A slightly stronger signal than the signal the end device receives from the network device.
在步骤S420中,在M个终端设备在第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,网络设备将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率。In step S420, when at least some of the signal strengths of the M terminal devices in the first 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 Second transmit power.
应理解,第一发射功率为降低2.4G WIFI网络的发射功率之前的发射功率,第二发射功率为降低2.4G WIFI网络的发射功率之后的发射功率。It should be understood that the first transmission power is the transmission power before reducing the transmission power of the 2.4G WIFI network, and the second transmission power is the transmission power after reducing the transmission power of the 2.4G WIFI network.
在本申请实施例中,在至少部分信号强度不满足大于第一强度阈值的条件的情况下,网络设备不降低2.4G WIFI网络的发射功率,即网络设备继续采用第一发射功率发送信号。In this 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.
第一强度阈值用来判断信号强度的好与差,信号强度大于第一强度阈值,表示信号强度好,信号强度小于第一强度阈值,表示信号强度差。应理解,至少部分信号强度大于第一强度阈值,表示的是,至少部分信号强度中的每个信号强度均大于第一强度阈值。The first strength threshold is used to determine whether the signal strength is good or bad. If the signal strength is greater than the first strength threshold, it means the signal strength is good. If the signal strength is less than the first strength threshold, it means the signal strength is poor. It should be understood that at least some of the signal strengths are greater than the first strength threshold, which means that each of the at least some of the signal strengths is greater than the first strength threshold.
在本申请实施例中,至少部分信号强度包括全部信号强度和部分信号强度。In the embodiment of the present application, at least partial signal strength includes full signal strength and partial signal strength.
在一些实施例中,至少部分信号强度为M个终端设备在第一时段内的信号强度中的部分信号强度。In some embodiments, at least part of the signal strength is a part of the signal strengths of the M terminal devices in the first period.
示例性地,可以采用概率值定义M个终端设备在第一时段内的信号强度中的部分信号强度,概率值小于1。假设,概率值为80%,将M个终端设备在第一时段内的信号强度中80%的信号强度确定为部分信号强度。例如,概率值为80%,M=3,获取到的3个终端设备在第一时段内的信号强度的数量为10,那么,只要10*80%=8个信号强度大于第一强度阈值,就可以降低2.4G WIFI网络的发射功率。For example, a probability value may be used to define part of the signal strengths of the M terminal devices in the first period, and the probability value is less than 1. Assume that the probability value is 80%, and 80% of the signal strengths of the M terminal devices in the first period are determined as partial signal strengths. For example, the probability value is 80%, M=3, and the number of acquired signal strengths of three terminal devices in the first period is 10. Then, as long as 10*80%=8 signal strengths are greater than the first strength threshold, You can reduce the transmission power of the 2.4G WIFI network.
通过判定M个终端设备在所述第一时段内的信号强度中的部分信号强度大于第一强度阈值的情况下来降低2.4G WIFI网络的发射功率,可以尽可能避免由于设备本身故障或其他小概率事件导致的信号强度不稳定的情况,提高了系统的容错机制。By determining that part of the signal strengths of the M terminal devices in the first period is greater than the first strength threshold, reducing the transmit power of the 2.4G WIFI network can avoid as much as possible the failure of the device itself or other small probabilities. The unstable signal strength caused by the event improves the fault tolerance mechanism of the system.
在另一些实施例中,至少部分信号强度为M个终端设备在第一时段内的信号强度中的全部信号强度。In some other embodiments, at least part of the signal strength is all signal strengths of the signal strengths of the M terminal devices in the first period.
通过判定M个终端设备在第一时段内的信号强度中的全部信号强度大于第一强度阈值的情况下降低2.4G WIFI网络的发射功率,可以最小程度地减少由于降低2.4G WIFI网络的发射功率对2.4G业务的影响,整体提高通信的稳定性。By determining that all the signal strengths of the M terminal devices in the first period are greater than the first strength threshold and reducing the transmission power of the 2.4G WIFI network, the reduction of the transmission power of the 2.4G WIFI network can be minimized. Impact on 2.4G business and overall improvement of communication stability.
在该步骤中,若M个终端设备在第一时段内的信号强度中的至少部分信号强度大于第一强度阈值,意味着当前2.4G WIFI网络的信号强度较好,基本有足够的能力传输2.4GWIFI网络的业务(简称2.4G业务),因此,适当降低2.4G WIFI网络的发射功率,也不会对2.4GWIFI网络造成很大影响。应理解,当2.4G WIFI网络的发射功率降低后,终端设备或网络设备接收到的2.4G WIFI网络的信号的信号强度也会降低。In this step, if at least some of the signal strengths of the M terminal devices in the first period are greater than the first strength threshold, it means that the signal strength of the current 2.4G WIFI network is good and it basically has enough ability to transmit 2.4 GWIFI network business (referred to as 2.4G business), therefore, appropriately reducing the transmission power of the 2.4G WIFI network will not have a great impact on the 2.4GWIFI network. It should be understood that when the transmission power of the 2.4G WIFI network is reduced, the signal strength of the 2.4G WIFI network signal received by the terminal device or network device will also be reduced.
如前所述,由于5G WIFI网络更容易衰减,因此,很多情况下同一位置处2.4G WIFI网络的信号较强,终端设备一般会优先接入信号强度好的2.4G WIFI网络,不再接入5GWIFI网络,影响用户体验。不过,在降低2.4G WIFI网络的发射功率后,在网络设备的覆盖区域内,会有尽可能多的覆盖区域的5G WIFI网络的信号强度会大于2.4G WIFI网络的信号强度,这样,在5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度的覆盖区域内,终端设备会优先扫描到5G WIFI网络,以接入5G WIFI网络。As mentioned before, 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. The terminal device will generally give priority to access the 2.4G WIFI network with good signal strength and will no longer access it. 5GWIFI network affects user experience. However, after reducing the transmission power of the 2.4G WIFI network, within the coverage area of the network equipment, 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 5G Within the coverage area where the signal strength of the WIFI network is greater than the signal strength of the 2.4G WIFI network, the terminal device will scan the 5G WIFI network first to access the 5G WIFI network.
图5是本申请实施例提供的降低2.G WIFI网络的发射功率之前和之后网络设备的覆盖区域内的状态变化的示意图。从上向下看,图5中的第一幅图是降低2.G WIFI网络之前网络设备的覆盖区域内的信号强度以及终端设备的示意图,图5中的第二幅图是降低2.GWIFI网络之后网络设备的覆盖区域内的信号强度以及终端设备的示意图。Figure 5 is a schematic diagram of 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. Looking from top to bottom, the first picture in Figure 5 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. The second picture in Figure 5 is a schematic diagram of reducing the 2.GWIFI Schematic diagram of the signal strength within the coverage area of the network equipment and the terminal equipment behind the network.
在图5中的第一幅图中,区域502是网络设备510的所有覆盖区域,区域501是网络设备510的部分覆盖区域,在区域501内,2.4G WIFI网络的信号强度大于5G WIFI网络的信号强度,网络设备510与终端设备521、终端设备522均通过2.4G WIFI网络连接。网络设备510获取一段时段内终端设备521和终端设备522的信号强度,发现信号强度都比较好,因此,降低2.4G WIFI网络的发射功率。在图5中的第二幅图中,区域501内的信号强度发生了变化,5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,终端设备521和终端设备522可以与网络设备510继续保持2.4G WIFI网络的通信连接,不过,位于区域501内的终端设备523想接入WIFI网络,由于区域501内5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,因此终端设备523优先接入5G WIFI网络,与网络设备通过5G WIFI网络通信连接。In the first picture in Figure 5, area 502 is the entire coverage area of network device 510, and area 501 is part of the coverage area of network device 510. In area 501, the signal strength of the 2.4G WIFI network is greater than that of the 5G WIFI network. Signal strength, network device 510, terminal device 521, and terminal device 522 are all connected through the 2.4G WIFI network. The network device 510 obtains the signal strengths of the terminal device 521 and the terminal device 522 within a period of time and finds that the signal strengths are relatively good. Therefore, the transmission power of the 2.4G WIFI network is reduced. In the second picture in Figure 5, the signal strength in area 501 has changed. The signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network. The terminal device 521 and the terminal device 522 can continue to maintain communication with the network device 510. Communication connection of the 2.4G WIFI network. However, the 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 the signal strength of the 2.4G WIFI network, the terminal device 523 has priority to access the WIFI network. 5G WIFI network communicates with network devices through 5G WIFI network.
应理解,对于在降低2.4G WIFI网络的发射功率之前(即,网络设备采用第一发射功率发送信号)已经和网络设备通过2.4G WIFI网络连接的终端设备,在降低2.4G WIFI网络的发射功率之后(即,网络设备采用第二发射功率发送信号),若终端设备所在的区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,在一示例中,终端设备可以继续保持之前的2.4WIFI网络的连接,如图5中的终端设备521和终端设备522,在另一示例中,终端设备也可以从2.4G WIFI网络切换至5G WIFI网络,本申请实施例不做任何限定。It should be understood that for terminal devices that have been connected to the network device through the 2.4G WIFI network before reducing the transmission power of the 2.4G WIFI network (that is, the network device uses the first transmission power to send signals), after reducing the transmission power of the 2.4G WIFI network After that (that is, 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 an example, the terminal device can continue to maintain the previous 2.4 The connection of the WIFI network is like the terminal device 521 and the terminal device 522 in Figure 5. In another example, the terminal device can also switch from the 2.4G WIFI network to the 5G WIFI network. This embodiment of the present application does not make any limitations.
图6a是本申请实施例提供的降低2.4G WIFI网络的发射功率后终端设备接入WIFI网络的过程的示意性流程图。图6b是本申请实施例提供的降低2.4G WIFI网络的发射功率后终端设备接入WIFI网络的过程的另一示意性流程图。Figure 6a is a schematic flow chart of the process of a terminal device accessing the WIFI network after reducing the transmission power of the 2.4G WIFI network provided by the embodiment of the present application. Figure 6b is another schematic flow chart of the process of a terminal device accessing the WIFI network after reducing the transmission power of the 2.4G WIFI network provided by the embodiment of the present application.
应理解,降低2.4G WIFI网络的发射功率后,在终端设备A所在的区域内,5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,终端设备A可以为图5中的终端设备523。It should be understood that after reducing the transmission power of the 2.4G WIFI network, the signal strength of the 5G WIFI network is greater than the signal strength of the 2.4G WIFI network in the area where terminal device A is located. Terminal device A can be terminal device 523 in Figure 5.
在图6a所示的实施例中,终端设备A通过被动扫描的方式接入5G WIFI网络。在步骤S431a和步骤S431b中,网络设备分别发送2.4G信标帧和5G信标帧。应理解,步骤S431a和步骤S431b可以同时执行,也可以先执行步骤S431a后执行步骤S431b,也可以先执行步骤S431b后执行步骤S431a,不过,即使先后执行步骤S431和步骤S431b,两者之间的时间间隔也很短。In the embodiment shown in Figure 6a, terminal device A accesses the 5G WIFI network through 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 executed at the same time, or step S431a can be executed first and then step S431b, or step S431b can be executed first and then step S431a. However, even if step S431 and step S431b are executed one after another, there will be no difference between the two. The time interval is also very short.
终端设备A接收到2.4G信标帧和5G信标帧后,根据信号强度发送探测请求,即,发送信号强度好的WIFI网络的探测请求。在步骤S441a中,由于5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,因此,终端设备A优先发送5G探测请求。After receiving the 2.4G beacon frame and the 5G beacon frame, terminal device A sends a detection request according to the signal strength, that is, it sends a detection request for a 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, terminal device A sends the 5G detection request first.
对于网络设备而言,优先接收到5G探测请求,因此,在步骤S450中,网络设备优先向终端设备A发送5G探测响应,此时,意味着终端设备A优先扫描到了5G WIFI网络,后续通过步骤S460和步骤S470接入5G WIFI网络中。For the network device, the 5G detection request is received first. Therefore, in step S450, the network device sends the 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. Subsequent steps are passed. S460 and step S470 are connected to the 5G WIFI network.
可选地,为了避免由于网络出现意外导致网络设备A无法回应5G探测请求,在步骤S441b中,终端设备A在发送完5G探测请求后,还可以发送2.4G探测请求,以在网络设备无法回应5G探测请求后还能机会回应2.4G探测请求,尽可能保证终端设备A接入WIFI网络中。Optionally, in order to avoid network device A being unable to respond to the 5G detection request due to network accidents, in step S441b, after sending the 5G detection request, terminal device A can also send a 2.4G detection request to prevent the network device A from responding when the network device is unable to respond. After the 5G detection request, it will also have the opportunity to respond to the 2.4G detection request, ensuring that terminal device A is connected to the WIFI network as much as possible.
在一示例中,若网络设备已经正常发出5G探测响应,在接收到2.4G探测请求后也可以不回应2.4G探测响应。在另一示例中,若网络设备已经正常发出5G探测响应,在接收到2.4G探测请求后也可以回应2.4G探测响应,若终端设备A接收到5G探测响应,且后续还接收到2.4G探测响应,可忽略后续接收到的2.4G探测请求。In an example, if the network device has normally sent out a 5G detection response, it does not need to respond to the 2.4G detection response after receiving the 2.4G detection request. In another example, if the network device has normally sent a 5G detection response, it can also respond with a 2.4G detection response after receiving a 2.4G detection request. If terminal device A receives a 5G detection response, and subsequently also receives a 2.4G detection Response, subsequent received 2.4G detection requests can be ignored.
在图6b所示的实施例中,终端设备通过主动扫描的方式接入WIFI网络。In the embodiment shown in Figure 6b, the terminal device accesses the WIFI network through active scanning.
在步骤S442a和步骤S442a中,终端设备A分别发送5G探测请求和2.4G探测请求。In step S442a and step S442a, terminal device A sends a 5G detection request and a 2.4G detection request respectively.
应理解,步骤S442a和步骤S442b可以同时执行,也可以先执行步骤S442a后执行步骤S442b,也可以先执行步骤S442b后执行步骤S442a,不过,即使先后执行步骤S442a和步骤S442b,两者之间的时间间隔也很短。It should be understood that step S442a and step S442b can be executed at the same time, 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 one after another, there will be no difference between the two. The time interval is also very short.
网络设备接收到2.4G探测请求和5G探测请求后,根据信号强度发送探测请求,即,发送信号强度好的WIFI网络的探测请求。在步骤S450中,在5G WIFI网络的信号强度大于2.4GWIFI网络的信号强度的情况下,网络设备发送5G探测响应,这样,意味着终端设备A优先扫描到了5G WIFI网络,后续通过步骤S460和步骤S470接入5G WIFI网络中。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, it 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.4GW WIFI network, the network device sends a 5G detection response. This means that terminal device A has priority scanned the 5G WIFI network. Subsequently, step S460 and steps S470 is connected to the 5G WIFI network.
由于网络是动态变化的,不同时段的终端设备接入WIFI网络的情况也不同,因此,实现中,网络设备可以每隔一段时间执行方法400,以确定是否降低2.4G WIFI网络的发射功率。Since the network changes dynamically, terminal devices in different periods have different access to the WIFI network. Therefore, in implementation, the network device can execute method 400 at regular intervals to determine whether to reduce the transmission power of the 2.4G WIFI network.
本申请实施例提供的WIFI通信的方法,网络设备获取第一时段内与该网络设备通过2.4GWIFI网络连接的M个终端设备的信号强度,在M个终端设在第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,意味着当前2.4G WIFI网络的信号强度整体较好,因此,降低2.4G WIFI网络的发射功率,将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率,在尽量避免对2.4G WIFI网络造成较大影响情况下,会有尽可能多的覆盖区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,这样,在5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度的覆盖区域内,终端设备会优先扫描到5GWIFI网络,从而接入至5G WIFI网络,以提高用户体验。In the WIFI communication method provided by the embodiment of the present application, the network device obtains the signal strengths of M terminal devices connected to the network device through the 2.4G WIFI network in the first period, and the signal strengths of the M terminals in the first period are When at least some of the signal strengths are greater than the first strength threshold, it means that the overall signal strength of the current 2.4G WIFI network is better. Therefore, the transmission power of the 2.4G WIFI network is reduced and the transmission power of the 2.4G WIFI network is changed from the first strength threshold to the first strength threshold. The transmission power is reduced to the second transmission power. While trying to avoid a major impact on the 2.4G WIFI network, 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. 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 scan the 5G WIFI network first and then access the 5G WIFI network to improve user experience.
在步骤S420中,网络设备可以通过以下两种方式(方式1和方式2)降低2.4G WIFI网络的发射功率。In step S420, the network device can reduce the transmission power of the 2.4G WIFI network in the following two methods (Method 1 and Method 2).
方式1Way 1
在一些实施例中,网络设备将M个终端设备在第一时段内的信号强度中至少部分信号强度中信号强度最差的信号强度确定为目标信号强度;网络设备根据目标信号强度与第二强度阈值之间的强度差值,确定2.4G WIFI网络的发射功率的调整范围,第二强度阈值小于第一强度阈值;在调整幅度内,网络设备将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率。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 period as the target signal strength; the network device determines the signal strength according to the target signal strength and the second strength. The intensity difference between the thresholds determines the adjustment range of the transmission power of the 2.4G WIFI network. The second intensity threshold is smaller than the first intensity threshold; within the adjustment range, the network device changes the transmission power of the 2.4G WIFI network from the first transmission power to Reduce to second transmit power.
其中,信号强度最差的信号强度是至少部分信号强度中数值最小的信号强度。Among them, the signal strength with the worst signal strength is the signal strength with the smallest value among at least some of the signal strengths.
第二强度阈值可以理解为能够进行正常通信的信号强度的最低值,第二强度阈值小于用于判断信号强度较好的第一强度阈值。例如,第二强度阈值为-70dBm,第一强度阈值为-50dBm。The second strength threshold can be understood as the lowest value of signal strength capable of normal communication, and the second strength threshold is smaller than the first strength threshold used to determine that the signal strength is good. For example, the second intensity threshold is -70dBm and the first intensity threshold is -50dBm.
实现中,发射功率的功率变化值与信号强度的强度变化值呈正比关系,即,功率变化值大,强度变化值大,功率变化值小,强度变化值小。若功率与信号强度的单位相同,例如,均是dB或dBm,示例性地,功率变化值与强度变化值可以相同,通过一个强度变化值能够得到一个功率变化值,例如,强度变化值为8dB,功率变化值也为8dB。在该实施例中,网络设备确定出目标信号强度与第二强度阈值之间的强度差值,强度差值可以理解为一个强度变化值,通过强度差值确定发射功率的调整幅度,该调整幅度即为一个功率变化值,例如,强度差值为20dB,调整幅度也为20dB。In implementation, the power change value of the transmit power is proportional to the intensity change value of the signal strength, that is, the power change value is large, the intensity change value is large, the power change value is small, and the intensity change value is small. If the units of power and signal strength are the same, for example, both are dB or dBm, for example, 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. , the power change value is also 8dB. In this embodiment, the network device determines the strength difference between the target signal strength and the second strength threshold. The strength difference can be understood as a strength change value. The adjustment amplitude of the transmit power is determined by the strength difference. The adjustment amplitude is It is a power change value. For example, if the intensity difference is 20dB, the adjustment amplitude is also 20dB.
在调整发射功率的过程中,网络设备会在调整幅度内,降低2.4G WIFI网络的发射功率,将2.4G WIFI网络的发射功率由第一发射功率调整至第二发射功率。也就是说,第一发射功率和第二发射功率之间的功率变化值在调整幅度内,即,第一发射功率和第二发射功率之间的功率变化值小于或等于调整幅度,例如,调整幅度为20dB,第一发射功率和第二发射功率之间的功率变化值小于或等于20dB。During the process of adjusting the transmission power, the network equipment 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. That is to say, 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 The amplitude is 20dB, and the power change value between the first transmission power and the second transmission power is less than or equal to 20dB.
在该实施例中,由于目标信号强度是M个终端设备在第一时段内的信号强度中至少部分信号强度中信号强度最差的信号强度以及第二强度阈值是用于表征能够进行正常通信的信号强度的最低值,通过目标信号强度与第二强度阈值之间的强度差值确定2.4GWIFI网络的发射功率的调整幅度,调整幅度可以表示发射功率能够调整的最大值,因此,在调整幅度内降低2.4G WIFI网络的发射功率,发射功率的功率变化值不至于过大,调整后的2.4G WIFI网络的信号强度不会很差而是在能够正常通信的范围内,对2.4G WIFI网络的影响也不大,同时,也能尽可能使得更多覆盖区域的5G WIFI网络的信号强度大于2.4G WIFI网络的信号强度,以便于终端设备优先接入5G WIFI网络,以提高用户体验。总之,在调整幅度内降低2.4GWIFI网络的发射功率,能更好地兼顾2.4G WIFI网络的正常通信以及5G WIFI网络的优先接入。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 within the first period, and the second strength threshold is used to characterize the ability to perform normal communication The lowest value of the signal strength is determined by the strength difference between the target signal strength and the second strength threshold. The adjustment range of the transmit power of the 2.4GWIFI network can be expressed as the maximum value that the transmit power can be adjusted. Therefore, within the adjustment range Reduce the transmit power of the 2.4G WIFI network. The power change value of the transmit power will not be too large. The signal strength of the adjusted 2.4G WIFI network will not be very poor but within the range of normal communication. It is good for the 2.4G WIFI network. The impact is not big. At the same time, the signal strength of the 5G WIFI network in as many coverage areas as possible can be greater than the signal strength of the 2.4G WIFI network, so that terminal devices can access the 5G WIFI network preferentially to improve user experience. In short, reducing the transmit 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.
由于网络是动态变化的,即使在调整幅度内降低发射功率,若第一发射功率和第二发射功率之间的功率变化值过大也可能会较大地影响2.4G WIFI网络的正常通信。因此,在一些实施例中,第一发射功率和第二发射功率之间的功率变化值小于调整幅度。Since the network changes dynamically, even if the transmit power is reduced within the adjustment range, if the power change between the first transmit power and the second transmit 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 transmit power and the second transmit power is smaller than the adjustment amplitude.
示例性地,实现中,第一发射功率和第二发射功率之间的功率变化值可以为调整幅度与第一系数的乘积,第一系数小于1。示例性地,第一系数可以是预设值。例如,调整幅度为30,第一系数为0.5,第一发射功率和第二发射功率之间的功率变化值为15。For example, in implementation, the power change value between the first transmission power and the second transmission power may be the product of the adjustment amplitude and the first coefficient, and the first coefficient is less than 1. For example, 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 transmission power and the second transmission power is 15.
在调整幅度内降低2.4G WIFI网络的发射功率时,第一发射功率和第二发射功率之间的功率变化值小于调整幅度,即仅降低调整幅度的一部分,预留调整幅度的一部分余量,这样,能够较好地应对网络由于各种异常导致的动态变化,更好地使得调整后的2.4GWIFI网络的信号强度不会很差,从而进一步减少对2.4G WIFI网络的影响。When reducing the transmission power of the 2.4G WIFI network within the adjustment range, the power change value between the first transmission power and the second transmission 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, it can better cope with dynamic changes in the network due to various abnormalities, and better ensure that 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.
在本申请实施例中,网络设备可以按照梯度逐渐降低2.4G WIFI网络的发射功率。首次降低2.4G WIFI网络的发射功率时,功率变化值小于调整幅度,功率变化值可以设置的大一些,间隔一段时间后,继续执行本申请实施例,查看下2.4G WIFI网络的信号强度是否好,且根据信号强度确定是否还可以继续降低2.4G WIFI网络的发射功率。在确定可以降低2.4GWIFI网络的发射功率的情况下,功率变化值可以设置的小一些,在确定不能降低2.4GWIFI网络发射功率的情况下,不再降低2.4G WIFI网络的发射功率。In this 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 transmit power of the 2.4G WIFI network is reduced for the first time, the power change value is less than the adjustment range. The power change value can be set larger. After a period of time, continue to execute the embodiment of this 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 be continued to be reduced based on the signal strength. When it is determined that the transmission power of the 2.4GWIFI network can be reduced, the power change value can be set smaller. When it is determined that the transmission power of the 2.4GWIFI network cannot be reduced, the transmission power of the 2.4G WIFI network will no longer be reduced.
方式2Way 2
在一些实施例中,可以为2.4G WIFI网络设置功率阈值,该功率阈值可以表示2.4GWIFI网络的发射功率的最低值。调整幅度为降低后的2.4G WIFI网络的第二发射功率与功率阈值之间的差值,第一发射功率与第二发射功率之间的功率变化值小于或等于调整幅度,即,第二发射功率大于或等于功率阈值。In some embodiments, a power threshold can be set for the 2.4G WIFI network, and the power threshold can represent the lowest value of the transmission power of the 2.4G WIFI network. The adjustment amplitude is the difference between the reduced second transmission power of the 2.4G WIFI network and the power threshold. 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 The power is greater than or equal to the power threshold.
在一示例中,第一发射功率与第二发射功率之间的功率变化值小于调整幅度,即,第二发射功率大于功率阈值。这样,能够较好地应对网络由于各种异常导致的动态变化,更好地使得调整后的2.4G WIFI网络的信号强度不会很差,从而进一步减少对2.4G WIFI网络的影响。In an 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, it can better cope with dynamic changes in the network due to various abnormalities, and better ensure that 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.
在另一示例中,第一发射功率与第二发射功率之间的功率变化值等于调整幅度。In another example, the power change value between the first transmit power and the second transmit power is equal to the adjustment amplitude.
同理,网络设备也可以按照梯度逐渐降低2.4G WIFI网络的发射功率,具体描述可参考方式1的相关描述,不再赘述。In the same way, network equipment can also gradually reduce the transmission power of the 2.4G WIFI network according to the gradient. For specific description, please refer to the relevant description of method 1 and will not be repeated.
需要说明的是,在多次执行方法400来降低2.4G WIFI网络的发射功率的情况下,上述第一发射功率和第二发射功率可以是任一次降低2.4G WIFI网络的发射功率之前和之后的发射功率。例如,在连续两次执行方法400中均降低了2.4G WIFI网络的发射功率的过程中,第一发射功率可以是第一次执行方法400之前的发射功率,第二发射功率是第一次执行方法400之后的发射功率,或者,第一发射功率可以是第二次执行方法400之前的发射功率,第二发射功率是第二次执行方法400之后的发射功率,其中,第二次执行方法400之前的发射功率是第一次执行400之后降低后的发射功率。It should be noted that when method 400 is executed multiple times to reduce the transmission power of the 2.4G WIFI network, the above-mentioned first transmission power and the second transmission power may be before and after any reduction of the transmission power of the 2.4G WIFI network. Transmit power. For example, in the process of reducing the transmission power of the 2.4G WIFI network in two consecutive executions of method 400, the first transmission power may be the transmission power before the first execution of method 400, and the second transmission power may be the transmission power before the first execution of method 400. The transmission power after the method 400, or the first transmission power may be the transmission power before the method 400 is performed for the second time, and the second transmission power is the transmission power after the method 400 is performed for the second time, wherein the method 400 is performed for the second time. The previous transmit power is the reduced transmit power after executing 400 for the first time.
在网络设备将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率之后,网络设备继续获取下一个时段的终端设备的信号强度,以确定是否继续降低2.4G WIFI网络的发射功率。After the network device reduces the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, the network device continues to obtain the signal strength of the terminal device in the next period to determine whether to continue to reduce the transmit power of the 2.4G WIFI network. .
具体地,网络设备获取在第二时段内与网络设备通过2.4G WIFI网络连接的N个终端设备的第二信号信息,第二信号信息用于指示N个终端设备在第二时段内的信号强度;Specifically, the network device obtains the second signal information of the N terminal devices connected to the network device through the 2.4G WIFI network in the second period, and the second signal information is used to indicate the signal strength of the N terminal devices in the second period. ;
网络设备根据N个终端设备在第二时段内的信号强度和第一强度阈值,确定是否继续降低2.4G WIFI网络的发射功率。The network device determines whether to continue to reduce the transmission power of the 2.4G WIFI network based on the signal strengths of the N terminal devices in the second period and the first strength threshold.
应理解,第二时段是第一时段之后第一次获取终端设备的信号强度的时段。It should be understood that the second period is the period in which the signal strength of the terminal device is acquired for the first time after the first period.
N个终端设备是在第二时段内与网络设备通过2.4G WIFI网络连接的终端设备,可以是在第二时段内一直与网络设备通过2.4G WIFI网络连接的终端设备,也可以是在第二时段内的某个时长内与网络设备通过2.4G WIFI网络连接的终端设备,此处不做任何限定;此外,N个终端设备可以包括与网络设备稳定连接的终端设备,也可以包括与网络设备不稳定连接的终端设备,此处也不做任何限定。关于N个终端设备的具体解释可参考上文关于M个终端设备的相关解释,不再赘述。The N terminal devices are terminal devices that are connected to the network device through the 2.4G WIFI network during the second period. They can be terminal devices that have been connected to the network device through the 2.4G WIFI network during the second period, or they can be terminal devices that are connected to the network device through the 2.4G WIFI network during the second period. Terminal devices that are connected to network devices through the 2.4G WIFI network within a certain period of time are not limited here; in addition, the N terminal devices can include terminal devices that are stably connected to network devices, and can also include terminal devices that are stably connected to network devices. Terminal devices with unstable connections are not subject to any restrictions here. For specific explanations about the N terminal devices, please refer to the relevant explanations about the M terminal devices above, and will not be described again.
在网络设备根据N个终端设备在第二时段内的信号强度和第一强度阈值,确定是否继续降低2.4G WIFI网络的发射功率的过程中,可以有如下情况。In the process of the network device determining whether to continue to reduce the transmission power of the 2.4G WIFI network based on the signal strengths of the N terminal devices in the second period and the first strength threshold, the following situations may occur.
在一示例中,在N个终端设备在第二时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,网络设备可以继续降低2.4G WIFI网络的发射功率。关于网络设备降低2.4G WIFI网络的发射功率的过程可参考上文的相关描述,不再赘述。In an example, when at least some of the signal strengths of the N terminal devices in the second period are greater than the first strength threshold, the network device may continue to reduce the transmission power of the 2.4G WIFI network. Regarding the process of network equipment reducing the transmission power of the 2.4G WIFI network, please refer to the relevant description above and will not go into details again.
这里的至少部分信号强度包括全部信号强度和部分信号强度,其中,全部信号强度为N个终端设备在第二时段内的信号强度中的全部信号强度,部分信号强度为N个终端设备在第二时段内的信号强度的部分信号强度,关于部分信号强度的具体解释可参考上文关于M个终端设备在第一时段内的信号强度的部分信号强度的相关解释,不再赘述。The at least partial signal strength here includes full signal strength and partial signal strength, where the full signal strength is all the signal strengths of the N terminal devices in the second period, and the partial signal strength is the signal strength of the N terminal devices in the second period. The partial signal strength of the signal strength within the period. For a specific explanation of the partial signal strength, please refer to the above related explanation of the partial signal strength of the signal strengths of the M terminal devices in the first period, and will not be described again.
在另一示例中,在N个终端设备在第二时段内的信号强度中的至少部分信号强度小于大于第一强度阈值的情况下,网络设备不再降低2.4G WIFI网络的发射功率。In another example, when at least part of the signal strengths of the N terminal devices in the second period is less than or greater than the first strength threshold, the network device no longer reduces the transmission power of the 2.4G WIFI network.
在该示例中,由于至少部分信号强度小于第一强度阈值,表示该至少部分信号强度较差,因此,示例性地,可以适当提高2.4G WIFI网络的发射功率,即,将2.4G WIFI网络的发射功率由第二发射功率提高至第三发射功率,其中,第三发射功率小于第一发射功率。In this example, since at least part of the signal strength is less than the first strength threshold, it means that the at least part of the signal strength is poor. Therefore, for example, the transmission power of the 2.4G WIFI network can be appropriately increased, that is, the transmission power of the 2.4G WIFI network can be appropriately increased. The transmission power is increased from the second transmission power to a third transmission power, where the third transmission power is smaller than the first transmission power.
这样,网络设备可以根据信号强度的情况实时动态调整2.4G WIFI网络的发射功率,以尽可能长期保持2.4G WIFI网络的稳定性,同时,也能一定程度上降低2.4G WIFI网络的发射功率,尽可能使得终端设备接入至5G WIFI网络,以提高用户体验。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 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. Connect terminal devices to the 5G WIFI network as much as possible to improve user experience.
在本申请实施例中,在降低2.4G WIFI网络的发射功率后,为了便于尽快检测降低发射功率后的信号强度,网络设备获取第二时段内的终端设备的信号强度的时长可以设置的短一些,即,第二时段的时长小于第一时段的时长。In the embodiment of this application, after reducing the transmission power of the 2.4G WIFI network, in order to facilitate the detection of the signal strength after reducing the transmission power as soon as possible, the length of time for the network device to obtain the signal strength of the terminal device in the second period can be set shorter. , that is, the duration of the second period is shorter than the duration of the first period.
例如,第一时段的时长是24小时,第二时段的时长可以是3小时。For example, the first time period is 24 hours, and the second time period can be 3 hours.
本申请实施例提供的WIFI通信的方法,网络设备可以每隔一段时间获取与网络设备连接的终端设备的信号强度,以根据信号强度确定是否降低2.4G WIFI网络的信号强度,在根据第一时段的M个终端设备的信号强度将2.4G WIFI网络的发射功率由第一发射功率降低至第二发射功率后,根据获取的第一时段之后的第二时段内的N个终端设备的信号强度确定是否继续降低2.4G WIFI网络的信号强度,通过将第二时段的时长设置的小于在第一时段的时长,可以较快地检测降低2.4G WIFI网络的发射功率后的2.4G WIFI网络的信号强度,以便于网络设备及时做出调整。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 based on the signal strength. According to the first period After reducing the transmit power of the 2.4G WIFI network from the first transmit power to the second transmit power, the signal strengths of the M terminal devices are determined based on the obtained signal strengths of the N terminal devices in the second period after the first period. Whether to continue to reduce the signal strength of the 2.4G WIFI network, by setting the duration of the second period to be shorter than the duration of the first period, the signal strength of the 2.4G WIFI network after reducing the transmission power of the 2.4G WIFI network can be quickly detected , so that network equipment can make timely adjustments.
如前所述,在第一时段内,网络设备按照第一时长周期性地采集与网络设备通过2.4GWIFI网络连接的终端设备的信号强度,以获取第一信号信息,那么,网络设备获取在第二时段内与网络设备通过2.4G WIFI网络连接的N个终端设备的第二信号信息的过程可以如下:As mentioned above, during the first period, the network device periodically collects the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the first duration to obtain the first signal information. Then, the network device obtains the first signal information in the first period. The process of the second signal information of N terminal devices connected to the network device through the 2.4G WIFI network in the second period can be as follows:
在第二时段内,网络设备按照第二时长周期性地采集与网络设备通过2.4G WIFI网络连接的终端设备的信号强度,以获取第二信号信息,其中,第二时长小于第一时长。During the second 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 duration to obtain the second signal information, wherein the second duration is shorter than the first duration.
例如,第一时长可以是10分钟,第二时长可以是5分钟。For example, the first duration may be 10 minutes and the second duration may be 5 minutes.
应理解,第二时长是网络设备采集信号强度的一个周期的时长,也就是说,每隔第二时长,网络设备采集一次终端设备的信号强度。此外,第二时段的时长是第二时长的整数倍,例如,第二时长是5分钟,第二时段的时长是3小时。It should be understood that the second duration is the duration of one cycle for the network device to collect signal strength. That is to say, every second duration, the network device collects the signal strength of the terminal device. In addition, the duration of the second period is an integer multiple of the second duration. For example, the second duration is 5 minutes and the duration of the second period is 3 hours.
本申请实施例提供的WIFI通信的方法,为了避免在时长较短的第二时段内获取到的信号强度的数量过少,将第二时长设置的较短,即,第二时长小于第一时长,这样,可以在时长较短的第二时段内获取到一定数量的信号强度,有利于较快地检测降低后的2.4GWIFI网络的信号强度,以便于网络设备及时做出调整。In the WIFI communication method provided by the embodiment of the present application, in order to avoid obtaining too few signal strengths during the shorter second period, the second period is set shorter, that is, the second period is shorter than the first period. , In this way, a certain amount of signal strength can be obtained in the shorter second period, which is conducive to quickly detecting the reduced signal strength of the 2.4GWIFI network, so that the network equipment can make timely adjustments.
以上,对本申请实施例的第一方面的内容做了具体介绍,以下,对本申请实施例的第二方面的内容做具体介绍。The above describes the first aspect of the embodiments of the present application in detail, and the following describes the second aspect of the embodiments of the present application in detail.
图7是本申请实施例提供的WIFI通信的方法500的示意性流程图。Figure 7 is a schematic flow chart of a WIFI communication method 500 provided by an embodiment of the present application.
在步骤S520中,在接收到终端设备发送的2.4GWIFI网络的第一2.4G探测请求且未接收到5G WIFI网络的第一5G探测请求的情况下,网络设备开启定时器。In step S520, after receiving the first 2.4G detection request of the 2.4G WIFI network sent by the terminal device and not receiving the first 5G detection request of the 5G WIFI network, the network device starts a timer.
实现中,终端设备在2.4Ghz的工作频段上发送第一2.4G探测请求,网络设备在2.4Ghz的工作频段上接收该第一2.4G探测请求。In implementation, the terminal device sends the first 2.4G detection request on the 2.4Ghz working frequency band, and the network device receives the first 2.4G detection request on the 2.4Ghz working frequency band.
示例性地,该第一2.4G探测请求可以是主动扫描方式中终端设备通过广播方式或被动扫描方式中终端设备通过单播方式发送的探测请求。For example, the first 2.4G detection request may be a detection request sent by the terminal device in a broadcast mode in the active scanning mode or in a unicast mode in the passive scanning mode.
若第一2.4G探测请求是主动扫描方式中终端设备通过广播方式发送的,在主动扫描方式A中,该第一2.4G探测请求未包括具体的SSID和BSSID;在主动扫描方式B中,该第一2.4G探测请求中包括网络设备支持的2.4G WIFI网络的SSID。具体内容可参考上文以及相关技术的描述,不再赘述。If the first 2.4G detection request is sent by the terminal device through broadcast mode in active scanning mode A, the first 2.4G detection request does not include the specific SSID and BSSID; in active scanning mode B, the first 2.4G detection request does not include the specific SSID and BSSID. 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, and will not be described again.
若第一2.4G探测请求是被动扫描方式中终端设备通过单播方式发送的,该第一2.4G探测请求包括网络设备支持的2.4G WIFI网络的SSID、BSSID、支持速率(supportedrate)、扩展支持速率(extended supported rate)等参数,具体内容可参考上文以及相关技术的描述,不再赘述。If the first 2.4G detection request is sent by the terminal device in unicast mode in passive scanning mode, the first 2.4G detection request includes the SSID, BSSID, supported rate, and extended support of the 2.4G WIFI network supported by the network device. Rate (extended supported rate) and other parameters, please refer to the above and the description of related technologies for specific content, and will not be described again.
网络设备在接收到第一2.4G探测请求且未接收到第一5G探测请求的情况下,网络设备开启定时器,在该定时器的时长内,网络设备暂时不回应针对第一2.4G探测请求的第一2.4G探测响应,而是等待一段时间,等待是否会接收到终端设备发送的第一5G探测请求。When the network device receives the first 2.4G detection request and does not receive the first 5G detection request, the network device starts a timer. During the timer period, the network device temporarily does not respond to the first 2.4G detection request. The first 2.4G detection response, but wait for a period of time to see whether the first 5G detection request sent by the terminal device is received.
定时器的时长可以是预定义的任意值,不过,若时长过长,会影响响应速度导致用户体验不好,若时长过短,不利于终端设备优先接入5G WIFI网络。因此,定时器的时长应当设置的合适,在尽量不影响响应速度且满足条件的情况下,使得终端设备优先接入5G WIFI网络。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 poor user experience. If the duration is too short, it will not be conducive to the terminal device's priority access to the 5G WIFI network. Therefore, the timer length should be set appropriately so that the terminal device has priority to access the 5G WIFI network without affecting the response speed and meeting the conditions.
示例性地,定时器的时长小于或等于2秒。For example, the timer length is less than or equal to 2 seconds.
在步骤S541中,若在定时器的时长内接收到第一5G探测请求,则网络设备向终端设备发送针对第一5G探测请求的第一5G探测响应,以将终端设备接入至5G WIFI网络中。In step S541, if the first 5G detection request is received within the timer period, the network device sends a first 5G detection response to the first 5G detection request to the terminal device to access the terminal device to the 5G WIFI network. middle.
对应地,终端设备接收第一5G探测响应,以接入至5G WIFI网络中。Correspondingly, the terminal device receives the first 5G detection response to access the 5G WIFI network.
实现中,网络设备在5Ghz的工作频段上向终端设备发送第一5G探测响应,终端设备在5Ghz的工作频段上接收该第一5G探测响应。In implementation, the network device sends the first 5G detection response to the terminal device on the 5Ghz working frequency band, and the terminal device receives the first 5G detection response on the 5Ghz working frequency band.
可以理解,在步骤S541之前,终端设备向网络设备发送第一5G探测请求,网络设备接收该第一5G探测请求。实现中,终端设备在5Ghz的工作频段上发送第一5G探测请求,网络设备在5Ghz的工作频段上接收该第一5G探测请求。It can be understood that before step S541, the terminal device sends the 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 5Ghz working frequency band, and the network device receives the first 5G detection request on the 5Ghz working frequency band.
应理解,在定时器的时长内接收到第一5G探测请求,可以是在定时器的结束时间之前或在定时器的结束时间接收到第一5G探测请求,本申请实施例不做任何限定。It should be understood that receiving the first 5G detection request within the duration of the timer may mean that the first 5G detection request is received before the end time of the timer or at the end time of the timer. This embodiment of the present application does not make any limitation.
此外,网络设备在接收到第一5G探测请求后就可以发送第一5G探测响应,不需要等待定时器的时长结束后再发送第一5G探测响应,这样,可以提高响应速度。In addition, the network device can send the first 5G detection response after receiving the first 5G detection request, and does not need to wait for the timer to expire before sending the first 5G detection response. In this way, the response speed can be improved.
示例性地,第一5G探测请求可以是终端设备通过主动扫描方式的广播方式或被动扫描方式的单播方式发送的探测请求。For example, the first 5G detection request may be a detection request sent by the terminal device through a broadcast mode of active scanning mode or a unicast mode of passive scanning mode.
若第一5G探测请求是主动扫描方式中终端设备通过广播方式发送的,在主动扫描方式A中,该第一5G探测请求未包括具体的SSID和BSSID;在主动扫描方式B中,该第一5G探测请求中包括网络设备支持的5G WIFI网络的SSID。具体内容可参考上文以及相关技术的描述,不再赘述。If the first 5G detection request is sent by the terminal device through broadcast in active scanning mode A, the first 5G detection request does not include the specific SSID and BSSID; in active scanning mode B, the first 5G detection request does not include the specific SSID and BSSID. The 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 will not be described again.
若第一5G探测请求是被动扫描方式中终端设备通过单播方式发送的,该第一5G探测请求包括网络设备支持的5G WIFI网络的SSID、BSSID、支持速率(supported rate)、扩展支持速率(extended supported rate)等参数,具体内容可参考上文以及相关技术的描述,不再赘述。If the first 5G detection request is sent by the terminal device in the passive scanning mode through unicast mode, the first 5G detection request includes the SSID, BSSID, supported rate (supported rate), extended supported rate ( extended supported rate) and other parameters. For specific content, please refer to the description above and related technologies, and will not be described again.
示例性地,第一5G探测响应可以包括网络设备支持的5G WIFI网络的SSID、BSSID以及其他用于加入BSS的信息,具体内容可参考上文以及相关技术的描述,不再赘述。For example, 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. For specific content, please refer to the above and the description of related technologies, which will not be described again.
网络设备在定时器的时长未结束前并未回应第一2.4G探测请求,目的就是等待第一5G探测请求,当网络设备在定时器的时长内接收到第一5G探测请求,即,在预设的等待时长内接收到第一5G探测请求,意味着终端设备有接入5G WIFI网络的需求,且网络设备也更想终端设备接入5G WIFI网络,因此,网络设备向终端设备发送第一5G探测响应。The network device does not respond to the first 2.4G detection request before the timer expires. The purpose is to wait for the first 5G detection request. When the network device receives the first 5G detection request within the timer, that is, in advance Receiving the first 5G detection request within the set waiting time 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 request to the terminal device. 5G detection response.
需要说明的是,步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be noted that the size of the step numbers does not mean the order of execution. The order of execution 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.
对于终端设备而言,终端设备可以同时发送第一2.4G探测请求和第一5G探测请求,也可以先发送第一2.4G探测请求再发送第一5G探测请求,也可以先发送第一5G探测请求再发送第一2.4G探测请求,不过,即使先后发送第一2.4G探测请求和第一5G探测请求,发送第一2.4G探测请求和第一5G探测请求的时间间隔也很短。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 it can send the first 2.4G detection request and then the first 5G detection request, or it can send the first 5G detection request first. request to send the first 2.4G detection request again. 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 also very short.
一般情况下,在网络没有突发情况(例如,信号质量差导致丢包重传或队列调度导致后发送的信令对端先收到)下,先发送的信令会被对端先接收到,但是,在网络出现突发情况下,也会存在先发送的信令会被对端后接收到或后发送的信令会对端先接收到的情况,因此,无论终端设备发送第一2.4G探测请求和第一5G探测请求的先后顺序如何,都会出现网络设备先接收到第一2.4G探测请求后接收到第一5G探测请求的情况,尤其在终端设备先发送第一2.4G探测请求时更是普遍出现网络设备先接收到第一2.4G探测请求的情况。Under normal circumstances, if there are no emergencies on the network (for example, poor signal quality leading to packet loss and retransmission or queue scheduling causing signaling sent later to be received first by the peer), signaling sent first will be received first by the peer. , however, in the event of a network emergency, there will also be situations where the signaling sent first will be received later by the peer end or the signaling sent later will be received first by the peer end. Therefore, no matter whether the terminal device sends the first 2.4 Regardless of the order of the G detection request and the first 5G detection request, the network device will receive the first 2.4G detection request first and then the first 5G detection request, especially when the terminal device sends the first 2.4G detection request first. At times, it is common for network devices to receive the first 2.4G detection request first.
本申请实施例提供的WIFI通信的方法,相比于现有技术中网络设备接收到第一2.4G探测请求后就响应第一2.4G探测请求从而将终端设备接入至2.4G WIFI网络的方案,本申请实施例通过在网络设备内配置用于等待5G探测请求的定时器,网络设备在接收到终端设备发送的第一2.4G探测请求后,暂不响应第一2.4G探测请求,而是开启定时器,在定时器的时长内等待第一5G探测请求,若在定时器的时长内接收到第一5G探测请求,则响应5GWIFI网络的第一5G探测请求,这样,可以优先接入5G WIFI网络,从而提高用户体验。The WIFI communication method provided by the embodiment of the present application is compared with the prior art solution in which the network device responds to the first 2.4G detection request after receiving the first 2.4G detection request, thereby connecting the terminal device to the 2.4G WIFI network. , the embodiment of the present application configures a timer for waiting for a 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 temporarily respond to the first 2.4G detection request, but Start the timer and wait for the first 5G detection request within the timer's duration. If the first 5G detection request is received within the timer's duration, respond to the first 5G detection request from the 5GWIFI network. In this way, you can access 5G first. WIFI network, thereby improving user experience.
应理解,在被动扫描方式中,在步骤S520之前,网络设备还会向终端设备发送2.4G信标帧和5G信标帧,在步骤S541之后,通过认证过程和关联过程接入至5G WIFI网络中。在主动扫描方式A中,在步骤S541之后,终端设备还会通过单播方式向网络设备发送另一个5G探测请求(记为第二5G探测请求)以及网络设备会回应另一个5G探测响应(记为第二5G探测请求),进而,通过认证过程和关联过程接入至5G WIFI网络中。在主动扫描方式B中,在步骤S541之后,通过认证过程和关联过程接入至5G WIFI网络中。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. After step S541, it will access the 5G WIFI network through the authentication process and association process. middle. In active scanning mode A, after step S541, the terminal device will also send another 5G detection request (denoted as the second 5G detection request) to the network device through unicast mode, and the network device will respond with another 5G detection response (denoted as the second 5G detection request). for the second 5G detection request), and then access the 5G WIFI network through the authentication process and association process. In active scanning mode B, after step S541, the 5G WIFI network is accessed through the authentication process and the association process.
以下,通过图8a和图8b,对不同扫描方式下终端设备接入5G WIFI网络的过程做具体描述。Below, through Figure 8a and Figure 8b, the process of terminal devices accessing the 5G WIFI network under different scanning modes is described in detail.
图8a是本申请实施例提供的WIFI通信的方法500的示意性交互图,可以是终端设备通过被动扫描方式或上文的主动扫描方式B接入5G WIFI网络。Figure 8a is a schematic interaction diagram of the WIFI communication method 500 provided by the embodiment of the present application. The terminal device can access the 5G WIFI network through passive scanning mode or the above active scanning mode B.
采用主动扫描方式B扫描WIFI网络以连接WIFI网络的过程包括步骤S511至步骤S572,不包括步骤S501至步骤S504。The process of using active scanning mode B to scan the WIFI network to connect to the WIFI network includes steps S511 to S572, but does not include steps S501 to S504.
在步骤S511中,终端设备通过广播方式向网络设备发送第一2.4G探测请求。In step S511, the terminal device sends the first 2.4G detection request to the network device in a broadcast manner.
如前所述,第一2.4G探测请求包括网络设备支持的2.4G WIFI网络的SSID,但不包括BSSID。As mentioned before, 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.
在步骤S512中,网络设备接收该第一2.4G探测请求。In step S512, the network device receives the first 2.4G detection request.
在步骤S520中,在接收到第一2.4G探测请求且未接收到第一5G探测请求的情况下,网络设备开启定时器。In step S520, when the first 2.4G detection request is received and the first 5G detection request is not received, the network device starts a timer.
在步骤S531中,终端设备通过广播方式向网络设备发送第一5G探测请求。In step S531, the terminal device sends the first 5G detection request to the network device in a broadcast manner.
如前所述,第一5G探测请求包括网络设备支持的5G WIFI网络的SSID,但不包括BSSID。As mentioned before, the first 5G probe request includes the SSID of the 5G WIFI network supported by the network device, but does not include the BSSID.
在步骤S532中,网络设备接收该第一5G探测请求。In step S532, the network device receives the first 5G detection request.
在步骤S541中,若在定时器的时长内接收到第一5G探测请求,则网络设备向终端设备发送第一5G探测响应,以将终端设备接入至5G WIFI网络中。In step S541, if the first 5G detection request is received within the timer period, the network device sends the first 5G detection response to the terminal device to access the terminal device to the 5G WIFI network.
应理解,在终端设备通过广播方式发送第一2.4G探测请求和第一5G探测请求的情况下,会有多个网络设备接收到第一2.4G探测请求和第一5G探测请求,在基于步骤S541仅发送回应第一5G探测请求的情况下,由于第一5G探测请求中只有特定网络设备支持的WIFI网络的SSID,因此,只有特定网络设备会回应该第一5G探测请求,即,特定网络设备向终端设备发送针对第一5G探测响应。It should be understood that when the terminal device sends the first 2.4G detection request and the first 5G detection request through broadcast, multiple network devices will receive the first 2.4G detection request and the first 5G detection request. Based on the steps When S541 only sends a response to the first 5G detection request, 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 The device sends a response to the first 5G detection to the terminal device.
在步骤S542中,终端设备接收第一5G探测响应,以接入至5G WIFI网络中。In step S542, the terminal device receives the first 5G detection response to access the 5G WIFI network.
在步骤S571和步骤S572中,在终端设备接收到第一5G探测响应后,网络设备和终端设备进行认证过程和关联过程。In steps S571 and 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.
示例性地,终端设备向网络设备发送认证请求,网络设备最终向终端设备发送用于指示认证成功的认证响应,以完成认证过程。Exemplarily, the terminal device sends an authentication request to the network device, and the network device finally sends an authentication response indicating successful authentication to the terminal device to complete the authentication process.
示例性地,终端设备向网络设备发送关联请求,网络设备最终向终端设备发送关联响应,以指示允许或拒绝终端设备接入5G WIFI网络。若关联响应用于指示允许终端设备接入5GWIFI网络,意味着终端设备成功接入5G WIFI网络,后续终端设备和网络设备之间可以通过5G WIFI网络正常通信以传输数据。For example, 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 to allow or deny the terminal device to access the 5G WIFI network. 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 successfully accesses the 5G WIFI network, and subsequent communication between the terminal device and the network device can be normal through the 5G WIFI network to transmit data.
关于认证过程和关联过程的具体描述可参考上文步骤S220和步骤S230以及相关技术的相关描述,不再赘述。For specific descriptions of the authentication process and the association process, please refer to the above steps S220 and S230 and the related descriptions of related technologies, and will not be described again.
采用被动扫描方式扫描WIFI网络以连接WIFI网络的过程包括步骤S501至步骤S572,The process of scanning the WIFI network to connect to the WIFI network using passive scanning includes steps S501 to S572.
在步骤S511之前,参考图8a,方法500还包括:Before step S511, referring to Figure 8a, the method 500 also includes:
在步骤S501中,网络设备向终端设备发送2.4G WIFI网络的2.4G信标帧。In step S501, the network device sends a 2.4G beacon frame of the 2.4G WIFI network to the terminal device.
在步骤S502中,终端设备接收该2.4G信标帧。In step S502, the terminal device receives the 2.4G beacon frame.
在步骤S503中,网络设备向终端设备发送5G WIFI网络的5G信标帧。In step S503, the network device sends the 5G beacon frame of the 5G WIFI network to the terminal device.
在步骤S504中,终端设备接收该5G信标帧。In step S504, the terminal device receives the 5G beacon frame.
应理解,步骤的序号的大小并不意味着执行顺序的先后。It should be understood that the sequence number of the steps does not mean the order of execution.
对于网络设备而言,网络设备可以同时发送2.4G信标帧和5G信标帧,也可以先发送2.4G信标帧再发送5G信标帧,也可以先发送5G信标帧再发送2.4G信标帧,不过,即使先后发送2.4G信标帧和5G信标帧,发送2.4G信标帧和5G信标帧的时间间隔也很短。For network equipment, the network equipment can send 2.4G beacon frames and 5G beacon frames at the same time, or it can send 2.4G beacon frames first and then send 5G beacon frames, or it can send 5G beacon frames first and then send 2.4G Beacon frame, however, even if the 2.4G beacon frame and the 5G beacon frame are sent successively, the time interval between sending the 2.4G beacon frame and the 5G beacon frame is also very short.
对于终端设备而言,在接收到2.4G信标帧和5G信标帧后,示例性地,可以基于以下任意情况发送不同探测请求。For the terminal device, after receiving the 2.4G beacon frame and the 5G beacon frame, for example, different detection requests can be sent based on any of the following situations.
在情况1中,终端设备基于WIFI网络的信号强度,先发送信号强度好的WIFI网络的探测请求再发送信号强度不好的WIFI网络的探测请求,那么,在2.4G WIFI网络的信号强度大于5G WIFI网络的信号强度下,终端设备先发送第一2.4G探测请求再发送第一5G探测请求。In case 1, based on the signal strength of the WIFI network, 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. Then, the signal strength of the 2.4G WIFI network is greater than that of 5G Under the signal strength of the WIFI network, the terminal device first sends the first 2.4G detection request and then the first 5G detection request.
在情况2中,终端设备发送任意信标帧的探测请求,即,只要接收到2.4G信标帧和5G信标帧,都会发送第一2.4G探测请求和第一5G探测请求,按照先接收先发送的原则发送。In case 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, according to the first received Send on first-come-first-served basis.
在情况3中,终端设备曾经与网络设备之间通过2.4G WIFI网络(或5G WIFI网络)通信连接,终端设备内保存有用于连接该网络设备的2.4G WIFI网络(或5G WIFI网络)的信息,为了连接的便捷性,系统规定,后续在监听到该网络设备的2.4G信标帧(或5G信标帧)后,仅发送第一2.4G探测请求(或发送第一5G探测请求),以便于利用已有的用于连接该网络设备的2.4G WIFI网络(或5G WIFI网络)的信息使得终端设备快速接入至2.4G WIFI网络(或5G WIFI网络)中。In case 3, the terminal device has been connected to the network device through the 2.4G WIFI network (or 5G WIFI network), and the terminal device stores information about the 2.4G WIFI network (or 5G WIFI network) used to connect to the network device. , for the convenience of connection, the system stipulates that after monitoring the 2.4G beacon frame (or 5G beacon frame) of the network device, it will only send the first 2.4G detection request (or send the first 5G detection request). In order to make use of the existing 2.4G WIFI network (or 5G WIFI network) information used to connect the network device, the terminal device can quickly access the 2.4G WIFI network (or 5G WIFI network).
总之,终端设备在接收到2.4G信标帧和5G信标帧后,在步骤S511中会先向网络设备发送第一2.4G探测请求,在网络设备在接收到第一2.4G探测请求且未接收到第一5G探测请求的情况下,执行步骤S520,开启定时器,且在定时器的时长内接收到终端设备发送的第一5G探测请求的情况下,执行步骤S541,发送第一5G探测响应。在步骤S571和步骤S572中,在终端设备接收到第一5G探测响应后,网络设备和终端设备进行认证过程和关联过程。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. After the network device receives the first 2.4G detection request and does not When the first 5G detection request is received, step S520 is executed to start the timer, and when the first 5G detection request sent by the terminal device is received within the timer period, step S541 is executed 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 an authentication process and an association process.
应理解,在被动扫描方式中,终端设备均是通过单播方式发送第一2.4G探测请求和第一5G探测请求的。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 in a unicast mode.
图8b是本申请实施例提供的WIFI通信的方法500的另一示意性交互图,可以是终端设备通过上文的主动扫描方式A接入5G WIFI网络。Figure 8b is another schematic interaction diagram of the WIFI communication method 500 provided by the embodiment of the present application. The terminal device may access the 5G WIFI network through the above active scanning method A.
在步骤S511中,终端设备广播第一2.4G探测请求,以搜索周围可用的WIFI网络。In step S511, the terminal device broadcasts a first 2.4G detection request to search for available WIFI networks around it.
如前所述,该第一2.4G探测请求未包括具体的SSID和BSSID。As mentioned above, the first 2.4G probe request does not include specific SSID and BSSID.
在步骤S512中,网络设备接收该第一2.4G探测请求。In step S512, the network device receives the first 2.4G detection request.
在步骤S520中,在接收到第一2.4G探测请求且未接收到第一5G探测请求的情况下,网络设备开启定时器。In step S520, when the first 2.4G detection request is received and the first 5G detection request is not received, the network device starts a timer.
在步骤S531中,终端设备通过广播方式向网络设备发送第一5G探测请求。In step S531, the terminal device sends the first 5G detection request to the network device in a broadcast manner.
如前所述,第一5G探测请求未包括具体的SSID和BSSID。As mentioned before, the first 5G probe request did not include the specific SSID and BSSID.
在步骤S532中,网络设备接收该第一5G探测请求。In step S532, the network device receives the first 5G detection request.
在步骤S541中,若在定时器的时长内接收到第一5G探测请求,则网络设备向终端设备发送第一5G探测响应,以将终端设备接入至5G WIFI网络中。In step S541, if the first 5G detection request is received within the timer period, the network device sends the first 5G detection response to the terminal device to access the terminal device to the 5G WIFI network.
应理解,在终端设备通过广播方式发送第一2.4G探测请求和第一5G探测请求的情况下,能够接收到第一2.4G探测请求的所有网络设备都会执行步骤S520,且在定时器的时长内接收到第一5G探测请求的所有网络设备均会发送第一5G探测响应。It should be understood that when the terminal device sends the first 2.4G detection request and the first 5G detection request through broadcast, all network devices that can receive the first 2.4G detection request will execute step S520, and within the timer duration All network devices that receive the first 5G detection request will send the first 5G detection response.
在步骤S551中,终端设备通过单播方式向网络设备发送第二5G探测请求。In step S551, the terminal device sends a second 5G detection request to the network device in a unicast manner.
该在步骤中,示例性地,终端设备的网络列表会显示有发送第一5G探测请求的所有网络设备支持的WIFI的SSID,用户点击其中网络设备支持的WIFI网络的连接选项,终端设备响应于用户的操作,向该其中一个网络设备通过单播的方式发送第二5G探测请求。In this step, for example, the network list of the terminal device will display the SSIDs of WIFI supported by all network devices that sent the first 5G detection request, the user clicks the connection option of the WIFI network supported by the network device, and the terminal device responds The user's operation is to send a second 5G detection request to one of the network devices in a unicast manner.
在步骤S552中,网络设备接收第二5G探测请求。In step S552, the network device receives the second 5G detection request.
在步骤S561中,网络设备向终端设备发送第二5G探测响应。In step S561, the network device sends a second 5G detection response to the terminal device.
在步骤S562中,终端设备接收第二5G探测响应。In step S562, the terminal device receives the second 5G detection response.
在步骤S571和步骤S572中,在终端设备接收到第二5G探测响应后,网络设备和终端设备进行认证过程和关联过程。关于认证过程和关联过程的具体描述可参考上文步骤S220和步骤S230以及相关技术的相关描述,不再赘述。In steps S571 and 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 specific descriptions of the authentication process and the association process, please refer to the above steps S220 and S230 and the related descriptions of related technologies, and will not be described again.
在一些实施例中,若在定时器的时长内未接收到所述第一5G探测请求,则网络设备向终端设备发送针对第一2.4G探测请求的第一2.4G探测响应,以将终端设备接入至2.4GWIFI网络中。In some embodiments, if the first 5G detection request is not received within the timer period, 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 Connect to the 2.4GWIFI network.
也就是说,若在定时器的时长内未接收到第一5G探测请求,意味着终端设备不会发送第一5G探测请求或者可能会在定时器的结束时间之后发送第一5G探测请求,网络设备没必要继续等待第一5G探测请求,而是可以回应2.4G WIFI网络的探测请求,即,发送第一2.4G探测响应,终端设备接收到第一2.4G探测响应后,与网络设备进行认证过程和关联过程,以将终端设备接入至2.4G WIFI网络中。That is to say, if the first 5G detection request is not received within the timer's 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 The 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 authenticates with the network device. process and association process to connect the terminal device to the 2.4G WIFI network.
应理解,在被动扫描方式和主动扫描方式B中,终端设备接收到第一2.4G探测响应后,通过认证过程和关联过程,接入至2.4G WIFI网络。It should be understood that in passive scanning mode and active scanning mode B, after receiving the first 2.4G detection response, the terminal device accesses the 2.4G WIFI network through the authentication process and association process.
在主动扫描方式A中,在一示例中,网络设备接收终端设备通过单播方式发送的第二2.4G探测请求,且向终端设备发送针对第二2.4G探测请求的第二2.4G探测响应,终端设备接收到第二2.4G探测响应后,通过认证过程和关联过程,接入至2.4G WIFI网络。In active scanning mode A, in an example, the network device receives the second 2.4G detection request sent by the terminal device in a unicast manner, and sends a second 2.4G detection response to the second 2.4G detection request to the terminal device, After receiving the second 2.4G detection response, the terminal device accesses the 2.4G WIFI network through the authentication process and association process.
在主动扫描方式A中,在另一示例中,网络设备在接收到终端设备通过单播方式发送的第二2.4G探测请求且未接收到终端设备通过单播方式发送的第二5G探测请求的情况下,开启定时器,若在定时器的时长内未接收到终端设备通过单播方式发送的第二5G探测请求,则向终端设备发送第二2.4G探测响应,终端设备接收到第二2.4G探测响应后,通过认证过程和关联过程,接入至2.4G WIFI网络。In active scanning mode A, in another example, the network device receives the second 2.4G detection request sent by the terminal device in unicast mode and does not receive the second 5G detection request sent by the terminal device in unicast mode. In this case, the timer is started, and if the second 5G detection request sent by the terminal device through unicast is not received within the timer period, the second 2.4G detection response is sent to the terminal device, and the terminal device receives the second 2.4G detection request. After G detection response, it will connect to the 2.4G WIFI network through the authentication process and association process.
也就是说,在该示例中,网络设备无论是接收到终端设备通过广播方式发送的2.4G探测请求(第一2.4G探测请求)还是通过单播方式发送的2.4G探测请求(第二2.4G探测请求),网络设备均会开启定时器,以在定时器的时长内等待5G探测请求。这样,可以简化系统设置,便于实现。That is to say, in this example, the network device receives the 2.4G detection request sent by the terminal device in broadcast mode (the first 2.4G detection request) or the 2.4G detection request sent in unicast mode (the second 2.4G detection request). detection request), the network equipment will start the timer to wait for the 5G detection request within the timer duration. In this way, system setup can be simplified and implemented easily.
在终端设备未向网络设备发送第一5G探测请求,以使得网络设备未在定时器的时长内接收到第一5G探测请求的情况中,可能有以下两种情况。应理解,以下两种情况仅为示意性说明,不应对本申请实施例构成限定。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 duration of the timer, there may be the following two situations. It should be understood that the following two situations are only illustrative descriptions and should not limit the embodiments of the present application.
在一示例中,终端设备不支持5G WIFI网络。这种情况下,终端设备自然不会发送第一5G探测请求,网络设备也不会接收第一5G探测请求。In one example, the terminal device does not support 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.
在另一示例中,终端设备支持5G WIFI网络,且在步骤511中终端设备向网络设备发送第一2.4G探测请求之前,终端设备与网络设备之间通过2.4G WIFI网络通信连接。In another example, the terminal device supports the 5G WIFI network, and before the terminal device sends the first 2.4G detection request to the network device in step 511, the terminal device and the network device are connected through 2.4G WIFI network communication.
也就是说,在该示例中,虽然终端设备支持5G WIFI网络,不过,终端设备此前与网络设备通过2.4G WIFI网络连接过,终端设备内保存有用于连接该网络设备的2.4G WIFI网络的信息,为了连接的便捷性,系统规定,若采用被动扫描方式,后续在监听到该网络设备的2.4G信标帧后,仅发送第一2.4G探测请求,若采用主动扫描方式,仅向网络设备发送第一2.4G探测请求,以便于利用已有的用于连接该网络设备的2.4G WIFI网络的信息使得终端设备快速接入至2.4G WIFI网络中。That is to say, in this example, although the terminal device supports 5G WIFI network, the terminal device has previously been connected to the network device through a 2.4G WIFI network, and the terminal device stores information about the 2.4G WIFI network used to connect to the network device. , for the convenience of connection, the system stipulates that if the passive scanning method is used, only the first 2.4G detection request will be sent after monitoring the 2.4G beacon frame of the network device. If the active scanning method is used, only the first 2.4G detection request will be sent to the network device. The first 2.4G detection request is sent to make use of the existing 2.4G WIFI network information used to connect the network device to enable the terminal device to quickly access the 2.4G WIFI network.
在本申请实施例中,可以理解,若网络设备先接收到第一5G探测请求,即网络设备接收到第一5G探测请求且未接收到第一2.4探测请求,则网络设备不开启定时器,且直接向终端设备发送第一5G探测响应,以将终端设备接入5G WIFI网络中。In the embodiment of this 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 but does not receive the first 2.4 detection request, the network device does not start the timer, And directly send the first 5G detection response to the terminal device to connect the terminal device to the 5G WIFI network.
应理解,这里的“直接”表示的是在接收到第一5G探测请求后网络设备不再浪费时间执行其他任务,而是尽快生成第一5G探测响应且发送第一5G探测响应。It should be understood that "directly" here means that after receiving the first 5G detection request, the network device no longer wastes time performing other tasks, but generates and sends the first 5G detection response as soon as possible.
还应理解,在被动扫描方式和主动扫描方式B中,终端设备接收到第一5G探测响应后,通过认证过程和关联过程,接入至5G WIFI网络。It should also be understood that in passive scanning mode and active scanning mode B, after receiving the first 5G detection response, the terminal device accesses the 5G WIFI network through the authentication process and association process.
在主动扫描方式A中,终端设备在接收到第一5G探测响应后,通过单播方式仅向网络设备发送第二5G探测请求,进而,网络设备向终端设备发送第二5G探测响应,后续通过认证过程和关联过程,接入至5G WIFI网络。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 through unicast. Then, the network device sends the second 5G detection response to the terminal device. Subsequently, through Authentication process and association process, access to 5G WIFI network.
需要说明的是,上述各方法实施例中步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be noted that the sequence numbers of the steps in the above method embodiments do not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not constitute the implementation process of the embodiments of the present application. Any limitations.
以上,结合图1至图8b,详细说明了本申请实施例提供的WIFI通信的方法,下面将结合图9至图10,详细描述根据本申请实施例提供的WIFI通信的装置。Above, the WIFI communication method provided by the embodiment of the present application is described in detail with reference to FIGS. 1 to 8 b. Next, the WIFI communication device provided by the embodiment of the present application will be described in detail with reference to FIGS. 9 to 10 .
图9是本申请实施例提供的WIFI通信的装置600的示例性框图。该装置600是终端设备或网络设备,也可以为终端设备或网络设备中的芯片。Figure 9 is an exemplary block diagram of a WIFI communication device 600 provided by 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 network device.
在一种可能的实现方式中,装置600用于执行上述方法400中网络设备对应的各个流程和步骤。该装置600包括:处理单元610和收发单元620。处理单元610用于执行以下步骤:In a possible implementation, the apparatus 600 is configured to execute various processes and steps corresponding to the network device in the above method 400. The device 600 includes: a processing unit 610 and a transceiver unit 620. The processing unit 610 is used to perform the following steps:
获取在第一时段内与所述网络设备通过所述2.4G WIFI网络连接的M个终端设备的第一信号信息,所述第一信号信息用于指示所述M个终端设备在所述第一时段内的信号强度,M为大于或等于1的整数;Obtain first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within the first period, where the first signal information is used to indicate that the M terminal devices are connected to the first network device through the 2.4G WIFI network. The signal strength within the period, M is an integer greater than or equal to 1;
在所述M个终端设备在所述第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率。In the case where at least part of the signal strengths of the M terminal devices in the first period are greater than the first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the third transmission power. 2. Transmit power.
可选地,所述至少部分信号强度为所述M个终端设备在所述第一时段内的信号强度中的全部信号强度。Optionally, the at least part of the signal strength is all signal strengths among the signal strengths of the M terminal devices within the first period.
可选地,处理单元610具体用于:Optionally, the processing unit 610 is specifically used to:
将所述至少部分信号强度中信号强度最差的信号强度确定为目标信号强度;Determine the signal strength with the worst signal strength among the at least partial signal strengths as the target signal strength;
根据所述目标信号强度与第二强度阈值之间的强度差值,确定所述2.4G WIFI网络的发射功率的调整幅度,所述第二强度阈值小于所述第一强度阈值;Determine the adjustment amplitude of the transmission power of the 2.4G WIFI network based on the strength difference between the target signal strength and a second strength threshold, where the second strength threshold is smaller than the first strength threshold;
在所述调整幅度内,将所述2.4G WIFI网络的发射功率由所述第一发射功率下降至所述第二发射功率。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.
可选地,所述第一发射功率与所述第二发射功率之间的功率变化值小于所述调整幅度。Optionally, the power change value between the first transmission power and the second transmission power is smaller than the adjustment amplitude.
可选地,处理单元610还用于:Optionally, the processing unit 610 is also used to:
获取在第二时段内与所述网络设备通过所述2.4G WIFI网络连接的N个终端设备的第二信号信息,所述第二信号信息用于指示所述N个终端设备在所述第二时段内的信号强度;Obtain second signal information of N terminal devices connected to the network device through the 2.4G WIFI network within the second period, where the second signal information is used to indicate that the N terminal devices are connected to the network device through the 2.4G WIFI network in the second period. Signal strength during the period;
根据所述N个终端设备在所述第二时段内的信号强度和所述第一强度阈值,确定是否继续降低所述2.4G WIFI网络的发射功率;Determine 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 period and the first strength threshold;
其中,所述第二时段的时长小于所述第一时段的时长,N为大于或等于1的整数。Wherein, the duration of the second period is shorter than the duration of the first period, and N is an integer greater than or equal to 1.
可选地,处理单元610具体用于:Optionally, the processing unit 610 is specifically used to:
在所述第一时段内,按照第一时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第一信号信息;以及,During the first period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the first duration to obtain the first signal information; and,
在所述第二时段内,按照第二时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第二信号信息;During the second period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the second duration to obtain the second signal information;
其中,所述第二时长小于所述第一时长。Wherein, the second duration is shorter than the first duration.
可选地,处理单元610具体用于:Optionally, the processing unit 610 is specifically used to:
在所述N个终端设备在所述第二时段内的信号强度中的至少部分信号强度小于所述第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由所述第二发射功率提高至第三发射功率,所述第三发射功率小于所述第一发射功率。In the case where at least part of the signal strengths of the N terminal devices in the second period are less than the first strength threshold, the transmit power of the 2.4G WIFI network is changed from the second transmitter to the second transmitter. The power is increased to a third transmit power that is less than the first transmit power.
可选地,所述M个终端设备包括与所述网络设备稳定连接的设备以及与所述网络设备非稳定连接的设备。Optionally, the M terminal devices include devices that are stably connected to the network device and devices that are not stably connected to the network device.
可选地,收发单元620用于:Optionally, the transceiver unit 620 is used for:
接收第一终端设备发送的所述5G WIFI网络的5G探测请求和所述2.4GWIFI网络的2.4G探测请求;Receive the 5G detection request of the 5G WIFI network and the 2.4G detection request of the 2.4GWIFI network sent by the first terminal device;
向所述第一终端设备发送针对所述5G探测请求的5G探测响应,以将所述第一终端设备接入至所述5G WIFI网络中。Send a 5G detection response to the 5G detection request to the first terminal device to access the first terminal device to the 5G WIFI network.
应理解,处理单元610可用于执行方法400中网络设备执行的各个步骤,具体描述可参考上文的相关描述,不再赘述。It should be understood that the processing unit 610 may be used to perform various steps performed by the network device in the method 400. For specific descriptions, reference may be made to the relevant descriptions above, which will not be described again.
在另一种可能的实现方式中,装置600用于执行上述方法500中网络设备对应的各个流程和步骤。该装置600包括:处理单元610和收发单元620。In another possible implementation, the apparatus 600 is configured to execute various processes and steps corresponding to the network device in the above method 500. The device 600 includes: a processing unit 610 and a transceiver unit 620.
处理单元610用于,在接收到终端设备发送的所述2.4G WIFI网络的第一2.4G探测请求且未接收到所述终端设备发送的所述5G WIFI网络的第一5G探测请求的情况下,开启定时器;The processing unit 610 is configured to receive the first 2.4G detection request of the 2.4G WIFI network sent by the terminal device and not receive the first 5G detection request of the 5G WIFI network sent by the terminal device. , start the timer;
收发单元620还用于,若在所述定时器的时长内接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一5G探测请求的第一5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。The transceiver unit 620 is also configured to, if the first 5G detection request is received within the duration of the timer, send a first 5G detection response to the first 5G detection request to the terminal device, so as to The terminal device is connected to the 5G WIFI network.
可选地,收发单元620还用于,若在所述定时器的时长内未接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一2.4G探测请求的第一2.4G探测响应,以将所述终端设备接入至所述2.4G WIFI网络中。Optionally, the transceiver unit 620 is further configured to, if the first 5G detection request is not received within the duration of the timer, send a first response to the first 2.4G detection request to the terminal device. 2.4G detection response to connect the terminal device to the 2.4G WIFI network.
可选地,所述终端设备不支持所述5G WIFI网络;或,所述终端设备支持所述5GWIFI网络,且在所述终端设备向所述网络设备发送所述第一2.4G探测请求之前,所述终端设备与所述网络设备通过所述2.4G WIFI网络通信连接。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 communicatively connected through the 2.4G WIFI network.
可选地,收发单元620还用于,在接收到所述终端设备发送的所述第一5G探测请求且未接收到所述终端设备发送的所述第一2.4G探测请求的情况下,不开启所述定时器,且向所述终端设备发送所述第一5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。Optionally, the transceiver unit 620 is also configured to: 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 started, and the first 5G detection response is sent to the terminal device to access the terminal device to the 5G WIFI network.
可选地,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过单播方式发送的。Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a unicast manner.
可选地,收发单元620还用于,向所述终端设备发送所述2.4G WIFI网络的2.4G信标帧和所述5G WIFI网络的5G信标帧。Optionally, the transceiver unit 620 is also configured to send the 2.4G beacon frame of the 2.4G WIFI network and the 5G beacon frame of the 5G WIFI network to the terminal device.
可选地,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过广播方式发送的;以及,收发单元620还用于: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 also used to:
接收所述终端设备通过单播方式发送的第二5G探测请求;向所述终端设备发送针对所述第二5G探测请求的第二5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。Receive a second 5G detection request sent by the terminal device in a unicast manner; send a second 5G detection response to the second 5G detection request to the terminal device to access the terminal device to the 5G In the WIFI network.
可选地,所述定时器的时长小于或等于2秒。Optionally, the duration of the timer is less than or equal to 2 seconds.
应理解,处理单元610和收发单元620可用于执行方法500中网络设备执行的各个步骤,具体描述可参考上文的相关描述,不再赘述。It should be understood that the processing unit 610 and the transceiver unit 620 may be used to perform various steps performed by the network device in the method 500. For specific descriptions, reference may be made to the relevant descriptions above, which will not be described again.
在另一种可能的实现方式中,装置600用于执行上述方法500中终端设备对应的各个流程和步骤。该装置600包括:处理单元610和收发单元620。In another possible implementation, the apparatus 600 is configured to execute various processes and steps corresponding to the terminal device in the above method 500. The device 600 includes: a processing unit 610 and a transceiver unit 620.
收发单元620用于,向网络设备发送所述2.4G WIFI网络的第一2.4G探测请求和所述5GWIFI网络的第一5G探测请求;The transceiver unit 620 is configured to send 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;
收发单元620还用于,接收所述网络设备发送的针对所述第一5G探测请求的第一5G探测响应;The transceiver unit 620 is also configured to receive a first 5G detection response sent by the network device in response to the first 5G detection request;
处理单元610用于,接入所述5G WIFI网络中。The processing unit 610 is configured to access the 5G WIFI network.
应理解,处理单元610和收发单元620可用于执行方法500中终端设备执行的各个步骤,具体描述可参考上文的相关描述,不再赘述。It should be understood that the processing unit 610 and the transceiver unit 620 may be used to perform various steps performed by the terminal device in the method 500. For specific descriptions, reference may be made to the relevant descriptions above, which will not be described again.
应理解,这里的装置600以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。It should be understood that the device 600 here is embodied in the form of a functional unit. The term "unit" as used herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (e.g., a shared processor, a dedicated processor, or a group of processors). processor, etc.) and memory, merged logic circuitry, and/or other suitable components to support the described functionality.
在本申请的实施例,图9中装置也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In this embodiment of the present application, the device in FIG. 9 may also be a chip or a chip system, such as a system on chip (SoC).
图10是本申请实施例提供的装置700的示意性结构图。装置700用于执行上述方法实施例中对应的各个步骤和/或流程。Figure 10 is a schematic structural diagram of a device 700 provided by an embodiment of the present application. The device 700 is used to execute corresponding steps and/or processes in the above method embodiments.
装置700包括处理器710、收发器720和存储器730。其中,处理器710、收发器720和存储器730通过内部连接通路互相通信,处理器710可以实现装置700中各种可能的实现方式中处理单元710的功能。存储器730用于存储指令,处理器710用于执行存储器730存储的指令,或者说,处理器710可以调用这些存储指令实现装置700中处理单元710的功能。Apparatus 700 includes a processor 710, a transceiver 720, and a memory 730. Among them, the processor 710, the transceiver 720 and the memory 730 communicate with each other through internal connection paths. 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. In other words, the processor 710 can call these stored instructions to implement the functions of the processing unit 710 in the device 700.
可选地,该存储器730可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器710可以用于执行存储器中存储的指令,并且当该处理器710执行存储器中存储的指令时,该处理器710用于执行上述与网络设备或终端设备对应的方法实施例的各个步骤和/或流程。Optionally, the memory 730 may include read-only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 710 may be configured to execute instructions stored in the memory, and when the processor 710 executes the instructions stored in the memory, the processor 710 is configured to execute each step of the above method embodiment corresponding to the network device or terminal device. and/or process.
在一种可能的实现方式中,装置700用于执行上述方法400中网络设备对应的各个流程和步骤。处理器710用于执行以下步骤:In a possible implementation, the apparatus 700 is configured to execute various processes and steps corresponding to the network device in the above method 400. Processor 710 is used to perform the following steps:
获取在第一时段内与所述网络设备通过所述2.4G WIFI网络连接的M个终端设备的第一信号信息,所述第一信号信息用于指示所述M个终端设备在所述第一时段内的信号强度,M为大于或等于1的整数;Obtain first signal information of M terminal devices connected to the network device through the 2.4G WIFI network within the first period, where the first signal information is used to indicate that the M terminal devices are connected to the first network device through the 2.4G WIFI network. The signal strength within the period, M is an integer greater than or equal to 1;
在所述M个终端设备在所述第一时段内的信号强度中的至少部分信号强度大于第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由第一发射功率下降至第二发射功率。In the case where at least part of the signal strengths of the M terminal devices in the first period are greater than the first strength threshold, the transmission power of the 2.4G WIFI network is reduced from the first transmission power to the third transmission power. 2. Transmit power.
可选地,所述至少部分信号强度为所述M个终端设备在所述第一时段内的信号强度中的全部信号强度。Optionally, the at least part of the signal strength is all signal strengths among the signal strengths of the M terminal devices within the first period.
可选地,处理器710具体用于:Optionally, the processor 710 is specifically used to:
将所述至少部分信号强度中信号强度最差的信号强度确定为目标信号强度;Determine the signal strength with the worst signal strength among the at least partial signal strengths as the target signal strength;
根据所述目标信号强度与第二强度阈值之间的强度差值,确定所述2.4G WIFI网络的发射功率的调整幅度,所述第二强度阈值小于所述第一强度阈值;Determine the adjustment amplitude of the transmission power of the 2.4G WIFI network based on the strength difference between the target signal strength and a second strength threshold, where the second strength threshold is smaller than the first strength threshold;
在所述调整幅度内,将所述2.4G WIFI网络的发射功率由所述第一发射功率下降至所述第二发射功率。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.
可选地,所述第一发射功率与所述第二发射功率之间的功率变化值小于所述调整幅度。Optionally, the power change value between the first transmission power and the second transmission power is smaller than the adjustment amplitude.
可选地,处理器710还用于:Optionally, processor 710 is also used to:
获取在第二时段内与所述网络设备通过所述2.4G WIFI网络连接的N个终端设备的第二信号信息,所述第二信号信息用于指示所述N个终端设备在所述第二时段内的信号强度;Obtain second signal information of N terminal devices connected to the network device through the 2.4G WIFI network within the second period, where the second signal information is used to indicate that the N terminal devices are connected to the network device through the 2.4G WIFI network in the second period. Signal strength during the period;
根据所述N个终端设备在所述第二时段内的信号强度和所述第一强度阈值,确定是否继续降低所述2.4G WIFI网络的发射功率;Determine 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 period and the first strength threshold;
其中,所述第二时段的时长小于所述第一时段的时长,N为大于或等于1的整数。Wherein, the duration of the second period is shorter than the duration of the first period, and N is an integer greater than or equal to 1.
可选地,处理器710具体用于:Optionally, the processor 710 is specifically used to:
在所述第一时段内,按照第一时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第一信号信息;以及,During the first period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the first duration to obtain the first signal information; and,
在所述第二时段内,按照第二时长周期性地采集与所述网络设备通过所述2.4GWIFI网络连接的终端设备的信号强度,以获取所述第二信号信息;During the second period, periodically collect the signal strength of the terminal device connected to the network device through the 2.4GWIFI network according to the second duration to obtain the second signal information;
其中,所述第二时长小于所述第一时长。Wherein, the second duration is shorter than the first duration.
可选地,处理器710具体用于:Optionally, the processor 710 is specifically used to:
在所述N个终端设备在所述第二时段内的信号强度中的至少部分信号强度小于所述第一强度阈值的情况下,将所述2.4G WIFI网络的发射功率由所述第二发射功率提高至第三发射功率,所述第三发射功率小于所述第一发射功率。In the case where at least part of the signal strengths of the N terminal devices in the second period are less than the first strength threshold, the transmit power of the 2.4G WIFI network is changed from the second transmitter to the second transmitter. The power is increased to a third transmit power that is less than the first transmit power.
可选地,所述M个终端设备包括与所述网络设备稳定连接的设备以及与所述网络设备非稳定连接的设备。Optionally, the M terminal devices include devices that are stably connected to the network device and devices that are not stably connected to the network device.
可选地,收发器720用于:Optionally, transceiver 720 is used to:
接收第一终端设备发送的所述5G WIFI网络的5G探测请求和所述2.4GWIFI网络的2.4G探测请求;Receive the 5G detection request of the 5G WIFI network and the 2.4G detection request of the 2.4GWIFI network sent by the first terminal device;
向所述第一终端设备发送针对所述5G探测请求的5G探测响应,以将所述第一终端设备接入至所述5G WIFI网络中。Send a 5G detection response to the 5G detection request to the first terminal device to access the first terminal device to the 5G WIFI network.
在另一种可能的实现方式中,装置700用于执行上述方法500中网络设备对应的各个流程和步骤。In another possible implementation, the apparatus 700 is configured to execute various processes and steps corresponding to the network device in the above method 500.
处理器710用于,在接收到终端设备发送的所述2.4G WIFI网络的第一2.4G探测请求且未接收到所述终端设备发送的所述5G WIFI网络的第一5G探测请求的情况下,开启定时器;The processor 710 is configured to receive the first 2.4G detection request of the 2.4G WIFI network sent by the terminal device and not receive the first 5G detection request of the 5G WIFI network sent by the terminal device. , start the timer;
收发器720用还用于,若在所述定时器的时长内接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一5G探测请求的第一5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。The transceiver 720 is further configured to, if the first 5G detection request is received within the duration of the timer, send a first 5G detection response to the first 5G detection request to the terminal device, so as to Connect the terminal device to the 5G WIFI network.
可选地,收发器720还用于,若在所述定时器的时长内未接收到所述第一5G探测请求,则向所述终端设备发送针对所述第一2.4G探测请求的第一2.4G探测响应,以将所述终端设备接入至所述2.4G WIFI网络中。Optionally, the transceiver 720 is also configured to, if the first 5G detection request is not received within the duration of the timer, send a first response to the first 2.4G detection request to the terminal device. 2.4G detection response to connect the terminal device to the 2.4G WIFI network.
可选地,所述终端设备不支持所述5G WIFI网络;或,所述终端设备支持所述5GWIFI网络,且在所述终端设备向所述网络设备发送所述第一2.4G探测请求之前,所述终端设备与所述网络设备通过所述2.4G WIFI网络通信连接。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 communicatively connected through the 2.4G WIFI network.
可选地,收发器720还用于,在接收到所述终端设备发送的所述第一5G探测请求且未接收到所述终端设备发送的所述第一2.4G探测请求的情况下,不开启所述定时器,且向所述终端设备发送所述第一5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。Optionally, the transceiver 720 is also configured to: 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 started, and the first 5G detection response is sent to the terminal device to access the terminal device to the 5G WIFI network.
可选地,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过单播方式发送的。Optionally, the first 2.4G detection request and the first 5G detection request are sent by the terminal device in a unicast manner.
可选地,收发器720还用于,向所述终端设备发送所述2.4G WIFI网络的2.4G信标帧和所述5G WIFI网络的5G信标帧。Optionally, the transceiver 720 is also configured to send the 2.4G beacon frame of the 2.4G WIFI network and the 5G beacon frame of the 5G WIFI network to the terminal device.
可选地,所述第一2.4G探测请求和所述第一5G探测请求是所述终端设备通过广播方式发送的;以及,收发器720还用于: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 also used to:
接收所述终端设备通过单播方式发送的第二5G探测请求;向所述终端设备发送针对所述第二5G探测请求的第二5G探测响应,以将所述终端设备接入至所述5G WIFI网络中。Receive a second 5G detection request sent by the terminal device in a unicast manner; send a second 5G detection response to the second 5G detection request to the terminal device to access the terminal device to the 5G In the WIFI network.
可选地,所述定时器的时长小于或等于2秒。Optionally, the duration of the timer is less than or equal to 2 seconds.
应理解,处理单元610和收发单元620可用于执行方法500中网络设备执行的各个步骤,具体描述可参考上文的相关描述,不再赘述。It should be understood that the processing unit 610 and the transceiver unit 620 may be used to perform various steps performed by the network device in the method 500. For specific descriptions, reference may be made to the relevant descriptions above, which will not be described again.
在另一种可能的实现方式中,装置700用于执行上述方法500中终端设备对应的各个流程和步骤。In another possible implementation, the apparatus 700 is configured to execute various processes and steps corresponding to the terminal device in the above method 500.
收发器720用于,向网络设备发送所述2.4G WIFI网络的第一2.4G探测请求和所述5GWIFI网络的第一5G探测请求;The transceiver 720 is configured to send 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;
收发器720还用于,接收所述网络设备发送的针对所述第一5G探测请求的第一5G探测响应;The transceiver 720 is also configured to receive a first 5G detection response sent by the network device in response to the first 5G detection request;
处理器710用于,接入所述5G WIFI网络中。The processor 710 is configured to access the 5G WIFI network.
应理解,各个器件执行上述各个方法中相应步骤的具体过程在上述方法实施例中已经详细说明,为了简洁,此处不再赘述。It should be understood that the specific process of each device performing corresponding steps in each of the above methods has been described in detail in the above method embodiments, and will not be described again here for the sake of brevity.
应理解,在本申请实施例中,上述装置的处理器可以是中央处理单元(centralprocessing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor of the above device can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits ( ASIC), field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software units in the processor. The software unit can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor executes the instructions in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在终端设备运行时,使得终端设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。Embodiments of the present application provide a computer program product. When the computer program product is run on a terminal device, it causes the terminal device to execute the technical solutions in the above embodiments. The implementation principles and technical effects are similar to the above-mentioned method-related embodiments, and will not be described again here.
本申请实施例提供一种可读存储介质,所述可读存储介质包含指令,当所述指令在终端设备运行时,使得所述终端设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。Embodiments of the present application provide a readable storage medium. The readable storage medium contains instructions. When the instructions are run on a terminal device, the terminal device executes the technical solutions of the above embodiments. The implementation principles and technical effects are similar and will not be described again here.
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。Embodiments of the present application provide a chip. The chip is used to execute instructions. When the chip is running, the technical solutions in the above embodiments are executed. The implementation principles and technical effects are similar and will not be described again here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may 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 the computer, the processes or functions described in the embodiments of the present application are 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 or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, high-density digital video disc (DVD)), or semiconductor media (eg, solid state disk, SSD)) etc.
应理解,说明书通篇中提到的“实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各个实施例未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It will be understood that reference throughout this specification to "an embodiment" means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. Therefore, various embodiments are not necessarily referred to the same embodiment throughout this specification. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
还应理解,在本申请中,“当…时”、“若”以及“如果”均指在某种客观情况下UE或者基站会做出相应的处理,并非是限定时间,且也不要求UE或基站实现时一定要有判断的动作,也不意味着存在其它限定。It should also be understood that in this application, "when", "if" and "if" all mean that the UE or the base station will perform corresponding processing under certain objective circumstances. It does not limit the time and does not require the UE to Or the base station must have judgment actions when implementing it, and it does not mean that there are other restrictions.
本领域普通技术人员可以理解:本申请中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围,也表示先后顺序。Persons of ordinary skill in the art can understand that the first, second, and other numerical numbers involved in this application are only for convenience of description and are not used to limit the scope of the embodiments of this application and also indicate the order.
本申请中对于使用单数表示的元素旨在用于表示“一个或多个”,而并非表示“一个且仅一个”,除非有特别说明。本申请中,在没有特别说明的情况下,“至少一个”旨在用于表示“一个或者多个”,“多个”旨在用于表示“两个或两个以上”。Elements referred to in the singular in this application are intended to mean "one or more" and not "one and only one" unless otherwise specified. In this application, unless otherwise specified, "at least one" is intended to mean "one or more", and "plurality" is intended to mean "two or more".
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A可以是单数或者复数,B可以是单数或者复数。The term "and/or" in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. In the three cases B, A can be singular or plural, and B can be singular or plural.
本文中术语“……中的至少一个”或“……中的至少一种”,表示所列出的各项的全部或任意组合,例如,“A、B和C中的至少一种”,可以表示:单独存在A,单独存在B,单独存在C,同时存在A和B,同时存在B和C,同时存在A、B和C这六种情况,其中A可以是单数或者复数,B可以是单数或者复数,C可以是单数或者复数。The term "at least one of..." or "at least one of..." herein refers to all or any combination of the listed items, for example, "at least one of A, B and C", It can 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, A, B and C exist at the same time, among which A can be singular or plural, and B can be Singular or plural, C can be singular or plural.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。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 with 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. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this 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 illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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 they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。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 is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
本申请中各个实施例之间相同或相似的部分可以互相参考。在本申请中各个实施例、以及各实施例中的各个实施方式/实施方法/实现方法中,如果没有特殊说明以及逻辑冲突,不同的实施例之间、以及各实施例中的各个实施方式/实施方法/实现方法之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例、以及各实施例中的各个实施方式/实施方法/实现方法中的技术特征根据其内在的逻辑关系可以组合形成新的实施例、实施方式、实施方法、或实现方法。以上所述的本申请实施方式并不构成对本申请保护范围的限定。The same or similar parts between the various embodiments in this application can be referred to each other. In the various embodiments of this application and the various implementation methods/implementation methods/implementation methods in each embodiment, if there are no special instructions or logical conflicts, the differences between different embodiments and the various implementation methods/implementation methods in each embodiment will be different. The terminology and/or descriptions between implementation methods/implementation methods are consistent and can be referenced to each other. Different embodiments, as well as the technical features in each implementation method/implementation method/implementation method in each embodiment are based on their inherent Logical relationships can be combined to form new embodiments, implementations, implementation methods, or implementation methods. The above-described embodiments of the present application do not limit the scope of protection of the present application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准总之,以上所述仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. In short, the above descriptions are only preferred embodiments of the technical solution of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the protection scope of this application.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310488054.6A CN117135738B (en) | 2023-04-28 | 2023-04-28 | A WIFI communication method, device and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310488054.6A CN117135738B (en) | 2023-04-28 | 2023-04-28 | A WIFI communication method, device and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117135738A true CN117135738A (en) | 2023-11-28 |
CN117135738B CN117135738B (en) | 2024-11-12 |
Family
ID=88855340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310488054.6A Active CN117135738B (en) | 2023-04-28 | 2023-04-28 | A WIFI communication method, device and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117135738B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019028784A1 (en) * | 2017-08-10 | 2019-02-14 | 深圳益创信息科技有限公司 | Router side wifi switching method and router |
CN110225562A (en) * | 2019-07-09 | 2019-09-10 | 杭州叙简安智信息技术有限公司 | A method of it is automatically adjusted and is surfed the Internet according to actual scene |
CN114173407A (en) * | 2021-11-26 | 2022-03-11 | 联想(北京)有限公司 | Power adjustment method and electronic equipment |
-
2023
- 2023-04-28 CN CN202310488054.6A patent/CN117135738B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019028784A1 (en) * | 2017-08-10 | 2019-02-14 | 深圳益创信息科技有限公司 | Router side wifi switching method and router |
CN110225562A (en) * | 2019-07-09 | 2019-09-10 | 杭州叙简安智信息技术有限公司 | A method of it is automatically adjusted and is surfed the Internet according to actual scene |
CN114173407A (en) * | 2021-11-26 | 2022-03-11 | 联想(北京)有限公司 | Power adjustment method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN117135738B (en) | 2024-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8451858B2 (en) | Collision avoidance in multiple protocol communication networks using a shared communication medium | |
US9271136B2 (en) | Probe messaging for direct link connections | |
US10225775B2 (en) | Access point selection in a wireless network | |
JP4570655B2 (en) | Method and system for reducing MAC layer handoff latency in a wireless network | |
US20170006526A1 (en) | Method and apparatus for maintaining association in wireless lan system | |
US10397859B2 (en) | Wireless network access | |
KR20140129005A (en) | Method and apparatus for filtering-based scanning in wlan system | |
US10091636B2 (en) | Probe messaging for direct link connections | |
US11019483B2 (en) | Access point supporting at least two virtual networks and method performed thereby for communicating with wireless device | |
CN106211279B (en) | Wireless network method of network entry and wireless device | |
CN108632821A (en) | For the associated system and method for basic service set | |
US20170019165A1 (en) | Loop detection/resolution and load balancing on dual band dual concurrent repeater | |
KR101606811B1 (en) | Method for setting up high-speed link in wlan system and device for same | |
US11057770B2 (en) | Method and apparatus for dynamically changing connection in wireless LAN | |
US20170171809A1 (en) | Wireless access point power save mode | |
US20230337091A1 (en) | Network handover method, terminal device, and access point device | |
WO2017167141A1 (en) | Method and device for sending wireless local area network beacon | |
CN113543282B (en) | Wireless roaming method and system | |
CN113133092B (en) | Energy-saving control method and related equipment | |
TW200522590A (en) | Autonomic reassociation of clients in a wireless local area network | |
US11765698B2 (en) | Concurrent multi-band operation of a peer-to-peer link | |
CN117135738A (en) | WIFI communication method, device and network equipment | |
US20130115918A1 (en) | Methods and Apparatus For Wireless Networking Connection | |
CN115515254A (en) | Point-to-point connection establishment method, device, storage medium and electronic equipment | |
WO2018032784A1 (en) | Data transmission method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |